PluginProbe
Ultimate Cursor – Interactive and Animated Custom Cursor and Background Effects Toolkit / trunk
Ultimate Cursor – Interactive and Animated Custom Cursor and Background Effects Toolkit vtrunk
2.4.1 2.4.0 2.3.3 2.3.2 2.3.1 2.3.0 2.2.3 2.2.2 2.2.1 trunk 1.0.0 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 All 56 releases
ultimate-cursor / build / admin.js

admin.js in Ultimate Cursor – Interactive and Animated Custom Cursor and Background Effects Toolkit trunk, at build/admin.js

15 lines 871.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";var e={5748(e,t,r){r.d(t,{cM:()=>l,bK:()=>m,UA:()=>w,uy:()=>c});var n=r(2923);const o=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function a(e,t,r){let n;return n=Math.round(e.h)>=60&&Math.round(e.h)<=240?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t,n<0?n+=360:n>=360&&(n-=360),n}function i(e,t,r){if(0===e.h&&0===e.s)return e.s;let n;return n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,n>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(100*n)/100}function s(e,t,r){let n;return n=r?e.v+.05*t:e.v-.15*t,n=Math.max(0,Math.min(1,n)),Math.round(100*n)/100}function l(e,t={}){const r=[],l=new n.Y(e),c=l.toHsv();for(let e=5;e>0;e-=1){const t=new n.Y({h:a(c,e,!0),s:i(c,e,!0),v:s(c,e,!0)});r.push(t)}r.push(l);for(let e=1;e<=4;e+=1){const t=new n.Y({h:a(c,e),s:i(c,e),v:s(c,e)});r.push(t)}return"dark"===t.theme?o.map(({index:e,amount:o})=>new n.Y(t.backgroundColor||"#141414").mix(r[e],o).toHexString()):r.map(e=>e.toHexString())}const c={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},u=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];u.primary=u[5];const d=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];d.primary=d[5];const p=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];p.primary=p[5];const m=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];m.primary=m[5];const h=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];h.primary=h[5];const f=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];f.primary=f[5];const g=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];g.primary=g[5];const b=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];b.primary=b[5];const v=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];v.primary=v[5];const x=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];x.primary=x[5];const y=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];y.primary=y[5];const $=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$.primary=$[5];const C=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];C.primary=C[5];const w={red:u,volcano:d,orange:p,gold:m,yellow:h,lime:f,green:g,cyan:b,blue:v,geekblue:x,purple:y,magenta:$,grey:C},S=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];S.primary=S[5];const k=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];k.primary=k[5];const E=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];E.primary=E[5];const _=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];_.primary=_[5];const A=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];A.primary=A[5];const N=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];N.primary=N[5];const j=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];j.primary=j[5];const M=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];M.primary=M[5];const P=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];P.primary=P[5];const z=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];z.primary=z[5];const I=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];I.primary=I[5];const R=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];R.primary=R[5];const T=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];T.primary=T[5]},485(e,t,r){r.d(t,{L_:()=>T,oX:()=>j});var n=r(2284),o=r(296),a=r(5458),i=r(4467);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,i.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var c=r(1609),u=r.n(c),d=r(738),p=r(3029),m=r(2901),h=r(9417),f=r(5501),g=r(3954),b=r(2176),v=r(6822);function x(e){var t=(0,b.A)();return function(){var r,n=(0,g.A)(e);if(t){var o=(0,g.A)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,v.A)(this,r)}}const y=(0,m.A)(function e(){(0,p.A)(this,e)});var $="CALC_UNIT",C=new RegExp($,"g");function w(e){return"number"==typeof e?"".concat(e).concat($):e}var S=function(e){(0,f.A)(r,e);var t=x(r);function r(e,o){var a;(0,p.A)(this,r),a=t.call(this),(0,i.A)((0,h.A)(a),"result",""),(0,i.A)((0,h.A)(a),"unitlessCssVar",void 0),(0,i.A)((0,h.A)(a),"lowPriority",void 0);var s=(0,n.A)(e);return a.unitlessCssVar=o,e instanceof r?a.result="(".concat(e.result,")"):"number"===s?a.result=w(e):"string"===s&&(a.result=e),a}return(0,m.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(w(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof r?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(w(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof r?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,r=(e||{}).unit,n=!0;return"boolean"==typeof r?n=r:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(n=!1),this.result=this.result.replace(C,n?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),r}(y);const k=function(e){(0,f.A)(r,e);var t=x(r);function r(e){var n;return(0,p.A)(this,r),n=t.call(this),(0,i.A)((0,h.A)(n),"result",0),e instanceof r?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,m.A)(r,[{key:"add",value:function(e){return e instanceof r?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof r?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof r?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof r?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),r}(y),E=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};r(6487);const _=function(e,t,r,n){var a=l({},t[e]);null!=n&&n.deprecatedTokens&&n.deprecatedTokens.forEach(function(e){var t,r=(0,o.A)(e,2),n=r[0],i=r[1];(null!=a&&a[n]||null!=a&&a[i])&&(null!==(t=a[i])&&void 0!==t||(a[i]=null==a?void 0:a[n]))});var i=l(l({},r),a);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i};var A="undefined"!=typeof CSSINJS_STATISTIC,N=!0;function j(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!A)return Object.assign.apply(Object,[{}].concat(t));N=!1;var o={};return t.forEach(function(e){"object"===(0,n.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),N=!0,o}var M={};function P(){}const z=function(e,t,r){var n;return"function"==typeof r?r(j(t,null!==(n=t[e])&&void 0!==n?n:{})):null!=r?r:{}};var I=new(function(){function e(){(0,p.A)(this,e),(0,i.A)(this,"map",new Map),(0,i.A)(this,"objectIDMap",new WeakMap),(0,i.A)(this,"nextID",0),(0,i.A)(this,"lastAccessBeat",new Map),(0,i.A)(this,"accessBeat",0)}return(0,m.A)(e,[{key:"set",value:function(e,t){this.clear();var r=this.getCompositeKey(e);this.map.set(r,t),this.lastAccessBeat.set(r,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),r=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,r}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===(0,n.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,n.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(r,n){t-r>6e5&&(e.map.delete(n),e.lastAccessBeat.delete(n))}),this.accessBeat=0}}}]),e}());const R=function(){return{}},T=function(e){var t=e.useCSP,r=void 0===t?R:t,s=e.useToken,p=e.usePrefix,m=e.getResetStyles,h=e.getCommonStyle,f=e.getCompUnitless;function g(t,a,i){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},g=Array.isArray(t)?t:[t,t],b=(0,o.A)(g,1)[0],v=g.join("-"),x=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=s(),g=o.theme,y=o.realToken,$=o.hashId,C=o.token,w=o.cssVar,R=o.zeroRuntime;if((0,c.useMemo)(function(){return R},[]))return $;var T,O,B=p(),L=B.rootPrefixCls,H=B.iconPrefixCls,D=r(),F="css",W=(T=function(){var e=new Set;return Object.keys(f.unitless||{}).forEach(function(t){e.add((0,d.Ki)(t,w.prefix)),e.add((0,d.Ki)(t,E(b,w.prefix)))}),function(e,t){var r="css"===e?S:k;return function(e){return new r(e,t)}}(F,e)},O=[F,b,null==w?void 0:w.prefix],u().useMemo(function(){var e=I.get(O);if(e)return e;var t=T();return I.set(O,t),t},O)),V=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"max(".concat(t.map(function(e){return(0,d.zA)(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return"min(".concat(t.map(function(e){return(0,d.zA)(e)}).join(","),")")}}}(F),q=V.max,X=V.min,G={theme:g,token:C,hashId:$,nonce:function(){return D.nonce},clientOnly:f.clientOnly,layer:x,order:f.order||-999};return"function"==typeof m&&(0,d.IV)(l(l({},G),{},{clientOnly:!1,path:["Shared",L]}),function(){return m(C,{prefix:{rootPrefixCls:L,iconPrefixCls:H},csp:D})}),(0,d.IV)(l(l({},G),{},{path:[v,e,H]}),function(){if(!1===f.injectStyle)return[];var r=function(e){var t,r=e,n=P;return A&&"undefined"!=typeof Proxy&&(t=new Set,r=new Proxy(e,{get:function(e,r){var n;return N&&(null===(n=t)||void 0===n||n.add(r)),e[r]}}),n=function(e,r){var n;M[e]={global:Array.from(t),component:l(l({},null===(n=M[e])||void 0===n?void 0:n.component),r)}}),{token:r,keys:t,flush:n}}(C),o=r.token,s=r.flush,c=z(b,y,i),u=".".concat(e),p=_(b,y,c,{deprecatedTokens:f.deprecatedTokens});c&&"object"===(0,n.A)(c)&&Object.keys(c).forEach(function(e){c[e]="var(".concat((0,d.Ki)(e,E(b,w.prefix)),")")});var m=j(o,{componentCls:u,prefixCls:e,iconCls:".".concat(H),antCls:".".concat(L),calc:W,max:q,min:X},c),g=a(m,{hashId:$,prefixCls:e,rootPrefixCls:L,iconPrefixCls:H});s(b,p);var v="function"==typeof h?h(m,e,t,f.resetFont):null;return[!1===f.resetStyle?null:v,g]}),$}}return{genStyleHooks:function(e,t,n,o){var c=Array.isArray(e)?e[0]:e;function u(e){return"".concat(String(c)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var p=(null==o?void 0:o.unitless)||{},m=l(l({},"function"==typeof f?f(e):{}),{},(0,i.A)({},u("zIndexPopup"),!0));Object.keys(p).forEach(function(e){m[u(e)]=p[e]});var h=l(l({},o),{},{unitless:m,prefixToken:u}),b=g(e,t,n,h),v=function(e,t,n){var o=n.unitless,a=n.prefixToken,i=n.ignore;return function(l){var c=s(),u=c.cssVar,p=c.realToken,m=r();return(0,d.RC)({path:[e],prefix:u.prefix,key:u.key,unitless:o,ignore:i,token:p,scope:l,nonce:function(){return m.nonce}},function(){var r=z(e,p,t),o=_(e,p,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return r&&Object.keys(r).forEach(function(e){o[a(e)]=o[e],delete o[e]}),o}),null==u?void 0:u.key}}(c,n,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=b(e,t),n=null==o?void 0:o.extraCssVarPrefixCls,i="function"==typeof n?n({prefixCls:e,rootCls:t}):n;return[r,v(null!=i&&i.length?[t].concat((0,a.A)(i)):t)]}},genSubStyleComponent:function(e,t,r){var n=g(e,t,r,l({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,r=e.rootCls;return n(t,void 0===r?t:r),null}},genComponentStyleHook:g}}},738(e,t,r){r.d(t,{Mo:()=>We,J:()=>p,an:()=>x,Ki:()=>A,zA:()=>k,RC:()=>Fe,hV:()=>R,IV:()=>De});const n=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)};var o=r(9683),a=r(1609);function i(e){return e.join("%")}r(3702),r(9464);let s=0;const l=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(i(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(i(e),t)}opUpdate(e,t){const r=t(this.cache.get(e));null===r?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,r),this.updateTimes.set(e,s),s+=1)}},c="data-token-hash",u="data-css-hash",d="__cssinjs_instance__";const p=a.createContext({hashPriority:"low",cache:function(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${u}]`)||[],{firstChild:r}=document.head;Array.from(t).forEach(t=>{t[d]||=e,t[d]===e&&document.head.insertBefore(t,r)});const n={};Array.from(document.querySelectorAll(`style[${u}]`)).forEach(t=>{const r=t.getAttribute(u);n[r]?t[d]===e&&t.parentNode?.removeChild(t):n[r]=!0})}return new l(e)}(),defaultCache:!0,autoPrefix:!1});var m=r(1336);new RegExp("CALC_UNIT","g");class h{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let r={map:this.cache};return e.forEach(e=>{r=r?r?.map?.get(e):void 0}),r?.value&&t&&(r.value[1]=this.cacheCallTimes++),r?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>h.MAX_CACHE_SIZE+h.MAX_CACHE_OFFSET){const[e]=this.keys.reduce((e,t)=>{const[,r]=e;return this.internalGet(t)[1]<r?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let r=this.cache;e.forEach((n,o)=>{if(o===e.length-1)r.set(n,{value:[t,this.cacheCallTimes++]});else{const e=r.get(n);e?e.map||(e.map=new Map):r.set(n,{map:new Map}),r=r.get(n).map}})}deleteByPath(e,t){const r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),r.value?.[0];const n=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),n}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,e)),this.deleteByPath(this.cache,e)}}var f=r(6536);let g=0;class b{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=g,0===e.length&&(0,f.$e)(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),g+=1}getDerivativeToken(e){return this.derivatives.reduce((t,r)=>r(e,t),void 0)}}const v=new h;function x(e){const t=Array.isArray(e)?e:[e];return v.has(t)||v.set(t,new b(t)),v.get(t)}const y=new WeakMap,$={},C=new WeakMap;function w(e){let t=C.get(e)||"";return t||(Object.keys(e).forEach(r=>{const n=e[r];t+=r,t+=n instanceof b?n.id:n&&"object"==typeof n?w(n):n}),t=n(t),C.set(e,t)),t}`random-${Date.now()}-${Math.random()}`.replace(/\./g,"");const S=(0,m.A)();function k(e){return"number"==typeof e?`${e}px`:e}function E(e){const{hashCls:t,hashPriority:r="low"}=e||{};if(!t)return"";const n=`.${t}`;return"low"===r?`:where(${n})`:n}function _(e,t){const r="function"==typeof t?t():t;return r?{...e,csp:{...e.csp,nonce:r}}:e}const A=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),N=(e,t,r)=>{const{hashCls:n,hashPriority:o="low",scope:a}=r||{};if(!Object.keys(e).length)return"";const i=`${E({hashCls:n,hashPriority:o})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${i}.${e}`).join(", "):i}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`},j=(e,t,r)=>{const{hashCls:n,hashPriority:o="low",prefix:a,unitless:i,ignore:s,preserve:l}=r||{},c={},u={};return Object.entries(e).forEach(([e,t])=>{if(l?.[e])u[e]=t;else if(("string"==typeof t||"number"==typeof t)&&!s?.[e]){const r=A(e,a);c[r]="number"!=typeof t||i?.[e]?String(t):`${t}px`,u[e]=`var(${r})`}}),[u,N(c,t,{scope:r?.scope,hashCls:n,hashPriority:o})]},M=new Map;function P(e,t,r,n,o){const{cache:s}=a.useContext(p),l=i([e,...t]),c=e=>{s.opUpdate(l,t=>{const[n=0,o]=t||[void 0,void 0],a=[n,o||r()];return e?e(a):a})};a.useMemo(()=>{c()},[l]);const u=s.opGet(l)[1];return(0,a.useInsertionEffect)(()=>(c(([e,t])=>[e+1,t]),M.has(l)||(o?.(u),M.set(l,!0),Promise.resolve().then(()=>{M.delete(l)})),()=>{s.opUpdate(l,e=>{const[t=0,r]=e||[];return 0==t-1?(n?.(r,!1),M.delete(l),null):[t-1,r]})}),[l]),u}const z={},I=new Map;function R(e,t,r){const{cache:{instanceId:i},container:s,hashPriority:l}=(0,a.useContext)(p),{salt:m="",override:h=z,formatToken:f,getComputedToken:g,cssVar:b,nonce:v}=r,x=function(e,r){let n=y;for(let e=0;e<r.length;e+=1){const t=r[e];n.has(t)||n.set(t,new WeakMap),n=n.get(t)}return n.has($)||n.set($,Object.assign({},...t)),n.get($)}(0,t),C=w(x),S=w(h),k=w(b),E=P("token",[m,e.id,C,S,k],()=>{const t=g?g(x,h,e):((e,t,r,n)=>{let o={...r.getDerivativeToken(e),...t};return n&&(o=n(o)),o})(x,h,e,f),r={...t},o=`${m}_${b.prefix}`,a=n(o),i=`css-${a}`;r._tokenKey=function(e,t){return n(`${t}_${w(e)}`)}(r,o);const[s,c]=j(t,b.key,{prefix:b.prefix,ignore:b.ignore,unitless:b.unitless,preserve:b.preserve,hashPriority:l,hashCls:b.hashed?i:void 0});var u;return s._hashId=a,u=b.key,I.set(u,(I.get(u)||0)+1),[s,i,r,c,b.key]},([,,,,e])=>{!function(e,t){I.set(e,(I.get(e)||0)-1);const r=new Set;I.forEach((e,t)=>{e<=0&&r.add(t)}),I.size-r.size>-1&&r.forEach(e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${c}="${e}"]`).forEach(e=>{e[d]===t&&e.parentNode?.removeChild(e)})}(e,t),I.delete(e)})}(e,i)},([,,,e,t])=>{if(!e)return;let r={mark:u,prepend:"queue",attachTo:s,priority:-999};r=_(r,v);const a=(0,o.BD)(e,n(`css-var-${t}`),r);a[d]=i,a.setAttribute(c,t)});return E}const T={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var O="-ms-",B="-moz-",L="-webkit-",H="comm",D="rule",F="decl",W="@keyframes",V=Math.abs,q=String.fromCharCode,X=Object.assign;function G(e){return e.trim()}function K(e,t){return(e=t.exec(e))?e[0]:e}function U(e,t,r){return e.replace(t,r)}function Y(e,t){return e.indexOf(t)}function Q(e,t){return 0|e.charCodeAt(t)}function Z(e,t,r){return e.slice(t,r)}function J(e){return e.length}function ee(e){return e.length}function te(e,t){return t.push(e),e}function re(e,t){return e.filter(function(e){return!K(e,t)})}function ne(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function oe(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case F:return e.return=e.return||e.value;case H:return"";case W:return e.return=e.value+"{"+ne(e.children,n)+"}";case D:if(!J(e.value=e.props.join(",")))return""}return J(r=ne(e.children,n))?e.return=e.value+"{"+r+"}":""}var ae=1,ie=1,se=0,le=0,ce=0,ue="";function de(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:ae,column:ie,length:i,return:"",siblings:s}}function pe(e,t){return X(de("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function me(e){for(;e.root;)e=pe(e.root,{children:[e]});te(e,e.siblings)}function he(){return ce=le>0?Q(ue,--le):0,ie--,10===ce&&(ie=1,ae--),ce}function fe(){return ce=le<se?Q(ue,le++):0,ie++,10===ce&&(ie=1,ae++),ce}function ge(){return Q(ue,le)}function be(){return le}function ve(e,t){return Z(ue,e,t)}function xe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ye(e){return G(ve(le-1,we(91===e?e+2:40===e?e+1:e)))}function $e(e){for(;(ce=ge())&&ce<33;)fe();return xe(e)>2||xe(ce)>3?"":" "}function Ce(e,t){for(;--t&&fe()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return ve(e,be()+(t<6&&32==ge()&&32==fe()))}function we(e){for(;fe();)switch(ce){case e:return le;case 34:case 39:34!==e&&39!==e&&we(ce);break;case 40:41===e&&we(e);break;case 92:fe()}return le}function Se(e,t){for(;fe()&&e+ce!==57&&(e+ce!==84||47!==ge()););return"/*"+ve(t,le-1)+"*"+q(47===e?e:fe())}function ke(e){for(;!xe(ge());)fe();return ve(e,le)}function Ee(e){return function(e){return ue="",e}(_e("",null,null,null,[""],e=function(e){return ae=ie=1,se=J(ue=e),le=0,[]}(e),0,[0],e))}function _e(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,m=0,h=0,f=1,g=1,b=1,v=0,x=0,y="",$=o,C=a,w=n,S=y;g;)switch(h=x,x=fe()){case 40:108!=h&&58==Q(S,d-1)?(v++,S+="("):S+=ye(x);break;case 41:v--,S+=")";break;case 34:case 39:case 91:S+=ye(x);break;case 9:case 10:case 13:case 32:if(v>0){S+=q(x);break}S+=$e(h);break;case 92:S+=Ce(be()-1,7);continue;case 47:switch(ge()){case 42:case 47:te(Ne(Se(fe(),be()),t,r,l),l),5!=xe(h||1)&&5!=xe(ge()||1)||!J(S)||" "===Z(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*f:s[c++]=J(S)*b;case 125*f:case 59:case 0:if(v>0&&x){S+=q(x);break}switch(x){case 0:case 125:g=0;case 59+u:-1==b&&(S=U(S,/\f/g,"")),m>0&&(J(S)-d||0===f)&&te(m>32?je(S+";",n,r,d-1,l):je(U(S," ","")+";",n,r,d-2,l),l);break;case 59:S+=";";default:if(te(w=Ae(S,t,r,c,u,o,s,y,$=[],C=[],d,a),a),123===x)if(0===u)_e(S,t,w,w,$,a,d,s,C);else{switch(p){case 99:if(110===Q(S,3))break;case 108:if(97===Q(S,2))break;default:u=0;case 100:case 109:case 115:}u?_e(e,w,w,n&&te(Ae(e,w,w,0,0,o,s,y,o,$=[],d,C),C),o,C,d,s,n?$:C):_e(S,w,w,w,[""],C,0,s,C)}}c=u=m=0,f=b=1,y=S="",d=i;break;case 58:d=1+J(S),m=h;default:if(f<1)if(123==x)--f;else if(125==x&&0==f++&&125==he())continue;switch(S+=q(x),x*f){case 38:b=u>0?1:(S+="\f",-1);break;case 44:if(v>0)break;s[c++]=(J(S)-1)*b,b=1;break;case 64:45===ge()&&(S+=ye(fe())),p=ge(),u=d=J(y=S+=ke(be())),x++;break;case 45:45===h&&2==J(S)&&(f=0)}}return a}function Ae(e,t,r,n,o,a,i,s,l,c,u,d){for(var p=o-1,m=0===o?a:[""],h=ee(m),f=0,g=0,b=0;f<n;++f)for(var v=0,x=Z(e,p+1,p=V(g=i[f])),y=e;v<h;++v)(y=G(g>0?m[v]+" "+x:U(x,/&\f/g,m[v])))&&(l[b++]=y);return de(e,t,r,0===o?D:s,l,c,u,d)}function Ne(e,t,r,n){return de(e,t,r,H,q(ce),Z(e,2,-2),0,n)}function je(e,t,r,n,o){return de(e,t,r,F,Z(e,0,n),Z(e,n+1,-1),n,o)}function Me(e,t,r){switch(function(e,t){return 45^Q(e,0)?(((t<<2^Q(e,0))<<2^Q(e,1))<<2^Q(e,2))<<2^Q(e,3):0}(e,t)){case 5103:return L+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return L+e+e;case 4855:return L+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+B+e+O+e+e;case 5936:switch(Q(e,t+11)){case 114:return L+e+O+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+O+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+O+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return L+e+O+e+e;case 6165:return L+e+O+"flex-"+e+e;case 5187:return L+e+U(e,/(\w+).+(:[^]+)/,L+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return L+e+O+"flex-item-"+U(e,/flex-|-self/g,"")+(K(e,/flex-|baseline/)?"":O+"grid-row-"+U(e,/flex-|-self/g,""))+e;case 4675:return L+e+O+"flex-line-pack"+U(e,/align-content|flex-|-self/g,"")+e;case 5548:return L+e+O+U(e,"shrink","negative")+e;case 5292:return L+e+O+U(e,"basis","preferred-size")+e;case 6060:return L+"box-"+U(e,"-grow","")+L+e+O+U(e,"grow","positive")+e;case 4554:return L+U(e,/([^-])(transform)/g,"$1"+L+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return U(U(e,/(.+:)(flex-)?(.*)/,L+"box-pack:$3"+O+"flex-pack:$3"),/space-between/,"justify")+L+e+e;case 4200:if(!K(e,/flex-|baseline/))return O+"grid-column-align"+Z(e,t)+e;break;case 2592:case 3360:return O+U(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,K(e.props,/grid-\w+-end/)})?~Y(e+(r=r[t].value),"span")?e:O+U(e,"-start","")+e+O+"grid-row-span:"+(~Y(r,"span")?K(r,/\d+/):+K(r,/\d+/)-+K(e,/\d+/))+";":O+U(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return K(e.props,/grid-\w+-start/)})?e:O+U(U(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return U(e,/(.+)-inline(.+)/,L+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(J(e)-1-t>6)switch(Q(e,t+1)){case 109:if(45!==Q(e,t+4))break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+B+(108==Q(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Y(e,"stretch")?Me(U(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return U(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,a,i,s){return O+r+":"+n+s+(o?O+r+"-span:"+(a?i:+i-+n)+s:"")+e});case 4949:if(121===Q(e,t+6))return U(e,":",":"+L)+e;break;case 6444:switch(Q(e,45===Q(e,14)?18:11)){case 120:return U(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+L+(45===Q(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+O+"$2box$3")+e;case 100:return U(e,":",":"+O)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return U(e,"scroll-","scroll-snap-")+e}return e}function Pe(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case F:return void(e.return=Me(e.value,e.length,r));case W:return ne([pe(e,{value:U(e.value,"@","@"+L)})],n);case D:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(K(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":me(pe(e,{props:[U(t,/:(read-\w+)/,":-moz-$1")]})),me(pe(e,{props:[t]})),X(e,{props:re(r,n)});break;case"::placeholder":me(pe(e,{props:[U(t,/:(plac\w+)/,":"+L+"input-$1")]})),me(pe(e,{props:[U(t,/:(plac\w+)/,":-moz-$1")]})),me(pe(e,{props:[U(t,/:(plac\w+)/,O+"input-$1")]})),me(pe(e,{props:[t]})),X(e,{props:re(r,n)})}return""})}}const ze="data-ant-cssinjs-cache-path",Ie="_FILE_STYLE__";let Re,Te=!0;const Oe="_multi_value_";function Be(e,t){var r,n;return ne(Ee(e),t?(n=ee(r=[Pe,oe]),function(e,t,o,a){for(var i="",s=0;s<n;s++)i+=r[s](e,t,o,a)||"";return i}):oe).replace(/\{%%%\:[^;];}/g,";")}const Le=(e,t={},{root:r,injectHash:n,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:a,layer:i,path:s,hashPriority:l,transformers:c=[],linters:u=[]}=t;let d="",p={};function m(e){const r=e.getName(a);if(!p[r]){const[n]=Le(e.style,t,{root:!1,parentSelectors:o});p[r]=`@keyframes ${e.getName(a)}${n}`}}return function e(t,r=[]){return t.forEach(t=>{Array.isArray(t)?e(t,r):t&&r.push(t)}),r}(Array.isArray(e)?e:[e]).forEach(e=>{const i="string"!=typeof e||r?e:{};if("string"==typeof i)d+=`${i}\n`;else if(i._keyframe)m(i);else{const e=c.reduce((e,t)=>t?.visit?.(e)||e,i);Object.keys(e).forEach(i=>{const s=e[i];if("object"!=typeof s||!s||"animationName"===i&&s._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||Oe in e)}(s)){function c(e,t){const r=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);let n=t;T[e]||"number"!=typeof n||0===n||(n=`${n}px`),"animationName"===e&&t?._keyframe&&(m(t),n=t.getName(a)),d+=`${r}:${n};`}const u=s?.value??s;"object"==typeof s&&s?.[Oe]&&Array.isArray(u)?u.forEach(e=>{c(i,e)}):null!=u&&c(i,u)}else{let h=!1,f=i.trim(),g=!1;(r||n)&&a?f.startsWith("@")?h=!0:f=function(e,t,r="high"){if(!t)return e;const n=E({hashCls:t,hashPriority:r});return e.split(",").map(e=>{const t=e.trim().split(/\s+/);let r=t[0]||"";const o=r.match(/^\w+/)?.[0]||"";return r=`${o}${n}${r.slice(o.length)}`,[r,...t.slice(1)].join(" ")}).join(",")}("&"===f?"":i,a,l):!r||a||"&"!==f&&""!==f||(f="",g=!0);const[b,v]=Le(s,t,{root:g,injectHash:h,parentSelectors:[...o,f]});p={...p,...v},d+=`${f}${b}`}})}}),r?i&&(d&&(d=`@layer ${i.name} {${d}}`),i.dependencies&&(p[`@layer ${i.name}`]=i.dependencies.map(e=>`@layer ${e}, ${i.name};`).join("\n"))):d=`{${d}}`,[d,p]};function He(e,t){return n(`${e.join("%")}${t}`)}function De(e,t){const{path:r,hashId:n,layer:i,nonce:s,clientOnly:l,order:c=0}=e,{mock:h,hashPriority:f,container:g,transformers:b,linters:v,cache:x,layer:y,autoPrefix:$}=a.useContext(p),C=[n||""];y&&C.push("layer"),C.push(...r);let w=S;P("style",C,()=>{const e=C.join("|");if(function(e){return function(){if(!Re&&(Re={},(0,m.A)())){const e=document.createElement("div");e.className=ze,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(e=>{const[t,r]=e.split(":");Re[t]=r});const r=document.querySelector(`style[${ze}]`);r&&(Te=!1,r.parentNode?.removeChild(r)),document.body.removeChild(e)}}(),!!Re[e]}(e)){const[t,r]=function(e){const t=Re[e];let r=null;if(t&&(0,m.A)())if(Te)r=Ie;else{const t=document.querySelector(`style[${u}="${Re[e]}"]`);t?r=t.innerHTML:delete Re[e]}return[r,t]}(e);if(t)return[t,r,{},l,c]}const o=t(),[a,s]=Le(o,{hashId:n,hashPriority:f,layer:y?i:void 0,path:r.join("-"),transformers:b,linters:v}),d=Be(a,$||!1);return[d,He(C,d),s,l,c]},(e,t)=>{const[,r]=e;t&&S&&(0,o.m6)(r,{mark:u,attachTo:g})},e=>{const[t,r,n,,a]=e;if(w&&t!==Ie){let e={mark:u,prepend:!y&&"queue",attachTo:g,priority:a};e=_(e,s);const i=[],l=[];Object.keys(n).forEach(e=>{e.startsWith("@layer")?i.push(e):l.push(e)}),i.forEach(t=>{(0,o.BD)(Be(n[t],$||!1),`_layer-${t}`,{...e,prepend:!0})}),(0,o.BD)(t,r,e)[d]=x.instanceId,l.forEach(t=>{(0,o.BD)(Be(n[t],$||!1),`_effect-${t}`,e)})}})}const Fe=(e,t)=>{const{key:r,prefix:n,unitless:i,ignore:s,token:l,hashId:m,scope:h,nonce:f}=e,{cache:{instanceId:g},container:b,hashPriority:v}=(0,a.useContext)(p),{_tokenKey:x}=l,y=Array.isArray(h)?h.join("@@"):h,$=[...e.path,r,y,x];return P("cssVar",$,()=>{const e=t(),[o,a]=j(e,r,{prefix:n,unitless:i,ignore:s,scope:h,hashPriority:v,hashCls:m});return[o,a,He($,a),r]},([,,e])=>{S&&(0,o.m6)(e,{mark:u,attachTo:b})},([,e,t])=>{if(!e)return;let n={mark:u,prepend:"queue",attachTo:b,priority:-999};n=_(n,f);const a=(0,o.BD)(e,t,n);a[d]=g,a.setAttribute(c,r)})},We=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function Ve(e){return e.notSplit=!0,e}Ve(["borderTop","borderBottom"]),Ve(["borderTop"]),Ve(["borderBottom"]),Ve(["borderLeft","borderRight"]),Ve(["borderLeft"]),Ve(["borderRight"])},2923(e,t,r){r.d(t,{Y:()=>l});const n={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},o=Math.round;function a(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)n[e]=t(n[e]||0,r[e]||"",e);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const i=(e,t,r)=>0===r?e:e/100;function s(e,t){const r=t||255;return e>r?r:e<0?0:e}class l{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const r=e.trim();function o(e){return r.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(o("rgb"))this.fromRgbString(r);else if(o("hsl"))this.fromHslString(r);else if(o("hsv")||o("hsb"))this.fromHsvString(r);else{const a=n[r.toLowerCase()];a&&this.fromHexString(parseInt(a,36).toString(16).padStart(6,"0"))}}else if(e instanceof l)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=s(e.r),this.g=s(e.g),this.b=s(e.b),this.a="number"==typeof e.a?s(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:o(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(void 0===this._hsv_s){const e=this.getMax()-this.getMin();this._hsv_s=0===e?0:e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(void 0===this._hsl_s){const e=this.getMax()-this.getMin();if(0===e)this._hsl_s=0;else{const t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()-e/100;return n<0&&(n=0),this._c({h:t,s:r,l:n,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let n=this.getLightness()+e/100;return n>1&&(n=1),this._c({h:t,s:r,l:n,a:this.a})}mix(e,t=50){const r=this._c(e),n=t/100,a=e=>(r[e]-this[e])*n+this[e],i={r:o(a("r")),g:o(a("g")),b:o(a("b")),a:o(100*a("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),n=e=>o((this[e]*this.a+t[e]*t.a*(1-this.a))/r);return this._c({r:n("r"),g:n("g"),b:n("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const r=(this.g||0).toString(16);e+=2===r.length?r:"0"+r;const n=(this.b||0).toString(16);if(e+=2===n.length?n:"0"+n,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=o(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=o(100*this.getHSLSaturation()),r=o(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,r){const n=this.clone();return n[e]=s(t,r),n}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function r(e,r){return parseInt(t[e]+t[r||e],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a:n}){const a=(e%360+360)%360;if(this._h=a,this._hsl_s=t,this._l=r,this.a="number"==typeof n?n:1,t<=0){const e=o(255*r);return this.r=e,this.g=e,void(this.b=e)}let i=0,s=0,l=0;const c=a/60,u=(1-Math.abs(2*r-1))*t,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,s=d):c>=1&&c<2?(i=d,s=u):c>=2&&c<3?(s=u,l=d):c>=3&&c<4?(s=d,l=u):c>=4&&c<5?(i=d,l=u):c>=5&&c<6&&(i=u,l=d);const p=r-u/2;this.r=o(255*(i+p)),this.g=o(255*(s+p)),this.b=o(255*(l+p))}fromHsv({h:e,s:t,v:r,a:n}){const a=(e%360+360)%360;this._h=a,this._hsv_s=t,this._v=r,this.a="number"==typeof n?n:1;const i=o(255*r);if(this.r=i,this.g=i,this.b=i,t<=0)return;const s=a/60,l=Math.floor(s),c=s-l,u=o(r*(1-t)*255),d=o(r*(1-t*c)*255),p=o(r*(1-t*(1-c))*255);switch(l){case 0:this.g=p,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=p;break;case 3:this.r=u,this.g=d;break;case 4:this.r=p,this.g=u;break;default:this.g=u,this.b=d}}fromHsvString(e){const t=a(e,i);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=a(e,i);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=a(e,(e,t)=>t.includes("%")?o(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},2662(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"}},932(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"}},7982(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},152(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},9730(e,t){t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"}},9180(e,t){t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"}},111(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"}},153(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},6390(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"}},4254(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"}},3433(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"}},1078(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"}},5591(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},2068(e,t){t.A={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"}},7694(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}},8749(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"}},2530(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z"}}]},name:"font-size",theme:"outlined"}},756(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},6654(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},5e3(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},8331(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1156 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z"}}]},name:"lock",theme:"filled"}},9909(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"}},4764(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"}},5842(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"}},3198(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},7110(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},7354(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"}},9866(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"}},949(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"}},6267(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7z"}}]},name:"thunderbolt",theme:"filled"}},693(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"}},1851(e,t){t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},6695(e,t,r){r.d(t,{A:()=>w});var n=r(1609),o=r.n(n),a=r(4164),i=r(1053);const s="data-rc-order",l="data-rc-priority",c=new Map;function u(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function d({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function p(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function m(e){return Array.from((c.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function h(e,t={}){if(!u())return null;const{csp:r,prepend:n,priority:o=0}=t,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(n),i="prependQueue"===a,c=document.createElement("style");c.setAttribute(s,a),i&&o&&c.setAttribute(l,`${o}`),r?.nonce&&(c.nonce=r.nonce),c.innerHTML=e;const d=p(t),{firstChild:h}=d;if(n){if(i){const e=(t.styles||m(d)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(s)))return!1;const t=Number(e.getAttribute(l)||0);return o>=t});if(e.length)return d.insertBefore(c,e[e.length-1].nextSibling),c}d.insertBefore(c,h)}else d.appendChild(c);return c}const f={};function g(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function b(e={}){return Object.keys(e).reduce((t,r)=>{const n=e[r];var o;return"class"===r?(t.className=n,delete t.class):(delete t[r],t[o=r,o.replace(/-(.)/g,(e,t)=>t.toUpperCase())]=n),t},{})}function v(e,t,r){return r?o().createElement(e.tag,{key:t,...b(e.attrs),...r},(e.children||[]).map((r,n)=>v(r,`${t}-${e.tag}-${n}`))):o().createElement(e.tag,{key:t,...b(e.attrs)},(e.children||[]).map((r,n)=>v(r,`${t}-${e.tag}-${n}`)))}const x=e=>{const{csp:t,prefixCls:r,layer:o,zeroRuntime:a}=(0,n.useContext)(i.A);let s="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin {\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(s=s.replace(/anticon/g,r)),o&&(s=`@layer ${o} {\n${s}\n}`),(0,n.useEffect)(()=>{if(a)return;const r=function(e){const t=function(e){return e?.getRootNode?.()}(e);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:null}(e.current);!function(e,t,r={}){if(!u())return null;const n=p(r),o=m(n),a={...r,styles:o};!function(e,t){const r=c.get(e);if(!r||!function(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}(document,r)){const r=h("",t);if(!r)return;const{parentNode:n}=r;c.set(e,n),e.removeChild(r)}}(n,a);const i=function(e,t={}){let{styles:r}=t;return r||=m(p(t)),r.find(r=>r.getAttribute(d(t))===e)}(t,a);if(i)return a.csp?.nonce&&i.nonce!==a.csp.nonce&&(i.nonce=a.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const s=h(e,a);s?.setAttribute(d(a),t)}(s,"@ant-design-icons",{prepend:!o,csp:t,attachTo:r})},[])},y=e=>{const{icon:t,className:r,onClick:o,style:a,primaryColor:i,secondaryColor:s,...l}=e,c=n.useRef(null);if(x(c),function(e,t){e||f[t]||(f[t]=!0)}(g(t),`[@ant-design/icons] ${`icon should be icon definiton, but got ${t}`}`),!g(t))return null;const u=t;return v(u.icon,`svg-${u.name}`,{className:r,onClick:o,style:a,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};y.displayName="IconReact";const $=y;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}const w=n.forwardRef((e,t)=>{const{className:r,icon:o,spin:s,rotate:l,tabIndex:c,onClick:u,twoToneColor:d,...p}=e,{prefixCls:m="anticon",rootClassName:h}=n.useContext(i.A),f=(0,a.$)(h,m,{[`${m}-${o.name}`]:!!o.name,[`${m}-spin`]:!!s||"loading"===o.name},r);let g=c;void 0===g&&u&&(g=-1);const b=l?{msTransform:`rotate(${l}deg)`,transform:`rotate(${l}deg)`}:void 0;return n.createElement("span",C({role:"img","aria-label":o.name},p,{ref:t,tabIndex:g,onClick:u,className:f}),n.createElement($,{icon:o,style:b}))})},1053(e,t,r){const n=(0,r(1609).createContext)({});r.d(t,["A",0,n])},4768(e,t,r){var n=r(1609),o=r(7982),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},7906(e,t,r){var n=r(1609),o=r(152),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},4732(e,t,r){var n=r(1609),o=r(9730),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},5886(e,t,r){var n=r(1609),o=r(9180),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},513(e,t,r){var n=r(1609),o=r(111),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},3964(e,t,r){var n=r(1609),o=r(6390),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},4824(e,t,r){var n=r(1609),o=r(4254),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},5539(e,t,r){var n=r(1609),o=r(3433),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},9729(e,t,r){var n=r(1609),o=r(5591),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},5010(e,t,r){var n=r(1609),o=r(756),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},6962(e,t,r){var n=r(1609),o=r(5e3),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},8940(e,t,r){var n=r(1609),o=r(3198),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},4588(e,t,r){var n=r(1609),o=r(7110),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},4044(e,t,r){var n=r(1609),o=r(7354),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},736(e,t,r){var n=r(1609),o=r(9866),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},9387(e,t,r){var n=r(1609),o=r(693),a=r(6695);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const s=(e,t)=>n.createElement(a.A,i({},e,{ref:t,icon:o.A})),l=n.forwardRef(s);r.d(t,["A",0,l])},3643(e,t,r){r.d(t,{Q1:()=>s,ZC:()=>h,Ay:()=>k});var n=r(1609),o=r.n(n),a=r(2923);const i=e=>Math.round(Number(e||0));class s extends a.Y{constructor(e){super((e=>{if(e instanceof a.Y)return e;if(e&&"object"==typeof e&&"h"in e&&"b"in e){const{b:t,...r}=e;return{...r,v:t}}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e})(e))}toHsbString(){const e=this.toHsb(),t=i(100*e.s),r=i(100*e.b),n=i(e.h),o=e.a,a=`hsb(${n}, ${t}%, ${r}%)`,s=`hsba(${n}, ${t}%, ${r}%, ${o.toFixed(0===o?0:2)})`;return 1===o?a:s}toHsb(){const{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}}const l="rc-color-picker",c=e=>e instanceof s?e:new s(e),u=c("#1677ff"),d=e=>{const{offset:t,targetRef:r,containerRef:n,color:o,type:a}=e,{width:i,height:s}=n.current.getBoundingClientRect(),{width:l,height:u}=r.current.getBoundingClientRect(),d=l/2,p=u/2,m=(t.x+d)/i,h=1-(t.y+p)/s,f=o.toHsb(),g=m,b=(t.x+d)/i*360;if(a)switch(a){case"hue":return c({...f,h:b<=0?0:b});case"alpha":return c({...f,a:g<=0?0:g})}return c({h:f.h,s:m<=0?0:m,b:h>=1?1:h,a:f.a})},p=(e,t)=>{const r=e.toHsb();switch(t){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*r.s,y:100*(1-r.b)}}};var m=r(4164);const h=({color:e,prefixCls:t,className:r,style:n,innerClassName:a,innerStyle:i,onClick:s})=>{const l=`${t}-color-block`;return o().createElement("div",{className:(0,m.$)(l,r),style:n,onClick:s},o().createElement("div",{className:(0,m.$)(`${l}-inner`,a),style:{background:e,...i}}))},f=function(e){const{targetRef:t,containerRef:r,direction:o,onDragChange:a,onDragChangeComplete:i,calculate:s,color:l,disabledDrag:c}=e,[u,d]=(0,n.useState)({x:0,y:0}),p=(0,n.useRef)(null),m=(0,n.useRef)(null);(0,n.useEffect)(()=>{d(s())},[l]),(0,n.useEffect)(()=>()=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null},[]);const h=e=>{const{pageX:n,pageY:i}=function(e){const t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}(e),{x:s,y:l,width:c,height:d}=r.current.getBoundingClientRect(),{width:p,height:m}=t.current.getBoundingClientRect(),h=p/2,f=m/2,g=Math.max(0,Math.min(n-s,c))-h,b=Math.max(0,Math.min(i-l,d))-f,v={x:g,y:"x"===o?u.y:b};if(0===p&&0===m||p!==m)return!1;a?.(v)},f=e=>{e.preventDefault(),h(e)},g=e=>{e.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,i?.()};return[u,e=>{document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),c||(h(e),document.addEventListener("mousemove",f),document.addEventListener("mouseup",g),document.addEventListener("touchmove",f),document.addEventListener("touchend",g),p.current=f,m.current=g)}]};var g=r(6487);const b=({size:e="default",color:t,prefixCls:r})=>o().createElement("div",{className:(0,m.$)(`${r}-handler`,{[`${r}-handler-sm`]:"small"===e}),style:{backgroundColor:t}}),v=({children:e,style:t,prefixCls:r})=>o().createElement("div",{className:`${r}-palette`,style:{position:"relative",...t}},e),x=(0,n.forwardRef)((e,t)=>{const{children:r,x:n,y:a}=e;return o().createElement("div",{ref:t,style:{position:"absolute",left:`${n}%`,top:`${a}%`,zIndex:1,transform:"translate(-50%, -50%)"}},r)}),y=({color:e,onChange:t,prefixCls:r,onChangeComplete:a,disabled:i})=>{const s=(0,n.useRef)(),l=(0,n.useRef)(),c=(0,n.useRef)(e),u=(0,g._q)(r=>{const n=d({offset:r,targetRef:l,containerRef:s,color:e});c.current=n,t(n)}),[m,h]=f({color:e,containerRef:s,targetRef:l,calculate:()=>p(e),onDragChange:u,onDragChangeComplete:()=>a?.(c.current),disabledDrag:i});return o().createElement("div",{ref:s,className:`${r}-select`,onMouseDown:h,onTouchStart:h},o().createElement(v,{prefixCls:r},o().createElement(x,{x:m.x,y:m.y,ref:l},o().createElement(b,{color:e.toRgbString(),prefixCls:r})),o().createElement("div",{className:`${r}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},$=({colors:e,children:t,direction:r="to right",type:a,prefixCls:i})=>{const l=(0,n.useMemo)(()=>e.map((t,r)=>{let n=c(t);return"alpha"===a&&r===e.length-1&&(n=new s(n.setA(1))),n.toRgbString()}).join(","),[e,a]);return o().createElement("div",{className:`${i}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${r}, ${l})`}},t)},C=e=>{const{prefixCls:t,colors:r,disabled:a,onChange:i,onChangeComplete:l,color:c,type:u}=e,h=(0,n.useRef)(null),y=(0,n.useRef)(null),C=(0,n.useRef)(c),w=e=>"hue"===u?e.getHue():100*e.a,S=(0,g._q)(e=>{const t=d({offset:e,targetRef:y,containerRef:h,color:c,type:u});C.current=t,i(w(t))}),[k,E]=f({color:c,targetRef:y,containerRef:h,calculate:()=>p(c,u),onDragChange:S,onDragChangeComplete(){l(w(C.current))},direction:"x",disabledDrag:a}),_=o().useMemo(()=>{if("hue"===u){const e=c.toHsb();return e.s=1,e.b=1,e.a=1,new s(e)}return c},[c,u]),A=o().useMemo(()=>r.map(e=>`${e.color} ${e.percent}%`),[r]);return o().createElement("div",{ref:h,className:(0,m.$)(`${t}-slider`,`${t}-slider-${u}`),onMouseDown:E,onTouchStart:E},o().createElement(v,{prefixCls:t},o().createElement(x,{x:k.x,y:k.y,ref:y},o().createElement(b,{size:"small",color:_.toHexString(),prefixCls:t})),o().createElement($,{colors:A,type:u,prefixCls:t})))};function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}const S=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],k=(0,n.forwardRef)((e,t)=>{const{value:r,defaultValue:a,prefixCls:i=l,onChange:d,onChangeComplete:p,className:f,style:b,panelRender:v,disabledAlpha:x=!1,disabled:$=!1,components:k}=e,[E]=function(e){return n.useMemo(()=>{const{slider:t}=e||{};return[t||C]},[e])}(k),[_,A]=((e,t)=>{const[r,o]=(0,g.PW)(e,t);return[(0,n.useMemo)(()=>c(r),[r]),o]})(a||u,r),N=(0,n.useMemo)(()=>_.setA(1).toRgbString(),[_]),j=(e,t)=>{r||A(e),d?.(e,t)},M=e=>new s(_.setHue(e)),P=e=>new s(_.setA(e/100)),z=(0,m.$)(`${i}-panel`,f,{[`${i}-panel-disabled`]:$}),I={prefixCls:i,disabled:$,color:_},R=o().createElement(o().Fragment,null,o().createElement(y,w({onChange:j},I,{onChangeComplete:p})),o().createElement("div",{className:`${i}-slider-container`},o().createElement("div",{className:(0,m.$)(`${i}-slider-group`,{[`${i}-slider-group-disabled-alpha`]:x})},o().createElement(E,w({},I,{type:"hue",colors:S,min:0,max:359,value:_.getHue(),onChange:e=>{j(M(e),{type:"hue",value:e})},onChangeComplete:e=>{p&&p(M(e))}})),!x&&o().createElement(E,w({},I,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:N}],min:0,max:100,value:100*_.a,onChange:e=>{j(P(e),{type:"alpha",value:e})},onChangeComplete:e=>{p&&p(P(e))}}))),o().createElement(h,{color:_.toRgbString(),prefixCls:i})));return o().createElement("div",{className:z,style:b,ref:t},"function"==typeof v?v(R):R)})},3168(e,t,r){r.d(t,{Z:()=>h,A:()=>C});var n=r(6277),o=r(1609),a=r.n(o);const i=o.createContext({});var s=r(4164),l=r(6487);function c(e,t,r){let n=t;return!n&&r&&(n=`${e}-${r}`),n}function u(e,t){let r=e[`page${t?"Y":"X"}Offset`];const n="scroll"+(t?"Top":"Left");if("number"!=typeof r){const t=e.document;r=t.documentElement[n],"number"!=typeof r&&(r=t.body[n])}return r}var d=r(3057);const p=o.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}const h=a().forwardRef((e,t)=>{const{prefixCls:r,className:n,style:c,title:u,ariaId:d,footer:h,closable:f,closeIcon:g,onClose:b,children:v,bodyStyle:x,bodyProps:y,modalRender:$,onMouseDown:C,onMouseUp:w,holderRef:S,visible:k,forceRender:E,width:_,height:A,classNames:N,styles:j,isFixedPos:M,focusTrap:P}=e,{panel:z}=a().useContext(i),I=(0,o.useRef)(null),R=(0,l.xK)(S,z,I),[T]=(0,l.T$)(k&&M&&!1!==P,()=>I.current);a().useImperativeHandle(t,()=>({focus:()=>{I.current?.focus({preventScroll:!0})}}));const O={};void 0!==_&&(O.width=_),void 0!==A&&(O.height=A);const B=h?a().createElement("div",{className:(0,s.$)(`${r}-footer`,N?.footer),style:{...j?.footer}},h):null,L=u?a().createElement("div",{className:(0,s.$)(`${r}-header`,N?.header),style:{...j?.header}},a().createElement("div",{className:(0,s.$)(`${r}-title`,N?.title),id:d,style:{...j?.title}},u)):null,H=(0,o.useMemo)(()=>"object"==typeof f&&null!==f?f:f?{closeIcon:g??a().createElement("span",{className:`${r}-close-x`})}:{},[f,g,r]),D=(0,l.KE)(H,!0),F="object"==typeof f&&f.disabled,W=f?a().createElement("button",m({type:"button",onClick:b,"aria-label":"Close"},D,{className:(0,s.$)(`${r}-close`,N?.close),disabled:F,style:j?.close}),H.closeIcon):null,V=a().createElement("div",{className:(0,s.$)(`${r}-container`,N?.container),style:j?.container},W,L,a().createElement("div",m({className:(0,s.$)(`${r}-body`,N?.body),style:{...x,...j?.body}},y),v),B);return a().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?d:null,"aria-modal":"true",ref:R,style:{...c,...O},className:(0,s.$)(r,n),onMouseDown:C,onMouseUp:w,tabIndex:-1,onFocus:e=>{T(e.target)}},a().createElement(p,{shouldUpdate:k||E},$?$(V):V))});function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}const g=o.forwardRef((e,t)=>{const{prefixCls:r,title:n,style:a,className:i,visible:l,forceRender:c,destroyOnHidden:p,motionName:m,ariaId:g,onVisibleChanged:b,mousePosition:v}=e,x=(0,o.useRef)(null),y=(0,o.useRef)(null);o.useImperativeHandle(t,()=>({...y.current,inMotion:x.current.inMotion,enableMotion:x.current.enableMotion}));const[$,C]=o.useState(),w={};function S(){if(!x.current?.nativeElement)return;const e=function(e){const t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,o=n.defaultView||n.parentWindow;return r.left+=u(o),r.top+=u(o,!0),r}(x.current.nativeElement);C(v&&(v.x||v.y)?`${v.x-e.left}px ${v.y-e.top}px`:"")}return $&&(w.transformOrigin=$),o.createElement(d.Ay,{visible:l,onVisibleChanged:b,onAppearPrepare:S,onEnterPrepare:S,forceRender:c,motionName:m,removeOnLeave:p,ref:x},({className:t,style:l},c)=>o.createElement(h,f({},e,{ref:y,title:n,ariaId:g,prefixCls:r,holderRef:c,style:{...l,...a,...w},className:(0,s.$)(i,t)})))});function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}const v=e=>{const{prefixCls:t,style:r,visible:n,maskProps:a,motionName:i,className:l}=e;return o.createElement(d.Ay,{key:"mask",visible:n,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:e,style:n},i)=>o.createElement("div",b({ref:i,style:{...n,...r},className:(0,s.$)(`${t}-mask`,e,l)},a)))};function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},x.apply(this,arguments)}const y=e=>{const{prefixCls:t="rc-dialog",zIndex:r,visible:n=!1,focusTriggerAfterClose:a=!0,wrapStyle:i,wrapClassName:u,wrapProps:d,onClose:p,afterOpenChange:m,afterClose:h,transitionName:f,animation:b,closable:y=!0,mask:$=!0,maskTransitionName:C,maskAnimation:w,maskClosable:S=!0,maskStyle:k,maskProps:E,rootClassName:_,rootStyle:A,classNames:N,styles:j}=e,M=(0,o.useRef)(null),P=(0,o.useRef)(null),z=(0,o.useRef)(null),[I,R]=o.useState(n),[T,O]=o.useState(!1),B=(0,l.Bi)();function L(){if(R(!1),$&&M.current&&a){try{M.current.focus({preventScroll:!0})}catch(e){}M.current=null}I&&h?.()}function H(e){p?.(e)}const D=(0,o.useRef)(!1);let F=null;S&&(F=e=>{P.current===e.target&&D.current&&H(e)}),(0,o.useEffect)(()=>{if(n){if(D.current=!1,R(!0),(0,l.gR)(P.current,document.activeElement)||(M.current=document.activeElement),P.current){const e=getComputedStyle(P.current);O("fixed"===e.position)}}else I&&z.current.enableMotion()&&!z.current.inMotion()&&L()},[n]);const W={zIndex:r,...i,...j?.wrapper,display:I?null:"none"};return o.createElement("div",x({className:(0,s.$)(`${t}-root`,_),style:A},(0,l.KE)(e,{data:!0})),o.createElement(v,{prefixCls:t,visible:$&&n,motionName:c(t,C,w),style:{zIndex:r,...k,...j?.mask},maskProps:E,className:N?.mask}),o.createElement("div",x({className:(0,s.$)(`${t}-wrap`,u,N?.wrapper),ref:P,onClick:F,onMouseDown:function(e){D.current=e.target===P.current},style:W},d),o.createElement(g,x({},e,{isFixedPos:T,ref:z,closable:y,ariaId:B,prefixCls:t,visible:n&&I,onClose:H,onVisibleChanged:function(e){e?(0,l.gR)(P.current,document.activeElement)||z.current?.focus():L(),m?.(e)},motionName:c(t,f,b)}))))};function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}const C=e=>{const{visible:t,getContainer:r,forceRender:a,destroyOnHidden:s=!1,afterClose:l,closable:c,panelRef:u,keyboard:d=!0,scrollLock:p=!0,onClose:m}=e,{scrollLock:h,...f}=e,[g,b]=o.useState(t),v=o.useMemo(()=>({panel:u}),[u]);return o.useEffect(()=>{t&&b(!0)},[t]),a||!s||g?o.createElement(i.Provider,{value:v},o.createElement(n.A,{open:t||a||g,onEsc:({top:e,event:t})=>{if(e&&d)return t.stopPropagation(),void m?.(t)},autoDestroy:!1,getContainer:r,autoLock:p&&(t||g)},o.createElement(y,$({},f,{destroyOnHidden:s,afterClose:()=>{const e=c&&"object"==typeof c?c:{},{afterClose:t}=e||{};t?.(),l?.(),b(!1)}})))):null}},6639(e,t,r){r.d(t,{fs:()=>S,Ay:()=>k});var n=r(4164),o=r(1609),a=r.n(o);function i(e,t,r){const n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},o}function s(e,t,r,n){if(!r)return;let o=t;return"click"===t.type?(o=i(t,e,""),void r(o)):"file"!==e.type&&void 0!==n?(o=i(t,e,n),void r(o)):void r(o)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}const c=a().forwardRef((e,t)=>{const{inputElement:r,children:i,prefixCls:s,prefix:c,suffix:u,addonBefore:d,addonAfter:p,className:m,style:h,disabled:f,readOnly:g,focused:b,triggerFocus:v,allowClear:x,value:y,handleReset:$,hidden:C,classes:w,classNames:S,dataAttrs:k,styles:E,components:_,onClear:A}=e,N=i??r,j=_?.affixWrapper||"span",M=_?.groupWrapper||"span",P=_?.wrapper||"span",z=_?.groupAddon||"span",I=(0,o.useRef)(null),R=e=>{I.current?.contains(e.target)&&v?.()},T=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e);let O=(0,o.cloneElement)(N,{value:y,className:(0,n.$)(N.props?.className,!T&&S?.variant)||null});const B=(0,o.useRef)(null);if(a().useImperativeHandle(t,()=>({nativeElement:B.current||I.current})),T){let e=null;if(x){const t=!f&&!g&&y&&!("object"==typeof x&&x.disabled),r=`${s}-clear-icon`,o="object"==typeof x&&x?.clearIcon?x.clearIcon:"✖";e=a().createElement("button",{type:"button",onClick:e=>{$?.(e),A?.()},onMouseDown:e=>e.preventDefault(),className:(0,n.$)(r,{[`${r}-hidden`]:!t,[`${r}-has-suffix`]:!!u},S?.clear),style:E?.clear},o)}const t=`${s}-affix-wrapper`,r=(0,n.$)(t,{[`${s}-disabled`]:f,[`${t}-disabled`]:f,[`${t}-focused`]:b,[`${t}-readonly`]:g,[`${t}-input-with-clear-btn`]:u&&x&&y},w?.affixWrapper,S?.affixWrapper,S?.variant),o=(u||x)&&a().createElement("span",{className:(0,n.$)(`${s}-suffix`,S?.suffix),style:E?.suffix},e,u);O=a().createElement(j,l({className:r,style:E?.affixWrapper,onClick:R},k?.affixWrapper,{ref:I}),c&&a().createElement("span",{className:(0,n.$)(`${s}-prefix`,S?.prefix),style:E?.prefix},c),O,o)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){const e=`${s}-group`,t=`${e}-addon`,r=`${e}-wrapper`,o=(0,n.$)(`${s}-wrapper`,e,w?.wrapper,S?.wrapper),i=(0,n.$)(r,{[`${r}-disabled`]:f},w?.group,S?.groupWrapper);O=a().createElement(M,{className:i,ref:B},a().createElement(P,{className:o},d&&a().createElement(z,{className:t},d),O,p&&a().createElement(z,{className:t},p)))}return a().cloneElement(O,{className:(0,n.$)(O.props?.className,m)||null,style:{...O.props?.style,...h},hidden:C})});var u=r(6487);function d(e,t){return o.useMemo(()=>{let r={};t&&(r.show="object"==typeof t&&t.formatter?t.formatter:!!t),r={...r,...e};const{show:n,...o}=r;return{...o,show:!!n,showFormatter:"function"==typeof n?n:void 0,strategy:o.strategy||(e=>e.length)}},[e,t])}function p({countConfig:e,value:t,maxLength:r}){return o.useMemo(()=>{const n=e.max??r,o=e.strategy(t),a=!!n&&o>n,i=Number(n)>0;return{mergedMax:n,isOutOfRange:a,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:o,maxLength:n}):`${o}${i?` / ${n}`:""}`:void 0}},[e,r,t])}function m({countConfig:e,getTarget:t}){const[r,n]=o.useState(null),a=o.useRef(t);return o.useEffect(()=>{a.current=t},[t]),o.useEffect(()=>{r&&(a.current()?.setSelectionRange(...r),n(null))},[r]),o.useCallback((t,r)=>{let o=t;return!r&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(o=e.exceedFormatter(t,{max:e.max}),t!==o&&n([a.current()?.selectionStart||0,a.current()?.selectionEnd||0])),o},[e])}function h(e,t){const[r,n]=(0,u.PW)(e,t);return{value:r,setValue:n,formatValue:null==r?"":String(r)}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}const g=(0,o.forwardRef)((e,t)=>{const{autoComplete:r,onChange:i,onFocus:l,onBlur:g,onPressEnter:b,onKeyDown:v,onKeyUp:x,prefixCls:y="rc-input",disabled:$,htmlSize:C,className:w,maxLength:S,suffix:k,showCount:E,count:_,type:A="text",classes:N,classNames:j,styles:M,onCompositionStart:P,onCompositionEnd:z,...I}=e,[R,T]=(0,o.useState)(!1),O=(0,o.useRef)(!1),B=(0,o.useRef)(!1),L=(0,o.useRef)(null),H=(0,o.useRef)(null),D=e=>{L.current&&(0,u.F4)(L.current,e)},{setValue:F,formatValue:W}=h(e.defaultValue,e.value),V=d(_,E),{isOutOfRange:q,dataCount:X}=p({countConfig:V,value:W,maxLength:S}),G=m({countConfig:V,getTarget:()=>L.current});(0,o.useImperativeHandle)(t,()=>({focus:D,blur:()=>{L.current?.blur()},setSelectionRange:(e,t,r)=>{L.current?.setSelectionRange(e,t,r)},select:()=>{L.current?.select()},input:L.current,nativeElement:H.current?.nativeElement||L.current})),(0,o.useEffect)(()=>{B.current&&(B.current=!1),T(e=>(!e||!$)&&e)},[$]);const K=(e,t,r)=>{const n=G(t,O.current);"compositionEnd"===r.source&&t===n||(F(n),L.current&&s(L.current,e,i,n))},U=e=>{K(e,e.target.value,{source:"change"})},Y=e=>{O.current=!1,K(e,e.currentTarget.value,{source:"compositionEnd"}),z?.(e)},Q=e=>{!b||"Enter"!==e.key||B.current||e.nativeEvent.isComposing||(B.current=!0,b(e)),v?.(e)},Z=e=>{"Enter"===e.key&&(B.current=!1),x?.(e)},J=e=>{T(!0),l?.(e)},ee=e=>{B.current&&(B.current=!1),T(!1),g?.(e)},te=q&&`${y}-out-of-range`;return a().createElement(c,f({},I,{prefixCls:y,className:(0,n.$)(w,te),handleReset:e=>{F(""),D(),L.current&&s(L.current,e,i)},value:W,focused:R,triggerFocus:D,suffix:k||V.show?a().createElement(a().Fragment,null,V.show&&a().createElement("span",{className:(0,n.$)(`${y}-show-count-suffix`,{[`${y}-show-count-has-suffix`]:!!k},j?.count),style:{...M?.count}},X),k):null,disabled:$,classes:N,classNames:j,styles:M,ref:H}),(()=>{const t=(0,u.cJ)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return a().createElement("input",f({autoComplete:r},t,{onChange:U,onFocus:J,onBlur:ee,onKeyDown:Q,onKeyUp:Z,className:(0,n.$)(y,{[`${y}-disabled`]:$},j?.input),style:M?.input,ref:L,size:C,type:A,onCompositionStart:e=>{O.current=!0,P?.(e)},onCompositionEnd:Y}))})())});var b=r(73);const v=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],x={};let y;function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}const C=o.forwardRef((e,t)=>{const{prefixCls:r,defaultValue:a,value:i,autoSize:s,onResize:l,className:c,style:d,disabled:p,onChange:m,onInternalAutoSize:h,...f}=e,[g,C]=(0,u.PW)(a,i),w=g??"",S=o.useRef(null);o.useImperativeHandle(t,()=>({textArea:S.current}));const[k,E]=o.useMemo(()=>s&&"object"==typeof s?[s.minRows,s.maxRows]:[],[s]),_=!!s,[A,N]=o.useState(2),[j,M]=o.useState(),P=()=>{N(0)};(0,u.Nf)(()=>{_&&P()},[i,k,E,_]),(0,u.Nf)(()=>{if(0===A)N(1);else if(1===A){const e=function(e,t=!1,r=null,n=null){y||(y=document.createElement("textarea"),y.setAttribute("tab-index","-1"),y.setAttribute("aria-hidden","true"),y.setAttribute("name","hiddenTextarea"),document.body.appendChild(y)),e.getAttribute("wrap")?y.setAttribute("wrap",e.getAttribute("wrap")):y.removeAttribute("wrap");const{paddingSize:o,borderSize:a,boxSizing:i,sizingStyle:s}=function(e,t=!1){const r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&x[r])return x[r];const n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s={sizingStyle:v.map(e=>`${e}:${n.getPropertyValue(e)}`).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(x[r]=s),s}(e,t);let l,c,u;y.setAttribute("style",`${s};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n`),y.value=e.value||e.placeholder||"";let d=y.scrollHeight;if("border-box"===i?d+=a:"content-box"===i&&(d-=o),null!==r||null!==n){y.value=" ";const e=y.scrollHeight-o;null!==r&&(l=e*r,"border-box"===i&&(l=l+o+a),d=Math.max(l,d)),null!==n&&(c=e*n,"border-box"===i&&(c=c+o+a),u=d>c?void 0:"hidden",d=Math.min(c,d))}const p={height:d,overflowY:u,resize:"none"};return l&&(p.minHeight=l),c&&(p.maxHeight=c),p}(S.current,!1,k,E);N(2),M(e)}},[A]);const z=o.useRef(void 0),I=()=>{void 0!==z.current&&u.er.cancel(z.current)};o.useEffect(()=>I,[]);const R={...d,..._?j:null};return 0!==A&&1!==A||(R.overflowY="hidden",R.overflowX="hidden"),o.createElement(b.Ay,{onResize:e=>{2===A&&(l?.(e),s&&(I(),z.current=(0,u.er)(()=>{P()})))},disabled:!(s||l)},o.createElement("textarea",$({},f,{ref:S,style:R,className:(0,n.$)(r,c,{[`${r}-disabled`]:p}),disabled:p,value:w,onChange:e=>{C(e.target.value),m?.(e)}})))});function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}const S=a().forwardRef(({defaultValue:e,value:t,onFocus:r,onBlur:i,onChange:l,allowClear:u,maxLength:f,onCompositionStart:g,onCompositionEnd:b,suffix:v,prefixCls:x="rc-textarea",showCount:y,count:$,className:S,style:k,disabled:E,hidden:_,classNames:A,styles:N,onResize:j,onClear:M,onPressEnter:P,readOnly:z,autoSize:I,onKeyDown:R,...T},O)=>{const[B,L]=a().useState(!1),H=a().useRef(!1),[D,F]=a().useState(null),W=(0,o.useRef)(null),V=(0,o.useRef)(null),q=()=>V.current?.textArea||null,{setValue:X,formatValue:G}=h(e,t),K=d($,y),{isOutOfRange:U,dataCount:Y}=p({countConfig:K,value:G,maxLength:f}),Q=m({countConfig:K,getTarget:()=>V.current?.textArea||null}),Z=()=>{q()?.focus()};(0,o.useImperativeHandle)(O,()=>({resizableTextArea:V.current,focus:Z,blur:()=>{q()?.blur()},nativeElement:W.current?.nativeElement||q()})),(0,o.useEffect)(()=>{L(e=>!E&&e)},[E]);const J=(e,t)=>{const r=Q(t,H.current);X(r),s(e.currentTarget,e,l,r)};let ee=v;K.show&&(ee=a().createElement(a().Fragment,null,ee,a().createElement("span",{className:(0,n.$)(`${x}-data-count`,A?.count),style:N?.count},Y)));const te=!I&&!y&&!u;return a().createElement(c,{ref:W,value:G,allowClear:u,handleReset:e=>{X(""),Z();const t=q();t&&s(t,e,l)},suffix:ee,prefixCls:x,classNames:{...A,affixWrapper:(0,n.$)(A?.affixWrapper,{[`${x}-show-count`]:y,[`${x}-textarea-allow-clear`]:u})},disabled:E,focused:B,className:(0,n.$)(S,U&&`${x}-out-of-range`),style:{...k,...D&&!te?{height:"auto"}:{}},dataAttrs:"string"==typeof Y?{affixWrapper:{"data-count":Y}}:void 0,styles:N,hidden:_,readOnly:z,onClear:M},a().createElement(C,w({},T,{autoSize:I,maxLength:f,onKeyDown:e=>{"Enter"===e.key&&P&&!e.nativeEvent.isComposing&&P(e),R?.(e)},onChange:e=>{J(e,e.target.value)},onFocus:e=>{L(!0),r?.(e)},onBlur:e=>{L(!1),i?.(e)},onCompositionStart:e=>{H.current=!0,g?.(e)},onCompositionEnd:e=>{H.current=!1,J(e,e.currentTarget.value),b?.(e)},className:(0,n.$)(A?.textarea),style:{resize:k?.resize,...N?.textarea},disabled:E,prefixCls:x,onResize:e=>{j?.(e),q()?.style.height&&F(!0)},ref:V,readOnly:z})))}),k=g},3057(e,t,r){r.d(t,{aF:()=>O,Kq:()=>s,Ay:()=>B});var n=r(6487),o=r(4164),a=r(1609);const i=a.createContext({}),s=e=>{const{children:t,...r}=e,n=a.useMemo(()=>({motion:r.motion}),[r.motion]);return a.createElement(i.Provider,{value:n},t)},l="prepare",c="prepared";function u(e,t){const r={};return r[e.toLowerCase()]=t.toLowerCase(),r[`Webkit${e}`]=`webkit${t}`,r[`Moz${e}`]=`moz${t}`,r[`ms${e}`]=`MS${t}`,r[`O${e}`]=`o${t.toLowerCase()}`,r}const d=function(e,t){const r={animationend:u("Animation","AnimationEnd"),transitionend:u("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}((0,n.OC)(),"undefined"!=typeof window?window:{});let p={};(0,n.OC)()&&({style:p}=document.createElement("div"));const m={};function h(e){if(m[e])return m[e];const t=d[e];if(t){const r=Object.keys(t),n=r.length;for(let o=0;o<n;o+=1){const n=r[o];if(Object.prototype.hasOwnProperty.call(t,n)&&n in p)return m[e]=t[n],m[e]}}return""}const f=h("animationend"),g=h("transitionend"),b=!(!f||!g),v=f||"animationend",x=g||"transitionend";function y(e,t){return e?"object"==typeof e?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}const $=e=>{const t=(0,a.useRef)();function r(t){t&&(t.removeEventListener(x,e),t.removeEventListener(v,e))}return a.useEffect(()=>()=>{r(t.current),t.current=null},[]),[function(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(x,e),n.addEventListener(v,e),t.current=n)},r]};r.dn($);const C=(0,n.OC)()?a.useLayoutEffect:a.useEffect,w=()=>{const e=a.useRef(null);function t(){n.er.cancel(e.current)}return a.useEffect(()=>()=>{t()},[]),[function r(o,a=2){t();const i=(0,n.er)(()=>{a<=1?o({isCanceled:()=>i!==e.current}):r(o,a-1)});e.current=i},t]};r.dn(w);const S=[l,"start","active","end"],k=[l,c];function E(e){return"active"===e||"end"===e}const _=(e,t,r)=>{const[o,i]=(0,n.J0)("none"),[s,c]=w(),u=t?k:S;return C(()=>{if("none"!==o&&"end"!==o){const e=u.indexOf(o),t=u[e+1],n=r(o);!1===n?i(t,!0):t&&s(e=>{function r(){e.isCanceled()||i(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,o]),a.useEffect(()=>()=>{c()},[]),[function(){i(l,!0)},o]};function A(e){return e?.length<2}r.dn(_);const N=function(e){let t=e;"object"==typeof e&&({transitionSupport:t}=e);const r=a.forwardRef((e,r)=>{const{visible:s=!0,removeOnLeave:u=!0,forceRender:d,children:p,motionName:m,leavedClassName:h,eventProps:f}=e,{motion:g}=a.useContext(i),b=function(e,r){return!(!e.motionName||!t||!1===r)}(e,g),v=(0,a.useRef)();function x(){return(0,n.rb)(v.current)}const[w,S,k,N,j]=function(e,t,r,{motionEnter:o=!0,motionAppear:i=!0,motionLeave:s=!0,motionDeadline:u,motionLeaveImmediately:d,onAppearPrepare:p,onEnterPrepare:m,onLeavePrepare:h,onAppearStart:f,onEnterStart:g,onLeaveStart:b,onAppearActive:v,onEnterActive:x,onLeaveActive:y,onAppearEnd:w,onEnterEnd:S,onLeaveEnd:k,onVisibleChanged:A}){const[N,j]=a.useState(),[M,P]=(0,n.M7)("none"),[z,I]=a.useState([null,null]),R=M(),T=(0,a.useRef)(!1),O=(0,a.useRef)(null);function B(){return r()}const L=(0,a.useRef)(!1);function H(){P("none"),I([null,null])}const D=(0,n._q)(e=>{const t=M();if("none"===t)return;const r=B();if(e&&!e.deadline&&e.target!==r)return;const n=L.current;let o;"appear"===t&&n?o=w?.(r,e):"enter"===t&&n?o=S?.(r,e):"leave"===t&&n&&(o=k?.(r,e)),n&&!1!==o&&H()}),[F]=$(D),W=e=>{switch(e){case"appear":return{[l]:p,start:f,active:v};case"enter":return{[l]:m,start:g,active:x};case"leave":return{[l]:h,start:b,active:y};default:return{}}},V=a.useMemo(()=>W(R),[R]),[q,X]=_(R,!e,e=>{if(e===l){const e=V[l];return!!e&&e(B())}return e in V&&I([V[e]?.(B(),null)||null,e]),"active"===e&&"none"!==R&&(F(B()),u>0&&(clearTimeout(O.current),O.current=setTimeout(()=>{D({deadline:!0})},u))),e===c&&H(),!0}),G=E(X);L.current=G;const K=(0,a.useRef)(null);C(()=>{if(T.current&&K.current===t)return;j(t);const r=T.current;let n;T.current=!0,!r&&t&&i&&(n="appear"),r&&t&&o&&(n="enter"),(r&&!t&&s||!r&&d&&!t&&s)&&(n="leave");const a=W(n);n&&(e||a[l])?(P(n),q()):P("none"),K.current=t},[t]),(0,a.useEffect)(()=>{("appear"===R&&!i||"enter"===R&&!o||"leave"===R&&!s)&&P("none")},[i,o,s]),(0,a.useEffect)(()=>()=>{T.current=!1,clearTimeout(O.current)},[]);const U=a.useRef(!1);(0,a.useEffect)(()=>{N&&(U.current=!0),void 0!==N&&"none"===R&&((U.current||N)&&A?.(N),U.current=!0)},[N,R]);let Y=z[0];V[l]&&"start"===X&&(Y={transition:"none",...Y});const Q=z[1];return[M,X,Y,N??t,!T.current&&"none"===R&&e&&i?"NONE":"start"!==X&&"active"!==X||Q===X]}(b,s,x,e),M=w(),P=a.useRef(N);N&&(P.current=!0);const z=a.useMemo(()=>{const e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:x},inMotion:{enumerable:!0,get:()=>()=>"none"!==w()},enableMotion:{enumerable:!0,get:()=>()=>b}}),e},[]);a.useImperativeHandle(r,()=>z,[]);const I=a.useRef(0);j&&(I.current+=1);const R=a.useMemo(()=>{if("NONE"===j)return null;let e;const t={...f,visible:s};if(p)if("none"===M)e=N?p({...t},v):!u&&P.current&&h?p({...t,className:h},v):d||!u&&!h?p({...t,style:{display:"none"}},v):null;else{let r;S===l?r="prepare":E(S)?r="active":"start"===S&&(r="start");const n=y(m,`${M}-${r}`);e=p({...t,className:(0,o.$)(y(m,M),{[n]:n&&r,[m]:"string"==typeof m}),style:k},v)}else e=null;return e},[I.current]);if(A(p)&&(0,n.H3)(R)){const e=(0,n.A9)(R);if(e!==v)return a.cloneElement(R,{ref:(0,n.K4)(e,v)})}return R});return r.displayName="CSSMotion",r}(b),j="keep",M="remove",P="removed";function z(e){let t;return t=e&&"object"==typeof e&&"key"in e?e:{key:e},{...t,key:String(t.key)}}function I(e=[]){return e.map(z)}function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(this,arguments)}const T=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],O=function(e,t=N){class r extends a.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){const r=I(e),n=function(e=[],t=[]){let r=[],n=0;const o=t.length,a=I(e),i=I(t);a.forEach(e=>{let t=!1;for(let a=n;a<o;a+=1){const o=i[a];if(o.key===e.key){n<a&&(r=r.concat(i.slice(n,a).map(e=>({...e,status:"add"}))),n=a),r.push({...o,status:j}),n+=1,t=!0;break}}t||r.push({...e,status:M})}),n<o&&(r=r.concat(i.slice(n).map(e=>({...e,status:"add"}))));const s={};return r.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{r=r.filter(({key:t,status:r})=>t!==e||r!==M),r.forEach(t=>{t.key===e&&(t.status=j)})}),r}(t,r);return{keyEntities:n.filter(e=>{const r=t.find(({key:t})=>e.key===t);return!r||r.status!==P||"remove"!==e.status})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key!==e?t:{...t,status:P})}),()=>{const{keyEntities:e}=this.state;0===e.filter(({status:e})=>e!==P).length&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:e}=this.state,{component:r,children:n,onVisibleChanged:o,onAllRemoved:i,...s}=this.props,l=r||a.Fragment,c={};return T.forEach(e=>{c[e]=s[e],delete s[e]}),delete s.keys,a.createElement(l,s,e.map(({status:e,...r},i)=>{const s="add"===e||"keep"===e;return a.createElement(t,R({},c,{key:r.key,visible:s,eventProps:r,onVisibleChanged:e=>{o?.(e,{key:r.key}),e||this.removeKey(r.key)}}),A(n)?e=>n({...e,index:i}):(e,t)=>n({...e,index:i},t))}))}}return r}(),B=N},3997(e,t,r){r.d(t,{A:()=>S});var n=r(8168),o=r(1609),a=r.n(o),i=r(4164),s=r(73),l=r(2847);const c=void 0;function u(e,t){const{prefixCls:r,invalidate:a,item:l,renderItem:u,responsive:d,responsiveDisabled:p,registerSize:m,itemKey:h,className:f,style:g,children:b,display:v,order:x,component:y="div",...$}=e,C=d&&!v;function w(e){m(h,e)}o.useEffect(()=>()=>{w(null)},[]);const S=u&&l!==c?u(l,{index:x}):b;let k;a||(k={opacity:C?0:1,height:C?0:c,overflowY:C?"hidden":c,order:d?x:c,pointerEvents:C?"none":c,position:C?"absolute":c});const E={};C&&(E["aria-hidden"]=!0);let _=o.createElement(y,(0,n.A)({className:(0,i.$)(!a&&r,f),style:{...k,...g}},E,$,{ref:t}),S);return d&&(_=o.createElement(s.Ay,{onResize:({offsetWidth:e})=>{w(e)},disabled:p},_)),_}const d=o.forwardRef(u);var p=r(7506),m=r(5795),h=r(6533);function f(e,t){const[r,n]=o.useState(t);return[r,(0,p.A)(t=>{e(()=>{n(t)})})]}const g=a().createContext(null),b=(e,t)=>{const r=o.useContext(g);if(!r){const{component:r="div",...a}=e;return o.createElement(r,(0,n.A)({},a,{ref:t}))}const{className:a,...s}=r,{className:l,...c}=e;return o.createElement(g.Provider,{value:null},o.createElement(d,(0,n.A)({ref:t,className:(0,i.$)(a,l)},s,c)))},v=o.forwardRef(b),x="responsive",y="invalidate";function $(e){return`+ ${e.length} ...`}function C(e,t){const{prefixCls:r="rc-overflow",data:a=[],renderItem:c,renderRawItem:u,itemKey:p,itemWidth:b=10,ssr:v,style:C,className:w,maxCount:S,renderRest:k,renderRawRest:E,prefix:_,suffix:A,component:N="div",itemComponent:j,onVisibleChange:M,...P}=e,z="full"===v,I=function(){const e=o.useRef(null);return t=>{e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,h.A)(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}(()=>{(0,m.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}(),[R,T]=f(I,null),O=R||0,[B,L]=f(I,new Map),[H,D]=f(I,0),[F,W]=f(I,0),[V,q]=f(I,0),[X,G]=f(I,0),[K,U]=(0,o.useState)(null),[Y,Q]=(0,o.useState)(null),Z=o.useMemo(()=>null===Y&&z?Number.MAX_SAFE_INTEGER:Y||0,[Y,R]),[J,ee]=(0,o.useState)(!1),te=`${r}-item`,re=Math.max(H,F),ne=S===x,oe=a.length&&ne,ae=S===y,ie=oe||"number"==typeof S&&a.length>S,se=(0,o.useMemo)(()=>{let e=a;return oe?e=null===R&&z?a:a.slice(0,Math.min(a.length,O/b)):"number"==typeof S&&(e=a.slice(0,S)),e},[a,b,R,S,oe]),le=(0,o.useMemo)(()=>oe?a.slice(Z+1):a.slice(se.length),[a,se,oe,Z]),ce=(0,o.useCallback)((e,t)=>"function"==typeof p?p(e):(p&&e?.[p])??t,[p]),ue=(0,o.useCallback)(c||(e=>e),[c]);function de(e,t,r){(Y!==e||void 0!==t&&t!==K)&&(Q(e),r||(ee(e<a.length-1),M?.(e)),void 0!==t&&U(t))}function pe(e,t){L(r=>{const n=new Map(r);return null===t?n.delete(e):n.set(e,t),n})}function me(e){return B.get(ce(se[e],e))}(0,l.A)(()=>{if(O&&"number"==typeof re&&se){let e=V+X;const t=se.length,r=t-1;if(!t)return void de(0,null);for(let n=0;n<t;n+=1){let t=me(n);if(z&&(t=t||0),void 0===t){de(n-1,void 0,!0);break}if(e+=t,0===r&&e<=O||n===r-1&&e+me(r)<=O){de(r,null);break}if(e+re>O){de(n-1,e-t-X+F);break}}A&&me(0)+X>O&&U(null)}},[O,B,F,V,X,ce,se]);const he=J&&!!le.length;let fe={};null!==K&&oe&&(fe={position:"absolute",top:0,insetInlineStart:K});const ge={prefixCls:te,responsive:oe,component:j,invalidate:ae},be=u?(e,t)=>{const r=ce(e,t);return o.createElement(g.Provider,{key:r,value:{...ge,order:t,item:e,itemKey:r,registerSize:pe,display:t<=Z}},u(e,t))}:(e,t)=>{const r=ce(e,t);return o.createElement(d,(0,n.A)({},ge,{order:t,key:r,item:e,renderItem:ue,itemKey:r,registerSize:pe,display:t<=Z}))},ve={order:he?Z:Number.MAX_SAFE_INTEGER,className:`${te}-rest`,registerSize:function(e,t){W(t),D(F)},display:he},xe=k||$,ye=E?o.createElement(g.Provider,{value:{...ge,...ve}},E(le)):o.createElement(d,(0,n.A)({},ge,ve),"function"==typeof xe?xe(le):xe),$e=o.createElement(N,(0,n.A)({className:(0,i.$)(!ae&&r,w),style:C,ref:t},P),_&&o.createElement(d,(0,n.A)({},ge,{responsive:ne,responsiveDisabled:!oe,order:-1,className:`${te}-prefix`,registerSize:function(e,t){q(t)},display:!0}),_),se.map(be),ie?ye:null,A&&o.createElement(d,(0,n.A)({},ge,{responsive:ne,responsiveDisabled:!oe,order:Z,className:`${te}-suffix`,registerSize:function(e,t){G(t)},display:!0,style:fe}),A));return ne?o.createElement(s.Ay,{onResize:function(e,t){T(t.clientWidth)},disabled:!oe},$e):$e}const w=o.forwardRef(C);w.Item=v,w.RESPONSIVE=x,w.INVALIDATE=y;const S=w},5059(e,t,r){r.d(t,["A",0,{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}])},6277(e,t,r){r.d(t,{A:()=>g});var n=r(6487),o=r(1609),a=r(5795);const i=o.createContext(null);let s=!1;const l=[],c=`rc-util-locker-${Date.now()}`;let u=0;let d=[],p=0;const m=e=>{if("Escape"===e.key&&!e.isComposing){if(Date.now()-p<200)return;const t=d.length;for(let r=t-1;r>=0;r-=1)d[r].onEsc({top:r===t-1,event:e})}},h=()=>{p=Date.now()};const f=e=>!1!==e&&((0,n.OC)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null),g=o.forwardRef((e,t)=>{const{open:r,autoLock:p,getContainer:g,debug:b,autoDestroy:v=!0,children:x,onEsc:y}=e,[$,C]=o.useState(r),w=$||r;o.useEffect(()=>{(v||r)&&C(r)},[r,v]);const[S,k]=o.useState(()=>f(g));o.useEffect(()=>{const e=f(g);k(()=>e??null)});const[E,_]=function(e){const[t]=o.useState(()=>(0,n.OC)()?document.createElement("div"):null),r=o.useRef(!1),a=o.useContext(i),[s,c]=o.useState(l),u=a||(r.current?void 0:e=>{c(t=>[e,...t])});function d(){t.parentElement||document.body.appendChild(t),r.current=!0}function p(){t.parentElement?.removeChild(t),r.current=!1}return(0,n.Nf)(()=>(e?a?a(d):d():p(),p),[e]),(0,n.Nf)(()=>{s.length&&(s.forEach(e=>e()),c(l))},[s]),[t,u]}(w&&!S),A=S??E;(function(e){const t=!!e,[r]=o.useState(()=>(u+=1,`${c}_${u}`));(0,n.Nf)(()=>{if(t){const e=(0,n.V)(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,n.BD)(`\nhtml body {\n overflow-y: hidden;\n ${t?`width: calc(100% - ${e}px);`:""}\n}`,r)}else(0,n.m6)(r);return()=>{(0,n.m6)(r)}},[t,r])})(p&&r&&(0,n.OC)()&&(A===E||A===document.body)),function(e,t){const r=(0,n.Bi)(),a=(0,n._q)(t),i=()=>{d.find(e=>e.id===r)||d.push({id:r,onEsc:a})},s=()=>{d=d.filter(e=>e.id!==r)};(0,o.useMemo)(()=>{e?i():e||s()},[e]),(0,o.useEffect)(()=>{if(e)return i(),window.addEventListener("keydown",m),window.addEventListener("compositionend",h),()=>{s(),0===d.length&&(window.removeEventListener("keydown",m),window.removeEventListener("compositionend",h))}},[e])}(r,y);let N=null;x&&(0,n.f3)(x)&&t&&(N=(0,n.A9)(x));const j=(0,n.xK)(N,t);if(!w||!(0,n.OC)()||void 0===S)return null;const M=!1===A||s;let P=x;return t&&(P=o.cloneElement(x,{ref:j})),o.createElement(i.Provider,{value:_},M?P:(0,a.createPortal)(P,A))})},73(e,t,r){r.d(t,{Ay:()=>x,wY:()=>m});var n=r(1609),o=r(1076),a=(r(6536),r(7322)),i=r(1713);const s=n.createContext(null),l=new Map;function c(e){e.forEach(e=>{const{target:t}=e;l.get(t)?.forEach(e=>e(t))})}let u;function d(){return u||(u=new ResizeObserver(c)),u}var p=r(6487);function m(e,t,r,o){const a=n.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=(0,p._q)(e=>{const{width:t,height:n}=e.getBoundingClientRect(),{offsetWidth:i,offsetHeight:s}=e,l=Math.floor(t),c=Math.floor(n);if(a.current.width!==l||a.current.height!==c||a.current.offsetWidth!==i||a.current.offsetHeight!==s){const u={width:l,height:c,offsetWidth:i,offsetHeight:s};a.current=u;const d=i===Math.round(t)?t:i,p=s===Math.round(n)?n:s,m={...u,offsetWidth:d,offsetHeight:p};o?.(m,e),Promise.resolve().then(()=>{r?.(m,e)})}}),s="function"==typeof t,c=n.useRef(0);n.useEffect(()=>{const r=s?t():t;var n,o;return r&&e?(n=r,o=i,l.has(n)||(l.set(n,new Set),d().observe(n)),l.get(n).add(o)):e&&s&&(c.current+=1),()=>{r&&function(e,t){l.has(e)&&(l.get(e).delete(t),l.get(e).size||(d().unobserve(e),l.delete(e)))}(r,i)}},[e,s?c.current:t])}function h(e,t){const{children:r,disabled:o,onResize:l,data:c}=e,u=n.useRef(null),d=n.useContext(s),p="function"==typeof r,h=p?r(u):r,f=!p&&n.isValidElement(h)&&(0,i.f3)(h),g=f?(0,i.A9)(h):null,b=(0,i.xK)(g,u),v=()=>(0,a.rb)(u.current);return n.useImperativeHandle(t,()=>v()),m(!o,v,l,(e,t)=>{d?.(e,t,c)}),f?n.cloneElement(h,{ref:b}):h}const f=n.forwardRef(h);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function b(e,t){const{children:r}=e;return("function"==typeof r?[r]:(0,o.A)(r)).map((r,o)=>{const a=r?.key||`rc-observer-key-${o}`;return n.createElement(f,g({},e,{key:a,ref:0===o?t:void 0}),r)})}const v=n.forwardRef(b);v.Collection=function({children:e,onBatchResize:t}){const r=n.useRef(0),o=n.useRef([]),a=n.useContext(s),i=n.useCallback((e,n,i)=>{r.current+=1;const s=r.current;o.current.push({size:e,element:n,data:i}),Promise.resolve().then(()=>{s===r.current&&(t?.(o.current),o.current=[])}),a?.(e,n,i)},[t,a]);return n.createElement(s.Provider,{value:i},e)};const x=v},5781(e,t,r){r.d(t,{z:()=>a,A:()=>m});var n=r(4164),o=r(1609);const a=e=>{const{children:t,prefixCls:r,id:a,classNames:i,styles:s,className:l,style:c}=e;return o.createElement("div",{id:a,className:(0,n.$)(`${r}-container`,i?.container,l),style:{...s?.container,...c},role:"tooltip"},"function"==typeof t?t():t)};var i=r(9311),s=r(8057);const l={shiftX:64,adjustY:1},c={adjustX:1,shiftY:!0},u=[0,0],d={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:u}};function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}const m=o.forwardRef((e,t)=>{const{trigger:r=["hover"],mouseEnterDelay:l=0,mouseLeaveDelay:c=.1,prefixCls:u="rc-tooltip",children:m,onVisibleChange:h,afterVisibleChange:f,motion:g,placement:b="right",align:v={},destroyOnHidden:x=!1,defaultVisible:y,getTooltipContainer:$,arrowContent:C,overlay:w,id:S,showArrow:k=!0,classNames:E,styles:_,...A}=e,N=(0,s.Ay)(S),j=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,()=>j.current);const M={...A};"visible"in e&&(M.popupVisible=e.visible);const P=o.useMemo(()=>{if(!k)return!1;const e=!0===k?{}:k;return{...e,className:(0,n.$)(e.className,E?.arrow),style:{...e.style,..._?.arrow},content:e.content??C}},[k,E?.arrow,_?.arrow,C]),z=({open:e})=>{const t=o.Children.only(m),r={"aria-describedby":w&&e?N:void 0};return o.cloneElement(t,r)};return o.createElement(i.Ay,p({popupClassName:E?.root,prefixCls:u,popup:o.createElement(a,{key:"content",prefixCls:u,id:N,classNames:E,styles:_},w),action:r,builtinPlacements:d,popupPlacement:b,ref:j,popupAlign:v,getPopupContainer:$,onOpenChange:h,afterOpenChange:f,popupMotion:g,defaultPopupVisible:y,autoDestroy:x,mouseLeaveDelay:c,popupStyle:_?.root,mouseEnterDelay:l,arrow:P,uniqueContainerClassName:E?.uniqueContainer,uniqueContainerStyle:_?.uniqueContainer},M),z)})},9311(e,t,r){r.d(t,{xR:()=>O,Ay:()=>L});var n=r(6277),o=r(4164),a=r(73),i=r(6487),s=r(1609),l=r.n(s),c=r(3057);function u(e){const{prefixCls:t,align:r,arrow:n,arrowPos:a}=e,{className:i,content:l,style:c}=n||{},{x:u=0,y:d=0}=a,p=s.useRef(null);if(!r||!r.points)return null;const m={position:"absolute"};if(!1!==r.autoArrow){const e=r.points[0],t=r.points[1],n=e[0],o=e[1],a=t[0],i=t[1];n!==a&&["t","b"].includes(n)?"t"===n?m.top=0:m.bottom=0:m.top=d,o!==i&&["l","r"].includes(o)?"l"===o?m.left=0:m.right=0:m.left=u}return s.createElement("div",{ref:p,className:(0,o.$)(`${t}-arrow`,i),style:{...m,...c}},l)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function p(e){const{prefixCls:t,open:r,zIndex:n,mask:a,motion:i,mobile:l}=e;return a?s.createElement(c.Ay,d({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),({className:e})=>s.createElement("div",{style:{zIndex:n},className:(0,o.$)(`${t}-mask`,l&&`${t}-mobile-mask`,e)})):null}const m=s.memo(({children:e})=>e,(e,t)=>t.cache);function h(e,t,r,n,o,a,i,s){const l="auto",c=e?{}:{left:"-1000vw",top:"-1000vh",right:l,bottom:l};if(!e&&(t||!r)){const{points:e}=n,t=n.dynamicInset||n._experimental?.dynamicInset,r=t&&"r"===e[0][1],u=t&&"b"===e[0][0];r?(c.right=o,c.left=l):(c.left=i,c.right=l),u?(c.bottom=a,c.top=l):(c.top=s,c.bottom=l)}return c}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}const g=s.forwardRef((e,t)=>{const{onEsc:r,popup:n,className:l,prefixCls:d,style:g,target:b,onVisibleChanged:v,open:x,keepDom:y,fresh:$,onClick:C,mask:w,arrow:S,arrowPos:k,align:E,motion:_,maskMotion:A,mobile:N,forceRender:j,getPopupContainer:M,autoDestroy:P,portal:z,children:I,zIndex:R,onMouseEnter:T,onMouseLeave:O,onPointerEnter:B,onPointerDownCapture:L,ready:H,offsetX:D,offsetY:F,offsetR:W,offsetB:V,onAlign:q,onPrepare:X,onResize:G,stretch:K,targetWidth:U,targetHeight:Y}=e,Q="function"==typeof n?n():n,Z=x||y,J=!!N,[ee,te,re]=s.useMemo(()=>N?[N.mask,N.maskMotion,N.motion]:[w,A,_],[N,w,A,_]),ne=M?.length>0,[oe,ae]=s.useState(!M||!ne);(0,i.Nf)(()=>{!oe&&ne&&b&&ae(!0)},[oe,ne,b]);const ie=(0,i._q)((e,t)=>{G?.(e,t),q()}),se=h(J,H,x,E,W,V,D,F);if(!oe)return null;const le={};return K&&(K.includes("height")&&Y?le.height=Y:K.includes("minHeight")&&Y&&(le.minHeight=Y),K.includes("width")&&U?le.width=U:K.includes("minWidth")&&U&&(le.minWidth=U)),x||(le.pointerEvents="none"),s.createElement(z,{open:j||Z,getContainer:M&&(()=>M(b)),autoDestroy:P,onEsc:r},s.createElement(p,{prefixCls:d,open:x,zIndex:R,mask:ee,motion:te,mobile:J}),s.createElement(a.Ay,{onResize:ie,disabled:!x},e=>s.createElement(c.Ay,f({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:j,leavedClassName:`${d}-hidden`},re,{onAppearPrepare:X,onEnterPrepare:X,visible:x,onVisibleChanged:e=>{_?.onVisibleChanged?.(e),v(e)}}),({className:r,style:n},a)=>{const c=(0,o.$)(d,r,l,{[`${d}-mobile`]:J});return s.createElement("div",{ref:(0,i.K4)(e,t,a),className:c,style:{"--arrow-x":`${k.x||0}px`,"--arrow-y":`${k.y||0}px`,...se,...le,...n,boxSizing:"border-box",zIndex:R,...g},onMouseEnter:T,onMouseLeave:O,onPointerEnter:B,onClick:C,onPointerDownCapture:L},S&&s.createElement(u,{prefixCls:d,arrow:S,arrowPos:k,align:E}),s.createElement(m,{cache:!x&&!$},Q))})),I)}),b=s.createContext(null),v=s.createContext(null);function x(e){return e?Array.isArray(e)?e:[e]:[]}function y(e=[],t=[],r){const n=(e,t)=>e[t]||"";return r?n(e,0)===n(t,0):n(e,0)===n(t,0)&&n(e,1)===n(t,1)}function $(e,t,r,n){const{points:o}=r,a=Object.keys(e);for(let r=0;r<a.length;r+=1){const i=a[r];if(y(e[i]?.points,o,n))return`${t}-placement-${i}`}return""}function C(e){return e.ownerDocument.defaultView}function w(e){const t=[];let r=e?.parentElement;const n=["hidden","scroll","clip","auto"];for(;r;){const{overflowX:e,overflowY:o,overflow:a}=C(r).getComputedStyle(r);[e,o,a].some(e=>n.includes(e))&&t.push(r),r=r.parentElement}return t}function S(e,t=1){return Number.isNaN(e)?t:e}function k(e){return S(parseFloat(e),0)}function E(e,t){const r={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;const{overflow:t,overflowClipMargin:n,borderTopWidth:o,borderBottomWidth:a,borderLeftWidth:i,borderRightWidth:s}=C(e).getComputedStyle(e),l=e.getBoundingClientRect(),{offsetHeight:c,clientHeight:u,offsetWidth:d,clientWidth:p}=e,m=k(o),h=k(a),f=k(i),g=k(s),b=S(Math.round(l.width/d*1e3)/1e3),v=S(Math.round(l.height/c*1e3)/1e3),x=(d-p-f-g)*b,y=(c-u-m-h)*v,$=m*v,w=h*v,E=f*b,_=g*b;let A=0,N=0;if("clip"===t){const e=k(n);A=e*b,N=e*v}const j=l.x+E-A,M=l.y+$-N,P=j+l.width+2*A-E-_-x,z=M+l.height+2*N-$-w-y;r.left=Math.max(r.left,j),r.top=Math.max(r.top,M),r.right=Math.min(r.right,P),r.bottom=Math.min(r.bottom,z)}),r}function _(e,t=0){const r=`${t}`,n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function A(e,t){const[r,n]=t||[];return[_(e.width,r),_(e.height,n)]}function N(e=""){return[e[0],e[1]]}function j(e,t){const r=t[0],n=t[1];let o,a;return a="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,o="l"===n?e.x:"r"===n?e.x+e.width:e.x+e.width/2,{x:o,y:a}}function M(e,t){const r=[...e];return r[t]={t:"b",b:"t",l:"r",r:"l"}[e[t]]||"c",r}function P(e){return e.join("")}function z(e,t,r,n,o,a,l,c){const[u,d]=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),p=s.useRef(0),m=s.useMemo(()=>!t||c?[]:w(t),[t]),h=s.useRef({});e||(h.current={});const f=(0,i._q)(()=>{if(t&&r&&e&&!c){const s=t,u=s.ownerDocument,p=C(s),{position:f}=p.getComputedStyle(s),g=s.style.left,b=s.style.top,v=s.style.right,x=s.style.bottom,y=s.style.overflow,$=s.style.overflowX,w=s.style.overflowY,k={...o[n],...a},_=u.createElement("div");let z;if(s.parentElement?.appendChild(_),_.style.left=`${s.offsetLeft}px`,_.style.top=`${s.offsetTop}px`,_.style.position=f,_.style.height=`${s.offsetHeight}px`,_.style.width=`${s.offsetWidth}px`,s.style.left="0",s.style.top="0",s.style.right="auto",s.style.bottom="auto",s.style.overflow="hidden",Array.isArray(r))z={x:r[0],y:r[1],width:0,height:0};else{const ot=r.getBoundingClientRect();ot.x=ot.x??ot.left,ot.y=ot.y??ot.top,z={x:ot.x,y:ot.y,width:ot.width,height:ot.height}}const I=s.getBoundingClientRect(),{height:R,width:T}=p.getComputedStyle(s);I.x=I.x??I.left,I.y=I.y??I.top;const{clientWidth:O,clientHeight:B,scrollWidth:L,scrollHeight:H,scrollTop:D,scrollLeft:F}=u.documentElement,W=I.height,V=I.width,q=z.height,X=z.width,G={left:0,top:0,right:O,bottom:B},K={left:-F,top:-D,right:L-F,bottom:H-D};let{htmlRegion:U}=k;const Y="visible",Q="visibleFirst";"scroll"!==U&&U!==Q&&(U=Y);const Z=U===Q,J=E(K,m),ee=E(G,m),te=U===Y?ee:J,re=Z?ee:te;s.style.left="auto",s.style.top="auto",s.style.right="0",s.style.bottom="0";const ne=s.getBoundingClientRect();s.style.left=g,s.style.top=b,s.style.right=v,s.style.bottom=x,s.style.overflow=y,s.style.overflowX=$,s.style.overflowY=w,s.parentElement?.removeChild(_);const oe=S(Math.round(V/parseFloat(T)*1e3)/1e3),ae=S(Math.round(W/parseFloat(R)*1e3)/1e3);if(0===oe||0===ae||(0,i.fk)(r)&&!(0,i.zN)(r))return;const{offset:ie,targetOffset:se}=k;let[le,ce]=A(I,ie);const[ue,de]=A(z,se);z.x-=ue,z.y-=de;const[pe,me]=k.points||[],he=N(me),fe=N(pe),ge=j(z,he),be=j(I,fe),ve={...k};let xe=[fe,he],ye=ge.x-be.x+le,$e=ge.y-be.y+ce;function Ce(e,t,r=te){const n=I.x+e,o=I.y+t,a=n+V,i=o+W,s=Math.max(n,r.left),l=Math.max(o,r.top),c=Math.min(a,r.right),u=Math.min(i,r.bottom);return Math.max(0,(c-s)*(u-l))}const we=Ce(ye,$e),Se=Ce(ye,$e,ee),ke=j(z,["t","l"]),Ee=j(I,["t","l"]),_e=j(z,["b","r"]),Ae=j(I,["b","r"]),Ne=k.overflow||{},{adjustX:je,adjustY:Me,shiftX:Pe,shiftY:ze}=Ne,Ie=e=>"boolean"==typeof e?e:e>=0;let Re,Te,Oe,Be;function Le(){Re=I.y+$e,Te=Re+W,Oe=I.x+ye,Be=Oe+V}Le();const He=Ie(Me),De=fe[0]===he[0];if(He&&"t"===fe[0]&&(Te>re.bottom||h.current.bt)){let at=$e;De?at-=W-q:at=ke.y-Ae.y-ce;const it=Ce(ye,at),st=Ce(ye,at,ee);it>we||it===we&&(!Z||st>=Se)?(h.current.bt=!0,$e=at,ce=-ce,xe=[M(xe[0],0),M(xe[1],0)]):h.current.bt=!1}if(He&&"b"===fe[0]&&(Re<re.top||h.current.tb)){let lt=$e;De?lt+=W-q:lt=_e.y-Ee.y-ce;const ct=Ce(ye,lt),ut=Ce(ye,lt,ee);ct>we||ct===we&&(!Z||ut>=Se)?(h.current.tb=!0,$e=lt,ce=-ce,xe=[M(xe[0],0),M(xe[1],0)]):h.current.tb=!1}const Fe=Ie(je),We=fe[1]===he[1];if(Fe&&"l"===fe[1]&&(Be>re.right||h.current.rl)){let dt=ye;We?dt-=V-X:dt=ke.x-Ae.x-le;const pt=Ce(dt,$e),mt=Ce(dt,$e,ee);pt>we||pt===we&&(!Z||mt>=Se)?(h.current.rl=!0,ye=dt,le=-le,xe=[M(xe[0],1),M(xe[1],1)]):h.current.rl=!1}if(Fe&&"r"===fe[1]&&(Oe<re.left||h.current.lr)){let ht=ye;We?ht+=V-X:ht=_e.x-Ee.x-le;const ft=Ce(ht,$e),gt=Ce(ht,$e,ee);ft>we||ft===we&&(!Z||gt>=Se)?(h.current.lr=!0,ye=ht,le=-le,xe=[M(xe[0],1),M(xe[1],1)]):h.current.lr=!1}ve.points=[P(xe[0]),P(xe[1])],Le();const Ve=!0===Pe?0:Pe;"number"==typeof Ve&&(Oe<ee.left&&(ye-=Oe-ee.left-le,z.x+X<ee.left+Ve&&(ye+=z.x-ee.left+X-Ve)),Be>ee.right&&(ye-=Be-ee.right-le,z.x>ee.right-Ve&&(ye+=z.x-ee.right+Ve)));const qe=!0===ze?0:ze;"number"==typeof qe&&(Re<ee.top&&($e-=Re-ee.top-ce,z.y+q<ee.top+qe&&($e+=z.y-ee.top+q-qe)),Te>ee.bottom&&($e-=Te-ee.bottom-ce,z.y>ee.bottom-qe&&($e+=z.y-ee.bottom+qe)));const Xe=I.x+ye,Ge=Xe+V,Ke=I.y+$e,Ue=Ke+W,Ye=z.x,Qe=Ye+X,Ze=z.y,Je=Ze+q,et=(Math.max(Xe,Ye)+Math.min(Ge,Qe))/2-Xe,tt=(Math.max(Ke,Ze)+Math.min(Ue,Je))/2-Ke;l?.(t,ve);let rt=ne.right-I.x-(ye+I.width),nt=ne.bottom-I.y-($e+I.height);1===oe&&(ye=Math.floor(ye),rt=Math.floor(rt)),1===ae&&($e=Math.floor($e),nt=Math.floor(nt)),d({ready:!0,offsetX:ye/oe,offsetY:$e/ae,offsetR:rt/oe,offsetB:nt/ae,arrowX:et/oe,arrowY:tt/ae,scaleX:oe,scaleY:ae,align:ve})}}),g=()=>{d(e=>({...e,ready:!1}))};return(0,i.Nf)(g,[n]),(0,i.Nf)(()=>{e||g()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,()=>{p.current+=1;const e=p.current;Promise.resolve().then(()=>{p.current===e&&f()})}]}function I(){const e=s.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return s.useEffect(()=>()=>{t()},[]),(r,n)=>{t(),0===n?r():e.current=setTimeout(()=>{r()},1e3*n)}}function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R.apply(this,arguments)}const T=e=>{const{prefixCls:t,isMobile:r,ready:n,open:a,align:i,offsetR:s,offsetB:u,offsetX:d,offsetY:p,arrowPos:m,popupSize:f,motion:g,uniqueContainerClassName:b,uniqueContainerStyle:v}=e,x=`${t}-unique-container`,[y,$]=l().useState(!1),C=h(r,n,a,i,s,u,d,p),w=l().useRef(C);n&&(w.current=C);const S={};return f&&(S.width=f.width,S.height=f.height),l().createElement(c.Ay,R({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${x}-hidden`},g,{visible:a,onVisibleChanged:e=>{$(e)}}),({className:e,style:t})=>{const r=(0,o.$)(x,e,b,{[`${x}-visible`]:y});return l().createElement("div",{className:r,style:{"--arrow-x":`${m?.x||0}px`,"--arrow-y":`${m?.y||0}px`,...w.current,...S,...t,...v}})})},O=({children:e,postTriggerProps:t})=>{const[r,a,c,u]=function(){const[e,t]=l().useState(null),[r,n]=l().useState(!1),[o,a]=l().useState(!1),s=l().useRef(null),c=(0,i._q)(e=>{!1===e?(s.current=null,n(!1)):o&&r?s.current=e:(n(!0),t(e),s.current=null,r||a(!0))}),u=(0,i._q)(e=>{e?(a(!1),s.current&&(t(s.current),s.current=null)):(a(!1),s.current=null)});return[c,r,e,u]}(),d=s.useMemo(()=>c&&t?t(c):c,[c,t]),[p,m]=s.useState(null),[h,f]=s.useState(null),x=s.useRef(null),y=(0,i._q)(e=>{x.current=e,(0,i.fk)(e)&&p!==e&&m(e)}),C=s.useRef(null),w=I(),S=(0,i._q)((e,t)=>{C.current=t,w(()=>{r(e)},e.delay)}),k=e=>{w(()=>{C.current?.()||r(!1)},e)},E=(0,i._q)(e=>{u(e)}),[_,A,N,j,M,P,R,,,O,B]=z(a,p,d?.target,d?.popupPlacement,d?.builtinPlacements||{},d?.popupAlign,void 0,!1),L=s.useMemo(()=>{if(!d)return"";const e=$(d.builtinPlacements||{},d.prefixCls||"",O,!1);return(0,o.$)(e,d.getPopupClassNameFromAlign?.(O))},[O,d?.getPopupClassNameFromAlign,d?.builtinPlacements,d?.prefixCls]),H=s.useMemo(()=>({show:S,hide:k}),[]);s.useEffect(()=>{B()},[d?.target]);const D=(0,i._q)(()=>(B(),Promise.resolve())),F=s.useRef({}),W=s.useContext(b),V=s.useMemo(()=>({registerSubPopup:(e,t)=>{F.current[e]=t,W?.registerSubPopup(e,t)}}),[W]),q=d?.prefixCls;return s.createElement(v.Provider,{value:H},e,d&&s.createElement(b.Provider,{value:V},s.createElement(g,{ref:y,portal:n.A,onEsc:d.onEsc,prefixCls:q,popup:d.popup,className:(0,o.$)(d.popupClassName,L,`${q}-unique-controlled`),style:d.popupStyle,target:d.target,open:a,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:E,ready:_,offsetX:A,offsetY:N,offsetR:j,offsetB:M,onAlign:B,onPrepare:D,onResize:e=>f({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:P,y:R},align:O,zIndex:d.zIndex,mask:d.mask,arrow:d.arrow,motion:d.popupMotion,maskMotion:d.maskMotion,getPopupContainer:d.getPopupContainer},s.createElement(T,{prefixCls:q,isMobile:!1,ready:_,open:a,align:O,offsetR:j,offsetB:M,offsetX:A,offsetY:N,arrowPos:{x:P,y:R},popupSize:h,motion:d.popupMotion,uniqueContainerClassName:(0,o.$)(d.uniqueContainerClassName,L),uniqueContainerStyle:d.uniqueContainerStyle}))))};var B=r(5795);const L=function(e=n.A){return s.forwardRef((t,r)=>{const{prefixCls:n="rc-trigger-popup",children:l,action:c="hover",showAction:u,hideAction:d,disabled:p=!1,popupVisible:m,defaultPopupVisible:h,onOpenChange:f,afterOpenChange:y,onPopupVisibleChange:S,afterPopupVisibleChange:k,mouseEnterDelay:E,mouseLeaveDelay:_=.1,focusDelay:A,blurDelay:N,mask:j,maskClosable:M=!0,getPopupContainer:P,forceRender:R,autoDestroy:T,popup:O,popupClassName:L,uniqueContainerClassName:H,uniqueContainerStyle:D,popupStyle:F,popupPlacement:W,builtinPlacements:V={},popupAlign:q,zIndex:X,stretch:G,getPopupClassNameFromAlign:K,fresh:U,unique:Y,alignPoint:Q,onPopupClick:Z,onPopupAlign:J,arrow:ee,popupMotion:te,maskMotion:re,mobile:ne,...oe}=t,ae=T||!1,ie=void 0===m,se=!!ne,le=s.useRef({}),ce=s.useContext(b),ue=s.useMemo(()=>({registerSubPopup:(e,t)=>{le.current[e]=t,ce?.registerSubPopup(e,t)}}),[ce]),de=s.useContext(v),pe=(0,i.Bi)(),[me,he]=s.useState(null),fe=s.useRef(null),ge=(0,i._q)(e=>{fe.current=e,(0,i.fk)(e)&&me!==e&&he(e),ce?.registerSubPopup(pe,e)}),[be,ve]=s.useState(null),xe=s.useRef(null),ye=(0,i._q)(e=>{const t=(0,i.rb)(e);(0,i.fk)(t)&&be!==t&&(ve(t),xe.current=t)}),$e={},Ce=(0,i._q)(e=>{const t=be;return t?.contains(e)||(0,i.jG)(t)?.host===e||e===t||me?.contains(e)||(0,i.jG)(me)?.host===e||e===me||Object.values(le.current).some(t=>t?.contains(e)||e===t)}),we=ee?{...!0!==ee?ee:{}}:null,[Se,ke]=(0,i.PW)(h||!1,m),Ee=!!Se&&!p,_e=s.useMemo(()=>{const e="function"==typeof l?l({open:Ee}):l;return s.Children.only(e)},[l,Ee]),Ae=_e?.props||{},Ne=(0,i._q)(()=>Ee),je=(0,i._q)((e=0)=>({popup:O,target:be,delay:e,prefixCls:n,popupClassName:L,uniqueContainerClassName:H,uniqueContainerStyle:D,popupStyle:F,popupPlacement:W,builtinPlacements:V,popupAlign:q,zIndex:X,mask:j,maskClosable:M,popupMotion:te,maskMotion:re,arrow:we,getPopupContainer:P,getPopupClassNameFromAlign:K,id:pe,onEsc:Re}));(0,i.Nf)(()=>{de&&Y&&be&&!ie&&!ce&&(Ee?de.show(je(E),Ne):de.hide(_))},[Ee,be]);const Me=s.useRef(Ee);Me.current=Ee;const Pe=(0,i._q)(e=>{(0,B.flushSync)(()=>{Ee!==e&&(ke(e),f?.(e),S?.(e))})}),ze=I(),Ie=(e,t=0)=>{void 0===m&&de&&Y&&ie&&!ce?e?de.show(je(t),Ne):de.hide(t):ze(()=>{Pe(e)},t)};function Re({top:e}){e&&Ie(!1)}const[Te,Oe]=s.useState(!1);(0,i.Nf)(e=>{e&&!Ee||Oe(!0)},[Ee]);const[Be,Le]=s.useState(null),[He,De]=s.useState(null),Fe=e=>{De([e.clientX,e.clientY])},[We,Ve,qe,Xe,Ge,Ke,Ue,Ye,Qe,Ze,Je]=z(Ee,me,Q&&null!==He?He:be,W,V,q,J,se),[et,tt]=function(e,t,r){return s.useMemo(()=>{const n=x(t??e),o=x(r??e),a=new Set(n),i=new Set(o);return a.has("hover")&&!a.has("click")&&a.add("touch"),i.has("hover")&&!i.has("click")&&i.add("touch"),[a,i]},[e,t,r])}(c,u,d),rt=et.has("click"),nt=tt.has("click")||tt.has("contextMenu"),ot=(0,i._q)(()=>{Te||Je()});!function(e,t,r,n){(0,i.Nf)(()=>{if(e&&t&&r){const o=r,a=w(t),i=w(o),s=C(o),l=new Set([s,...a,...i]);function c(){n(),Me.current&&Q&&nt&&Ie(!1)}return l.forEach(e=>{e.addEventListener("scroll",c,{passive:!0})}),s.addEventListener("resize",c,{passive:!0}),n(),()=>{l.forEach(e=>{e.removeEventListener("scroll",c),s.removeEventListener("resize",c)})}}},[e,t,r])}(Ee,be,me,ot),(0,i.Nf)(()=>{ot()},[He,W]),(0,i.Nf)(()=>{Ee&&!V?.[W]&&ot()},[JSON.stringify(q)]);const at=s.useMemo(()=>{const e=$(V,n,Ze,Q);return(0,o.$)(e,K?.(Ze))},[Ze,K,V,n,Q]);s.useImperativeHandle(r,()=>({nativeElement:xe.current,popupElement:fe.current,forceAlign:ot}));const[it,st]=s.useState(0),[lt,ct]=s.useState(0),ut=()=>{if(G&&be){const e=be.getBoundingClientRect();st(e.width),ct(e.height)}};function dt(e,t,r,n,o){$e[e]=(a,...i)=>{o&&o()||(n?.(a),Ie(t,r)),Ae[e]?.(a,...i)}}(0,i.Nf)(()=>{Be&&(Je(),Be(),Le(null))},[Be]);const pt=et.has("touch"),mt=tt.has("touch"),ht=s.useRef(!1);(pt||mt)&&($e.onTouchStart=(...e)=>{ht.current=!0,Me.current&&mt?Ie(!1):!Me.current&&pt&&Ie(!0),Ae.onTouchStart?.(...e)}),(rt||nt)&&($e.onClick=(e,...t)=>{Me.current&&nt?Ie(!1):!Me.current&&rt&&(Fe(e),Ie(!0)),Ae.onClick?.(e,...t),ht.current=!1});const ft=function(e,t,r,n,o,a,l,c){const u=s.useRef(e);u.current=e;const d=s.useRef(!1);return s.useEffect(()=>{if(t&&n&&(!o||a)){const e=()=>{d.current=!1},t=e=>{!u.current||l(e.composedPath?.()?.[0]||e.target)||d.current||c(!1)},o=C(n);o.addEventListener("pointerdown",e,!0),o.addEventListener("mousedown",t,!0),o.addEventListener("contextmenu",t,!0);const a=(0,i.jG)(r);return a&&(a.addEventListener("mousedown",t,!0),a.addEventListener("contextmenu",t,!0)),()=>{o.removeEventListener("pointerdown",e,!0),o.removeEventListener("mousedown",t,!0),o.removeEventListener("contextmenu",t,!0),a&&(a.removeEventListener("mousedown",t,!0),a.removeEventListener("contextmenu",t,!0))}}},[t,r,n,o,a]),function(){d.current=!0}}(Ee,nt||mt,be,me,j,M,Ce,Ie),gt=et.has("hover"),bt=tt.has("hover");let vt,xt;const yt=()=>ht.current;if(gt){const e=e=>{Fe(e)};dt("onMouseEnter",!0,E,e,yt),dt("onPointerEnter",!0,E,e,yt),vt=e=>{(Ee||Te)&&me?.contains(e.target)&&Ie(!0,E)},Q&&($e.onMouseMove=e=>{Ae.onMouseMove?.(e)})}bt&&(dt("onMouseLeave",!1,_,void 0,yt),dt("onPointerLeave",!1,_,void 0,yt),xt=()=>{Ie(!1,_)}),et.has("focus")&&dt("onFocus",!0,A),tt.has("focus")&&dt("onBlur",!1,N),et.has("contextMenu")&&($e.onContextMenu=(e,...t)=>{Me.current&&tt.has("contextMenu")?Ie(!1):(Fe(e),Ie(!0)),e.preventDefault(),Ae.onContextMenu?.(e,...t)});const $t=s.useRef(!1);$t.current||=R||Ee||Te;const Ct={...Ae,...$e},wt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{oe[e]&&(wt[e]=(...t)=>{Ct[e]?.(...t),oe[e](...t)})});const St={x:Ke,y:Ue};(0,a.wY)(Ee,be,()=>{ut(),ot()});const kt=(0,i.xK)(ye,(0,i.A9)(_e)),Et=s.cloneElement(_e,{...Ct,...wt,ref:kt});return s.createElement(s.Fragment,null,Et,$t.current&&(!de||!Y)&&s.createElement(b.Provider,{value:ue},s.createElement(g,{portal:e,ref:ge,prefixCls:n,popup:O,className:(0,o.$)(L,!se&&at),style:F,target:be,onMouseEnter:vt,onMouseLeave:xt,onPointerEnter:vt,zIndex:X,open:Ee,keepDom:Te,fresh:U,onClick:Z,onPointerDownCapture:ft,mask:j,motion:te,maskMotion:re,onVisibleChanged:e=>{Oe(!1),Je(),y?.(e),k?.(e)},onPrepare:()=>new Promise(e=>{ut(),Le(()=>e)}),forceRender:R,autoDestroy:ae,getPopupContainer:P,onEsc:Re,align:Ze,arrow:we,arrowPos:St,ready:We,offsetX:Ve,offsetY:qe,offsetR:Xe,offsetB:Ge,onAlign:ot,stretch:G,targetWidth:it/Ye,targetHeight:lt/Qe,mobile:ne})))})}(n.A)},1076(e,t,r){r.d(t,{A:()=>i});var n=r(9526),o=r(1609),a=r.n(o);function i(e,t={}){let r=[];return a().Children.forEach(e,e=>{(null!=e||t.keepEmpty)&&(Array.isArray(e)?r=r.concat(i(e)):(0,n.A)(e)&&e.props?r=r.concat(i(e.props.children,t)):r.push(e))}),r}},1336(e,t,r){function n(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}r.d(t,{A:()=>n})},5506(e,t,r){function n(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}r.d(t,{A:()=>n})},9683(e,t,r){r.d(t,{BD:()=>h,m6:()=>m});var n=r(1336),o=r(5506);const a="data-rc-order",i="data-rc-priority",s=new Map;function l({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return Array.from((s.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function d(e,t={}){if(!(0,n.A)())return null;const{csp:r,prepend:o,priority:s=0}=t,l=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),d="prependQueue"===l,p=document.createElement("style");p.setAttribute(a,l),d&&s&&p.setAttribute(i,`${s}`),r?.nonce&&(p.nonce=r?.nonce),p.innerHTML=e;const m=c(t),{firstChild:h}=m;if(o){if(d){const e=(t.styles||u(m)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;const t=Number(e.getAttribute(i)||0);return s>=t});if(e.length)return m.insertBefore(p,e[e.length-1].nextSibling),p}m.insertBefore(p,h)}else m.appendChild(p);return p}function p(e,t={}){let{styles:r}=t;return r||=u(c(t)),r.find(r=>r.getAttribute(l(t))===e)}function m(e,t={}){const r=p(e,t);r&&c(t).removeChild(r)}function h(e,t,r={}){const n=c(r),a=u(n),i={...r,styles:a};!function(e,t){const r=s.get(e);if(!r||!(0,o.A)(document,r)){const r=d("",t),{parentNode:n}=r;s.set(e,n),e.removeChild(r)}}(n,i);const m=p(t,i);if(m)return i.csp?.nonce&&m.nonce!==i.csp?.nonce&&(m.nonce=i.csp?.nonce),m.innerHTML!==e&&(m.innerHTML=e),m;const h=d(e,i);return h.setAttribute(l(i),t),h}},7322(e,t,r){function n(e){return e instanceof HTMLElement||e instanceof SVGElement}function o(e){return e&&"object"==typeof e&&n(e.nativeElement)?e.nativeElement:n(e)?e:null}r.d(t,{fk:()=>n,rb:()=>o})},3415(e,t,r){r.d(t,{F4:()=>l,T$:()=>b,jD:()=>s});var n=r(1609),o=r(1309),a=r(8057);function i(e,t=!1){if((0,o.A)(e)){const r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||"a"===r&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o);let i=null;return o&&!Number.isNaN(a)?i=a:n&&null===i&&(i=0),n&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function s(e,t=!1){const r=[...e.querySelectorAll("*")].filter(e=>i(e,t));return i(e,t)&&r.unshift(e),r}function l(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const t=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}let c=null,u=[];const d=new Map,p=new Map;function m(){return u[u.length-1]}function h(){const e=m(),{activeElement:t}=document;if(!function(e){const t=m();if(e&&t){let r;for(const[e,n]of d.entries())if(n===t){r=e;break}const n=p.get(r);return!!n&&(n===e||n.contains(e))}return!1}(t))if(e&&!function(e){const{activeElement:t}=document;return e===t||e.contains(t)}(e)){const t=s(e),r=t.includes(c)?c:t[0];r?.focus({preventScroll:!0})}else c=t}function f(e){if("Tab"===e.key){const{activeElement:t}=document,r=s(m()),n=r[r.length-1];e.shiftKey&&t===r[0]?c=n:e.shiftKey||t!==n||(c=r[0])}}function g(e,t){return e&&(d.set(t,e),u=u.filter(t=>t!==e),u.push(e),window.addEventListener("focusin",h),window.addEventListener("keydown",f,!0),h()),()=>{c=null,u=u.filter(t=>t!==e),d.delete(t),p.delete(t),0===u.length&&(window.removeEventListener("focusin",h),window.removeEventListener("keydown",f,!0))}}function b(e,t){const r=(0,a.Ay)(),o=(0,n.useRef)(t);return o.current=t,function(t,a){const i=(0,n.useRef)(0),[s,l]=(0,n.useState)(0);(0,n.useEffect)(()=>{i.current=0},a),(0,n.useEffect)(()=>{const[t,n]=(t=>{if(!e)return[void 0,!0];const n=o.current();return n?[g(n,r),!0]:[void 0,t>=1]})(i.current);return n||(i.current+=1,l(e=>e+1)),t},[...a,s])}(0,[r,e]),[e=>{e&&p.set(r,e)}]}},1309(e,t,r){const n=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:r}=e.getBBox();if(t||r)return!0}if(e.getBoundingClientRect){const{width:t,height:r}=e.getBoundingClientRect();if(t||r)return!0}}return!1};r.dn(n),r.d(t,["A",0,n])},8558(e,t,r){const n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){const t=e.target;if(!(t instanceof HTMLElement))return!1;const r=t.tagName;return!("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r&&!t.isContentEditable)}},o=n;r.d(t,["A",0,o])},9526(e,t,r){r.d(t,{A:()=>i});const n=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(e){return e&&"object"==typeof e&&(e.$$typeof===n||e.$$typeof===o)&&e.type===a}},9893(e,t,r){r.d(t,{A:()=>a});var n=r(1609),o=r(2847);function a(e,t){const[r,a]=(0,n.useState)(e),i=void 0!==t?t:r;return(0,o.A)(e=>{e||a(t)},[t]),[i,a]}},7506(e,t,r){var n=r(1609);r.d(t,["A",0,e=>{const t=n.useRef(e);return t.current=e,n.useCallback((...e)=>t.current?.(...e),[])}])},8057(e,t,r){var n=r(1609);let o=0;const a={...n}.useId,i=a?function(e){const t=a();return e||t}:function(e){const[t,r]=n.useState("ssr-id");return n.useEffect(()=>{const e=o;o+=1,r(`rc_unique_${e}`)},[]),e||t};r.d(t,["Ay",0,i])},2847(e,t,r){var n=r(1609);const o=(0,r(1336).A)()?n.useLayoutEffect:n.useEffect,a=(e,t)=>{const r=n.useRef(!0);o(()=>e(r.current),t),o(()=>(r.current=!1,()=>{r.current=!0}),[])},i=a;r.d(t,["A",0,i,"o",0,(e,t)=>{a(t=>{if(!t)return e()},t)}])},3702(e,t,r){r.d(t,{A:()=>o});var n=r(1609);function o(e,t,r){const o=n.useRef({});return"value"in o.current&&!r(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},6487(e,t,r){r.d(t,{DD:()=>C.A,OC:()=>p.A,K4:()=>d.K4,gR:()=>m.A,Jt:()=>I,rb:()=>f.rb,jD:()=>g.jD,A9:()=>d.A9,jG:()=>x,V:()=>w,fk:()=>f.fk,n4:()=>S.A,Fr:()=>A,Fq:()=>$,zN:()=>b.A,h1:()=>L,v6:()=>z,cJ:()=>N.A,KE:()=>j.A,er:()=>M.A,m6:()=>h.m6,XX:()=>W,hZ:()=>T,H3:()=>d.H3,f3:()=>d.f3,$r:()=>P.A,F4:()=>g.F4,vs:()=>V,BD:()=>h.BD,xK:()=>d.xK,PW:()=>s.A,_q:()=>n.A,Bi:()=>l.Ay,Nf:()=>o.A,oM:()=>o.o,T$:()=>g.T$,Kr:()=>c.A,J0:()=>i,M7:()=>u,$e:()=>H.Ay});var n=r(7506),o=r(2847),a=r(1609);const i=e=>{const t=a.useRef(!1),[r,n]=a.useState(e);return a.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),[r,function(e,r){r&&t.current||n(e)}]};var s=r(9893),l=r(8057),c=r(3702);const u=function(e){const[,t]=a.useReducer(e=>e+1,0),r=a.useRef(e);return[(0,n.A)(()=>r.current),(0,n.A)(e=>{r.current="function"==typeof e?e(r.current):e,t()})]};var d=r(1713),p=r(1336),m=r(5506),h=r(9683),f=r(7322),g=r(3415),b=r(1309);function v(e){return e?.getRootNode?.()}function x(e){return function(e){return v(e)instanceof ShadowRoot}(e)?v(e):null}const y=e=>{if((0,p.A)()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:r}=window.document;return t.some(e=>e in r.style)}return!1};function $(e,t){return Array.isArray(e)||void 0===t?y(e):((e,t)=>{if(!y(e))return!1;const r=document.createElement("div"),n=r.style[e];return r.style[e]=t,r.style[e]!==n})(e,t)}var C=r(8558);function w(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,r=document.createElement("div");r.id=t;const n=r.style;let o,a;if(n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll",e){const r=getComputedStyle(e);n.scrollbarColor=r.scrollbarColor,n.scrollbarWidth=r.scrollbarWidth;const i=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(i.width,10),l=parseInt(i.height,10);try{const e=s?`width: ${i.width};`:"",r=l?`height: ${i.height};`:"";(0,h.BD)(`\n#${t}::-webkit-scrollbar {\n${e}\n${r}\n}`,t)}catch(e){console.error(e),o=s,a=l}}document.body.appendChild(r);const i=e&&o&&!Number.isNaN(o)?o:r.offsetWidth-r.clientWidth,s=e&&a&&!Number.isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),(0,h.m6)(t),{width:i,height:s}}(e):{width:0,height:0}}var S=r(9464),k=r(5574),E=r.n(k);let _;const A=()=>(void 0===_&&(_=E()()),_);var N=r(4719),j=r(7795),M=r(6533),P=r(1076);const z=function(...e){const t={};for(const r of e)if(r)for(const e of Object.keys(r))void 0!==r[e]&&(t[e]=r[e]);return t};function I(e,t){let r=e;for(let e=0;e<t.length;e+=1){if(null==r)return;r=r[t[e]]}return r}function R(e,t,r,n){if(!t.length)return r;const[o,...a]=t;let i;return i=e||"number"!=typeof o?Array.isArray(e)?[...e]:{...e}:[],n&&void 0===r&&1===a.length?delete i[o][a[0]]:i[o]=R(i[o],a,r,n),i}function T(e,t,r,n=!1){return t.length&&n&&void 0===r&&!I(e,t.slice(0,-1))?e:R(e,t,r,n)}function O(e){return Array.isArray(e)?[]:{}}const B="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function L(...e){return function(e,t={}){const{prepareArray:r}=t,n=r||(()=>[]);let o=O(e[0]);return e.forEach(e=>{!function t(r,a){const i=new Set(a),s=I(e,r),l=Array.isArray(s);if(l||"object"==typeof(c=s)&&null!==c&&Object.getPrototypeOf(c)===Object.prototype){if(!i.has(s)){i.add(s);const e=I(o,r);l?o=T(o,r,n(e,s)):e&&"object"==typeof e||(o=T(o,r,O(s))),B(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...r,e],i)})}}else o=T(o,r,s);var c}([])}),o}(e)}var H=r(6536),D=r(5795);const F="__rc_react_root__";function W(e,t){const r=t[F]||(0,D.createRoot)(t);r.render(e),t[F]=r}async function V(e){return Promise.resolve().then(()=>{e[F]?.unmount(),delete e[F]})}},9464(e,t,r){var n=r(6536);r.d(t,["A",0,function(e,t,r=!1){const o=new Set;return function e(t,a,i=1){const s=o.has(t);if((0,n.Ay)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(r&&i>1)return!1;o.add(t);const l=i+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(let r=0;r<t.length;r++)if(!e(t[r],a[r],l))return!1;return!0}if(t&&a&&"object"==typeof t&&"object"==typeof a){const r=Object.keys(t);return r.length===Object.keys(a).length&&r.every(r=>e(t[r],a[r],l))}return!1}(e,t)}])},4719(e,t,r){function n(e,t){const r=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete r[e]}),r}r.d(t,{A:()=>n})},7795(e,t,r){r.d(t,{A:()=>a});const n="accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError".split(/[\s\n]+/);function o(e,t){return 0===e.indexOf(t)}function a(e,t=!1){let r;r=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};const a={};return Object.keys(e).forEach(t=>{(r.aria&&("role"===t||o(t,"aria-"))||r.data&&o(t,"data-")||r.attr&&n.includes(t))&&(a[t]=e[t])}),a}},6533(e,t,r){let n=e=>+setTimeout(e,16),o=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(n=e=>window.requestAnimationFrame(e),o=e=>window.cancelAnimationFrame(e));let a=0;const i=new Map;function s(e){i.delete(e)}const l=(e,t=1)=>{a+=1;const r=a;return function t(o){if(0===o)s(r),e();else{const e=n(()=>{t(o-1)});i.set(r,e)}}(t),r};l.cancel=e=>{const t=i.get(e);return s(e),o(t)};const c=l;r.d(t,["A",0,c])},1713(e,t,r){var n=r(1609),o=r(4363),a=r(3702),i=r(9526);const s=Number(n.version.split(".")[0]),l=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{((e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)})(e,t)})}},c=e=>{if(!e)return!1;if(u(e)&&s>=19)return!0;const t=(0,o.isMemo)(e)?e.type.type:e.type;return!("function"==typeof t&&!t.prototype?.render&&t.$$typeof!==o.ForwardRef||"function"==typeof e&&!e.prototype?.render&&e.$$typeof!==o.ForwardRef)};function u(e){return(0,n.isValidElement)(e)&&!(0,i.A)(e)}r.d(t,["A9",0,e=>{if(e&&u(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},"H3",0,e=>u(e)&&c(e),"K4",0,l,"f3",0,c,"xK",0,(...e)=>(0,a.A)(()=>l(...e),e,(e,t)=>e.length!==t.length||e.every((e,r)=>e!==t[r]))])},6536(e,t,r){r.d(t,{$e:()=>a});let n={};const o=[];function a(e,t){}function i(e,t){}function s(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function l(e,t){s(a,e,t)}l.preMessage=e=>{o.push(e)},l.resetWarned=function(){n={}},l.noteOnce=function(e,t){s(i,e,t)};const c=l;r.d(t,["Ay",0,c])},8431(e,t,r){var n=r(1609),o=r(6487),a=r(5788),i=r(9449),s=r(1685);r.d(t,["A",0,e=>{const{type:t,children:r,prefixCls:l,buttonProps:c,close:u,autoFocus:d,emitEvent:p,isSilent:m,quitOnNullishReturnValue:h,actionFn:f}=e,g=n.useRef(!1),b=n.useRef(null),[v,x]=(0,o.J0)(!1),y=(...e)=>{u?.(...e)};return n.useEffect(()=>{let e=null;return d&&(e=setTimeout(()=>{b.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[d]),n.createElement(a.A,{...(0,i.DU)(t),onClick:e=>{if(g.current)return;if(g.current=!0,!f)return void y();let t;if(p){if(t=f(e),h&&!(0,s.Qg)(t))return g.current=!1,void y(e)}else if(f.length)t=f(u),g.current=!1;else if(t=f(),!(0,s.Qg)(t))return void y();(e=>{(0,s.Qg)(e)&&(x(!0),e.then((...e)=>{x(!1,!0),y.apply(void 0,e),g.current=!1},e=>{if(x(!1,!0),g.current=!1,!m?.())return Promise.reject(e)}))})(t)},loading:v,prefixCls:l,...c,ref:b},r)}])},2897(e,t,r){var n=r(1609),o=r.n(n),a=r(3295),i=r(7090),s=r(1685);r.d(t,["A",0,e=>{const{space:t,form:r,children:n}=e;if(!(0,s.AZ)(n))return null;let l=n;return r&&(l=o().createElement(a.XB,{override:!0,status:!0},l)),t&&(l=o().createElement(i.K6,null,l)),l}])},3425(e,t,r){r.d(t,{U:()=>s});var n=r(1609),o=r(6487),a=r(8721),i=r(2279);function s(e){return t=>n.createElement(a.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},n.createElement(e,{...t}))}r.d(t,["A",0,(e,t,r,a,l)=>s(s=>{const{prefixCls:c,style:u}=s,d=n.useRef(null),[p,m]=n.useState(0),[h,f]=n.useState(0),[g,b]=(0,o.PW)(!1,s.open),{getPrefixCls:v}=n.useContext(i.QO),x=v(a||"select",c);n.useEffect(()=>{if(b(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;m(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{const r=l?`.${l(x)}`:`.${x}-dropdown`,n=d.current?.querySelector(r);n&&(clearInterval(t),e.observe(n))},10);return()=>{clearInterval(t),e.disconnect()}}},[x]);let y={...s,style:{...u,margin:0},open:g,getPopupContainer:()=>d.current};r&&(y=r(y)),t&&(y={...y,[t]:{overflow:{adjustX:!1,adjustY:!1}}});const $={paddingBottom:p,position:"relative",minWidth:h};return n.createElement("div",{ref:d,style:$},n.createElement(e,{...y}))})])},4121(e,t,r){r.d(t,{ZZ:()=>l,nP:()=>s});var n=r(5458),o=r(3950);const a=o.s.map(e=>`${e}-inverse`),i=["success","processing","error","default","warning"];function s(e,t=!0){return t?[].concat((0,n.A)(a),(0,n.A)(o.s)).includes(e):o.s.includes(e)}function l(e){return i.includes(e)}},94(e,t,r){function n(...e){return e.find(e=>void 0!==e)}r.d(t,{A:()=>n})},7755(e,t,r){var n=r(1685);r.d(t,["b",0,e=>(0,n.AZ)(e)?(0,n.Tn)(e)?e():e:null])},6559(e,t,r){var n=r(1609),o=r.n(n),a=r(4732),i=r(94),s=r(1685);r.d(t,["O",0,e=>{const{allowClear:t,clearIcon:r,contextAllowClear:l,contextClearIcon:c,defaultAllowClear:u,componentName:d}=e;return(0,n.useMemo)(()=>!!(t??l??u)&&{clearIcon:(0,i.A)((0,s.Qd)(t)?t?.clearIcon:r,(0,s.Qd)(l)?l?.clearIcon:c,o().createElement(a.A,null)),disabled:((0,s.Qd)(t)?t?.disabled:void 0)??((0,s.Qd)(l)?l?.disabled:void 0)},[t,r,l,c,u])}])},64(e,t,r){var n=r(1609),o=r.n(n),a=r(5886),i=r(6487),s=r(9155),l=r(11),c=r(1685);const u={},d=(e,t)=>{if(!e&&(!1===e||!1===t||null===t))return!1;if(!(0,c.R)(e)&&!(0,c.R)(t))return null;let r={closeIcon:"boolean"!=typeof t&&(0,c.R)(t)?t:void 0};return(0,c.Qd)(e)&&(r={...r,...e}),r},p=(e,t,r=u,n="Close")=>{const s=d(e?.closable,e?.closeIcon),l=d(t?.closable,t?.closeIcon),p={closeIcon:o().createElement(a.A,null),...r},m=((e,t,r)=>!1!==e&&(e?(0,i.v6)(r,t,e):!1!==t&&(t?(0,i.v6)(r,t):!!r.closable&&r)))(s,l,p),h="boolean"!=typeof m&&!!m?.disabled;if(!1===m)return[!1,null,h,{}];const[f,g]=((e,t,r)=>{const{closeIconRender:n}=t,{closeIcon:a,...s}=e;let l=a;const u=(0,i.KE)(s,!0);return(0,c.R)(l)&&(n&&(l=n(l)),l=o().isValidElement(l)?o().cloneElement(l,{"aria-label":r,...l.props,...u}):o().createElement("span",{"aria-label":r,...u},l)),[l,u]})(m,p,n);return[!0,f,h,g]};r.d(t,["$Z",0,(e,t,r=u)=>{const[n]=(0,s.A)("global",l.A.global);return o().useMemo(()=>p(e,t,{closeIcon:o().createElement(a.A,null),...r},n.close),[e,t,r,n.close])},"b8",0,p,"dG",0,e=>{if(!e)return;const{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}}])},7447(e,t,r){var n=r(1609),o=r.n(n);r.d(t,["C",0,()=>o().useReducer(e=>e+1,0)])},992(e,t,r){r.d(t,{Jb:()=>m,AV:()=>h,XT:()=>p});var n=r(5458),o=r(1609),a=r(4164),i=r(1685);const s=(e,t)=>{const r={...e};return Object.keys(t).forEach(e=>{t[e]._default?r[e]||(r[e]={}):r[e]=s(r[e],t[e])}),r},l=(e={},...t)=>t.filter(e=>Boolean(e)).reduce((t,r)=>(Object.keys(r).forEach(n=>{const o=e[n],s=r[n];if(o)if((0,i.Qd)(s))t[n]=l(o,t[n],s);else{const{_default:e}=o;e&&(t[n]=t[n]||{},t[n][e]=(0,a.$)(t[n][e],s))}else t[n]=(0,a.$)(t[n],s)}),t),{}),c=(e,...t)=>o.useMemo(()=>l.apply(void 0,[e].concat(t)),[e].concat(t)),u=(...e)=>e.filter(e=>Boolean(e)).reduce((e,t={})=>(Object.keys(t).forEach(r=>{e[r]={...e[r],...t[r]}}),e),{}),d=(...e)=>o.useMemo(()=>u.apply(void 0,e),[].concat(e)),p=e=>o.useMemo(()=>e?{root:e}:void 0,[e]),m=(e,t)=>(0,i.Tn)(e)?e(t):e,h=(e,t,r,a)=>{const i=e.map(e=>e?m(e,r):void 0),l=t.map(e=>e?m(e,r):void 0),u=c.apply(void 0,[a].concat((0,n.A)(i))),p=d.apply(void 0,(0,n.A)(l));return o.useMemo(()=>a?[s(u,a),s(p,a)]:[u,p],[u,p,a])}},4613(e,t,r){var n=r(1609),o=r(1685);const a=(e,t)=>{let r={};return(0,o.Qd)(e)&&(r=e),"boolean"==typeof e&&(r={enabled:e}),void 0===r.closable&&void 0!==t&&(r.closable=t),r};r.d(t,["A",0,a,"u",0,(e,t,r,o)=>(0,n.useMemo)(()=>{const n=a(e,o),i=a(t),s={blur:!1,...i,...n,closable:n.closable??o??i.closable??!0},l=s.blur?`${r}-mask-blur`:void 0;return[!1!==s.enabled,{mask:l},!!s.closable]},[e,t,r,o])])},2283(e,t,r){var n=r(1609);const o=e=>"horizontal"===e||"vertical"===e;r.d(t,["M",0,(e,t,r)=>(0,n.useMemo)(()=>{let n;return n=o(e)?e:"boolean"==typeof t?t?"vertical":"horizontal":o(r)?r:"horizontal",[n,"vertical"===n]},[r,e,t])])},275(e,t,r){var n=r(1609),o=r.n(n),a=r(8484),i=r(2616);const s=100,l={Modal:s,Drawer:s,Popover:s,Popconfirm:s,Tooltip:s,Tour:s,FloatButton:s},c={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};r.d(t,["YK",0,(e,t)=>{const[,r]=(0,a.Ay)(),n=o().useContext(i.A);let s;if(void 0!==t)s=[t,t];else{let o=n??0;o+=e in l?(n?0:r.zIndexPopupBase)+l[e]:c[e],s=[void 0===n?t:o,o]}return s}])},1685(e,t,r){const n=e=>null!=e,o=e=>"string"==typeof e,a=e=>null!==e&&"object"==typeof e,i=e=>"function"==typeof e;r.d(t,["AZ",0,e=>n(e)&&!1!==e&&""!==e,"Et",0,e=>"number"==typeof e&&!Number.isNaN(e),"Kg",0,o,"Qd",0,a,"Qg",0,e=>n(e)&&i(e.then),"R",0,n,"Tn",0,i,"qF",0,e=>a(e)&&"propertyName"in e&&o(e.propertyName)])},3723(e,t,r){var n=r(1685);const o=()=>({height:0,opacity:0}),a=e=>({height:e?.scrollHeight??0,opacity:e?1:0}),i=e=>({height:e?.offsetHeight??0}),s=(e,t)=>!0===t?.deadline||(0,n.qF)(t)&&"height"===t.propertyName;r.d(t,["A",0,(e="ant")=>({motionName:`${e}-motion-collapse`,onAppearStart:o,onEnterStart:o,onAppearActive:a,onEnterActive:a,onLeaveStart:i,onLeaveActive:o,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}),"b",0,(e,t,r)=>void 0!==r?r:`${e}-${t}`])},682(e,t,r){r.d(t,{Ob:()=>l,zv:()=>i});var n=r(1609),o=r.n(n),a=r(1685);function i(e){return e&&o().isValidElement(e)&&e.type===o().Fragment}const s=(e,t,r)=>o().isValidElement(e)?o().cloneElement(e,(0,a.Tn)(r)?r(e.props||{}):r):t;function l(e,t){return s(e,e,t)}r.d(t,["fx",0,s])},4945(e,t,r){var n=r(1609),o=r.n(n),a=r(8484),i=r(1685);const s=["xxxl","xxl","xl","lg","md","sm","xs"],l=[].concat(s).reverse();r.d(t,["Ay",0,()=>{const[,e]=(0,a.Ay)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}))((e=>{const t=e,r=[].concat(s).reverse();return r.forEach((e,n)=>{const o=e.toUpperCase(),a=`screen${o}Min`,i=`screen${o}`;if(!(t[a]<=t[i]))throw new Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(n<r.length-1){const e=`screen${o}Max`;if(!(t[i]<=t[e]))throw new Error(`${i}<=${e} fails : !(${t[i]}<=${t[e]})`);const a=`screen${r[n+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw new Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e})(e));return o().useMemo(()=>{const e=new Map;let r=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>{e(n)}),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{const r=({matches:t})=>{this.dispatch({...n,[e]:t})},o=window.matchMedia(t);(0,i.Tn)(o.addEventListener)&&o.addEventListener("change",r),this.matchHandlers[t]={mql:o,listener:r},r(o)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];(0,i.Tn)(t?.mql.removeEventListener)&&t.mql.removeEventListener("change",t?.listener)}),e.clear()}}},[t])},"Gl",0,l,"ye",0,s])},8182(e,t,r){var n=r(4164);r.d(t,["L",0,(e,t,r)=>(0,n.$)({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r}),"v",0,(e,t)=>t||e])},8877(e,t,r){var n=r(1609),o=r(6487);function a(){}const{resetWarned:i}=o.$e,s=n.createContext({});r.d(t,["_n",0,s,"rJ",0,()=>{const e=()=>{};return e.deprecated=a,e}])},57(e,t,r){r.d(t,{A:()=>$});var n=r(1609),o=r.n(n),a=r(6487),i=r(4164),s=r(2279),l=r(682),c=r(7358);const u=(0,c.Or)("Wave",e=>{const{componentCls:t,colorPrimary:r,motionDurationSlow:n,motionEaseInOut:o,motionEaseOutCirc:a,antCls:i}=e,[,s]=(0,c.PN)(i,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:s("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(e=>`${e} ${a}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(e=>`${e} ${n} ${o}`).join(",")}}}}});var d=r(8484),p=r(4424),m=r(3057),h=r(1685);const f=e=>!!e&&(0,h.Kg)(e)&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&"transparent"!==e&&"canvastext"!==e;function g(e){return Number.isNaN(e)?0:e}const b=e=>{const{className:t,target:r,component:o,colorSource:l}=e,u=n.useRef(null),{getPrefixCls:d}=n.useContext(s.QO),b=d(),[v]=(0,c.PN)(b,"wave"),[x,y]=n.useState(null),[$,C]=n.useState([]),[w,S]=n.useState(0),[k,E]=n.useState(0),[_,A]=n.useState(0),[N,j]=n.useState(0),[M,P]=n.useState(!1),z={left:w,top:k,width:_,height:N,borderRadius:$.map(e=>`${e}px`).join(" ")};function I(){const e=getComputedStyle(r);y(function(e,t=null){const r=getComputedStyle(e),{borderTopColor:n,borderColor:o,backgroundColor:a}=r;return t&&f(r[t])?r[t]:[n,o,a].find(f)??null}(r,l));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;S(t?r.offsetLeft:g(-Number.parseFloat(n))),E(t?r.offsetTop:g(-Number.parseFloat(o))),A(r.offsetWidth),j(r.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:i,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;C([a,i,c,s].map(e=>g(Number.parseFloat(e))))}if(x&&(z[v("color")]=x),n.useEffect(()=>{if(r){const e=(0,a.er)(()=>{I(),P(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(I),t.observe(r)),()=>{a.er.cancel(e),t?.disconnect()}}},[r]),!M)return null;const R=("Checkbox"===o||"Radio"===o)&&r?.classList.contains(p.D);return n.createElement(m.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||(0,h.qF)(t)&&"opacity"===t.propertyName){const e=u.current?.parentElement;(0,a.vs)(e).then(()=>{e?.remove()})}return!1}},({className:e},r)=>n.createElement("div",{ref:(0,a.K4)(u,r),className:(0,i.$)(t,e,{"wave-quick":R}),style:z}))},v=(e,t)=>{const{component:r}=t;if("Checkbox"===r&&!e.querySelector("input")?.checked)return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild),(0,a.XX)(n.createElement(b,{...t,target:e}),o)},x=(e,t,r,o)=>{const{wave:i}=n.useContext(s.QO),[,l,c]=(0,d.Ay)(),u=(0,a._q)(n=>{const a=e.current;if(i?.disabled||!a)return;const s=a.querySelector(`.${p.D}`)||a,{showEffect:u}=i||{};(u||v)(s,{className:t,token:l,component:r,event:n,hashId:c,colorSource:o})}),m=n.useRef(null);return n.useEffect(()=>()=>{a.er.cancel(m.current)},[]),e=>{a.er.cancel(m.current),m.current=(0,a.er)(()=>{u(e)})}},y={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},$=e=>{const{children:t,disabled:r,component:c,colorSource:d}=e,{getPrefixCls:p,wave:m}=(0,n.useContext)(s.QO),h=(0,n.useRef)(null),f=p("wave"),g=u(f),b=x(h,(0,i.$)(f,g),c,d);if(o().useEffect(()=>{const e=h.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||r)return;const t=t=>{!(0,a.zN)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||b(t)},n=m?.triggerType,o=n&&n in y?y[n]:"click";return e.addEventListener(o,t,!0),()=>{e.removeEventListener(o,t,!0)}},[r,m?.triggerType]),!o().isValidElement(t))return t??null;const v=(0,a.f3)(t)?(0,a.K4)((0,a.A9)(t),h):h;return(0,l.Ob)(t,{ref:v})}},4424(e,t,r){r.d(t,["D",0,"ant-wave-target"])},2616(e,t,r){var n=r(1609);const o=r.n(n)().createContext(void 0);r.d(t,["A",0,o])},2016(e,t,r){r.d(t,{A:()=>Be});var n=r(1609),o=r.n(n),a=r(4164),i=r(8877),s=r(2279),l=r(6487),c=r(5795),u=r(3057);const d=({className:e,style:t,percent:r})=>n.createElement("progress",{className:e,max:"100",value:r,style:t});function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}const m=n.forwardRef((e,t)=>{const{prefixCls:r,className:o,style:i,classNames:s,styles:c,components:u,title:m,description:h,icon:f,actions:g,role:b,closable:v,offset:x,notificationIndex:y,stackInThreshold:$,props:C,duration:w=4.5,showProgress:S,hovering:k,pauseOnHover:E=!0,onClick:_,onMouseEnter:A,onMouseLeave:N,onClose:j}=e,[M,P]=n.useState(0),z=`${r}-notice`,[I,R,T]=function(e){const t=n.useMemo(()=>!1===e?{closeIcon:null,disabled:!0}:"object"==typeof e&&null!==e?e:{},[e]),r=n.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),o=n.useMemo(()=>(0,l.KE)(r,!0),[r]);return[!!e,r,o]}(v),O=(0,l._q)(()=>{R.onClose?.(),j?.()}),[B,L]=n.useState(!1),[H,D]=function(e,t,r){const o="number"==typeof e?e:0,a=1e3*Math.max(o,0),i=(0,l._q)(t),s=(0,l._q)(r),[c,u]=n.useState(a>0),d=n.useRef(0),p=n.useRef(null);function m(){const e=Date.now(),t=p.current;null!==t&&(d.current+=e-t),p.current=e}const h=n.useCallback(()=>{m(),u(!1)},[]),f=n.useCallback(()=>{a>0?(p.current=Date.now(),u(!0)):s(0)},[a]);return n.useEffect(()=>{d.current=0,u(a>0)},[a]),n.useEffect(()=>{if(!c)return;let e=null;return function t(){m(),d.current>=a?(s(1),i()):(s(Math.min(d.current/a,1)),e=(0,l.er)(t))}(),()=>{l.er.cancel(e)}},[a,c]),[f,h]}(w,O,P),F=100-Math.min(Math.max(100*M,0),100),W=u?.progress||d;n.useEffect(()=>{E&&(k?D():B||H())},[k,B,D,H,E]);const V=n.useRef(x);void 0!==x&&(V.current=x);const q=n.useRef(y);void 0!==y&&(q.current=y);const X=x??V.current,G=y??q.current??0,K=null!=m?n.createElement("div",{className:(0,a.$)(`${z}-title`,s?.title),style:c?.title},m):null,U=null!=h?n.createElement("div",{className:(0,a.$)(`${z}-description`,s?.description),style:c?.description},h):null;let Y=null;Y=null!==K&&null!==U?n.createElement("div",{className:(0,a.$)(`${z}-section`,s?.section),style:c?.section},K,U):K||U,null!=f&&(Y=n.createElement("div",{className:(0,a.$)(`${z}-wrapper`,s?.wrapper),style:c?.wrapper},n.createElement("div",{className:(0,a.$)(`${z}-icon`,s?.icon),style:c?.icon},f),Y));const Q=g?n.createElement("div",{className:(0,a.$)(`${z}-actions`,s?.actions),style:c?.actions},g):null,Z={"--notification-index":G,...c?.root,...i};void 0!==X&&(Z["--notification-y"]=`${X}px`);const J=b??C?.role??"alert";return n.createElement("div",p({},C,{ref:t,role:J,"data-notification-index":G,className:(0,a.$)(z,o,s?.root,{[`${z}-closable`]:I,[`${z}-stack-in-threshold`]:$}),style:Z,onClick:_,onMouseEnter:function(e){L(!0),E&&D(),A?.(e)},onMouseLeave:function(e){L(!1),E&&!k&&H(),N?.(e)}}),Y,Q,I&&n.createElement("button",p({className:(0,a.$)(`${z}-close`,s?.close),"aria-label":"Close"},T,{style:c?.close,onClick:function(e){e.preventDefault(),e.stopPropagation(),O()}}),R.closeIcon),S&&"number"==typeof w&&w>0&&n.createElement(W,{className:(0,a.$)(`${z}-progress`,s?.progress),percent:F,style:c?.progress}))}),h=m,f=n.createContext({}),g=({children:e,classNames:t})=>{const r=n.useMemo(()=>({classNames:t}),[t]);return n.createElement(f.Provider,{value:r},e)};function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}const v=n.forwardRef((e,t)=>{const{listPrefixCls:r,height:o,topNoticeHeight:i=0,topNoticeWidth:s=0,className:l,style:c,...u}=e,d=`${r}-content`,p=n.useRef(o),m=o<p.current?"decrease":"increase";p.current=o;const h={...c,height:o,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${s}px`};return n.createElement("div",b({},u,{className:(0,a.$)(d,`${d}-${m}`,l),style:h,ref:t}))}),x=v;function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},y.apply(this,arguments)}const $=["wrapper","root","icon","section","title","description","actions","close","progress"],C=e=>{const{config:t,components:r,contextClassNames:o,classNames:i,styles:s,className:c,style:u,nodeRef:d,listHovering:p,stackEnabled:m,pauseOnHover:f,setNodeSize:g,onNoticeClose:b,...v}=e,{key:x,placement:C,...w}=t,S=String(x),k=n.useCallback(e=>{g(S,e)},[g,S]),E=(0,l.xK)(d,k);return n.createElement(h,y({},w,v,{ref:E,className:(0,a.$)(o?.notice,t.className,c),style:{...u,...t.style},classNames:(A=[i,t.classNames],$.reduce((e,t)=>(e[t]=(0,a.$)(...A.map(e=>e?.[t])),e),{})),styles:(_=[s,t.styles],$.reduce((e,t)=>(e[t]=Object.assign({},..._.map(e=>e?.[t])),e),{})),components:{...r,...t.components},hovering:m&&p,pauseOnHover:t.pauseOnHover??f,onClose:()=>{t.onClose?.(),b?.(x)}}));var _,A},w=e=>{const{configList:t=[],prefixCls:r="rc-notification",pauseOnHover:o,classNames:i,styles:s,components:l,stack:c,motion:d,placement:p,className:m,style:h,onNoticeClose:g,onAllRemoved:b}=e,{classNames:v}=n.useContext(f),$=n.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),w="function"==typeof d?d(p):d,[S,{offset:k,threshold:E}]=(e=>{const t={offset:8,threshold:3};return e&&"object"==typeof e&&(t.offset=e.offset??8,t.threshold=e.threshold??3),[!!e,t]})(c),[_,A]=n.useState(!1),N=S&&(_||$.length<=E),j=n.useMemo(()=>{if(S&&!N)return{offset:k,threshold:E}},[N,k,S,E]),[M,P]=n.useState(0),z=n.useRef(null),[I,R,T,O,B]=function(e,t,r=0){const[o,a]=function(){const[e,t]=n.useState({});return[e,n.useCallback((e,r)=>{if(!r)return void t(t=>{if(!(e in t))return t;const r={...t};return delete r[e],r});const n={width:r.offsetWidth,height:r.offsetHeight};t(t=>{const r=t[e];return r&&r.width===n.width&&r.height===n.height?t:{...t,[e]:n}})},[])]}(),[i,s,l,c]=n.useMemo(()=>{let n=0,a=0;const i=t?.threshold??0,s=new Map;let l,c;return e.slice().reverse().forEach((e,u)=>{const d=String(e.key),p=o[d]?.height??0,m=t&&u>0?n+(t.offset??0)-p:n;s.set(d,m),0===u&&(l=p,c=o[d]?.width??0),(!t||u<i)&&(a=Math.max(a,m+p)),t?n=m+p:n+=p+r}),[s,a,l,c]},[e,r,o,t]);return[i,a,s,l,c]}(t,j,M),L=!!t.length;n.useEffect(()=>{const e=z.current;if(!e)return;const{gap:t,rowGap:r}=window.getComputedStyle(e),n=parseFloat(r||t)||0;P(e=>e===n?e:n)},[L]);const H=`${r}-list`;return n.createElement("div",{className:(0,a.$)(r,H,`${r}-${p}`,v?.list,m,i?.list,{[`${r}-stack`]:S,[`${r}-stack-expanded`]:N,[`${H}-hovered`]:_}),onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},style:{...s?.list,...h}},n.createElement(x,{listPrefixCls:H,height:T,topNoticeHeight:O,topNoticeWidth:B,className:i?.listContent,style:s?.listContent,ref:z},n.createElement(u.aF,y({component:!1,keys:$,motionAppear:!0},w,{onAllRemoved:()=>{p&&b?.(p)}}),({config:e,className:t,style:a},c)=>{const{key:u}=e,d=String(u),p=function(e,t){const r=String(t),n=e.findIndex(e=>e.key===r);if(-1!==n)return e.length-n-1}($,u),m=S&&void 0!==p&&p<E;return n.createElement(C,{key:u,config:e,components:l,contextClassNames:v,classNames:i,styles:s,className:t,style:a,nodeRef:c,prefixCls:r,offset:I.get(d),notificationIndex:p,stackInThreshold:m,listHovering:_,stackEnabled:S,pauseOnHover:o,setNodeSize:R,onNoticeClose:g})})))},S=n.forwardRef((e,t)=>{const{prefixCls:r="rc-notification",container:o,motion:a,maxCount:i,pauseOnHover:s,classNames:u,styles:d,components:p,className:m,style:h,onAllRemoved:f,stack:g,renderNotifications:b}=e,[v,x]=n.useState([]),[y,$]=n.useState({}),C=n.useRef(!1);n.useImperativeHandle(t,()=>({open:e=>{x(t=>{let r=[...t];const n=r.findIndex(t=>t.key===e.key),o={...e};return n>=0?(o.times=(t[n]?.times??0)+1,r[n]=o):(o.times=0,r.push(o)),i&&i>0&&r.length>i&&(r=r.slice(-i)),r})},close:e=>{x(t=>t.filter(t=>t.key!==e))},destroy:()=>{x([])}})),n.useEffect(()=>{const e={};v.forEach(t=>{const r=t.placement??"topRight";e[r]=e[r]||[],e[r].push(t)}),Object.keys(y).forEach(t=>{e[t]=e[t]||[]}),$(e)},[v]);const S=(0,l._q)(e=>{$(t=>{const r={...t};return(r[e]||[]).length||delete r[e],r})});if(n.useEffect(()=>{Object.keys(y).length>0?C.current=!0:C.current&&(f?.(),C.current=!1)},[y,f]),!o)return null;const k=Object.keys(y);return(0,c.createPortal)(n.createElement(n.Fragment,null,k.map(e=>{const t=n.createElement(w,{key:e,configList:y[e],placement:e,prefixCls:r,pauseOnHover:s,classNames:u,styles:d,components:p,className:m?.(e),style:h?.(e),motion:a,stack:g,onNoticeClose:e=>{x(t=>t.filter(t=>t.key!==e))},onAllRemoved:S});return b?n.cloneElement(b(t,{prefixCls:r,key:e}),{key:e}):t})),o)}),k=S,E=()=>document.body;let _=0;function A(e={}){const{getContainer:t=E,motion:r,prefixCls:o,placement:a,closable:i,duration:s,showProgress:c,pauseOnHover:u,classNames:d,styles:p,components:m,maxCount:h,className:f,style:g,onAllRemoved:b,stack:v,renderNotifications:x}=e,y={placement:a,closable:i,duration:s,showProgress:c},[$,C]=n.useState(),w=n.useRef(null),[S,A]=n.useState([]),N=n.createElement(k,{container:$,ref:w,prefixCls:o,motion:r,maxCount:h,pauseOnHover:u,classNames:d,styles:p,components:m,className:f,style:g,onAllRemoved:b,stack:v,renderNotifications:x}),j=(0,l._q)(e=>{const t=function(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{const n=e[r];void 0!==n&&(t[r]=n)})}),t}(y,e);null!==t.key&&void 0!==t.key||(t.key=`rc-notification-${_}`,_+=1),A(e=>[...e,{type:"open",config:t}])}),M=n.useMemo(()=>({open:j,close:e=>{A(t=>[...t,{type:"close",key:e}])},destroy:()=>{A(e=>[...e,{type:"destroy"}])}}),[]);return n.useEffect(()=>{C(t())}),n.useEffect(()=>{w.current&&S.length&&(S.forEach(e=>{switch(e.type){case"open":w.current?.open(e.config);break;case"close":w.current?.close(e.key);break;case"destroy":w.current?.destroy()}}),A(e=>{const t=e.filter(e=>!S.includes(e));return t.length===e.length?e:t}))},[S]),[M,N]}var N=r(992),j=r(1685),M=r(934);const P=(e,t)=>n.useMemo(()=>{const r=e??t;return!!r&&{...(0,j.Qd)(t)?t:{},...(0,j.Qd)(r)?r:{}}},[e,t]);var z=r(738);function I(e,t){return{...(0,j.R)(e)&&{"--notification-top":(0,z.zA)(e)},...(0,j.R)(t)&&{"--notification-bottom":(0,z.zA)(t)}}}var R=r(4768),T=r(4732),O=r(9729),B=r(5010),L=r(6962);const H={info:n.createElement(B.A,null),success:n.createElement(R.A,null),error:n.createElement(T.A,null),warning:n.createElement(O.A,null),loading:n.createElement(L.A,null)};var D=r(5905),F=r(485),W=r(7358);const V=e=>{const{motionDurationMid:t,motionEaseInOut:r}=e,n=`${t} ${r}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(e=>`${e} ${n}`).join(", ")}},q=(e,t)=>{const{componentCls:r,antCls:n,colorSuccess:o,colorInfo:a,colorWarning:i,colorError:s,colorTextHeading:l,colorText:c,boxShadow:u,borderRadiusLG:d,fontSize:p,lineHeight:m,notificationBg:h,notificationPadding:f,notificationMarginEdge:g,margin:b,calc:v}=e,x=`${r}-notice`,[y,$]=(0,W.PN)(n,"notification");return{[x]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${(0,z.zA)(v(g).mul(2).equal())})`,padding:f,pointerEvents:"auto",[y("icon-font-size")]:t.iconFontSize,[y("title-font-size")]:t.titleFontSize,[y("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:c,background:h,borderRadius:d,boxShadow:u,fontSize:p,lineHeight:m,wordWrap:"break-word",overflow:"visible",...V(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:v(b).mul(-1).equal(),height:b,content:'""'},...t.typeStyle&&{"&-success":{background:$("color-success-bg",h)},"&-error":{background:$("color-error-bg",h)},"&-info":{background:$("color-info-bg",h)},"&-warning":{background:$("color-warning-bg",h)}}},[`${x}-wrapper`]:{display:"flex",...t.contentStyle},[`${x}-title`]:{color:l,fontSize:$("title-font-size"),lineHeight:$("title-line-height")},[`${x}-icon`]:{flex:"none",fontSize:$("icon-font-size"),lineHeight:1,[`&${x}-icon-success`]:{color:o},[`&${x}-icon-info, &${x}-icon-loading`]:{color:a},[`&${x}-icon-warning`]:{color:i},[`&${x}-icon-error`]:{color:s}}}},X=e=>{const{componentCls:t,progressBg:r,notificationProgressHeight:n,fontSize:o,borderRadiusLG:a,width:i,notificationIconSize:s,colorText:l,motionDurationMid:c,fontSizeLG:u,lineHeightLG:d,marginSM:p,marginXS:m,paddingLG:h,notificationPaddingVertical:f,notificationPaddingHorizontal:g,notificationCloseButtonSize:b,colorIcon:v,borderRadiusSM:x,colorIconHover:y,colorBgTextHover:$,colorBgTextActive:C}=e,w=`${t}-notice`;return{...q(e,{width:i,iconFontSize:s,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:"flex-start",gap:p},typeStyle:!0}),[`${w}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:m,minWidth:0},[`${w}-description`]:{color:l,fontSize:o},[`${w}-closable`]:{[`${w}-title, ${w}-description`]:{paddingInlineEnd:h},[`${w}-title + ${w}-description`]:{paddingInlineEnd:0}},[`${w}-close`]:{position:"absolute",top:f,insetInlineEnd:g,display:"flex",alignItems:"center",justifyContent:"center",width:b,height:b,color:v,background:"none",border:"none",borderRadius:x,outline:"none",transition:["color","background-color"].map(e=>`${e} ${c}`).join(", "),"&:hover":{color:y,backgroundColor:$},"&:active":{backgroundColor:C},...(0,D.K8)(e)},[`${w}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,z.zA)(a)} * 2)`,blockSize:n,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:r},"&::-webkit-progress-value":{borderRadius:a,background:r}},[`${w}-actions`]:{float:"right",marginTop:p}}},G=e=>{const{componentCls:t}=e;return{[t]:X(e)}},K=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],U=e=>`translate3d(${e?.x??"0"}, ${e?.y??"0"}, 0) scale(var(--notification-scale, 1))`,Y=(e,t)=>{const r=e.startsWith("bottom")?"bottom":"top",n=e.endsWith("Right")?"right":"left",{blockEnd:o,inlineEnd:a}=((e,t)=>({blockEnd:"top"===e?"bottom":"top",inlineEnd:"left"===t?"right":"left"}))(r,n),i="top"===e||"bottom"===e,s="top"===e||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:r,blockEnd:o,horizontal:n,inlineEnd:a,motionOffset:i?{x:"-50%",y:s}:{x:s},baseMotionOffset:i?{x:"-50%"}:void 0,isCenterPlacement:i}},Q=e=>"bottom"===e?"column-reverse":"column",Z=e=>{const t="var(--notification-margin-edge, 0px)";return`calc(var(--notification-${e}, ${t}) - ${t})`},J=e=>(0,z.zA)(e.calc(e.marginXXL).mul(-1).equal()),ee=e=>{const t=J(e);return`inset(${t} ${t} ${t} ${t})`},te=(e,t)=>{const r=J(e);return"bottom"===t?`inset(${r} ${r} 50% ${r})`:`inset(50% ${r} ${r} ${r})`},re=(e,t)=>{const{componentCls:r}=e,{placement:n,vertical:o,blockEnd:a,horizontal:i,inlineEnd:s,isCenterPlacement:l}=t,c=`${r}-notice`,u=`${c}${r}-fade`,d=U(t.motionOffset),p=U(t.baseMotionOffset),m=(e=>"bottom"===e?"center top":"center bottom")(o);return{[`&${r}-${n}`]:{[o]:Z(o),[a]:"auto",display:"flex",flexDirection:Q(o),...l?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[i]:0,[s]:"auto"},[c]:{[o]:"var(--notification-y, 0)",...l?{left:"50%",transform:p}:{[i]:"var(--notification-x, 0)"},transformOrigin:m},[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:d,transition:"none"},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:d},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:p},[`${u}-leave-start`]:{opacity:1,transform:p},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${r}-stack:not(${r}-stack-expanded)`]:{[c]:{clipPath:te(e,o)},[`${c}[data-notification-index='0']`]:{clipPath:ee(e)}}}}},ne=(e,t=K)=>{const{notificationMotionOffset:r}=e,n=(0,z.zA)(r);return{...t.reduce((t,r)=>({...t,...re(e,Y(r,n))}),{})}},oe=e=>{const{componentCls:t}=e;return{[t]:ne(e)}},ae=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),ie=e=>{const t=e.paddingMD,r=e.paddingLG;return(0,F.oX)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:r,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,z.zA)(e.paddingMD)} ${(0,z.zA)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},se=e=>{const{componentCls:t,motionDurationMid:r,motionDurationSlow:n,motionEaseInOut:o}=e,a=`${t}-list-content`;return{[a]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${a}-decrease`]:{transition:`height calc(${n} * 2) ${o} ${r}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},le=(e,t)=>{const{componentCls:r,notificationMarginEdge:n}=e,o="--notification-margin-edge",a=`${r}-notice`,i=`${r}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(n).mul(2)).equal():"100%",l=`${a}:nth-last-child(n + ${(t.stackVisibleCount??3)+1})`,c=`inset(${u=(0,z.zA)(e.calc(e.marginXXL).mul(-1).equal())} ${u} ${u} ${u})`;var u;return{[r]:{...(0,D.dF)(e),[o]:(0,z.zA)(n),position:"fixed",zIndex:e.zIndexPopup,width:s,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${r}-hook-holder`]:{position:"relative"},[`&${i}`]:{maxHeight:"100vh",padding:`var(${o})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...se(e),[`&${r}-stack`]:{[a]:{clipPath:c},[`&:not(${r}-stack-expanded)`]:{[a]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[l]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}}}},ce=((0,W.bf)(["Notification","PurePanel"],e=>(e=>{const{componentCls:t,width:r}=e,n=`${t}-notice`,o=`${n}-actions`,a=X(e);return{[`${n}-pure-panel`]:{width:r,maxWidth:"100%",...a,[n]:{...a[n],position:"relative",width:"100%",maxWidth:"100%"},[o]:{...a[o],float:"none",textAlign:"end"}}}})(ie(e)),ae),(e,t)=>{const r=t.itemStyle??G;return[le(e,t),r(e),oe(e)]}),ue=(0,W.OF)("Notification",e=>{const t=ie(e);return ce(t,{listWidthKey:"width"})},ae),de=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),r=e.paddingSM;return(0,F.oX)(ie(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:r})},pe=e=>({zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),me=e=>{const{fontSize:t,fontSizeLG:r,lineHeight:n}=e;return q(e,{width:"max-content",iconFontSize:r,titleFontSize:t,titleLineHeight:n,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},he=e=>{const{componentCls:t}=e,r=`${t}-notice`,n=`${t}-list-content`,o=me(e),{"&::after":a,...i}=o[r],s={...i,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[n]:{isolation:"isolate","&::before":{...s,top:`calc(var(--top-notificiation-height) - ${(0,z.zA)(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${(0,z.zA)(e.margin)})`},"&::after":{...s,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${(0,z.zA)(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[n]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},fe=((0,W.bf)(["Message","PurePanel"],e=>(e=>{const{componentCls:t}=e,r=`${t}-notice`,n=me(e);return{[`${r}-pure-panel`]:{width:"max-content",maxWidth:"100%",...n,[r]:{...n[r],position:"relative",width:"max-content",maxWidth:"100%"}}}})(de(e)),pe),e=>({[e.componentCls]:me(e)})),ge=(0,W.OF)("Message",e=>{const t=de(e);return[ce(t,{stackVisibleCount:1,itemStyle:fe}),he(t)]},pe),be=3,ve=({children:e,prefixCls:t})=>{const r=(0,M.A)(t),[o,i]=ge(t,r);return n.createElement(g,{classNames:{list:(0,a.$)(o,i,r)}},e)},xe=(e,{prefixCls:t,key:r})=>n.createElement(ve,{prefixCls:t,key:r},e),ye=n.forwardRef((e,t)=>{const{top:r,prefixCls:o,getContainer:i,maxCount:l,duration:c=be,rtl:u,classNames:d,styles:p,transitionName:m,pauseOnHover:h=!0,stack:f,onAllRemoved:g}=e,{getPrefixCls:b,direction:v,getPopupContainer:x}=(0,s.TP)("message"),{message:y}=n.useContext(s.QO),$=o||b("message"),[C,w]=(0,N.AV)([y?.classNames,d],[y?.styles,p],{props:e}),S=P(f,!1),[k,E]=A({prefixCls:$,style:()=>I(r??8),className:()=>(0,a.$)({[`${$}-rtl`]:u??"rtl"===v}),motion:()=>function(e,t){return{motionName:t??`${e}-fade`}}($,m),closable:!1,duration:c,getContainer:()=>i?.()||x?.()||document.body,maxCount:l,onAllRemoved:g,classNames:C,styles:w,renderNotifications:xe,pauseOnHover:h,stack:S});return n.useImperativeHandle(t,()=>({...k,prefixCls:$,message:y})),E});let $e=0;function Ce(e){const t=n.useRef(null),r=((0,i.rJ)("Message"),n.useMemo(()=>{const r=e=>{t.current?.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:s}=t.current,l=s?.className||{},c=s?.style||{},u=`${i}-notice`,{content:d,icon:p,type:m,key:h,className:f,style:g,onClose:b,classNames:v={},styles:x={},...y}=n;let $=h;(0,j.R)($)||($e+=1,$=`antd-message-${$e}`);const C={...e,...n},w=(0,N.Jb)(v,{props:C}),S=(0,N.Jb)(x,{props:C}),k=((e,t)=>t||e&&H[e]||null)(m,p),E=m?`${u}-icon-${m}`:void 0;return function(){let e;const t=new Promise(t=>{e=(e=>(o({...y,key:$,icon:k,title:d,classNames:{...w,wrapper:(0,a.$)(m&&`${i}-${m}`,w.wrapper),icon:(0,a.$)(E,w.icon)},styles:S,placement:"top",className:(0,a.$)({[`${u}-${m}`]:m},f,l),style:{...c,...g},onClose:()=>{b?.(),e()}}),()=>{r($)}))(()=>{t(!0)})}),n=()=>{e?.()};return n.then=(e,r)=>t.then(e,r),n.promise=t,n}()},o={open:n,destroy:e=>{void 0!==e?r(e):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{o[e]=(t,r,o)=>{let a,i,s;a=(0,j.Qd)(t)&&"content"in t?t:{content:t},(0,j.Tn)(r)?s=r:(i=r,s=o);const l={onClose:s,duration:i,...a,type:e};return n(l)}}),o},[]));return[r,n.createElement(ye,{key:"message-holder",...e,ref:t})]}var we=r(6777),Se=r(64),ke=r(5886);const Ee={info:n.createElement(B.A,null),success:n.createElement(R.A,null),error:n.createElement(T.A,null),warning:n.createElement(O.A,null),loading:n.createElement(L.A,null)};function _e(e,t){return null===t||!1===t?null:t||n.createElement(ke.A,{className:`${e}-close-icon`})}const Ae=4.5,Ne={offset:8},je=({children:e,prefixCls:t})=>{const r=(0,M.A)(t),[n,i]=ue(t,r);return o().createElement(g,{classNames:{list:(0,a.$)(n,i,r)}},e)},Me=(e,{prefixCls:t,key:r})=>o().createElement(je,{prefixCls:t,key:r},e),Pe=o().forwardRef((e,t)=>{const{top:r,bottom:i,prefixCls:l,getContainer:c,maxCount:u,rtl:d,onAllRemoved:p,stack:m,duration:h=Ae,pauseOnHover:f=!0,showProgress:g}=e,{getPrefixCls:b,getPopupContainer:v,direction:x}=(0,s.TP)("notification"),{notification:y}=(0,n.useContext)(s.QO),$=l||b("notification"),C=(0,n.useMemo)(()=>!!((0,j.Et)(h)&&h>0)&&h,[h]),[w,S]=(0,N.AV)([y?.classNames,e?.classNames],[y?.styles,e?.styles],{props:e}),k=P(m,Ne),[E,_]=A({prefixCls:$,style:()=>I(r,i),className:()=>(0,a.$)({[`${$}-rtl`]:d??"rtl"===x}),motion:()=>function(e){return{motionName:`${e}-fade`}}($),closable:{closeIcon:_e($)},duration:C,getContainer:()=>c?.()||v?.()||document.body,maxCount:u,pauseOnHover:f,showProgress:g,classNames:w,styles:S,onAllRemoved:p,renderNotifications:Me,stack:k});return o().useImperativeHandle(t,()=>({...E,prefixCls:$,notification:y})),_});const ze=o().createContext({}),Ie=o().createContext({message:{},notification:{},modal:{}}),Re=(0,W.OF)("App",e=>{const{componentCls:t,colorText:r,fontSize:n,lineHeight:o,fontFamily:a}=e;return{[t]:{color:r,fontSize:n,lineHeight:o,fontFamily:a,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({})),Te=o().forwardRef((e,t)=>{const{prefixCls:r,children:l,className:c,rootClassName:u,message:d,notification:p,style:m,component:h="div"}=e,{direction:f,getPrefixCls:g,className:b,style:v}=(0,s.TP)("app"),x=g("app",r),[y,$]=Re(x),C=(0,a.$)(y,x,c,u,$,{[`${x}-rtl`]:"rtl"===f}),w=(0,n.useContext)(ze),S=o().useMemo(()=>({message:{...w.message,...d},notification:{...w.notification,...p}}),[d,p,w.message,w.notification]),[k,E]=Ce(S.message),[_,A]=function(e){const t=o().useRef(null),{notification:r}=((0,i.rJ)("Notification"),o().useContext(s.QO)),n=o().useMemo(()=>{const n=n=>{if(!t.current)return;const{open:o,prefixCls:i,notification:s}=t.current,l=s?.className||{},c=s?.style||{},u=`${i}-notice`,{title:d,message:p,description:m,icon:h,type:f,btn:g,actions:b,className:v,style:x,role:y="alert",closeIcon:$,closable:C,classNames:w={},styles:S={},...k}=n,E=d??p,_=(0,j.AZ)(E),A=b??g,M=_e(u,function(e,t,r){return void 0!==e?e:void 0!==t?.closeIcon?t.closeIcon:r?.closeIcon}($,e,s)),[P,z,,I]=(0,Se.b8)((0,Se.dG)({...e||{},...n}),(0,Se.dG)(r),{closable:!0,closeIcon:M}),R=!!P&&{onClose:(0,j.Qd)(C)?C.onClose:void 0,closeIcon:z,...I},T=(0,N.Jb)(w,{props:n}),O=(0,N.Jb)(S,{props:n}),B=h||(f?Ee[f]:null),L=!h&&f?`${u}-icon-${f}`:void 0;return o({placement:e?.placement??"topRight",...k,title:_?E:null,description:m,icon:B,actions:A,role:y,classNames:{...T,icon:(0,a.$)(L,T.icon)},styles:{...O,root:{...c,...O.root}},className:(0,a.$)({[`${u}-${f}`]:f},v,l),style:x,closable:R})},o={open:n,destroy:e=>{void 0!==e?t.current?.close(e):t.current?.destroy()}};return["success","info","warning","error"].forEach(e=>{o[e]=t=>n({...t,type:e})}),o},[e,r]);return[n,o().createElement(Pe,{key:"notification-holder",...e,ref:t})]}(S.notification),[M,P]=(0,we.A)(),z=o().useMemo(()=>({message:k,notification:_,modal:M}),[k,_,M]);(0,i.rJ)("App")(!($&&!1===h),"usage","When using cssVar, ensure `component` is assigned a valid React component string."),(0,i.rJ)("App")(!t||!1!==h,"usage","`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");const I=!1===h?o().Fragment:h,R={className:(0,a.$)(b,C),style:{...v,...m}};return o().createElement(Ie.Provider,{value:z},o().createElement(ze.Provider,{value:S},o().createElement(I,{...!1===h?void 0:{...R,ref:t}},P,E,A,l)))}),Oe=Te;Oe.useApp=()=>o().useContext(Ie);const Be=Oe},5788(e,t,r){r.d(t,{A:()=>re});var n=r(1609),o=r.n(n),a=r(6487),i=r(4164),s=r(992),l=r(1685),c=r(57),u=r(2279),d=r(8119),p=r(829),m=r(7090),h=r(8484);const f=n.createContext(void 0);var g=r(9449),b=r(6962),v=r(3057);const x=(0,n.forwardRef)((e,t)=>{const{className:r,style:n,children:a,prefixCls:s}=e,l=(0,i.$)(`${s}-icon`,r);return o().createElement("span",{ref:t,className:l,style:n},a)}),y=x,$=(0,n.forwardRef)((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:s}=e,l=(0,i.$)(`${r}-loading-icon`,n);return o().createElement(y,{prefixCls:r,className:l,style:a,ref:t},o().createElement(b.A,{className:s}))}),C=()=>({width:0,opacity:0,transform:"scale(0)"}),w=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),S=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:s,mount:l}=e,c=!!r;return n?o().createElement($,{prefixCls:t,className:a,style:s}):o().createElement(v.Ay,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:C,onAppearActive:w,onEnterStart:C,onEnterActive:w,onLeaveStart:w,onLeaveActive:C},({className:e,style:r},n)=>{const l={...s,...r};return o().createElement($,{prefixCls:t,className:(0,i.$)(a,e),style:l,ref:n})})};var k=r(738),E=r(5905),_=r(6130),A=r(485),N=r(7358);const j=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),M=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},j(`${t}-primary`,o),j(`${t}-danger`,a)]}};var P=r(9911),z=r(3596),I=r(3950),R=r(4925),T=r(5045);const O=e=>{const{paddingInline:t,onlyIconSize:r,borderColorDisabled:n}=e;return(0,A.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:n})},B=e=>{const t=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??(0,R.k)(t),a=e.contentLineHeightSM??(0,R.k)(r),i=e.contentLineHeightLG??(0,R.k)(n),s=(0,z.z)(new P.kf(e.colorBgSolid),"#fff")?"#000":"#fff",l=I.s.reduce((t,r)=>({...t,[`${r}ShadowColor`]:`0 ${(0,k.zA)(e.controlOutlineWidth)} 0 ${(0,T.A)(e[`${r}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...l,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:r,contentFontSizeLG:n,contentLineHeight:o,contentLineHeightSM:a,contentLineHeightLG:i,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*i)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:u}},L=e=>{const{componentCls:t,antCls:r,lineWidth:n}=e,[o,a]=(0,N.PN)(r,"btn");return{[t]:[{[o("border-width")]:n,[o("border-color")]:"#000",[o("border-color-hover")]:a("border-color"),[o("border-color-active")]:a("border-color"),[o("border-color-disabled")]:a("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color"),[o("text-color-disabled")]:a("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:a("bg-color"),[o("bg-color-active")]:a("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[a("border-width"),a("border-style"),a("border-color")].join(" "),color:a("text-color"),backgroundColor:a("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a("border-width"),a("border-style"),a("border-color-hover")].join(" "),color:a("text-color-hover"),backgroundColor:a("bg-color-hover")},"&:active":{border:[a("border-width"),a("border-style"),a("border-color-active")].join(" "),color:a("text-color-active"),backgroundColor:a("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:a("color-base"),[o("solid-bg-color-hover")]:a("color-hover"),[o("solid-bg-color-active")]:a("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:a("solid-bg-color"),[o("bg-color-hover")]:a("solid-bg-color-hover"),[o("bg-color-active")]:a("solid-bg-color-active"),boxShadow:a("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:a("color-base"),[o("border-color-hover")]:a("color-hover"),[o("border-color-active")]:a("color-active"),[o("bg-color")]:a("bg-color-container"),[o("text-color")]:a("color-base"),[o("text-color-hover")]:a("color-hover"),[o("text-color-active")]:a("color-active"),boxShadow:a("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:a("color-base"),[o("bg-color")]:a("color-light"),[o("bg-color-hover")]:a("color-light-hover"),[o("bg-color-active")]:a("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:a("color-base"),[o("text-color-hover")]:a("color-hover"),[o("text-color-active")]:a("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:a("color-light"),[o("bg-color-active")]:a("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:a("text-color"),[o("text-color-active")]:a("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},I.s.map(r=>{const n=e[`${r}6`],a=e[`${r}1`],i=e[`${r}Hover`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}Active`],u=e[`${r}ShadowColor`];return{[`&${t}-color-${r}`]:{[o("color-base")]:n,[o("color-hover")]:i,[o("color-active")]:c,[o("color-light")]:a,[o("color-light-hover")]:s,[o("color-light-active")]:l,[o("shadow")]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:a("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}},H=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:i,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...(0,_.V)(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,E.Nk)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,E.K8)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${a} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},D=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),F=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:a,buttonPaddingHorizontal:i,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${(0,k.zA)(l)} ${(0,k.zA)(i)}`,borderRadius:a,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:D(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},W=e=>{const t=(0,A.oX)(e,{fontSize:e.contentFontSize});return F(t,e.componentCls)},V=e=>{const t=(0,A.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return F(t,`${e.componentCls}-sm`)},q=e=>{const t=(0,A.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return F(t,`${e.componentCls}-lg`)},X=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},G=(0,N.OF)("Button",e=>{const t=O(e);return[H(t),W(t),V(t),q(t),X(t),L(t),M(t)]},B,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var K=r(5974);function U(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function Y(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...U(e,t,e.componentCls),...(r=e.componentCls,n=t,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${r}-sm, &${r}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}};var r,n}const Q=e=>{const{antCls:t,componentCls:r,lineWidth:n,calc:o,colorBgContainer:a}=e,i=`${r}-variant-solid:not([disabled])`,s=o(n).mul(-1).equal(),[l,c]=(0,N.PN)(t,"btn"),u=e=>{const t=`${r}-compact${e?"-vertical":""}-item`;return{[t]:{[l("compact-connect-border-color")]:c("bg-color-hover"),[`&${i}`]:{transition:"none",[`& + ${i}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},e?{top:s,insetInline:s,height:n}:{insetBlock:s,insetInlineStart:s,width:n}],"&:hover:before":{display:"none"}}}}};return[u(),u(!0),{[`${i}${r}-color-default`]:{[l("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${a})`}}]},Z=(0,N.bf)(["Button","compact"],e=>{const t=O(e);return[(0,K.G)(t),Y(t),Q(t)]},B),J={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},ee=o().forwardRef((e,t)=>{const{_skipSemantic:r,loading:h=!1,prefixCls:b,color:v,variant:x,type:$,danger:C=!1,shape:w,size:k,disabled:E,className:_,rootClassName:A,children:N,icon:j,iconPosition:M,iconPlacement:P,ghost:z=!1,block:I=!1,htmlType:R="button",classNames:T,styles:O,style:B,autoInsertSpace:L,autoFocus:H,...D}=e,F=(0,a.$r)(N),W=$||"default",{getPrefixCls:V,direction:q,autoInsertSpace:X,className:K,style:U,classNames:Y,styles:Q,loadingIcon:ee,shape:te,color:re,variant:ne}=(0,u.TP)("button"),oe=w||te||"default",[ae,ie]=(0,n.useMemo)(()=>{if(v&&x)return[v,x];if($||C){const e=J[W]||[];return C?["danger",e[1]]:e}return"solid"===x?["primary",x]:re&&ne?[re,ne]:"solid"===ne?["primary",ne]:["default","outlined"]},[v,x,$,C,re,ne,W]),[se,le]=(0,n.useMemo)(()=>z&&"solid"===ie?[ae,"outlined"]:[ae,ie],[ae,ie,z]),ce="danger"===se,ue=ce?"dangerous":se,de=L??X??!0,pe=V("btn",b),[me,he]=G(pe),fe=(0,n.useContext)(d.A),ge=E??fe,be=(0,n.useContext)(f),ve=(0,n.useMemo)(()=>function(e){if((0,l.Qd)(e)){let t=e?.delay;return t=(0,l.Et)(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(h),[h]),[xe,ye]=(0,n.useState)(ve.loading),[$e,Ce]=(0,n.useState)(!1),we=(0,n.useRef)(null),Se=(0,a.xK)(t,we),ke=1===F.length&&!j&&!(0,g.u1)(le),Ee=(0,n.useRef)(!0);o().useEffect(()=>(Ee.current=!1,()=>{Ee.current=!0}),[]),(0,a.Nf)(()=>{let e=null;return ve.delay>0?e=setTimeout(()=>{e=null,ye(!0)},ve.delay):ye(ve.loading),function(){e&&(clearTimeout(e),e=null)}},[ve.delay,ve.loading]),(0,n.useEffect)(()=>{if(!we.current||!de)return;const e=we.current.textContent||"";ke&&(0,g.Ap)(e)?$e||Ce(!0):$e&&Ce(!1)}),(0,n.useEffect)(()=>{H&&we.current&&we.current.focus()},[]);const _e=o().useCallback(t=>{xe||ge?t.preventDefault():e.onClick?.(t)},[e.onClick,xe,ge]),{compactSize:Ae,compactItemClassnames:Ne}=(0,m.RQ)(pe,q),je=(0,p.A)(e=>k??Ae??be??e),Me=xe?"loading":j,Pe=P??M??"start",ze=(0,a.cJ)(D,["navigate"]),Ie={...e,type:W,color:se,variant:le,danger:ce,shape:oe,size:je,disabled:ge,loading:xe,iconPlacement:Pe},Re=(0,s.XT)(U),Te=(0,s.XT)(B),[Oe,Be]=(0,s.AV)([r?void 0:Y,T],[r?void 0:Q,Re,O,Te],{props:Ie}),Le=(0,i.$)(pe,me,he,{[`${pe}-${oe}`]:"default"!==oe&&"square"!==oe&&oe,[`${pe}-${W}`]:W,[`${pe}-dangerous`]:C,[`${pe}-color-${ue}`]:ue,[`${pe}-variant-${le}`]:le,[`${pe}-lg`]:"large"===je,[`${pe}-sm`]:"small"===je,[`${pe}-icon-only`]:!N&&0!==N&&!!Me,[`${pe}-background-ghost`]:z&&!(0,g.u1)(le),[`${pe}-loading`]:xe,[`${pe}-two-chinese-chars`]:$e&&de&&!xe,[`${pe}-block`]:I,[`${pe}-rtl`]:"rtl"===q,[`${pe}-icon-end`]:"end"===Pe},Ne,_,A,K,Oe.root),He={className:Oe.icon,style:Be.icon},De=e=>o().createElement(y,{prefixCls:pe,...He},e),Fe=o().createElement(S,{existIcon:!!j,prefixCls:pe,loading:xe,mount:Ee.current,...He}),We=(0,l.Qd)(h)&&h.icon||ee;let Ve;Ve=j&&!xe?De(j):h&&We?De(We):Fe;const qe=(0,l.AZ)(N)?(0,g.uR)(N,ke&&de,Be.content,Oe.content):null;if(void 0!==ze.href)return o().createElement("a",{...ze,className:(0,i.$)(Le,{[`${pe}-disabled`]:ge}),href:ge?void 0:ze.href,style:Be.root,onClick:_e,ref:Se,tabIndex:ge?-1:0,"aria-disabled":ge},Ve,qe);let Xe=o().createElement("button",{...D,type:R,className:Le,style:Be.root,onClick:_e,disabled:ge,ref:Se},Ve,qe,Ne&&o().createElement(Z,{prefixCls:pe}));return(0,g.u1)(le)||(Xe=o().createElement(c.A,{component:"Button",disabled:xe},Xe)),Xe}),te=ee;te.Group=e=>{const{getPrefixCls:t,direction:r}=n.useContext(u.QO),{prefixCls:o,size:a,className:s,...l}=e,c=t("btn-group",o),[,,d]=(0,h.Ay)(),p=n.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),m=(0,i.$)(c,{[`${c}-${p}`]:p,[`${c}-rtl`]:"rtl"===r},s,d);return n.createElement(f.Provider,{value:a},n.createElement("div",{...l,className:m}))},te.__ANT_BUTTON=!0;const re=te},9449(e,t,r){r.d(t,{DU:()=>p,u1:()=>m,uR:()=>h});var n=r(5458),o=r(1609),a=r.n(o),i=r(4164),s=r(1685),l=r(682),c=r(3950);const u=/^[\u4E00-\u9FA5]{2}$/,d=u.test.bind(u);function p(e){return"danger"===e?{danger:!0}:{type:e}}function m(e){return"text"===e||"link"===e}function h(e,t,r,n){let o=!1;const c=[];return a().Children.forEach(e,e=>{const t=(0,s.Kg)(e)||(0,s.Et)(e);if(o&&t){const t=c.length-1,r=c[t];c[t]=`${r}${e}`}else c.push(e);o=t}),a().Children.map(c,e=>function(e,t,r,n){if(!(0,s.AZ)(e))return;const o=t?" ":"";return!(0,s.Kg)(e)&&!(0,s.Et)(e)&&(0,s.Kg)(e.type)&&d(e.props.children)?(0,l.Ob)(e,e=>{const t=(0,i.$)(e.className,n)||void 0,a={...r,...e.style};return{...e,children:e.children.split("").join(o),className:t,style:a}}):(0,s.Kg)(e)?a().createElement("span",{className:n,style:r},d(e)?e.split("").join(o):e):(0,l.zv)(e)?a().createElement("span",{className:n,style:r},e):(0,l.Ob)(e,e=>({...e,className:(0,i.$)(e.className,n)||void 0,style:{...e.style,...r}}))}(e,t,r,n))}["default","primary","danger"].concat((0,n.A)(c.s)),r.d(t,["Ap",0,d])},400(e,t,r){const n=r(5788).A;r.d(t,["A",0,n])},4651(e,t,r){r.d(t,{A:()=>N});var n=r(1609),o=r(6487),a=r(4164),i=r(992),s=r(2279),l=r(829),c=r(124),u=r(7072),d=r(1041);const p=({prefixCls:e,className:t,hoverable:r=!0,...o})=>{const{getPrefixCls:i}=n.useContext(s.QO),l=i("card",e),c=(0,a.$)(`${l}-grid`,t,{[`${l}-grid-hoverable`]:r});return n.createElement("div",{...o,className:c})};var m=r(738),h=r(5905),f=r(7358),g=r(485);const b=e=>{const{antCls:t,componentCls:r,headerHeight:n,headerPadding:o,tabsMarginBottom:a}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${(0,m.zA)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)} 0 0`,...(0,h.t6)(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...h.L9,[`\n > ${r}-typography,\n > ${r}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},v=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${(0,m.zA)(o)} 0 0 0 ${r},\n 0 ${(0,m.zA)(o)} 0 0 ${r},\n ${(0,m.zA)(o)} ${(0,m.zA)(o)} 0 0 ${r},\n ${(0,m.zA)(o)} 0 0 0 ${r} inset,\n 0 ${(0,m.zA)(o)} 0 0 ${r} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},x=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:i}=e;return{margin:0,padding:0,listStyle:"none",background:i,borderTop:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)}`,...(0,h.t6)(),"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:(0,m.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:o,lineHeight:(0,m.zA)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${a}`}}}},y=e=>({margin:`${(0,m.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...(0,h.t6)(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...h.L9},"&-description":{color:e.colorTextDescription}}),$=e=>{const{componentCls:t,colorFillAlter:r,headerPadding:n,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${(0,m.zA)(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,m.zA)(e.padding)} ${(0,m.zA)(o)}`}}},C=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},w=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:i,extraColor:s,motionDurationMid:l}=e;return{[t]:{...(0,h.dF)(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:b(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:v(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:x(e),[`${t}-meta`]:y(e)},[`${t}-bordered`]:{border:`${(0,m.zA)(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:["box-shadow","border-color"].map(e=>`${e} ${l}`).join(", "),"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${(0,m.zA)(e.borderRadiusLG)} ${(0,m.zA)(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:$(e),[`${t}-loading`]:C(e),[`${t}-rtl`]:{direction:"rtl"}}},S=e=>{const{componentCls:t,bodyPaddingSM:r,headerPaddingSM:n,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${(0,m.zA)(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},k=(0,f.OF)("Card",e=>{const t=(0,g.oX)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[w(t),S(t)]},e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),E=e=>{const{actionClasses:t,actions:r=[],actionStyle:o}=e;return n.createElement("ul",{className:t,style:o},r.map((e,t)=>{const o=`action-${t}`;return n.createElement("li",{style:{width:100/r.length+"%"},key:o},n.createElement("span",null,e))}))},_=n.forwardRef((e,t)=>{const{prefixCls:r,className:m,rootClassName:h,style:f,extra:g,headStyle:b={},bodyStyle:v={},title:x,loading:y,bordered:$,variant:C,size:w,type:S,cover:_,actions:A,tabList:N,children:j,activeTabKey:M,defaultActiveTabKey:P,tabBarExtraContent:z,hoverable:I,tabProps:R={},classNames:T,styles:O,...B}=e,{getPrefixCls:L,direction:H,className:D,style:F,classNames:W,styles:V}=(0,s.TP)("card"),[q]=(0,c.A)("card",C,$),X=(0,l.A)(w),G={...e,size:X,variant:q},K=(0,i.XT)(F),U=(0,i.XT)(f),[Y,Q]=(0,i.AV)([W,T],[V,K,O,U],{props:G}),Z=n.useMemo(()=>(0,o.$r)(j),[j]),J=n.useMemo(()=>Z.some(e=>n.isValidElement(e)&&e.type===p),[Z]),ee=L("card",r),[te,re]=k(ee),ne=n.createElement(u.A,{loading:!0,active:!0,paragraph:{rows:4},title:!1},j),oe=void 0!==M,ae={...R,[oe?"activeKey":"defaultActiveKey"]:oe?M:P,tabBarExtraContent:z};let ie;const se="small"!==X?"large":X,le=N?n.createElement(d.A,{size:se,...ae,className:`${ee}-head-tabs`,onChange:t=>{e.onTabChange?.(t)},items:N.map(({tab:e,...t})=>({label:e,...t}))}):null;if(x||g||le){const e=(0,a.$)(`${ee}-head`,Y.header),t=(0,a.$)(`${ee}-head-title`,Y.title),r=(0,a.$)(`${ee}-extra`,Y.extra),o={...b,...Q.header};ie=n.createElement("div",{className:e,style:o},n.createElement("div",{className:`${ee}-head-wrapper`},x&&n.createElement("div",{className:t,style:Q.title},x),g&&n.createElement("div",{className:r,style:Q.extra},g)),le)}const ce=(0,a.$)(`${ee}-cover`,Y.cover),ue=_?n.createElement("div",{className:ce,style:Q.cover},_):null,de=(0,a.$)(`${ee}-body`,Y.body),pe={...v,...Q.body},me=y||Z.length?n.createElement("div",{className:de,style:pe},y?ne:j):null,he=(0,a.$)(`${ee}-actions`,Y.actions),fe=A?.length?n.createElement(E,{actionClasses:he,actionStyle:Q.actions,actions:A}):null,ge=(0,o.cJ)(B,["onTabChange"]),be=(0,a.$)(ee,D,{[`${ee}-loading`]:y,[`${ee}-bordered`]:"borderless"!==q,[`${ee}-hoverable`]:I,[`${ee}-contain-grid`]:J,[`${ee}-contain-tabs`]:N?.length,[`${ee}-small`]:"small"===X,[`${ee}-type-${S}`]:!!S,[`${ee}-rtl`]:"rtl"===H},m,h,te,re,Y.root),ve={...Q.root};return n.createElement("div",{ref:t,...ge,className:be,style:ve},ie,ue,me,fe)}),A=_;A.Grid=p,A.Meta=e=>{const{prefixCls:t,className:r,avatar:o,title:l,description:c,style:u,classNames:d,styles:p,...m}=e,{getPrefixCls:h,className:f,style:g,classNames:b,styles:v}=(0,s.TP)("cardMeta"),x=`${h("card",t)}-meta`,y=(0,i.XT)(g),$=(0,i.XT)(u),[C,w]=(0,i.AV)([b,d],[v,y,p,$],{props:e}),S=(0,a.$)(x,r,f,C.root),k={...w.root},E=(0,a.$)(`${x}-avatar`,C.avatar),_=(0,a.$)(`${x}-title`,C.title),A=(0,a.$)(`${x}-description`,C.description),N=(0,a.$)(`${x}-section`,C.section),j=o?n.createElement("div",{className:E,style:w.avatar},o):null,M=l?n.createElement("div",{className:_,style:w.title},l):null,P=c?n.createElement("div",{className:A,style:w.description},c):null,z=M||P?n.createElement("div",{className:N,style:w.section},M,P):null;return n.createElement("div",{...m,className:S,style:k},j,z)};const N=A},6370(e,t,r){const n=r(6606).A;r.d(t,["A",0,n])},4101(e,t,r){r.d(t,{A:()=>F});var n=r(1609),o=r.n(n),a=r(4588),i=r(8168),s=r(4164),l=r(6487),c=r(6536),u=r(1076),d=r(3057),p=r(8558);const m=o().forwardRef((e,t)=>{const{prefixCls:r,forceRender:n,className:a,style:i,children:l,isActive:c,role:u,classNames:d,styles:p}=e,[m,h]=o().useState(c||n);return o().useEffect(()=>{(n||c)&&h(!0)},[n,c]),m?o().createElement("div",{ref:t,className:(0,s.$)(`${r}-panel`,{[`${r}-panel-active`]:c,[`${r}-panel-inactive`]:!c},a),style:i,role:u},o().createElement("div",{className:(0,s.$)(`${r}-body`,d?.body),style:p?.body},l)):null}),h=m,f=o().forwardRef((e,t)=>{const{showArrow:r=!0,headerClass:n,isActive:a,onItemClick:l,forceRender:c,className:u,classNames:m={},styles:f={},prefixCls:g,collapsible:b,accordion:v,panelKey:x,extra:y,header:$,expandIcon:C,openMotion:w,destroyOnHidden:S,children:k,...E}=e,_="disabled"===b,A=null!=y&&"boolean"!=typeof y,N={onClick:()=>{l?.(x)},onKeyDown:e=>{"Enter"!==e.key&&e.keyCode!==p.A.ENTER&&e.which!==p.A.ENTER||l?.(x)},role:v?"tab":"button","aria-expanded":a,"aria-disabled":_,tabIndex:_?-1:0},j="function"==typeof C?C(e):o().createElement("i",{className:"arrow"}),M=j&&o().createElement("div",(0,i.A)({className:(0,s.$)(`${g}-expand-icon`,m?.icon),style:f?.icon},["header","icon"].includes(b)?N:{}),j),P=(0,s.$)(`${g}-item`,{[`${g}-item-active`]:a,[`${g}-item-disabled`]:_},u),z={className:(0,s.$)(n,`${g}-header`,{[`${g}-collapsible-${b}`]:!!b},m?.header),style:f?.header,...["header","icon"].includes(b)?{}:N};return o().createElement("div",(0,i.A)({},E,{ref:t,className:P}),o().createElement("div",z,r&&M,o().createElement("span",(0,i.A)({className:(0,s.$)(`${g}-title`,m?.title),style:f?.title},"header"===b?N:{}),$),A&&o().createElement("div",{className:`${g}-extra`},y)),o().createElement(d.Ay,(0,i.A)({visible:a,leavedClassName:`${g}-panel-hidden`},w,{forceRender:c,removeOnLeave:S}),({className:e,style:t},r)=>o().createElement(h,{ref:r,prefixCls:g,className:e,classNames:m,style:t,styles:f,isActive:a,forceRender:c,role:v?"tabpanel":void 0},k)))});function g(e,t,r){if(!e||!t)return e||t;const n=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),o={};return n.forEach(n=>{o[n]=r(e[n],t[n])}),o}function b(e,t){return g(e,t,(e,t)=>({...e,...t}))}var v=r(7795);function x(e){let t=e;if(!Array.isArray(t)){const e=typeof t;t="number"===e||"string"===e?[t]:[]}return t.map(e=>String(e))}const y=o().forwardRef((e,t)=>{const{prefixCls:r="rc-collapse",destroyOnHidden:n=!1,style:a,accordion:d,className:p,children:m,collapsible:h,openMotion:y,expandIcon:$,activeKey:C,defaultActiveKey:w,onChange:S,items:k,classNames:E,styles:_}=e,A=(0,s.$)(r,p),[N,j]=(0,l.PW)(w,C),M=x(N),P=(0,l._q)(e=>{const t=x(e);j(t),S?.(t)});(0,c.Ay)(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const z=function(e,t,r){return Array.isArray(e)?((e,t)=>{const{prefixCls:r,accordion:n,collapsible:a,destroyOnHidden:l,onItemClick:c,activeKey:u,openMotion:d,expandIcon:p,classNames:m,styles:h}=t;return e.map((e,t)=>{const{children:v,label:x,key:y,collapsible:$,onItemClick:C,destroyOnHidden:w,classNames:S,styles:k,...E}=e,_=String(y??t),A=$??a,N=w??l;let j=!1;return j=n?u[0]===_:u.indexOf(_)>-1,o().createElement(f,(0,i.A)({},E,{classNames:(M=m,P=S,g(M,P,(e,t)=>(0,s.A)(e,t))),styles:b(h,k),prefixCls:r,key:_,panelKey:_,isActive:j,accordion:n,openMotion:d,expandIcon:p,header:x,collapsible:A,onItemClick:e=>{"disabled"!==A&&(c(e),C?.(e))},destroyOnHidden:N}),v);var M,P})})(e,r):(0,u.A)(t).map((e,t)=>((e,t,r)=>{if(!e)return null;const{prefixCls:n,accordion:a,collapsible:i,destroyOnHidden:s,onItemClick:l,activeKey:c,openMotion:u,expandIcon:d,classNames:p,styles:m}=r,h=e.key||String(t),{header:f,headerClass:g,destroyOnHidden:b,collapsible:v,onItemClick:x}=e.props;let y=!1;y=a?c[0]===h:c.indexOf(h)>-1;const $=v??i,C={key:h,panelKey:h,header:f,headerClass:g,classNames:p,styles:m,isActive:y,prefixCls:n,destroyOnHidden:b??s,openMotion:u,accordion:a,children:e.props.children,onItemClick:e=>{"disabled"!==$&&(l(e),x?.(e))},expandIcon:d,collapsible:$};return"string"==typeof e.type?e:(Object.keys(C).forEach(e=>{void 0===C[e]&&delete C[e]}),o().cloneElement(e,C))})(e,t,r))}(k,m,{prefixCls:r,accordion:d,openMotion:y,expandIcon:$,collapsible:h,destroyOnHidden:n,onItemClick:e=>{P(d?M[0]===e?[]:[e]:M.includes(e)?M.filter(t=>t!==e):[...M,e])},activeKey:M,classNames:E,styles:_});return o().createElement("div",(0,i.A)({ref:t,className:A,style:a,role:d?"tablist":void 0},(0,v.A)(e,{aria:!0,data:!0})),z)}),$=Object.assign(y,{Panel:f}),C=$,{Panel:w}=$;var S=r(992),k=r(1685),E=r(3723),_=r(682),A=r(2279),N=r(829);const j=n.forwardRef((e,t)=>{const{getPrefixCls:r}=n.useContext(A.QO),{prefixCls:o,className:a,showArrow:i=!0}=e,l=r("collapse",o),c=(0,s.$)({[`${l}-no-arrow`]:!i},a);return n.createElement(C.Panel,{ref:t,...e,prefixCls:l,className:c})});var M=r(738),P=r(5905);const z=e=>{const{componentCls:t,antCls:r,motionDurationMid:n,motionEaseInOut:o}=e;return{[t]:{[`${r}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(e=>`${e} ${n} ${o}`).join(", ")} !important`}},[`${r}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(e=>`${e} ${n} ${o}`).join(", ")} !important`}}}};var I=r(7358),R=r(485);const T=e=>{const{componentCls:t,contentBg:r,padding:n,headerBg:o,headerPadding:a,headerPaddingSM:i,headerPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:m,colorTextDisabled:h,fontSizeLG:f,lineHeight:g,lineHeightLG:b,marginSM:v,paddingSM:x,paddingLG:y,paddingXS:$,motionDurationSlow:C,fontSizeIcon:w,contentPadding:S,contentPaddingSM:k,contentPaddingLG:E,fontHeight:_,fontHeightLG:A}=e,N=`${(0,M.zA)(c)} ${u} ${d}`;return{[t]:{...(0,P.dF)(e),backgroundColor:o,border:N,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:first-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`${(0,M.zA)(l)} ${(0,M.zA)(l)} 0 0`}},"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${(0,M.zA)(l)} ${(0,M.zA)(l)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:m,lineHeight:g,cursor:"pointer",transition:`all ${C}, visibility 0s`,...(0,P.K8)(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:_,display:"flex",alignItems:"center",marginInlineEnd:v},[`${t}-arrow`]:{...(0,P.Nk)(),fontSize:w,transition:`transform ${C}`,svg:{transition:`transform ${C}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:p,backgroundColor:r,borderTop:N,[`& > ${t}-body`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub($).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:k}}},"&-large":{[`> ${t}-item`]:{fontSize:f,lineHeight:b,[`> ${t}-header`]:{padding:s,[`> ${t}-expand-icon`]:{height:A,marginInlineStart:e.calc(y).sub(n).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:E}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${(0,M.zA)(l)} ${(0,M.zA)(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:h,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:v}}}}}}},O=e=>{const{componentCls:t}=e,r=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[r]:{transform:"rotate(180deg)"}}}},B=e=>{const{componentCls:t,headerBg:r,borderlessContentPadding:n,borderlessContentBg:o,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:r,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:n}}}},L=e=>{const{componentCls:t,paddingSM:r}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:r}}}}}},H=(0,I.OF)("Collapse",e=>{const t=(0,R.oX)(e,{collapsePanelBorderRadius:e.borderRadiusLG});return[T(t),B(t),L(t),O(t),z(t)]},e=>({headerPadding:`${(0,M.zA)(e.paddingSM)} ${(0,M.zA)(e.padding)}`,headerPaddingSM:`${(0,M.zA)(e.paddingXS)} ${(0,M.zA)(e.paddingSM)} ${(0,M.zA)(e.paddingXS)} ${(0,M.zA)(e.paddingXS)}`,headerPaddingLG:`${(0,M.zA)(e.padding)} ${(0,M.zA)(e.paddingLG)} ${(0,M.zA)(e.padding)} ${(0,M.zA)(e.padding)}`,headerBg:e.colorFillAlter,contentPadding:`${(0,M.zA)(e.padding)} ${(0,M.zA)(16)}`,contentPaddingSM:e.paddingSM,contentPaddingLG:e.paddingLG,contentBg:e.colorBgContainer,borderlessContentPadding:`${(0,M.zA)(e.paddingXXS)} ${(0,M.zA)(16)} ${(0,M.zA)(e.padding)}`,borderlessContentBg:"transparent"})),D=n.forwardRef((e,t)=>{const{getPrefixCls:r,direction:o,expandIcon:i,className:c,style:u,classNames:d,styles:p}=(0,A.TP)("collapse"),{prefixCls:m,className:h,rootClassName:f,style:g,bordered:b=!0,ghost:v,size:x,expandIconPlacement:y,expandIconPosition:$,children:w,destroyInactivePanel:j,destroyOnHidden:M,expandIcon:P,classNames:z,styles:I}=e,R=(0,N.A)(e=>x??e??"middle"),T=r("collapse",m),O=r(),[B,L]=H(T),D=y??$??"start",F={...e,size:R,bordered:b,expandIconPlacement:D},W=(0,S.XT)(u),V=(0,S.XT)(g),[q,X]=(0,S.AV)([d,z],[p,W,I,V],{props:F}),G=P??i,K=n.useCallback((e={})=>{const t=(0,k.Tn)(G)?G(e):n.createElement(a.A,{rotate:e.isActive?"rtl"===o?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,_.Ob)(t,e=>({className:(0,s.$)(e.className,`${T}-arrow`)}))},[G,T,o]),U=(0,s.$)(`${T}-icon-placement-${D}`,{[`${T}-borderless`]:!b,[`${T}-rtl`]:"rtl"===o,[`${T}-ghost`]:!!v,[`${T}-large`]:"large"===R,[`${T}-small`]:"small"===R},c,h,f,B,L,q.root),Y=n.useMemo(()=>({...(0,E.A)(O),motionAppear:!1,leavedClassName:`${T}-panel-hidden`}),[O,T]),Q=n.useMemo(()=>w?(0,l.$r)(w).map(e=>e):null,[w]);return n.createElement(C,{ref:t,openMotion:Y,...(0,l.cJ)(e,["rootClassName"]),expandIcon:K,prefixCls:T,className:U,style:X.root,classNames:q,styles:X,destroyOnHidden:M??j},Q)}),F=Object.assign(D,{Panel:j})},9911(e,t,r){r.d(t,{kf:()=>s});var n=r(3029),o=r(2901),a=r(3643);const i=(e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"";let s=function(){return(0,o.A)(function e(t){if((0,n.A)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:r})=>({color:new e(t),percent:r})),this.metaColor=new a.Q1(this.colors[0].color.metaColor)):this.metaColor=new a.Q1(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?i(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,r)=>{const n=e.colors[r];return t.percent===n.percent&&t.color.equals(n.color)}):this.toHexString()===e.toHexString())}}])}();r.d(t,["Ol",0,i])},3596(e,t,r){var n=r(1609),o=r.n(n),a=r(3643),i=r(4164),s=r(4101),l=r(9155),c=r(8484),u=r(6058);const d=(e,t)=>{const{r,g:n,b:o,a:i}=e.toRgb(),s=new a.Q1(e.toRgbString()).onBackground(t).toHsv();return i<=.5?s.v>.5:.299*r+.587*n+.114*o>192},p=(e,t)=>`panel-${e.key??t}`;r.d(t,["A",0,({prefixCls:e,presets:t,value:r,onChange:m})=>{const[h]=(0,l.A)("ColorPicker"),[,f]=(0,c.Ay)(),g=(0,n.useMemo)(()=>t.map(e=>(e.colors=e.colors.map(u.Z6),e)),[t]),b=`${e}-presets`,v=(0,n.useMemo)(()=>g.reduce((e,t,r)=>{const{defaultOpen:n=!0}=t;return n&&e.push(p(t,r)),e},[]),[g]),x=g.map((t,n)=>({key:p(t,n),label:o().createElement("div",{className:`${b}-label`},t?.label),children:o().createElement("div",{className:`${b}-items`},Array.isArray(t?.colors)&&t.colors?.length>0?t.colors.map((t,n)=>{const s=(0,u.Z6)(t);return o().createElement(a.ZC,{key:`preset-${n}-${t.toHexString()}`,color:s.toCssString(),prefixCls:e,className:(0,i.$)(`${b}-color`,{[`${b}-color-checked`]:t.toCssString()===r?.toCssString(),[`${b}-color-bright`]:d(t,f.colorBgElevated)}),onClick:()=>{return e=t,void m?.(e);var e}})}):o().createElement("span",{className:`${b}-empty`},h.presetEmpty))}));return o().createElement("div",{className:b},o().createElement(s.A,{defaultActiveKey:v,ghost:!0,items:x}))},"z",0,d])},6058(e,t,r){var n=r(5458),o=r(3643),a=r(9911);const i=e=>e instanceof a.kf?e:new a.kf(e),s=e=>Math.round(Number(e||0));r.d(t,["E",0,(e,t)=>{const r=e.toRgb();if(!r.r&&!r.g&&!r.b){const r=e.toHsb();return r.a=t||1,i(r)}return r.a=t||1,i(r)},"Gp",0,e=>s(100*e.toHsb().a),"PU",0,(e,t)=>{const r=[{percent:0,color:e[0].color}].concat((0,n.A)(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;e<r.length-1;e+=1){const n=r[e].percent,a=r[e+1].percent,i=r[e].color,s=r[e+1].color;if(n<=t&&t<=a){const e=a-n;if(0===e)return i;const r=(t-n)/e*100,l=new o.Q1(i),c=new o.Q1(s);return l.mix(c,r).toRgbString()}}return""},"W",0,s,"Z6",0,i])},8119(e,t,r){var n=r(1609);const o=n.createContext(!1),a=o;r.d(t,["A",0,a,"X",0,({children:e,disabled:t})=>{const r=n.useContext(o);return n.createElement(o.Provider,{value:t??r},e)}])},8224(e,t,r){var n=r(1609);const o=n.createContext(void 0),a=o;r.d(t,["A",0,a,"c",0,({children:e,size:t})=>{const r=n.useContext(o);return n.createElement(o.Provider,{value:t||r},e)}])},2279(e,t,r){r.d(t,{TP:()=>l});var n=r(1609);const o="anticon",a=n.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:i}=a,s={};function l(e){const t=n.useContext(a),{getPrefixCls:r,direction:o,getPopupContainer:i,renderEmpty:l}=t,c=t[e];return{classNames:s,styles:s,...c,getPrefixCls:r,direction:o,getPopupContainer:i,renderEmpty:l}}r.d(t,["QO",0,a,"lJ",0,["outlined","borderless","filled","underlined"],"pM",0,o])},1824(e,t,r){r.d(t,{A:()=>$});var n=r(1609),o=r.n(n),a=r(2279),i=r(4164),s=r(992),l=r(9155),c=r(8484),u=r(2923);const d=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new u.Y(e).onBackground(t).toHexString(),p=()=>{const[,e]=(0,c.Ay)(),[t]=(0,l.A)("Empty"),{colorBgContainer:r,colorFill:o,colorFillSecondary:a,colorFillTertiary:i,colorTextQuaternary:s}=e,{panelBgColor:u,borderColor:p,detailColor:m,shadowColor:h,iconColor:f}=(0,n.useMemo)(()=>({panelBgColor:d(i,r),borderColor:d(s,r),detailColor:d(o,r),shadowColor:d(a,r),iconColor:r}),[r,o,a,i,s]);return n.createElement("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,t?.description||"Empty"),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(24 31.7)"},n.createElement("ellipse",{fillOpacity:".8",fill:h,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),n.createElement("path",{fill:p,d:"M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z"}),n.createElement("path",{fill:u,d:"M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4"}),n.createElement("path",{fill:m,d:"M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8"})),n.createElement("path",{fill:m,d:"m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8"}),n.createElement("g",{fill:f,transform:"translate(149.7 15.4)"},n.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),n.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},m=()=>{const[,e]=(0,c.Ay)(),[t]=(0,l.A)("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:s,shadowColor:u,contentColor:p}=(0,n.useMemo)(()=>({borderColor:d(r,i),shadowColor:d(o,i),contentColor:d(a,i)}),[r,o,a,i]);return n.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},n.createElement("title",null,t?.description||"Empty"),n.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},n.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),n.createElement("g",{fillRule:"nonzero",stroke:s},n.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),n.createElement("path",{d:"M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3",fill:p}))))};var h=r(7358),f=r(485);const g=(0,h.OF)("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e;return(e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})((0,f.oX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()}))}),b=n.createElement(p,null),v=n.createElement(m,null),x=e=>{const{className:t,rootClassName:r,prefixCls:o,image:c,description:u,children:d,imageStyle:p,style:m,classNames:h,styles:f,...x}=e,{getPrefixCls:y,direction:$,className:C,style:w,classNames:S,styles:k,image:E}=(0,a.TP)("empty"),_=y("empty",o),[A,N]=g(_),j=(0,s.XT)(w),M=(0,s.XT)(m),[P,z]=(0,s.AV)([S,h],[k,j,f,M],{props:e}),[I]=(0,l.A)("Empty"),R=void 0!==u?u:I?.description,T="string"==typeof R?R:"empty",O=c??E??b;let B=null;return B="string"==typeof O?n.createElement("img",{draggable:!1,alt:T,src:O}):O,n.createElement("div",{className:(0,i.$)(A,N,_,C,{[`${_}-normal`]:O===v,[`${_}-rtl`]:"rtl"===$},t,r,P.root),style:z.root,...x},n.createElement("div",{className:(0,i.$)(`${_}-image`,P.image),style:{...p,...z.image}},B),R&&n.createElement("div",{className:(0,i.$)(`${_}-description`,P.description),style:z.description},R),d&&n.createElement("div",{className:(0,i.$)(`${_}-footer`,P.footer),style:z.footer},d))};x.PRESENTED_IMAGE_DEFAULT=b,x.PRESENTED_IMAGE_SIMPLE=v;const y=x,$=e=>{const{componentName:t}=e,{getPrefixCls:r}=(0,n.useContext)(a.QO),i=r("empty");switch(t){case"Table":case"List":return o().createElement(y,{image:y.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o().createElement(y,{image:y.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return o().createElement(y,null)}}},934(e,t,r){r.d(t,["A",0,e=>`${e}-css-var`])},829(e,t,r){var n=r(1609),o=r.n(n),a=r(1685),i=r(8224);r.d(t,["A",0,e=>{const t=o().useContext(i.A);return o().useMemo(()=>e?(0,a.Kg)(e)?e??t:(0,a.Tn)(e)?e(t):t:t,[e,t])}])},8721(e,t,r){r.d(t,{Ay:()=>B,cr:()=>R});var n=r(1609),o=r(738),a=r(1053),i=r(6487),s=r(1685),l=r(8877);const c=(0,n.createContext)(void 0);var u=r(1815),d=r(685);const p=e=>{const{locale:t={},children:r,_ANT_MARK__:o}=e;n.useEffect(()=>(0,u.L)(t?.Modal),[t]);const a=n.useMemo(()=>({...t,exist:!0}),[t]);return n.createElement(d.A.Provider,{value:a},r)};var m=r(11),h=r(5265),f=r(9806),g=r(723),b=r(4220),v=r(2279),x=r(8119),y=r(8224);var $=r(3057),C=r(8484);const w=n.createContext(!0);function S(e){const t=n.useContext(w),{children:r}=e,[,o]=(0,C.Ay)(),{motion:a}=o,i=n.useRef(!1);return i.current||(i.current=t!==a),i.current?n.createElement(w.Provider,{value:a},n.createElement($.Kq,{motion:a},r)):r}const k=()=>null;var E=r(5905);const _=({iconPrefixCls:e,csp:t})=>(((e,t)=>{const[r,n]=(0,C.Ay)();(0,o.IV)({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>(0,E.jz)(e))})(e,t),null),A=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let N,j,M,P;function z(){return N||"ant"}function I(){return j||v.pM}const R=()=>({getPrefixCls:(e,t)=>t||(e?`${z()}-${e}`:z()),getIconPrefixCls:I,getRootPrefixCls:()=>N||z(),getTheme:()=>M,holderRender:P}),T=e=>{const{children:t,csp:r,autoInsertSpaceInButton:u,alert:d,affix:$,anchor:C,app:w,form:E,locale:N,componentSize:j,direction:M,space:P,splitter:z,virtual:I,dropdownMatchSelectWidth:R,popupMatchSelectWidth:T,popupOverflow:O,legacyLocale:B,parentContext:L,iconPrefixCls:H,theme:D,componentDisabled:F,segmented:W,statistic:V,spin:q,calendar:X,carousel:G,cascader:K,collapse:U,typography:Y,checkbox:Q,descriptions:Z,divider:J,drawer:ee,skeleton:te,steps:re,image:ne,layout:oe,list:ae,mentions:ie,modal:se,progress:le,result:ce,slider:ue,breadcrumb:de,masonry:pe,menu:me,pagination:he,input:fe,inputPassword:ge,inputSearch:be,textArea:ve,otp:xe,empty:ye,badge:$e,borderBeam:Ce,radio:we,rate:Se,ribbon:ke,switch:Ee,transfer:_e,avatar:Ae,message:Ne,tag:je,table:Me,card:Pe,cardMeta:ze,tabs:Ie,timeline:Re,timePicker:Te,upload:Oe,notification:Be,tree:Le,colorPicker:He,datePicker:De,rangePicker:Fe,flex:We,wave:Ve,dropdown:qe,warning:Xe,tour:Ge,tooltip:Ke,popover:Ue,popconfirm:Ye,qrcode:Qe,floatButton:Ze,floatButtonGroup:Je,variant:et,inputNumber:tt,treeSelect:rt,watermark:nt}=e,ot=n.useMemo(()=>(0,s.Qd)(N)&&Object.prototype.hasOwnProperty.call(N,"default")&&N.default?.locale?N.default:N,[N]),at=n.useCallback((t,r)=>{const{prefixCls:n}=e;if(r)return r;const o=n||L.getPrefixCls("");return t?`${o}-${t}`:o},[L.getPrefixCls,e.prefixCls]),it=H||L.iconPrefixCls||v.pM,st=r||L.csp,lt=function(e,t,r){(0,l.rJ)("ConfigProvider");const o=e||{},a=!1!==o.inherit&&t?t:{...f.sb,hashed:t?.hashed??f.sb.hashed,cssVar:t?.cssVar},s=(0,n.useId)();return(0,i.Kr)(()=>{if(!e)return t;const n={...a.components};Object.keys(e.components||{}).forEach(t=>{n[t]={...n[t],...e.components[t]}});const i=`css-var-${s.replace(/:/g,"")}`,l={prefix:r?.prefixCls,...a.cssVar,...o.cssVar,key:o.cssVar?.key||i};return{...a,...o,token:{...a.token,...o.token},components:n,cssVar:l}},[o,a],(e,t)=>e.some((e,r)=>{const n=t[r];return!(0,i.n4)(e,n,!0)}))}(D,L.theme,{prefixCls:at("")}),ct={csp:st,autoInsertSpaceInButton:u,alert:d,affix:$,anchor:C,app:w,locale:ot||B,direction:M,space:P,splitter:z,virtual:I,popupMatchSelectWidth:T??R,popupOverflow:O,getPrefixCls:at,iconPrefixCls:it,theme:lt,segmented:W,statistic:V,spin:q,calendar:X,carousel:G,cascader:K,collapse:U,typography:Y,checkbox:Q,descriptions:Z,divider:J,drawer:ee,skeleton:te,steps:re,image:ne,input:fe,inputPassword:ge,inputSearch:be,textArea:ve,otp:xe,layout:oe,list:ae,mentions:ie,modal:se,progress:le,result:ce,slider:ue,breadcrumb:de,masonry:pe,menu:me,pagination:he,empty:ye,badge:$e,borderBeam:Ce,radio:we,rate:Se,ribbon:ke,switch:Ee,transfer:_e,avatar:Ae,message:Ne,tag:je,table:Me,card:Pe,cardMeta:ze,tabs:Ie,timeline:Re,timePicker:Te,upload:Oe,notification:Be,tree:Le,colorPicker:He,datePicker:De,rangePicker:Fe,flex:We,wave:Ve,dropdown:qe,warning:Xe,tour:Ge,tooltip:Ke,popover:Ue,popconfirm:Ye,qrcode:Qe,floatButton:Ze,floatButtonGroup:Je,variant:et,inputNumber:tt,treeSelect:rt,watermark:nt},ut={...L};Object.keys(ct).forEach(e=>{void 0!==ct[e]&&(ut[e]=ct[e])}),A.forEach(t=>{const r=e[t];r&&(ut[t]=r)}),void 0!==u&&(ut.button={autoInsertSpace:u,...ut.button});const dt=(0,i.Kr)(()=>ut,ut,(e,t)=>{const r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(r=>e[r]!==t[r])}),{layer:pt}=n.useContext(o.J),mt=n.useMemo(()=>({prefixCls:it,csp:st,layer:pt?"antd":void 0,zeroRuntime:lt?.zeroRuntime}),[it,st,pt,lt?.zeroRuntime]);let ht=n.createElement(n.Fragment,null,n.createElement(_,{iconPrefixCls:it,csp:st}),n.createElement(k,{dropdownMatchSelectWidth:R}),t);const ft=n.useMemo(()=>(0,i.h1)(m.A.Form?.defaultValidateMessages||{},dt.locale?.Form?.defaultValidateMessages||{},dt.form?.validateMessages||{},E?.validateMessages||{}),[dt,E?.validateMessages]);Object.keys(ft).length>0&&(ht=n.createElement(c.Provider,{value:ft},ht)),ot&&(ht=n.createElement(p,{locale:ot,_ANT_MARK__:"internalMark"},ht)),(it||st)&&(ht=n.createElement(a.A.Provider,{value:mt},ht)),j&&(ht=n.createElement(y.c,{size:j},ht)),ht=n.createElement(S,null,ht),Ke?.unique&&(ht=n.createElement(b.A,null,ht));const gt=n.useMemo(()=>{const{algorithm:e,token:t,components:r,cssVar:n,...a}=lt||{},i=e&&(!Array.isArray(e)||e.length>0)?(0,o.an)(e):h.A,l={};Object.entries(r||{}).forEach(([e,t])=>{const r={...t};"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||(0,s.Tn)(r.algorithm))&&(r.theme=(0,o.an)(r.algorithm)),delete r.algorithm),l[e]=r});const c={...g.A,...t};return{...a,theme:i,token:c,components:l,override:{override:c,...l},cssVar:n}},[lt]);return D&&(ht=n.createElement(f.vG.Provider,{value:gt},ht)),dt.warning&&(ht=n.createElement(l._n.Provider,{value:dt.warning},ht)),void 0!==F&&(ht=n.createElement(x.X,{disabled:F},ht)),n.createElement(v.QO.Provider,{value:dt},ht)},O=e=>{const t=n.useContext(v.QO),r=n.useContext(d.A);return n.createElement(T,{parentContext:t,legacyLocale:r,...e})};O.ConfigContext=v.QO,O.SizeContext=y.A,O.config=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;void 0!==t&&(N=t),void 0!==r&&(j=r),"holderRender"in e&&(P=o),n&&(M=n)},O.useConfig=function(){return{componentDisabled:(0,n.useContext)(x.A),componentSize:(0,n.useContext)(y.A)}},Object.defineProperty(O,"SizeContext",{get:()=>y.A});const B=O},3295(e,t,r){r.d(t,{$W:()=>me,XB:()=>he,Pp:()=>fe});var n=r(1609),o=r(6487);const a="RC_FORM_INTERNAL_HOOKS",i=()=>{(0,o.$e)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},s=n.createContext({getFieldValue:i,getFieldsValue:i,getFieldError:i,getFieldWarning:i,getFieldsError:i,isFieldsTouched:i,isFieldTouched:i,isFieldValidating:i,isFieldsValidating:i,resetFields:i,setFields:i,setFieldValue:i,setFieldsValue:i,validateFields:i,submit:i,getInternalHooks:()=>(i(),{dispatch:i,initEntityValue:i,registerField:i,useSubscribe:i,setInitialValues:i,destroyForm:i,setCallbacks:i,registerWatch:i,getFields:i,setValidateMessages:i,setPreserve:i,getInitialValue:i})}),l=n.createContext(null);function c(e){return null==e?[]:Array.isArray(e)?e:[e]}function u(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const d=u(),p=/%[sdj%]/g;let m=()=>{};function h(e){if(!e||!e.length)return null;const t={};return e.forEach(e=>{const r=e.field;t[r]=t[r]||[],t[r].push(e)}),t}function f(e,...t){let r=0;const n=t.length;return"function"==typeof e?e.apply(null,t):"string"==typeof e?e.replace(p,e=>{if("%%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}default:return e}}):e}function g(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e)}function b(e,t,r){let n=0;const o=e.length;!function a(i){if(i&&i.length)return void r(i);const s=n;n+=1,s<o?t(e[s],a):r([])}([])}"undefined"!=typeof process&&process.env;class v extends Error{errors;fields;constructor(e,t){super("Async Validation Error"),this.errors=e,this.fields=t}}function x(e,t){return r=>{let n;return n=e.fullFields?function(e,t){let r=e;for(let e=0;e<t.length;e++){if(null==r)return r;r=r[t[e]]}return r}(t,e.fullFields):t[r.field||e.fullField],(o=r)&&void 0!==o.message?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:"function"==typeof r?r():r,fieldValue:n,field:r.field||e.fullField};var o}}function y(e,t){if(t)for(const r in t)if(t.hasOwnProperty(r)){const n=t[r];"object"==typeof n&&"object"==typeof e[r]?e[r]={...e[r],...n}:e[r]=n}return e}const $="enum",C=(e,t,r,n,o,a)=>{!e.required||r.hasOwnProperty(e.field)&&!g(t,a||e.type)||n.push(f(o.messages.required,e.fullField))};let w;const S=()=>{if(w)return w;const e="[a-fA-F\\d:]",t=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"",r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=`(?:${[`(?:${n}:){7}(?:${n}|:)`,`(?:${n}:){6}(?:${r}|:${n}|:)`,`(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)`,`(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)`,`(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)`,`(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)`,`(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)`,`(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,a=new RegExp(`(?:^${r}$)|(?:^${o}$)`),i=new RegExp(`^${r}$`),s=new RegExp(`^${o}$`),l=e=>e&&e.exact?a:new RegExp(`(?:${t(e)}${r}${t(e)})|(?:${t(e)}${o}${t(e)})`,"g");l.v4=e=>e&&e.exact?i:new RegExp(`${t(e)}${r}${t(e)}`,"g"),l.v6=e=>e&&e.exact?s:new RegExp(`${t(e)}${o}${t(e)}`,"g");const c=l.v4().source,u=l.v6().source;return w=new RegExp(`(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c}|${u}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)`,"i"),w};r.dn(S);const k=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,E=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,_=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,A={integer:e=>A.number(e)&&parseInt(e,10)===e,float:e=>A.number(e)&&!A.integer(e),array:e=>Array.isArray(e),regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:e=>"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime()),number:e=>!isNaN(e)&&"number"==typeof e,object:e=>"object"==typeof e&&!A.array(e),method:e=>"function"==typeof e,email:e=>"string"==typeof e&&e.length<=320&&!!e.match(k),tel:e=>"string"==typeof e&&e.length<=32&&!!e.match(E),url:e=>"string"==typeof e&&e.length<=2048&&!!e.match(S()),hex:e=>"string"==typeof e&&!!e.match(_)},N=C,j=(e,t,r,n,o)=>{(/^\s+$/.test(t)||""===t)&&n.push(f(o.messages.whitespace,e.fullField))},M=(e,t,r,n,o)=>{if(e.required&&void 0===t)return void C(e,t,r,n,o);const a=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(a)>-1?A[a](t)||n.push(f(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&n.push(f(o.messages.types[a],e.fullField,e.type))},P=(e,t,r,n,o)=>{const a="number"==typeof e.len,i="number"==typeof e.min,s="number"==typeof e.max;let l=t,c=null;const u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&n.push(f(o.messages[c].len,e.fullField,e.len)):i&&!s&&l<e.min?n.push(f(o.messages[c].min,e.fullField,e.min)):s&&!i&&l>e.max?n.push(f(o.messages[c].max,e.fullField,e.max)):i&&s&&(l<e.min||l>e.max)&&n.push(f(o.messages[c].range,e.fullField,e.min,e.max))},z=(e,t,r,n,o)=>{e[$]=Array.isArray(e[$])?e[$]:[],-1===e[$].indexOf(t)&&n.push(f(o.messages[$],e.fullField,e[$].join(", ")))},I=(e,t,r,n,o)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(f(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||n.push(f(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},R=(e,t,r,n,o)=>{const a=e.type,i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t,a)&&!e.required)return r();N(e,t,n,i,o,a),g(t,a)||M(e,t,n,i,o)}r(i)},T={string:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t,"string")&&!e.required)return r();N(e,t,n,a,o,"string"),g(t,"string")||(M(e,t,n,a,o),P(e,t,n,a,o),I(e,t,n,a,o),!0===e.whitespace&&j(e,t,n,a,o))}r(a)},method:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t)&&!e.required)return r();N(e,t,n,a,o),void 0!==t&&M(e,t,n,a,o)}r(a)},number:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),g(t)&&!e.required)return r();N(e,t,n,a,o),void 0!==t&&(M(e,t,n,a,o),P(e,t,n,a,o))}r(a)},boolean:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t)&&!e.required)return r();N(e,t,n,a,o),void 0!==t&&M(e,t,n,a,o)}r(a)},regexp:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t)&&!e.required)return r();N(e,t,n,a,o),g(t)||M(e,t,n,a,o)}r(a)},integer:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t)&&!e.required)return r();N(e,t,n,a,o),void 0!==t&&(M(e,t,n,a,o),P(e,t,n,a,o))}r(a)},float:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t)&&!e.required)return r();N(e,t,n,a,o),void 0!==t&&(M(e,t,n,a,o),P(e,t,n,a,o))}r(a)},array:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();N(e,t,n,a,o,"array"),null!=t&&(M(e,t,n,a,o),P(e,t,n,a,o))}r(a)},object:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t)&&!e.required)return r();N(e,t,n,a,o),void 0!==t&&M(e,t,n,a,o)}r(a)},enum:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t)&&!e.required)return r();N(e,t,n,a,o),void 0!==t&&z(e,t,n,a,o)}r(a)},pattern:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t,"string")&&!e.required)return r();N(e,t,n,a,o),g(t,"string")||I(e,t,n,a,o)}r(a)},date:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t,"date")&&!e.required)return r();if(N(e,t,n,a,o),!g(t,"date")){let r;r=t instanceof Date?t:new Date(t),M(e,r,n,a,o),r&&P(e,r.getTime(),n,a,o)}}r(a)},url:R,hex:R,email:R,tel:R,required:(e,t,r,n,o)=>{const a=[],i=Array.isArray(t)?"array":typeof t;N(e,t,n,a,o,i),r(a)},any:(e,t,r,n,o)=>{const a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(g(t)&&!e.required)return r();N(e,t,n,a,o)}r(a)}};class O{static register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");T[e]=t};static warning=m;static messages=d;static validators=T;rules=null;_messages=d;constructor(e){this.define(e)}define(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(t=>{const r=e[t];this.rules[t]=Array.isArray(r)?r:[r]})}messages(e){return e&&(this._messages=y(u(),e)),this._messages}validate(e,t={},r=()=>{}){let n=e,o=t,a=r;if("function"==typeof o&&(a=o,o={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,n),Promise.resolve(n);if(o.messages){let e=this.messages();e===d&&(e=u()),y(e,o.messages),o.messages=e}else o.messages=this.messages();const i={};(o.keys||Object.keys(this.rules)).forEach(t=>{const r=this.rules[t];let o=n[t];r.forEach(r=>{let a=r;"function"==typeof a.transform&&(n===e&&(n={...n}),o=n[t]=a.transform(o),null!=o&&(a.type=a.type||(Array.isArray(o)?"array":typeof o))),a="function"==typeof a?{validator:a}:{...a},a.validator=this.getValidationMethod(a),a.validator&&(a.field=t,a.fullField=a.fullField||t,a.type=this.getType(a),i[t]=i[t]||[],i[t].push({rule:a,value:o,source:n,field:t}))})});const s={};return function(e,t,r,n,o){if(t.first){const t=new Promise((t,a)=>{const i=function(e){const t=[];return Object.keys(e).forEach(r=>{t.push(...e[r]||[])}),t}(e);b(i,r,e=>(n(e),e.length?a(new v(e,h(e))):t(o)))});return t.catch(e=>e),t}const a=!0===t.firstFields?Object.keys(e):t.firstFields||[],i=Object.keys(e),s=i.length;let l=0;const c=[],u=new Promise((t,u)=>{const d=e=>{if(c.push.apply(c,e),l++,l===s)return n(c),c.length?u(new v(c,h(c))):t(o)};i.length||(n(c),t(o)),i.forEach(t=>{const n=e[t];-1!==a.indexOf(t)?b(n,r,d):function(e,t,r){const n=[];let o=0;const a=e.length;function i(e){n.push(...e||[]),o++,o===a&&r(n)}e.forEach(e=>{t(e,i)})}(n,r,d)})});return u.catch(e=>e),u}(i,o,(e,t)=>{const r=e.rule;let a,i=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function l(e,t){return{...t,fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[...r.fullFields,e]:[e]}}function c(a=[]){let c=Array.isArray(a)?a:[a];!o.suppressWarning&&c.length&&O.warning("async-validator:",c),c.length&&void 0!==r.message&&null!==r.message&&(c=[].concat(r.message));let u=c.map(x(r,n));if(o.first&&u.length)return s[r.field]=1,t(u);if(i){if(r.required&&!e.value)return void 0!==r.message?u=[].concat(r.message).map(x(r,n)):o.error&&(u=[o.error(r,f(o.messages.required,r.field))]),t(u);let a={};r.defaultField&&Object.keys(e.value).map(e=>{a[e]=r.defaultField}),a={...a,...e.rule.fields};const i={};Object.keys(a).forEach(e=>{const t=a[e],r=Array.isArray(t)?t:[t];i[e]=r.map(l.bind(null,e))});const s=new O(i);s.messages(o.messages),e.rule.options&&(e.rule.options.messages=o.messages,e.rule.options.error=o.error),s.validate(e.value,e.rule.options||o,e=>{const r=[];u&&u.length&&r.push(...u),e&&e.length&&r.push(...e),t(r.length?r:null)})}else t(u)}if(i=i&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator)a=r.asyncValidator(r,e.value,c,e.source,o);else if(r.validator){try{a=r.validator(r,e.value,c,e.source,o)}catch(e){console.error?.(e),o.suppressValidatorError||setTimeout(()=>{throw e},0),c(e.message)}!0===a?c():!1===a?c("function"==typeof r.message?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):a instanceof Array?c(a):a instanceof Error&&c(a.message)}a&&a.then&&a.then(()=>c(),e=>c(e))},e=>{!function(e){let t=[],r={};function o(e){Array.isArray(e)?t=t.concat(...e):t.push(e)}for(let t=0;t<e.length;t++)o(e[t]);t.length?(r=h(t),a(t,r)):a(null,n)}(e)},n)}getType(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!T.hasOwnProperty(e.type))throw new Error(f("Unknown rule type %s",e.type));return e.type||"string"}getValidationMethod(e){if("function"==typeof e.validator)return e.validator;const t=Object.keys(e),r=t.indexOf("message");return-1!==r&&t.splice(r,1),1===t.length&&"required"===t[0]?T.required:T[this.getType(e)]||void 0}}const B="'${name}' is not a valid ${type}",L={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:B,method:B,array:B,object:B,number:B,date:B,boolean:B,integer:B,float:B,regexp:B,email:B,tel:B,url:B,hex:B},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},H=O,D="CODE_LOGIC_ERROR";async function F(e,t,r,a,i){const s={...r};if(delete s.ruleIndex,H.warning=()=>{},s.validator){const e=s.validator;s.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(D)}}}let l=null;s&&"array"===s.type&&s.defaultField&&(l=s.defaultField,delete s.defaultField);const c=new H({[e]:[s]}),u=(0,o.h1)(L,a.validateMessages);c.messages(u);let d=[];try{await Promise.resolve(c.validate({[e]:t},{...a}))}catch(e){e.errors&&(d=e.errors.map(({message:e},t)=>{const r=e===D?u.default:e;return n.isValidElement(r)?n.cloneElement(r,{key:`error_${t}`}):r}))}if(!d.length&&l&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,r)=>F(`${e}.${r}`,t,l,a,i)))).reduce((e,t)=>[...e,...t],[]);const p={...r,name:e,enum:(r.enum||[]).join(", "),...i},m=d.map(e=>"string"==typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>{if(e.startsWith("\\"))return e.slice(1);const r=e.slice(2,-1);return t[r]})}(e,p):e);return m}function W(e){return c(e)}function V(e,t){let r={};return t.forEach(t=>{const n=(0,o.Jt)(e,t);r=(0,o.hZ)(r,t,n)}),r}function q(e,t,r=!1){return e&&e.some(e=>X(t,e,r))}function X(e,t,r=!1){return!(!e||!t)&&!(!r&&e.length!==t.length)&&t.every((t,r)=>e[r]===t)}function G(e,t,r){const{length:n}=e;if(t<0||t>=n||r<0||r>=n)return e;const o=e[t],a=t-r;return a>0?[...e.slice(0,r),o,...e.slice(r,t),...e.slice(t+1,n)]:a<0?[...e.slice(0,t),...e.slice(t+1,r+1),o,...e.slice(r+1,n)]:e}const K=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class U{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!X(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;const e=this.taskId;K(()=>{if(e===this.taskId&&this.watcherList.size){const e=this.form.getForm(),t=e.getFieldsValue(),r=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,r,this.namePathList)}),this.namePathList=[]}})}}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y.apply(this,arguments)}const Q=[],Z=[];function J(e,t,r,n,o,a){return"function"==typeof e?e(t,r,"source"in a?{source:a.source}:{}):n!==o}class ee extends n.PureComponent{static contextType=s;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Q;warnings=Z;constructor(e){if(super(e),e.fieldContext){const{getInternalHooks:t}=e.fieldContext,{initEntityValue:r}=t(a);r(this)}}componentDidMount(){const{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){const{getInternalHooks:e}=t,{registerField:r}=e(a);this.cancelRegisterFunc=r(this)}!0===e&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:e,isListField:t,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,W(r)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:e,fieldContext:t}=this.props,{prefixName:r=[]}=t;return void 0!==e?[...r,...e]:[]};getRules=()=>{const{rules:e=[],fieldContext:t}=this.props;return e.map(e=>"function"==typeof e?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{const{onMetaChange:t}=this.props;if(t){const r={...this.getMeta(),destroy:e};(0,o.n4)(this.metaCache,r)||t(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(e,t,r)=>{const{shouldUpdate:n,dependencies:a=[],onReset:i}=this.props,{store:s}=r,l=this.getNamePath(),c=this.getValue(e),u=this.getValue(s),d=t&&q(t,l);switch("valueUpdate"!==r.type||"external"!==r.source||(0,o.n4)(c,u)||(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Q,this.warnings=Z,this.triggerMetaEvent()),r.type){case"reset":if(!t||d)return this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Q,this.warnings=Z,this.triggerMetaEvent(),i?.(),void this.refresh();break;case"remove":if(n&&J(n,e,s,c,u,r))return void this.reRender();break;case"setField":{const{data:o}=r;if(d)return"touched"in o&&(this.touched=o.touched),"validating"in o&&!("originRCField"in o)&&(this.validatePromise=o.validating?Promise.resolve([]):null),"errors"in o&&(this.errors=o.errors||Q),"warnings"in o&&(this.warnings=o.warnings||Z),this.dirty=!0,this.triggerMetaEvent(),void this.reRender();if("value"in o&&q(t,l,!0))return void this.reRender();if(n&&!l.length&&J(n,e,s,c,u,r))return void this.reRender();break}case"dependenciesUpdate":if(a.map(W).some(e=>q(r.relatedFields,e)))return void this.reRender();break;default:if(d||(!a.length||l.length||n)&&J(n,e,s,c,u,r))return void this.reRender()}!0===n&&this.reRender()};validateRules=e=>{const t=this.getNamePath(),r=this.getValue(),{triggerName:n,validateOnly:a=!1,delayFrame:i}=e||{},s=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:a=!1,messageVariables:l,validateDebounce:u}=this.props;i&&await async function(){return new Promise(e=>{K(()=>{(0,o.er)(()=>{e()})})})}();let d=this.getRules();if(n&&(d=d.filter(e=>e).filter(e=>{const{validateTrigger:t}=e;return!t||c(t).includes(n)})),u&&n&&(await new Promise(e=>{setTimeout(e,u)}),this.validatePromise!==s))return[];const p=function(e,t,r,n,a,i){const s=e.join("."),l=r.map((e,t)=>{const r=e.validator,n={...e,ruleIndex:t};return r&&(n.validator=(e,t,n)=>{let a=!1;const i=r(e,t,(...e)=>{Promise.resolve().then(()=>{(0,o.$e)(!a,"Your validator function has already return a promise. `callback` will be ignored."),a||n(...e)})});a=i&&"function"==typeof i.then&&"function"==typeof i.catch,(0,o.$e)(a,"`callback` is deprecated. Please return a promise instead."),a&&i.then(()=>{n()}).catch(e=>{n(e||" ")})}),n}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:r,ruleIndex:n})=>!!e==!!r?t-n:e?1:-1);let c;if(!0===a)c=new Promise(async(e,r)=>{for(let e=0;e<l.length;e+=1){const o=l[e],a=await F(s,t,o,n,i);if(a.length)return void r([{errors:a,rule:o}])}e([])});else{const e=l.map(e=>F(s,t,e,n,i).then(t=>({errors:t,rule:e})));c=(a?async function(e){let t=0;return new Promise(r=>{e.forEach(n=>{n.then(n=>{n.errors.length&&r([n]),t+=1,t===e.length&&r([])})})})}(e):async function(e){return Promise.all(e).then(e=>[].concat(...e))}(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}(t,r,d,e,a,l);return p.catch(e=>e).then((e=Q)=>{if(this.validatePromise===s){this.validatePromise=null;const t=[],r=[];e.forEach?.(({rule:{warningOnly:e},errors:n=Q})=>{e?r.push(...n):t.push(...n)}),this.errors=t,this.warnings=r,this.triggerMetaEvent(),this.reRender()}}),p});return a||(this.validatePromise=s,this.dirty=!0,this.errors=Q,this.warnings=Z,this.triggerMetaEvent(),this.reRender()),s};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||void 0!==this.props.initialValue)return!0;const{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(a);return void 0!==t(this.getNamePath())};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:null===this.validatePromise});getOnlyChild=e=>{if("function"==typeof e){const t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}const t=(0,o.$r)(e);return 1===t.length&&n.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}};getValue=e=>{const{getFieldsValue:t}=this.props.fieldContext,r=this.getNamePath();return(0,o.Jt)(e||t(!0),r)};getControlled=(e={})=>{const{name:t,trigger:r="onChange",validateTrigger:n,getValueFromEvent:o,normalize:i,valuePropName:s="value",getValueProps:l,fieldContext:u}=this.props,d=void 0!==n?n:u.validateTrigger,p=this.getNamePath(),{getInternalHooks:m,getFieldsValue:h}=u,{dispatch:f}=m(a),g=this.getValue(),b=l||(e=>({[s]:e})),v=e[r],x=void 0!==t?b(g):{},y={...e,...x};return y[r]=(...e)=>{let t;this.touched=!0,this.dirty=!0,this.triggerMetaEvent(),t=o?o(...e):function(e,...t){const r=t[0];return r&&r.target&&"object"==typeof r.target&&e in r.target?r.target[e]:r}(s,...e),i&&(t=i(t,g,h(!0))),t!==g&&f({type:"updateValue",namePath:p,value:t}),v&&v(...e)},c(d||[]).forEach(e=>{const t=y[e];y[e]=(...r)=>{t&&t(...r);const{rules:n}=this.props;n&&n.length&&f({type:"validateField",namePath:p,triggerName:e})}}),y};render(){const{resetCount:e}=this.state,{children:t}=this.props,{child:r,isFunction:a}=this.getOnlyChild(t);let i;return a?i=r:n.isValidElement(r)?i=n.cloneElement(r,this.getControlled(r.props)):((0,o.$e)(!r,"`children` of Field is not validate ReactElement."),i=r),n.createElement(n.Fragment,{key:e},i)}}const te=function({name:e,...t}){const r=n.useContext(s),o=n.useContext(l),a=void 0!==e?W(e):void 0,i=t.isListField??!!o;let c="keep";return i||(c=`_${(a||[]).join("_")}`),n.createElement(ee,Y({key:c,name:a,isListField:i},t,{fieldContext:r}))},re="__@field_split__";function ne(e){return e.map(e=>`${typeof e}:${e}`).join(re)}const oe=class{kvs=new Map;set(e,t){this.kvs.set(ne(e),t)}get(e){return this.kvs.get(ne(e))}getAsPrefix(e){const t=ne(e),r=t+re,n=[],o=this.kvs.get(t);return void 0!==o&&n.push(o),this.kvs.forEach((e,t)=>{t.startsWith(r)&&n.push(e)}),n}update(e,t){const r=t(this.get(e));r?this.set(e,r):this.delete(e)}delete(e){this.kvs.delete(ne(e))}map(e){return[...this.kvs.entries()].map(([t,r])=>{const n=t.split(re);return e({key:n.map(e=>{const[,t,r]=e.match(/^([^:]*):(.*)$/);return"number"===t?Number(r):r}),value:r})})}toJSON(){const e={};return this.map(({key:t,value:r})=>(e[t.join(".")]=r,null)),e}};class ae{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new U(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===a?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):((0,o.$e)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=(0,o.h1)(e,this.store);this.prevWithoutPreserves?.map(({key:r})=>{t=(0,o.hZ)(t,r,(0,o.Jt)(e,r))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{const e=new oe;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{const t=(0,o.Jt)(this.initialValues,e);return e.length?(0,o.h1)(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{const t=new oe;return this.getFieldEntities(e).forEach(e=>{const r=e.getNamePath();t.set(r,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return t?e.flatMap(e=>{const t=W(e),n=r.getAsPrefix(t);return n.length?n:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{const t=W(e);return r.get(t)||{INVALIDATE_NAME_PATH:W(e)}})};getFieldsValue=(e,t)=>{let r,n;if(this.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,n=t):e&&"object"==typeof e&&(n=e.filter),!0===r&&!n)return this.store;const a=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),i=[],s=[];a.forEach(e=>{const t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.())s.push(t);else if(n){const r="getMeta"in e?e.getMeta():null;n(r)&&i.push(t)}else i.push(t)});let l=V(this.store,i.map(W));return s.forEach(e=>{(0,o.Jt)(l,e)||(l=(0,o.hZ)(l,e,[]))}),l};getFieldValue=e=>{this.warningUnhooked();const t=W(e);return(0,o.Jt)(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,r)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:W(e[r]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();const t=W(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();const t=W(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();const[t,r]=e;let n,o=!1;0===e.length?n=null:1===e.length?Array.isArray(t)?(n=t.map(W),o=!1):(n=null,o=t):(n=t.map(W),o=r);const a=this.getFieldEntities(!0),i=e=>e.isFieldTouched();if(!n)return o?a.every(e=>i(e)||e.isList()):a.some(i);const s=new oe;n.forEach(e=>{s.set(e,[])}),a.forEach(e=>{const t=e.getNamePath();n.forEach(r=>{r.every((e,r)=>t[r]===e)&&s.update(r,t=>[...t,e])})});const l=e=>e.some(i),c=s.map(({value:e})=>e);return o?c.every(l):c.some(l)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();const t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());const r=e.map(W);return t.some(e=>{const t=e.getNamePath();return q(r,t)&&e.isFieldValidating()})};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{const t=new oe,r=this.getFieldEntities(!0);let n;r.forEach(e=>{const{initialValue:r}=e.props,n=e.getNamePath();if(void 0!==r){const o=t.get(n)||new Set;o.add({entity:e,value:r}),t.set(n,o)}}),e.entities?n=e.entities:e.namePathList?(n=[],e.namePathList.forEach(e=>{const r=t.get(e);r&&n.push(...[...r].map(e=>e.entity))})):n=r,(r=>{r.forEach(r=>{const{initialValue:n}=r.props;if(void 0!==n){const n=r.getNamePath();if(void 0!==this.getInitialValue(n))(0,o.$e)(!1,`Form already set 'initialValues' with path '${n.join(".")}'. Field can not overwrite it.`);else{const a=t.get(n);if(a&&a.size>1)(0,o.$e)(!1,`Multiple Field with path '${n.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(a){const t=this.getFieldValue(n);r.isListField()||e.skipExist&&void 0!==t||this.updateStore((0,o.hZ)(this.store,n,[...a][0].value))}}}})})(n)};resetFields=e=>{this.warningUnhooked();const t=this.store;if(!e)return this.updateStore((0,o.h1)(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:"reset"}),void this.notifyWatch();const r=e.map(W);r.forEach(e=>{const t=this.getInitialValue(e);this.updateStore((0,o.hZ)(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(t,r,{type:"reset"}),this.notifyWatch(r)};setFields=e=>{this.warningUnhooked();const t=this.store,r=[];e.forEach(e=>{const{name:n,...a}=e,i=W(n);r.push(i),"value"in a&&this.updateStore((0,o.hZ)(this.store,i,a.value)),this.notifyObservers(t,[i],{type:"setField",data:e})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(e=>{const t=e.getNamePath(),r={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(r,"originRCField",{value:!0}),r});initEntityValue=e=>{const{initialValue:t}=e.props;if(void 0!==t){const r=e.getNamePath();void 0===(0,o.Jt)(this.store,r)&&this.updateStore((0,o.hZ)(this.store,r,t))}};isMergedPreserve=e=>(void 0!==e?e:this.preserve)??!0;registerField=e=>{this.fieldEntities.push(e);const t=e.getNamePath();if(this.notifyWatch([t]),void 0!==e.props.initialValue){const t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,n,a=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(n)&&(!r||a.length>1)){const e=r?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!X(e.getNamePath(),t))){const r=this.store;this.updateStore((0,o.hZ)(r,t,e,!0)),this.notifyObservers(r,[t],{type:"remove"}),this.triggerDependenciesUpdate(r,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case"updateValue":{const{namePath:t,value:r}=e;this.updateValue(t,r);break}case"validateField":{const{namePath:t,triggerName:r}=e;this.validateFields([t],{triggerName:r});break}}};notifyObservers=(e,t,r)=>{if(this.subscribable){const n={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:r})=>{r(e,t,n)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{const r=this.getDependencyChildrenFields(t);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t,...r]}),r};updateValue=(e,t)=>{const r=W(e),n=this.store;this.updateStore((0,o.hZ)(this.store,r,t)),this.notifyObservers(n,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const a=this.triggerDependenciesUpdate(n,r),{onValuesChange:i}=this.callbacks;if(i){const e=V(this.store,[r]),t=this.getFieldsValue();i(e,(0,o.hZ)(t,r,(0,o.Jt)(e,r)))}this.triggerOnFieldsChange([r,...a])};setFieldsValue=e=>{this.warningUnhooked();const t=this.store;if(e){const t=(0,o.h1)(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{const t=new Set,r=[],n=new oe;this.getFieldEntities().forEach(e=>{const{dependencies:t}=e.props;(t||[]).forEach(t=>{const r=W(t);n.update(r,(t=new Set)=>(t.add(e),t))})});const o=e=>{(n.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);const n=e.getNamePath();e.isFieldDirty()&&n.length&&(r.push(n),o(n))}})};return o(e),r};triggerOnFieldsChange=(e,t)=>{const{onFieldsChange:r}=this.callbacks;if(r){const n=this.getFields();if(t){const e=new oe;t.forEach(({name:t,errors:r})=>{e.set(t,r)}),n.forEach(t=>{t.errors=e.get(t.name)||t.errors})}const o=n.filter(({name:t})=>q(e,t));o.length&&r(o,n)}};validateFields=(e,t)=>{let r,n;this.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,n=t):n=e;const o=!!r,a=o?r.map(W):[],i=[...a],s=[],l=String(Date.now()),c=new Set,{recursive:u,dirty:d}=n||{};this.getFieldEntities(!0).forEach(e=>{const t=e.getNamePath();if(o||(e.isList()&&a.some(e=>X(e,t,!0))||i.push(t),a.push(t)),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())&&(c.add(t.join(l)),!o||q(a,t,u))){const r=e.validateRules({validateMessages:{...L,...this.validateMessages},...n});s.push(r.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{const r=[],n=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?n.push(...t):r.push(...t)}),r.length?Promise.reject({name:t,errors:r,warnings:n}):{name:t,errors:r,warnings:n}}))}});const p=function(e){let t=!1,r=e.length;const n=[];return e.length?new Promise((o,a)=>{e.forEach((e,i)=>{e.catch(e=>(t=!0,e)).then(e=>{r-=1,n[i]=e,r>0||(t&&a(n),o(n))})})}):Promise.resolve([])}(s);this.lastValidatePromise=p,p.catch(e=>e).then(e=>{const t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:"validateFinish"}),this.triggerOnFieldsChange(t,e)});const m=p.then(()=>this.lastValidatePromise===p?Promise.resolve(this.getFieldsValue(i)):Promise.reject([])).catch(e=>{const t=e.filter(e=>e&&e.errors.length),r=t[0]?.errors?.[0];return Promise.reject({message:r,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==p})});m.catch(e=>e);const h=a.filter(e=>c.has(e.join(l)));return this.triggerOnFieldsChange(h),m};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{const{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{const{onFinishFailed:t}=this.callbacks;t&&t(e)})}}const ie=function(e){const t=n.useRef(null),[,r]=n.useState({});if(!t.current)if(e)t.current=e;else{const e=new ae(()=>{r({})});t.current=e.getForm()}return[t.current]},se=n.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),le=se;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ce.apply(this,arguments)}const ue=(e,t)=>{const{name:r,initialValues:o,fields:i,form:c,preserve:u,children:d,component:p="form",validateMessages:m,validateTrigger:h="onChange",onValuesChange:f,onFieldsChange:g,onFinish:b,onFinishFailed:v,clearOnDestroy:x,...y}=e,$=n.useRef(null),C=n.useContext(le),[w]=ie(c),{useSubscribe:S,setInitialValues:k,setCallbacks:E,setValidateMessages:_,setPreserve:A,destroyForm:N}=w.getInternalHooks(a);n.useImperativeHandle(t,()=>({...w,nativeElement:$.current})),n.useEffect(()=>(C.registerForm(r,w),()=>{C.unregisterForm(r)}),[C,w,r]),_({...C.validateMessages,...m}),E({onValuesChange:f,onFieldsChange:(e,...t)=>{C.triggerFormChange(r,e),g&&g(e,...t)},onFinish:e=>{C.triggerFormFinish(r,e),b&&b(e)},onFinishFailed:v}),A(u);const j=n.useRef(null);let M;k(o,!j.current),j.current||(j.current=!0),n.useEffect(()=>()=>N(x),[]);const P="function"==typeof d;M=P?d(w.getFieldsValue(!0),w):d,S(!P);const z=n.useRef(null);n.useEffect(()=>{(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!=typeof e||"object"!=typeof t)return!1;const r=Object.keys(e),n=Object.keys(t);return[...new Set([...r,...n])].every(r=>{const n=e[r],o=t[r];return"function"==typeof n&&"function"==typeof o||n===o})})(z.current||[],i||[])||w.setFields(i||[]),z.current=i},[i,w]);const I=n.useMemo(()=>({...w,validateTrigger:h}),[w,h]),R=n.createElement(l.Provider,{value:null},n.createElement(s.Provider,{value:I},M));return!1===p?R:n.createElement(p,ce({},y,{ref:$,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),w.submit()},onReset:e=>{e.preventDefault(),w.resetFields(),y.onReset?.(e)}}),R)};function de(e){try{return JSON.stringify(e)}catch{return Math.random()}}const pe=n.forwardRef(ue);pe.FormProvider=({validateMessages:e,onFormChange:t,onFormFinish:r,children:o})=>{const a=n.useContext(se),i=n.useRef({});return n.createElement(se.Provider,{value:{...a,validateMessages:{...a.validateMessages,...e},triggerFormChange:(e,r)=>{t&&t(e,{changedFields:r,forms:i.current}),a.triggerFormChange(e,r)},triggerFormFinish:(e,t)=>{r&&r(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(i.current={...i.current,[e]:t}),a.registerForm(e,t)},unregisterForm:e=>{const t={...i.current};delete t[e],i.current=t,a.unregisterForm(e)}}},o)},pe.Field=te,pe.List=function({name:e,initialValue:t,children:r,rules:a,validateTrigger:i,isListField:c}){const u=n.useContext(s),d=n.useContext(l),p=n.useRef({keys:[],id:0}).current,m=n.useMemo(()=>[...W(u.prefixName)||[],...W(e)],[u.prefixName,e]),h=n.useMemo(()=>({...u,prefixName:m}),[u,m]),f=n.useMemo(()=>({getKey:e=>{const t=m.length,r=e[t];return[p.keys[r],e.slice(t+1)]}}),[p,m]);return"function"!=typeof r?((0,o.$e)(!1,"Form.List only accepts function as children."),null):n.createElement(l.Provider,{value:f},n.createElement(s.Provider,{value:h},n.createElement(te,{name:[],shouldUpdate:(e,t,{source:r})=>"internal"!==r&&e!==t,rules:a,validateTrigger:i,initialValue:t,isList:!0,isListField:c??!!d},({value:e=[],onChange:t},n)=>{const{getFieldValue:o}=u,a=()=>o(m||[])||[],i={add:(e,r)=>{const n=a();r>=0&&r<=n.length?(p.keys=[...p.keys.slice(0,r),p.id,...p.keys.slice(r)],t([...n.slice(0,r),e,...n.slice(r)])):(p.keys=[...p.keys,p.id],t([...n,e])),p.id+=1},remove:e=>{const r=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(p.keys=p.keys.filter((e,t)=>!n.has(t)),t(r.filter((e,t)=>!n.has(t))))},move(e,r){if(e===r)return;const n=a();e<0||e>=n.length||r<0||r>=n.length||(p.keys=G(p.keys,e,r),t(G(n,e,r)))}};let s=e||[];return Array.isArray(s)||(s=[]),r(s.map((__,e)=>{let t=p.keys[e];return void 0===t&&(p.keys[e]=p.id,t=p.keys[e],p.id+=1),{name:e,key:t,isListField:!0}}),i,n)})))},pe.useForm=ie,pe.useWatch=function(...e){const[t,r={}]=e,i=function(e){return e&&!!e._init}(r)?{form:r}:r,l=i.form,[c,u]=(0,n.useState)(()=>"function"==typeof t?t({}):void 0),d=(0,n.useMemo)(()=>de(c),[c]);(0,n.useRef)(d).current=d;const p=(0,n.useContext)(s),m=l||p,h=m&&m._init,{getFieldsValue:f,getInternalHooks:g}=m,{registerWatch:b}=g(a),v=(0,o._q)((e,r)=>{const n=i.preserve?r??f(!0):e??f(),a="function"==typeof t?t(n):(0,o.Jt)(n,W(t));de(c)!==de(a)&&u(a)}),x="function"==typeof t?t:JSON.stringify(t);return(0,n.useEffect)(()=>{h&&v()},[h,x]),(0,n.useEffect)(()=>{if(h)return b((e,t)=>{v(e,t)})},[h]),c};const me=n.createContext({}),he=({children:e,status:t,override:r})=>{const o=n.useContext(me),a=n.useMemo(()=>{const e={...o};return r&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,r,o]);return n.createElement(me.Provider,{value:a},e)},fe=n.createContext(void 0)},124(e,t,r){var n=r(1609),o=r(2279),a=r(3295);r.d(t,["A",0,(e,t,r)=>{const{variant:i,[e]:s}=n.useContext(o.QO),l=n.useContext(a.Pp),c=s?.variant;let u;return u=void 0!==t?t:!1===r?"borderless":l??c??i??"outlined",[u,o.lJ.includes(u)]}])},6121(e,t,r){const n=(0,r(1609).createContext)({});r.d(t,["A",0,n])},6606(e,t,r){var n=r(1609),o=r(4164),a=r(1685),i=r(4945),s=r(2279),l=r(7358),c=r(6121),u=r(5006);function d(e){return"auto"===e?"1 1 auto":(0,a.Et)(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const p=n.forwardRef((e,t)=>{const{getPrefixCls:r,direction:p}=n.useContext(s.QO),{gutter:m,wrap:h}=n.useContext(c.A),{prefixCls:f,span:g,order:b,offset:v,push:x,pull:y,className:$,children:C,flex:w,style:S,...k}=e,E=r("col",f),_=r(),[A,N]=(0,u.xV)(E),[j]=(0,l.PN)(_,"col"),M={};let P={};i.Gl.forEach(t=>{let r={};const n=e[t];(0,a.Et)(n)?r.span=n:(0,a.Qd)(n)&&(r=n||{}),delete k[t],P={...P,[`${E}-${t}-${r.span}`]:(0,a.R)(r.span),[`${E}-${t}-order-${r.order}`]:r.order||0===r.order,[`${E}-${t}-offset-${r.offset}`]:r.offset||0===r.offset,[`${E}-${t}-push-${r.push}`]:r.push||0===r.push,[`${E}-${t}-pull-${r.pull}`]:r.pull||0===r.pull,[`${E}-rtl`]:"rtl"===p},r.flex&&(P[`${E}-${t}-flex`]=!0,M[j(`${t}-flex`)]=d(r.flex))});const z=(0,o.$)(E,{[`${E}-${g}`]:void 0!==g,[`${E}-order-${b}`]:b,[`${E}-offset-${v}`]:v,[`${E}-push-${x}`]:x,[`${E}-pull-${y}`]:y},$,P,A,N),I={};if(m?.[0]){const e=(0,a.Et)(m[0])?m[0]/2+"px":`calc(${m[0]} / 2)`;I.paddingInline=e}return w&&(I.flex=d(w),!1!==h||I.minWidth||(I.minWidth=0)),n.createElement("div",{...k,style:{...I,...S,...M},className:z,ref:t},C)});r.d(t,["A",0,p])},8551(e,t,r){var n=r(1609),o=r(6487),a=r(7447),i=r(4945);r.d(t,["A",0,function(e=!0,t={}){const r=(0,n.useRef)(t),[,s]=(0,a.C)(),l=(0,i.Ay)();return(0,o.Nf)(()=>{const t=l.subscribe(t=>{r.current=t,e&&s()});return()=>l.unsubscribe(t)},[]),r.current}])},2915(e,t,r){r.d(t,{A:()=>p});var n=r(1609),o=r(4164),a=r(1685),i=r(4945),s=r(2279),l=r(8551),c=r(6121),u=r(5006);const d=(e,t)=>{const[r,o]=n.useState(()=>(0,a.Kg)(e)?e:"");return n.useEffect(()=>{(()=>{if((0,a.Kg)(e)&&o(e),(0,a.Qd)(e))for(let r=0;r<i.ye.length;r++){const n=i.ye[r];if(!t||!t[n])continue;const a=e[n];if(void 0!==a)return void o(a)}})()},[JSON.stringify(e),t]),r},p=n.forwardRef((e,t)=>{const{prefixCls:r,justify:p,align:m,className:h,style:f,children:g,gutter:b=0,wrap:v,...x}=e,{getPrefixCls:y,direction:$}=n.useContext(s.QO),C=(0,l.A)(!0,null),w=d(m,C),S=d(p,C),k=y("row",r),[E,_]=(0,u.L3)(k),A=function(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return n.forEach((e,t)=>{if((0,a.Qd)(e))for(let n=0;n<i.ye.length;n++){const a=i.ye[n];if(o[a]&&void 0!==e[a]){r[t]=e[a];break}}else r[t]=e}),r}(b,C),N=(0,o.$)(k,{[`${k}-no-wrap`]:!1===v,[`${k}-${S}`]:S,[`${k}-${w}`]:w,[`${k}-rtl`]:"rtl"===$},h,E,_),j={};if(A?.[0]){const e=(0,a.Et)(A[0])?A[0]/-2+"px":`calc(${A[0]} / -2)`;j.marginInline=e}const[M,P]=A;j.rowGap=P;const z=n.useMemo(()=>({gutter:[M,P],wrap:v}),[M,P,v]);return n.createElement(c.A.Provider,{value:z},n.createElement("div",{...x,className:N,style:{...j,...f},ref:t},g))})},5006(e,t,r){var n=r(738),o=r(485),a=r(7358);const i=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s=(e,t)=>((e,t)=>{const{componentCls:r,gridColumns:n,antCls:o}=e,[i,s]=(0,a.PN)(o,"grid"),[,l]=(0,a.PN)(o,"col"),c={};for(let e=n;e>=0;e--)0===e?(c[`${r}${t}-${e}`]={display:"none"},c[`${r}-push-${e}`]={insetInlineStart:"auto"},c[`${r}-pull-${e}`]={insetInlineEnd:"auto"},c[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},c[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},c[`${r}${t}-offset-${e}`]={marginInlineStart:0},c[`${r}${t}-order-${e}`]={order:0}):(c[`${r}${t}-${e}`]=[{[i("display")]:"block",display:"block"},{display:s("display"),flex:`0 0 ${e/n*100}%`,maxWidth:e/n*100+"%"}],c[`${r}${t}-push-${e}`]={insetInlineStart:e/n*100+"%"},c[`${r}${t}-pull-${e}`]={insetInlineEnd:e/n*100+"%"},c[`${r}${t}-offset-${e}`]={marginInlineStart:e/n*100+"%"},c[`${r}${t}-order-${e}`]={order:e});return c[`${r}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},c})(e,t),l=(0,a.OF)("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),c=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),u=(0,a.OF)("Grid",e=>{const t=(0,o.oX)(e,{gridColumns:24}),r=c(t);return delete r.xs,[i(t),s(t,""),s(t,"-xs"),Object.keys(r).map(e=>((e,t,r)=>({[`@media (min-width: ${(0,n.zA)(t)})`]:{...s(e,r)}}))(t,r[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},()=>({}));r.d(t,["L3",0,l,"i4",0,c,"xV",0,u])},2322(e,t,r){r.d(t,{A:()=>w});var n=r(1609),o=r(6639),a=r(4164),i=r(6559),s=r(992),l=r(1685),c=r(8182),u=r(2279),d=r(8119),p=r(934),m=r(829),h=r(3295),f=r(124),g=r(7090),b=r(6487),v=r(1594),x=r(7358),y=r(485),$=r(4335);const C=(0,x.OF)(["Input","TextArea"],e=>(e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${n}-has-feedback ${t}\n `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})((0,y.oX)(e,(0,$.C)(e))),$.b,{resetFont:!1}),w=(0,n.forwardRef)((e,t)=>{const{prefixCls:r,bordered:x=!0,size:y,disabled:$,status:w,allowClear:S,classNames:k,rootClassName:E,className:_,style:A,styles:N,variant:j,showCount:M,onMouseDown:P,onResize:z,...I}=e,{getPrefixCls:R,direction:T,allowClear:O,autoComplete:B,className:L,style:H,classNames:D,styles:F}=(0,u.TP)("textArea"),W=n.useContext(d.A),V=$??W,{status:q,hasFeedback:X,feedbackIcon:G}=n.useContext(h.$W),K=(0,c.v)(q,w),U=(0,s.XT)(H),Y=(0,s.XT)(A),[Q,Z]=(0,s.AV)([D,k],[F,U,N,Y],{props:e}),J=n.useRef(null);n.useImperativeHandle(t,()=>({resizableTextArea:J.current?.resizableTextArea,focus:e=>{(0,b.F4)(J.current?.resizableTextArea?.textArea,e)},blur:()=>J.current?.blur(),nativeElement:J.current?.nativeElement||null}));const ee=R("input",r),te=(0,p.A)(ee),[re,ne]=(0,v.MG)(ee,E);C(ee,te);const{compactSize:oe,compactItemClassnames:ae}=(0,g.RQ)(ee,T),ie=(0,m.A)(e=>y??oe??e),[se,le]=(0,f.A)("textArea",j,x),ce=(0,i.O)({allowClear:S,contextAllowClear:O,componentName:"TextArea"}),[ue,de]=n.useState(!1),[pe,me]=n.useState(!1);return n.createElement(o.fs,{autoComplete:B,...I,style:Z.root,styles:Z,disabled:V,allowClear:ce,className:(0,a.$)(ne,te,_,E,ae,L,Q.root,{[`${ee}-textarea-affix-wrapper-resize-dirty`]:pe}),classNames:{...Q,textarea:(0,a.$)({[`${ee}-sm`]:"small"===ie,[`${ee}-lg`]:"large"===ie},re,Q.textarea,ue&&`${ee}-mouse-active`),variant:(0,a.$)({[`${ee}-${se}`]:le},(0,c.L)(ee,K)),affixWrapper:(0,a.$)(`${ee}-textarea-affix-wrapper`,{[`${ee}-affix-wrapper-rtl`]:"rtl"===T,[`${ee}-affix-wrapper-sm`]:"small"===ie,[`${ee}-affix-wrapper-lg`]:"large"===ie,[`${ee}-textarea-show-count`]:M||e.count?.show},re)},prefixCls:ee,suffix:X&&n.createElement("span",{className:`${ee}-textarea-suffix`},G),showCount:M,ref:J,onResize:e=>{if(z?.(e),ue&&(0,l.Tn)(getComputedStyle)){const e=J.current?.nativeElement?.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&me(!0)}},onMouseDown:e=>{de(!0),P?.(e);const t=()=>{de(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}})})},1594(e,t,r){var n=r(738),o=r(5905),a=r(5974),i=r(485),s=r(7358),l=r(4335),c=r(9222);const u=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return{padding:`${(0,n.zA)(t)} ${(0,n.zA)(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:o}},p=e=>({padding:`${(0,n.zA)(e.paddingBlockSM)} ${(0,n.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),m=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,n.zA)(e.paddingBlock)} ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...u(e.colorTextPlaceholder),"&-lg":{...d(e),...t.largeStyle},"&-sm":{...p(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),h=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...d(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...p(e)},[`&-lg ${r}-select-single`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,n.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${(0,n.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${r}-cascader-picker`]:{margin:`-9px ${(0,n.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...(0,o.t6)(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${r}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select,\n & > ${r}-select-auto-complete ${t},\n & > ${r}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${r}-select:first-child,\n & > ${r}-select-auto-complete:first-child ${t},\n & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${r}-select:last-child,\n & > ${r}-cascader-picker:last-child ${t},\n & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},f=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=a(r).sub(a(n).mul(2)).sub(16).div(2).equal();return{[t]:{...(0,o.dF)(e),...m(e),...(0,c.Eb)(e),...(0,c.sA)(e),...(0,c.lB)(e),...(0,c.aP)(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},g=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...(0,o.jk)(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,n.zA)(e.inputAffixPadding)}`}}}},b=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:a,colorIconHover:i}=e,s=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[s]:{...m(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r},"&-password-icon":{display:"inline-flex",color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}},...g(e)},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},v=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:{...(0,o.dF)(e),...h(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}},...(0,c.nm)(e),...(0,c.Vy)(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},x=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},y=(0,s.OF)(["Input","Shared"],e=>{const t=(0,i.oX)(e,(0,l.C)(e));return[f(t),b(t)]},l.b,{resetFont:!1}),$=(0,s.OF)(["Input","Component"],e=>{const t=(0,i.oX)(e,(0,l.C)(e));return[v(t),x(t),(0,a.G)(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},l.b,{resetFont:!1});r.d(t,["Ay",0,$,"BZ",0,p,"MG",0,y,"j_",0,u,"wj",0,m,"xp",0,d])},4335(e,t,r){r.d(t,{C:()=>o});var n=r(485);function o(e){return(0,n.oX)(e,{inputAffixPadding:e.paddingXXS})}r.d(t,["b",0,e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:f,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:x,inputFontSize:y,inputFontSizeLG:$,inputFontSizeSM:C}=e,w=y||r,S=C||w,k=$||s,E=Math.round((t-w*n)/2*10)/10-o,_=Math.round((a-S*n)/2*10)/10-o,A=Math.ceil((i-k*l)/2*10)/10-o;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(A,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${f}px ${g}`,errorActiveShadow:`0 0 0 ${f}px ${b}`,warningActiveShadow:`0 0 0 ${f}px ${v}`,hoverBg:x,activeBg:x,inputFontSize:w,inputFontSizeLG:k,inputFontSizeSM:S}}])},9222(e,t,r){var n=r(738),o=r(485);const a=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),i=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...a((0,o.oX)(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),s=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),l=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...s(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),c=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),u="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",d=(e,t)=>({outline:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:(0,n.zA)(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),p=(e,t)=>({"&, & input, & textarea":{color:t.color},[u]:d(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),m=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),h=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...m(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),f=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),g=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,n.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),b=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...g(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}});r.d(t,["Eb",0,(e,t)=>({"&-outlined":{...s(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...i(e)},...l(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...l(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),"Vy",0,e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...f(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...f(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),"aP",0,(e,t)=>({"&-underlined":{...g(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"},...b(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...b(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),"eT",0,i,"lB",0,(e,t)=>{const{componentCls:r}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${r}-sm, &${r}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${r}-lg, &${r}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[u]:d(e,e.activeBorderColor),[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:p(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${r}-status-warning`]:p(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},"nI",0,s,"nm",0,e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,n.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...c(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...c(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...i(e)}}}}),"sA",0,(e,t)=>({"&-filled":{...m(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...i(e)},...h(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...h(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}})])},685(e,t,r){const n=(0,r(1609).createContext)(void 0);r.d(t,["A",0,n])},11(e,t,r){r.d(t,{A:()=>l});var n=r(5059);const o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},a={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0,locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{...o}},i=a,s="${label} is not a valid ${type}",l={locale:"en",Pagination:n.A,DatePicker:a,TimePicker:o,Calendar:i,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},9155(e,t,r){var n=r(1609),o=r(1685),a=r(685),i=r(11);r.d(t,["A",0,(e,t)=>{const r=n.useContext(a.A);return[n.useMemo(()=>{const n=t||i.A[e],a=r?.[e]??{};return{...(0,o.Tn)(n)?n():n,...a||{}}},[e,t,r]),n.useMemo(()=>{const e=r?.locale;return r?.exist&&!e?i.A.locale:e},[r])]}])},78(e,t,r){r.d(t,{k:()=>_,A:()=>N});var n=r(1609),o=r.n(n),a=r(4768),i=r(4732),s=r(9729),l=r(5010),c=r(4164),u=r(4613),d=r(1685),p=r(3723),m=r(8721),h=r(2279),f=r(9155),g=r(8484),b=r(8431),v=r(1914);const x=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:a,mergedOkCancel:i,rootPrefixCls:s,close:l,onCancel:c,onConfirm:u,onClose:d}=(0,n.useContext)(v.V);return i?o().createElement(b.A,{isSilent:a,actionFn:c,close:(...e)=>{l?.(...e),u?.(!1),d?.()},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${s}-btn`},r):null},y=()=>{const{autoFocusButton:e,close:t,isSilent:r,okButtonProps:a,rootPrefixCls:i,okTextLocale:s,okType:l,onConfirm:c,onOk:u,onClose:d}=(0,n.useContext)(v.V);return o().createElement(b.A,{isSilent:r,type:l||"primary",actionFn:u,close:(...e)=>{t?.(...e),c?.(!0),d?.()},autoFocus:"ok"===e,buttonProps:a,prefixCls:`${i}-btn`},s)};var $=r(1671),C=r(738),w=r(8071),S=r(5905);const k=(0,r(7358).bf)(["Modal","confirm"],e=>(e=>{const{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:o,fontSize:a,lineHeight:i,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:{...(0,S.t6)()},[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,C.zA)(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${(0,C.zA)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})((0,w.FY)(e)),w.cH,{order:-1e3});var E=r(94);const _=e=>{const{prefixCls:t,icon:r,okText:o,cancelText:u,confirmPrefixCls:p,type:m,okCancel:g,footer:b,locale:$,autoFocusButton:C,focusable:w,...S}=e,{infoIcon:_,successIcon:A,errorIcon:N,warningIcon:j}=(0,h.TP)("modal");let M=r;if(void 0===r)switch(m){case"info":M=(0,E.A)(_,n.createElement(l.A,null));break;case"success":M=(0,E.A)(A,n.createElement(a.A,null));break;case"error":M=(0,E.A)(N,n.createElement(i.A,null));break;default:M=(0,E.A)(j,n.createElement(s.A,null))}const P=g??"confirm"===m,z=n.useMemo(()=>{const e=w?.autoFocusButton||C;return e||null===e?e:"ok"},[C,w?.autoFocusButton]),[I]=(0,f.A)("Modal"),R=$||I,T=o||(P?R?.okText:R?.justOkText),O=u||R?.cancelText,{closable:B}=S,{onClose:L}=(0,d.Qd)(B)?B:{},H=n.useMemo(()=>({autoFocusButton:z,cancelTextLocale:O,okTextLocale:T,mergedOkCancel:P,onClose:L,...S}),[z,O,T,P,L,S]),D=n.createElement(n.Fragment,null,n.createElement(x,null),n.createElement(y,null)),F=(0,d.AZ)(e.title),W=(0,d.AZ)(M),V=`${p}-body`;return n.createElement("div",{className:`${p}-body-wrapper`},n.createElement("div",{className:(0,c.$)(V,{[`${V}-has-title`]:F,[`${V}-no-icon`]:!W})},M,n.createElement("div",{className:`${p}-paragraph`},F&&n.createElement("span",{className:`${p}-title`},e.title),n.createElement("div",{className:`${p}-content`},e.content))),void 0===b||(0,d.Tn)(b)?n.createElement(v.i,{value:H},n.createElement("div",{className:`${p}-btns`},(0,d.Tn)(b)?b(D,{OkBtn:y,CancelBtn:x}):D)):b,n.createElement(k,{prefixCls:t}))},A=e=>{const{close:t,zIndex:r,maskStyle:o,direction:a,prefixCls:i,wrapClassName:s,rootPrefixCls:l,bodyStyle:d,closable:m=!1,onConfirm:f,styles:b,title:v,mask:x,maskClosable:y,okButtonProps:C,cancelButtonProps:w}=e,{cancelButtonProps:S,okButtonProps:k}=(0,h.TP)("modal"),E=`${i}-confirm`,A=e.width||416,N=e.style||{},j=(0,c.$)(E,`${E}-${e.type}`,{[`${E}-rtl`]:"rtl"===a},e.className),M=n.useMemo(()=>{const e=(0,u.A)(x,y);return e.closable??(e.closable=!1),e},[x,y]),[,P]=(0,g.Ay)(),z=n.useMemo(()=>void 0!==r?r:P.zIndexPopupBase+1e3,[r,P]);return n.createElement($.A,{...e,className:j,wrapClassName:(0,c.$)({[`${E}-centered`]:!!e.centered},s),onCancel:()=>{t?.({triggerCancel:!0}),f?.(!1)},title:v,footer:null,transitionName:(0,p.b)(l||"","zoom",e.transitionName),maskTransitionName:(0,p.b)(l||"","fade",e.maskTransitionName),mask:M,style:N,styles:{body:d,mask:o,...b},width:A,zIndex:z,closable:m},n.createElement(_,{...e,confirmPrefixCls:E,okButtonProps:{...k,...C},cancelButtonProps:{...S,...w}}))},N=e=>{const{rootPrefixCls:t,iconPrefixCls:r,direction:o,theme:a}=e;return n.createElement(m.Ay,{prefixCls:t,iconPrefixCls:r,direction:o,theme:a},n.createElement(A,{...e}))}},1671(e,t,r){r.d(t,{A:()=>S});var n=r(1609),o=r(5886),a=r(3168),i=r(6487),s=r(4164),l=r(2897),c=r(4613),u=r(64),d=r(275),p=r(992),m=r(1685),h=r(3723),f=r(2616),g=r(2279),b=r(934),v=r(7072);function x(){}const y=n.createContext({add:x,remove:x});var $=r(3075),C=r(8071);let w;(0,i.OC)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{w={x:e.pageX,y:e.pageY},setTimeout(()=>{w=null},100)},!0);const S=e=>{const{prefixCls:t,className:r,rootClassName:x,open:S,wrapClassName:k,centered:E,getContainer:_,style:A,width:N=520,footer:j,classNames:M,styles:P,children:z,loading:I,confirmLoading:R,zIndex:T,mousePosition:O,onOk:B,onCancel:L,okButtonProps:H,cancelButtonProps:D,destroyOnHidden:F,destroyOnClose:W,panelRef:V=null,closable:q,mask:X,modalRender:G,maskClosable:K,scrollLock:U,focusTriggerAfterClose:Y,focusable:Q,...Z}=e,{getPopupContainer:J,getPrefixCls:ee,direction:te,className:re,style:ne,classNames:oe,styles:ae,centered:ie,cancelButtonProps:se,okButtonProps:le,mask:ce,focusable:ue}=(0,g.TP)("modal"),{modal:de}=n.useContext(g.QO),[pe,me]=n.useMemo(()=>"boolean"==typeof q?[void 0,void 0]:[q?.afterClose,q?.onClose],[q]),he=ee("modal",t),fe=ee(),[ge,be,ve]=(0,c.u)(X,ce,he,K),xe=function(e,t,r){return(0,n.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:r??!0,...e}),[e,t,r])}({...ue,...Q},ge,Y),ye=e=>{R||(L?.(e),me?.())},$e=(0,b.A)(he),[Ce,we]=(0,C.Ay)(he,$e),Se=(0,s.$)(k,{[`${he}-centered`]:E??ie,[`${he}-wrap-rtl`]:"rtl"===te}),ke=null===j||I?null:n.createElement($.w,{...e,okButtonProps:{...le,...H},onOk:e=>{B?.(e),me?.()},cancelButtonProps:{...se,...D},onCancel:ye}),[Ee,_e,Ae,Ne]=(0,u.$Z)((0,u.dG)(e),(0,u.dG)(de),{closable:!0,closeIcon:n.createElement(o.A,{className:`${he}-close-icon`}),closeIconRender:e=>(0,$.O)(he,e)}),je=!!Ee&&{disabled:Ae,closeIcon:_e,afterClose:pe,...Ne},Me=G?e=>n.createElement("div",{className:`${he}-render`},G(e)):void 0,Pe=function(e){const t=n.useContext(y),r=n.useRef(null);return(0,i._q)(n=>{if(n){const o=e?n.querySelector(e):n;o&&(t.add(o),r.current=o)}else t.remove(r.current)})}(`.${he}-${G?"render":"container"}`),ze=(0,i.K4)(V,Pe),[Ie,Re]=(0,d.YK)("Modal",T),Te={...e,width:N,panelRef:V,focusTriggerAfterClose:xe.focusTriggerAfterClose,focusable:xe,mask:ge,maskClosable:ve,zIndex:Ie},[Oe,Be]=(0,p.AV)([oe,M,be],[ae,P],{props:Te}),[Le,He]=n.useMemo(()=>(0,m.Qd)(N)?[void 0,N]:[N,void 0],[N]),De=n.useMemo(()=>{const e={};return He&&Object.keys(He).forEach(t=>{const r=He[t];(0,m.R)(r)&&(e[`--${he}-${t}-width`]=(0,m.Et)(r)?`${r}px`:r)}),e},[he,He]);return n.createElement(l.A,{form:!0,space:!0},n.createElement(f.A.Provider,{value:Re},n.createElement(a.A,{width:Le,...Z,zIndex:Ie,getContainer:void 0===_?J:_,prefixCls:he,rootClassName:(0,s.$)(Ce,x,we,$e,Oe.root),rootStyle:Be.root,footer:ke,visible:S,mousePosition:O??w,onClose:ye,closable:je,closeIcon:_e,transitionName:(0,h.b)(fe,"zoom",e.transitionName),maskTransitionName:(0,h.b)(fe,"fade",e.maskTransitionName),mask:ge,maskClosable:ve,scrollLock:U,className:(0,s.$)(Ce,r,re),style:{...ne,...A,...De},classNames:{...Oe,wrapper:(0,s.$)(Oe.wrapper,Se)},styles:Be,panelRef:ze,destroyOnHidden:F??W,modalRender:Me,focusTriggerAfterClose:xe.focusTriggerAfterClose,focusTrap:xe.trap},I?n.createElement(v.A,{active:!0,title:!1,paragraph:{rows:4},className:`${he}-body-skeleton`}):z)))}},425(e,t,r){r.d(t,{$D:()=>b,Ay:()=>f,Ej:()=>v,FB:()=>$,fp:()=>g,jT:()=>x,lr:()=>y});var n=r(1609),o=r.n(n),a=r(6487),i=r(1685),s=r(8721),l=r(2279),c=r(78),u=r(174),d=r(1815);let p="";function m(){return p}const h=e=>{const{prefixCls:t,getContainer:r,direction:a}=e,i=(0,d.l)(),s=(0,n.useContext)(l.QO),u=m()||s.getPrefixCls(),p=t||`${u}-modal`;let h=r;return!1===h&&(h=void 0),o().createElement(c.A,{...e,rootPrefixCls:u,prefixCls:p,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:s.locale?.Modal??i,getContainer:h})};function f(e){const t=(0,s.cr)(),r=document.createDocumentFragment();let n,l={...e,close:p,open:!0};function c(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<u.A.length;e++)if(u.A[e]===p){u.A.splice(e,1);break}(0,a.vs)(r).then(()=>{})}const d=e=>{clearTimeout(n),n=setTimeout(()=>{const n=t.getPrefixCls(void 0,m()),l=t.getIconPrefixCls(),c=t.getTheme(),u=o().createElement(h,{...e});(0,a.XX)(o().createElement(s.Ay,{prefixCls:n,iconPrefixCls:l,theme:c},(0,i.Tn)(t.holderRender)?t.holderRender(u):u),r)})};function p(...t){l={...l,open:!1,afterClose:()=>{(0,i.Tn)(e.afterClose)&&e.afterClose(),c.apply(this,t)}},d(l)}return d(l),u.A.push(p),{destroy:p,update:function(e){l=(0,i.Tn)(e)?e(l):{...l,...e},d(l)}}}function g(e){return{...e,type:"warning"}}function b(e){return{...e,type:"info"}}function v(e){return{...e,type:"success"}}function x(e){return{...e,type:"error"}}function y(e){return{...e,type:"confirm"}}function $({rootPrefixCls:e}){p=e}},1914(e,t,r){var n=r(1609);const o=r.n(n)().createContext({}),{Provider:a}=o;r.d(t,["V",0,o,"i",0,a])},174(e,t,r){r.d(t,["A",0,[]])},1815(e,t,r){r.d(t,{L:()=>s,l:()=>l});var n=r(11);let o={...n.A.Modal},a=[];const i=()=>a.reduce((e,t)=>({...e,...t}),n.A.Modal);function s(e){if(e){const t={...e};return a.push(t),o=i(),()=>{a=a.filter(e=>e!==t),o=i()}}o={...n.A.Modal}}function l(){return o}},3075(e,t,r){r.d(t,{w:()=>g,O:()=>f});var n=r(1609),o=r.n(n),a=r(5886),i=r(1685),s=r(8119),l=r(9155),c=r(5788),u=r(1914);const d=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=(0,n.useContext)(u.V);return o().createElement(c.A,{onClick:r,...e},t)};var p=r(9449);const m=()=>{const{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:a,onOk:i}=(0,n.useContext)(u.V);return o().createElement(c.A,{...(0,p.DU)(r),loading:e,onClick:i,...t},a)};var h=r(1815);function f(e,t){return o().createElement("span",{className:`${e}-close-x`},t||o().createElement(a.A,{className:`${e}-close-icon`}))}const g=e=>{const{okText:t,okType:r="primary",cancelText:n,confirmLoading:a,onOk:c,onCancel:p,okButtonProps:f,cancelButtonProps:g,footer:b}=e,[v]=(0,l.A)("Modal",(0,h.l)()),x=t||v?.okText,y=n||v?.cancelText,$=o().useMemo(()=>({confirmLoading:a,okButtonProps:f,cancelButtonProps:g,okTextLocale:x,cancelTextLocale:y,okType:r,onOk:c,onCancel:p}),[a,f,g,x,y,r,c,p]);let C;return(0,i.Tn)(b)||void 0===b?(C=o().createElement(o().Fragment,null,o().createElement(d,null),o().createElement(m,null)),(0,i.Tn)(b)&&(C=b(C,{OkBtn:m,CancelBtn:d})),C=o().createElement(u.i,{value:$},C)):C=b,o().createElement(s.X,{disabled:!1},C)}},8071(e,t,r){var n=r(5458),o=r(738),a=r(5006),i=r(5905),s=r(8680),l=r(9077),c=r(485),u=r(7358);function d(e){return{position:e,inset:0}}const p=e=>{const{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...d("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...d("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:(0,s.p9)(e)}]},m=e=>{const{componentCls:t,motionDurationMid:r}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,o.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...(0,i.dF)(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,o.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...(0,i.jk)(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(e=>`${e} ${r}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,o.zA)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...(0,i.K8)(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,o.zA)(e.borderRadiusLG)} ${(0,o.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,o.zA)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},h=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},f=e=>{const{componentCls:t}=e,r=(0,a.i4)(e),i={...r};delete i.xs;const s=`--${t.replace(".","")}-`,l=Object.keys(i).map(e=>({[`@media (min-width: ${(0,o.zA)(i[e])})`]:{width:`var(${s}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat((0,n.A)(Object.keys(r).map((e,t)=>{const n=Object.keys(r)[t-1];return n?{[`${s}${e}-width`]:`var(${s}${n}-width)`}:null})),[{width:`var(${s}xs-width)`}],(0,n.A)(l))}}},g=e=>{const t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return(0,c.oX)(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},b=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,o.zA)(e.paddingMD)} ${(0,o.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,o.zA)(e.padding)} ${(0,o.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,o.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,o.zA)(e.paddingXS)} ${(0,o.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,o.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,o.zA)(e.borderRadiusLG)} ${(0,o.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,o.zA)(2*e.padding)} ${(0,o.zA)(2*e.padding)} ${(0,o.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),v=(0,u.OF)("Modal",e=>{const t=g(e);return[m(t),h(t),p(t),(0,l.aB)(t,"zoom"),f(t)]},b,{unitless:{titleLineHeight:!0}});r.d(t,["Ay",0,v,"FY",0,g,"cH",0,b])},6777(e,t,r){r.d(t,{A:()=>f});var n=r(5458),o=r(1609),a=r(425),i=r(174),s=r(1685),l=r(2279),c=r(11),u=r(9155),d=r(78);const p=o.forwardRef((e,t)=>{const{afterClose:r,config:n,...a}=e,[i,p]=o.useState(!0),[m,h]=o.useState(n),{direction:f,getPrefixCls:g}=o.useContext(l.QO),b=g("modal"),v=g(),x=(...e)=>{p(!1),e.some(e=>e?.triggerCancel)&&m.onCancel?.(()=>{},...e.slice(1))};o.useImperativeHandle(t,()=>({destroy:x,update:e=>{h(t=>{const r=(0,s.Tn)(e)?e(t):e;return{...t,...r}})}}));const y=m.okCancel??"confirm"===m.type,[$]=(0,u.A)("Modal",c.A.Modal);return o.createElement(d.A,{prefixCls:b,rootPrefixCls:v,...m,close:x,open:i,afterClose:()=>{r(),m.afterClose?.()},okText:m.okText||(y?$?.okText:$?.justOkText),direction:m.direction||f,cancelText:m.cancelText||$?.cancelText,...a})});let m=0;const h=o.memo(o.forwardRef((e,t)=>{const[r,a]=(()=>{const[e,t]=o.useState([]);return[e,o.useCallback(e=>(t(t=>[].concat((0,n.A)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return o.useImperativeHandle(t,()=>({patchElement:a}),[a]),o.createElement(o.Fragment,null,r)})),f=function(){const e=o.useRef(null),[t,r]=o.useState([]);o.useEffect(()=>{t.length&&((0,n.A)(t).forEach(e=>{e()}),r([]))},[t]);const s=o.useCallback(t=>function(a){m+=1;const s=o.createRef();let l;const c=new Promise(e=>{l=e});let u,d=!1;const h=o.createElement(p,{key:`modal-${m}`,config:t(a),ref:s,afterClose:()=>{u?.()},isSilent:()=>d,onConfirm:e=>{l(e)}});return u=e.current?.patchElement(h),u&&i.A.push(u),{destroy:()=>{function e(){s.current?.destroy()}s.current?e():r(t=>[].concat((0,n.A)(t),[e]))},update:e=>{function t(){s.current?.update(e)}s.current?t():r(e=>[].concat((0,n.A)(e),[t]))},then:e=>(d=!0,c.then(e))}},[]);return[o.useMemo(()=>({info:s(a.$D),success:s(a.Ej),error:s(a.jT),warning:s(a.fp),confirm:s(a.lr)}),[s]),o.createElement(h,{key:"modal-holder",ref:e})]}},5381(e,t,r){var n=r(1609),o=r(5781),a=r(4164),i=r(7755),s=r(992),l=r(1685),c=r(2279),u=r(2563);const d=e=>{const{title:t,content:r,prefixCls:o,classNames:i,styles:s}=e;return(0,l.AZ)(t)||(0,l.AZ)(r)?n.createElement(n.Fragment,null,(0,l.AZ)(t)&&n.createElement("div",{className:(0,a.$)(`${o}-title`,i?.title),style:s?.title},t),(0,l.AZ)(r)&&n.createElement("div",{className:(0,a.$)(`${o}-content`,i?.content),style:s?.content},r)):null},p=e=>{const{hashId:t,prefixCls:r,className:l,style:c,placement:u="top",title:p,content:m,children:h,classNames:f,styles:g}=e,b=(0,i.b)(p),v=(0,i.b)(m),x={...e,placement:u},[y,$]=(0,s.AV)([f],[g],{props:x}),C=(0,a.$)(t,r,`${r}-pure`,`${r}-placement-${u}`,l);return n.createElement("div",{className:C,style:c},n.createElement("div",{className:`${r}-arrow`}),n.createElement(o.z,{...e,className:t,prefixCls:r,classNames:y,styles:$},h||n.createElement(d,{prefixCls:r,title:b,content:v,classNames:y,styles:$})))};r.d(t,["Ay",0,e=>{const{prefixCls:t,className:r,...o}=e,{getPrefixCls:i}=n.useContext(c.QO),s=i("popover",t),[l,d]=(0,u.A)(s);return n.createElement(p,{...o,prefixCls:s,hashId:l,className:(0,a.$)(r,d)})},"hJ",0,d])},8073(e,t,r){var n=r(1609),o=r(6487),a=r(4164),i=r(7755),s=r(992),l=r(1685),c=r(3723),u=r(2279),d=r(6949),p=r(8875),m=r(5381),h=r(2563);const f=n.forwardRef((e,t)=>{const{prefixCls:r,title:f,content:g,overlayClassName:b,placement:v="top",trigger:x,children:y,mouseEnterDelay:$=.1,mouseLeaveDelay:C=.1,onOpenChange:w,overlayStyle:S={},styles:k,classNames:E,motion:_,arrow:A,...N}=e,{getPrefixCls:j,className:M,style:P,classNames:z,styles:I,arrow:R,trigger:T}=(0,u.TP)("popover"),O=j("popover",r),[B,L]=(0,h.A)(O),H=j(),D=(0,p.A)(A,R),F=x||T||"hover",W={...e,placement:v,trigger:F,mouseEnterDelay:$,mouseLeaveDelay:C,overlayStyle:S,styles:k,classNames:E},[V,q]=(0,s.AV)([z,E],[I,k],{props:W}),X=(0,a.$)(b,B,L,M,V.root),[G,K]=(0,o.PW)(e.defaultOpen??!1,e.open),U=(0,i.b)(f),Y=(0,i.b)(g);return n.createElement(d.A,{unique:!1,arrow:D,placement:v,trigger:F,mouseEnterDelay:$,mouseLeaveDelay:C,...N,prefixCls:O,classNames:{root:X,container:V.container,arrow:V.arrow},styles:{root:{...q.root,...P,...S},container:q.container,arrow:q.arrow},ref:t,open:G,onOpenChange:e=>{K(e),w?.(e)},overlay:(0,l.AZ)(U)||(0,l.AZ)(Y)?n.createElement(m.hJ,{prefixCls:O,title:U,content:Y,classNames:V,styles:q}):null,motion:{motionName:(0,c.b)(H,"zoom-big","string"==typeof _?.motionName?_?.motionName:void 0)},"data-popover-inject":!0},y)});f._InternalPanelDoNotUseOrYouWillBeFired=m.Ay;const g=f;r.d(t,["A",0,g])},2563(e,t,r){var n=r(5905),o=r(9077),a=r(5201),i=r(791),s=r(3950),l=r(485),c=r(7358);const u=e=>{const{componentCls:t,popoverColor:r,titleMinWidth:o,fontWeightStrong:i,innerPadding:s,dropShadowPopover:l,colorTextHeading:u,borderRadiusLG:d,zIndexPopup:p,titleMarginBottom:m,colorBgElevated:h,popoverBg:f,titleBorderBottom:g,innerContentPadding:b,titlePadding:v,antCls:x}=e,[y,$]=(0,c.PN)(x,"tooltip");return[{[t]:{...(0,n.dF)(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:l,[y("valid-offset-x")]:$("arrow-offset-x","var(--arrow-x)"),transformOrigin:[$("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" "),[y("arrow-background-color")]:h,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:d,padding:s},[`${t}-title`]:{minWidth:o,marginBottom:m,color:u,fontWeight:i,borderBottom:g,padding:v},[`${t}-content`]:{color:r,padding:b}}},(0,a.A)(e,$("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},d=e=>{const{componentCls:t,antCls:r}=e,[n]=(0,c.PN)(r,"tooltip");return{[t]:s.s.map(r=>{const o=e[`${r}6`];return{[`&${t}-${r}`]:{[n("arrow-background-color")]:o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},p=(0,c.OF)("Popover",e=>{const{colorBgElevated:t,colorText:r}=e,n=(0,l.oX)(e,{popoverBg:t,popoverColor:r});return[u(n),d(n),(0,o.aB)(n,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:r,fontHeight:n,padding:o,wireframe:s,zIndexPopupBase:l,borderRadiusLG:c,marginXS:u,lineType:d,colorSplit:p,paddingSM:m}=e,h=r-n,f=h/2,g=h/2-t,b=o;return{titleMinWidth:177,zIndexPopup:l+30,...(0,i.n)(e),...(0,a.K)({contentRadius:c,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:u,titlePadding:s?`${f}px ${b}px ${g}px`:0,titleBorderBottom:s?`${t}px ${d} ${p}`:"none",innerContentPadding:s?`${m}px ${b}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});r.d(t,["A",0,p])},7152(e,t,r){const n=r(2915).A;r.d(t,["A",0,n])},5514(e,t,r){r.d(t,{A:()=>Tt});var n=r(1609),o=r.n(n),a=r(6487),i=r(4164);const s=n.createContext(null);function l(){return n.useContext(s)}function c(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}var u=r(9311);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}const p=(e,t)=>{const{prefixCls:r,disabled:o,visible:a,children:s,popupElement:l,animation:c,transitionName:p,popupStyle:m,popupClassName:h,direction:f="ltr",placement:g,builtinPlacements:b,popupMatchSelectWidth:v,popupRender:x,popupAlign:y,getPopupContainer:$,empty:C,onPopupVisibleChange:w,onPopupMouseEnter:S,onPopupMouseDown:k,onPopupBlur:E,..._}=e,A=`${r}-dropdown`;let N=l;x&&(N=x(l));const j=n.useMemo(()=>b||(e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}})(v),[b,v]),M=c?`${A}-${c}`:p,P="number"==typeof v,z=n.useMemo(()=>!1===v||P?"minWidth":"width",[v,P]);let I=m;P&&(I={...m,width:v});const R=n.useRef(null);return n.useImperativeHandle(t,()=>({getPopupElement:()=>R.current?.popupElement})),n.createElement(u.Ay,d({},_,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:g||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:A,popupMotion:{motionName:M},popup:n.createElement("div",{onMouseEnter:S,onMouseDown:k,onBlur:E},N),ref:R,stretch:z,popupAlign:y,popupVisible:a,getPopupContainer:$,popupClassName:(0,i.$)(h,{[`${A}-empty`]:C}),popupStyle:I,onPopupVisibleChange:w}),s)},m=n.forwardRef(p);function h(e,t){const{key:r}=e;let n;return"value"in e&&({value:n}=e),null!=r?r:void 0!==n?n:`rc-index-key-${t}`}function f(e){return void 0!==e&&!Number.isNaN(e)}function g(e,t){const{label:r,value:n,options:o,groupLabel:a}=e||{},i=r||(t?"children":"label");return{label:i,value:n||"value",options:o||"options",groupLabel:a||i}}function b(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>((0,a.$e)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t)}),t}function v(e){const{visible:t,values:r}=e;return t?n.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${r.slice(0,50).map(({label:e,value:t})=>["number","string"].includes(typeof e)?e:t).join(", ")}`,r.length>50?", ...":null):null}const x=(e,t=1)=>{t<=0?e():(e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)})(()=>{x(e,t-1)})};function y(e){const{children:t,...r}=e;return t?n.createElement("div",r,t):null}const $=n.createContext(null);function C(){return n.useContext($)}const w=$,S=n.forwardRef((e,t)=>{const{onChange:r,onKeyDown:o,onBlur:s,style:c,syncWidth:u,value:d,className:p,autoComplete:m,...h}=e,{prefixCls:f,mode:g,onSearch:b,onSearchSubmit:v,onInputBlur:x,autoFocus:y,tokenWithEnter:$,placeholder:w,components:{input:S="input"}}=C(),{id:k,classNames:E,styles:_,open:A,activeDescendantId:N,role:j,disabled:M}=l()||{},P=(0,i.$)(`${f}-input`,E?.input,p),z=n.useRef(!1),I=n.useRef(null),R=n.useRef(null);n.useImperativeHandle(t,()=>R.current);const[T,O]=n.useState(void 0);(0,a.Nf)(()=>{const e=R.current;if(u&&e){e.style.width="0px";const t=e.scrollWidth;O(t),e.style.width=""}},[u,d]);const B={id:k,type:"text",...h,ref:R,style:{..._?.input,...c,"--select-input-width":T},autoFocus:y,autoComplete:m||"new-password",className:P,disabled:M,value:d||"",onChange:e=>{let{value:t}=e.target;if($&&I.current&&/[\r\n]/.test(I.current)){const e=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(e,I.current)}I.current=null,b&&b(t,!0,z.current),r?.(e)},onKeyDown:e=>{const{key:t}=e,{value:r}=e.currentTarget;"Enter"!==t||"tags"!==g||A||z.current||!v||v(r),o?.(e)},onBlur:e=>{x?.(),s?.(e)},onPaste:e=>{const{clipboardData:t}=e,r=t?.getData("text");I.current=r||""},onCompositionStart:()=>{z.current=!0},onCompositionEnd:e=>{if(z.current=!1,"combobox"!==g){const{value:t}=e.currentTarget;b?.(t,!0,!1)}},role:j||"combobox","aria-expanded":A||!1,"aria-haspopup":"listbox","aria-owns":A?`${k}_list`:void 0,"aria-autocomplete":"list","aria-controls":A?`${k}_list`:void 0,"aria-activedescendant":A?N:void 0};if(n.isValidElement(S)){const t=S.props||{},r={placeholder:e.placeholder||w,...B,...t};return Object.keys(t).forEach(e=>{const n=t[e];"function"==typeof n&&(r[e]=(...t)=>{n(...t),B[e]?.(...t)})}),r.ref=(0,a.K4)(S.ref,B.ref),n.cloneElement(S,r)}const L=S;return n.createElement(L,B)}),k=S;function E(e){const{prefixCls:t,placeholder:r,displayValues:o}=C(),{classNames:a,styles:s}=l(),{show:c=!0}=e;return o.length?null:n.createElement("div",{className:(0,i.$)(`${t}-placeholder`,a?.placeholder),style:{visibility:c?"visible":"hidden",...s?.placeholder}},r)}const _=n.createContext(null);function A(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function N(e){return["string","number"].includes(typeof e)}function j(e){let t;return e&&(N(e.title)?t=e.title.toString():N(e.label)&&(t=e.label.toString())),t}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}"undefined"!=typeof window&&window.document&&window.document.documentElement;const P=n.forwardRef(({inputProps:e},t)=>{const{prefixCls:r,searchValue:o,activeValue:a,displayValues:s,maxLength:c,mode:u,components:d}=C(),{triggerOpen:p,title:m,showSearch:h,classNames:f,styles:g}=l(),b=n.useContext(_),[v,x]=n.useState(!1),y="combobox"===u,$=s[0],w=n.useMemo(()=>y&&a&&!v&&p?a:h?o:"",[y,a,v,p,o,h]),[S,A,N,P]=n.useMemo(()=>{let e,t,r;if($&&b?.flattenOptions){const n=b.flattenOptions.find(e=>e.value===$.value);n?.data&&(e=n.data.className,t=n.data.style,r=j(n.data))}return $&&!r&&(r=j($)),void 0!==m&&(r=m),[e,t,r,!!e||!!t]},[$,b?.flattenOptions,m]);n.useEffect(()=>{y&&x(!1)},[y,a]);const z=$&&null!==$.label&&void 0!==$.label&&""!==String($.label).trim(),I=y&&d?.input?null:$?P?n.createElement("div",{className:(0,i.$)(`${r}-content-value`,S),style:{...w?{visibility:"hidden"}:{},...A},title:N},$.label):$.label:n.createElement(E,{show:!w});return n.createElement("div",{className:(0,i.$)(`${r}-content`,z&&`${r}-content-has-value`,w&&`${r}-content-has-search-value`,P&&`${r}-content-has-option-style`,f?.content),style:g?.content,title:P?void 0:N},I,n.createElement(k,M({ref:t},e,{value:w,maxLength:"combobox"===u?c:void 0,onChange:t=>{x(!0),e.onChange?.(t)}})))}),z=P;var I=r(3997);const R=e=>{const{className:t,style:r,customizeIcon:o,customizeIconProps:a,children:s,onMouseDown:l,onClick:c}=e,u="function"==typeof o?o(a):o;return n.createElement("span",{className:t,onMouseDown:e=>{e.preventDefault(),l?.(e)},style:{userSelect:"none",WebkitUserSelect:"none",...r},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==u?u:n.createElement("span",{className:(0,i.$)(t.split(/\s+/).map(e=>`${e}-icon`))},s))};function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},T.apply(this,arguments)}function O(e){return e.key??e.value}const B=e=>{e.preventDefault(),e.stopPropagation()},L=n.forwardRef(function({inputProps:e},t){const{prefixCls:r,displayValues:o,searchValue:a,mode:s,onSelectorRemove:c,removeIcon:u}=C(),{disabled:d,showSearch:p,triggerOpen:m,rawOpen:h,toggleOpen:f,autoClearSearchValue:g,tagRender:b,maxTagPlaceholder:v,maxTagTextLength:x,maxTagCount:y,classNames:$,styles:w}=l(),S=`${r}-selection-item`;let _=a;h||"multiple"!==s||!1===g||(_="");const A=p&&_||"",N=p&&!d,M=u??"×",P=v??(e=>`+ ${e.length} ...`),z=b,L=(e,t,r,o,a)=>n.createElement("span",{title:j(e),className:(0,i.$)(S,{[`${S}-disabled`]:r},$?.item),style:w?.item},n.createElement("span",{className:(0,i.$)(`${S}-content`,$?.itemContent),style:w?.itemContent},t),o&&n.createElement(R,{className:(0,i.$)(`${S}-remove`,$?.itemRemove),style:w?.itemRemove,onMouseDown:B,onClick:a,customizeIcon:M},"×")),H=(e,t,r,o,a,i,s)=>n.createElement("span",{onMouseDown:e=>{B(e),f(!m)}},z({label:t,value:e,index:s?.index,disabled:r,closable:o,onClose:a,isMaxTag:!!i}));return n.createElement(I.A,{prefixCls:`${r}-content`,className:$?.content,style:w?.content,prefix:!o.length&&!A&&n.createElement(E,null),data:o,renderItem:(e,t)=>{const{disabled:r,label:n,value:o}=e,a=!d&&!r;let i=n;if("number"==typeof x&&("string"==typeof n||"number"==typeof n)){const e=String(i);e.length>x&&(i=`${e.slice(0,x)}...`)}const s=t=>{t&&t.stopPropagation(),(e=>{c?.(e)})(e)};return"function"==typeof z?H(o,i,r,a,s,void 0,t):L(e,i,r,a,s)},renderRest:e=>{if(!o.length)return null;const t="function"==typeof P?P(e):P;return"function"==typeof z?H(void 0,t,!1,!1,void 0,!0):L({title:t},t,!1)},suffix:n.createElement(k,T({ref:t,disabled:d,readOnly:!N},e,{value:A||"",syncWidth:!0})),itemKey:O,maxCount:y})}),H=n.forwardRef(function(e,t){const{multiple:r,onInputKeyDown:o,tabIndex:i}=C(),s=l(),{showSearch:c}=s,u={...(0,a.KE)(s,{aria:!0}),onKeyDown:o,readOnly:!c,tabIndex:i};return r?n.createElement(L,{ref:t,inputProps:u}):n.createElement(z,{ref:t,inputProps:u})});function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D.apply(this,arguments)}const F=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],W=n.forwardRef(function(e,t){const{prefixCls:r,className:o,style:s,prefix:c,suffix:u,clearIcon:d,children:p,multiple:m,displayValues:h,placeholder:f,mode:g,searchValue:b,onSearch:v,onSearchSubmit:x,onInputBlur:$,maxLength:C,autoFocus:S,onMouseDown:k,onClearMouseDown:E,onInputKeyDown:_,onSelectorRemove:A,tokenWithEnter:N,components:j,...M}=e,{triggerOpen:P,toggleOpen:z,showSearch:I,disabled:R,loading:T,classNames:O,styles:B}=l(),L=n.useRef(null),W=n.useRef(null),V=(0,a._q)(e=>{const{which:t}=e,r=W.current instanceof HTMLTextAreaElement;var n;(r||!P||t!==a.DD.UP&&t!==a.DD.DOWN||e.preventDefault(),_&&_(e),r&&!P&&~[a.DD.UP,a.DD.DOWN,a.DD.LEFT,a.DD.RIGHT].indexOf(t))||(e.ctrlKey||e.altKey||e.metaKey||!(n=t)||[a.DD.ESC,a.DD.SHIFT,a.DD.BACKSPACE,a.DD.TAB,a.DD.WIN_KEY,a.DD.ALT,a.DD.META,a.DD.WIN_KEY_RIGHT,a.DD.CTRL,a.DD.SEMICOLON,a.DD.EQUALS,a.DD.CAPS_LOCK,a.DD.CONTEXT_MENU,a.DD.UP,a.DD.LEFT,a.DD.RIGHT,a.DD.F1,a.DD.F2,a.DD.F3,a.DD.F4,a.DD.F5,a.DD.F6,a.DD.F7,a.DD.F8,a.DD.F9,a.DD.F10,a.DD.F11,a.DD.F12].includes(n)||z(!0))});n.useImperativeHandle(t,()=>({focus:e=>{(W.current||L.current).focus?.(e)},blur:()=>{(W.current||L.current).blur?.()},nativeElement:(0,a.rb)(L.current)}));const q=(0,a._q)(e=>{if(!R){const t=(0,a.rb)(W.current);e.nativeEvent._ori_target=t;const r=t===e.target||t?.contains(e.target);t&&!r&&e.preventDefault();const n=P&&!m&&("combobox"===g||I)||P&&m&&r;e.nativeEvent._select_lazy?P&&!m&&z(!1):(W.current?.focus(),n||z())}k?.(e)}),{root:X}=j,G=(0,a.cJ)(M,F),K=(0,a.KE)(G,{aria:!0}),U=Object.keys(K),Y={...e,onInputKeyDown:V};if(X){const e=X.props||{},t={...e,...G};return Object.keys(e).forEach(r=>{const n=e[r],o=G[r];"function"==typeof n&&"function"==typeof o&&(t[r]=(...e)=>{o(...e),n(...e)})}),n.isValidElement(X)?n.cloneElement(X,{...t,ref:(0,a.K4)(X.ref,L)}):n.createElement(X,D({},t,{ref:L}))}return n.createElement(w.Provider,{value:Y},n.createElement("div",D({},(0,a.cJ)(G,U),{ref:L,className:o,style:s,onMouseDown:q}),n.createElement(y,{className:(0,i.$)(`${r}-prefix`,O?.prefix),style:B?.prefix},c),n.createElement(H,{ref:W}),n.createElement(y,{className:(0,i.$)(`${r}-suffix`,{[`${r}-suffix-loading`]:T},O?.suffix),style:B?.suffix},u),d&&n.createElement(y,{className:(0,i.$)(`${r}-clear`,O?.clear),style:B?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,E?.(e)}},d),p))});function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},V.apply(this,arguments)}const q=e=>"tags"===e||"multiple"===e,X=n.forwardRef((e,t)=>{const{id:r,prefixCls:o,className:l,styles:u,classNames:d,showSearch:p,tagRender:h,showScrollBar:g="optional",direction:b,omitDomProps:y,displayValues:$,onDisplayValuesChange:C,emptyOptions:w,notFoundContent:S="Not Found",onClear:k,maxCount:E,placeholder:_,mode:A,disabled:N,loading:j,getInputElement:M,getRawInputElement:P,open:z,defaultOpen:I,onPopupVisibleChange:R,activeValue:T,onActiveValueChange:O,activeDescendantId:B,searchValue:L,autoClearSearchValue:H,onSearch:D,onSearchSplit:F,tokenSeparators:X,allowClear:G,prefix:K,suffix:U,suffixIcon:Y,clearIcon:Q,OptionList:Z,animation:J,transitionName:ee,popupStyle:te,popupClassName:re,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:ae,placement:ie,builtinPlacements:se,getPopupContainer:le,showAction:ce=[],onFocus:ue,onBlur:de,onKeyUp:pe,onKeyDown:me,onMouseDown:he,components:fe,...ge}=e,be=q(A),ve=n.useRef(null),xe=n.useRef(null),ye=n.useRef(null),[$e,Ce]=n.useState(!1);n.useImperativeHandle(t,()=>({focus:ve.current?.focus,blur:ve.current?.blur,scrollTo:e=>ye.current?.scrollTo(e),nativeElement:(0,a.rb)(ve.current)}));const we=function(e,t,r){return n.useMemo(()=>{let{root:n,input:o}=e||{};return r&&(n=r()),t&&(o=t()),{root:n,input:o}},[e,t,r])}(fe,M,P),Se=n.useMemo(()=>{if("combobox"!==A)return L;const e=$[0]?.value;return"string"==typeof e||"number"==typeof e?String(e):""},[L,A,$]),ke="combobox"===A&&"function"==typeof M&&M()||null,Ee=!S&&w,[_e,Ae,Ne,je]=function(e,t,r){const[o,i]=(0,n.useState)(!1);(0,n.useEffect)(()=>{i(!0)},[]);const[s,l]=(0,a.PW)(e,t),[c,u]=(0,n.useState)(!1),d=!!o&&s,p=(g=d,!N&&!Ee&&g),m=(0,n.useRef)(0),h=(0,a._q)(e=>{r&&p!==e&&r(e),l(e)}),f=(0,a._q)((e,t={})=>{const{cancelFun:r}=t;m.current+=1;const n=m.current,o="boolean"==typeof e?e:!p;function a(){n!==m.current||r?.()||(h(o),u(!1))}u(!o),o?a():x(()=>{a()})});var g;return[d,p,f,c]}(I||!1,z,R),Me=n.useMemo(()=>"function"==typeof X||(X||[]).some(e=>["\n","\r\n"].includes(e)),[X]),Pe=n.useMemo(()=>"function"==typeof X?(e,t)=>{const r=X(e),n=Array.isArray(r)&&1===r.length&&r[0]===e;return Array.isArray(r)&&r.length&&!n?void 0!==t?r.slice(0,t):r:null}:(e,t)=>((e,t,r)=>{if(!t||!t.length)return null;let n=!1;const o=(e,[t,...r])=>{if(!t)return[e];const a=e.split(t);return n=n||a.length>1,a.reduce((e,t)=>[...e,...o(t,r)],[]).filter(Boolean)},a=o(e,t);return n?void 0!==r?a.slice(0,r):a:null})(e,X,t),[X]),ze=(e,t,r)=>{if(be&&f(E)&&$.length>=E)return;let n=!0,o=e;O?.(null);const a=f(E)?E-$.length:void 0,i=r?null:Pe(e,a);return"combobox"!==A&&i&&(o="",F?.(i),Ne(!1),n=!1),D&&Se!==o&&D(o,{source:t?"typing":"effect"}),e&&t&&n&&Ne(!0),n};n.useEffect(()=>{_e||be||"combobox"===A||ze("",!1,!1)},[_e]),n.useEffect(()=>{N&&(Ne(!1),Ce(!1))},[N,Ae]);const[Ie,Re]=function(e=250){const t=n.useRef(null),r=n.useRef(null);return n.useEffect(()=>()=>{window.clearTimeout(r.current)},[]),[()=>t.current,function(n){(n||null===t.current)&&(t.current=n),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{t.current=null},e)}]}(),Te=n.useRef(!1),Oe=(0,a._q)(e=>{const t=$.filter(t=>t!==e);C(t,{type:"remove",values:[e]})}),Be=()=>[(0,a.rb)(ve.current),xe.current?.getPopupElement()];!function(e,t,r,o){const i=(0,a._q)(n=>{if(o)return;let a=n.target;a.shadowRoot&&n.composed&&(a=n.composedPath()[0]||a),n._ori_target&&(a=n._ori_target),t&&!c(e(),a)&&r(!1)});n.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}(Be,Ae,Ne,!!we.root);const Le=n.useRef(!1),He=()=>{Ae&&!Le.current&&Ne(!1,{cancelFun:()=>c(Be(),document.activeElement)})},De=(e,...t)=>{const{target:r}=e,n=xe.current?.getPopupElement();n?.contains(r)&&Ne&&Ne(!0),he?.(e,...t),Le.current=!0,x(()=>{Le.current=!1})},[,Fe]=n.useState({});let We;we.root&&(We=e=>{Ne(e)});const Ve=n.useMemo(()=>({...e,notFoundContent:S,open:Ae,triggerOpen:Ae,rawOpen:_e,id:r,showSearch:p,multiple:be,toggleOpen:Ne,showScrollBar:g,styles:u,classNames:d,lockOptions:je}),[e,S,Ne,r,p,be,Ae,_e,g,u,d,je]),qe=n.useMemo(()=>{const e=U??Y;return"function"==typeof e?e({searchValue:Se,open:Ae,focused:$e,showSearch:p,loading:j}):e},[U,Y,Se,Ae,$e,p,j]),{allowClear:Xe,clearIcon:Ge}=((e,t,r,o,a=!1,i,s)=>{const l=(0,n.useMemo)(()=>"boolean"==typeof r?{allowClear:r}:r&&"object"==typeof r?r:{allowClear:!1},[r]);return(0,n.useMemo)(()=>{const e=!a&&!1!==l.allowClear&&(t.length||i)&&!("combobox"===s&&""===i);return{allowClear:e,clearIcon:e?l.clearIcon||o||"×":null}},[l,o,a,t.length,i,s])})(0,$,G,Q,N,Se,A),Ke=n.createElement(Z,{ref:ye}),Ue=(0,i.$)(o,l,{[`${o}-focused`]:$e,[`${o}-multiple`]:be,[`${o}-single`]:!be,[`${o}-allow-clear`]:Xe,[`${o}-show-arrow`]:null!=qe,[`${o}-disabled`]:N,[`${o}-loading`]:j,[`${o}-open`]:Ae,[`${o}-customize-input`]:ke,[`${o}-show-search`]:p});let Ye=n.createElement(W,V({},ge,{ref:ve,prefixCls:o,className:Ue,focused:$e,prefix:K,suffix:qe,clearIcon:Ge,multiple:be,mode:A,displayValues:$,placeholder:_,searchValue:Se,activeValue:T,onSearch:ze,onSearchSubmit:e=>{e&&e.trim()&&D(e,{source:"submit"})},onInputBlur:()=>{Te.current=!1},onFocus:e=>{Ce(!0),N||(ce.includes("focus")&&Ne(!0),ue?.(e))},onBlur:e=>{Ce(!1),Se&&("tags"===A?D(Se,{source:"submit"}):"multiple"===A&&D("",{source:"blur"})),He(),N||de?.(e)},onClearMouseDown:()=>{k?.(),ve.current?.focus(),C([],{type:"clear",values:$}),ze("",!1,!1)},onKeyDown:e=>{const t=Ie(),{key:r}=e,n="Enter"===r,o=" "===r;if(n||o){const t="combobox"===A;(o&&!(t||p)||n&&!t)&&e.preventDefault(),Ae||Ne(!0)}if(Re(!!Se),"Backspace"===r&&!t&&be&&!Se&&$.length){const e=[...$];let t=null;for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(!n.disabled){e.splice(r,1),t=n;break}}t&&C(e,{type:"remove",values:[t]})}!Ae||n&&Te.current||o||(n&&(Te.current=!0),ye.current?.onKeyDown(e)),me?.(e)},onKeyUp:(e,...t)=>{Ae&&ye.current?.onKeyUp(e,...t),"Enter"===e.key&&(Te.current=!1),pe?.(e,...t)},onSelectorRemove:Oe,tokenWithEnter:Me,onMouseDown:De,components:we}));return Ye=n.createElement(m,{ref:xe,disabled:N,prefixCls:o,visible:Ae,popupElement:Ke,animation:J,transitionName:ee,popupStyle:te,popupClassName:re,direction:b,popupMatchSelectWidth:ne,popupRender:oe,popupAlign:ae,placement:ie,builtinPlacements:se,getPopupContainer:le,empty:w,onPopupVisibleChange:We,onPopupMouseEnter:function(){Fe({})},onPopupMouseDown:De,onPopupBlur:He},Ye),n.createElement(s.Provider,{value:Ve},n.createElement(v,{visible:$e&&!Ae,values:$}),Ye)}),G=X,K=()=>null;K.isSelectOptGroup=!0;const U=K,Y=()=>null;Y.isSelectOption=!0;const Q=Y;var Z=r(73),J=r(5795);function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ee.apply(this,arguments)}const te=n.forwardRef(({height:e,offsetY:t,offsetX:r,children:o,prefixCls:a,onInnerResize:s,innerProps:l,rtl:c,extra:u},d)=>{let p={},m={display:"flex",flexDirection:"column"};return void 0!==t&&(p={height:e,position:"relative",overflow:"hidden"},m={...m,transform:`translateY(${t}px)`,[c?"marginRight":"marginLeft"]:-r,position:"absolute",left:0,right:0,top:0}),n.createElement("div",{style:p},n.createElement(Z.Ay,{onResize:({offsetHeight:e})=>{e&&s&&s()}},n.createElement("div",ee({style:m,className:(0,i.$)({[`${a}-holder-inner`]:a}),ref:d},l),o,u)))});te.displayName="Filler";const re=te;function ne({children:e,setRef:t}){const r=n.useCallback(e=>{t(e)},[t]);return n.cloneElement(e,{ref:r})}const oe="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),ae=(e,t,r,o)=>{const a=(0,n.useRef)(!1),i=(0,n.useRef)(null),s=(0,n.useRef)({top:e,bottom:t,left:r,right:o});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=o,(e,t,r=!1)=>{const n=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return r&&n?(clearTimeout(i.current),a.current=!1):n&&!a.current||(clearTimeout(i.current),a.current=!0,i.current=setTimeout(()=>{a.current=!1},50)),!a.current&&n}};r.dn(ae);const ie=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function se(e){const t=parseFloat(e);return isNaN(t)?0:t}const le=14/15;function ce(e){return Math.floor(e**.5)}function ue(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function de(e,t,r){if(t<=0||r<=0)return 0;const n=Math.max(Math.min(e,r),0)/r;let o=Math.ceil(n*t);return o=Math.max(o,0),o=Math.min(o,t),o}const pe=n.forwardRef((e,t)=>{const{prefixCls:r,rtl:o,scrollOffset:s,scrollRange:l,onStartMove:c,onStopMove:u,onScroll:d,horizontal:p,spinSize:m,containerSize:h,style:f,thumbStyle:g,showScrollBar:b}=e,[v,x]=n.useState(!1),[y,$]=n.useState(null),[C,w]=n.useState(null),S=!o,k=n.useRef(null),E=n.useRef(null),[_,A]=n.useState(b),N=n.useRef(void 0),j=()=>{!0!==b&&!1!==b&&(clearTimeout(N.current),A(!0),N.current=setTimeout(()=>{A(!1)},3e3))},M=l-h||0,P=h-m||0,z=n.useMemo(()=>0===s||0===M?0:s/M*P,[s,M,P]),I=n.useRef({top:z,dragging:v,pageY:y,startTop:C});I.current={top:z,dragging:v,pageY:y,startTop:C};const R=(0,a._q)(e=>{x(!0),$(ue(e,p)),w(I.current.top),c(),e.stopPropagation(),e.preventDefault()});n.useEffect(()=>{const e=e=>{e.preventDefault()},t=k.current,r=E.current;return t.addEventListener("touchstart",e,{passive:!1}),r.addEventListener("touchstart",R,{passive:!1}),()=>{t.removeEventListener("touchstart",e),r.removeEventListener("touchstart",R)}},[R]);const T=n.useRef(void 0);T.current=M;const O=n.useRef(void 0);O.current=P,n.useEffect(()=>{if(v){let e;const t=t=>{const{dragging:r,pageY:n,startTop:o}=I.current;a.er.cancel(e);const i=k.current.getBoundingClientRect(),s=h/(p?i.width:i.height);if(r){const r=(ue(t,p)-n)*s;let i=o;!S&&p?i-=r:i+=r;const l=de(i,T.current,O.current);e=(0,a.er)(()=>{d(l,p)})}},r=()=>{x(!1),u()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",r,{passive:!0}),window.addEventListener("touchend",r,{passive:!0}),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",r),window.removeEventListener("touchend",r),a.er.cancel(e)}}},[v]),n.useEffect(()=>(j(),()=>{clearTimeout(N.current)}),[s]),n.useImperativeHandle(t,()=>({delayHidden:j}));const B=`${r}-scrollbar`,L={position:"absolute",visibility:_?null:"hidden"},H={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(L,{height:8,left:0,right:0,bottom:0}),Object.assign(H,{height:"100%",width:m,[S?"left":"right"]:z})):(Object.assign(L,{width:8,top:0,bottom:0,[S?"right":"left"]:0}),Object.assign(H,{width:"100%",height:m,top:z})),n.createElement("div",{ref:k,className:(0,i.$)(B,{[`${B}-horizontal`]:p,[`${B}-vertical`]:!p,[`${B}-visible`]:_}),style:{...L,...f},onMouseDown:e=>{var t;e.stopPropagation(),e.preventDefault(),0!==e.button||(t=e.target)&&E.current?.contains(t)||(e=>{const t=k.current;if(!t)return;const r=t.getBoundingClientRect(),n=ue(e,p);let o;if(Number.isFinite(n)){if(p){const e=S?r.left:r.right;if(!Number.isFinite(e))return;o=(S?n-e:e-n)-m/2}else{if(!Number.isFinite(r.top))return;o=n-r.top-m/2}d(de(o,M,P),p)}})(e)},onMouseMove:j},n.createElement("div",{ref:E,className:(0,i.$)(`${B}-thumb`,{[`${B}-thumb-moving`]:v}),style:{...H,...g},onMouseDown:R}))}),me=pe;function he(e=0,t=0){let r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,20),Math.floor(r)}function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fe.apply(this,arguments)}const ge=[],be={overflowY:"auto",overflowAnchor:"none"};function ve(e,t){const{prefixCls:r="rc-virtual-list",className:o,height:s,itemHeight:l,fullHeight:c=!0,style:u,data:d,children:p,itemKey:m,virtual:h,direction:f,scrollWidth:g,component:b="div",onScroll:v,onVirtualScroll:x,onVisibleChange:y,innerProps:$,extraRender:C,styles:w,showScrollBar:S="optional",...k}=e,E=n.useCallback(e=>"function"==typeof m?m(e):e?.[m],[m]),[_,A,N,j]=function(e){const[t,r]=n.useState(0),o=(0,n.useRef)(new Map),a=(0,n.useRef)(new ie),i=(0,n.useRef)(0);function s(){i.current+=1}function l(e=!1){s();const t=()=>{let e=!1;o.current.forEach((t,r)=>{if(t&&t.offsetParent){const{offsetHeight:n}=t,{marginTop:o,marginBottom:i}=getComputedStyle(t),s=n+se(o)+se(i);a.current.get(r)!==s&&(a.current.set(r,s),e=!0)}}),e&&r(e=>e+1)};if(e)t();else{i.current+=1;const e=i.current;Promise.resolve().then(()=>{e===i.current&&t()})}}return(0,n.useEffect)(()=>s,[]),[function(t,r){const n=e(t);o.current.get(n);r?(o.current.set(n,r),l()):o.current.delete(n)},l,a.current,t]}(E),M=!(!1===h||!s||!l),P=n.useMemo(()=>Object.values(N.maps).reduce((e,t)=>e+t,0),[N.id,N.maps]),z=M&&d&&(Math.max(l*d.length,P)>s||!!g),I="rtl"===f,R=(0,i.$)(r,{[`${r}-rtl`]:I},o),T=d||ge,O=(0,n.useRef)(null),B=(0,n.useRef)(null),L=(0,n.useRef)(null),[H,D]=(0,n.useState)(0),[F,W]=(0,n.useState)(0),[V,q]=(0,n.useState)(!1),X=()=>{q(!0)},G=()=>{q(!1)},K={getKey:E};function U(e){D(t=>{let r;r="function"==typeof e?e(t):e;const n=function(e){let t=e;return Number.isNaN(Ee.current)||(t=Math.min(t,Ee.current)),t=Math.max(t,0),t}(r);return O.current.scrollTop=n,n})}const Y=(0,n.useRef)({start:0,end:T.length}),Q=(0,n.useRef)(void 0),[ee]=function(e,t,r){const[o,a]=n.useState(e),[i,s]=n.useState(null);return n.useEffect(()=>{const n=function(e,t,r){const n=e.length,o=t.length;let a,i;if(0===n&&0===o)return null;n<o?(a=e,i=t):(a=t,i=e);const s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?r(e):s}let c=null,u=1!==Math.abs(n-o);for(let e=0;e<i.length;e+=1){const t=l(a[e]);if(t!==l(i[e])){c=e,u=u||t!==l(i[e+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==n?.index&&(r?.(n.index),s(e[n.index])),a(e)},[e]),[i]}(T,E);Q.current=ee;const{scrollHeight:te,start:de,end:pe,offset:ve}=n.useMemo(()=>{if(!M)return{scrollHeight:void 0,start:0,end:T.length-1,offset:void 0};if(!z)return{scrollHeight:B.current?.offsetHeight||0,start:0,end:T.length-1,offset:void 0};let e,t,r,n=0;const o=T.length;for(let a=0;a<o;a+=1){const o=T[a],i=E(o),c=N.get(i),u=n+(void 0===c?l:c);u>=H&&void 0===e&&(e=a,t=n),u>H+s&&void 0===r&&(r=a),n=u}return void 0===e&&(e=0,t=0,r=Math.ceil(s/l)),void 0===r&&(r=T.length-1),r=Math.min(r+1,T.length-1),{scrollHeight:n,start:e,end:r,offset:t}},[z,M,H,T,j,s]);Y.current.start=de,Y.current.end=pe,n.useLayoutEffect(()=>{const e=N.getRecord();if(1===e.size){const t=Array.from(e.keys())[0],r=e.get(t),n=T[de];if(n&&void 0===r&&E(n)===t){const e=N.get(t)-l;U(t=>t+e)}}N.resetRecord()},[te]);const[xe,ye]=n.useState({width:0,height:s}),$e=(0,n.useRef)(null),Ce=(0,n.useRef)(null),we=n.useMemo(()=>he(xe.width,g),[xe.width,g]),Se=n.useMemo(()=>he(xe.height,te),[xe.height,te]),ke=te-s,Ee=(0,n.useRef)(ke);Ee.current=ke;const _e=H<=0,Ae=H>=ke,Ne=F<=0,je=F>=g,Me=ae(_e,Ae,Ne,je),Pe=()=>({x:I?-F:F,y:H}),ze=(0,n.useRef)(Pe()),Ie=(0,a._q)(e=>{if(x){const t={...Pe(),...e};ze.current.x===t.x&&ze.current.y===t.y||(x(t),ze.current=t)}});function Re(e,t){const r=e;t?((0,J.flushSync)(()=>{W(r)}),Ie()):U(r)}const Te=e=>{let t=e;const r=g?g-xe.width:0;return t=Math.max(t,0),t=Math.min(t,r),t},Oe=(0,a._q)((e,t)=>{t?((0,J.flushSync)(()=>{W(t=>Te(t+(I?-e:e)))}),Ie()):U(t=>t+e)}),[Be,Le]=function(e,t,r,o,i,s,l){const c=(0,n.useRef)(0),u=(0,n.useRef)(null),d=(0,n.useRef)(null),p=(0,n.useRef)(!1),m=ae(t,r,o,i),h=(0,n.useRef)(null),f=(0,n.useRef)(null);return[function(t){if(!e)return;a.er.cancel(f.current),f.current=(0,a.er)(()=>{h.current=null},2);const{deltaX:r,deltaY:n,shiftKey:o}=t;let i=r,g=n;("sx"===h.current||!h.current&&o&&n&&!r)&&(i=n,g=0,h.current="sx");const b=Math.abs(i),v=Math.abs(g);null===h.current&&(h.current=s&&b>v?"x":"y"),"y"===h.current?function(e,t){if(a.er.cancel(u.current),m(!1,t))return;const r=e;r._virtualHandled||(r._virtualHandled=!0,c.current+=t,d.current=t,oe||r.preventDefault(),u.current=(0,a.er)(()=>{const e=p.current?10:1;l(c.current*e,!1),c.current=0}))}(t,g):function(e,t){l(t,!0),oe||e.preventDefault()}(t,i)},function(t){e&&(p.current=t.detail===d.current)}]}(M,_e,Ae,Ne,je,!!g,Oe);!function(e,t,r){const o=(0,n.useRef)(!1),i=(0,n.useRef)(0),s=(0,n.useRef)(0),l=(0,n.useRef)(null),c=(0,n.useRef)(null);let u;const d=e=>{if(o.current){const t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY);let o=i.current-t,a=s.current-n;const l=Math.abs(o)>Math.abs(a);l?i.current=t:s.current=n;const u=r(l,l?o:a,!1,e);u&&e.preventDefault(),clearInterval(c.current),u&&(c.current=setInterval(()=>{l?o*=le:a*=le;const e=Math.floor(l?o:a);(!r(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)},16))}},p=()=>{o.current=!1,u()},m=e=>{u(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),s.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",d,{passive:!1}),l.current.addEventListener("touchend",p,{passive:!0}))};u=()=>{l.current&&(l.current.removeEventListener("touchmove",d),l.current.removeEventListener("touchend",p))},(0,a.Nf)(()=>(e&&t.current.addEventListener("touchstart",m,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",m),u(),clearInterval(c.current)}),[e])}(M,O,(e,t,r,n)=>{const o=n;return!(Me(e,t,r)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),Be({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),0))}),function(e,t){n.useEffect(()=>{const r=t.current;if(e&&r){let e,t,n=!1;const o=()=>{a.er.cancel(e)},i=()=>{o(),e=(0,a.er)(()=>{(e=>{U(t=>t+e)})(t),i()})},s=()=>{n=!1,o()},l=e=>{if(e.target.draggable||0!==e.button)return;const t=e;t._virtualHandled||(t._virtualHandled=!0,n=!0)},c=e=>{if(n){const n=ue(e,!1),{top:a,bottom:s}=r.getBoundingClientRect();n<=a?(t=-ce(a-n),i()):n>=s?(t=ce(n-s),i()):o()}};return r.addEventListener("mousedown",l),r.ownerDocument.addEventListener("mouseup",s),r.ownerDocument.addEventListener("mousemove",c),r.ownerDocument.addEventListener("dragend",s),()=>{r.removeEventListener("mousedown",l),r.ownerDocument.removeEventListener("mouseup",s),r.ownerDocument.removeEventListener("mousemove",c),r.ownerDocument.removeEventListener("dragend",s),o()}}},[e])}(z,O),(0,a.Nf)(()=>{function e(e){const t=_e&&e.detail<0,r=Ae&&e.detail>0;!M||t||r||e.preventDefault()}const t=O.current;return t.addEventListener("wheel",Be,{passive:!1}),t.addEventListener("DOMMouseScroll",Le,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),()=>{t.removeEventListener("wheel",Be),t.removeEventListener("DOMMouseScroll",Le),t.removeEventListener("MozMousePixelScroll",e)}},[M,_e,Ae]),(0,a.Nf)(()=>{if(g){const e=Te(F);W(e),Ie({x:e})}},[xe.width,g]);const He=()=>{$e.current?.delayHidden(),Ce.current?.delayHidden()},De=function(e,t,r,o){const[a,i]=n.useMemo(()=>[new Map,[]],[e,r.id,o]);return(n,s=n)=>{let l=a.get(n),c=a.get(s);if(void 0===l||void 0===c){const u=e.length;for(let d=i.length;d<u;d+=1){const u=e[d],p=t(u);a.set(p,d);const m=r.get(p)??o;if(i[d]=(i[d-1]||0)+m,p===n&&(l=d),p===s&&(c=d),void 0!==l&&void 0!==c)break}}return{top:i[l-1]||0,bottom:i[c]}}}(T,E,N,l),Fe=function(e,t,r,o,i,s,l,c,u){const d=n.useRef(void 0),[p,m]=n.useState(null);return(0,a.Nf)(()=>{if(p&&p.times<10){if(!e.current)return void m(e=>({...e}));l();const{targetAlign:n,originAlign:a,index:u,offset:d}=p,h=function(e,t){const r="function"==typeof e?e(t):e;return Number.isFinite(r)?r:0}(d,{getSize:s}),f=e.current.clientHeight;let g=!1,b=n,v=null;if(f){const s=n||a;let l=0,d=0,m=0;const x=Math.min(t.length-1,u);for(let e=0;e<=x;e+=1){const n=i(t[e]);d=l;const a=r.get(n);m=d+(void 0===a?o:a),l=m}let y="top"===s?h:f-h;for(let e=x;e>=0;e-=1){const n=i(t[e]),o=r.get(n);if(void 0===o){g=!0;break}if(y-=o,y<=0)break}switch(s){case"top":v=d-h;break;case"bottom":v=m-f+h;break;default:{const{scrollTop:t}=e.current;d<t?b="top":m>t+f&&(b="bottom")}}null!==v&&c(v),v!==p.lastTop&&(g=!0)}g&&m({...p,times:p.times+1,targetAlign:b,lastTop:v})}},[p,e.current]),e=>{if(null!=e){if(a.er.cancel(d.current),"number"==typeof e)c(e);else if(e&&"object"==typeof e){let r;const{align:n}=e;"index"in e?({index:r}=e):r=t.findIndex(t=>i(t)===e.key);const{offset:o=0}=e;m({times:0,index:r,offset:o,originAlign:n})}}else u()}}(O,T,N,l,E,De,()=>A(!0),U,He);n.useImperativeHandle(t,()=>({nativeElement:L.current,getScrollInfo:Pe,scrollTo:e=>{var t;(t=e)&&"object"==typeof t&&("left"in t||"top"in t)?(void 0!==e.left&&W(Te(e.left)),Fe(e.top)):Fe(e)}})),(0,a.Nf)(()=>{if(y){const e=T.slice(de,pe+1);y(e,T)}},[de,pe,T]);const We=C?.({start:de,end:pe,virtual:z,offsetX:F,scrollTop:H,offsetY:ve,rtl:I,getSize:De}),Ve=function(e,t,r,o,a,i,s,{getKey:l}){return e.slice(t,r+1).map((e,r)=>{const c=s(e,t+r,{style:{width:o},offsetX:a}),u=l(e);return n.createElement(ne,{key:u,setRef:t=>i(e,t)},c)})}(T,de,pe,g,F,_,p,K);let qe=null;s&&(qe={[c?"height":"maxHeight"]:s,...be},M&&(qe.overflowY="hidden",g&&(qe.overflowX="hidden"),V&&(qe.pointerEvents="none")));const Xe={};return I&&(Xe.dir="rtl"),n.createElement("div",fe({ref:L,style:{...u,position:"relative"},className:R},Xe,k),n.createElement(Z.Ay,{onResize:e=>{ye({width:e.offsetWidth,height:e.offsetHeight})}},n.createElement(b,{className:`${r}-holder`,style:qe,ref:O,onScroll:function(e){const{scrollTop:t}=e.currentTarget;t!==H&&U(t),v?.(e),Ie()},onMouseEnter:He},n.createElement(re,{prefixCls:r,height:te,offsetX:F,offsetY:ve,scrollWidth:g,onInnerResize:A,ref:B,innerProps:$,rtl:I,extra:We},Ve))),z&&te>s&&n.createElement(me,{ref:$e,prefixCls:r,scrollOffset:H,scrollRange:te,rtl:I,onScroll:Re,onStartMove:X,onStopMove:G,spinSize:Se,containerSize:xe.height,style:w?.verticalScrollBar,thumbStyle:w?.verticalScrollBarThumb,showScrollBar:S}),z&&g>xe.width&&n.createElement(me,{ref:Ce,prefixCls:r,scrollOffset:F,scrollRange:g,rtl:I,onScroll:Re,onStartMove:X,onStopMove:G,spinSize:we,containerSize:xe.width,horizontal:!0,style:w?.horizontalScrollBar,thumbStyle:w?.horizontalScrollBarThumb,showScrollBar:S}))}const xe=n.forwardRef(ve);xe.displayName="List";const ye=xe;n.forwardRef((e,t)=>ve({...e,virtual:!1},t)).displayName="List";const $e=ye;function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ce.apply(this,arguments)}function we(e){return"string"==typeof e||"number"==typeof e}const Se=(e,t)=>{const{prefixCls:r,id:o,open:s,multiple:c,mode:u,searchValue:d,toggleOpen:p,notFoundContent:m,onPopupScroll:h,showScrollBar:g,lockOptions:b}=l(),{maxCount:v,flattenOptions:x,onActiveValue:y,defaultActiveFirstOption:$,onSelect:C,menuItemSelectedIcon:w,rawValues:S,fieldNames:k,virtual:E,direction:A,listHeight:N,listItemHeight:j,optionRender:M,classNames:P,styles:z}=n.useContext(_),I=`${r}-item`,T=(0,a.Kr)(()=>x,[s,b],(e,t)=>t[0]&&!t[1]),O=n.useRef(null),B=n.useMemo(()=>c&&f(v)&&S?.size>=v,[c,v,S?.size]),L=e=>{e.preventDefault()},H=e=>{O.current?.scrollTo("number"==typeof e?{index:e}:e)},D=n.useCallback(e=>"combobox"!==u&&S.has(e),[u,[...S].toString(),S.size]),F=(e,t=1)=>{const r=T.length;for(let n=0;n<r;n+=1){const o=(e+n*t+r)%r,{group:a,data:i}=T[o]||{};if(!a&&!i?.disabled&&(D(i.value)||!B))return o}return-1},[W,V]=n.useState(()=>F(0)),q=(e,t=!1)=>{V(e);const r={source:t?"keyboard":"mouse"},n=T[e];n?y(n.value,e,r):y(null,-1,r)};(0,n.useEffect)(()=>{q(!1!==$?F(0):-1)},[T.length,d]);const X=n.useCallback(e=>"combobox"===u?String(e).toLowerCase()===d.toLowerCase():S.has(e),[u,d,[...S].toString(),S.size]);(0,n.useEffect)(()=>{let e;if(!c&&s&&1===S.size){const t=Array.from(S)[0],r=T.findIndex(({data:e})=>d?String(e.value).startsWith(d):e.value===t);-1!==r&&(q(r),e=setTimeout(()=>{H(r)}))}return s&&O.current?.scrollTo(void 0),()=>clearTimeout(e)},[s,d]);const G=e=>{void 0!==e&&C(e,{selected:!S.has(e)}),c||p(!1)};if(n.useImperativeHandle(t,()=>({onKeyDown:e=>{const{which:t,ctrlKey:r}=e;switch(t){case a.DD.N:case a.DD.P:case a.DD.UP:case a.DD.DOWN:{let e=0;if(t===a.DD.UP?e=-1:t===a.DD.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&r&&(t===a.DD.N?e=1:t===a.DD.P&&(e=-1)),0!==e){const t=F(W+e,e);H(t),q(t,!0)}break}case a.DD.TAB:case a.DD.ENTER:{const t=T[W];if(!t||t.data.disabled)return G(void 0);!B||S.has(t.value)?G(t.value):G(void 0),s&&e.preventDefault();break}case a.DD.ESC:p(!1),s&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{H(e)}})),0===T.length)return n.createElement("div",{role:"listbox",id:`${o}_list`,className:`${I}-empty`,onMouseDown:L},m);const K=Object.keys(k).map(e=>k[e]),U=e=>e.label;function Y(e,t){const{group:r}=e;return{role:r?"presentation":"option",id:`${o}_list_${t}`}}const Q=e=>{const t=T[e];if(!t)return null;const r=t.data||{},{value:o,disabled:i}=r,{group:s}=t,l=(0,a.KE)(r,!0),c=U(t);return t?n.createElement("div",Ce({"aria-label":"string"!=typeof c||s?null:c},l,{key:e},Y(t,e),{"aria-selected":X(o),"aria-disabled":i}),o):null},Z={role:"listbox",id:`${o}_list`};return n.createElement(n.Fragment,null,E&&n.createElement("div",Ce({},Z,{style:{height:0,width:0,overflow:"hidden"}}),Q(W-1),Q(W),Q(W+1)),n.createElement($e,{itemKey:"key",ref:O,data:T,height:N,itemHeight:j,fullHeight:!1,onMouseDown:L,onScroll:h,virtual:E,direction:A,innerProps:E?null:Z,showScrollBar:g,className:P?.popup?.list,style:z?.popup?.list},(e,t)=>{const{group:r,groupOption:o,data:s,label:l,value:c}=e,{key:u}=s;if(r){const e=s.title??(we(l)?l.toString():void 0);return n.createElement("div",{className:(0,i.$)(I,`${I}-group`,s.className),title:e},void 0!==l?l:u)}const{disabled:d,title:p,children:m,style:h,className:f,...g}=s,b=(0,a.cJ)(g,K),v=D(c),x=d||!v&&B,y=`${I}-option`,$=(0,i.$)(I,y,f,P?.popup?.listItem,{[`${y}-grouped`]:o,[`${y}-active`]:W===t&&!x,[`${y}-disabled`]:x,[`${y}-selected`]:v}),C=U(e),S=!w||"function"==typeof w||v,k="number"==typeof C?C:C||c;let _=we(k)?k.toString():void 0;return void 0!==p&&(_=p),n.createElement("div",Ce({},(0,a.KE)(b),E?{}:Y(e,t),{"aria-selected":E?void 0:X(c),"aria-disabled":x,className:$,title:_,onMouseMove:()=>{W===t||x||q(t)},onClick:()=>{x||G(c)},style:{...z?.popup?.listItem,...h}}),n.createElement("div",{className:`${y}-content`},"function"==typeof M?M(e,{index:t}):k),n.isValidElement(w)||v,S&&n.createElement(R,{className:`${I}-option-state`,customizeIcon:w,customizeIconProps:{value:c,disabled:x,isSelected:v}},v?"✓":null))}))},ke=n.forwardRef(Se),Ee=(e,t)=>{const r=n.useRef({values:new Map,options:new Map});return[n.useMemo(()=>{const{values:n,options:o}=r.current,a=e.map(e=>void 0===e.label?{...e,label:n.get(e.value)?.label}:e),i=new Map,s=new Map;return a.forEach(e=>{i.set(e.value,e),s.set(e.value,t.get(e.value)||o.get(e.value))}),r.current.values=i,r.current.options=s,a},[e,t]),n.useCallback(e=>t.get(e)||r.current.options.get(e),[t])]};function _e(e,t){return A(e).join("").toUpperCase().includes(t)}r.dn(Ee);const Ae=(e,t,r,o,a)=>n.useMemo(()=>{if(!r||!1===o)return e;const{options:n,label:i,value:s}=t,l=[],c="function"==typeof o,u=r.toUpperCase(),d=c?o:(e,t)=>a&&a.length?a.some(e=>_e(t[e],u)):t[n]?_e(t["children"!==i?i:"label"],u):_e(t[s],u),p=c?e=>b(e):e=>e;return e.forEach(e=>{if(e[n])if(d(r,p(e)))l.push(e);else{const t=e[n].filter(e=>d(r,p(e)));t.length&&l.push({...e,[n]:t})}else d(r,p(e))&&l.push(e)}),l},[e,o,a,r,t]);function Ne(e,t=!1){return(0,a.$r)(e).map((e,r)=>{if(!n.isValidElement(e)||!e.type)return null;const{type:{isSelectOptGroup:o},key:a,props:{children:i,...s}}=e;return t||!o?function(e){const{key:t,props:{children:r,value:n,...o}}=e;return{key:t,value:void 0!==n?n:t,children:r,...o}}(e):{key:`__RC_SELECT_GRP__${null===a?r:a}__`,label:a,...s,options:Ne(i)}}).filter(e=>e)}r.dn(Ae);const je=(e,t,r,o,a)=>n.useMemo(()=>{let n=e;!e&&(n=Ne(t));const i=new Map,s=new Map,l=(e,t,r)=>{r&&"string"==typeof r&&e.set(t[r],t)},c=(e,t=!1)=>{for(let n=0;n<e.length;n+=1){const u=e[n];!u[r.options]||t?(i.set(u[r.value],u),l(s,u,r.label),o.forEach(e=>{l(s,u,e)}),l(s,u,a)):c(u[r.options],!0)}};return c(n),{options:n,valueOptions:i,labelOptions:s}},[e,t,r,o,a]);function Me(e){const t=n.useRef();return t.current=e,n.useCallback((...e)=>t.current(...e),[])}function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pe.apply(this,arguments)}const ze=["inputValue"],Ie=n.forwardRef((e,t)=>{const{id:r,mode:o,prefixCls:i="rc-select",backfill:s,fieldNames:l,showSearch:c,searchValue:u,onSearch:d,autoClearSearchValue:p,filterOption:m,optionFilterProp:f,filterSort:v,onSelect:x,onDeselect:y,onActive:$,popupMatchSelectWidth:C=!0,optionLabelProp:w,options:S,optionRender:k,children:E,defaultActiveFirstOption:N,menuItemSelectedIcon:j,virtual:M,direction:P,listHeight:z=200,listItemHeight:I=20,labelRender:R,value:T,defaultValue:O,labelInValue:B,onChange:L,maxCount:H,classNames:D,styles:F,...W}=e,V={searchValue:u,onSearch:d,autoClearSearchValue:p,filterOption:m,optionFilterProp:f,filterSort:v},[X,K]=function(e,t,r){const{filterOption:o,searchValue:a,optionFilterProp:i,filterSort:s,onSearch:l,autoClearSearchValue:c}=t;return n.useMemo(()=>{const t="object"==typeof e,n={filterOption:o,searchValue:a,optionFilterProp:i,filterSort:s,onSearch:l,autoClearSearchValue:c,...t?e:{}};return[!!(t||"combobox"===r||"tags"===r||"multiple"===r&&void 0===e)||e,n]},[r,e,o,a,i,s,l,c])}(c,V,o),{filterOption:U,searchValue:Y,optionFilterProp:Q,filterSort:Z,onSearch:J,autoClearSearchValue:ee=!0}=K,te=n.useMemo(()=>Q?Array.isArray(Q)?Q:[Q]:[],[Q]),re=(0,a.Bi)(r),ne=q(o),oe=!(S||!E),ae=n.useMemo(()=>(void 0!==U||"combobox"!==o)&&U,[U,o]),ie=n.useMemo(()=>g(l,oe),[JSON.stringify(l),oe]),[se,le]=(0,a.PW)("",Y),ce=se||"",ue=je(S,E,ie,te,w),{valueOptions:de,labelOptions:pe,options:me}=ue,he=n.useCallback(e=>A(e).map(e=>{let t,r,n,o;!function(e){return!e||"object"!=typeof e}(e)?(r=e.label,t=e.value):t=e;const a=de.get(t);return a&&(void 0===r&&(r=a?.[w||ie.label]),n=a?.disabled,o=a?.title),{label:r,value:t,key:t,disabled:n,title:o}}),[ie,w,de]),[fe,ge]=(0,a.PW)(O,T),be=n.useMemo(()=>{const e=he(ne&&null===fe?[]:fe);return"combobox"===o&&function(e){return!e&&0!==e}(e[0]?.value)?[]:e},[fe,he,o,ne]),[ve,xe]=Ee(be,de),ye=n.useMemo(()=>{if(!o&&1===ve.length){const e=ve[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ve.map(e=>({...e,label:("function"==typeof R?R(e):e.label)??e.value}))},[o,ve,R]),$e=n.useMemo(()=>new Set(ve.map(e=>e.value)),[ve]);n.useEffect(()=>{if("combobox"===o){const e=ve[0]?.value;le(function(e){return null!=e}(e)?String(e):"")}},[ve]);const Ce=Me((e,t)=>{const r=t??e;return{[ie.value]:e,[ie.label]:r}}),we=n.useMemo(()=>{if("tags"!==o)return me;const e=[...me];return[...ve].sort((e,t)=>e.value<t.value?-1:1).forEach(t=>{const r=t.value;(e=>de.has(e))(r)||e.push(Ce(r,t.label))}),e},[Ce,me,de,ve,o]),Se=Ae(we,ie,ce,ae,te),_e=n.useMemo(()=>"tags"!==o||!ce||Se.some(e=>(e=>te.length?te.some(t=>e?.[t]===ce):e?.value===ce)(e))||Se.some(e=>e[ie.value]===ce)||de.get(ce)?.disabled?Se:[Ce(ce),...Se],[Ce,te,o,Se,ce,ie,de]),Ne=e=>[...e].sort((e,t)=>Z(e,t,{searchValue:ce})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?Ne(e.options):e.options}:e),Ie=n.useMemo(()=>Z?Ne(_e):_e,[_e,Z,ce]),Re=n.useMemo(()=>function(e,{fieldNames:t,childrenAsData:r}={}){const n=[],{label:o,value:a,options:i,groupLabel:s}=g(t,!1);return function e(t,l){Array.isArray(t)&&t.forEach(t=>{if(l||!(i in t)){const e=t[a];n.push({key:h(t,n.length),groupOption:l,data:t,label:t[o],value:e})}else{let o=t[s];void 0===o&&r&&(o=t.label),n.push({key:h(t,n.length),group:!0,data:t,label:o}),e(t[i],!0)}})}(e,!1),n}(Ie,{fieldNames:ie,childrenAsData:oe}),[Ie,ie,oe]),Te=e=>{const t=he(e);if(ge(t),L&&(t.length!==ve.length||t.some((e,t)=>ve[t]?.value!==e?.value))){const e=B?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),r=t.map(e=>b(xe(e.value)));L(ne?e:e[0],ne?r:r[0])}},[Oe,Be]=n.useState(null),[Le,He]=n.useState(0),De=void 0!==N?N:"combobox"!==o,Fe=n.useRef(),We=n.useCallback((e,t,{source:r="keyboard"}={})=>{He(t),s&&"combobox"===o&&null!==e&&"keyboard"===r&&Be(String(e));const n=Promise.resolve().then(()=>{Fe.current===n&&$?.(e)});Fe.current=n},[s,o,$]),Ve=(e,t,r)=>{const n=()=>{const t=xe(e);return[B?{label:t?.[ie.label],value:e}:e,b(t)]};if(t&&x){const[e,t]=n();x(e,t)}else if(!t&&y&&"clear"!==r){const[e,t]=n();y(e,t)}},qe=Me((e,t)=>{let r;const n=!ne||t.selected;r=n?ne?[...ve,e]:[e]:ve.filter(t=>t.value!==e),Te(r),Ve(e,n),"combobox"===o?Be(""):q&&!ee||(le(""),Be(""))}),Xe=n.useMemo(()=>{const e=!1!==M&&!1!==C;return{...ue,flattenOptions:Re,onActiveValue:We,defaultActiveFirstOption:De,onSelect:qe,menuItemSelectedIcon:j,rawValues:$e,fieldNames:ie,virtual:e,direction:P,listHeight:z,listItemHeight:I,childrenAsData:oe,maxCount:H,optionRender:k,classNames:D,styles:F}},[H,ue,Re,We,De,qe,j,$e,ie,M,C,P,z,I,oe,k,D,F]);return n.createElement(_.Provider,{value:Xe},n.createElement(G,Pe({},W,{id:re,prefixCls:i,ref:t,omitDomProps:ze,mode:o,classNames:D,styles:F,displayValues:ye,onDisplayValuesChange:(e,t)=>{Te(e);const{type:r,values:n}=t;"remove"!==r&&"clear"!==r||n.forEach(e=>{Ve(e.value,!1,r)})},maxCount:H,direction:P,showSearch:X,searchValue:ce,onSearch:(e,t)=>{if(le(e),Be(null),"submit"===t.source){const t=(e||"").trim();if(t){if(de.get(t)?.disabled)return void le("");const e=Array.from(new Set([...$e,t]));Te(e),Ve(t,!0),le("")}return}"blur"!==t.source&&("combobox"===o&&Te(e),J?.(e))},autoClearSearchValue:ee,onSearchSplit:e=>{let t=e;"tags"!==o&&(t=e.map(e=>{const t=pe.get(e);return t?.value}).filter(e=>void 0!==e)),"tags"===o&&(t=t.filter(e=>!de.get(e)?.disabled));const r=Array.from(new Set([...$e,...t]));Te(r),r.forEach(e=>{Ve(e,!0)})},popupMatchSelectWidth:C,OptionList:ke,emptyOptions:!Re.length,activeValue:Oe,activeDescendantId:`${re}_list_${Le}`})))});Ie.Option=Q,Ie.OptGroup=U;const Re=Ie;var Te=r(275),Oe=r(992),Be=r(3723);function Le(e,t,r){return!1===e?null:!0===e?r:e&&void 0!==e[t]?e[t]:r}var He=r(3425),De=r(8182),Fe=r(2279),We=r(1824),Ve=r(8119),qe=r(934),Xe=r(829),Ge=r(3295),Ke=r(124),Ue=r(7090),Ye=r(8484);const Qe=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...t,points:["tl","bl"],offset:[0,4]},bottomRight:{...t,points:["tr","br"],offset:[0,4]},topLeft:{...t,points:["bl","tl"],offset:[0,-4]},topRight:{...t,points:["br","tr"],offset:[0,-4]}}})(t)};var Ze=r(5905),Je=r(5974),et=r(7358),tt=r(485),rt=r(3561),nt=r(738),ot=r(4980);const at=new nt.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),it=new nt.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),st=new nt.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lt=new nt.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ct=new nt.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ut=new nt.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),dt={"move-up":{inKeyframes:new nt.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new nt.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:at,outKeyframes:it},"move-left":{inKeyframes:st,outKeyframes:lt},"move-right":{inKeyframes:ct,outKeyframes:ut}},pt=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=dt[t];return[(0,ot.b)(n,o,a,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},mt=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},ht=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:{...(0,Ze.dF)(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${s}bottomLeft,\n ${a}${s}bottomLeft\n `]:{animationName:rt.ox},[`\n ${o}${s}topLeft,\n ${a}${s}topLeft,\n ${o}${s}topRight,\n ${a}${s}topRight\n `]:{animationName:rt.nP},[`${i}${s}bottomLeft`]:{animationName:rt.vR},[`\n ${i}${s}topLeft,\n ${i}${s}topRight\n `]:{animationName:rt.YU},"&-hidden":{display:"none"},[n]:{...mt(e),cursor:"pointer",transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...Ze.L9},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${n}-option-active:not(${n}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...mt(e),color:e.colorTextDisabled}},[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},(0,rt._j)(e,"slide-up"),(0,rt._j)(e,"slide-down"),pt(e,"move-up"),pt(e,"move-down")]},ft=e=>{const{antCls:t,componentCls:r}=e,n={background:"transparent"},o=["> input[disabled]","> textarea[disabled]",`> ${r}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${r}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${r}-placeholder`]:{display:"none"},[`${r}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${r}-disabled ${r}-content`]:{[o]:n,"input[disabled], textarea[disabled]":n}}}},gt=e=>{const{componentCls:t,calc:r,iconCls:n,paddingXS:o,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:i,lineWidth:s,colorIcon:l,colorIconHover:c,inputPaddingHorizontalBase:u,antCls:d}=e,[p,m]=(0,et.PN)(d,"select");return{"&-multiple":{[p("multi-item-background")]:e.multipleItemBg,[p("multi-item-border-color")]:"transparent",[p("multi-item-border-radius")]:e.borderRadiusSM,[p("multi-item-height")]:e.multipleItemHeight,[p("multi-padding-base")]:`calc((${m("height")} - ${m("multi-item-height")}) / 2)`,[p("multi-padding-vertical")]:`calc(${m("multi-padding-base")} - ${i} - ${s})`,[p("multi-item-padding-horizontal")]:`calc(${u} - ${m("multi-padding-vertical")} - ${s} * 2)`,paddingBlock:m("multi-padding-vertical"),paddingInlineStart:`calc(${m("multi-padding-base")} - ${s})`,[`${t}-prefix`]:{marginInlineStart:m("multi-item-padding-horizontal")},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:m("line-height"),insetInlineStart:m("multi-item-padding-horizontal"),width:`calc(100% - ${m("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:m("font-size")},"&-item":{lineHeight:1,maxWidth:"calc(100% - 4px)"},[`${t}-content-item-prefix + ${t}-content-item-suffix,\n ${t}-content-item-suffix:first-child`]:{marginInlineStart:m("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${m("multi-item-height")} - ${s} * 2)`,border:`${s} solid ${m("multi-item-border-color")}`,display:"flex",marginBlock:i,marginInlineEnd:r(i).mul(2).equal(),background:m("multi-item-background"),borderRadius:m("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:a,transition:["height","line-height","padding"].map(t=>`${t} ${e.motionDurationSlow}`).join(","),"&-content":{...Ze.L9,marginInlineEnd:a},"&-remove":{...(0,Ze.Nk)(),display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}},[`${t}-input`]:{lineHeight:r(i).mul(2).add(m("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:4,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[p("multi-item-height")]:e.multipleItemHeightSM,[p("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[p("multi-item-height")]:e.multipleItemHeightLG,[p("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[p("multi-item-border-color")]:e.colorSplit,[p("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[p("multi-item-border-color")]:"transparent"}}}}},bt=(e,t)=>{const{componentCls:r,antCls:n}=e,[o]=(0,et.PN)(n,"select"),{border:a,borderHover:i,borderActive:s,borderOutline:l}=t,c=t.background||e.selectorBg||e.colorBgContainer;return{[o("border-color")]:a,[o("background-color")]:c,[o("affix-color")]:t.affixColor,[`&:not(${r}-disabled)`]:{"&:hover":{[o("border-color")]:i,[o("background-color")]:t.backgroundHover||c},[`&${r}-focused`]:{[o("border-color")]:s,[o("background-color")]:t.backgroundActive||c,boxShadow:`0 0 0 ${(0,nt.zA)(e.controlOutlineWidth)} ${l}`}},[`&${r}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},vt=(e,t,r,n,o,a)=>{const{componentCls:i}=e;return{[`&${i}-${t}`]:[bt(e,r),{[`&${i}-status-error`]:bt(e,{...r,...n}),[`&${i}-status-warning`]:bt(e,{...r,...o})},a]}},xt=(e,t)=>({outline:`${(0,nt.zA)(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:(0,nt.zA)(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),yt=e=>{const{componentCls:t,fontHeight:r,controlHeight:n,fontSizeIcon:o,showArrowPaddingInlineEnd:a,iconCls:i,antCls:s,max:l,calc:c}=e,[u,d]=(0,et.PN)(s,"select"),p=l(c(a).sub(o).equal(),0);return{[t]:[{[u("border-radius")]:e.borderRadius,[u("border-color")]:"#000",[u("border-size")]:e.lineWidth,[u("background-color")]:e.colorBgContainer,[u("font-size")]:e.fontSize,[u("line-height")]:e.lineHeight,[u("font-height")]:r,[u("color")]:e.colorText,[u("affix-color")]:e.colorText,[u("height")]:n,[u("padding-horizontal")]:c(e.paddingSM).sub(e.lineWidth).equal(),[u("padding-vertical")]:`calc((${d("height")} - ${d("font-height")}) / 2 - ${d("border-size")})`,...(0,Ze.dF)(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:d("border-radius"),borderWidth:d("border-size"),borderStyle:e.lineType,borderColor:d("border-color"),background:d("background-color"),fontSize:d("font-size"),lineHeight:d("line-height"),color:d("color"),paddingInline:d("padding-horizontal"),paddingBlock:d("padding-vertical"),[`${t}-prefix`]:{color:d("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...Ze.L9,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:p,"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{visibility:"inherit"},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[i]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[u("height")]:e.controlHeightSM,[u("padding-horizontal")]:c(e.paddingXS).sub(e.lineWidth).equal(),[u("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:d("padding-horizontal")}},"&-lg":{[u("height")]:e.controlHeightLG,[u("font-size")]:e.fontSizeLG,[u("line-height")]:e.lineHeightLG,[u("font-height")]:e.fontHeightLG,[u("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:d("color"),fontFamily:"inherit",fontSize:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",inset:0,lineHeight:"inherit"},[`${t}-content`]:{...Ze.L9,alignSelf:"center","&-has-value":{display:"block","&:before":{display:"none"}},"&-has-search-value":{color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:"transparent",[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},gt(e),vt(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),vt(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),vt(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:xt(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:xt(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:xt(e,e.colorWarning)}),vt(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderInlineColor:"transparent"}),ft(e)]}},$t=e=>{const{antCls:t,componentCls:r,motionDurationMid:n,inputPaddingHorizontalBase:o}=e,a={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:{...(0,Ze.dF)(e),[`${r}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Ze.L9,[`> ${t}-typography`]:{display:"inline"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:["color","opacity"].map(e=>`${e} ${n} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Ct=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},$t(e),ht(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,Je.G)(e,{focusElCls:`${t}-focused`})]},wt=(0,et.OF)("Select",(e,{rootPrefixCls:t})=>{const r=(0,tt.oX)(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Ct(r),yt(r)]},e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:f,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:x,controlOutline:y}=e,$=2*s,C=2*n,w=Math.min(o-$,o-C),S=Math.min(a-$,a-C),k=Math.min(i-$,i-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(o-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:f,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:S,multipleItemHeightLG:k,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:x,activeOutlineColor:y,selectAffixPadding:s}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var St=r(7906),kt=r(4732),Et=r(5886),_t=r(3964),At=r(6962),Nt=r(736),jt=r(94),Mt=r(2897);const Pt="SECRET_COMBOBOX_MODE_DO_NOT_USE",zt=(e,t)=>{const{prefixCls:r,bordered:s,className:l,rootClassName:c,getPopupContainer:u,popupClassName:d,dropdownClassName:p,listHeight:m=256,placement:h,listItemHeight:f,size:g,disabled:b,notFoundContent:v,status:x,builtinPlacements:y,dropdownMatchSelectWidth:$,popupMatchSelectWidth:C,direction:w,style:S,allowClear:k,variant:E,popupStyle:_,dropdownStyle:A,transitionName:N,tagRender:j,maxCount:M,prefix:P,dropdownRender:z,popupRender:I,onDropdownVisibleChange:R,onOpenChange:T,styles:O,classNames:B,clearIcon:L,showSearch:H,...D}=e,{getPopupContainer:F,getPrefixCls:W,renderEmpty:V,direction:q,virtual:X,popupMatchSelectWidth:G,popupOverflow:K}=n.useContext(Fe.QO),{showSearch:U,allowClear:Y,style:Q,styles:Z,className:J,classNames:ee,clearIcon:te,loadingIcon:re,menuItemSelectedIcon:ne,removeIcon:oe,suffixIcon:ae}=(0,Fe.TP)("select"),[,ie]=(0,Ye.Ay)(),se=f??ie?.controlHeight,le=W("select",r),ce=W(),ue=w??q,{compactSize:de,compactItemClassnames:pe}=(0,Ue.RQ)(le,ue),[me,he]=(0,Ke.A)("select",E,s),fe=(0,qe.A)(le),[ge,be]=wt(le,fe),ve=n.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===Pt?"combobox":t},[e.mode]),xe="multiple"===ve||"tags"===ve,ye=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),$e=C??$??G,Ce=(Ne=I||z,o().useMemo(()=>{if(Ne)return(...e)=>o().createElement(Mt.A,{space:!0},Ne.apply(void 0,e))},[Ne])),we=T||R,{status:Se,hasFeedback:ke,isFormItemInput:Ee,feedbackIcon:_e}=n.useContext(Ge.$W),Ae=(0,De.v)(Se,x);var Ne;let je;je=void 0!==v?v:"combobox"===ve?null:V?.("Select")||n.createElement(We.A,{componentName:"Select"});const{suffixIcon:Me,itemIcon:Pe,removeIcon:ze,clearIcon:Ie}=function({suffixIcon:e,contextSuffixIcon:t,clearIcon:r,contextClearIcon:o,menuItemSelectedIcon:a,contextMenuItemSelectedIcon:i,removeIcon:s,contextRemoveIcon:l,loading:c,loadingIcon:u,contextLoadingIcon:d,searchIcon:p,contextSearchIcon:m,multiple:h,hasFeedback:f,showSuffixIcon:g,feedbackIcon:b,showArrow:v,componentName:x}){return n.useMemo(()=>{const x=(0,jt.A)(r,o,n.createElement(kt.A,null)),y=t=>null!==e||f||v?n.createElement(n.Fragment,null,!1!==g&&t,f&&b):null;let $=null;return $=void 0!==e?y(e):c?y((0,jt.A)(u,d,n.createElement(At.A,{spin:!0}))):({open:e,showSearch:r})=>y(e&&r?(0,jt.A)(p,m,n.createElement(Nt.A,null)):(0,jt.A)(t,n.createElement(_t.A,null))),{clearIcon:x,suffixIcon:$,itemIcon:(0,jt.A)(a,i,h?n.createElement(St.A,null):null),removeIcon:(0,jt.A)(s,l,n.createElement(Et.A,null))}},[e,t,r,o,a,i,s,l,c,u,d,p,m,h,f,g,b,v])}({...D,multiple:xe,hasFeedback:ke,feedbackIcon:_e,showSuffixIcon:ye,prefixCls:le,componentName:"Select",clearIcon:L,searchIcon:Le(H,"searchIcon"),contextClearIcon:te,contextLoadingIcon:re,contextMenuItemSelectedIcon:ne,contextRemoveIcon:oe,contextSearchIcon:Le(U,"searchIcon"),contextSuffixIcon:ae}),He=k??Y,Ze=!0===He?{clearIcon:Ie}:He,Je=H??U,et=(0,a.cJ)(D,["suffixIcon","itemIcon"]),tt=(0,Xe.A)(e=>g??de??e),rt=n.useContext(Ve.A),nt=b??rt,ot={...e,variant:me,status:Ae,disabled:nt,size:tt},at=(0,Oe.XT)(Q),it=(0,Oe.XT)(S),[st,lt]=(0,Oe.AV)([ee,B],[Z,at,O,it],{props:ot},{popup:{_default:"root"}}),ct=(0,i.$)(st.popup.root,d,p,{[`${le}-dropdown-${ue}`]:"rtl"===ue},c,be,fe,ge),ut={...lt.popup?.root,..._??A},dt=(0,i.$)({[`${le}-lg`]:"large"===tt,[`${le}-sm`]:"small"===tt,[`${le}-rtl`]:"rtl"===ue,[`${le}-${me}`]:he,[`${le}-in-form-item`]:Ee},(0,De.L)(le,Ae,ke),pe,J,l,st.root,c,be,fe,ge),pt=n.useMemo(()=>void 0!==h?h:"rtl"===ue?"bottomRight":"bottomLeft",[h,ue]),[mt]=(0,Te.YK)("SelectLike",lt.popup.root?.zIndex??ut.zIndex);return n.createElement(Re,{ref:t,virtual:X,classNames:st,styles:lt,showSearch:Je,...et,style:lt.root,popupMatchSelectWidth:$e,transitionName:(0,Be.b)(ce,"slide-up",N),builtinPlacements:Qe(y,K),listHeight:m,listItemHeight:se,mode:ve,prefixCls:le,placement:pt,direction:ue,prefix:P,suffixIcon:Me,menuItemSelectedIcon:Pe,removeIcon:ze,allowClear:Ze,notFoundContent:je,className:dt,getPopupContainer:u||F,popupClassName:ct,disabled:nt,popupStyle:{...lt.popup.root,...ut,zIndex:mt},maxCount:xe?M:void 0,tagRender:xe?j:void 0,popupRender:Ce,onPopupVisibleChange:we})},It=n.forwardRef(zt),Rt=(0,He.A)(It,"popupAlign");It.SECRET_COMBOBOX_MODE_DO_NOT_USE=Pt,It.Option=Q,It.OptGroup=U,It._InternalPanelDoNotUseOrYouWillBeFired=Rt;const Tt=It},7072(e,t,r){r.d(t,{A:()=>T});var n=r(1609),o=r(4164),a=r(992),i=r(1685),s=r(2279),l=r(829);const c=e=>{const{prefixCls:t,className:r,style:a,size:s,shape:l}=e,c=(0,o.$)({[`${t}-lg`]:"large"===s,[`${t}-sm`]:"small"===s}),u=(0,o.$)({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),d=n.useMemo(()=>(0,i.Et)(s)?{width:s,height:s,lineHeight:`${s}px`}:{},[s]);return n.createElement("span",{className:(0,o.$)(t,c,u,r),style:{...d,...a}})};var u=r(738),d=r(7358),p=r(485);const m=new u.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),h=e=>({height:e,lineHeight:(0,u.zA)(e)}),f=e=>({width:e,...h(e)}),g=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:m,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),b=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...h(e)}),v=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:r,...f(n)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...f(o)},[`${t}${t}-sm`]:{...f(a)}}},x=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:r,...b(t,s)},[`${n}-lg`]:{...b(o,s)},[`${n}-sm`]:{...b(a,s)}}},y=e=>{const{gradientFromColor:t,borderRadiusSM:r,imageSizeBase:n,calc:o}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:r,...f(o(n).mul(2).equal())}},$=e=>({[e.skeletonNodeCls]:{...y(e)}}),C=e=>{const{skeletonImageCls:t,imageSizeBase:r,calc:n}=e;return{[t]:{...y(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...f(r),maxWidth:n(r).mul(4).equal(),maxHeight:n(r).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},w=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},S=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...h(e)}),k=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i,calc:s}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal(),...S(n,s)},...w(e,n,r),[`${r}-lg`]:{...S(o,s)},...w(e,o,`${r}-lg`),[`${r}-sm`]:{...S(a,s)},...w(e,a,`${r}-sm`)}},E=(0,d.OF)("Skeleton",e=>{const{componentCls:t,calc:r}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonNodeCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:p,padding:m,marginSM:h,borderRadius:b,titleHeight:y,blockRadius:w,paragraphLiHeight:S,controlHeightXS:E,paragraphMarginTop:_}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[r]:{display:"inline-block",verticalAlign:"top",background:p,...f(c)},[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:{...f(u)},[`${r}-sm`]:{...f(d)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:y,background:p,borderRadius:w,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:p,borderRadius:w,"+ li":{marginBlockStart:E}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${n}, ${o} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-section`]:{[n]:{marginBlockStart:h,[`+ ${o}`]:{marginBlockStart:_}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...k(e),...v(e),...x(e),...$(e),...C(e)},[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${n},\n ${o} > li,\n ${r},\n ${a},\n ${i},\n ${s},\n ${l}\n `]:{...g(e)}}}})((0,p.oX)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:r(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:r}=e;return{color:t,colorGradientEnd:r,gradientFromColor:t,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),_=e=>{const{prefixCls:t,className:r,classNames:a,rootClassName:i,internalClassName:l,style:c,styles:u,active:d,children:p}=e,{getPrefixCls:m}=n.useContext(s.QO),h=m("skeleton",t),[f,g]=E(h),b=(0,o.$)(h,`${h}-element`,{[`${h}-active`]:d},f,a?.root,r,i,g);return n.createElement("div",{className:b,style:u?.root},n.createElement("div",{className:(0,o.$)(a?.content,l||`${h}-node`),style:{...u?.content,...c}},p))},A=(e,t)=>{const{width:r,rows:n=2}=t;return Array.isArray(r)?r[e]:n-1===e?r:void 0},N=e=>{const{prefixCls:t,className:r,style:a,rows:i=0}=e,s=Array.from({length:i}).map((t,r)=>n.createElement("li",{key:r,style:{width:A(r,e)}}));return n.createElement("ul",{className:(0,o.$)(t,r),style:a},s)},j=({prefixCls:e,className:t,width:r,style:a})=>n.createElement("h3",{className:(0,o.$)(e,t),style:{width:r,...a}});function M(e){return(0,i.Qd)(e)?e:{}}function P(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function z(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function I(e,t){const r={};return e&&t||(r.width="61%"),r.rows=!e&&t?3:2,r}const R=e=>{const{prefixCls:t,loading:r,className:i,rootClassName:l,classNames:u,style:d,styles:p,children:m,avatar:h=!1,title:f=!0,paragraph:g=!0,active:b,round:v}=e,{getPrefixCls:x,direction:y,className:$,style:C,classNames:w,styles:S}=(0,s.TP)("skeleton"),k=x("skeleton",t),[_,A]=E(k),R={...e,avatar:h,title:f,paragraph:g},T=(0,a.XT)(C),O=(0,a.XT)(d),[B,L]=(0,a.AV)([w,u],[S,T,p,O],{props:R});if(r||!("loading"in e)){const e=!!h,t=!!f,r=!!g;let a,s;if(e){const e={className:B.avatar,prefixCls:`${k}-avatar`,...P(t,r),...M(h),style:L.avatar};a=n.createElement("div",{className:(0,o.$)(B.header,`${k}-header`),style:L.header},n.createElement(c,{...e}))}if(t||r){let a,i;if(t){const t={className:B.title,prefixCls:`${k}-title`,...z(e,r),...M(f),style:L.title};a=n.createElement(j,{...t})}if(r){const r={className:B.paragraph,prefixCls:`${k}-paragraph`,...I(e,t),...M(g),style:L.paragraph};i=n.createElement(N,{...r})}s=n.createElement("div",{className:(0,o.$)(B.section,`${k}-section`),style:L.section},a,i)}const u=(0,o.$)(k,{[`${k}-with-avatar`]:e,[`${k}-active`]:b,[`${k}-rtl`]:"rtl"===y,[`${k}-round`]:v},B.root,$,i,l,_,A);return n.createElement("div",{className:u,style:L.root},a,s)}return m??null};R.Button=e=>{const{prefixCls:t,className:r,rootClassName:a,classNames:i,active:u,style:d,styles:p,block:m=!1,size:h,...f}=e,{getPrefixCls:g}=n.useContext(s.QO),b=g("skeleton",t),[v,x]=E(b),y=(0,l.A)(e=>h??e),$=(0,o.$)(b,`${b}-element`,{[`${b}-active`]:u,[`${b}-block`]:m},i?.root,r,a,v,x);return n.createElement("div",{className:$,style:p?.root},n.createElement(c,{prefixCls:`${b}-button`,className:i?.content,style:{...p?.content,...d},size:y,...f}))},R.Avatar=e=>{const{prefixCls:t,className:r,classNames:a,rootClassName:i,active:u,style:d,styles:p,shape:m="circle",size:h,...f}=e,{getPrefixCls:g}=n.useContext(s.QO),b=g("skeleton",t),[v,x]=E(b),y=(0,l.A)(e=>h??e),$=(0,o.$)(b,`${b}-element`,{[`${b}-active`]:u},a?.root,r,i,v,x);return n.createElement("div",{className:$,style:p?.root},n.createElement(c,{prefixCls:`${b}-avatar`,className:a?.content,style:{...p?.content,...d},shape:m,size:y,...f}))},R.Input=e=>{const{prefixCls:t,className:r,classNames:a,rootClassName:i,active:u,block:d,style:p,styles:m,size:h,...f}=e,{getPrefixCls:g}=n.useContext(s.QO),b=g("skeleton",t),[v,x]=E(b),y=(0,l.A)(e=>h??e),$=(0,o.$)(b,`${b}-element`,{[`${b}-active`]:u,[`${b}-block`]:d},a?.root,r,i,v,x);return n.createElement("div",{className:$,style:m?.root},n.createElement(c,{prefixCls:`${b}-input`,className:a?.content,style:{...m?.content,...p},size:y,...f}))},R.Image=e=>{const{getPrefixCls:t}=n.useContext(s.QO),r=t("skeleton",e.prefixCls);return n.createElement(_,{...e,internalClassName:`${r}-image`},n.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${r}-image-svg`},n.createElement("title",null,"Image placeholder"),n.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${r}-image-path`})))},R.Node=_;const T=R},5699(e,t,r){r.d(t,{A:()=>f});var n=r(1609),o=r.n(n),a=r(4164),i=r(8182),s=r(2279),l=r(7090),c=r(5905),u=r(5974),d=r(7358);const p=e=>{const{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:o,paddingXS:a,fontSizeLG:i,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:u,colorBgContainerDisabled:p,lineWidth:m,antCls:h}=e,[f,g]=(0,d.PN)(h,"space-addon");return{[t]:[{...(0,c.dF)(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:n,margin:0,borderWidth:m,borderStyle:"solid",borderRadius:r,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:i,borderRadius:l},"&-small":{paddingInline:a,borderRadius:u,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[f("addon-border-color")]:o,[f("addon-background")]:p,[f("addon-border-color-outlined")]:o,[f("addon-background-filled")]:p,borderColor:g("addon-border-color"),background:g("addon-background"),"&-variant-outlined":{[f("addon-border-color")]:g("addon-border-color-outlined")},"&-variant-filled":{[f("addon-border-color")]:"transparent",[f("addon-background")]:g("addon-background-filled"),[`&${t}-disabled`]:{[f("addon-border-color")]:o,[f("addon-background")]:p}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[f("addon-border-color-outlined")]:e.colorError,[f("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[f("addon-border-color-outlined")]:e.colorWarning,[f("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},m=(0,d.OF)("Addon",e=>[p(e),(0,u.G)(e,{focus:!1})]),h=o().forwardRef((e,t)=>{const{className:r,children:n,style:c,prefixCls:u,variant:d="outlined",disabled:p,status:h,...f}=e,{getPrefixCls:g,direction:b}=o().useContext(s.QO),v=g("space-addon",u),[x,y]=m(v),{compactItemClassnames:$,compactSize:C}=(0,l.RQ)(v,b),w=(0,i.L)(v,h),S=(0,a.$)(v,x,$,y,`${v}-variant-${d}`,w,{[`${v}-${C}`]:C,[`${v}-disabled`]:p},r);return o().createElement("div",{ref:t,className:S,style:c,...f},n)}),f=h},7090(e,t,r){r.d(t,{K6:()=>p,Ay:()=>h,RQ:()=>d});var n=r(1609),o=r(6487),a=r(4164),i=r(2283),s=r(2279),l=r(829);const c=(0,r(7358).OF)(["Space","Compact"],e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},()=>({}),{resetStyle:!1}),u=n.createContext(null),d=(e,t)=>{const r=n.useContext(u),o=n.useMemo(()=>{if(!r)return"";const{compactDirection:n,isFirstItem:o,isLastItem:i}=r,s="vertical"===n?"-vertical-":"-";return(0,a.$)(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:"rtl"===t})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:o}},p=e=>{const{children:t}=e;return n.createElement(u.Provider,{value:null},t)},m=e=>{const{children:t,...r}=e;return n.createElement(u.Provider,{value:n.useMemo(()=>r,[r])},t)},h=e=>{const{getPrefixCls:t,direction:r}=n.useContext(s.QO),{size:d,direction:p,orientation:h,block:f,prefixCls:g,className:b,rootClassName:v,children:x,vertical:y,...$}=e,[C,w]=(0,i.M)(h,y,p),S=(0,l.A)(e=>d??e),k=t("space-compact",g),[E]=c(k),_=(0,a.$)(k,E,{[`${k}-rtl`]:"rtl"===r,[`${k}-block`]:f,[`${k}-vertical`]:w},b,v),A=n.useContext(u),N=(0,o.$r)(x),j=n.useMemo(()=>N.map((e,t)=>{const r=e?.key||`${k}-item-${t}`;return n.createElement(m,{key:r,compactSize:S,compactDirection:C,isFirstItem:0===t&&(!A||A?.isFirstItem),isLastItem:t===N.length-1&&(!A||A?.isLastItem)},e)}),[N,A,C,S,k]);return 0===N.length?null:n.createElement("div",{className:_,...$},j)}},2392(e,t,r){r.d(t,{A:()=>S});var n=r(1609),o=r.n(n),a=r(6487),i=r(4164),s=r(1685);function l(e){return["small","middle","medium","large"].includes(e)}function c(e){return!!e&&(0,s.Et)(e)}var u=r(2283),d=r(992),p=r(2279),m=r(5699),h=r(7090);const f=o().createContext({latestIndex:0}),g=f.Provider,b=e=>{const{className:t,prefix:r,index:o,children:a,separator:l,style:c,classNames:u,styles:d}=e,{latestIndex:p}=n.useContext(f);return(0,s.AZ)(a)?n.createElement(n.Fragment,null,n.createElement("div",{className:t,style:c},a),o<p&&l&&n.createElement("span",{className:(0,i.$)(`${r}-item-separator`,u?.separator),style:d?.separator},l)):null};var v=r(7358),x=r(485);const y=e=>{const{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},$=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},C=(0,v.OF)("Space",e=>{const t=(0,x.oX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[y(t),$(t)]},()=>({}),{resetStyle:!1}),w=n.forwardRef((e,t)=>{const{getPrefixCls:r,direction:o,size:m,className:h,style:f,classNames:v,styles:x}=(0,p.TP)("space"),{size:y=m??"small",align:$,className:w,rootClassName:S,children:k,direction:E,orientation:_,prefixCls:A,split:N,separator:j,style:M,vertical:P,wrap:z=!1,classNames:I,styles:R,...T}=e,[O,B]=Array.isArray(y)?y:[y,y],L=l(B),H=l(O),D=c(B),F=c(O),W=(0,a.$r)(k,{keepEmpty:!0}),[V,q]=(0,u.M)(_,P,E),X=void 0!==$||q?$:"center",G=j??N,K=r("space",A),[U,Y]=C(K),Q={...e,size:y,orientation:V,align:X},[Z,J]=(0,d.AV)([v,I],[x,R],{props:Q}),ee=(0,i.$)(K,h,U,`${K}-${V}`,{[`${K}-rtl`]:"rtl"===o,[`${K}-align-${X}`]:X,[`${K}-gap-row-${B}`]:L,[`${K}-gap-col-${O}`]:H},w,S,Y,Z.root),te=(0,i.$)(`${K}-item`,Z.item),re=W.map((e,t)=>{const r=e?.key||`${te}-${t}`;return n.createElement(b,{prefix:K,classNames:Z,styles:J,className:te,key:r,index:t,separator:G,style:J.item},e)}),ne=n.useMemo(()=>({latestIndex:W.reduce((e,t,r)=>(0,s.AZ)(t)?r:e,0)}),[W]);if(0===W.length)return null;const oe={};return z&&(oe.flexWrap="wrap"),!H&&F&&(oe.columnGap=O),!L&&D&&(oe.rowGap=B),n.createElement("div",{ref:t,className:ee,style:{...oe,...J.root,...f,...M},...T},n.createElement(g,{value:ne},re))});w.Compact=h.Ay,w.Addon=m.A;const S=w},4716(e,t,r){r.d(t,{A:()=>A});var n=r(1609),o=r(4164);var a=r(992),i=r(2279),s=r(829),l=r(682),c=r(6487);const u=80*Math.PI,d=e=>{const{dotClassName:t,style:r,hasCircleCls:a}=e;return n.createElement("circle",{className:(0,o.$)(`${t}-circle`,{[`${t}-circle-bg`]:a}),r:40,cx:50,cy:50,strokeWidth:20,style:r})},p=({percent:e,prefixCls:t})=>{const r=`${t}-dot`,a=`${r}-holder`,i=`${a}-hidden`,[s,l]=n.useState(!1);(0,c.Nf)(()=>{0!==e&&l(!0)},[0!==e]);const p=Math.max(Math.min(e,100),0);if(!s)return null;const m={strokeDashoffset:""+u/4,strokeDasharray:`${u*p/100} ${u*(100-p)/100}`};return n.createElement("span",{className:(0,o.$)(a,`${r}-progress`,{[i]:p<=0})},n.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":p},n.createElement(d,{dotClassName:r,hasCircleCls:!0}),n.createElement(d,{dotClassName:r,style:m})))};function m(e){const{prefixCls:t,percent:r=0,className:a,style:i}=e,s=`${t}-dot`,l=`${s}-holder`,c=`${l}-hidden`;return n.createElement(n.Fragment,null,n.createElement("span",{className:(0,o.$)(l,a,r>0&&c),style:i},n.createElement("span",{className:(0,o.$)(s,`${t}-dot-spin`)},[1,2,3,4].map(e=>n.createElement("i",{className:`${t}-dot-item`,key:e})))),n.createElement(p,{prefixCls:t,percent:r}))}function h(e){const{prefixCls:t,indicator:r,percent:a,className:i,style:s}=e,c=`${t}-dot`;return r&&n.isValidElement(r)?(0,l.Ob)(r,e=>({className:(0,o.$)(e.className,c,i),style:{...e.style,...s},percent:a})):n.createElement(m,{prefixCls:t,percent:a,className:i,style:s})}var f=r(738),g=r(5905),b=r(7358),v=r(485);const x=new f.Mo("antSpinMove",{to:{opacity:1}}),y=new f.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),$=e=>{const{componentCls:t}=e,r=`${t}-section`;return{[t]:{...(0,g.dF)(e),position:"relative","&-rtl":{direction:"rtl"},[`&${r}, ${r}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${r}`]:{display:"inline-flex"},[r]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[r]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},C=e=>{const{componentCls:t,antCls:r,motionDurationSlow:n}=e,[o,a]=(0,b.PN)(r,"spin");return{[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${a("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:a("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(e=>`${e} ${n} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:a("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:y,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:a("dot-item-size"),height:a("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:x,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(e=>`${e} ${n} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},w=e=>{const{componentCls:t}=e,[r]=(0,b.PN)(e.antCls,"spin");return{[t]:{"&-sm":{[r("dot-holder-size")]:e.dotSizeSM},"&-lg":{[r("dot-holder-size")]:e.dotSizeLG}}}},S=(0,b.OF)("Spin",e=>{const t=(0,v.oX)(e,{spinDotDefault:e.colorTextDescription});return[$(t),C(t),w(t)]},e=>{const{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:r}}),k=[[30,.05],[70,.03],[96,.01]];let E;const _=e=>{const{prefixCls:t,spinning:r=!0,delay:l=0,className:c,rootClassName:u,size:d,tip:p,description:m,wrapperClassName:f,style:g,children:b,fullscreen:v=!1,indicator:x,percent:y,classNames:$,styles:C,...w}=e,{getPrefixCls:_,direction:A,indicator:N,className:j,style:M,classNames:P,styles:z}=(0,i.TP)("spin"),I=_("spin",t),[R,T]=S(I),[O,B]=n.useState(()=>r&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(r,l)),L=function(e,t){const[r,o]=n.useState(0),a=n.useRef(null),i="auto"===t;return n.useEffect(()=>(i&&e&&(o(0),a.current=setInterval(()=>{o(e=>{const t=100-e;for(let r=0;r<k.length;r+=1){const[n,o]=k[r];if(e<=n)return e+t*o}return e})},200)),()=>{a.current&&(clearInterval(a.current),a.current=null)}),[i,e]),i?r:t}(O,y);n.useEffect(()=>{if(r){const e=function(e,t,r){var n=(r||{}).atBegin;return function(e,t,r){var n,o=r||{},a=o.noTrailing,i=void 0!==a&&a,s=o.noLeading,l=void 0!==s&&s,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function m(){n&&clearTimeout(n)}function h(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=this,c=Date.now()-p;function h(){p=Date.now(),t.apply(s,o)}function f(){n=void 0}d||(l||!u||n||h(),m(),void 0===u&&c>e?l?(p=Date.now(),i||(n=setTimeout(u?f:h,e))):h():!0!==i&&(n=setTimeout(u?f:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,r=void 0!==t&&t;m(),d=!r},h}(e,t,{debounceMode:!1!==(void 0!==n&&n)})}(l,()=>{B(!0)});return e(),()=>{e?.cancel?.()}}B(!1)},[l,r]);const H=(0,s.A)(e=>d??e),D=m??p,F={...e,size:H,spinning:O,tip:D,description:D,fullscreen:v,children:b,percent:L},[W,V]=(0,a.AV)([P,$],[z,C],{props:F}),q=x??N??E,X=void 0!==b,G=X||v,K=n.createElement(n.Fragment,null,n.createElement(h,{className:(0,o.$)(W.indicator),style:V.indicator,prefixCls:I,indicator:q,percent:L}),D&&n.createElement("div",{className:(0,o.$)(`${I}-description`,W.tip,W.description),style:{...V.tip,...V.description}},D));return n.createElement("div",{className:(0,o.$)(I,{[`${I}-sm`]:"small"===H,[`${I}-lg`]:"large"===H,[`${I}-spinning`]:O,[`${I}-rtl`]:"rtl"===A,[`${I}-fullscreen`]:v},u,W.root,v&&W.mask,G?f:[`${I}-section`,W.section],j,c,R,T),style:{...V.root,...G?{}:V.section,...v?V.mask:{},...M,...g},"aria-live":"polite","aria-busy":O,...w},O&&(G?n.createElement("div",{className:(0,o.$)(`${I}-section`,W.section),style:V.section},K):K),X&&n.createElement("div",{className:(0,o.$)(`${I}-container`,W.container),style:V.container},b))};_.setDefaultIndicator=e=>{E=e};const A=_},5974(e,t,r){function n(e,t,r,n){const{focusElCls:o,focus:a,borderElCls:i}=r,s=i?"> *":"",l=s?` ${s}`:"",c=e=>e.filter(Boolean).map(e=>`&:${e}${l}`).join(","),u=c(["hover",o?`hover${o}`:null]),d=c([a?"focus":null,"active"]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{[d]:{zIndex:3},[u]:{zIndex:4},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function o(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function a(e,t={focus:!0}){const{componentCls:r}=e,{componentCls:a}=t,i=a||r,s=`${i}-compact`;return{[s]:{...n(e,s,t,i),...o(i,s,t)}}}r.d(t,{G:()=>a})},5905(e,t,r){var n=r(738);const o=new n.Mo("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),a=(e,t)=>({outline:`${(0,n.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),i=(e,t)=>({"&:focus-visible":a(e,t)});r.d(t,["K8",0,i,"L9",0,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"Nk",0,()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),"Y1",0,e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...i(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),"av",0,e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...i(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),"dF",0,(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),"jk",0,a,"jz",0,e=>({[`.${e}`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"},[`.${e} .${e}-icon`]:{display:"block"}},[`.${e}-spin`]:{animationName:o,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),"t6",0,()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),"vj",0,(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==n&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...i,[o]:i}}}])},8680(e,t,r){var n=r(738),o=r(4980);const a=new n.Mo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new n.Mo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}});r.d(t,["p9",0,(e,t=!1)=>{const{antCls:r}=e,n=`${r}-fade`,s=t?"&":"";return[(0,o.b)(n,a,i,e.motionDurationMid,t),{[`\n ${s}${n}-enter,\n ${s}${n}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${n}-leave`]:{animationTimingFunction:"linear"}}]}])},4980(e,t,r){const n=e=>({animationDuration:e,animationFillMode:"both"});r.d(t,["b",0,(e,t,r,o,a=!1)=>{const i=a?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:{...n(o),animationPlayState:"paused"},[`${i}${e}-leave`]:{...n(o),animationPlayState:"paused"},[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}}])},3561(e,t,r){var n=r(738),o=r(4980);const a=new n.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),i=new n.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new n.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new n.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c={"slide-up":{inKeyframes:a,outKeyframes:i},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:new n.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),outKeyframes:new n.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}})},"slide-right":{inKeyframes:new n.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new n.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}};r.d(t,["YU",0,l,"_j",0,(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=c[t];return[(0,o.b)(n,a,i,e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},"nP",0,s,"ox",0,a,"vR",0,i])},6130(e,t,r){r.d(t,["V",0,()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}})])},9077(e,t,r){var n=r(738),o=r(4980);const a=new n.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new n.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),s=new n.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new n.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new n.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new n.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d={zoom:{inKeyframes:a,outKeyframes:i},"zoom-big":{inKeyframes:s,outKeyframes:l},"zoom-big-fast":{inKeyframes:s,outKeyframes:l},"zoom-left":{inKeyframes:new n.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new n.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new n.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new n.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new n.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new n.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}};r.d(t,["aB",0,(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=d[t];return[(0,o.b)(n,a,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}])},5201(e,t,r){r.d(t,{K:()=>i});var n=r(738),o=r(7358),a=r(791);function i(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?8:n}}r.d(t,["A",0,(e,t,r)=>{const{componentCls:i,boxShadowPopoverArrow:s,arrowOffsetVertical:l,arrowOffsetHorizontal:c,antCls:u}=e,[d]=(0,o.PN)(u,"tooltip"),{arrowDistance:p=0,arrowShadow:m=!0}=r||{};return{[i]:{[`${i}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...(0,a.j)(e,t,!!m&&s),"&:before":{background:t}}],[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:p,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[d("arrow-offset-x")]:c,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{[d("arrow-offset-x")]:`calc(100% - ${(0,n.zA)(c)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:c}}},[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:p,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[d("arrow-offset-x")]:c,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{[d("arrow-offset-x")]:`calc(100% - ${(0,n.zA)(c)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:c}}},[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:p},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:l},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:l},[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:p},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:l},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:l}}}}])},791(e,t,r){r.d(t,{n:()=>o});var n=r(738);function o(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,a=o,i=1*n/Math.sqrt(2),s=o-n*(1-1/Math.sqrt(2)),l=o-r*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),u=2*o-l,d=c,p=2*o-i,m=s,h=2*o-0,f=a,g=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${n} ${n} 0 0 0 ${i} ${s} L ${l} ${c} A ${r} ${r} 0 0 1 ${u} ${d} L ${p} ${m} A ${n} ${n} 0 0 0 ${h} ${f} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`}}r.d(t,["j",0,(e,t,r)=>{const{sizePopupArrow:o,arrowPolygon:a,arrowPath:i,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e,u={content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,n.zA)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return r&&(u.boxShadow=r),{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":u}}])},1041(e,t,r){r.d(t,{A:()=>Pt});var n=r(1609),o=r.n(n),a=r(5886),i=r(5539),s=r(8940),l=r(4164),c=r(6487);const u=(0,n.createContext)(null);var d=r(73);const p={width:0,height:0,left:0,top:0};function m(e,t){const r=n.useRef(e),[,o]=n.useState({});return[r.current,function(e){const n="function"==typeof e?e(r.current):e;n!==r.current&&t(n,r.current),r.current=n,o({})}]}const h=.995**20;function f(e){const[t,r]=(0,n.useState)(0),o=(0,n.useRef)(0),a=(0,n.useRef)();return a.current=e,(0,c.oM)(()=>{a.current?.()},[t]),()=>{o.current===t&&(o.current+=1,r(o.current))}}const g={width:0,height:0,left:0,top:0,right:0};function b(e){let t;return e instanceof Map?(t={},e.forEach((e,r)=>{t[r]=e})):t=e,JSON.stringify(t)}function v(e){return String(e).replace(/"/g,"TABS_DQ")}function x(e,t,r,n){return!(!r||n||!1===e||void 0===e&&(!1===t||null===t))}const y=n.forwardRef((e,t)=>{const{prefixCls:r,editable:o,locale:a,style:i}=e;return o&&!1!==o.showAdd?n.createElement("button",{ref:t,type:"button",className:`${r}-nav-add`,style:i,"aria-label":a?.addAriaLabel||"Add tab",onClick:e=>{o.onEdit("add",{event:e})}},o.addIcon||"+"):null}),$=y,C=n.forwardRef((e,t)=>{const{position:r,prefixCls:o,extra:a}=e;if(!a)return null;let i,s={};return"object"!=typeof a||n.isValidElement(a)?s.right=a:s=a,"right"===r&&(i=s.right),"left"===r&&(i=s.left),i?n.createElement("div",{className:`${o}-extra-content`,ref:t},i):null});var w=r(9311);const{ESC:S,TAB:k}=c.DD,E=(0,n.forwardRef)((e,t)=>{const{overlay:r,arrow:a,prefixCls:i}=e,s=(0,n.useMemo)(()=>{let e;return e="function"==typeof r?r():r,e},[r]),l=(0,c.K4)(t,(0,c.A9)(s));return o().createElement(o().Fragment,null,a&&o().createElement("div",{className:`${i}-arrow`}),o().cloneElement(s,{ref:(0,c.f3)(s)?l:void 0}))}),_={adjustX:1,adjustY:1},A=[0,0],N={topLeft:{points:["bl","tl"],overflow:_,offset:[0,-4],targetOffset:A},top:{points:["bc","tc"],overflow:_,offset:[0,-4],targetOffset:A},topRight:{points:["br","tr"],overflow:_,offset:[0,-4],targetOffset:A},bottomLeft:{points:["tl","bl"],overflow:_,offset:[0,4],targetOffset:A},bottom:{points:["tc","bc"],overflow:_,offset:[0,4],targetOffset:A},bottomRight:{points:["tr","br"],overflow:_,offset:[0,4],targetOffset:A}};function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j.apply(this,arguments)}const M=o().forwardRef((e,t)=>{const{arrow:r=!1,prefixCls:a="rc-dropdown",transitionName:i,animation:s,align:u,placement:d="bottomLeft",placements:p=N,getPopupContainer:m,showAction:h,hideAction:f,overlayClassName:g,overlayStyle:b,visible:v,trigger:x=["hover"],autoFocus:y,overlay:$,children:C,onVisibleChange:_,disabled:A,...M}=e,[P,z]=o().useState(),I="visible"in e?v:P,R=s?`${a}-${s}`:i,T=o().useRef(null),O=o().useRef(null),B=o().useRef(null);o().useImperativeHandle(t,()=>T.current);const L=e=>{z(e),_?.(e)};!function({visible:e,triggerRef:t,onVisibleChange:r,autoFocus:o,overlayRef:a}){const i=n.useRef(!1),s=()=>{e&&(t.current?.focus?.(),r?.(!1))},l=()=>!!a.current?.focus&&(a.current.focus(),i.current=!0,!0),u=e=>{switch(e.keyCode){case S:s();break;case k:{let t=!1;i.current||(t=l()),t?e.preventDefault():s();break}}};n.useEffect(()=>e?(window.addEventListener("keydown",u),o&&(0,c.er)(l,3),()=>{window.removeEventListener("keydown",u),i.current=!1}):()=>{i.current=!1},[e])}({visible:I,triggerRef:B,onVisibleChange:L,autoFocus:y,overlayRef:O});const H=()=>o().createElement(E,{ref:O,overlay:$,prefixCls:a,arrow:r}),D=C,F=(0,l.$)(D.props?.className,I&&(()=>{const{openClassName:t}=e;return void 0!==t?t:`${a}-open`})()),W={className:F,ref:(0,c.K4)(B,(0,c.A9)(D))},V=(0,c.f3)(D)?o().cloneElement(D,W):o().createElement("span",{className:F,ref:B},o().cloneElement(D,{className:F}));let q=f;return q||-1===x.indexOf("contextMenu")||(q=["click"]),o().createElement(w.Ay,j({builtinPlacements:p},M,{prefixCls:a,ref:T,popupClassName:(0,l.$)(g,{[`${a}-show-arrow`]:r}),popupStyle:b,action:x,showAction:h,hideAction:q,popupPlacement:d,popupAlign:u,popupMotion:{motionName:R},popupVisible:I,stretch:(()=>{const{minOverlayWidthMatchTrigger:t,alignPoint:r}=e;return"minOverlayWidthMatchTrigger"in e?t:!r})()?"minWidth":"",popup:"function"==typeof $?H:H(),onOpenChange:L,onPopupClick:t=>{const{onOverlayClick:r}=e;z(!1),r&&r(t)},getPopupContainer:m}),V)});var P=r(3997),z=r(5795);const I=n.createContext(null);function R(e,t){return`${e}-${t}`}function T(e){return R(n.useContext(I),e)}const O=n.createContext(null);function B({children:e,locked:t,...r}){const o=n.useContext(O),a=(0,c.Kr)(()=>function(e,t){const r={...e};return Object.keys(t).forEach(e=>{const n=t[e];void 0!==n&&(r[e]=n)}),r}(o,r),[o,r],(e,r)=>!(t||e[0]===r[0]&&(0,c.n4)(e[1],r[1],!0)));return n.createElement(O.Provider,{value:a},e)}const L=[],H=n.createContext(null);function D(){return n.useContext(H)}const F=n.createContext(L);function W(e){const t=n.useContext(F);return n.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}const V=n.createContext(null),q=n.createContext({}),{LEFT:X,RIGHT:G,UP:K,DOWN:U,ENTER:Y,ESC:Q,HOME:Z,END:J}=c.DD,ee=[K,U,X,G];function te(e,t){return(0,c.jD)(e,!0).filter(e=>t.has(e))}function re(e,t,r,n=1){if(!e)return null;const o=te(e,t),a=o.length;let i=o.findIndex(e=>r===e);return n<0?-1===i?i=a-1:i-=1:n>0&&(i+=1),i=(i+a)%a,o[i]}const ne=(e,t)=>{const r=new Set,n=new Map,o=new Map;return e.forEach(e=>{const a=document.querySelector(`[data-menu-id='${R(t,e)}']`);a&&(r.add(a),o.set(a,e),n.set(e,a))}),{elements:r,key2element:n,element2key:o}};const oe="__RC_UTIL_PATH_SPLIT__",ae=e=>e.join(oe),ie="rc-menu-more";function se(e){const t=n.useRef(e);t.current=e;const r=n.useCallback((...e)=>t.current?.(...e),[]);return e?r:void 0}function le(e,t,r,o){const{activeKey:a,onActive:i,onInactive:s}=n.useContext(O),l={active:a===e};return t||(l.onMouseEnter=t=>{r?.({key:e,domEvent:t}),i(e)},l.onMouseLeave=t=>{o?.({key:e,domEvent:t}),s(e)}),l}function ce(e){const{mode:t,rtl:r,inlineIndent:o}=n.useContext(O);return"inline"!==t?null:r?{paddingRight:e*o}:{paddingLeft:e*o}}function ue({icon:e,props:t,children:r}){let o;return null===e||!1===e?null:("function"==typeof e?o=n.createElement(e,{...t}):"boolean"!=typeof e&&(o=e),o||r||null)}function de({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>((0,c.$e)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pe.apply(this,arguments)}class me extends n.Component{render(){const{title:e,attribute:t,elementRef:r,...o}=this.props,a=(0,c.cJ)(o,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,c.$e)(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),n.createElement(P.A.Item,pe({},t,{title:"string"==typeof e?e:void 0},a,{ref:r}))}}const he=n.forwardRef((e,t)=>{const{style:r,className:o,eventKey:a,warnKey:i,disabled:s,itemIcon:u,children:d,itemData:p,role:m,onMouseEnter:h,onMouseLeave:f,onClick:g,onKeyDown:b,onFocus:v,...x}=e,y=T(a),{prefixCls:$,onItemClick:C,disabled:w,overflowDisabled:S,itemIcon:k,selectedKeys:E,onActive:_}=n.useContext(O),{_internalRenderMenuItem:A}=n.useContext(q),N=`${$}-item`,j=n.useRef(),M=n.useRef(),P=w||s,z=(0,c.xK)(t,M),I=W(a),R=t=>{const r=p||{key:a||"",label:d,itemIcon:u,extra:e.extra,title:e.title};return{key:a,keyPath:[...I].reverse(),item:j.current,domEvent:t,itemData:p||r}},B=u||k,{active:L,...H}=le(a,P,h,f),D=E.includes(a),F=ce(I.length),V={};"option"===e.role&&(V["aria-selected"]=D);let X=n.createElement(me,pe({ref:j,elementRef:z,role:null===m?"none":m||"menuitem",tabIndex:s?null:-1,"data-menu-id":S&&y?null:y},(0,c.cJ)(x,["extra"]),H,V,{component:"li","aria-disabled":s,style:{...F,...r},className:(0,l.$)(N,{[`${N}-active`]:L,[`${N}-selected`]:D,[`${N}-disabled`]:P},o),onClick:e=>{if(P)return;const t=R(e);g?.(de(t)),C(t)},onKeyDown:e=>{if(b?.(e),e.which===c.DD.ENTER){const t=R(e);g?.(de(t)),C(t)}},onFocus:e=>{_(a),v?.(e)}}),d,n.createElement(ue,{props:{...e,isSelected:D},icon:B}));return A&&(X=A(X,e,{selected:D})),X});function fe(e,t){const{eventKey:r}=e,o=D(),a=W(r);return n.useEffect(()=>{if(o)return o.registerPath(r,a),()=>{o.unregisterPath(r,a)}},[a]),o?null:n.createElement(he,pe({},e,{ref:t}))}const ge=n.forwardRef(fe);function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},be.apply(this,arguments)}const ve=({className:e,children:t,...r},o)=>{const{prefixCls:a,mode:i,rtl:s}=n.useContext(O);return n.createElement("ul",be({className:(0,l.$)(a,s&&`${a}-rtl`,`${a}-sub`,`${a}-${"inline"===i?"inline":"vertical"}`,e),role:"menu"},r,{"data-menu-list":!0,ref:o}),t)},xe=n.forwardRef(ve);function ye(e,t){return(0,c.$r)(e).map((e,r)=>{if(n.isValidElement(e)){const{key:o}=e;let a=e.props?.eventKey??o;null==a&&(a=`tmp_key-${[...t,r].join("-")}`);const i={key:a,eventKey:a};return n.cloneElement(e,i)}return e})}const $e={adjustX:1,adjustY:1},Ce={topLeft:{points:["bl","tl"],overflow:$e},topRight:{points:["br","tr"],overflow:$e},bottomLeft:{points:["tl","bl"],overflow:$e},bottomRight:{points:["tr","br"],overflow:$e},leftTop:{points:["tr","tl"],overflow:$e},leftBottom:{points:["br","bl"],overflow:$e},rightTop:{points:["tl","tr"],overflow:$e},rightBottom:{points:["bl","br"],overflow:$e}},we={topLeft:{points:["bl","tl"],overflow:$e},topRight:{points:["br","tr"],overflow:$e},bottomLeft:{points:["tl","bl"],overflow:$e},bottomRight:{points:["tr","br"],overflow:$e},rightTop:{points:["tr","tl"],overflow:$e},rightBottom:{points:["br","bl"],overflow:$e},leftTop:{points:["tl","tr"],overflow:$e},leftBottom:{points:["bl","br"],overflow:$e}};function Se(e,t,r){return t||(r?r[e]||r.other:void 0)}const ke={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ee({prefixCls:e,visible:t,children:r,popup:o,popupStyle:a,popupClassName:i,popupOffset:s,disabled:u,mode:d,onVisibleChange:p}){const{getPopupContainer:m,rtl:h,subMenuOpenDelay:f,subMenuCloseDelay:g,builtinPlacements:b,triggerSubMenuAction:v,forceSubMenuRender:x,rootClassName:y,motion:$,defaultMotions:C}=n.useContext(O),[S,k]=n.useState(!1),E=h?{...we,...b}:{...Ce,...b},_=ke[d],A=Se(d,$,C),N=n.useRef(A);"inline"!==d&&(N.current=A);const j={...N.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},M=n.useRef();return n.useEffect(()=>(M.current=(0,c.er)(()=>{k(t)}),()=>{c.er.cancel(M.current)}),[t]),n.createElement(w.Ay,{prefixCls:e,popupClassName:(0,l.$)(`${e}-popup`,{[`${e}-rtl`]:h},i,y),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:m,builtinPlacements:E,popupPlacement:_,popupVisible:S,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:u?[]:[v],mouseEnterDelay:f,mouseLeaveDelay:g,onPopupVisibleChange:p,forceRender:x,popupMotion:j,fresh:!0},r)}var _e=r(3057);function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ae.apply(this,arguments)}function Ne({id:e,open:t,keyPath:r,children:o}){const a="inline",{prefixCls:i,forceSubMenuRender:s,motion:l,defaultMotions:c,mode:u}=n.useContext(O),d=n.useRef(!1);d.current=u===a;const[p,m]=n.useState(!d.current),h=!!d.current&&t;n.useEffect(()=>{d.current&&m(!1)},[u]);const f={...Se(a,l,c)};r.length>1&&(f.motionAppear=!1);const g=f.onVisibleChanged;return f.onVisibleChanged=e=>(d.current||e||m(!0),g?.(e)),p?null:n.createElement(B,{mode:a,locked:!d.current},n.createElement(_e.Ay,Ae({visible:h},f,{forceRender:s,removeOnLeave:!1,leavedClassName:`${i}-hidden`}),({className:t,style:r})=>n.createElement(xe,{id:e,className:t,style:r},o)))}function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(this,arguments)}const Me=n.forwardRef((e,t)=>{const{style:r,className:o,styles:a,classNames:i,title:s,eventKey:c,warnKey:u,disabled:d,internalPopupClose:p,children:m,itemIcon:h,expandIcon:f,popupClassName:g,popupOffset:b,popupStyle:v,onClick:x,onMouseEnter:y,onMouseLeave:$,onTitleClick:C,onTitleMouseEnter:w,onTitleMouseLeave:S,popupRender:k,...E}=e,_=T(c),{prefixCls:A,mode:N,openKeys:j,disabled:M,overflowDisabled:z,activeKey:I,selectedKeys:R,itemIcon:L,expandIcon:H,onItemClick:D,onOpenChange:F,onActive:X,popupRender:G}=n.useContext(O),{_internalRenderSubMenuItem:K}=n.useContext(q),{isSubPathKey:U}=n.useContext(V),Y=W(),Q=`${A}-submenu`,Z=M||d,J=n.useRef(),ee=n.useRef(),te=h??L,re=f??H,ne=j.includes(c),oe=!z&&ne,ae=U(R,c),{active:ie,...pe}=le(c,Z,w,S),[me,he]=n.useState(!1),fe=e=>{Z||he(e)},ge=n.useMemo(()=>ie||"inline"!==N&&(me||U([I],c)),[N,ie,I,me,c,U]),be=ce(Y.length),ve=se(e=>{x?.(de(e)),D(e)}),ye=e=>{"inline"!==N&&F(c,e)},$e=_&&`${_}-popup`,Ce=n.useMemo(()=>n.createElement(ue,{icon:"horizontal"!==N?re:void 0,props:{...e,isOpen:oe,isSubMenu:!0}},n.createElement("i",{className:`${Q}-arrow`})),[N,re,e,oe,Q]);let we=n.createElement("div",je({role:"menuitem",style:be,className:`${Q}-title`,tabIndex:Z?null:-1,ref:J,title:"string"==typeof s?s:null,"data-menu-id":z&&_?null:_,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":$e,"aria-disabled":Z,onClick:e=>{Z||(C?.({key:c,domEvent:e}),"inline"===N&&F(c,!ne))},onFocus:()=>{X(c)}},pe),s,Ce);const Se=n.useRef(N);"inline"!==N&&Y.length>1?Se.current="vertical":Se.current=N;const ke=Se.current,_e=n.useMemo(()=>{const t=n.createElement(B,{classNames:i,styles:a,mode:"horizontal"===ke?"vertical":ke},n.createElement(xe,{id:$e,ref:ee},m)),r=k||G;return r?r(t,{item:e,keys:Y}):t},[k,G,Y,$e,m,e,ke]);if(!z){const e=Se.current;we=n.createElement(Ee,{mode:e,prefixCls:Q,visible:!p&&oe&&"inline"!==N,popupClassName:g,popupOffset:b,popupStyle:v,popup:_e,disabled:Z,onVisibleChange:ye},we)}let Ae=n.createElement(P.A.Item,je({ref:t,role:"none"},E,{component:"li",style:r,className:(0,l.$)(Q,`${Q}-${N}`,o,{[`${Q}-open`]:oe,[`${Q}-active`]:ge,[`${Q}-selected`]:ae,[`${Q}-disabled`]:Z}),onMouseEnter:e=>{fe(!0),y?.({key:c,domEvent:e})},onMouseLeave:e=>{fe(!1),$?.({key:c,domEvent:e})}}),we,!z&&n.createElement(Ne,{id:$e,open:oe,keyPath:Y},m));return K&&(Ae=K(Ae,e,{selected:ae,active:ge,open:oe,disabled:Z})),n.createElement(B,{classNames:i,styles:a,onItemClick:ve,mode:"horizontal"===N?"vertical":N,itemIcon:te,expandIcon:re},Ae)}),Pe=n.forwardRef((e,t)=>{const{eventKey:r,children:o}=e,a=W(r),i=ye(o,a),s=D();let l;return n.useEffect(()=>{if(s)return s.registerPath(r,a),()=>{s.unregisterPath(r,a)}},[a]),l=s?i:n.createElement(Me,je({ref:t},e),i),n.createElement(F.Provider,{value:a},l)});function ze({className:e,style:t}){const{prefixCls:r}=n.useContext(O);return D()?null:n.createElement("li",{role:"separator",className:(0,l.$)(`${r}-item-divider`,e),style:t})}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ie.apply(this,arguments)}const Re=n.forwardRef((e,t)=>{const{className:r,title:o,eventKey:a,children:i,...s}=e,{prefixCls:c,classNames:u,styles:d}=n.useContext(O),p=`${c}-item-group`;return n.createElement("li",Ie({ref:t,role:"presentation"},s,{onClick:e=>e.stopPropagation(),className:(0,l.$)(p,r)}),n.createElement("div",{role:"presentation",className:(0,l.$)(`${p}-title`,u?.listTitle),style:d?.listTitle,title:"string"==typeof o?o:void 0},o),n.createElement("ul",{role:"group",className:(0,l.$)(`${p}-list`,u?.list),style:d?.list},i))}),Te=n.forwardRef((e,t)=>{const{eventKey:r,children:o}=e,a=ye(o,W(r));return D()?a:n.createElement(Re,Ie({ref:t},(0,c.cJ)(e,["warnKey"])),a)});function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(this,arguments)}function Be(e,t,r){const{item:o,group:a,submenu:i,divider:s}=t;return(e||[]).map((e,l)=>{if(e&&"object"==typeof e){const{label:c,children:u,key:d,type:p,extra:m,...h}=e,f=d??`tmp-${l}`;if(u||"group"===p)return"group"===p?n.createElement(a,Oe({key:f},h,{title:c}),Be(u,t,r)):n.createElement(i,Oe({key:f},h,{title:c}),Be(u,t,r));if("divider"===p)return n.createElement(s,Oe({key:f},h));const g=!!m||0===m;return n.createElement(o,Oe({key:f},h,{extra:m,itemData:{...e,key:f}}),g?n.createElement(n.Fragment,null,n.createElement("span",{className:`${r}-item-label`},c),n.createElement("span",{className:`${r}-item-extra`},m)):c)}return null}).filter(e=>e)}function Le(e,t,r,n,o){let a=e;const i={divider:ze,item:ge,group:Te,submenu:Pe,...n};return t&&(a=Be(t,i,o)),ye(a,r)}function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},He.apply(this,arguments)}const De=[],Fe=n.forwardRef((e,t)=>{const{prefixCls:r="rc-menu",rootClassName:o,style:a,className:i,styles:s,classNames:u,tabIndex:d=0,items:p,children:m,direction:h,id:f,mode:g="vertical",inlineCollapsed:b,disabled:v,disabledOverflow:x,subMenuOpenDelay:y=.1,subMenuCloseDelay:$=.1,forceSubMenuRender:C,defaultOpenKeys:w,openKeys:S,activeKey:k,defaultActiveFirst:E,selectable:_=!0,multiple:A=!1,defaultSelectedKeys:N,selectedKeys:j,onSelect:M,onDeselect:R,inlineIndent:T=24,motion:O,defaultMotions:L,triggerSubMenuAction:D="hover",builtinPlacements:F,itemIcon:W,expandIcon:le,overflowedIndicator:ce="...",overflowedIndicatorPopupClassName:ue,getPopupContainer:pe,onClick:me,onOpenChange:he,onKeyDown:fe,openAnimation:be,openTransitionName:ve,_internalRenderMenuItem:xe,_internalRenderSubMenuItem:ye,_internalComponents:$e,popupRender:Ce,...we}=e,[Se,ke]=n.useMemo(()=>[Le(m,p,De,$e,r),Le(m,p,De,{},r)],[m,p,$e]),[Ee,_e]=n.useState(!1),Ae=n.useRef(),Ne=(0,c.Bi)(f?`rc-menu-uuid-${f}`:"rc-menu-uuid"),je="rtl"===h,[Me,ze]=(0,c.PW)(w,S),Ie=Me||De,Re=(e,t=!1)=>{function r(){ze(e),he?.(e)}t?(0,z.flushSync)(r):r()},[Te,Oe]=n.useState(Ie),Be=n.useRef(!1),[Fe,We]=n.useMemo(()=>"inline"!==g&&"vertical"!==g||!b?[g,!1]:["vertical",b],[g,b]),Ve="inline"===Fe,[qe,Xe]=n.useState(Fe),[Ge,Ke]=n.useState(We);n.useEffect(()=>{Xe(Fe),Ke(We),Be.current&&(Ve?ze(Te):Re(De))},[Fe,We]);const[Ue,Ye]=n.useState(0),Qe=Ue>=Se.length-1||"horizontal"!==qe||x;n.useEffect(()=>{Ve&&Oe(Ie)},[Ie]),n.useEffect(()=>(Be.current=!0,()=>{Be.current=!1}),[]);const{registerPath:Ze,unregisterPath:Je,refreshOverflowKeys:et,isSubPathKey:tt,getKeyPath:rt,getKeys:nt,getSubPathKeys:ot}=function(){const[,e]=n.useState({}),t=(0,n.useRef)(new Map),r=(0,n.useRef)(new Map),[o,a]=n.useState([]),i=(0,n.useRef)(0),s=(0,n.useRef)(!1),l=(0,n.useCallback)((n,o)=>{const a=ae(o);r.current.set(a,n),t.current.set(n,a),i.current+=1;const l=i.current;var c;c=()=>{l===i.current&&(s.current||e({}))},Promise.resolve().then(c)},[]),c=(0,n.useCallback)((e,n)=>{const o=ae(n);r.current.delete(o),t.current.delete(e)},[]),u=(0,n.useCallback)(e=>{a(e)},[]),d=(0,n.useCallback)((e,r)=>{const n=(t.current.get(e)||"").split(oe);return r&&o.includes(n[0])&&n.unshift(ie),n},[o]),p=(0,n.useCallback)((e,t)=>e.filter(e=>void 0!==e).some(e=>d(e,!0).includes(t)),[d]),m=(0,n.useCallback)(e=>{const n=`${t.current.get(e)}${oe}`,o=new Set;return[...r.current.keys()].forEach(e=>{e.startsWith(n)&&o.add(r.current.get(e))}),o},[]);return n.useEffect(()=>()=>{s.current=!0},[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:d,getKeys:()=>{const e=[...t.current.keys()];return o.length&&e.push(ie),e},getSubPathKeys:m}}(),at=n.useMemo(()=>({registerPath:Ze,unregisterPath:Je}),[Ze,Je]),it=n.useMemo(()=>({isSubPathKey:tt}),[tt]);n.useEffect(()=>{et(Qe?De:Se.slice(Ue+1).map(e=>e.key))},[Ue,Qe]);const[st,lt]=(0,c.PW)(k||E&&Se[0]?.key,k),ct=se(e=>{lt(e)}),ut=se(()=>{lt(void 0)});(0,n.useImperativeHandle)(t,()=>({list:Ae.current,focus:e=>{const t=nt(),{elements:r,key2element:n,element2key:o}=ne(t,Ne),a=te(Ae.current,r);let i;i=st&&t.includes(st)?st:a[0]?o.get(a[0]):Se.find(e=>!e.props.disabled)?.key;const s=n.get(i);i&&s&&s?.focus?.(e)},findItem:({key:e})=>{const t=nt(),{key2element:r}=ne(t,Ne);return r.get(e)||null}}));const[dt,pt]=(0,c.PW)(N||[],j),mt=n.useMemo(()=>Array.isArray(dt)?dt:null==dt?De:[dt],[dt]),ht=se(e=>{me?.(de(e)),(e=>{if(_){const{key:t}=e,r=mt.includes(t);let n;n=A?r?mt.filter(e=>e!==t):[...mt,t]:[t],pt(n);const o={...e,selectedKeys:n};r?R?.(o):M?.(o)}!A&&Ie.length&&"inline"!==qe&&Re(De)})(e)}),ft=se((e,t)=>{let r=Ie.filter(t=>t!==e);if(t)r.push(e);else if("inline"!==qe){const t=ot(e);r=r.filter(e=>!t.has(e))}(0,c.n4)(Ie,r,!0)||Re(r,!0)}),gt=function(e,t,r,o,a,i,s,l,u,d){const p=n.useRef(),m=n.useRef();m.current=t;const h=()=>{c.er.cancel(p.current)};return n.useEffect(()=>()=>{h()},[]),n=>{const{which:f}=n;if([...ee,Y,Q,Z,J].includes(f)){const d=i();let g=ne(d,o);const{elements:b,key2element:v,element2key:x}=g,y=function(e,t){let r=e||document.activeElement;for(;r;){if(t.has(r))return r;r=r.parentElement}return null}(v.get(t),b),$=x.get(y),C=function(e,t,r,n){const o="prev",a="next",i="children",s="parent";if("inline"===e&&n===Y)return{inlineTrigger:!0};const l={[K]:o,[U]:a},c={[X]:r?a:o,[G]:r?o:a,[U]:i,[Y]:i},u={[K]:o,[U]:a,[Y]:i,[Q]:s,[X]:r?i:s,[G]:r?s:i},d={inline:l,horizontal:c,vertical:u,inlineSub:l,horizontalSub:u,verticalSub:u},p=d[`${e}${t?"":"Sub"}`]?.[n];switch(p){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case i:return{offset:1,sibling:!1};default:return null}}(e,1===s($,!0).length,r,f);if(!C&&f!==Z&&f!==J)return;(ee.includes(f)||[Z,J].includes(f))&&n.preventDefault();const w=e=>{if(e){let t=e;const r=e.querySelector("a");r?.getAttribute("href")&&(t=r);const n=x.get(e);l(n),h(),p.current=(0,c.er)(()=>{m.current===n&&t.focus()})}};if([Z,J].includes(f)||C.sibling||!y){let t,r;t=y&&"inline"!==e?function(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):a.current;const n=te(t,b);r=f===Z?n[0]:f===J?n[n.length-1]:re(t,b,y,C.offset),w(r)}else if(C.inlineTrigger)u($);else if(C.offset>0)u($,!0),h(),p.current=(0,c.er)(()=>{g=ne(d,o);const e=y.getAttribute("aria-controls"),t=re(document.getElementById(e),g.elements);w(t)},5);else if(C.offset<0){const e=s($,!0),t=e[e.length-2],r=v.get(t);u(t,!1),w(r)}}d?.(n)}}(qe,st,je,Ne,Ae,nt,rt,lt,(e,t)=>{const r=t??!Ie.includes(e);ft(e,r)},fe);n.useEffect(()=>{_e(!0)},[]);const bt=n.useMemo(()=>({_internalRenderMenuItem:xe,_internalRenderSubMenuItem:ye}),[xe,ye]),vt="horizontal"!==qe||x?Se:Se.map((e,t)=>n.createElement(B,{key:e.key,overflowDisabled:t>Ue,classNames:u,styles:s},e)),xt=n.createElement(P.A,He({id:f,ref:Ae,prefixCls:`${r}-overflow`,component:"ul",itemComponent:ge,className:(0,l.$)(r,`${r}-root`,`${r}-${qe}`,i,{[`${r}-inline-collapsed`]:Ge,[`${r}-rtl`]:je},o),dir:h,style:a,role:"menu",tabIndex:d,data:vt,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,r=t?Se.slice(-t):null;return n.createElement(Pe,{eventKey:ie,title:ce,disabled:Qe,internalPopupClose:0===t,popupClassName:ue},r)},maxCount:"horizontal"!==qe||x?P.A.INVALIDATE:P.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{Ye(e)},onKeyDown:gt},we));return n.createElement(q.Provider,{value:bt},n.createElement(I.Provider,{value:Ne},n.createElement(B,{prefixCls:r,rootClassName:o,classNames:u,styles:s,mode:qe,openKeys:Ie,rtl:je,disabled:v,motion:Ee?O:null,defaultMotions:Ee?L:null,activeKey:st,onActive:ct,onInactive:ut,selectedKeys:mt,inlineIndent:T,subMenuOpenDelay:y,subMenuCloseDelay:$,forceSubMenuRender:C,builtinPlacements:F,triggerSubMenuAction:D,getPopupContainer:pe,itemIcon:W,expandIcon:le,onItemClick:ht,onOpenChange:ft,popupRender:Ce},n.createElement(V.Provider,{value:it},xt),n.createElement("div",{style:{display:"none"},"aria-hidden":!0},n.createElement(H.Provider,{value:at},ke)))))}),We=Fe;We.Item=ge,We.SubMenu=Pe,We.ItemGroup=Te,We.Divider=ze;const Ve=We;function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qe.apply(this,arguments)}const Xe=n.forwardRef((e,t)=>{const{prefixCls:r,id:o,tabs:a,locale:i,mobile:s,more:u={},style:d,className:p,editable:m,tabBarGutter:h,rtl:f,removeAriaLabel:g,onTabClick:b,getPopupContainer:v,popupClassName:y,popupStyle:C,classNames:w,styles:S}=e,[k,E]=(0,n.useState)(!1),[_,A]=(0,n.useState)(null),{icon:N="More"}=u,j=`${o}-more-popup`,P=`${r}-dropdown`,z=null!==_?`${j}-${_}`:null,I=i?.dropdownAriaLabel,R=n.createElement(Ve,{onClick:({key:e,domEvent:t})=>{b(e,t),E(!1)},prefixCls:`${P}-menu`,id:j,tabIndex:-1,role:"listbox","aria-activedescendant":z,selectedKeys:[_],"aria-label":void 0!==I?I:"expanded dropdown"},a.map(e=>{const{closable:t,disabled:r,closeIcon:a,key:i,label:s}=e,c=x(t,a,m,r);return n.createElement(ge,{key:i,id:`${j}-${i}`,role:"option","aria-controls":o&&`${o}-panel-${i}`,disabled:r},n.createElement("span",null,s),c&&n.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:(0,l.$)(`${P}-menu-item-remove`,w?.remove),style:S?.remove,onClick:e=>{e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,i)}},a||m.removeIcon||"×"))}));function T(e){const t=a.filter(e=>!e.disabled);let r=t.findIndex(e=>e.key===_)||0;const n=t.length;for(let o=0;o<n;o+=1){r=(r+e+n)%n;const o=t[r];if(!o.disabled)return void A(o.key)}}(0,n.useEffect)(()=>{const e=document.getElementById(z);e?.scrollIntoView&&e.scrollIntoView(!1)},[z,_]),(0,n.useEffect)(()=>{k||A(null)},[k]);const O={marginInlineStart:h};a.length||(O.visibility="hidden",O.order=1);const B=(0,l.$)(y,{[`${P}-rtl`]:f}),L=s?null:n.createElement(M,qe({prefixCls:P,overlay:R,visible:!!a.length&&k,onVisibleChange:E,overlayClassName:B,overlayStyle:C,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},u),n.createElement("button",{type:"button",className:`${r}-nav-more`,style:O,"aria-haspopup":"listbox","aria-controls":j,id:`${o}-more`,"aria-expanded":k,onKeyDown:function(e){const{which:t}=e;if(k)switch(t){case c.DD.UP:T(-1),e.preventDefault();break;case c.DD.DOWN:T(1),e.preventDefault();break;case c.DD.ESC:E(!1);break;case c.DD.SPACE:case c.DD.ENTER:null!==_&&b(_,e)}else[c.DD.DOWN,c.DD.SPACE,c.DD.ENTER].includes(t)&&(E(!0),e.preventDefault())}},N));return n.createElement("div",{className:(0,l.$)(`${r}-nav-operations`,p),style:d,ref:t},L,n.createElement($,{prefixCls:r,locale:i,editable:m}))}),Ge=n.memo(Xe,(e,t)=>t.tabMoving),Ke=e=>{const{prefixCls:t,id:r,active:o,focus:a,tab:{key:i,label:s,disabled:c,closeIcon:u,icon:d},closable:p,renderWrapper:m,removeAriaLabel:h,editable:f,onClick:g,onFocus:b,onBlur:y,onKeyDown:$,onMouseDown:C,onMouseUp:w,styles:S,classNames:k,tabCount:E,currentPosition:_}=e,A=`${t}-tab`,N=x(p,u,f,c);function j(e){c||g(e)}const M=n.useMemo(()=>d&&"string"==typeof s?n.createElement("span",null,s):s,[s,d]),P=n.useRef(null);n.useEffect(()=>{a&&P.current&&P.current.focus()},[a]);const z=n.createElement("div",{key:i,"data-node-key":v(i),className:(0,l.$)(A,k?.item,{[`${A}-with-remove`]:N,[`${A}-active`]:o,[`${A}-disabled`]:c,[`${A}-focus`]:a}),style:S?.item,onClick:j},n.createElement("div",{ref:P,role:"tab","aria-selected":o,id:r&&`${r}-tab-${i}`,className:`${A}-btn`,"aria-controls":r&&`${r}-panel-${i}`,"aria-disabled":c,tabIndex:c?null:o?0:-1,onClick:e=>{e.stopPropagation(),j(e)},onKeyDown:$,onMouseDown:C,onMouseUp:w,onFocus:b,onBlur:y},a&&n.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${_} of ${E}`),d&&n.createElement("span",{className:`${A}-icon`},d),s&&M),N&&n.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:o?0:-1,className:(0,l.$)(`${A}-remove`,k?.remove),style:S?.remove,onClick:e=>{var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),f.onEdit("remove",{key:i,event:t})}},u||f.removeIcon||"×"));return m?m(z):z};function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ue.apply(this,arguments)}const Ye=e=>{const{offsetWidth:t=0,offsetHeight:r=0}=e.current||{};if(e.current){const{width:r,height:n}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,n]}return[t,r]},Qe=(e,t)=>e[t?0:1],Ze=n.forwardRef((e,t)=>{const{className:r,style:a,id:i,animated:s,activeKey:y,rtl:w,extra:S,editable:k,locale:E,tabPosition:_,tabBarGutter:A,children:N,onTabClick:j,onTabScroll:M,indicator:P,classNames:z,styles:I}=e,{prefixCls:R,tabs:T}=n.useContext(u),O=(0,n.useRef)(null),B=(0,n.useRef)(null),L=(0,n.useRef)(null),H=(0,n.useRef)(null),D=(0,n.useRef)(null),F=(0,n.useRef)(null),W=(0,n.useRef)(null),V="top"===_||"bottom"===_,[q,X]=m(0,(e,t)=>{V&&M&&M({direction:e>t?"left":"right"})}),[G,K]=m(0,(e,t)=>{!V&&M&&M({direction:e>t?"top":"bottom"})}),[U,Y]=(0,n.useState)([0,0]),[Q,Z]=(0,n.useState)([0,0]),[J,ee]=(0,n.useState)([0,0]),[te,re]=(0,n.useState)([0,0]),[ne,oe]=function(e){const t=(0,n.useRef)([]),[,r]=(0,n.useState)({}),o=(0,n.useRef)("function"==typeof e?e():e),a=f(()=>{let e=o.current;t.current.forEach(t=>{e=t(e)}),t.current=[],o.current=e,r({})});return[o.current,function(e){t.current.push(e),a()}]}(new Map),ae=function(e,t,r){return(0,n.useMemo)(()=>{const r=new Map,n=t.get(e[0]?.key)||p,o=n.left+n.width;for(let n=0;n<e.length;n+=1){const{key:a}=e[n];let i=t.get(a);i||(i=t.get(e[n-1]?.key)||p);const s=r.get(a)||{...i};s.right=o-s.left-s.width,r.set(a,s)}return r},[e.map(e=>e.key).join("_"),t,r])}(T,ne,Q[0]),ie=Qe(U,V),se=Qe(Q,V),le=Qe(J,V),ce=Qe(te,V),ue=Math.floor(ie)<Math.floor(se+le),de=ue?ie-ce:ie-le,pe=`${R}-nav-operations-hidden`;let me=0,he=0;function fe(e){return e<me?me:e>he?he:e}V&&w?(me=0,he=Math.max(0,se-de)):(me=Math.min(0,de-se),he=0);const ge=(0,n.useRef)(null),[be,ve]=(0,n.useState)();function xe(){ve(Date.now())}function ye(){ge.current&&clearTimeout(ge.current)}!function(e,t){const[r,o]=(0,n.useState)(),[a,i]=(0,n.useState)(0),[s,l]=(0,n.useState)(0),[c,u]=(0,n.useState)(),d=(0,n.useRef)(),p=(0,n.useRef)(),m=(0,n.useRef)(null);m.current={onTouchStart:function(e){const{screenX:t,screenY:r}=e.touches[0];o({x:t,y:r}),window.clearInterval(d.current)},onTouchMove:function(e){if(!r)return;const{screenX:n,screenY:s}=e.touches[0];o({x:n,y:s});const c=n-r.x,d=s-r.y;t(c,d);const p=Date.now();i(p),l(p-a),u({x:c,y:d})},onTouchEnd:function(){if(r&&(o(null),u(null),c)){const e=c.x/s,r=c.y/s,n=Math.abs(e),o=Math.abs(r);if(Math.max(n,o)<.1)return;let a=e,i=r;d.current=window.setInterval(()=>{Math.abs(a)<.01&&Math.abs(i)<.01?window.clearInterval(d.current):(a*=h,i*=h,t(20*a,20*i))},20)}},onWheel:function(e){const{deltaX:r,deltaY:n}=e;let o=0;const a=Math.abs(r),i=Math.abs(n);a===i?o="x"===p.current?r:n:a>i?(o=r,p.current="x"):(o=n,p.current="y"),t(-o,-o)&&e.preventDefault()}},n.useEffect(()=>{function t(e){m.current.onTouchMove(e)}function r(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",r,{passive:!0}),e.current.addEventListener("touchstart",function(e){m.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){m.current.onWheel(e)},{passive:!1}),()=>{document.removeEventListener("touchmove",t),document.removeEventListener("touchend",r)}},[])}(H,(e,t)=>{function r(e,t){e(e=>fe(e+t))}return!!ue&&(V?r(X,e):r(K,t),ye(),xe(),!0)}),(0,n.useEffect)(()=>(ye(),be&&(ge.current=setTimeout(()=>{ve(0)},100)),ye),[be]);const[$e,Ce]=function(e,t,r,o,a,i,{tabs:s,tabPosition:l,rtl:c}){let u,d,p;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",p=Math.abs(r)):(u="height",d="top",p=-r),(0,n.useMemo)(()=>{if(!s.length)return[0,0];const r=s.length;let n=r;for(let o=0;o<r;o+=1){const r=e.get(s[o].key)||g;if(Math.floor(r[d]+r[u])>Math.floor(p+t)){n=o-1;break}}let o=0;for(let t=r-1;t>=0;t-=1)if((e.get(s[t].key)||g)[d]<p){o=t+1;break}return o>n?[0,-1]:[o,n]},[e,t,o,a,i,p,l,s.map(e=>e.key).join("_"),c])}(ae,de,V?q:G,se,le,ce,{...e,tabs:T}),we=(0,c._q)((e=y)=>{const t=ae.get(e)||{width:0,height:0,left:0,right:0,top:0};if(V){let e=q;w?t.right<q?e=t.right:t.right+t.width>q+de&&(e=t.right+t.width-de):t.left<-q?e=-t.left:t.left+t.width>-q+de&&(e=-(t.left+t.width-de)),K(0),X(fe(e))}else{let e=G;t.top<-G?e=-t.top:t.top+t.height>-G+de&&(e=-(t.top+t.height-de)),X(0),K(fe(e))}}),[Se,ke]=(0,n.useState)(),[Ee,_e]=(0,n.useState)(!1),Ae=T.filter(e=>!e.disabled).map(e=>e.key),Ne=e=>{const t=Ae.indexOf(Se||y),r=Ae.length,n=Ae[(t+e+r)%r];ke(n)},je=(e,t)=>{const r=Ae.indexOf(e),n=T.find(t=>t.key===e);x(n?.closable,n?.closeIcon,k,n?.disabled)&&(t.preventDefault(),t.stopPropagation(),k.onEdit("remove",{key:e,event:t}),r===Ae.length-1?Ne(-1):Ne(1))},Me=e=>{const{code:t}=e,r=w&&V,n=Ae[0],o=Ae[Ae.length-1];switch(t){case"ArrowLeft":V&&Ne(r?1:-1);break;case"ArrowRight":V&&Ne(r?-1:1);break;case"ArrowUp":e.preventDefault(),V||Ne(-1);break;case"ArrowDown":e.preventDefault(),V||Ne(1);break;case"Home":e.preventDefault(),ke(n);break;case"End":e.preventDefault(),ke(o);break;case"Enter":case"Space":e.preventDefault(),j(Se??y,e);break;case"Backspace":case"Delete":je(Se,e)}},Pe={};V?Pe.marginInlineStart=A:Pe.marginTop=A;const ze=T.map((e,t)=>{const{key:r}=e;return n.createElement(Ke,{id:i,prefixCls:R,key:r,tab:e,classNames:{item:z?.item,remove:z?.remove},styles:{item:0===t?I?.item:{...Pe,...I?.item},remove:I?.remove},closable:e.closable,editable:k,active:r===y,focus:r===Se,renderWrapper:N,removeAriaLabel:E?.removeAriaLabel,tabCount:Ae.length,currentPosition:t+1,onClick:e=>{j(r,e)},onKeyDown:Me,onFocus:()=>{Ee||ke(r),we(r),xe(),H.current&&(w||(H.current.scrollLeft=0),H.current.scrollTop=0)},onBlur:()=>{ke(void 0)},onMouseDown:e=>((e,t)=>{_e(!0),1===t.button&&je(e,t)})(r,e),onMouseUp:()=>{_e(!1)}})}),Ie=()=>oe(()=>{const e=new Map,t=D.current?.getBoundingClientRect();return T.forEach(({key:r})=>{const n=D.current?.querySelector(`[data-node-key="${v(r)}"]`);if(n){const[o,a,i,s]=((e,t)=>{const{offsetWidth:r,offsetHeight:n,offsetTop:o,offsetLeft:a}=e,{width:i,height:s,left:l,top:c}=e.getBoundingClientRect();return Math.abs(i-r)<1?[i,s,l-t.left,c-t.top]:[r,n,a,o]})(n,t);e.set(r,{width:o,height:a,left:i,top:s})}}),e});(0,n.useEffect)(()=>{Ie()},[T.map(e=>e.key).join("_")]);const Re=f(()=>{const e=Ye(O),t=Ye(B),r=Ye(L);Y([e[0]-t[0]-r[0],e[1]-t[1]-r[1]]);const n=Ye(W);ee(n);const o=Ye(F);re(o);const a=Ye(D);Z([a[0]-n[0],a[1]-n[1]]),Ie()}),Te=[...T.slice(0,$e),...T.slice(Ce+1)],Oe=ae.get(y),{style:Be}=(e=>{const{activeTabOffset:t,horizontal:r,rtl:a,indicator:i={}}=e,{size:s,align:l="center"}=i,[u,d]=(0,n.useState)(),p=(0,n.useRef)(),m=o().useCallback(e=>"function"==typeof s?s(e):"number"==typeof s?s:e,[s]);function h(){c.er.cancel(p.current)}return(0,n.useEffect)(()=>{const e={};if(t)if(r){e.width=m(t.width);const r=a?"right":"left";"start"===l&&(e[r]=t[r]),"center"===l&&(e[r]=t[r]+t.width/2,e.transform=a?"translateX(50%)":"translateX(-50%)"),"end"===l&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===l&&(e.top=t.top),"center"===l&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===l&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),p.current=(0,c.er)(()=>{u&&e&&Object.keys(e).every(t=>{const r=e[t],n=u[t];return"number"==typeof r&&"number"==typeof n?Math.round(r)===Math.round(n):r===n})||d(e)}),h},[JSON.stringify(t),r,a,l,m]),{style:u}})({activeTabOffset:Oe,horizontal:V,indicator:P,rtl:w});(0,n.useEffect)(()=>{we()},[y,me,he,b(Oe),b(ae),V]),(0,n.useEffect)(()=>{Re()},[w]);const Le=!!Te.length,He=`${R}-nav-wrap`;let De,Fe,We,Ve;return V?w?(Fe=q>0,De=q!==he):(De=q<0,Fe=q!==me):(We=G<0,Ve=G!==me),n.createElement(d.Ay,{onResize:Re},n.createElement("div",{ref:(0,c.xK)(t,O),role:"tablist","aria-orientation":V?"horizontal":"vertical",className:(0,l.$)(`${R}-nav`,r,z?.header),style:{...I?.header,...a},onKeyDown:()=>{xe()}},n.createElement(C,{ref:B,position:"left",extra:S,prefixCls:R}),n.createElement(d.Ay,{onResize:Re},n.createElement("div",{className:(0,l.$)(He,{[`${He}-ping-left`]:De,[`${He}-ping-right`]:Fe,[`${He}-ping-top`]:We,[`${He}-ping-bottom`]:Ve}),ref:H},n.createElement(d.Ay,{onResize:Re},n.createElement("div",{ref:D,className:`${R}-nav-list`,style:{transform:`translate(${q}px, ${G}px)`,transition:be?"none":void 0}},ze,n.createElement($,{ref:W,prefixCls:R,locale:E,editable:k,style:{...0===ze.length?void 0:Pe,visibility:Le?"hidden":null}}),n.createElement("div",{className:(0,l.$)(`${R}-ink-bar`,z?.indicator,{[`${R}-ink-bar-animated`]:s.inkBar}),style:{...Be,...I?.indicator}}))))),n.createElement(Ge,Ue({},e,{removeAriaLabel:E?.removeAriaLabel,ref:F,prefixCls:R,tabs:Te,className:!Le&&pe,popupStyle:I?.popup,tabMoving:!!be})),n.createElement(C,{ref:L,position:"right",extra:S,prefixCls:R})))}),Je=Ze,et=({renderTabBar:e,...t})=>e?e(t,Je):n.createElement(Je,t),tt=n.forwardRef((e,t)=>{const{prefixCls:r,className:o,style:a,id:i,active:s,tabKey:c,children:u}=e,d=n.Children.count(u)>0;return n.createElement("div",{id:i&&`${i}-panel-${c}`,role:"tabpanel",tabIndex:s&&d?0:-1,"aria-labelledby":i&&`${i}-tab-${c}`,"aria-hidden":!s,style:a,className:(0,l.$)(r,s&&`${r}-active`,o),ref:t},u)}),rt=tt;function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nt.apply(this,arguments)}const ot=e=>{const{id:t,activeKey:r,animated:o,tabPosition:a,destroyOnHidden:i,bodyStyle:s,bodyClassName:c,contentStyle:d,contentClassName:p}=e,{prefixCls:m,tabs:h}=n.useContext(u),f=o.tabPane,g=`${m}-body`,b=`${m}-content`;return n.createElement("div",{className:(0,l.$)(`${g}-holder`)},n.createElement("div",{className:(0,l.$)(g,`${g}-${a}`,{[`${g}-animated`]:f},c),style:s},h.map(e=>{const{key:a,forceRender:s,style:c,className:u,destroyOnHidden:m,...h}=e,g=a===r;return n.createElement(_e.Ay,nt({key:a,visible:g,forceRender:s,removeOnLeave:!!(i??m),leavedClassName:`${b}-hidden`},o.tabPaneMotion),({style:e,className:r},o)=>n.createElement(rt,nt({},h,{prefixCls:b,id:t,tabKey:a,animated:f,active:g,style:{...d,...c,...e},className:(0,l.$)(p,u,r),ref:o})))})))};function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},at.apply(this,arguments)}let it=0;const st=n.forwardRef((e,t)=>{const{id:r,prefixCls:o="rc-tabs",className:a,items:i,direction:s,activeKey:d,defaultActiveKey:p,editable:m,animated:h,tabPosition:f="top",tabBarGutter:g,tabBarStyle:b,tabBarExtraContent:v,locale:x,more:y,destroyOnHidden:$,renderTabBar:C,onChange:w,onTabClick:S,onTabScroll:k,getPopupContainer:E,popupClassName:_,indicator:A,classNames:N,styles:j,...M}=e,P=n.useMemo(()=>(i||[]).filter(e=>e&&"object"==typeof e&&"key"in e),[i]),z="rtl"===s,I=function(e={inkBar:!0,tabPane:!1}){let t;return t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:{inkBar:!0,..."object"==typeof e?e:{}},t.tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(h),[R,T]=(0,n.useState)(!1);(0,n.useEffect)(()=>{T((0,c.Fr)())},[]);const[O,B]=(0,c.PW)(p??P[0]?.key,d),[L,H]=(0,n.useState)(()=>P.findIndex(e=>e.key===O));(0,n.useEffect)(()=>{let e=P.findIndex(e=>e.key===O);-1===e&&(e=Math.max(0,Math.min(L,P.length-1)),B(P[e]?.key)),H(e)},[P.map(e=>e.key).join("_"),O,L]);const[D,F]=(0,c.PW)(null,r);(0,n.useEffect)(()=>{r||(F(`rc-tabs-${it}`),it+=1)},[]);const W={id:D,activeKey:O,animated:I,tabPosition:f,rtl:z,mobile:R},V={...W,editable:m,locale:x,more:y,tabBarGutter:g,onTabClick:function(e,t){S?.(e,t);const r=e!==O;B(e),r&&w?.(e)},onTabScroll:k,extra:v,style:b,getPopupContainer:E,popupClassName:(0,l.$)(_,N?.popup),indicator:A,styles:j,classNames:N},q=n.useMemo(()=>({tabs:P,prefixCls:o}),[P,o]);return n.createElement(u.Provider,{value:q},n.createElement("div",at({ref:t,id:r,className:(0,l.$)(o,`${o}-${f}`,{[`${o}-mobile`]:R,[`${o}-editable`]:m,[`${o}-rtl`]:z},a)},M),n.createElement(et,at({},V,{renderTabBar:C})),n.createElement(ot,at({destroyOnHidden:$},W,{bodyStyle:j?.body,bodyClassName:N?.body,contentStyle:j?.content,contentClassName:N?.content,animated:I}))))}),lt=st;var ct=r(992),ut=r(2279),dt=r(934),pt=r(829),mt=r(1685),ht=r(3723);const ft={motionAppear:!1,motionEnter:!0,motionLeave:!0};var gt=r(738),bt=r(5905),vt=r(3561),xt=r(7358),yt=r(485);const $t=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[(0,vt._j)(e,"slide-up"),(0,vt._j)(e,"slide-down")]]},Ct=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${(0,gt.zA)(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:(0,bt.jk)(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,gt.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,gt.zA)(e.borderRadiusLG)} ${(0,gt.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,gt.zA)(e.borderRadiusLG)} ${(0,gt.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,gt.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,gt.zA)(e.borderRadiusLG)} 0 0 ${(0,gt.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,gt.zA)(e.borderRadiusLG)} ${(0,gt.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},wt=e=>{const{antCls:t,componentCls:r,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${r}-dropdown`]:{...(0,bt.dF)(e),position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`&${t}-slide-down-enter${t}-slide-down-enter-active${r}-dropdown-placement-bottomLeft,\n &${t}-slide-down-appear${t}-slide-down-appear-active${r}-dropdown-placement-bottomLeft,\n &${t}-slide-down-enter${t}-slide-down-enter-active${r}-dropdown-placement-bottom,\n &${t}-slide-down-appear${t}-slide-down-appear-active${r}-dropdown-placement-bottom,\n &${t}-slide-down-enter${t}-slide-down-enter-active${r}-dropdown-placement-bottomRight,\n &${t}-slide-down-appear${t}-slide-down-appear-active${r}-dropdown-placement-bottomRight`]:{animationName:vt.ox},[`&${t}-slide-up-enter${t}-slide-up-enter-active${r}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${r}-dropdown-placement-topLeft,\n &${t}-slide-up-enter${t}-slide-up-enter-active${r}-dropdown-placement-top,\n &${t}-slide-up-appear${t}-slide-up-appear-active${r}-dropdown-placement-top,\n &${t}-slide-up-enter${t}-slide-up-enter-active${r}-dropdown-placement-topRight,\n &${t}-slide-up-appear${t}-slide-up-appear-active${r}-dropdown-placement-topRight`]:{animationName:vt.nP},[`&${t}-slide-down-leave${t}-slide-down-leave-active${r}-dropdown-placement-bottomLeft,\n &${t}-slide-down-leave${t}-slide-down-leave-active${r}-dropdown-placement-bottom,\n &${t}-slide-down-leave${t}-slide-down-leave-active${r}-dropdown-placement-bottomRight`]:{animationName:vt.vR},[`&${t}-slide-up-leave${t}-slide-up-leave-active${r}-dropdown-placement-topLeft,\n &${t}-slide-up-leave${t}-slide-up-leave-active${r}-dropdown-placement-top,\n &${t}-slide-up-leave${t}-slide-up-leave-active${r}-dropdown-placement-topRight`]:{animationName:vt.YU},[`${r}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,gt.zA)(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...bt.L9,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,gt.zA)(e.paddingXXS)} ${(0,gt.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},St=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i,motionDurationSlow:s,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,gt.zA)(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:["width","left","right"].map(e=>`${e} ${s}`).join(", ")}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:["height","top"].map(e=>`${e} ${s}`).join(", ")}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:(0,gt.zA)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,gt.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,gt.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},kt=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,cardHeightSM:o,cardHeightLG:a,horizontalItemPaddingSM:i,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,gt.zA)(e.borderRadius)} ${(0,gt.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,gt.zA)(e.borderRadius)} ${(0,gt.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,gt.zA)(e.borderRadius)} ${(0,gt.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,gt.zA)(e.borderRadius)} 0 0 ${(0,gt.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},Et=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:r}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...(0,bt.K8)(e)},"&:hover":{color:n},[`&${c}-active ${c}-btn`]:{color:s},[`&${c}-focus ${c}-btn:focus-visible`]:(0,bt.jk)(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},_t=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:o,calc:a}=e,i=`${t}-rtl`;return{[i]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},At=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:{...(0,bt.dF)(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${(0,gt.zA)(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${(0,gt.zA)(e.borderRadiusLG)} ${(0,gt.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i},...(0,bt.K8)(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...Et(e),[`${t}-body`]:{position:"relative",width:"100%"},[`${t}-body-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-content`]:{...(0,bt.K8)(e),"&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Nt=(0,xt.OF)("Tabs",e=>{const t=(0,yt.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,gt.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,gt.zA)(e.horizontalItemGutter)}`});return[kt(t),_t(t),St(t),wt(t),Ct(t),At(t),$t(t)]},e=>{const{cardHeight:t,cardHeightSM:r,cardHeightLG:n,controlHeight:o,controlHeightLG:a}=e,i=t||a,s=r||o,l=n||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),jt=n.forwardRef((e,t)=>{const{type:r,className:o,rootClassName:u,size:d,onEdit:p,hideAdd:m,centered:h,addIcon:f,removeIcon:g,moreIcon:b,more:v,popupClassName:x,children:y,items:$,animated:C,style:w,indicatorSize:S,indicator:k,classNames:E,styles:_,destroyInactiveTabPane:A,destroyOnHidden:N,tabPlacement:j,tabPosition:M,...P}=e,{prefixCls:z}=P,{getPrefixCls:I,direction:R,getPopupContainer:T,className:O,style:B,classNames:L,styles:H}=(0,ut.TP)("tabs"),{tabs:D}=n.useContext(ut.QO),F=I("tabs",z),W=(0,dt.A)(F),[V,q]=Nt(F,W),X=n.useRef(null);let G;n.useImperativeHandle(t,()=>({nativeElement:X.current})),"editable-card"===r&&(G={onEdit:(e,{key:t,event:r})=>{p?.("add"===e?r:t,e)},removeIcon:g??D?.removeIcon??n.createElement(a.A,null),addIcon:(f??D?.addIcon)||n.createElement(s.A,null),showAdd:!0!==m});const K=I(),U=(0,pt.A)(d),Y=function(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):function(e){return e.filter(e=>e)}((0,c.$r)(t).map(e=>{if(n.isValidElement(e)){const{key:t,props:r}=e,{tab:n,...o}=r||{};return{key:String(t),...o,label:n}}return null}))}($,y),Q=function(e,t={inkBar:!0,tabPane:!1}){let r;return r=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:{inkBar:!0,...(0,mt.Qd)(t)?t:{}},r.tabPane&&(r.tabPaneMotion={...ft,motionName:(0,ht.b)(e,"switch")}),r}(F,C),Z={align:k?.align??D?.indicator?.align,size:k?.size??S??D?.indicator?.size??D?.indicatorSize},J=n.useMemo(()=>{const e=j??M??void 0,t="rtl"===R;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[j,M,R]),ee={...e,size:U,tabPlacement:J,items:Y},te=(0,ct.XT)(B),re=(0,ct.XT)(w),[ne,oe]=(0,ct.AV)([L,E],[H,te,_,re],{props:ee},{popup:{_default:"root"}});return n.createElement(lt,{ref:X,direction:R,getPopupContainer:T,...P,items:Y,className:(0,l.$)({[`${F}-large`]:"large"===U,[`${F}-small`]:"small"===U,[`${F}-card`]:["card","editable-card"].includes(r),[`${F}-editable-card`]:"editable-card"===r,[`${F}-centered`]:h},O,o,u,ne.root,V,q,W),classNames:{...ne,popup:(0,l.$)(x,V,q,W,ne.popup?.root)},styles:oe,style:oe.root,editable:G,more:{icon:D?.more?.icon??D?.moreIcon??b??n.createElement(i.A,null),transitionName:`${K}-slide-up`,...v},prefixCls:F,animated:Q,indicator:Z,destroyOnHidden:N??A,tabPosition:J})}),Mt=jt;Mt.TabPane=()=>null;const Pt=Mt},9806(e,t,r){var n=r(1609),o=r.n(n),a=r(723);const i={token:a.A,override:{override:a.A},hashed:!0},s=o().createContext(i);r.d(t,["sb",0,i,"vG",0,s])},3950(e,t,r){r.d(t,["s",0,["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]])},5265(e,t,r){r.d(t,{A:()=>x});var n=r(738),o=r(5748),a=r(723),i=r(2923),s=r(3950);function l(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,p=t(c),m=t(n),h=t(o),f=t(a),g=t(l),b=r(u,d),v=e.colorLink||e.colorInfo,x=t(v),y=new i.Y(f[1]).mix(new i.Y(f[3]),50).toHexString(),$={};return s.s.forEach(r=>{const n=e[r];if(n){const e=t(n);$[`${r}Hover`]=e[5],$[`${r}Active`]=e[7]}}),{...b,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:y,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],...$,colorBgMask:new i.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const c=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function u(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return{motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+2*t).toFixed(1)}s`,motionDurationSlow:`${(r+3*t).toFixed(1)}s`,lineWidthBold:o+1,...c(n)}}const d=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};var p=r(4925);const m=e=>{const t=(0,p.A)(e),r=t.map(e=>e.size),n=t.map(e=>e.lineHeight),o=r[1],a=r[0],i=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function h(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const f=(e,t)=>new i.Y(e).setA(t).toRgbString(),g=(e,t)=>new i.Y(e).darken(t).toHexString(),b=e=>{const t=(0,o.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},v=(e,t,r)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorShadow:r||"#000",colorText:f(o,.88),colorTextSecondary:f(o,.65),colorTextTertiary:f(o,.45),colorTextQuaternary:f(o,.25),colorFill:f(o,.15),colorFillSecondary:f(o,.06),colorFillTertiary:f(o,.04),colorFillQuaternary:f(o,.02),colorBgSolid:f(o,1),colorBgSolidHover:f(o,.75),colorBgSolidActive:f(o,.95),colorBgLayout:g(n,4),colorBgContainer:g(n,0),colorBgElevated:g(n,0),colorBgSpotlight:f(o,.85),colorBgBlur:"transparent",colorBorder:g(n,15),colorBorderDisabled:g(n,15),colorBorderSecondary:g(n,6)}},x=(0,n.an)(function(e){o.uy.pink=o.uy.magenta,o.UA.pink=o.UA.magenta;const t=Object.keys(a.r).map(t=>{const r=e[t]===o.uy[t]?o.UA[t]:(0,o.cM)(e[t]);return Array.from({length:10},()=>1).reduce((e,n,o)=>(e[`${t}-${o+1}`]=r[o],e[`${t}${o+1}`]=r[o],e),{})}).reduce((e,t)=>({...e,...t}),{});return{...e,...t,...l(e,{generateColorPalettes:b,generateNeutralColorPalettes:v}),...m(e.fontSize),...h(e),...d(e),...u(e)}})},723(e,t,r){const n={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o={...n,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0};r.d(t,["A",0,o,"r",0,n])},4925(e,t,r){function n(e){return(e+8)/e}function o(e){const t=Array.from({length:10}).map((t,r)=>{const n=r-1,o=e*Math.E**(n/5),a=r>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(a/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:n(e)}))}r.d(t,{A:()=>o,k:()=>n})},8484(e,t,r){r.d(t,{Ay:()=>g,Is:()=>p});var n=r(1609),o=r.n(n),a=r(738),i=r(2279),s=r(9806),l=r(5265),c=r(723),u=r(2923),d=r(5045);const p={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},m={motionBase:!0,motionUnit:!0},h={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},f=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o,...a}=t;let i={...n,override:o};return i=function(e){const{override:t,...r}=e,n={...t};Object.keys(c.A).forEach(e=>{delete n[e]});const o={...r,...n},a=new u.Y(o.colorShadow),i=a.a,s=e=>a.clone().setA(i*e).toRgbString();if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:(0,d.A)(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:(0,d.A)(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:(0,d.A)(o.colorWarningBg,o.colorBgContainer),colorErrorAffix:o.colorError,colorWarningAffix:o.colorWarning,fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:(0,d.A)(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`\n 0 6px 16px 0 ${s(.08)},\n 0 3px 6px -4px ${s(.12)},\n 0 9px 28px 8px ${s(.05)}\n `,boxShadowSecondary:`\n 0 6px 16px 0 ${s(.08)},\n 0 3px 6px -4px ${s(.12)},\n 0 9px 28px 8px ${s(.05)}\n `,boxShadowTertiary:`\n 0 1px 2px 0 ${s(.05)},\n 0 1px 6px -1px ${s(.03)},\n 0 2px 4px 0 ${s(.03)}\n `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1919,screenXXXL:1920,screenXXXLMin:1920,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${s(.08)}) drop-shadow(0 3px 6px ${s(.12)}) drop-shadow(0 9px 28px ${s(.05)})`,boxShadowCard:`\n 0 1px 2px -2px ${s(.16)},\n 0 3px 6px 0 ${s(.12)},\n 0 5px 12px 4px ${s(.09)}\n `,boxShadowDrawerRight:`\n -6px 0 16px 0 ${s(.08)},\n -3px 0 6px -4px ${s(.12)},\n -9px 0 28px 8px ${s(.05)}\n `,boxShadowDrawerLeft:`\n 6px 0 16px 0 ${s(.08)},\n 3px 0 6px -4px ${s(.12)},\n 9px 0 28px 8px ${s(.05)}\n `,boxShadowDrawerUp:`\n 0 6px 16px 0 ${s(.08)},\n 0 3px 6px -4px ${s(.12)},\n 0 9px 28px 8px ${s(.05)}\n `,boxShadowDrawerDown:`\n 0 -6px 16px 0 ${s(.08)},\n 0 -3px 6px -4px ${s(.12)},\n 0 -9px 28px 8px ${s(.05)}\n `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...n}}(i),a&&Object.entries(a).forEach(([e,t])=>{const{theme:r,...n}=t;let o=n;r&&(o=f({...i,...n},{override:n},r)),i[e]=o}),i};function g(){const{token:e,hashed:t,theme:r,override:n,cssVar:u,zeroRuntime:d}=o().useContext(s.vG),{csp:g,getPrefixCls:b}=o().useContext(i.QO),v={prefix:u?.prefix??b(),key:u?.key??"css-var-root"},x=`6.5.0-${t||""}`,y=r||l.A,[$,C,w]=(0,a.hV)(y,[c.A,e],{salt:x,override:n,getComputedToken:f,cssVar:{...v,unitless:p,ignore:m,preserve:h},nonce:g?.nonce});return[y,w,t?C:"",$,v,!!d]}},1108(e,t,r){r.d(t,{A:()=>o});var n=r(3950);function o(e,t){return n.s.reduce((r,n)=>{const o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return{...r,...t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s})}},{})}},7358(e,t,r){var n=r(1609),o=r(485),a=r(2279),i=r(5905),s=r(8484);const{genStyleHooks:l,genComponentStyleHook:c,genSubStyleComponent:u}=(0,o.L_)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,n.useContext)(a.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o,a]=(0,s.Ay)();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o,zeroRuntime:a}},useCSP:()=>{const{csp:e}=(0,n.useContext)(a.QO);return e??{}},getResetStyles:(e,t)=>{const r=(0,i.av)(e);return[r,{"&":r},(0,i.jz)(t?.prefix.iconPrefixCls??a.pM)]},getCommonStyle:i.vj,getCompUnitless:()=>s.Is});r.d(t,["OF",0,l,"Or",0,c,"PN",0,(e,t)=>{const r=`--${e.replace(/\./g,"")}-${t}-`;return[e=>`${r}${e}`,(e,t)=>t?`var(${r}${e}, ${t})`:`var(${r}${e})`]},"bf",0,u])},5045(e,t,r){var n=r(2923);function o(e){return e>=0&&e<=255}r.d(t,["A",0,function(e,t){const{r,g:a,b:i,a:s}=new n.Y(e).toRgb();if(s<1)return e;const{r:l,g:c,b:u}=new n.Y(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((r-l*(1-e))/e),s=Math.round((a-c*(1-e))/e),d=Math.round((i-u*(1-e))/e);if(o(t)&&o(s)&&o(d))return new n.Y({r:t,g:s,b:d,a:Math.round(100*e)/100}).toRgbString()}return new n.Y({r,g:a,b:i,a:1}).toRgbString()}])},4220(e,t,r){r.d(t,{A:()=>m});var n=r(1609),o=r.n(n),a=r(9311),i=r(1685),s=r(3057),l=r(4164),c=r(682),u=r(2279);const d=({children:e})=>{const{getPrefixCls:t}=o().useContext(u.QO),r=t();return o().isValidElement(e)?o().createElement(s.Ay,{visible:!0,motionName:`${r}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:r})=>(0,c.Ob)(e,e=>({className:(0,l.$)(e.className,r),style:{...e.style,...t}}))):e},p=[null,null],m=({children:e})=>o().createElement(a.xR,{postTriggerProps:e=>{const{id:t,builtinPlacements:r,popup:n}=e,a=(0,i.Tn)(n)?n():n,s=function(e){if(p[0]!==e){const t={};Object.keys(e).forEach(r=>{t[r]={...e[r],dynamicInset:!1}}),p[0]=e,p[1]=t}return p[1]}(r);return{...e,getPopupContainer:null,arrow:!1,popup:o().createElement(d,{key:t},a),builtinPlacements:s}}},e)},8875(e,t,r){var n=r(1609),o=r.n(n);r.d(t,["A",0,(e,t)=>{const r=e=>"boolean"==typeof e?{show:e}:e||{};return o().useMemo(()=>{const n=r(e),o=r(t);return{...o,...n,show:n.show??o.show??!0}},[e,t])}])},6949(e,t,r){r.d(t,{A:()=>D});var n=r(1609),o=r.n(n),a=r(5781),i=r(6487),s=r(4164),l=r(2897),c=r(275),u=r(992),d=r(1685),p=r(3723),m=r(5201);const h={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},f={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},g=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);var b=r(682),v=r(8877),x=r(2616),y=r(2279),$=r(934);const C=o().createContext(!1);var w=r(8484),S=r(8875),k=r(738),E=r(5905),_=r(8680),A=r(9077),N=r(791),j=r(1108),M=r(485),P=r(7358);const z=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,dropShadowPopover:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:h,antCls:f}=e,[g,b]=(0,P.PN)(f,"tooltip"),v=t(i).add(h).add(p).equal(),x={minWidth:t(i).mul(2).add(h).equal(),minHeight:l,padding:`${(0,k.zA)(e.calc(u).div(2).equal())} ${(0,k.zA)(d)}`,color:b("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxSizing:"border-box"},y={[g("valid-offset-x")]:b("arrow-offset-x","var(--arrow-x)"),transformOrigin:[b("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" ")};return[{[r]:{...(0,E.dF)(e),position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible",filter:c,...y,"&-hidden":{display:"none"},[g("arrow-background-color")]:a,[`${r}-container`]:[x,(0,_.p9)(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[`${r}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(i,8)}},[`${r}-content`]:{position:"relative"},...(0,j.A)(e,(e,{darkColor:t})=>({[`&${r}-${e}`]:{[`${r}-container`]:{backgroundColor:t},[`${r}-arrow`]:{[g("arrow-background-color")]:t}}})),"&-rtl":{direction:"rtl"}}},(0,m.A)(e,b("arrow-background-color"),{arrowShadow:!1}),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${r}-unique-container`]:{...x,...y,position:"absolute",zIndex:t(s).sub(1).equal(),filter:c,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},I=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...(0,m.K)({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...(0,N.n)((0,M.oX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),R=(e,t,r=!0)=>(0,P.OF)("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:r,colorBgSpotlight:n,maxWidth:o}=e,a=(0,M.oX)(e,{tooltipMaxWidth:o,tooltipColor:r,tooltipBorderRadius:t,tooltipBg:n});return[z(a),(0,A.aB)(e,"zoom-big-fast")]},I,{resetStyle:!1,injectStyle:r})(e,t);r.dn(R);var T=r(4121),O=r(6058);const B=(e,t,r)=>{const n=(0,T.nP)(r),[o]=(0,P.PN)(e,"tooltip"),a=(0,s.$)({[`${t}-${r}`]:r&&n}),i={},l={},c=(0,O.Z6)(r).toRgb(),u=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return r&&!n&&(i.background=r,i[o("overlay-color")]=u,l[o("arrow-background-color")]=r),{className:a,overlayStyle:i,arrowStyle:l}};var L=r(4220);const H=n.forwardRef((e,t)=>{const{prefixCls:r,openClassName:o,getTooltipContainer:k,color:E,children:_,afterOpenChange:A,arrow:N,destroyTooltipOnHide:j,destroyOnHidden:M,title:P,overlay:z,trigger:I,builtinPlacements:T,autoAdjustOverflow:O=!0,motion:L,getPopupContainer:H,placement:D="top",mouseEnterDelay:F=.1,mouseLeaveDelay:W=.1,rootClassName:V,styles:q,classNames:X,onOpenChange:G,overlayInnerStyle:K,overlayStyle:U,overlayClassName:Y,...Q}=e,[,Z]=(0,w.Ay)(),J=e["data-popover-inject"],{getPopupContainer:ee,getPrefixCls:te,direction:re,...ne}=(0,y.TP)("tooltip"),{className:oe,style:ae,classNames:ie,styles:se,arrow:le,trigger:ce}=J?{}:ne,ue=(0,S.A)(N,le),de=ue.show,pe=I||ce||"hover",me=H||ee,he=M??!!j,fe=n.useContext(C),ge=((0,v.rJ)("Tooltip"),n.useRef(null)),be=()=>{ge.current?.forceAlign()};n.useImperativeHandle(t,()=>({forceAlign:be,nativeElement:ge.current?.nativeElement,popupElement:ge.current?.popupElement}));const[ve,xe]=(0,i.PW)(e.defaultOpen??!1,e.open),ye=!P&&!z&&0!==P,$e=n.useMemo(()=>T||function(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={},c=(0,m.K)({contentRadius:a,limitVerticalRadius:!0});return Object.keys(h).forEach(e=>{const a={...n&&f[e]||h[e],offset:[0,0],dynamicInset:!0};switch(l[e]=a,g.has(e)&&(a.autoArrow=!1),e){case"top":case"topLeft":case"topRight":a.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":a.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":a.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":a.offset[0]=s+o}if(n)switch(e){case"topLeft":case"bottomLeft":a.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":a.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":a.offset[1]=2*-c.arrowOffsetHorizontal+s;break;case"leftBottom":case"rightBottom":a.offset[1]=2*c.arrowOffsetHorizontal-s}a.overflow=function(e,t,r,n){if(!1===n)return{adjustX:!1,adjustY:!1};const o=(0,d.Qd)(n)?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.arrowOffsetHorizontal+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.arrowOffsetVertical+r,a.shiftX=!0,a.adjustX=!0}const i={...a,...o};return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,c,t,r),i&&(a.htmlRegion="visibleFirst")}),l}({arrowPointAtCenter:ue?.pointAtCenter??!1,autoAdjustOverflow:O,arrowWidth:de?Z.sizePopupArrow:0,borderRadius:Z.borderRadius,offset:Z.marginXXS,visibleFirst:!0}),[ue,T,Z,de,O]),Ce=n.useMemo(()=>0===P?P:z||P||"",[z,P]),we=n.createElement(l.A,{space:!0,form:!0},(0,d.Tn)(Ce)?Ce():Ce),Se={...e,trigger:pe,builtinPlacements:$e,getPopupContainer:me,destroyOnHidden:he},[ke,Ee]=(0,u.AV)([ie,X],[se,q],{props:Se}),_e=te("tooltip",r),Ae=te();let Ne=ve;(!("open"in e)&&ye||fe)&&(Ne=!1);const je=n.isValidElement(_)&&!(0,b.zv)(_)?_:n.createElement("span",null,_),Me=je.props,Pe=Me.className&&"string"!=typeof Me.className?Me.className:(0,s.$)(Me.className,o||`${_e}-open`),ze=(0,$.A)(_e),[Ie,Re]=R(_e,ze,!J),Te=B(Ae,_e,E),Oe=Te.arrowStyle,Be=(0,s.$)(ze,Ie,Re),Le=(0,s.$)(Y,{[`${_e}-rtl`]:"rtl"===re},Te.className,V,Be,oe,ke.root),[He,De]=(0,c.YK)("Tooltip",Q.zIndex),Fe={...Ee.container,...K,...Te.overlayStyle},We=n.createElement(a.A,{unique:!0,...Q,zIndex:He,showArrow:de,placement:D,mouseEnterDelay:F,mouseLeaveDelay:W,prefixCls:_e,classNames:{root:Le,container:ke.container,arrow:ke.arrow,uniqueContainer:(0,s.$)(Be,ke.container)},styles:{root:{...Oe,...Ee.root,...ae,...U},container:Fe,uniqueContainer:Fe,arrow:Ee.arrow},ref:ge,overlay:we,visible:Ne,onVisibleChange:e=>{xe(!ye&&e),!ye&&G&&G(e)},afterVisibleChange:A,arrowContent:n.createElement("span",{className:`${_e}-arrow-content`}),motion:{motionName:(0,p.b)(Ae,"zoom-big-fast","string"==typeof L?.motionName?L?.motionName:void 0),motionDeadline:1e3},trigger:pe,builtinPlacements:$e,getTooltipContainer:me,destroyOnHidden:he},Ne?(0,b.Ob)(je,{className:Pe}):je);return n.createElement(x.A.Provider,{value:De},We)});H._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:r,placement:o="top",title:i,color:l,overlayInnerStyle:c,classNames:d,styles:p}=e,{getPrefixCls:m}=n.useContext(y.QO),h=m("tooltip",t),f=m(),g=(0,$.A)(h),[b,v]=R(h,g),x=B(f,h,l),C=x.arrowStyle,w=n.useMemo(()=>({container:{...c,...x.overlayStyle}}),[c,x.overlayStyle]),S={...e,placement:o},[k,E]=(0,u.AV)([d],[w,p],{props:S}),_=(0,s.$)(g,b,v,h,`${h}-pure`,`${h}-placement-${o}`,r,x.className);return n.createElement("div",{className:_,style:C},n.createElement("div",{className:`${h}-arrow`}),n.createElement(a.z,{...e,className:b,prefixCls:h,classNames:k,styles:E},i))},H.UniqueProvider=L.A;const D=H},8055(e,t,r){r.d(t,{A:()=>se});var n=r(1609),o=r(5458),a=r(4824),i=r(73),s=r(6487),l=r(4164),c=r(1685),u=r(9155),d=r(6949),p=r(1078),m=r(6695);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}const f=(e,t)=>n.createElement(m.A,h({},e,{ref:t,icon:p.A})),g=n.forwardRef(f);var b=r(682),v=r(2322),x=r(5905),y=r(7358),$=r(5748),C=r(738);const w=e=>{const t={};return[1,2,3,4,5].forEach(r=>{t[`\n h${r}&,\n div&-h${r},\n div&-h${r} > textarea,\n h${r}\n `]=((e,t,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:a}=n;return{marginBottom:o,color:r,fontWeight:a,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),t},S=e=>{const{componentCls:t}=e,r=`${t}-link`;return{[`&${r}`]:{...(0,x.Y1)(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}},k=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:$.bK[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:(0,C.zA)(e.padding),overflowWrap:"break-word",borderBottom:`${(0,C.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),E=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},_=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),A=(0,y.OF)("Typography",e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...w(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:r},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:r}},...k(e),...S(e),[`${t}-actions`]:{display:"inline"},[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:{...(0,x.Y1)(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy:not(${t}-copy-icon-only)\n `]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...E(e),..._(e),"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...x.L9,"a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"},"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),N=e=>{const{prefixCls:t,"aria-label":r,className:o,style:a,classNames:i,styles:c,direction:u,maxLength:d,autoSize:p=!0,value:m,onSave:h,onCancel:f,onEnd:x,component:y,enterIcon:$=n.createElement(g,null)}=e,C=n.useRef(null),w=n.useRef(!1),S=n.useRef(null),[k,E]=n.useState(m);n.useEffect(()=>{E(m)},[m]),n.useEffect(()=>{if(C.current?.resizableTextArea){const{textArea:e}=C.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const _=()=>{h(k.trim())},[N,j]=A(t),M=(0,l.$)(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===u,[`${t}-${y}`]:!!y},o,i.root,N,j);return n.createElement("div",{className:M,style:{...c.root,...a}},n.createElement(v.A,{ref:C,maxLength:d,value:k,onChange:({target:e})=>{E(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{w.current||(S.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:r,metaKey:n,shiftKey:o})=>{S.current!==e||w.current||t||r||n||o||(e===s.DD.ENTER?(_(),x?.()):e===s.DD.ESC&&f())},onCompositionStart:()=>{w.current=!0},onCompositionEnd:()=>{w.current=!1},onBlur:()=>{_()},"aria-label":r,rows:1,autoSize:p,className:i.textarea,style:c.textarea}),null!==$?(0,b.Ob)($,{className:`${t}-edit-content-confirm`}):null)},j=(e,t={})=>!(0,c.R)(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],M=({copyConfig:e,children:t})=>{const[r,o]=n.useState(!1),[a,i]=n.useState(!1),l=n.useRef(null),u=()=>{l.current&&clearTimeout(l.current)},d={};return e.format&&(d.format=e.format),n.useEffect(()=>u,[]),{copied:r,copyLoading:a,onClick:(0,s._q)(async r=>{r?.preventDefault(),r?.stopPropagation(),i(!0);try{const n=(0,c.Tn)(e.text)?await e.text():e.text;await async function(e,t){if("string"!=typeof e)return!1;const r="text/html"===t?.format;return!!await(async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}})(e,r)||!!((e,t)=>{let r=!1;const n=n=>{n.stopPropagation(),n.preventDefault(),n.clipboardData?.clearData(),n.clipboardData?.setData("text/plain",e),t&&n.clipboardData?.setData("text/html",e),r=!0};try{return document.addEventListener("copy",n,{capture:!0}),document.execCommand("copy"),r}catch{return!1}finally{document.removeEventListener("copy",n,{capture:!0})}})(e,r)}(n||j(t,{skipEmpty:!0}).join("")||"",d),i(!1),o(!0),u(),l.current=setTimeout(()=>{o(!1)},3e3),e.onCopy?.(r)}catch(e){throw i(!1),e}})}},P=(e,t)=>{const r=Boolean(e);return n.useMemo(()=>{const n={...t,...r&&(0,c.Qd)(e)?e:null};return[r,n]},[r,e,t])};var z=r(992),I=r(2279);const R=(e,t,r,o,a)=>{const{getPrefixCls:i,direction:s,className:l,style:c,classNames:u,styles:d}=(0,I.TP)("typography"),p=o??s,m=i("typography",e),h={...a,prefixCls:m,direction:p},f=(0,n.useMemo)(()=>({root:l}),[l]),g=(0,n.useMemo)(()=>({root:c}),[c]),[b,v]=(0,z.AV)([f,u,t],[g,d,r],{props:h});return[b,v,m,p]},T=n.forwardRef((e,t)=>{const{component:r="article",className:o,rootClassName:a,children:i,direction:s,style:c,classNames:u,styles:d,prefixCls:p,...m}=e,[h,f]=A(p),g=(0,l.$)(p,{[`${p}-rtl`]:"rtl"===s},o,a,h,f,u?.root),b={...d?.root,...c};return n.createElement(r,{...m,className:g,style:b,ref:t},i)}),O=n.forwardRef((e,t)=>{const{prefixCls:r,className:o,rootClassName:a,direction:i,classNames:s,styles:c,...u}=e,[d,p,m,h]=R(r,s,c,i,e);return n.createElement(T,{ref:t,className:(0,l.$)(o,a),direction:h,classNames:d,styles:p,prefixCls:m,...u})});var B=r(7906),L=r(513),H=r(6962);const D=e=>!1===e?[!1,!1]:j(e);function F(e,t,r){return!0===e||void 0===e?t:e||r&&t}const W=e=>["string","number"].includes(typeof e),V=e=>{const{prefixCls:t,copied:r,locale:o,iconOnly:a,tooltips:i,icon:s,tabIndex:c,onCopy:u,loading:p,className:m,style:h}=e,f=D(i),g=D(s),{copied:b,copy:v}=o??{},x=r?b:v,y=F(f[r?1:0],x),$="string"==typeof y?y:x;return n.createElement(d.A,{title:y},n.createElement("button",{type:"button",className:(0,l.$)(`${t}-copy`,m,{[`${t}-copy-success`]:r,[`${t}-copy-icon-only`]:a}),style:h,onClick:u,"aria-label":$,tabIndex:c},r?F(g[1],n.createElement(B.A,null),!0):F(g[0],p?n.createElement(H.A,null):n.createElement(L.A,null),!0)))},q=n.forwardRef(({style:e,children:t},r)=>{const o=n.useRef(null);return n.useImperativeHandle(r,()=>({isExceed:()=>{const e=o.current;return e.scrollHeight>e.clientHeight},getHeight:()=>o.current.clientHeight})),n.createElement("span",{"aria-hidden":!0,ref:o,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)});function X(e,t){let r=0;const n=[];for(let o=0;o<e.length;o+=1){if(r===t)return n;const a=e[o],i=r+(W(a)?String(a).length:1);if(i>t){const e=t-r;return n.push(String(a).slice(0,e)),n}n.push(a),r=i}return e}const G=0,K=4,U={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Y(e){const{enableMeasure:t,width:r,text:a,children:i,rows:l,expanded:c,measureDeps:u,miscDeps:d,onEllipsis:p}=e,m=n.useMemo(()=>(0,s.$r)(a),[a]),h=n.useMemo(()=>(e=>e.reduce((e,t)=>e+(W(t)?String(t).length:1),0))(m),[a]),f=n.useMemo(()=>i(m,!1),[a].concat((0,o.A)(u))),[g,b]=n.useState(null),v=n.useRef(null),x=n.useRef(null),y=n.useRef(null),$=n.useRef(null),C=n.useRef(null),[w,S]=n.useState(!1),[k,E]=n.useState(G),[_,A]=n.useState(0),[N,j]=n.useState(null);(0,s.Nf)(()=>{E(t&&r&&h?1:G)},[r,a,l,t,m].concat((0,o.A)(u))),(0,s.Nf)(()=>{if(1===k){E(2);const e=x.current&&getComputedStyle(x.current).whiteSpace;j(e)}else if(2===k){const e=!!y.current?.isExceed();E(e?3:K),b(e?[0,h]:null),S(e);const t=y.current?.getHeight()||0,r=1===l?0:$.current?.getHeight()||0,n=C.current?.getHeight()||0,o=Math.max(t,r+n);A(o+1),p(e)}},[k]);const M=g?Math.ceil((g[0]+g[1])/2):0;(0,s.Nf)(()=>{const[e,t]=g||[0,0];if(e!==t){const r=(v.current?.getHeight()||0)>_;let n=M;t-e===1&&(n=r?e:t),b(r?[e,n]:[n,t])}},[g,M]);const P=n.useMemo(()=>{if(!t)return i(m,!1);if(3!==k||!g||g[0]!==g[1]){const e=i(m,!1);return[K,G].includes(k)?e:n.createElement("span",{style:{...U,WebkitLineClamp:l}},e)}return i(c?m:X(m,g[0]),w)},[c,k,g,m].concat((0,o.A)(d))),z={width:r,margin:0,padding:0,whiteSpace:"nowrap"===N?"normal":"inherit"};return n.createElement(n.Fragment,null,P,2===k&&n.createElement(n.Fragment,null,n.createElement(q,{style:{...z,...U,WebkitLineClamp:l},ref:y},f),n.createElement(q,{style:{...z,...U,WebkitLineClamp:l-1},ref:$},f),n.createElement(q,{style:{...z,...U,WebkitLineClamp:1},ref:C},i([],!0))),3===k&&g&&g[0]!==g[1]&&n.createElement(q,{style:{...z,top:400},ref:v},i(X(m,M),!0)),1===k&&n.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const Q=({enableEllipsis:e,isEllipsis:t,open:r,children:o,tooltipProps:a})=>{if(!a?.title||!e)return o;const i=r&&t;return n.createElement(d.A,{open:i,...a},o)},Z=["delete","mark","code","underline","strong","keyboard","italic"],J=n.forwardRef((e,t)=>{const{prefixCls:r,className:p,style:m,classNames:h,styles:f,direction:g,type:b,disabled:v,children:x,ellipsis:y,editable:$,copyable:C,actions:w,component:S,title:k,onMouseEnter:E,onMouseLeave:_,...A}=e,[j]=(0,u.A)("Text"),z=n.useRef(null),I=n.useRef(null),[O,B,L,H]=R(r,h,f,g,e),D=(0,s.cJ)(A,Z),[F,q]=P($),[X,G]=(0,s.PW)(!1,q.editing),{triggerType:K=["icon"]}=q,U=e=>{e&&q.onStart?.(),G(e)},J=(e=>{const t=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{t.current=e}),t.current})(X);(0,s.Nf)(()=>{!X&&J&&I.current?.focus()},[X]);const ee=e=>{e?.preventDefault(),U(!0)},[te,re]=P(C),{placement:ne="end"}=w??{},{copied:oe,copyLoading:ae,onClick:ie}=M({copyConfig:re,children:x}),[se,le]=n.useState(!1),[ce,ue]=n.useState(!1),[de,pe]=n.useState(!1),[me,he]=n.useState(!1),[fe,ge]=n.useState(!0),[be,ve]=P(y,{expandable:!1,symbol:e=>e?j?.collapse:j?.expand}),[xe,ye]=(0,s.PW)(ve.defaultExpanded||!1,ve.expanded),$e=be&&(!xe||"collapsible"===ve.expandable),{rows:Ce=1}=ve,we=n.useMemo(()=>$e&&(void 0!==ve.suffix||ve.onEllipsis||ve.expandable||F||te),[$e,ve,F,te]);(0,s.Nf)(()=>{be&&!we&&(le((0,s.Fq)("webkitLineClamp")),ue((0,s.Fq)("textOverflow")))},[we,be]);const[Se,ke]=n.useState($e),Ee=n.useMemo(()=>!we&&(1===Ce?ce:se),[we,ce,se]);(0,s.Nf)(()=>{ke(Ee&&$e)},[Ee,$e]);const _e=((e,t,r)=>(0,n.useMemo)(()=>!0===e?{title:t??r}:(0,n.isValidElement)(e)?{title:e}:(0,c.Qd)(e)?{title:t??r,...e}:{title:e},[e,t,r]))(ve.tooltip,q.text,x),Ae=Se&&!!_e.title,Ne=$e&&(Se?Ae&&me:de),je=$e&&1===Ce&&Se,Me=$e&&Ce>1&&Se,[Pe,ze]=n.useState(0),[Ie,Re]=n.useState(!1),[Te,Oe]=n.useState(!1),Be=e=>{pe(e),de!==e&&ve.onEllipsis?.(e)};n.useEffect(()=>{const e=z.current;if(be&&Ae&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}(e);me!==t&&he(t)}},[be,Ae,x,Me,fe,Pe]),n.useEffect(()=>{const e=z.current;if("undefined"==typeof IntersectionObserver||!e||!Ae||!$e)return;const t=new IntersectionObserver(()=>{ge(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[Ae,$e]);const Le=n.useMemo(()=>{if(be&&!Se)return[q.text,x,k,_e.title].find(W)},[be,Se,k,_e.title,Ne]);if(X)return n.createElement(N,{value:q.text??("string"==typeof x?x:""),onSave:e=>{q.onChange?.(e),U(!1)},onCancel:()=>{q.onCancel?.(),U(!1)},onEnd:q.onEnd,prefixCls:L,className:p,style:m,direction:H,component:S,maxLength:q.maxLength,autoSize:q.autoSize,enterIcon:q.enterIcon,classNames:O,styles:B});const He=e=>{const t=e&&(()=>{const{expandable:e,symbol:t}=ve;return e?n.createElement("button",{type:"button",key:"expand",className:(0,l.$)(`${L}-${xe?"collapse":"expand"}`,O.action),style:B.action,onClick:e=>((e,t)=>{ye(t.expanded),ve.onExpand?.(e,t)})(e,{expanded:!xe}),"aria-label":xe?j.collapse:j?.expand},(0,c.Tn)(t)?t(xe):t):null})(),r=(()=>{if(!F)return;const{icon:e,tooltip:t,tabIndex:r}=q,o=(0,s.$r)(t)[0]||j?.edit,i="string"==typeof o?o:"";return K.includes("icon")?n.createElement(d.A,{key:"edit",title:!1===t?"":o},n.createElement("button",{type:"button",ref:I,className:(0,l.$)(`${L}-edit`,O.action),style:B.action,onClick:ee,"aria-label":i,tabIndex:r},e||n.createElement(a.A,{role:"button"}))):null})(),o=te?n.createElement(V,{key:"copy",...re,prefixCls:L,copied:oe,locale:j,onCopy:ie,loading:ae,iconOnly:!(0,c.AZ)(x),className:O.action,style:B.action}):null;return t||r||o?n.createElement("span",{key:"operations",className:(0,l.$)(`${L}-actions`,O.actions,{[`${L}-actions-start`]:"start"===ne}),style:B.actions,onMouseEnter:()=>Re(!0),onMouseLeave:()=>Re(!1)},t,r,o):null};return n.createElement(i.Ay,{onResize:({offsetWidth:e})=>{ze(e)},disabled:!$e},r=>n.createElement(Q,{tooltipProps:_e,enableEllipsis:$e,isEllipsis:Ne,open:Te&&!Ie},n.createElement(T,{onMouseEnter:e=>{Oe(!0),E?.(e)},onMouseLeave:e=>{Oe(!1),_?.(e)},className:(0,l.$)({[`${L}-${b}`]:b,[`${L}-disabled`]:v,[`${L}-ellipsis`]:be,[`${L}-ellipsis-single-line`]:je,[`${L}-ellipsis-multiple-line`]:Me,[`${L}-link`]:"a"===S},p),classNames:O,styles:B,prefixCls:L,style:{...m,WebkitLineClamp:Me?Ce:void 0},component:S,ref:(0,s.K4)(r,z,t),direction:H,onClick:K.includes("text")?ee:void 0,"aria-label":Le?.toString(),title:k,...D},n.createElement(Y,{enableMeasure:$e&&!Se,text:x,rows:Ce,width:Pe,onEllipsis:Be,expanded:xe,measureDeps:[ne],miscDeps:[oe,xe,ae,F,te,ne,j].concat((0,o.A)(Z.map(t=>e[t])))},(t,r)=>function({mark:e,code:t,underline:r,delete:o,strong:a,keyboard:i,italic:s},l){let c=l;function u(e,t){t&&(c=n.createElement(e,{},c))}return u("strong",a),u("u",r),u("del",o),u("code",t),u("mark",e),u("kbd",i),u("i",s),c}(e,n.createElement(n.Fragment,null,"start"===ne?He(r):null,t.length>0&&r&&!xe&&Le?n.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!xe&&n.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ve.suffix])(r),"start"===ne?null:He(r)))))))}),ee=J,te=n.forwardRef((e,t)=>{const{ellipsis:r,rel:o,children:a,navigate:i,...s}=e,l={...s,rel:void 0===o&&"_blank"===s.target?"noopener noreferrer":o};return n.createElement(ee,{...l,ref:t,ellipsis:!!r,component:"a"},a)}),re=n.forwardRef((e,t)=>{const{children:r,...o}=e;return n.createElement(ee,{ref:t,...o,component:"div"},r)}),ne=n.forwardRef((e,t)=>{const{ellipsis:r,children:o,...a}=e,i=n.useMemo(()=>(0,c.Qd)(r)?(0,s.cJ)(r,["expandable","rows"]):r,[r]);return n.createElement(ee,{ref:t,...a,ellipsis:i,component:"span"},o)}),oe=[1,2,3,4,5],ae=n.forwardRef((e,t)=>{const{level:r=1,children:o,...a}=e,i=oe.includes(r)?`h${r}`:"h1";return n.createElement(ee,{ref:t,...a,component:i},o)}),ie=O;ie.Text=ne,ie.Link=te,ie.Title=ae,ie.Paragraph=re;const se=ie},9488(e,t,r){var n=r(6087),o=r(7723),a=r(790);const i=({children:e,...t})=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",style:{display:"inline-block",verticalAlign:"-0.125em"},...t,children:e}),s=({color:e="#e25555",...t})=>(0,a.jsx)(i,{...t,fill:e,children:(0,a.jsx)("path",{d:"M12 21.2S3.5 15.6 3.5 9.9A4.7 4.7 0 0 1 12 7a4.7 4.7 0 0 1 8.5 2.9c0 5.7-8.5 11.3-8.5 11.3z"})});r.d(t,["G8",0,e=>(0,a.jsxs)(i,{...e,children:[(0,a.jsx)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M4 21.5l5-13 8 8-13 5z"})}),(0,a.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.4",children:[(0,a.jsx)("circle",{cx:"15",cy:"4",r:"1.5"}),(0,a.jsx)("circle",{cx:"20",cy:"8.5",r:"1.5"}),(0,a.jsx)("circle",{cx:"17.5",cy:"13",r:"1.2"})]})]}),"GQ",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"})}),"Q0",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[(0,a.jsx)("path",{d:"M12 3v18M4.2 7.5l15.6 9M19.8 7.5l-15.6 9"}),(0,a.jsx)("path",{d:"M12 3l-2 2m2-2l2 2M12 21l-2-2m2 2l2-2M4.2 7.5l2.7.6m-2.7-.6l.6-2.7M19.8 16.5l-2.7-.6m2.7.6l-.6 2.7M19.8 7.5l-2.7.6m2.7-.6l-.6-2.7M4.2 16.5l2.7-.6m-2.7.6l.6 2.7"})]})}),"QV",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsx)("path",{d:"M12 1.5l1.8 5.4 5.4-2.6-2.6 5.4 5.4 1.8-5.4 1.8 2.6 5.4-5.4-2.6L12 22.5l-1.8-5.4-5.4 2.6 2.6-5.4L2 12.5l5.4-1.8-2.6-5.4 5.4 2.6L12 1.5z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"})}),"Zy",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsx)("circle",{cx:"12",cy:"12",r:"7",fill:"none",stroke:"currentColor",strokeWidth:"2"})}),"dQ",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[(0,a.jsx)("circle",{cx:"8.5",cy:"14.5",r:"5.5"}),(0,a.jsx)("circle",{cx:"17",cy:"7.5",r:"3.5"}),(0,a.jsx)("circle",{cx:"18.5",cy:"16.5",r:"2"})]})}),"f$",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,a.jsx)("rect",{x:"7",y:"2.5",width:"10",height:"19",rx:"5"}),(0,a.jsx)("path",{d:"M12 6.5v4",strokeLinecap:"round"})]})}),"lB",0,()=>(0,a.jsx)(a.Fragment,{children:(0,n.createInterpolateElement)(/* translators: <heart/> renders a heart icon. */ /* translators: <heart/> renders a heart icon. */
2 (0,o.__)("Created with <heart/> by WPXERO","ultimate-cursor"),{heart:(0,a.jsx)(s,{})})}),"oX",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsx)("path",{d:"M12 2.5S5.5 10 5.5 14.7a6.5 6.5 0 0 0 13 0C18.5 10 12 2.5 12 2.5z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})}),"uQ",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsxs)("g",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M12 2l2.2 7.1L21 11.5l-6.8 2.4L12 21l-2.2-7.1L3 11.5l6.8-2.4L12 2z"}),(0,a.jsx)("path",{d:"M19 2l.9 2.6L22.5 5.5l-2.6.9L19 9l-.9-2.6L15.5 5.5l2.6-.9L19 2z"})]})}),"yg",0,e=>(0,a.jsx)(i,{...e,children:(0,a.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",children:[(0,a.jsx)("path",{d:"M3 19a9 9 0 0 1 18 0",strokeWidth:"2"}),(0,a.jsx)("path",{d:"M7 19a5 5 0 0 1 10 0",strokeWidth:"2"}),(0,a.jsx)("path",{d:"M10.5 19a1.5 1.5 0 0 1 3 0",strokeWidth:"2"})]})})])},2804(e,t,r){r.d(t,{H:()=>E});var n=r(7723),o=r(425),a=r(174),i=r(1671),s=r(1609),l=r(3168),c=r(4164),u=r(992),d=r(3425),p=r(2279),m=r(934),h=r(78),f=r(3075),g=r(8071);const b=(0,d.U)(e=>{const{prefixCls:t,className:r,closeIcon:n,closable:o,type:a,title:i,children:d,footer:b,classNames:v,styles:x,...y}=e,{getPrefixCls:$}=s.useContext(p.QO),{className:C,style:w,classNames:S,styles:k}=(0,p.TP)("modal"),E=$(),_=t||$("modal"),A=(0,m.A)(E),[N,j]=(0,g.Ay)(_,A),[M,P]=(0,u.AV)([S,v],[k,x],{props:e}),z=`${_}-confirm`;let I={};return I=a?{closable:o??!1,title:"",footer:"",children:s.createElement(h.k,{...e,prefixCls:_,confirmPrefixCls:z,rootPrefixCls:E,content:d})}:{closable:o??!0,title:i,footer:null!==b&&s.createElement(f.w,{...e}),children:d},s.createElement(l.Z,{prefixCls:_,className:(0,c.$)(N,`${_}-pure-panel`,a&&z,a&&`${z}-${a}`,r,C,j,A,M.root),style:{...w,...P.root},...y,closeIcon:(0,f.O)(_,n),closable:o,classNames:M,styles:P,...I})});var v=r(6777);function x(e){return(0,o.Ay)((0,o.fp)(e))}const y=i.A;y.useModal=v.A,y.info=function(e){return(0,o.Ay)((0,o.$D)(e))},y.success=function(e){return(0,o.Ay)((0,o.Ej)(e))},y.error=function(e){return(0,o.Ay)((0,o.jT)(e))},y.warning=x,y.warn=x,y.confirm=function(e){return(0,o.Ay)((0,o.lr)(e))},y.destroyAll=function(){for(;a.A.length;){const e=a.A.pop();e&&e()}},y.config=o.FB,y._InternalPanelDoNotUseOrYouWillBeFired=b;const $=y;var C=r(400),w=r(790);const S=()=>(0,w.jsx)("div",{className:"pro-features-comparison",children:(0,w.jsxs)("div",{className:"features-table",children:[(0,w.jsxs)("div",{className:"table-header",children:[(0,w.jsx)("div",{className:"feature-column",children:(0,n.__)("Feature","ultimate-cursor")}),(0,w.jsx)("div",{className:"free-column",children:(0,n.__)("Free","ultimate-cursor")}),(0,w.jsx)("div",{className:"pro-column",children:(0,n.__)("Pro","ultimate-cursor")})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsx)("div",{className:"feature-column",children:(0,n.__)("Basic Cursor Customization","ultimate-cursor")}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Text & Image Cursors","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Pro adds custom image hotspot / tip alignment","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Cursor Shape Library","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Icon-style cursor shapes to choose from","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"limited-icon",children:(0,n.__)("5 Shapes","ultimate-cursor")})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"pro-icon",children:(0,n.__)("25+ Shapes","ultimate-cursor")})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Animated Cursor Effects","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Splash, Trail, Rainbow, Snowflake, Character & more","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"limited-icon",children:(0,n.__)("Default Style","ultimate-cursor")})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"pro-icon",children:(0,n.__)("Full Customization","ultimate-cursor")})})]}),(0,w.jsxs)("div",{className:"table-row highlighted",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Interactive Hover Effects","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Magnetic pull, glow and labels on buttons & links","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"cross-icon",children:"✕"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("3D Background Effects","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Antigravity & Light Pillar animated backgrounds","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"limited-icon",children:(0,n.__)("Default Style","ultimate-cursor")})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"pro-icon",children:(0,n.__)("Full Customization","ultimate-cursor")})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Background Position & Layering","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Control position, z-index and opacity","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"cross-icon",children:"✕"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]}),(0,w.jsxs)("div",{className:"table-row highlighted",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Multiple Cursor Configurations","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Use different cursor types for different elements","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"cross-icon",children:"✕"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Multiple Background Configurations","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Different background effects for different pages","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"cross-icon",children:"✕"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Element-Specific Cursors","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Apply unique cursors to buttons, images, etc.","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"cross-icon",children:"✕"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsxs)("div",{className:"feature-column",children:[(0,n.__)("Page-Specific Cursors","ultimate-cursor"),(0,w.jsx)("div",{className:"feature-description",children:(0,n.__)("Different cursors for different pages","ultimate-cursor")})]}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"cross-icon",children:"✕"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]}),(0,w.jsxs)("div",{className:"table-row",children:[(0,w.jsx)("div",{className:"feature-column",children:(0,n.__)("Premium Support","ultimate-cursor")}),(0,w.jsx)("div",{className:"free-column",children:(0,w.jsx)("span",{className:"cross-icon",children:"✕"})}),(0,w.jsx)("div",{className:"pro-column",children:(0,w.jsx)("span",{className:"check-icon",children:"✓"})})]})]})}),k=window.ultimateCursorAdminData?.proUrl||"https://wpxero.com/plugins/ultimate-cursor/pricing";function E({open:e,onClose:t}){return(0,w.jsx)($,{open:e,onCancel:t,title:(0,n.__)("Ultimate Cursor: Free vs Pro","ultimate-cursor"),width:760,centered:!0,destroyOnClose:!0,styles:{body:{maxHeight:"calc(100vh - 240px)",overflowY:"auto"}},footer:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(C.A,{size:"large",onClick:t,children:(0,n.__)("Maybe Later","ultimate-cursor")}),(0,w.jsx)(C.A,{type:"primary",size:"large",href:k,target:"_blank",rel:"noopener noreferrer",children:(0,n.__)("Upgrade to Pro","ultimate-cursor")})]}),children:(0,w.jsx)(S,{})})}},8710(e,t,r){r.d(t,{d:()=>o});var n=r(2016);function o(){const{message:e}=n.A.useApp();return{success:t=>e.success(t),error:t=>e.error(t)}}},1622(e,t,r){var n=r(7723),o=r(2619);const a=[{name:"cursor-text",title:(0,n.__)("Text","ultimate-cursor"),description:(0,n.__)("Replace cursor with text","ultimate-cursor")},{name:"cursor-image",title:(0,n.__)("Image","ultimate-cursor"),description:(0,n.__)("Use any image as your cursor","ultimate-cursor")},{name:"cursor-icon",title:(0,n.__)("Icon","ultimate-cursor"),description:(0,n.__)("Choose from our icon library","ultimate-cursor")},{title:(0,n.__)("Shapes","ultimate-cursor"),name:"cursor-shape",description:(0,n.__)("Geometric shapes as cursors","ultimate-cursor")},{name:"animated-cursor",title:(0,n.__)("Animated","ultimate-cursor"),description:(0,n.__)("Add motion effects to cursor","ultimate-cursor")}],i=[{label:(0,n.__)("None","ultimate-cursor"),value:"none"},{label:(0,n.__)("Solid","ultimate-cursor"),value:"solid"},{label:(0,n.__)("Dotted","ultimate-cursor"),value:"dotted"},{label:(0,n.__)("Dashed","ultimate-cursor"),value:"dashed"},{label:(0,n.__)("Double","ultimate-cursor"),value:"double"},{label:(0,n.__)("Groove","ultimate-cursor"),value:"groove"}],s=((0,n.__)("100"),(0,n.__)("200"),(0,n.__)("300"),(0,n.__)("400"),(0,n.__)("500"),(0,n.__)("600"),(0,n.__)("700"),(0,n.__)("800"),(0,n.__)("900"),(0,n.__)("Bold"),(0,n.__)("Bolder"),(0,n.__)("Lighter"),(0,n.__)("Normal"),(0,n.__)("Initial"),(0,n.__)("Inherit"),(0,n.__)("None","ultimate-cursor"),(0,n.__)("Underline","ultimate-cursor"),(0,n.__)("Overline","ultimate-cursor"),(0,n.__)("Line through","ultimate-cursor"),(0,n.__)("None","ultimate-cursor"),(0,n.__)("Uppercase","ultimate-cursor"),(0,n.__)("Lowercase","ultimate-cursor"),(0,n.__)("Capitalize","ultimate-cursor"),[{label:(0,n.__)("Normal","ultimate-cursor"),value:"normal"},{label:(0,n.__)("Circular","ultimate-cursor"),value:"circular"}]),l=[{label:(0,n.__)("Clockwise","ultimate-cursor"),value:"clockwise"},{label:(0,n.__)("Counter Clockwise","ultimate-cursor"),value:"counterclockwise"}],c=[{label:(0,n.__)("Center","ultimate-cursor"),value:"center",x:50,y:50},{label:(0,n.__)("Top Left","ultimate-cursor"),value:"top-left",x:0,y:0},{label:(0,n.__)("Top Right","ultimate-cursor"),value:"top-right",x:100,y:0},{label:(0,n.__)("Bottom Left","ultimate-cursor"),value:"bottom-left",x:0,y:100},{label:(0,n.__)("Bottom Right","ultimate-cursor"),value:"bottom-right",x:100,y:100},{label:(0,n.__)("Custom","ultimate-cursor"),value:"custom"}];r.d(t,["BY",0,i,"DH",0,a,"HA",0,[{label:"Bubble Cursor",value:"BubbleCursor"},{label:"Character Cursor",value:"CharacterCursor"},{label:"Rainbow Cursor",value:"RainbowCursor"},{label:"Snowflake Cursor",value:"SnowFlake"},{label:"Splash Cursor",value:"SplashCursor"},{label:"Click Spark",value:"ClickSpark"},{label:"Click Particles",value:"ClickParticles"},{label:"Trail Cursor",value:"TrailCursor"}],"JS",0,s,"LA",0,c,"LG",0,e=>{const t=c.find(t=>t.value===e);return t&&"number"==typeof t.x&&"number"==typeof t.y?{x:t.x,y:t.y}:null},"LP",0,{common:{padding:8,paddingLeftRight:8,borderRadius:4,borderStyle:"none",borderWidth:1,borderColor:"#000000",hideCursorOnTouch:!0,shapeSize:10,enableTransition:!0,hoverEnabled:!0,hoverScale:1.5,hoverSpeed:.15},"cursor-text":{text:"view",color:"#000000",background:"#ffffff",fontSize:20,padding:8,paddingLeftRight:8,borderRadius:4,textStyle:"normal",circularBackground:!1,circularBackgroundSize:80,circularTextPreset:"read-now",circularTextRadius:50,circularTextRotate:0,circularTextDirection:"clockwise",circularTextShowCircle:!0,circularTextCircleSize:50,circularTextAutoRotate:!1,circularTextRotationSpeed:1},"animated-cursor":{effect:"BubbleCursor",bubbleSize:4,bubbleFillColor:"#e6f1f7",bubbleStrokeColor:"#3a92c5"},"cursor-image":{imageSize:50,borderRadius:0,imageHotspotPreset:"center",imageHotspotX:50,imageHotspotY:50},"cursor-icon":{imageSize:28,defaultCursor:!0,imageHotspotPreset:"center",imageHotspotX:50,imageHotspotY:50},TrailCursor:{trailEmoji:"✨",trailEmojiSize:16,trailParticleCount:15,trailSpeed:.4,trailOpacity:1},SnowFlake:{snowflakeEmojis:["❄️"],snowflakeSize:12,snowflakeCount:5,snowflakeLifespan:100,snowflakeFallSpeed:1},SplashCursor:{splashRadius:.5,splashForce:6e3,splashColors:["#e6f1f7"]},ClickSpark:{sparkColor:"#fff",sparkSize:10,sparkRadius:15,sparkCount:8,duration:400,easing:"ease-out",extraScale:1}},"QN",0,[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"},{label:"rem",value:"rem"},{label:"vh",value:"vh"}],"Rq",0,l,"xr",0,()=>{const e=(0,o.applyFilters)("ultimate-cursor.is-pro-feature",!0);return[{label:(0,n.__)("Entire Website","ultimate-cursor"),value:"entire-website"},{label:e?(0,n.__)("Specific Pages (pro feature)","ultimate-cursor"):(0,n.__)("Specific Pages","ultimate-cursor"),value:"specific-pages",disabled:e},{label:e?(0,n.__)("CSS Selectors (pro feature)","ultimate-cursor"):(0,n.__)("CSS Selectors","ultimate-cursor"),value:"css-selectors",disabled:e},{label:e?(0,n.__)("HTML Elements (pro feature)","ultimate-cursor"):(0,n.__)("HTML Elements","ultimate-cursor"),value:"html-elements",disabled:e}]}])},8706(e,t,r){var n={};r.r(n),r.d(n,{setActivePage:()=>fc});var o={};r.r(o),r.d(o,{getActivePage:()=>gc});var a={};r.r(a),r.d(a,{updateSettings:()=>xc});var i={};r.r(i),r.d(i,{getError:()=>wc,getSetting:()=>$c,getSettings:()=>yc,getUpdating:()=>Cc});var s={};r.r(s),r.d(s,{updateSettings:()=>Ec});var l={};r.r(l),r.d(l,{getError:()=>jc,getSetting:()=>Ac,getSettings:()=>_c,getUpdating:()=>Nc});var c=r(4164),u=r(3662);function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,u.A)(e,t)}var p=r(1609),m=r.n(p);function h(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var f=r(5795),g=r.n(f);const b=m().createContext(null);var v=function(e){return e.scrollTop},x="unmounted",y="exited",$="entering",C="entered",w="exiting",S=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=y,n.appearStatus=$):o=C:o=t.unmountOnExit||t.mountOnEnter?x:y,n.state={status:o},n.nextCallback=null,n}d(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===x?{status:y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==$&&r!==C&&(t=$):r!==$&&r!==C||(t=w)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===$){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:g().findDOMNode(this);r&&v(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===y&&this.setState({status:x})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[g().findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;e||r?(this.props.onEnter(a,i),this.safeSetState({status:$},function(){t.props.onEntering(a,i),t.onTransitionEnd(l,function(){t.safeSetState({status:C},function(){t.props.onEntered(a,i)})})})):this.safeSetState({status:C},function(){t.props.onEntered(a)})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:g().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:w},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:y},function(){e.props.onExited(n)})})})):this.safeSetState({status:y},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:g().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===x)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,h(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return m().createElement(b.Provider,{value:null},"function"==typeof r?r(e,n):m().cloneElement(m().Children.only(r),n))},t}(m().Component);function k(){}S.contextType=b,S.propTypes={},S.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:k,onEntering:k,onEntered:k,onExit:k,onExiting:k,onExited:k},S.UNMOUNTED=x,S.EXITED=y,S.ENTERING=$,S.ENTERED=C,S.EXITING=w;const E=S;var _,A,N="out-in",j="in-out",M=function(e,t,r){return function(){var n;e.props[t]&&(n=e.props)[t].apply(n,arguments),r()}},P=((_={})[N]=function(e){var t=e.current,r=e.changeState;return m().cloneElement(t,{in:!1,onExited:M(t,"onExited",function(){r($,null)})})},_[j]=function(e){var t=e.current,r=e.changeState,n=e.children;return[t,m().cloneElement(n,{in:!0,onEntered:M(n,"onEntered",function(){r($)})})]},_),z=((A={})[N]=function(e){var t=e.children,r=e.changeState;return m().cloneElement(t,{in:!0,onEntered:M(t,"onEntered",function(){r(C,m().cloneElement(t,{in:!0}))})})},A[j]=function(e){var t=e.current,r=e.children,n=e.changeState;return[m().cloneElement(t,{in:!1,onExited:M(t,"onExited",function(){n(C,m().cloneElement(r,{in:!0}))})}),m().cloneElement(r,{in:!0})]},A),I=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={status:C,current:null},t.appeared=!1,t.changeState=function(e,r){void 0===r&&(r=t.state.current),t.setState({status:e,current:r})},t}d(t,e);var r=t.prototype;return r.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===$&&e.mode===j?{status:$}:!t.current||((r=t.current)===(n=e.children)||m().isValidElement(r)&&m().isValidElement(n)&&null!=r.key&&r.key===n.key)?{current:m().cloneElement(e.children,{in:!0})}:{status:w};var r,n},r.render=function(){var e,t=this.props,r=t.children,n=t.mode,o=this.state,a=o.status,i=o.current,s={children:r,current:i,changeState:this.changeState,status:a};switch(a){case $:e=z[n](s);break;case w:e=P[n](s);break;case C:e=i}return m().createElement(b.Provider,{value:{isMounting:!this.appeared}},e)},t}(m().Component);I.propTypes={},I.defaultProps={mode:N};const R=I;var T=r(8168);function O(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var B=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=O(r.className,n):r.setAttribute("class",O(r.className&&r.className.baseVal||"",n)));var r,n})},L=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),o=n[0],a=n[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,o=n?(n&&r?r+"-":"")+e:r[e];return{baseClassName:o,activeClassName:n?o+"-active":r[e+"Active"],doneClassName:n?o+"-done":r[e+"Done"]}},t}d(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&v(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach(function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n})}(e,n))},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,a=r.done;this.appliedClasses[t]={},n&&B(e,n),o&&B(e,o),a&&B(e,a)},r.render=function(){var e=this.props,t=(e.classNames,h(e,["classNames"]));return m().createElement(E,(0,T.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(m().Component);L.defaultProps={classNames:""},L.propTypes={};const H=L;var D=r(8721),F=r(2016),W=r(7723),V=r(6087),q=r(7143);const X=window.lodash;var G=r(400),K=r(7906),U=r(5886),Y=r(8558);function Q(e){const{prefixCls:t,className:r,style:n,status:o}=e,a=`${t}-rail`;return p.createElement("div",{className:(0,c.$)(a,`${a}-${o}`,r),style:n})}const Z=p.createContext({}),J=p.createContext(null);var ee=r(7795);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}const re=p.createContext({}),ne=p.forwardRef((e,t)=>{const{className:r,style:n,children:o,...a}=e,{prefixCls:i,classNames:s,styles:l}=p.useContext(J),{className:u,style:d}=p.useContext(re),m=`${i}-item`;return p.createElement("div",te({},(0,ee.A)(a,!1),{ref:t,className:(0,c.$)(`${m}-icon`,s.itemIcon,u,r),style:{...l.itemIcon,...d,...n}}),o)}),oe=ne;function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ae.apply(this,arguments)}function ie(e){return null!=e}function se(e){const{prefixCls:t,classNames:r,styles:n,data:o,last:a,nextStatus:i,active:s,index:l,itemRender:u,iconRender:d,itemWrapperRender:m,onClick:h}=e,f=`${t}-item`,{railFollowPrevStatus:g}=p.useContext(Z),{ItemComponent:b}=p.useContext(J),{onClick:v,title:x,subTitle:y,content:$,description:C,disabled:w,icon:S,status:k,className:E,style:_,classNames:A={},styles:N={},...j}=o,M=$??C,P={item:{...o,content:M},index:l,active:s},z={};(h||v)&&!w&&(z.role="button",z.tabIndex=0,z.onClick=e=>{v?.(e),h(l)},z.onKeyDown=e=>{const{which:t}=e;t!==Y.A.ENTER&&t!==Y.A.SPACE||h(l)});const I=k||"wait",R=ie(x),T=ie(y),O=(0,c.$)(f,`${f}-${I}`,{[`${f}-custom`]:S,[`${f}-active`]:s,[`${f}-disabled`]:!0===w,[`${f}-empty-header`]:!R&&!T},E,r.item,A.root);let B=p.createElement(oe,null);d&&(B=d(B,{...P,components:{Icon:oe}}));const L=p.createElement("div",{className:(0,c.$)(`${f}-wrapper`,r.itemWrapper,A.wrapper),style:{...n.itemWrapper,...N.wrapper}},p.createElement(re.Provider,{value:{className:A.icon,style:N.icon}},B),p.createElement("div",{className:(0,c.$)(`${f}-section`,r.itemSection,A.section),style:{...n.itemSection,...N.section}},p.createElement("div",{className:(0,c.$)(`${f}-header`,r.itemHeader,A.header),style:{...n.itemHeader,...N.header}},R&&p.createElement("div",{className:(0,c.$)(`${f}-title`,r.itemTitle,A.title),style:{...n.itemTitle,...N.title}},x),T&&p.createElement("div",{title:"string"==typeof y?y:void 0,className:(0,c.$)(`${f}-subtitle`,r.itemSubtitle,A.subtitle),style:{...n.itemSubtitle,...N.subtitle}},y),!a&&p.createElement(Q,{prefixCls:f,className:(0,c.$)(r.itemRail,A.rail),style:{...n.itemRail,...N.rail},status:g?k:i})),ie(M)&&p.createElement("div",{className:(0,c.$)(`${f}-content`,r.itemContent,A.content),style:{...n.itemContent,...N.content}},M)));let H=p.createElement(b,ae({},j,z,{className:O,style:{...n.item,...N.root,..._}}),m?m(L):L);return u&&(H=u(H,P)||null),H}function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},le.apply(this,arguments)}const ce={},ue=function(e){const{prefixCls:t="rc-steps",style:r,className:n,classNames:o=ce,styles:a=ce,rootClassName:i,orientation:s,titlePlacement:l,components:u,status:d="process",current:p=0,initial:h=0,onChange:f,items:g,iconRender:b,itemRender:v,itemWrapperRender:x,...y}=e,$="vertical"===s,C=$?"vertical":"horizontal",w=$||"vertical"!==l?"horizontal":"vertical",S=(0,c.$)(t,`${t}-${C}`,`${t}-title-${w}`,i,n,o.root),k=m().useMemo(()=>(g||[]).filter(Boolean),[g]),E=m().useMemo(()=>k.map(({status:e},t)=>{const r=h+t;return e||(r===p?d:r<p?"finish":"wait")}),[k,d,p,h]),_=e=>{f&&p!==e&&f(e)},{root:A="div",item:N="div"}=u||{},j=m().useMemo(()=>({prefixCls:t,classNames:o,styles:a,ItemComponent:N}),[t,o,a,N]);return m().createElement(A,le({className:S,style:{...r,...a?.root}},y),m().createElement(J.Provider,{value:j},k.map((e,r)=>{const n=h+r,i=E[r],s=E[r+1],l={...e,status:i};return m().createElement(se,{key:n,prefixCls:t,classNames:o,styles:a,data:l,nextStatus:s,active:n===p,index:n,last:k.length-1===r,iconRender:b,itemRender:v,itemWrapperRender:x,onClick:f&&_})})))};var de=r(992),pe=r(1685),me=r(57),he=r(4424),fe=r(2279),ge=r(829),be=r(8551),ve=r(7358),xe=r(6949);const ye=p.createContext(null),$e=e=>{const{prefixCls:t}=e;return p.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},p.createElement("title",null,"Arrow"),p.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))},Ce=e=>{const{prefixCls:t,rootPrefixCls:r,children:n,percent:o}=e,a=`${t}-item-progress-icon`,i=`${a}-circle`,[,s]=(0,ve.PN)(r,"cmp-steps"),l=`calc(${s("progress-radius")} * 2 * ${Math.PI*o/100}) 9999`;return p.createElement(p.Fragment,null,p.createElement("svg",{className:`${a}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o},p.createElement("title",null,"Progress"),p.createElement("circle",{className:(0,c.$)(i,`${i}-rail`)}),p.createElement("circle",{className:(0,c.$)(i,`${i}-ptg`),strokeDasharray:l,transform:"rotate(-90 50 50)"})),n)};var we=r(5905),Se=r(485);const ke=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-item`,[o,a]=(0,ve.PN)(r,"cmp-steps");return{[`${t}-horizontal`]:{[`> ${n}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${n}-rail`]:{[o("horizontal-rail-margin")]:`calc(${a("icon-size-max")} / 2 - ${a("rail-size")} / 2 + ${a("item-wrapper-padding-top")})`,position:"static",marginTop:a("horizontal-rail-margin"),width:"auto",borderBlockStartWidth:a("rail-size"),flex:1,minWidth:0,alignSelf:"flex-start"}}}}},Ee=e=>{const{componentCls:t,customIconFontSize:r,motionDurationSlow:n,iconSize:o,lineWidth:a,lineType:i,antCls:s}=e,l=`${t}-item`,[c,u]=(0,ve.PN)(s,"cmp-steps");return{[t]:{[c("icon-size")]:o,[c("icon-border-width")]:a,[`${l}-icon`]:{width:u("icon-size"),height:u("icon-size"),margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:u("icon-size"),textAlign:"center",borderRadius:u("icon-size"),border:`${u("icon-border-width")} ${i} transparent`,transition:["background-color","border","color","inset","transform"].map(e=>`${e} ${n}`).join(", "),zIndex:1},[`${l}-custom ${l}-icon`]:{background:"none",border:0,fontSize:r}}}},_e=e=>{const{componentCls:t,inlineDotSize:r,paddingXS:n,lineWidth:o,antCls:a,calc:i}=e,s=i(n).add(o).equal(),l=`${t}-item`,[c,u]=(0,ve.PN)(a,"cmp-steps");return{[`${t}-inline`]:{[c("items-offset")]:"0",[c("item-wrapper-padding-top")]:s,display:"inline-flex","&:before":{content:'""',flex:u("items-offset")},[l]:{[c("title-vertical-row-gap")]:n,[c("icon-size")]:r,[c("icon-size-active")]:r,[c("title-font-size")]:e.fontSizeSM,[c("title-line-height")]:e.lineHeightSM,[c("item-title-color")]:e.colorTextSecondary,[c("subtitle-font-size")]:e.fontSizeSM,[c("subtitle-line-height")]:e.lineHeightSM,[c("item-subtitle-color")]:e.colorTextQuaternary,[c("rail-size")]:e.lineWidth,[c("title-horizontal-rail-gap")]:"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${l}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}},Ae=(e,t,r)=>{const{calc:n,componentCls:o,descriptionMaxWidth:a,antCls:i}=e,s=`${o}-item`,[,l]=(0,ve.PN)(i,"cmp-steps");return{[`@container style(${c=a,(c||"--ant-not-exist").replace(/var\((.*)\)/,"$1")})`]:[{[`${s}-icon`]:{marginInlineStart:n(a).sub(l("icon-size")).div(2).equal()},[`${s}-rail`]:{width:"auto",insetInlineStart:n(a).add(l("icon-size")).div(2).add(t).equal(),insetInlineEnd:n(a).sub(l("icon-size")).div(2).sub(t).mul(-1).equal()}},r]};var c},Ne=e=>{const{componentCls:t,descriptionMaxWidth:r,marginXS:n,fontHeightLG:o,margin:a,paddingSM:i,marginXXS:s,antCls:l,calc:c}=e,u=`${t}-item`,[d,p]=(0,ve.PN)(l,"cmp-steps");return{[t]:{[d("icon-size-max")]:`max(${p("icon-size")}, ${p("icon-size-active",p("icon-size"))})`,[`${u}-icon`]:{marginBlockStart:`calc((${p("heading-height")} - ${p("icon-size")}) / 2)`}},[`${t}-title-horizontal`]:{[d("title-horizontal-item-margin")]:a,[d("title-horizontal-rail-margin")]:a,[d("title-horizontal-title-height")]:o,[d("heading-height")]:`max(${p("icon-size")}, ${p("title-horizontal-title-height")})`,[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${u}:not(:first-child)`]:{marginInlineStart:p("title-horizontal-item-margin")},[`${u}:last-child`]:{flex:"0 1 auto"},[`${u}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${u}-wrapper`]:{columnGap:e.margin},[`${u}-empty-header`]:{[`${u}-header`]:{minHeight:"auto"},[`${u}-content`]:{marginTop:c(p("heading-height")).sub(e.fontHeight).div(2).equal()}}},[`${u}-section`]:{flex:1,minWidth:0},[`${u}-header`]:{minHeight:p("heading-height")},[`${u}-title`]:{flex:"0 1 auto"},[`${u}-content`]:{maxWidth:r},[`${u}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${u}-rail`]:{[d("item-wrapper-padding-top")]:"0px",flex:"1 1 0%",marginInlineStart:p("title-horizontal-rail-margin")}},[`${t}-title-vertical`]:{[d("title-vertical-row-gap")]:i,[d("title-horizontal-rail-gap")]:s,[d("heading-height")]:p("icon-size-max"),[`> ${u}`]:{flex:"1 1 0%",[`${u}-wrapper`]:{flexDirection:"column",rowGap:p("title-vertical-row-gap"),alignItems:"center"},[`${u}-section`]:{alignSelf:"stretch"},[`${u}-header`]:{flexDirection:"column",alignItems:"center"},[`${u}-title, ${u}-subtitle, ${u}-content`]:{textAlign:"center",maxWidth:"100%"},[`${u}-subtitle`]:{margin:0},[`${u}-rail`]:{position:"absolute",top:0,width:`calc(100% - ${p("icon-size")} - ${p("title-horizontal-rail-gap")} * 2)`,insetInlineStart:`calc(50% + ${p("icon-size")} / 2 + ${p("title-horizontal-rail-gap")})`}},...Ae(e,n,{[`${u}:last-child`]:{flex:"none"},[`${u}-icon`]:{alignSelf:"flex-start"},[`${u}-section`]:{width:r}})}}},je=e=>{const{componentCls:t}=e,r=`${t}-item`;return{[`${t}-max-count`]:{[`${r}-ellipsis`]:{[`${r}-title, ${r}-subtitle, ${r}-content`]:{color:e.colorTextDescription}}}}};var Me=r(738);const Pe=e=>{const{componentCls:t,fontSizeIcon:r,navContentMaxWidth:n,navArrowColor:o,colorPrimary:a,motionDurationSlow:i,antCls:s,calc:l}=e,c=`${t}-item`,u=a,[d,p]=(0,ve.PN)(s,"cmp-steps");return{[`${t}${t}-navigation`]:{[c.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${c}-wrapper`]:{paddingBlock:e.paddingSM},[`${c}-section`]:{maxWidth:n},[`${c}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:u,transition:`all ${i}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${(0,Me.zA)(e.lineWidth)} ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,Me.zA)(e.lineWidth)} ${e.lineType} ${o}`,content:'""'},[`&${c}-active`]:{[d("item-content-active-color")]:p("item-content-color"),[d("item-icon-active-bg-color")]:p("item-icon-bg-color"),[d("item-icon-active-border-color")]:p("item-icon-border-color"),[d("item-icon-active-text-color")]:p("item-icon-text-color")}},[`&${t}-horizontal`]:{[c]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${c}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:l(r).div(2).mul(-1).add("100%").equal(),width:r,height:r,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[c.repeat(4)]:{[`${c}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${c}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:l(r).div(3).mul(2).equal(),height:l(r).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},ze=e=>{const{componentCls:t,lineWidthBold:r,borderRadius:n,borderRadiusSM:o,motionDurationMid:a,paddingXS:i,lineType:s,paddingSM:l,antCls:c,calc:u}=e,d=`${t}-item`,[p,m]=(0,ve.PN)(c,"cmp-steps"),h=`${(0,Me.zA)(r)} ${s} ${m("panel-border-color")}`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{[p("panel-padding")]:l,[p("item-border-radius")]:n,[d]:{[p("panel-bg-color")]:m("item-icon-bg-color"),[p("panel-border-color")]:m("item-icon-border-color"),[p("panel-active-bg-color")]:m("item-icon-active-bg-color"),[p("panel-active-border-color")]:m("item-icon-active-border-color"),[p("panel-title-height")]:`calc(${m("title-font-size")} * ${m("title-line-height")})`,[p("item-base-height")]:u(m("panel-padding")).mul(2).add(m("icon-size")).add(m("panel-title-height")).equal(),[p("item-base-width")]:`calc(${m("item-base-height")} * 0.7071)`,transition:`background-color ${a}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:u(r).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:u(r).mul(2).add("100%").equal(),width:m("item-base-width"),overflow:"visible",strokeLinecap:"round",path:{fill:m("panel-bg-color"),stroke:m("panel-border-color"),strokeWidth:r,vectorEffect:"non-scaling-stroke",transition:`fill ${a}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:m("panel-padding"),background:m("panel-bg-color"),position:"relative",borderBlock:h,"&:not(:first-child)":{paddingInlineStart:`calc(${m("panel-padding")} + ${m("item-base-width")})`},"&:first-child":{borderInlineStart:h,borderStartStartRadius:m("item-border-radius"),borderEndStartRadius:m("item-border-radius")},"&:last-child":{borderInlineEnd:h,borderStartEndRadius:m("item-border-radius"),borderEndEndRadius:m("item-border-radius")},"&-active":{background:m("panel-active-bg-color"),borderColor:m("panel-active-border-color"),[`${t}-panel-arrow`]:{path:{fill:m("panel-active-bg-color"),stroke:m("panel-active-border-color")}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:m("item-icon-active-text-color")}}}},{[`&${t}-small`]:{[p("panel-padding")]:i,[p("item-border-radius")]:o}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${(0,Me.zA)(r)} 0`,`calc(100% + ${m("item-base-width")}) 0`,`calc(100% + ${m("item-base-width")}) 100%`,`${(0,Me.zA)(r)} 100%`,`calc(${m("item-base-width")} + ${(0,Me.zA)(r)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:u(r).div(2).mul(-1).equal(),height:u(r).add("100%").equal()}}}]}},Ie=e=>{const{calc:t,antCls:r,componentCls:n,lineWidthBold:o,motionDurationSlow:a}=e,i=`${n}-item`,[s,l]=(0,ve.PN)(r,"cmp-steps"),c=t(o).add(o).equal();return{[`${n}${n}-with-progress`]:{[s("item-wrapper-padding-top")]:c,[`${i}${i}-process`]:{[`${i}-icon`]:{position:"relative"}},[`${i}-progress-icon`]:{"&-svg":{[s("svg-size")]:t(c).mul(2).add(l("icon-size")).equal(),[s("icon-size-ptg-unitless")]:`calc(100 / tan(atan2(${l("svg-size")}, 1px)))`,fontSize:l("svg-size"),lineHeight:l("icon-size-ptg-unitless"),position:"absolute",inset:t(c).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:l("icon-size-ptg-unitless"),strokeWidth:t(l("icon-size-ptg-unitless")).mul(o).equal(),[s("progress-radius")]:t(l("svg-size")).sub(o).mul(l("icon-size-ptg-unitless")).div(2).equal(),r:l("progress-radius"),fill:"none",cx:50,cy:50,transition:`all ${a} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}}}},Re=e=>{const{componentCls:t,iconSize:r,dotSize:n,dotCurrentSize:o,marginXXS:a,lineWidthBold:i,fontSizeSM:s,antCls:l}=e,c=`${t}-item`,[u,d]=(0,ve.PN)(l,"cmp-steps");return{[`${t}${t}-dot`]:{[u("icon-size-active")]:o,[u("icon-size")]:n,[u("dot-icon-size")]:n,[u("dot-icon-border-width")]:i,[u("rail-size")]:i,[u("icon-border-width")]:i,[`${c}-custom ${c}-icon`]:{fontSize:s},[`${c}-icon`]:{position:"relative","&:after":{content:'""',width:r,height:r,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${c}-active ${c}-icon`]:{[u("icon-size")]:d("icon-size-active")},[`&${t}-horizontal`]:{[`&, &${t}-small`]:Ae(e,a)}}}},Te=e=>{const{componentCls:t,lineWidthBold:r,antCls:n}=e,o=`${t}-item`,[,a]=(0,ve.PN)(n,"cmp-steps");return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${o}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[o]:{"&:not(:first-child)":{clipPath:`polygon(${[`calc(0px - ${a("item-base-width")}) 0px`,`calc(100% - ${(0,Me.zA)(r)}) 0px`,`calc(100% - ${a("item-base-width")} - ${(0,Me.zA)(r)}) 50%`,`calc(100% - ${(0,Me.zA)(r)}) 100%`,`calc(0px - ${a("item-base-width")}) 100%`].join(",")})`}}}}}}},Oe=e=>{const{componentCls:t,iconSizeSM:r,fontSize:n,lineHeight:o,marginXS:a,fontHeight:i,marginSM:s,paddingXS:l,antCls:c}=e,[u]=(0,ve.PN)(c,"cmp-steps");return{[`${t}${t}-small`]:{[u("icon-size")]:r,[u("title-horizontal-item-margin")]:s,[u("title-vertical-row-gap")]:l,[u("title-font-size")]:n,[u("title-line-height")]:o,[u("title-horizontal-rail-margin")]:a,[u("title-horizontal-title-height")]:i,[`&${t}-horizontal${t}-title-vertical`]:Ae(e,a)}}},Be="wait",Le="process",He="finish",De="error",Fe=e=>{const{componentCls:t,colorTextDisabled:r,colorTextLightSolid:n,colorPrimary:o,colorTextLabel:a,colorError:i,colorErrorHover:s,colorErrorBgFilledHover:l,colorFillTertiary:c,colorErrorBg:u,colorPrimaryBgHover:d,colorPrimaryBg:p,colorText:m,colorTextDescription:h,colorBgContainer:f,colorPrimaryHover:g,lineType:b,antCls:v}=e,x=`${t}-item`,[y,$]=(0,ve.PN)(v,"cmp-steps");return{[t]:[{[x]:{[y("item-solid-line-color")]:"#000",[y("item-title-color")]:"#000",[y("item-content-color")]:"#000",[y("item-subtitle-color")]:$("item-content-color"),[y("item-icon-custom-color")]:"#000",[y("item-icon-bg-color")]:"#000",[y("item-icon-border-color")]:"#000",[y("item-icon-text-color")]:"#fff",[y("item-icon-dot-color")]:"#000",[y("item-icon-dot-bg-color")]:$("item-icon-dot-color"),[y("item-icon-dot-border-color")]:$("item-icon-dot-color"),[y("item-text-hover-color")]:"#000",[y("item-icon-bg-hover-color")]:$("item-icon-bg-color"),[y("item-icon-border-hover-color")]:$("item-icon-border-color"),[y("item-icon-text-hover-color")]:$("item-icon-text-color"),[y("item-content-active-color")]:$("item-content-color"),[y("item-icon-active-bg-color")]:$("item-icon-bg-color"),[y("item-icon-active-border-color")]:$("item-icon-border-color"),[y("item-icon-active-text-color")]:$("item-icon-text-color"),[y("item-process-rail-line-style")]:b},[`${x}-rail`]:{borderColor:$("item-solid-line-color")},[`${x}-custom ${x}-icon`]:{color:$("item-icon-custom-color")},[`${x}-title`]:{color:$("item-title-color")},[`${x}-subtitle`]:{color:$("item-subtitle-color")},[`${x}-content`]:{color:$("item-content-color")},[`${x}-active ${x}-icon`]:{},[`${x}-active ${x}-content`]:{color:$("item-content-active-color")},[`${x}[role='button']:not(${x}-active):hover`]:{[`${x}-title, ${x}-content`]:{color:$("item-text-hover-color")}},[`&:not(${t}-dot)`]:{[`${x}:not(${x}-custom)`]:{[`${x}-icon`]:{background:$("item-icon-bg-color"),borderColor:$("item-icon-border-color"),color:$("item-icon-text-color")},[`&[role='button']:not(${x}-active):hover`]:{[`${x}-icon`]:{background:$("item-icon-bg-hover-color"),borderColor:$("item-icon-border-hover-color"),color:$("item-icon-text-hover-color")}},[`&${x}-active`]:{[`${x}-icon`]:{background:$("item-icon-active-bg-color"),borderColor:$("item-icon-active-border-color"),color:$("item-icon-active-text-color")}}}},[`&${t}-dot`]:{[`${x}-icon`]:{background:$("item-icon-dot-bg-color"),borderColor:$("item-icon-dot-border-color"),color:$("item-icon-dot-color"),[`&${x}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${x}-${Be}`]:{[y("item-icon-custom-color")]:r,[y("item-title-color")]:h,[y("item-content-color")]:h,[y("item-content-active-color")]:m,[y("item-text-hover-color")]:g},[`${x}-rail-${Be}`]:{[y("item-solid-line-color")]:r},[`${x}-${Le}`]:{[y("item-icon-custom-color")]:o,[y("item-title-color")]:m,[y("item-content-color")]:h,[y("item-content-active-color")]:m,[y("item-text-hover-color")]:g},[`${x}-rail-${Le}`]:{[y("item-solid-line-color")]:o,[y("rail-line-style")]:$("item-process-rail-line-style")},[`${x}-${He}`]:{[y("item-icon-custom-color")]:o,[y("item-title-color")]:m,[y("item-content-color")]:h,[y("item-content-active-color")]:m,[y("item-text-hover-color")]:g},[`${x}-rail-${He}`]:{[y("item-solid-line-color")]:o},[`${x}-${De}`]:{[y("item-icon-custom-color")]:i,[y("item-title-color")]:i,[y("item-content-color")]:i,[y("item-content-active-color")]:i,[y("item-text-hover-color")]:s},[`${x}-rail-${De}`]:{[y("item-solid-line-color")]:i}},{[`&${t}-filled`]:{[x]:{[y("item-icon-dot-border-color")]:"transparent"},[`${x}-${Be}`]:{[y("item-icon-bg-color")]:c,[y("item-icon-border-color")]:"transparent",[y("item-icon-text-color")]:a,[y("item-icon-dot-bg-color")]:r,[y("item-icon-bg-hover-color")]:d,[y("item-icon-border-hover-color")]:"transparent",[y("item-icon-text-hover-color")]:o,[y("item-icon-active-bg-color")]:o,[y("item-icon-active-border-color")]:"transparent",[y("item-icon-active-text-color")]:n},[`${x}-${Le}, ${x}-${He}`]:{[y("item-icon-bg-color")]:p,[y("item-icon-border-color")]:"transparent",[y("item-icon-text-color")]:o,[y("item-icon-dot-bg-color")]:o,[y("item-icon-bg-hover-color")]:d,[y("item-icon-border-hover-color")]:"transparent",[y("item-icon-text-hover-color")]:o,[y("item-icon-active-bg-color")]:o,[y("item-icon-active-border-color")]:"transparent",[y("item-icon-active-text-color")]:n},[`${x}-${De}`]:{[y("item-icon-bg-color")]:u,[y("item-icon-border-color")]:"transparent",[y("item-icon-text-color")]:i,[y("item-icon-dot-bg-color")]:i,[y("item-icon-bg-hover-color")]:l,[y("item-icon-border-hover-color")]:"transparent",[y("item-icon-text-hover-color")]:i,[y("item-icon-active-bg-color")]:i,[y("item-icon-active-border-color")]:"transparent",[y("item-icon-active-text-color")]:n}}},{[`&${t}-outlined`]:{[x]:{[y("item-icon-dot-bg-color")]:"transparent"},[`${x}-${Be}`]:{[y("item-icon-bg-color")]:f,[y("item-icon-border-color")]:r,[y("item-icon-text-color")]:r,[y("item-icon-dot-color")]:r,[y("item-icon-bg-hover-color")]:"transparent",[y("item-icon-border-hover-color")]:g,[y("item-icon-text-hover-color")]:g,[y("item-icon-active-bg-color")]:c},[`${x}-${Le}, ${x}-${He}`]:{[y("item-icon-bg-color")]:f,[y("item-icon-border-color")]:o,[y("item-icon-text-color")]:o,[y("item-icon-dot-color")]:o,[y("item-icon-bg-hover-color")]:"transparent",[y("item-icon-border-hover-color")]:g,[y("item-icon-text-hover-color")]:g,[y("item-icon-active-bg-color")]:p},[`${x}-${De}`]:{[y("item-icon-bg-color")]:f,[y("item-icon-border-color")]:i,[y("item-icon-text-color")]:i,[y("item-icon-dot-color")]:i,[y("item-icon-bg-hover-color")]:"transparent",[y("item-icon-border-hover-color")]:s,[y("item-icon-text-hover-color")]:s,[y("item-icon-active-bg-color")]:u}}}]}},We=e=>{const{componentCls:t,marginXXS:r,paddingSM:n,controlHeight:o,antCls:a,calc:i}=e,s=`${t}-item`,[l,c]=(0,ve.PN)(a,"cmp-steps");return{[`${t}-vertical`]:{[l("vertical-rail-margin")]:i(r).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${s}`]:{minHeight:i(o).mul(1.5).equal(),paddingBottom:n,"&:last-child":{paddingBottom:0},[`${s}-icon`]:{marginInlineStart:`calc((${c("icon-size-max")} - ${c("icon-size")}) / 2)`},[`${s}-rail`]:{[l("rail-offset")]:i(c("heading-height")).sub(c("icon-size")).div(2).equal(),borderInlineStartWidth:c("rail-size"),position:"absolute",top:i(c("icon-size")).add(c("item-wrapper-padding-top")).add(c("rail-offset")).add(c("vertical-rail-margin")).equal(),insetInlineStart:i(c("icon-size-max")).div(2).equal(),bottom:i(c("vertical-rail-margin")).sub(c("rail-offset")).equal(),marginInlineStart:`calc(${c("rail-size")} / -2)`}}}}},Ve=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-item`,[o,a]=(0,ve.PN)(r,"cmp-steps");return{[t]:{[o("title-font-size")]:e.fontSizeLG,[o("title-line-height")]:e.lineHeightLG,[o("subtitle-font-size")]:e.fontSize,[o("subtitle-line-height")]:e.lineHeight,[o("item-wrapper-padding-top")]:"0px",[o("rail-size")]:e.lineWidth,[o("rail-line-style")]:e.lineType,...(0,we.dF)(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[n]:{flex:"none",position:"relative"},[`${n}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:a("item-wrapper-padding-top")},[`${n}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${n}-title`]:{color:e.colorText,fontSize:a("title-font-size"),lineHeight:a("title-line-height"),wordBreak:"break-word"},[`${n}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:a("subtitle-font-size"),lineHeight:a("subtitle-line-height"),marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${n}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${n}-rail`]:{borderStyle:a("rail-line-style"),borderWidth:0},[`${n}-title, ${n}-subtitle, ${n}-content, ${n}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:we.L9},[`${n}[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}},qe=(0,ve.OF)("Steps",e=>{const t=(0,Se.oX)(e,{inlineDotSize:6});return[Ve(t),Ee(t),We(t),ke(t),Ne(t),Oe(t),Re(t),Fe(t),Pe(t),ze(t),_e(t),je(t),Ie(t),Te(t)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));var Xe=r(5539);const Ge={itemIcon:he.D},Ke=e=>{const{size:t,className:r,rootClassName:n,style:o,variant:a="filled",type:i,classNames:s,styles:l,direction:u,orientation:d,responsive:m=!0,progressDot:h,labelPlacement:f,titlePlacement:g,ellipsis:b,maxCount:v,offset:x=0,items:y,percent:$,current:C=0,initial:w=0,onChange:S,iconRender:k,...E}=e,_=p.useContext(ye),A=(0,fe.TP)("steps"),{getPrefixCls:N,direction:j,className:M,style:P}=A;let z,I,R={};_?R={root:_.rootComponent,item:_.itemComponent}:({classNames:z,styles:I}=A);const T=N(),O=N("steps",e.prefixCls),B=`${O}-item-icon`,[L,H]=qe(O),[D]=(0,ve.PN)(T,"cmp-steps"),F=(0,ge.A)(t),W=p.useMemo(()=>(y||[]).filter(Boolean),[y]),{xs:V}=(0,be.A)(m),q=p.useMemo(()=>i&&"default"!==i?i:h?"dot":i,[h,i]),X="inline"===q,G="dot"===q||"inline"===q,Y=p.useMemo(()=>"dot"===q&&(0,pe.Tn)(h)?h:void 0,[q,h]),Q=p.useMemo(()=>"panel"===q?"horizontal":m&&V||"vertical"===(d||u)?"vertical":"horizontal",[d,u,q,m,V]),Z=p.useMemo(()=>G||"vertical"===Q?"vertical"===Q?"horizontal":"vertical":"navigation"===i?"horizontal":g||f||"horizontal",[G,f,Q,g,i]),J=X?void 0:$,{canApplyMaxCount:ee,displaySteps:te,mappedDisplayCurrent:re,displayItems:ne}=function(e,t,r,n,o){const a=void 0!==n&&n>=3&&e.length>n,i=t-r,s=p.useMemo(()=>{if(!a)return e.map((e,t)=>({item:e,originIndex:t}));const t=function(e,t,r){const n=Math.min(Math.max(t,0),e-1),o=Math.min(r,e),a=new Set([0,n,e-1]);for(let t=1;a.size<o&&t<e;t+=1){const r=[n-t,n+t,t,e-1-t];for(const t of r){if(a.size>=o)break;t>=0&&t<e&&a.add(t)}}return Array.from(a).sort((e,t)=>e-t).flatMap((e,t,r)=>t>0&&e-r[t-1]>1?[null,e]:[e])}(e.length,i,n);return t.map((r,n)=>null===r?function(e,t,r,n,o){const a=e[r].key??r,i=e[n].key??n,s=e.slice(r+1,n).some(e=>"error"===e.status)?"error":n-1<t?"finish":"wait";return{item:{key:`ellipsis-${a}-${i}`,title:"",icon:p.createElement(Xe.A),status:s,disabled:!0,className:`${o}-item-ellipsis`},originIndex:-1}}(e,i,t[n-1],t[n+1],o):function(e,t){return{item:{...e,key:e.key??t},originIndex:t}}(e[r],r))},[a,i,e,n,o]),l=s.findIndex(e=>e.originIndex===i);return{canApplyMaxCount:a,displaySteps:s,mappedDisplayCurrent:l>=0?l:i,displayItems:s.map(e=>e.item)}}(W,C,w,v,O),oe={...e,variant:a,size:F,type:q,orientation:Q,titlePlacement:Z,current:C,initial:w,percent:J,responsive:m,offset:x,ellipsis:b,maxCount:v},[ae,ie]=(0,de.AV)([Ge,z,s],[I,l],{props:oe}),se="panel"===q?e=>p.createElement(p.Fragment,null,e,p.createElement($e,{prefixCls:O})):void 0,le={[D("items-offset")]:`${x}`,...P,...o},ce=(0,c.$)(M,`${O}-${a}`,{[`${O}-${q}`]:"dot"!==q&&q,[`${O}-rtl`]:"rtl"===j,[`${O}-dot`]:G,[`${O}-ellipsis`]:b,[`${O}-max-count`]:ee,[`${O}-with-progress`]:void 0!==J,[`${O}-small`]:"small"===F},r,n,L,H);return p.createElement(ue,{...E,prefixCls:O,className:ce,style:le,classNames:ae,styles:ie,orientation:Q,titlePlacement:Z,components:R,initial:0,current:re,items:ne,onChange:S?e=>{const t=te[e];S&&t&&t.originIndex>=0&&S(w+t.originIndex)}:void 0,iconRender:(e,t)=>{const{item:r,index:n,active:o,components:{Icon:a}}=t,i=te[n]?.originIndex,s=void 0!==i&&i>=0?w+i:n,{status:l,icon:c}=r;let u=null;if(G||c)u=c;else switch(l){case"finish":u=p.createElement(K.A,{className:`${B}-finish`});break;case"error":u=p.createElement(U.A,{className:`${B}-error`});break;default:{let e=p.createElement("span",{className:`${B}-number`},s+1);"process"===l&&void 0!==J&&(e=p.createElement(Ce,{prefixCls:O,rootPrefixCls:T,percent:J},e)),u=e}}let d=p.createElement(a,null,u);return k?d=k(d,{index:s,active:o,item:r,components:{Icon:a}}):(0,pe.Tn)(Y)&&(d=Y(d,{index:s,...r})),d},itemRender:(e,t)=>{let r=e;return X&&t.item.content&&(r=p.createElement(xe.A,{destroyOnHidden:!0,title:t.item.content},e)),p.createElement(me.A,{component:"Steps",disabled:t.item.disabled||!S,colorSource:"filled"===a?"color":null},r)},itemWrapperRender:se})};var Ue=r(9729),Ye=r(6487),Qe=r(8073),Ze=r(8875),Je=r(8431),et=r(7755),tt=r(5788),rt=r(9449),nt=r(9155),ot=r(11),at=r(5381);const it=(0,ve.OF)("Popconfirm",e=>{const{componentCls:t,iconCls:r,antCls:n,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${n}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon`]:{color:i},[`> ${t}-message-icon ${r}`]:{fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),st=e=>{const{prefixCls:t,okButtonProps:r,cancelButtonProps:n,title:o,description:a,cancelText:i,okText:s,okType:l="primary",icon:u=p.createElement(Ue.A,null),showCancel:d=!0,close:m,onConfirm:h,onCancel:f,onPopupClick:g,classNames:b,styles:v}=e,{getPrefixCls:x}=p.useContext(fe.QO),[y]=(0,nt.A)("Popconfirm",ot.A.Popconfirm),$=(0,et.b)(o),C=(0,et.b)(a);return p.createElement("div",{className:`${t}-inner-content`,onClick:g},p.createElement("div",{className:`${t}-message`},u&&p.createElement("span",{className:(0,c.$)(`${t}-message-icon`,b?.icon),style:v?.icon},u),p.createElement("div",{className:`${t}-message-text`},(0,pe.AZ)($)&&p.createElement("div",{className:(0,c.$)(`${t}-title`,b?.title),style:v?.title},$),(0,pe.AZ)(C)&&p.createElement("div",{className:(0,c.$)(`${t}-description`,b?.content),style:v?.content},C))),p.createElement("div",{className:`${t}-buttons`},d&&p.createElement(tt.A,{onClick:f,size:"small",...n},i||y?.cancelText),p.createElement(Je.A,{buttonProps:{size:"small",...(0,rt.DU)(l),...r},actionFn:h,close:m,prefixCls:x("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},lt=p.forwardRef((e,t)=>{const{prefixCls:r,placement:n="top",trigger:o,okType:a="primary",icon:i=p.createElement(Ue.A,null),children:s,overlayClassName:l,onOpenChange:u,overlayStyle:d,styles:m,arrow:h,classNames:f,...g}=e,{getPrefixCls:b,className:v,style:x,classNames:y,styles:$,arrow:C,trigger:w}=(0,fe.TP)("popconfirm"),[S,k]=(0,Ye.PW)(e.defaultOpen??!1,e.open),E=(0,Ze.A)(h,C),_=o||w||"click",A=e=>{k(e),u?.(e)},N=b("popconfirm",r),j={...e,placement:n,trigger:_,okType:a,overlayStyle:d,styles:m,classNames:f},[M,P]=(0,de.AV)([y,f],[$,m],{props:j}),z=(0,c.$)(N,v,l,M.root);return it(N),p.createElement(Qe.A,{arrow:E,...(0,Ye.cJ)(g,["title"]),trigger:_,placement:n,onOpenChange:t=>{const{disabled:r=!1}=e;r||A(t)},open:S,ref:t,classNames:{root:z,container:M.container,arrow:M.arrow},styles:{root:{...x,...P.root,...d},container:P.container,arrow:P.arrow},content:p.createElement(st,{okType:a,icon:i,...e,prefixCls:N,close:()=>{A(!1)},onConfirm:t=>e.onConfirm?.call(void 0,t),onCancel:t=>{A(!1),e.onCancel?.call(void 0,t)},classNames:M,styles:P}),"data-popover-inject":!0},s)}),ct=lt;ct._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,placement:r,className:n,style:o,...a}=e,{getPrefixCls:i}=p.useContext(fe.QO),s=i("popconfirm",t);return it(s),p.createElement(at.Ay,{placement:r,className:(0,c.$)(s,n),style:o,content:p.createElement(st,{prefixCls:s,...a})})};const ut=ct;var dt,pt,mt=r(2804),ht=r(9488);function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ft.apply(null,arguments)}var gt=function(e){return p.createElement("svg",ft({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),dt||(dt=p.createElement("path",{fill:"transparent",stroke:"currentColor",strokeWidth:1.5,d:"M19.75 12A7.75 7.75 0 0 0 6.52 6.52L5.4 7.64M4.25 12a7.75 7.75 0 0 0 13.23 5.48l1.12-1.12"})),pt||(pt=p.createElement("path",{fill:"transparent",stroke:"currentColor",strokeWidth:1.5,d:"M4.75 4.25v4h4M19.25 19.75v-4h-4"})))},bt=r(790);function vt({visible:e,saving:t,onSave:r,onDiscard:n}){var o;if(o=e,(0,V.useEffect)(()=>{if(!o)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[o]),!e)return null;const a=(0,bt.jsx)(G.A,{type:"primary",size:"large",className:"ultimate-cursor-sticky-save-bar__save-btn",icon:(0,bt.jsx)(K.A,{"aria-hidden":"true"}),loading:t,onClick:r,children:(0,W.__)("Save changes","ultimate-cursor")});return(0,V.createPortal)((0,bt.jsx)("div",{className:"ultimate-cursor-sticky-save-bar",role:"status","aria-live":"polite",children:(0,bt.jsxs)("div",{className:"ultimate-cursor-sticky-save-bar__inner",children:[(0,bt.jsxs)("span",{className:"ultimate-cursor-sticky-save-bar__label",children:[(0,bt.jsx)("span",{className:"ultimate-cursor-sticky-save-bar__dot","aria-hidden":"true"}),(0,W.__)("You have unsaved changes","ultimate-cursor")]}),(0,bt.jsxs)("div",{className:"ultimate-cursor-sticky-save-bar__actions",children:[(0,bt.jsx)(G.A,{size:"large",className:"ultimate-cursor-sticky-save-bar__reset-btn",disabled:t,onClick:n,children:(0,W.__)("Reset","ultimate-cursor")}),a]})]})}),document.body)}var xt=r(8710),yt=r(2619),$t=r(7152),Ct=r(6370),wt=r(4651),St=r(6466),kt=r(1622);const Et={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},_t=()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"m5 4 7 16.5 2.1-6.6 6.6-2.1z"}),(0,bt.jsx)("path",{d:"M17.5 4.5h4M19.5 2.5v4"})]}),At={"cursor-text":()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"M5 7V5h14v2"}),(0,bt.jsx)("path",{d:"M12 5v14"}),(0,bt.jsx)("path",{d:"M9 19h6"})]}),"cursor-image":()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),(0,bt.jsx)("circle",{cx:"8.5",cy:"10",r:"1.5"}),(0,bt.jsx)("path",{d:"m21 15.5-4.5-4.5L9 18.5"})]}),"cursor-icon":()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("rect",{x:"4",y:"4",width:"7",height:"7",rx:"1.5"}),(0,bt.jsx)("rect",{x:"13",y:"4",width:"7",height:"7",rx:"1.5"}),(0,bt.jsx)("rect",{x:"4",y:"13",width:"7",height:"7",rx:"1.5"}),(0,bt.jsx)("path",{d:"M16.5 13.5v6M13.5 16.5h6"})]}),"cursor-shape":()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("circle",{cx:"8",cy:"8",r:"4"}),(0,bt.jsx)("rect",{x:"13.5",y:"13.5",width:"7",height:"7",rx:"1"}),(0,bt.jsx)("path",{d:"M7.5 14 4 20h7z"})]}),"animated-cursor":_t},Nt={BubbleCursor:()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("circle",{cx:"9.5",cy:"14.5",r:"4.5"}),(0,bt.jsx)("circle",{cx:"16.5",cy:"7",r:"2.8"}),(0,bt.jsx)("circle",{cx:"18",cy:"15",r:"1.4"})]}),CharacterCursor:()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"m5 18 4.2-11h.6L14 18"}),(0,bt.jsx)("path",{d:"M6.5 14.5h5"}),(0,bt.jsx)("path",{d:"M17.5 4.5h4M19.5 2.5v4"})]}),RainbowCursor:()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"M4 17a8 8 0 0 1 16 0"}),(0,bt.jsx)("path",{d:"M8 17a4 4 0 0 1 8 0"})]}),SnowFlake:()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"M12 4v16"}),(0,bt.jsx)("path",{d:"m5 8 14 8"}),(0,bt.jsx)("path",{d:"M19 8 5 16"})]}),SplashCursor:()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"M12 4c3 3.8 5 6.2 5 8.7a5 5 0 0 1-10 0C7 10.2 9 7.8 12 4z"}),(0,bt.jsx)("path",{d:"M3.5 20.5c1.2.8 2.5.8 3.7 0M16.8 20.5c1.2.8 2.5.8 3.7 0"})]}),ClickSpark:()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"m9 9 4.5 11 1.4-4.6 4.6-1.4z"}),(0,bt.jsx)("path",{d:"M5 2.5v3M2.5 5h3M11.5 3l-.8 2M3 11.5l2-.8"})]}),ClickParticles:()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"m9 9 4.5 11 1.4-4.6 4.6-1.4z"}),(0,bt.jsx)("path",{d:"M5 4h.01M11 3h.01M17 5h.01M4 10h.01M4.5 16h.01"})]}),TrailCursor:()=>(0,bt.jsxs)("svg",{...Et,children:[(0,bt.jsx)("path",{d:"m11 5 6 14 1.8-5.7 5.7-1.8z",transform:"translate(-2 0)"}),(0,bt.jsx)("path",{d:"M4 19h.01M6.5 15.5h.01M9 12h.01"})]})},jt=({title:e,options:t,value:r,onChange:n,compact:o})=>(0,bt.jsxs)("div",{className:"uc-effect-picker-card",children:[(0,bt.jsx)("div",{className:"uc-effect-picker-card__head",children:e}),(0,bt.jsx)("div",{className:"uc-effect-picker-card__body",children:(0,bt.jsx)("div",{className:"uc-effect-picker__grid"+(o?" uc-effect-picker__grid--compact":""),children:t.map(e=>{const t=r===e.value,o=e.icon||_t;return(0,bt.jsxs)("button",{type:"button",className:`uc-effect-card uc-effect-card--icon${t?" uc-effect-card--selected":""}${e.disabled?" uc-effect-card--disabled":""}`,onClick:()=>{e.disabled||t||n(e.value)},"aria-pressed":t,disabled:e.disabled,children:[(0,bt.jsxs)("span",{className:"uc-effect-card__thumb",children:[(0,bt.jsx)(o,{}),t&&(0,bt.jsx)("span",{className:"uc-effect-card__check",children:"✓"})]}),(0,bt.jsxs)("span",{className:"uc-effect-card__meta",children:[(0,bt.jsx)("span",{className:"uc-effect-card__label",children:e.label}),e.description&&(0,bt.jsx)("span",{className:"uc-effect-card__category",children:e.description})]})]},e.value)})})})]}),Mt=({value:e,onChange:t})=>(0,bt.jsx)(jt,{title:(0,W.__)("Cursor Type","ultimate-cursor"),options:(0,yt.applyFilters)("ultimate-cursor.cursor-types",kt.DH).map(e=>({value:e.name,label:e.title,description:e.description,icon:At[e.name],disabled:e.disabled})),value:e,onChange:t}),Pt=({value:e,onChange:t})=>(0,bt.jsx)(jt,{title:(0,W.__)("Choose an Effect","ultimate-cursor"),options:kt.HA.map(e=>({value:e.value,label:e.label,icon:Nt[e.value]})),value:e,onChange:t,compact:!0}),zt={"cursor-text":"#2563eb","cursor-image":"#14b8a6","cursor-icon":"#7c3aed","cursor-shape":"#f59e0b","animated-cursor":"#db2777"},It=({pendingSettings:e,setPendingSettings:t})=>{const r=r=>{const n=(0,St.cs)(r.name);t({...e,cursorType:r.name,...n})};return(0,bt.jsx)("div",{className:"setup-step",style:{marginBottom:32},children:(0,bt.jsxs)("div",{className:"step-content",children:[(0,bt.jsx)("h3",{style:{marginBottom:16,fontSize:18,fontWeight:600},children:(0,W.__)("Select Cursor Type","ultimate-cursor")}),(0,bt.jsx)($t.A,{gutter:[16,16],wrap:!1,style:{overflowX:"auto",paddingBottom:8},children:(0,yt.applyFilters)("ultimate-cursor.cursor-types",kt.DH).map(t=>{const n=zt[t.name]||"#5c33ff",o=At[t.name],a=e.cursorType===t.name;return(0,bt.jsx)(Ct.A,{flex:1,style:{minWidth:180},children:(0,bt.jsxs)(wt.A,{hoverable:!0,role:"button",tabIndex:t.disabled?-1:0,"aria-label":`${t.title} — ${t.description}`,"aria-pressed":a,"aria-disabled":t.disabled||void 0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.disabled||r(t))},className:(0,c.A)("ultimate-cursor-type-card",a&&"active-cursor-type"),style:{border:a?`2px solid ${n}`:"1px solid #e2e8f0",background:a?`${n}1f`:`${n}0d`,opacity:t.disabled?.6:1,height:"100%",cursor:t.disabled?"not-allowed":"pointer",transition:"all 0.2s ease",borderRadius:12},styles:{body:{padding:"16px 12px",textAlign:"center"}},onClick:e=>{e.preventDefault(),t.disabled||r(t)},children:[o&&(0,bt.jsx)("div",{className:"ultimate-cursor-type-card__icon",style:{background:a?n:`${n}26`,color:a?"#fff":n},"aria-hidden":"true",children:(0,bt.jsx)(o,{})}),(0,bt.jsx)("div",{style:{fontWeight:600,fontSize:16,marginBottom:4,color:a?n:"#1e293b"},children:t.title}),(0,bt.jsx)("div",{style:{fontSize:13,color:"#64748b",lineHeight:1.4},children:t.description})]})},t.title)})})]})})};var Rt=r(64),Tt=r(682),Ot=r(8119),Bt=r(2923),Lt=r(9911),Ht=r(3596);const Dt=e=>{const{lineWidth:t,fontSizeIcon:r,calc:n}=e,o=e.fontSizeSM;return(0,Se.oX)(e,{tagFontSize:o,tagLineHeight:(0,Me.zA)(n(e.lineHeightSM).mul(o).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Ft=e=>{const t=(0,Ht.z)(new Lt.kf(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new Bt.Y(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},Wt=(0,ve.OF)("Tag",e=>(e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:o,calc:a}=e,i=a(n).sub(r).equal(),s=a(t).sub(r).equal();return{[o]:{...(0,we.dF)(e),display:"inline-block",height:"auto",paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${(0,Me.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})(Dt(e)),Ft),Vt=p.forwardRef((e,t)=>{const{prefixCls:r,style:n,className:o,checked:a,children:i,icon:s,onChange:l,onClick:u,onKeyDown:d,disabled:m,...h}=e,{getPrefixCls:f,tag:g}=p.useContext(fe.QO),b=p.useContext(Ot.A),v=m??b,x=f("tag",r),[y,$]=Wt(x),C=(0,c.$)(x,`${x}-checkable`,{[`${x}-checkable-checked`]:a,[`${x}-checkable-disabled`]:v},g?.className,o,y,$);return p.createElement("span",{...h,ref:t,role:"checkbox","aria-checked":a,"aria-disabled":v||void 0,tabIndex:v?-1:0,style:{...n,...g?.style},className:C,onClick:e=>{v||(l?.(!a),u?.(e))},onKeyDown:e=>{d?.(e),e.defaultPrevented||v||" "===e.key&&(e.preventDefault(),l?.(!a))}},s,p.createElement("span",null,i))}),qt=Vt;var Xt=r(5458),Gt=r(934);const Kt=m().forwardRef((e,t)=>{const{id:r,prefixCls:n,rootClassName:o,className:a,style:i,classNames:s,styles:l,disabled:u,options:d,value:h,defaultValue:f,onChange:g,multiple:b,...v}=e,{getPrefixCls:x,direction:y,className:$,style:C,classNames:w,styles:S}=(0,fe.TP)("tag"),k=x("tag",n),E=`${k}-checkable-group`,_=(0,Gt.A)(k),[A,N]=Wt(k,_),j=(0,de.XT)(C),M=(0,de.XT)(i),[P,z]=(0,de.AV)([w,s],[S,j,l,M],{props:e}),I=(0,p.useMemo)(()=>Array.isArray(d)?d.map(e=>(0,pe.Qd)(e)?e:{value:e,label:e}):[],[d]),[R,T]=(0,Ye.PW)(f,h),O=m().useRef(null);(0,p.useImperativeHandle)(t,()=>({nativeElement:O.current}));const B=(0,Ye.KE)(v,{aria:!0,data:!0});return m().createElement("div",{...B,className:(0,c.$)(E,$,o,{[`${E}-disabled`]:u,[`${E}-rtl`]:"rtl"===y},A,N,a,P.root),style:z.root,id:r,ref:O},I.map(e=>m().createElement(qt,{key:e.value,className:(0,c.$)(`${E}-item`,P.item,e.className),style:{...z.item,...e.style},checked:b?(R||[]).includes(e.value):R===e.value,onChange:t=>((e,t)=>{let r=null;if(b){const n=R||[];r=e?[].concat((0,Xt.A)(n),[t.value]):n.filter(e=>e!==t.value)}else r=e?t.value:null;T(r),g?.(r)})(t,e),disabled:u},e.label)))}),Ut=Kt;var Yt=r(4121),Qt=r(1108);const Zt=(0,ve.bf)(["Tag","preset"],e=>(e=>(0,Qt.A)(e,(t,{textColor:r,lightBorderColor:n,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:o,borderColor:n,color:r},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:o,color:r}}})))(Dt(e)),Ft),Jt=(e,t,r)=>{const n="string"!=typeof(o=r)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${n}Bg`],borderColor:e[`color${n}Border`],color:e[`color${r}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${r}`],borderColor:e[`color${r}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${n}Bg`],color:e[`color${r}`]}}}},er=(0,ve.bf)(["Tag","status"],e=>{const t=Dt(e);return[Jt(t,"success","Success"),Jt(t,"processing","Info"),Jt(t,"error","Error"),Jt(t,"warning","Warning")]},Ft),tr=p.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:o,style:a,children:i,icon:s,color:l,variant:u,onClose:d,bordered:m,disabled:h,href:f,target:g,styles:b,classNames:v,...x}=e,{getPrefixCls:y,direction:$,className:C,variant:w,style:S,classNames:k,styles:E}=(0,fe.TP)("tag"),[_,A,N,j,M]=function(e,t){const{color:r,variant:n,bordered:o}=e;return p.useMemo(()=>{const e=r?.endsWith("-inverse");let a;a=n||(e?"solid":!1===o?"filled":t||"filled");let i=e?r?.replace("-inverse",""):r;void 0===i&&"solid"===a&&(i="default");const s=(0,Yt.nP)(i),l=(0,Yt.ZZ)(i),c={};if(!s&&!l&&i)if("solid"===a)c.backgroundColor=r;else{const e=new Bt.Y(i).toHsl();e.l=.95,c.backgroundColor=new Bt.Y(e).toHexString(),c.color=r,"outlined"===a&&(c.borderColor=r)}return[a,i,s,l,c]},[r,n,o,t])}(e,w),P=N||j,z=p.useContext(Ot.A),I=h??z,{tag:R}=p.useContext(fe.QO),[T,O]=p.useState(!0),B=(0,Ye.cJ)(x,["closeIcon","closable"]),L={...e,color:A,variant:_,disabled:I},[H,D]=(0,de.AV)([k,v],[E,b],{props:L}),F=p.useMemo(()=>{let e={...D.root,...S,...a};return I||(e={...M,...e}),e},[D.root,S,a,M,I]),W=y("tag",r),[V,q]=Wt(W),X=(0,c.$)(W,C,H.root,`${W}-${_}`,{[`${W}-${A}`]:P,[`${W}-hidden`]:!T,[`${W}-rtl`]:"rtl"===$,[`${W}-disabled`]:I},n,o,V,q),G=e=>{I||(e.stopPropagation(),d?.(e),e.defaultPrevented||O(!1))},K=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())},[,U]=(0,Rt.$Z)((0,Rt.dG)(e),(0,Rt.dG)(R),{closable:!1,closeIconRender:e=>{const t=p.createElement("span",{role:"button",tabIndex:I?-1:0,"aria-disabled":I||void 0,className:(0,c.$)(`${W}-close-icon`,H.close),onClick:G,onKeyDown:K,style:D.close},e);return(0,Tt.fx)(e,t,e=>({onClick:t=>{e?.onClick?.(t),G(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||K(t)},role:"button",tabIndex:I?-1:0,"aria-disabled":I||void 0,className:(0,c.$)(e?.className,`${W}-close-icon`,H.close),style:{...D.close,...e?.style}}))}}),Y=(0,pe.Tn)(x.onClick)||i&&"a"===i.type,Q=(0,Tt.Ob)(s,{className:(0,c.$)(p.isValidElement(s)?s.props?.className:void 0,H.icon),style:D.icon}),Z=Q?p.createElement(p.Fragment,null,Q,i&&p.createElement("span",{className:H.content,style:D.content},i)):i,J=f?"a":"span",ee=p.createElement(J,{...B,ref:t,className:X,style:F,href:I?void 0:f,target:g,onClick:I?void 0:B.onClick,...f&&I?{"aria-disabled":!0}:{}},Z,U,N&&p.createElement(Zt,{key:"preset",prefixCls:W}),j&&p.createElement(er,{key:"status",prefixCls:W}));return Y?p.createElement(me.A,{component:"Tag"},ee):ee}),rr=tr;rr.CheckableTag=qt,rr.CheckableTagGroup=Ut;const nr=rr;var or=r(8749),ar=r(6695);function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ir.apply(this,arguments)}const sr=(e,t)=>p.createElement(ar.A,ir({},e,{ref:t,icon:or.A})),lr=p.forwardRef(sr);var cr=r(2530);function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ur.apply(this,arguments)}const dr=(e,t)=>p.createElement(ar.A,ur({},e,{ref:t,icon:cr.A})),pr=p.forwardRef(dr);var mr=r(949);function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(this,arguments)}const fr=(e,t)=>p.createElement(ar.A,hr({},e,{ref:t,icon:mr.A})),gr=p.forwardRef(fr);var br=r(4044);function vr(){return(0,yt.applyFilters)("ultimate-cursor.is-pro-feature",!0)}const xr=[{id:"view-badge",icon:(0,bt.jsx)(lr,{}),color:"#2563eb",title:(0,W.__)("View Badge","ultimate-cursor"),description:(0,W.__)("A small “view” pill that follows the cursor","ultimate-cursor"),settings:{cursorType:"cursor-text",text:"view",color:"#ffffff",background:"#0f172a",size:14,padding:8,paddingLeftRight:14,borderRadius:999}},{id:"splash-cursor",icon:(0,bt.jsx)(ht.oX,{}),color:"#0891b2",title:(0,W.__)("Splash Cursor","ultimate-cursor"),description:(0,W.__)("Colorful fluid splash follows the cursor","ultimate-cursor"),settings:{cursorType:"animated-cursor",effect:"SplashCursor"}},{id:"emoji-trail",icon:(0,bt.jsx)(ht.uQ,{}),color:"#7c3aed",title:(0,W.__)("Sparkle Trail","ultimate-cursor"),description:(0,W.__)("Sparkles trail behind the cursor as it moves","ultimate-cursor"),settings:{cursorType:"animated-cursor",effect:"TrailCursor",...kt.LP.TrailCursor}},{id:"snowfall",icon:(0,bt.jsx)(ht.Q0,{}),color:"#0ea5e9",title:(0,W.__)("Snowfall","ultimate-cursor"),description:(0,W.__)("Snowflakes drift down from the cursor","ultimate-cursor"),settings:{cursorType:"animated-cursor",effect:"SnowFlake",...kt.LP.SnowFlake}},{id:"bubble-pop",icon:(0,bt.jsx)(ht.dQ,{}),color:"#14b8a6",title:(0,W.__)("Bubble Pop","ultimate-cursor"),description:(0,W.__)("Soft bubbles float up from the cursor","ultimate-cursor"),settings:{cursorType:"animated-cursor",effect:"BubbleCursor"}},{id:"rainbow-ribbon",icon:(0,bt.jsx)(ht.yg,{}),color:"#db2777",title:(0,W.__)("Rainbow Ribbon","ultimate-cursor"),description:(0,W.__)("A colorful ribbon follows the cursor","ultimate-cursor"),settings:{cursorType:"animated-cursor",effect:"RainbowCursor"}},{id:"click-sparks",icon:(0,bt.jsx)(ht.QV,{}),color:"#f59e0b",title:(0,W.__)("Click Sparks","ultimate-cursor"),description:(0,W.__)("Spark burst on every click","ultimate-cursor"),settings:{cursorType:"animated-cursor",effect:"ClickSpark",...kt.LP.ClickSpark}},{id:"minimal-dot",icon:(0,bt.jsx)(ht.Zy,{}),color:"#5c33ff",title:(0,W.__)("Minimal Shape","ultimate-cursor"),description:(0,W.__)("A clean geometric shape replaces the cursor","ultimate-cursor"),settings:{cursorType:"cursor-shape",cursorShape:"1.svg",shapeSize:14,shapeColor:"#5C33FF"}},{id:"letter-flutter",icon:(0,bt.jsx)(pr,{}),color:"#c026d3",title:(0,W.__)("Letter Flutter","ultimate-cursor"),description:(0,W.__)("Letters flutter away as the cursor moves","ultimate-cursor"),settings:{cursorType:"animated-cursor",effect:"CharacterCursor"}},{id:"click-particles",icon:(0,bt.jsx)(ht.G8,{}),color:"#e11d48",title:(0,W.__)("Click Confetti","ultimate-cursor"),description:(0,W.__)("Particles burst out on every click","ultimate-cursor"),settings:{cursorType:"animated-cursor",effect:"ClickParticles"}},{id:"spinning-badge",icon:(0,bt.jsx)(gr,{}),color:"#4f46e5",pro:!0,title:(0,W.__)("Spinning Badge","ultimate-cursor"),description:(0,W.__)("Text spins in a circle around the cursor","ultimate-cursor"),settings:{cursorType:"cursor-text",text:"read more",textStyle:"circular",color:"#ffffff",background:"#0f172a",size:13,circularTextAutoRotate:!0,circularTextRotationSpeed:1}},{id:"rocket-pointer",icon:(0,bt.jsx)(br.A,{}),color:"#ea580c",title:(0,W.__)("Rocket Pointer","ultimate-cursor"),description:(0,W.__)("A rocket emoji replaces the cursor","ultimate-cursor"),settings:{cursorType:"cursor-text",text:"🚀",size:28,background:"transparent",padding:0,paddingLeftRight:0}}],yr=({onApply:e})=>{const t=vr();return(0,bt.jsx)("div",{className:"ultimate-cursor-preset-gallery",children:(0,bt.jsx)($t.A,{gutter:[16,16],children:xr.map(r=>{const n=t&&!0===r.pro,o=()=>{n||e((e=>({...(0,St.cs)(e.settings.cursorType),...e.settings}))(r))};return(0,bt.jsx)(Ct.A,{xs:12,md:8,lg:6,children:(0,bt.jsxs)(wt.A,{hoverable:!n,className:"ultimate-cursor-preset-card",styles:{body:{padding:"16px 12px",textAlign:"center",...n&&{opacity:.6}}},role:"button",tabIndex:0,"aria-label":r.title,"aria-disabled":n,onClick:o,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o())},children:[(0,bt.jsx)("div",{className:"ultimate-cursor-preset-card__emoji",style:{color:r.color,background:`${r.color}1f`},"aria-hidden":"true",children:r.icon}),(0,bt.jsxs)("div",{className:"ultimate-cursor-preset-card__title",children:[r.title,n&&(0,bt.jsxs)(bt.Fragment,{children:[" ",(0,bt.jsx)(nr,{color:"purple",children:(0,W.__)("Pro","ultimate-cursor")})]})]}),(0,bt.jsx)("div",{className:"ultimate-cursor-preset-card__description",children:r.description})]})},r.id)})})})},$r=({onUpgradeClick:e})=>(0,bt.jsxs)("div",{className:"pro-upgrade-banner",children:[(0,bt.jsxs)("div",{className:"upgrade-content",children:[(0,bt.jsx)("h3",{children:(0,W.__)("Unlock Advanced Cursor Features","ultimate-cursor")}),(0,bt.jsx)("p",{children:(0,W.__)("Get multiple cursor configurations, element-specific cursors, and more premium features.","ultimate-cursor")})]}),(0,bt.jsx)("div",{className:"upgrade-action",children:(0,bt.jsx)("button",{className:"upgrade-button",onClick:e,children:(0,W.__)("View Pro Features","ultimate-cursor")})})]}),Cr="ultimate_cursor_promo_dismissed",wr=()=>{const e=localStorage.getItem(Cr);return!e||(new Date).getTime()-parseInt(e,10)>2592e6},Sr=({onUpgradeClick:e})=>{const[t,r]=(0,V.useState)(wr());return(0,V.useEffect)(()=>{r(wr())},[]),"undefined"!=typeof window&&window.wp&&window.ultimateCursorAdminData&&window.ultimateCursorAdminData.isPro?null:t?(0,bt.jsxs)("div",{className:"promotional-discount-banner",role:"region","aria-label":(0,W.__)("Ultimate Cursor Pro promotional offer","ultimate-cursor"),children:[(0,bt.jsxs)("div",{className:"discount-badge",children:[(0,bt.jsx)("span",{className:"discount-amount",children:"20%"}),(0,bt.jsx)("span",{className:"discount-text",children:(0,W.__)("OFF","ultimate-cursor")})]}),(0,bt.jsxs)("div",{className:"promotional-content",children:[(0,bt.jsx)("h3",{children:(0,W.__)("Save 20% on Ultimate Cursor Pro","ultimate-cursor")}),(0,bt.jsx)("p",{className:"promotional-lead",children:(0,W.__)("Unlock multiple cursors, element targeting, and premium animations.","ultimate-cursor")}),(0,bt.jsxs)("div",{className:"promotional-coupon",children:[(0,bt.jsx)("span",{className:"coupon-label",children:(0,W.__)("Coupon code:","ultimate-cursor")}),(0,bt.jsx)("span",{className:"coupon-code",children:"UNLOCKPRO"})]})]}),(0,bt.jsxs)("div",{className:"promotional-actions",children:[(0,bt.jsx)("button",{className:"promotional-button",onClick:e,children:(0,W.__)("Upgrade Now","ultimate-cursor")}),(0,bt.jsx)("button",{className:"dismiss-button",onClick:()=>{const e=(new Date).getTime();localStorage.setItem(Cr,e.toString()),r(!1)},children:(0,W.__)("Dismiss","ultimate-cursor")})]})]}):null};var kr=r(8055),Er=r(3295),_r=r(2392),Ar=r(1594);var Nr=r(6639),jr=r(2897),Mr=r(6559),Pr=r(8182),zr=r(124),Ir=r(7090);function Rr(e,t){const r=(0,p.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{e.current?.input&&"password"===e.current?.input.getAttribute("type")&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return(0,p.useEffect)(()=>(t&&n(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),n}const Tr=(0,p.forwardRef)((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:u,allowClear:d,addonAfter:h,addonBefore:f,className:g,style:b,styles:v,rootClassName:x,onChange:y,classNames:$,variant:C,...w}=e,{getPrefixCls:S,direction:k,allowClear:E,autoComplete:_,className:A,style:N,classNames:j,styles:M}=(0,fe.TP)("input"),P=S("input",r),z=(0,p.useRef)(null),I=(0,Gt.A)(P),[R,T]=(0,Ar.MG)(P,x);(0,Ar.Ay)(P,I);const{compactSize:O,compactItemClassnames:B}=(0,Ir.RQ)(P,k),L=(0,ge.A)(e=>a??O??e),H=m().useContext(Ot.A),D=i??H,F={...e,size:L,disabled:D},W=(0,de.XT)(N),V=(0,de.XT)(b),[q,X]=(0,de.AV)([j,$],[M,W,v,V],{props:F}),{status:G,hasFeedback:K,feedbackIcon:U}=(0,p.useContext)(Er.$W),Y=(0,Pr.v)(G,o),Q=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!K;(0,p.useRef)(Q);const Z=Rr(z,!0),J=(K||u)&&m().createElement(m().Fragment,null,u,K&&U),ee=(0,Mr.O)({allowClear:d,contextAllowClear:E,componentName:"Input"}),[te,re]=(0,zr.A)("input",C,n);return m().createElement(Nr.Ay,{ref:(0,Ye.K4)(t,z),prefixCls:P,autoComplete:_,...w,disabled:D,onBlur:e=>{Z(),s?.(e)},onFocus:e=>{Z(),l?.(e)},style:X.root,styles:X,suffix:J,allowClear:ee,className:(0,c.$)(g,x,T,I,B,A,q.root),onChange:e=>{Z(),y?.(e)},addonBefore:f&&m().createElement(jr.A,{form:!0,space:!0},f),addonAfter:h&&m().createElement(jr.A,{form:!0,space:!0},h),classNames:{...q,input:(0,c.$)({[`${P}-sm`]:"small"===L,[`${P}-lg`]:"large"===L,[`${P}-rtl`]:"rtl"===k},q.input,R),variant:(0,c.$)({[`${P}-${te}`]:re},(0,Pr.L)(P,Y)),affixWrapper:(0,c.$)({[`${P}-affix-wrapper-sm`]:"small"===L,[`${P}-affix-wrapper-lg`]:"large"===L,[`${P}-affix-wrapper-rtl`]:"rtl"===k},R),wrapper:(0,c.$)({[`${P}-group-rtl`]:"rtl"===k},R),groupWrapper:(0,c.$)({[`${P}-group-wrapper-sm`]:"small"===L,[`${P}-group-wrapper-lg`]:"large"===L,[`${P}-group-wrapper-rtl`]:"rtl"===k,[`${P}-group-wrapper-${te}`]:re},(0,Pr.L)(`${P}-group-wrapper`,Y,K),R)}})}),Or=Tr;var Br=r(4335);const Lr=(0,ve.OF)(["Input","OTP"],e=>(e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})((0,Se.oX)(e,(0,Br.C)(e))),Br.b),Hr=p.forwardRef((e,t)=>{const{className:r,value:n,onChange:o,onActiveChange:a,index:i,mask:s,onFocus:l,...u}=e,{getPrefixCls:d}=p.useContext(fe.QO),m=d("otp"),h="string"==typeof s?s:n,f=p.useRef(null);p.useImperativeHandle(t,()=>f.current);const g=()=>{(0,Ye.er)(()=>{const e=f.current?.input;document.activeElement===e&&e&&e.select()})};return p.createElement("span",{className:`${m}-input-wrapper`,role:"presentation"},s&&""!==n&&void 0!==n&&p.createElement("span",{className:`${m}-mask-icon`,"aria-hidden":"true"},h),p.createElement(Or,{"aria-label":`OTP Input ${i+1}`,type:!0===s?"password":"text",...u,ref:f,value:n,onInput:e=>{o(i,e.target.value)},onFocus:e=>{l?.(e),g()},onKeyDown:e=>{const{key:t,ctrlKey:r,metaKey:o}=e;"ArrowLeft"===t?a(i-1):"ArrowRight"===t?a(i+1):"z"===t&&(r||o)?e.preventDefault():"Backspace"!==t||n||a(i-1),g()},onMouseDown:g,onMouseUp:g,className:(0,c.$)(r,{[`${m}-mask-input`]:s})}))});function Dr(e){return(e||"").split("")}const Fr=e=>{const{index:t,prefixCls:r,separator:n,className:o,style:a}=e,i=(0,pe.Tn)(n)?n(t):n;return i?p.createElement("span",{className:(0,c.$)(`${r}-separator`,o),style:a},i):null},Wr=p.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:o,defaultValue:a,value:i,onChange:s,formatter:l,separator:u,variant:d,disabled:m,status:h,autoFocus:f,mask:g,type:b,autoComplete:v,onInput:x,onFocus:y,inputMode:$,classNames:C,styles:w,className:S,style:k,...E}=e,{classNames:_,styles:A,getPrefixCls:N,direction:j,style:M,className:P}=(0,fe.TP)("otp"),z=N("otp",r),I={...e,length:n},R=(0,de.XT)(M),T=(0,de.XT)(k),[O,B]=(0,de.AV)([_,C],[A,R,w,T],{props:I}),L=(0,Ye.KE)(E,{aria:!0,data:!0,attr:!0}),[H,D]=Lr(z),F=(0,ge.A)(e=>o??e),W=p.useContext(Er.$W),V=(0,Pr.v)(W.status,h),q=p.useMemo(()=>({...W,status:V,hasFeedback:!1,feedbackIcon:null}),[W,V]),X=p.useRef(null),G=p.useRef({});p.useImperativeHandle(t,()=>({focus:()=>{G.current[0]?.focus()},blur:()=>{for(let e=0;e<n;e+=1)G.current[e]?.blur()},nativeElement:X.current}));const K=e=>l?l(e):e,[U,Y]=p.useState(()=>Dr(K(a||"")));p.useEffect(()=>{void 0!==i&&Y(Dr(i))},[i]);const Q=(0,Ye._q)(e=>{Y(e),x&&x(e),s&&e.length===n&&e.every(e=>e)&&e.some((e,t)=>U[t]!==e)&&s(e.join(""))}),Z=(0,Ye._q)((e,t)=>{let r=(0,Xt.A)(U);for(let t=0;t<e;t+=1)r[t]||(r[t]="");t.length<=1?r[e]=t:r=r.slice(0,e).concat(Dr(t)),r=r.slice(0,n);for(let e=r.length-1;e>=0&&!r[e];e-=1)r.pop();const o=K(r.map(e=>e||" ").join(""));return r=Dr(o).map((e,t)=>" "!==e||r[t]?e:r[t]),r}),J=(e,t)=>{const r=Z(e,t),o=Math.min(e+t.length,n-1);o!==e&&void 0!==r[e]&&G.current[o]?.focus(),Q(r)},ee=e=>{G.current[e]?.focus()},te={variant:d,disabled:m,status:V,mask:g,type:b,inputMode:$,autoComplete:v};return p.createElement("div",{...L,ref:X,className:(0,c.$)(S,z,{[`${z}-sm`]:"small"===F,[`${z}-lg`]:"large"===F,[`${z}-rtl`]:"rtl"===j},D,H,P,O.root),style:B.root,role:"group"},p.createElement(Er.$W.Provider,{value:q},Array.from({length:n}).map((e,t)=>{const r=`otp-${t}`,o=U[t]||"";return p.createElement(p.Fragment,{key:r},p.createElement(Hr,{ref:e=>{G.current[t]=e},index:t,size:F,htmlSize:1,className:(0,c.$)(O.input,`${z}-input`),style:B.input,onChange:J,value:o,onActiveChange:ee,autoFocus:0===t&&f,onFocus:e=>((e,t)=>{for(let e=0;e<t;e+=1)if(!G.current[e]?.input?.value){G.current[e]?.focus();break}y?.(e)})(e,t),...te}),t<n-1&&p.createElement(Fr,{separator:u,index:t,prefixCls:z,className:(0,c.$)(O.separator),style:B.separator}))})))}),Vr=Wr;var qr=r(7694);function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xr.apply(this,arguments)}const Gr=(e,t)=>p.createElement(ar.A,Xr({},e,{ref:t,icon:qr.A})),Kr=p.forwardRef(Gr),Ur=e=>e?p.createElement(lr,null):p.createElement(Kr,null),Yr={click:"onClick",hover:"onMouseOver"},Qr=p.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:o=!0,iconRender:a,prefixCls:i,inputPrefixCls:s,suffix:l,className:u,style:d,classNames:m,styles:h,...f}=e,{getPrefixCls:g,className:b,style:v,classNames:x,styles:y,iconRender:$}=(0,fe.TP)("inputPassword"),[C]=(0,nt.A)("global"),w=p.useContext(Ot.A),S=r??w,k={...e,disabled:S},[E,_]=(0,de.AV)([x,m],[y,h],{props:k}),A=(0,pe.Qd)(o)&&void 0!==o.visible,[N,j]=(0,p.useState)(()=>!!A&&o.visible),M=(0,p.useRef)(null);p.useEffect(()=>{A&&j(o.visible)},[A,o]);const P=Rr(M),z=()=>{if(S)return;N&&P();const e=!N;j(e),(0,pe.Qd)(o)&&o.onVisibleChange?.(e)},I=g("input",s),R=g("input-password",i),T=o&&(e=>{const t=Yr[n]||"",r=(a||$||Ur)(N),i=(0,pe.Qd)(o)?o.tabIndex:void 0;return p.createElement("span",{key:"passwordIcon",role:"button",tabIndex:S?-1:i??0,className:`${e}-icon`,"aria-disabled":S,"aria-pressed":N,"aria-label":N?C.hide:C.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),z())},[t]:z},r)})(R),O=(0,c.$)(R,b,u,{[`${R}-${e.size}`]:!!e.size}),B={...f,type:N?"text":"password",prefixCls:I,suffix:p.createElement(p.Fragment,null,T,l),disabled:S,className:O,style:{...v,...d},classNames:E,styles:_};return p.createElement(Or,{ref:(0,Ye.K4)(t,M),...B})}),Zr=Qr;var Jr=r(736),en=r(94);const tn=(0,ve.OF)(["Input","Search"],e=>(e=>{const{componentCls:t,antCls:r,calc:n,max:o}=e,a=`${t}-btn`,[i,s]=(0,ve.PN)(r,"input-search"),l=e.inputFontSizeSM??e.fontSize,c=o(e.controlHeightSM,n(l).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[i("btn-height")]:(0,Me.zA)(e.controlHeight),width:"100%",[a]:{height:s("btn-height"),[`&${r}-btn-icon-only`]:{width:s("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[i("btn-height")]:(0,Me.zA)(e.controlHeightLG)},[`&${t}-small`]:{[i("btn-height")]:(0,Me.zA)(e.controlHeightSM)},[`&${t}-small ${a}`]:{minHeight:c,[`&${e.antCls}-btn-icon-only`]:{minWidth:c}}}}})((0,Se.oX)(e,(0,Br.C)(e))),Br.b),rn=p.forwardRef((e,t)=>{const{prefixCls:r,inputPrefixCls:n,className:o,size:a,style:i,enterButton:s=!1,searchIcon:l,addonAfter:u,loading:d,disabled:m,onSearch:h,onChange:f,onCompositionStart:g,onCompositionEnd:b,variant:v,onPressEnter:x,classNames:y,styles:$,hidden:C,...w}=e,{direction:S,getPrefixCls:k,className:E,style:_,classNames:A,styles:N,searchIcon:j}=(0,fe.TP)("inputSearch"),M={...e,enterButton:s},[P,z]=(0,de.AV)([A,y],[N,$],{props:M},{button:{_default:"root"}}),I=p.useRef(!1),R=k("input-search",r),T=k("input",n),[O,B]=tn(R),{compactSize:L}=(0,Ir.RQ)(R,S),H=(0,ge.A)(e=>a??L??e),D=p.useRef(null),F=e=>{document.activeElement===D.current?.input&&e.preventDefault()},W=e=>{h&&h(D.current?.input?.value,e,{source:"input"})},V="boolean"==typeof s?(0,en.A)(l,j,p.createElement(Jr.A,null)):null,q=`${R}-btn`,X=(0,c.$)(q,{[`${q}-${v}`]:v});let G;const K=s||{},U=K.type&&!0===K.type.__ANT_BUTTON;if(U||"button"===K.type){const e=K.props;G=(0,Tt.Ob)(K,{onMouseDown:F,onClick:e=>{K?.props?.onClick?.(e),W(e)},key:"enterButton",...U?{className:(0,c.$)(X,e.className),size:H}:{}})}else G=p.createElement(tt.A,{classNames:P.button,styles:z.button,className:X,color:s?"primary":"default",size:H,disabled:m,key:"enterButton",onMouseDown:F,onClick:W,loading:d,icon:V,variant:"borderless"===v||"filled"===v||"underlined"===v?"text":s?"solid":void 0},s);u&&(G=[G,(0,Tt.Ob)(u,{key:"addonAfter"})]);const Y=(0,c.$)(R,B,{[`${R}-rtl`]:"rtl"===S,[`${R}-${H}`]:!!H,[`${R}-with-button`]:!!s},o,E,O,P.root),Q=(0,Ye.KE)(w,{data:!0}),Z=(0,Ye.cJ)({...w,classNames:(0,Ye.cJ)(P,["button","root"]),styles:(0,Ye.cJ)(z,["button","root"]),prefixCls:T,type:"search",size:H,variant:v,onPressEnter:e=>{I.current||d||(x?.(e),W(e))},onCompositionStart:e=>{I.current=!0,g?.(e)},onCompositionEnd:e=>{I.current=!1,b?.(e)},onChange:e=>{e?.target&&"click"===e.type&&h&&h(e.target.value,e,{source:"clear"}),f?.(e)},disabled:m},Object.keys(Q));return p.createElement(Ir.Ay,{className:Y,style:{...z.root,..._,...i},...Q,hidden:C},p.createElement(Or,{ref:(0,Ye.K4)(D,t),...Z}),G)}),nn=rn;var on=r(2322);const an=Or;an.Group=e=>{const{getPrefixCls:t,direction:r}=(0,p.useContext)(fe.QO),{prefixCls:n,className:o}=e,a=t("input-group",n),i=t("input"),[s,l]=(0,Ar.Ay)(i),u=(0,c.$)(a,l,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===r},s,o),d=(0,p.useContext)(Er.$W),m=(0,p.useMemo)(()=>({...d,isFormItemInput:!1}),[d]);return p.createElement(Er.$W.Provider,{value:m},p.createElement(_r.A.Compact,{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},an.Search=nn,an.TextArea=on.A,an.Password=Zr,an.OTP=Vr;const sn=an;var ln=r(4768),cn=r(4732),un=r(5010),dn=r(3057);const pn=(e,t,r)=>({background:e,[`${r}-icon`]:{color:t}}),mn=e=>{const{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:h,lineWidth:f,lineType:g,colorSuccessBorder:b,colorWarningBorder:v,colorErrorBorder:x,colorInfoBorder:y}=e;return{[t]:{...(0,we.dF)(e),position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,borderWidth:(0,Me.zA)(f),borderStyle:g,[`&${t}-success`]:{borderColor:b},[`&${t}-info`]:{borderColor:y},[`&${t}-warning`]:{borderColor:v},[`&${t}-error`]:{borderColor:x},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:s},"&-title":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${r} ${c}`).join(", ")},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:n,color:p,fontSize:i},[`${t}-description`]:{display:"block",color:d}},[`&${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}}},hn=e=>{const{componentCls:t,colorSuccess:r,colorSuccessBg:n,colorWarning:o,colorWarningBg:a,colorError:i,colorErrorBg:s,colorInfo:l,colorInfoBg:c}=e;return{[t]:{"&-success":pn(n,r,t),"&-info":pn(c,l,t),"&-warning":pn(a,o,t),"&-error":{...pn(s,i,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},fn=e=>{const{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:s}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:(0,Me.zA)(a),backgroundColor:"transparent",border:"none",cursor:"pointer",...(0,we.K8)(e),[`${r}-close`]:{color:i,transition:`color ${n}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${n}`,"&:hover":{color:s}}}}},gn=(0,ve.OF)("Alert",e=>[mn(e),hn(e),fn(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),bn=e=>{const{icon:t,type:r,className:n,style:o,successIcon:a,infoIcon:i,warningIcon:s,errorIcon:l}=e,c={success:a??p.createElement(ln.A,null),info:i??p.createElement(un.A,null),error:l??p.createElement(cn.A,null),warning:s??p.createElement(Ue.A,null)};return p.createElement("span",{className:n,style:o},t??c[r])},vn=e=>{const{isClosable:t,prefixCls:r,closeIcon:n,handleClose:o,ariaProps:a,className:i,style:s}=e,l=!0===n||void 0===n?p.createElement(U.A,null):n;return t?p.createElement("button",{type:"button",onClick:o,className:(0,c.$)(`${r}-close-icon`,i),tabIndex:0,style:s,...a},l):null},xn=p.forwardRef((e,t)=>{const{description:r,prefixCls:n,message:o,title:a,banner:i,className:s,rootClassName:l,style:u,onMouseEnter:d,onMouseLeave:m,onClick:h,afterClose:f,showIcon:g,closable:b,closeText:v,closeIcon:x,action:y,id:$,styles:C,classNames:w,...S}=e,k=a??o,[E,_]=p.useState(!1),A=p.useRef(null);p.useImperativeHandle(t,()=>({nativeElement:A.current}));const{getPrefixCls:N,direction:j,variant:M,closable:P,closeIcon:z,className:I,style:R,classNames:T,styles:O,successIcon:B,infoIcon:L,warningIcon:H,errorIcon:D}=(0,fe.TP)("alert"),F=N("alert",n),[W,V]=gn(F),{onClose:q,afterClose:X}=(0,pe.Qd)(b)?b:{},G=t=>{_(!0),(q??e.onClose)?.(t)},K=p.useMemo(()=>void 0!==e.type?e.type:i?"warning":"info",[e.type,i]),U=e.variant??M??"outlined",Y=p.useMemo(()=>!(!(0,pe.Qd)(b)||!b.closeIcon)||!!v||("boolean"==typeof b?b:!(!1===x||!(0,pe.R)(x))||!!P),[v,x,b,P]),Q=!(!i||void 0!==g)||g,Z={...e,prefixCls:F,variant:U,type:K,showIcon:Q,closable:Y},J=(0,de.XT)(R),ee=(0,de.XT)(u),[te,re]=(0,de.AV)([T,w],[O,J,C,ee],{props:Z}),ne=(0,c.$)(F,`${F}-${K}`,`${F}-${U}`,{[`${F}-with-description`]:!!r,[`${F}-no-icon`]:!Q,[`${F}-banner`]:!!i,[`${F}-rtl`]:"rtl"===j},I,s,l,te.root,V,W),oe=(0,Ye.KE)(S,{aria:!0,data:!0}),ae=p.useMemo(()=>(0,pe.Qd)(b)&&b.closeIcon?b.closeIcon:v||(void 0!==x?x:(0,pe.Qd)(P)&&P.closeIcon?P.closeIcon:z),[x,b,P,v,z]),ie=p.useMemo(()=>{const e=b??P;return(0,pe.Qd)(e)?(0,Ye.KE)(e,{data:!0,aria:!0}):{}},[b,P]);return p.createElement(dn.Ay,{visible:!E,motionName:`${F}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:X??f},({className:t,style:n},o)=>p.createElement("div",{id:$,ref:(0,Ye.K4)(A,o),"data-show":!E,className:(0,c.$)(ne,t),style:{...re.root,...n},onMouseEnter:d,onMouseLeave:m,onClick:h,role:"alert",...oe},Q?p.createElement(bn,{className:(0,c.$)(`${F}-icon`,te.icon),style:re.icon,description:r,icon:e.icon,prefixCls:F,type:K,successIcon:B,infoIcon:L,warningIcon:H,errorIcon:D}):null,p.createElement("div",{className:(0,c.$)(`${F}-section`,te.section),style:re.section},k?p.createElement("div",{className:(0,c.$)(`${F}-title`,te.title),style:re.title},k):null,r?p.createElement("div",{className:(0,c.$)(`${F}-description`,te.description),style:re.description},r):null),y?p.createElement("div",{className:(0,c.$)(`${F}-actions`,te.actions),style:re.actions},y):null,p.createElement(vn,{className:te.close,style:re.close,isClosable:Y,prefixCls:F,closeIcon:ae,handleClose:G,ariaProps:ie})))}),yn=xn;var $n=r(3029),Cn=r(2901),wn=r(3954),Sn=r(2176),kn=r(6822),En=r(5501);let An=function(e){function t(){var e,r,n,o;return(0,$n.A)(this,t),r=this,n=t,o=arguments,n=(0,wn.A)(n),(e=(0,kn.A)(r,(0,Sn.A)()?Reflect.construct(n,o||[],(0,wn.A)(r).constructor):n.apply(r,o))).state={error:void 0,info:{}},e}return(0,En.A)(t,e),(0,Cn.A)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,title:t,description:r,id:n,children:o}=this.props,{error:a,info:i}=this.state,s=t??e,l=i?.componentStack||null,c=(0,pe.R)(s)?s:a?.toString(),u=(0,pe.R)(r)?r:l;return a?p.createElement(yn,{id:n,type:"error",title:c,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},u)}):o}}])}(p.PureComponent);const Nn=An,jn=yn;jn.ErrorBoundary=Nn;const Mn=jn;var Pn=r(6267);function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zn.apply(this,arguments)}const In=(e,t)=>p.createElement(ar.A,zn({},e,{ref:t,icon:Pn.A})),Rn=p.forwardRef(In);var Tn=r(8331);function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},On.apply(this,arguments)}const Bn=(e,t)=>p.createElement(ar.A,On({},e,{ref:t,icon:Tn.A})),Ln=p.forwardRef(Bn);var Hn=r(5842);function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dn.apply(this,arguments)}const Fn=(e,t)=>p.createElement(ar.A,Dn({},e,{ref:t,icon:Hn.A})),Wn=p.forwardRef(Fn);var Vn=r(2662);function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qn.apply(this,arguments)}const Xn=(e,t)=>p.createElement(ar.A,qn({},e,{ref:t,icon:Vn.A})),Gn=p.forwardRef(Xn);var Kn=r(9387),Un=r(932);function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yn.apply(this,arguments)}const Qn=(e,t)=>p.createElement(ar.A,Yn({},e,{ref:t,icon:Un.A})),Zn=p.forwardRef(Qn);var Jn=r(4824),eo=r(9909);function to(){return to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},to.apply(this,arguments)}const ro=(e,t)=>p.createElement(ar.A,to({},e,{ref:t,icon:eo.A})),no=p.forwardRef(ro);var oo=r(8940),ao=r(513),io=r(153);function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},so.apply(this,arguments)}const lo=(e,t)=>p.createElement(ar.A,so({},e,{ref:t,icon:io.A})),co=p.forwardRef(lo);var uo=r(1041);const po=window.wp.components,mo=()=>(0,bt.jsxs)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,bt.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4"}),(0,bt.jsx)("circle",{cx:"9",cy:"9",r:"1.75"}),(0,bt.jsx)("path",{d:"m4 17 5-5 3.5 3.5L17 11l3 3"})]}),ho=({imageUrl:e,onSelect:t})=>{const[r,n]=(0,p.useState)(e||""),o=()=>{const e=wp.media({title:"Select Image",button:{text:"Use this image"},multiple:!1});e.on("select",()=>{const r=e.state().get("selection").first().toJSON();n(r.url),t(r)}),e.open()};return(0,bt.jsx)("div",{className:"ultimate-cursor-media-uploader",children:r?(0,bt.jsxs)("div",{className:"ultimate-cursor-media-uploader__row",children:[(0,bt.jsx)("img",{className:"ultimate-cursor-media-uploader__thumb",src:r,alt:""}),(0,bt.jsx)("button",{type:"button",className:"ultimate-cursor-media-uploader__change-btn",onClick:o,children:(0,W.__)("Change Image","ultimate-cursor")})]}):(0,bt.jsxs)("button",{type:"button",className:"ultimate-cursor-media-uploader__dropzone",onClick:o,children:[(0,bt.jsx)(mo,{}),(0,bt.jsx)("span",{children:(0,W.__)("Upload Image","ultimate-cursor")})]})})};var fo=r(4101),go=r(5514),bo=r(6962),vo=r(9893);function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xo.apply(this,arguments)}const yo=p.forwardRef(({prefixCls:e="rc-switch",className:t,checked:r,defaultChecked:n,disabled:o,loadingIcon:a,checkedChildren:i,unCheckedChildren:s,onClick:l,onChange:u,onKeyDown:d,styles:m,classNames:h,...f},g)=>{const[b,v]=(0,vo.A)(n??!1,r);function x(e,t){let r=b;return o||(r=e,v(r),u?.(r,t)),r}const y=(0,c.$)(e,t,{[`${e}-checked`]:b,[`${e}-disabled`]:o});return p.createElement("button",xo({},f,{type:"button",role:"switch","aria-checked":b,disabled:o,className:y,ref:g,onKeyDown:function(e){e.which===Y.A.LEFT?x(!1,e):e.which===Y.A.RIGHT&&x(!0,e),d?.(e)},onClick:function(e){const t=x(!b,e);l?.(t,e)}}),a,p.createElement("span",{className:`${e}-inner`},p.createElement("span",{className:(0,c.$)(`${e}-inner-checked`,h?.content),style:m?.content},i),p.createElement("span",{className:(0,c.$)(`${e}-inner-unchecked`,h?.content),style:m?.content},s)))});yo.displayName="Switch";const $o=yo;var Co=r(6130);const wo=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=(0,Me.zA)(l(s).add(l(n).mul(2)).equal()),d=(0,Me.zA)(l(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:r,lineHeight:(0,Me.zA)(r),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,Me.zA)(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},So=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},ko=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:o,handleSize:a,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...(0,Co.V)(),"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""',...(0,Co.V)()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${(0,Me.zA)(i(a).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Eo=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:o,innerMaxMargin:a,handleSize:i,switchDuration:s,calc:l}=e,c=`${t}-inner`,u=(0,Me.zA)(l(i).add(l(n).mul(2)).equal()),d=(0,Me.zA)(l(a).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:["padding-inline-start","padding-inline-end"].map(e=>`${e} ${s} ease-in-out`).join(", "),...(0,Co.V)(),[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:r,transition:["margin-inline-start","margin-inline-end"].map(e=>`${e} ${s} ease-in-out`).join(", "),...(0,Co.V)()},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(n).mul(2).equal(),marginInlineEnd:l(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(n).mul(-1).mul(2).equal(),marginInlineEnd:l(n).mul(2).equal()}}}}}},_o=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:{...(0,we.dF)(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:(0,Me.zA)(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",...(0,Co.V)(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...(0,we.K8)(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},Ao=(0,ve.OF)("Switch",e=>{const t=(0,Se.oX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_o(t),Eo(t),ko(t),So(t),wo(t)]},e=>{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:o}=e,a=t*r,i=n/2,s=a-4,l=i-4;return{trackHeight:a,trackHeightSM:i,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Bt.Y("#00230b").setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}),No=p.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:o,loading:a,className:i,rootClassName:s,style:l,checked:u,value:d,defaultChecked:m,defaultValue:h,onChange:f,styles:g,classNames:b,...v}=e,[x,y]=(0,Ye.PW)(m??h??!1,u??d),{getPrefixCls:$,direction:C,className:w,style:S,classNames:k,styles:E}=(0,fe.TP)("switch"),_=p.useContext(Ot.A),A=(o??_)||a,N=$("switch",r),[j,M]=Ao(N),P=(0,ge.A)(n),z={...e,size:P,disabled:A},I=(0,de.XT)(S),R=(0,de.XT)(l),[T,O]=(0,de.AV)([k,b],[E,I,g,R],{props:z}),B=p.createElement("div",{className:(0,c.$)(`${N}-handle`,T.indicator),style:O.indicator},a&&p.createElement(bo.A,{className:`${N}-loading-icon`})),L=(0,c.$)(w,{[`${N}-small`]:"small"===P,[`${N}-loading`]:a,[`${N}-rtl`]:"rtl"===C},i,s,T.root,j,M);return p.createElement(me.A,{component:"Switch",disabled:A},p.createElement($o,{...v,classNames:T,styles:O,checked:x,onChange:(...e)=>{y(e[0]),f?.(...e)},prefixCls:N,className:L,style:O.root,disabled:A,ref:t,loadingIcon:B}))}),jo=No;jo.__ANT_SWITCH=!0;const Mo=jo;var Po=r(7506),zo=r(9464),Io=r(6536);function Ro(e,t,r){return(e-t)/(r-t)}function To(e,t,r,n){const o=Ro(t,r,n),a={};switch(e){case"rtl":a.right=100*o+"%",a.transform="translateX(50%)";break;case"btt":a.bottom=100*o+"%",a.transform="translateY(50%)";break;case"ttb":a.top=100*o+"%",a.transform="translateY(-50%)";break;default:a.left=100*o+"%",a.transform="translateX(-50%)"}return a}function Oo(e,t){return Array.isArray(e)?e[t]:e}const Bo=p.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{},isHandleDisabled:()=>!1}),Lo=p.createContext({});function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ho.apply(this,arguments)}const Do=p.forwardRef((e,t)=>{const{prefixCls:r,value:n,valueIndex:o,onStartMove:a,onDelete:i,style:s,render:l,dragging:u,draggingDelete:d,onOffsetChange:m,onChangeComplete:h,onFocus:f,onMouseEnter:g,...b}=e,{min:v,max:x,direction:y,keyboard:$,range:C,tabIndex:w,ariaLabelForHandle:S,ariaLabelledByForHandle:k,ariaRequired:E,ariaValueTextFormatterForHandle:_,styles:A,classNames:N,isHandleDisabled:j}=p.useContext(Bo),M=j(o),P=`${r}-handle`,z=e=>{M?e.stopPropagation():a(e,o)},I=To(y,n,v,x);let R={};null!==o&&(R={tabIndex:M?void 0:Oo(w,o)??void 0,role:"slider","aria-valuemin":v,"aria-valuemax":x,"aria-valuenow":n,"aria-disabled":M,"aria-label":Oo(S,o),"aria-labelledby":Oo(k,o),"aria-required":Oo(E,o),"aria-valuetext":Oo(_,o)?.(n),"aria-orientation":"ltr"===y||"rtl"===y?"horizontal":"vertical",onMouseDown:z,onTouchStart:z,onFocus:e=>{f?.(e,o)},onMouseEnter:e=>{g(e,o)},onKeyDown:e=>{if(!M&&$){let t;switch(e.which||e.keyCode){case Y.A.LEFT:t="ltr"===y||"btt"===y?-1:1;break;case Y.A.RIGHT:t="ltr"===y||"btt"===y?1:-1;break;case Y.A.UP:t="ttb"!==y?1:-1;break;case Y.A.DOWN:t="ttb"!==y?-1:1;break;case Y.A.HOME:t="min";break;case Y.A.END:t="max";break;case Y.A.PAGE_UP:t=2;break;case Y.A.PAGE_DOWN:t=-2;break;case Y.A.BACKSPACE:case Y.A.DELETE:i?.(o)}void 0!==t&&(e.preventDefault(),m(t,o))}},onKeyUp:e=>{switch(e.which||e.keyCode){case Y.A.LEFT:case Y.A.RIGHT:case Y.A.UP:case Y.A.DOWN:case Y.A.HOME:case Y.A.END:case Y.A.PAGE_UP:case Y.A.PAGE_DOWN:h?.()}}});let T=p.createElement("div",Ho({ref:t,className:(0,c.$)(P,{[`${P}-${o+1}`]:null!==o&&C,[`${P}-dragging`]:u,[`${P}-dragging-delete`]:d,[`${P}-disabled`]:M},N.handle),style:{...I,...s,...A.handle}},R,b));return l&&(T=l(T,{index:o,prefixCls:r,value:n,dragging:u,draggingDelete:d})),T}),Fo=Do;function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wo.apply(this,arguments)}const Vo=p.forwardRef((e,t)=>{const{prefixCls:r,style:n,onStartMove:o,onOffsetChange:a,values:i,handleRender:s,activeHandleRender:l,draggingIndex:c,draggingDelete:u,onFocus:d,...m}=e,h=p.useRef({}),[g,b]=p.useState(!1),[v,x]=p.useState(-1),y=e=>{x(e),b(!0)};p.useImperativeHandle(t,()=>({focus:e=>{h.current[e]?.focus()},hideHelp:()=>{(0,f.flushSync)(()=>{b(!1)})}}));const $={prefixCls:r,onStartMove:o,onOffsetChange:a,render:s,onFocus:(e,t)=>{y(t),d?.(e)},onMouseEnter:(e,t)=>{y(t)},...m};return p.createElement(p.Fragment,null,i.map((e,t)=>{const r=c===t;return p.createElement(Fo,Wo({ref:e=>{e?h.current[t]=e:delete h.current[t]},dragging:r,draggingDelete:r&&u,style:Oo(n,t),key:t,value:e,valueIndex:t},$))}),l&&g&&p.createElement(Fo,Wo({key:"a11y"},$,{value:i[v],valueIndex:null,dragging:-1!==c,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:void 0,"aria-hidden":!0})))}),qo=Vo,Xo=e=>{const{prefixCls:t,style:r,children:n,value:o,onClick:a}=e,{min:i,max:s,direction:l,includedStart:u,includedEnd:d,included:m}=p.useContext(Bo),h=`${t}-text`,f=To(l,o,i,s);return p.createElement("span",{className:(0,c.$)(h,{[`${h}-active`]:m&&u<=o&&o<=d}),style:{...f,...r},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(o)}},n)},Go=e=>{const{prefixCls:t,marks:r=[],onClick:n}=e,o=`${t}-mark`;return r.length?p.createElement("div",{className:o},r.map(({value:e,style:t,label:r})=>p.createElement(Xo,{key:e,prefixCls:o,style:t,value:e,onClick:n},r))):null},Ko=e=>{const{prefixCls:t,value:r,style:n,activeStyle:o}=e,{min:a,max:i,direction:s,included:l,includedStart:u,includedEnd:d}=p.useContext(Bo),m=`${t}-dot`,h=l&&u<=r&&r<=d;let f={...To(s,r,a,i),..."function"==typeof n?n(r):n};return h&&(f={...f,..."function"==typeof o?o(r):o}),p.createElement("span",{className:(0,c.$)(m,{[`${m}-active`]:h}),style:f})},Uo=e=>{const{prefixCls:t,marks:r,dots:n,style:o,activeStyle:a}=e,{min:i,max:s,step:l}=p.useContext(Bo),c=p.useMemo(()=>{const e=new Set;if(r.forEach(t=>{e.add(t.value)}),n&&null!==l){let t=i;for(;t<=s;)e.add(t),t+=l}return Array.from(e)},[i,s,l,n,r]);return p.createElement("div",{className:`${t}-step`},c.map(e=>p.createElement(Ko,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})))},Yo=e=>{const{prefixCls:t,style:r,start:n,end:o,index:a,onStartMove:i,replaceCls:s}=e,{direction:l,min:u,max:d,disabled:m,range:h,classNames:f}=p.useContext(Bo),g=`${t}-track`,b=Ro(n,u,d),v=Ro(o,u,d),x=e=>{!m&&i&&i(e,-1)},y={};switch(l){case"rtl":y.right=100*b+"%",y.width=100*v-100*b+"%";break;case"btt":y.bottom=100*b+"%",y.height=100*v-100*b+"%";break;case"ttb":y.top=100*b+"%",y.height=100*v-100*b+"%";break;default:y.left=100*b+"%",y.width=100*v-100*b+"%"}const $=s||(0,c.$)(g,{[`${g}-${a+1}`]:null!==a&&h,[`${t}-track-draggable`]:i},f.track);return p.createElement("div",{className:$,style:{...y,...r},onMouseDown:x,onTouchStart:x})},Qo=e=>{const{prefixCls:t,style:r,values:n,startPoint:o,onStartMove:a}=e,{included:i,range:s,min:l,styles:u,classNames:d,isHandleDisabled:m}=p.useContext(Bo),h=p.useMemo(()=>n.some((e,t)=>m(t)),[m,n])?void 0:a,f=p.useMemo(()=>{if(!s){if(0===n.length)return[];const e=o??l,t=n[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}const e=[];for(let t=0;t<n.length-1;t+=1)e.push({start:n[t],end:n[t+1]});return e},[n,s,o,l]);if(!i)return null;const g=f?.length&&(d.tracks||u.tracks)?p.createElement(Yo,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:(0,c.$)(d.tracks,`${t}-tracks`),style:u.tracks}):null;return p.createElement(p.Fragment,null,g,f.map(({start:e,end:n},o)=>p.createElement(Yo,{index:o,prefixCls:t,style:{...Oo(r,o),...u.track},start:e,end:n,key:o,onStartMove:h})))};var Zo=r(2847);function Jo(e){const t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}const ea=(e,t,r,n,o,a)=>{const i="number"==typeof o?o:0;let s=r,l=n;for(let r=t-1;r>=0;r-=1)if(a(r)){s=e[r]+i;break}for(let r=t+1;r<e.length;r+=1)if(a(r)){l=e[r]-i;break}return[s,l]},ta=p.forwardRef((e,t)=>{const{prefixCls:r="rc-slider",className:n,style:o,classNames:a,styles:i,id:s,disabled:l=!1,keyboard:u=!0,autoFocus:d,onFocus:m,onBlur:h,min:f=0,max:g=100,step:b=1,value:v,defaultValue:x,range:y,count:$,onChange:C,onBeforeChange:w,onAfterChange:S,onChangeComplete:k,allowCross:E=!0,pushable:_=!1,reverse:A,vertical:N,included:j=!0,startPoint:M,trackStyle:P,handleStyle:z,railStyle:I,dotStyle:R,activeDotStyle:T,marks:O,dots:B,handleRender:L,activeHandleRender:H,track:D,tabIndex:F=0,ariaLabelForHandle:W,ariaLabelledByForHandle:V,ariaRequired:q,ariaValueTextFormatterForHandle:X}=e,G=p.useRef(null),K=p.useRef(null),[U,Y]=(0,vo.A)(x,v),Q=p.useMemo(()=>N?A?"ttb":"btt":A?"rtl":"ltr",[A,N]),[Z,J,ee,te,re]=function(e){return(0,p.useMemo)(()=>{if(!0===e||!e)return[!!e,!1,!1,0];const{editable:t,draggableTrack:r,minCount:n,maxCount:o}=e;return[!0,!!t,!t&&!!r,n||0,o]},[e])}(y),ne=p.useMemo(()=>isFinite(f)?f:0,[f]),oe=p.useMemo(()=>isFinite(g)?g:100,[g]),ae=p.useMemo(()=>null!==b&&b<=0?1:b,[b]),ie=p.useMemo(()=>"boolean"==typeof _?!!_&&ae:_>=0&&_,[_,ae]),se=p.useMemo(()=>{const e=O||{};return Object.keys(e).map(t=>{const r=e[t],n={value:Number(t)};return r&&"object"==typeof r&&!p.isValidElement(r)&&("label"in r||"style"in r)?(n.style=r.style,n.label=r.label):n.label=r,n}).filter(({label:e})=>e||"number"==typeof e).sort((e,t)=>e.value-t.value)},[O]),[le,ce]=(e=>{const t=p.useCallback(t=>"boolean"==typeof e?e:e[t]??!1,[e]),r=p.useCallback(r=>"boolean"==typeof e?[e,e&&r.length>0]:[r.length>0&&r.every((e,r)=>t(r)),r.some((e,r)=>t(r))],[e,t]);return p.useMemo(()=>[t,r],[t,r])})(l),[ue,de]=function(e,t,r,n,o,a,i){const s=p.useCallback(r=>Math.max(e,Math.min(t,r)),[e,t]),l=p.useCallback(n=>{if(null!==r){const o=e+Math.round((s(n)-e)/r)*r,a=e=>(String(e).split(".")[1]||"").length,i=Math.max(a(r),a(t),a(e)),l=Number(o.toFixed(i));return e<=l&&l<=t?l:null}return null},[r,e,t,s]),c=p.useCallback(o=>{const a=s(o),i=n.map(e=>e.value);null!==r&&i.push(l(o)),i.push(e,t);let c=i[0],u=t-e;return i.forEach(e=>{const t=Math.abs(a-e);t<=u&&(c=e,u=t)}),c},[e,t,n,r,s,l]),u=(o,a,i,s="unit")=>{if("number"==typeof a){let c;const d=o[i],p=d+a;let m=[];n.forEach(e=>{m.push(e.value)}),m.push(e,t),m.push(l(d));const h=a>0?1:-1;"unit"===s?m.push(l(d+h*r)):m.push(l(p)),m=m.filter(e=>null!==e).filter(e=>a<0?e<=d:e>=d),"unit"===s&&(m=m.filter(e=>e!==d));const f="unit"===s?d:p;c=m[0];let g=Math.abs(c-f);if(m.forEach(e=>{const t=Math.abs(e-f);t<g&&(c=e,g=t)}),void 0===c)return a<0?e:t;if("dist"===s)return c;if(Math.abs(a)>1){const e=[...o];return e[i]=c,u(e,a-h,i,s)}return c}return"min"===a?e:t},d=(e,t,r,n="unit")=>{const o=e[r],a=u(e,t,r,n);return{value:a,changed:a!==o}},m=e=>null===a&&0===e||"number"==typeof a&&e<a;return[c,(r,n,s,l="unit")=>{const p=r.map(c),h=p[s],[f,g]=ea(p,s,e,t,a,i),b=u(p,n,s,l);if(p[s]=b,p[s]=f<=g?Math.max(f,Math.min(g,p[s])):h,!1===o){const e=a||0;s>0&&p[s-1]!==h&&(p[s]=Math.max(p[s],p[s-1]+e)),s<p.length-1&&p[s+1]!==h&&(p[s]=Math.min(p[s],p[s+1]-e))}else if("number"==typeof a||null===a){for(let r=s+1;r<p.length&&!i(r);r+=1){let n=!0;for(;m(p[r]-p[r-1])&&n;)({value:p[r],changed:n}=d(p,1,r));const[,o]=ea(p,r,e,t,a,i);p[r]=Math.min(p[r],o)}for(let r=s;r>0&&!i(r-1);r-=1){let n=!0;for(;m(p[r]-p[r-1])&&n;)({value:p[r-1],changed:n}=d(p,-1,r-1));const[o]=ea(p,r-1,e,t,a,i);p[r-1]=Math.max(p[r-1],o)}for(let r=p.length-1;r>0;r-=1){if(i(r)||i(r-1))continue;let n=!0;for(;m(p[r]-p[r-1])&&n;)({value:p[r-1],changed:n}=d(p,-1,r-1));const[o]=ea(p,r-1,e,t,a,i);p[r-1]=Math.max(p[r-1],o)}for(let r=0;r<p.length-1;r+=1){if(i(r)||i(r+1))continue;let n=!0;for(;m(p[r+1]-p[r])&&n;)({value:p[r+1],changed:n}=d(p,1,r+1));const[,o]=ea(p,r+1,e,t,a,i);p[r+1]=Math.min(p[r+1],o)}}return{value:p[s],values:p}}]}(ne,oe,ae,se,E,ie,le),pe=p.useMemo(()=>{const e=null==U?[]:Array.isArray(U)?U:[U],[t=ne]=e;let r=null===U?[]:[t];if(Z){if(r=[...e],$||void 0===U){const e=void 0!==$&&$>=0?$+1:2;for(r=r.slice(0,e);r.length<e;)r.push(r[r.length-1]??ne)}r.sort((e,t)=>e-t)}return r.forEach((e,t)=>{r[t]=ue(e)}),r},[U,Z,ne,$,ue]),[me,he]=p.useMemo(()=>ce(pe),[ce,pe]),fe=J&&!he,ge=e=>Z?e:e[0],be=(0,Po.A)(e=>{const t=[...e].sort((e,t)=>e-t);C&&!(0,zo.A)(t,pe,!0)&&C(ge(t)),Y(t)}),ve=(0,Po.A)(e=>{e&&G.current.hideHelp();const t=ge(pe);S?.(t),(0,Io.Ay)(!S,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k?.(t)}),[xe,ye,$e,Ce,we]=function(e,t,r,n,o,a,i,s,l,c,u,d){const[m,h]=p.useState(null),[f,g]=p.useState(-1),[b,v]=p.useState(!1),[x,y]=p.useState(r),[$,C]=p.useState(r),w=p.useRef(null),S=p.useRef(null),k=p.useRef(null),{onDragStart:E,onDragChange:_}=p.useContext(Lo);(0,Zo.A)(()=>{-1===f&&y(r)},[r,f]),p.useEffect(()=>()=>{w.current&&document.removeEventListener("mousemove",w.current),S.current&&document.removeEventListener("mouseup",S.current),k.current&&(w.current&&k.current.removeEventListener("touchmove",w.current),S.current&&k.current.removeEventListener("touchend",S.current))},[]);const A=(e,t,r)=>{void 0!==t&&h(t),y(e);let n=e;r&&(n=e.filter((e,t)=>t!==f)),i(n),_&&_({rawValues:e,deleteIndex:r?f:-1,draggingIndex:f,draggingValue:t})},N=(0,Po.A)((e,t,r)=>{if(-1===e){if($.some((e,t)=>d(t)))return;const e=$[0],r=$[$.length-1],i=n-e,s=o-r;let l=t*(o-n);l=Math.max(l,i),l=Math.min(l,s);const c=a(e+l);l=c-e;const u=$.map(e=>e+l);A(u)}else{const a=(o-n)*t,i=[...x];i[e]=$[e];const s=l(i,a,e,"dist");A(s.values,s.value,r)}}),j=p.useMemo(()=>{const e=[...r].sort((e,t)=>e-t),t=[...x].sort((e,t)=>e-t),n={};t.forEach(e=>{n[e]=(n[e]||0)+1}),e.forEach(e=>{n[e]=(n[e]||0)-1});const o=c?1:0;return Object.values(n).reduce((e,t)=>e+Math.abs(t),0)<=o?x:r},[r,x,c]);return[f,m,b,j,(n,o,a)=>{n.stopPropagation();const i=a||r;if(d(o))return;const l=i[o];g(o),h(l),C(i),y(i),v(!1);const{pageX:p,pageY:m}=Jo(n);let f=!1;E&&E({rawValues:i,draggingIndex:o,draggingValue:l});const b=r=>{r.preventDefault();const{pageX:n,pageY:a}=Jo(r),i=n-p,s=a-m,{width:l,height:d}=e.current.getBoundingClientRect();let h,g;switch(t){case"btt":h=-s/d,g=i;break;case"ttb":h=s/d,g=i;break;case"rtl":h=-i/l,g=s;break;default:h=i/l,g=s}f=!!c&&Math.abs(g)>130&&u<x.length,v(f),N(o,h,f)},$=e=>{e.preventDefault(),document.removeEventListener("mouseup",$),document.removeEventListener("mousemove",b),k.current&&(w.current&&k.current.removeEventListener("touchmove",w.current),S.current&&k.current.removeEventListener("touchend",S.current)),w.current=null,S.current=null,k.current=null,s(f),g(-1),v(!1)};document.addEventListener("mouseup",$),document.addEventListener("mousemove",b),n.currentTarget.addEventListener("touchend",$),n.currentTarget.addEventListener("touchmove",b),w.current=b,S.current=$,k.current=n.currentTarget}]}(K,Q,pe,ne,oe,ue,be,ve,de,fe,te,le),Se=(e,t)=>{if(!me){const r=pe.length?((e,t,r,n,o,a)=>{let i=-1,s=n-r;return e.forEach((l,c)=>{if(a(c))return;const[u,d]=ea(e,c,r,n,o,a);if(u<=t&&t<=d){const e=Math.abs(t-l);e<=s&&(s=e,i=c)}}),i})(pe,e,ne,oe,ie,le):0;if(-1===r)return;const n=[...pe];let o=0;const a=pe.length?Math.abs(e-pe[r]):oe-ne;pe.forEach((t,r)=>{t<e&&(o=r)});let i=r;fe&&0!==a&&(!re||pe.length<re)?(n.splice(o+1,0,e),i=o+1):(n[r]=e,i=r),Z&&!pe.length&&void 0===$&&n.push(e);const s=ge(n);w?.(s),be(n),t?(document.activeElement?.blur?.(),G.current.focus(i),we(t,i,n)):(S?.(s),(0,Io.Ay)(!S,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k?.(s))}},[ke,Ee]=p.useState(null);p.useEffect(()=>{if(null!==ke){const{value:e,index:t}=ke,r=pe[t]===e?t:pe.indexOf(e);r>=0&&G.current.focus(r)}Ee(null)},[ke]);const _e=p.useMemo(()=>(!ee||null!==ae)&&ee,[ee,ae]),Ae=(0,Po.A)((e,t)=>{we(e,t),w?.(ge(pe))}),Ne=-1!==xe;p.useEffect(()=>{if(!Ne){const e=pe.lastIndexOf(ye);G.current.focus(e)}},[Ne]);const je=p.useMemo(()=>[...Ce].sort((e,t)=>e-t),[Ce]),[Me,Pe]=p.useMemo(()=>Z?[je[0],je[je.length-1]]:[ne,je[0]],[je,Z,ne]);p.useImperativeHandle(t,()=>({focus:()=>{G.current.focus(0)},blur:()=>{const{activeElement:e}=document;K.current?.contains(e)&&e?.blur()}}));const ze=p.useRef(d);p.useEffect(()=>{ze.current&&G.current.focus(0)},[]);const Ie=p.useMemo(()=>({min:ne,max:oe,direction:Q,disabled:me,keyboard:u,step:ae,included:j,includedStart:Me,includedEnd:Pe,range:Z,tabIndex:F,ariaLabelForHandle:W,ariaLabelledByForHandle:V,ariaRequired:q,ariaValueTextFormatterForHandle:X,styles:i||{},classNames:a||{},isHandleDisabled:le}),[ne,oe,Q,me,u,ae,j,Me,Pe,Z,F,W,V,q,X,i,a,le]);return p.createElement(Bo.Provider,{value:Ie},p.createElement("div",{ref:K,className:(0,c.$)(r,n,{[`${r}-disabled`]:me,[`${r}-vertical`]:N,[`${r}-horizontal`]:!N,[`${r}-with-marks`]:se.length}),style:o,onMouseDown:e=>{e.preventDefault();const{width:t,height:r,left:n,top:o,bottom:a,right:i}=K.current.getBoundingClientRect(),{clientX:s,clientY:l}=e;let c;switch(Q){case"btt":c=(a-l)/r;break;case"ttb":c=(l-o)/r;break;case"rtl":c=(i-s)/t;break;default:c=(s-n)/t}Se(ue(ne+c*(oe-ne)),e)},id:s},p.createElement("div",{className:(0,c.$)(`${r}-rail`,a?.rail),style:{...I,...i?.rail}}),!1!==D&&p.createElement(Qo,{prefixCls:r,style:P,values:pe,startPoint:M,onStartMove:_e?Ae:void 0}),p.createElement(Uo,{prefixCls:r,marks:se,dots:B,style:R,activeStyle:T}),p.createElement(qo,{ref:G,prefixCls:r,style:z,values:Ce,draggingIndex:xe,draggingDelete:$e,onStartMove:Ae,onOffsetChange:(e,t)=>{if(!me&&!le(t)){const r=de(pe,e,t);w?.(ge(pe)),be(r.values),Ee({value:r.value,index:t})}},onFocus:m,onBlur:h,handleRender:L,activeHandleRender:H,onChangeComplete:ve,onDelete:fe?e=>{if(me||!fe||pe.length<=te)return;const t=[...pe];t.splice(e,1),w?.(ge(t)),be(t);const r=Math.max(0,e-1);G.current.hideHelp(),G.current.focus(r)}:void 0}),p.createElement(Go,{prefixCls:r,marks:se,onClick:Se})))}),ra=ta;var na=r(2283);const oa=(0,p.createContext)({}),aa=p.forwardRef((e,t)=>{const{open:r,draggingDelete:n,value:o}=e,a=(0,p.useRef)(null),i=r&&!n,s=(0,p.useRef)(null);function l(){Ye.er.cancel(s.current),s.current=null}return p.useEffect(()=>(i?s.current=(0,Ye.er)(()=>{a.current?.forceAlign(),s.current=null}):l(),l),[i,e.title,o]),p.createElement(xe.A,{ref:(0,Ye.K4)(a,t),...e,open:i})}),ia=e=>{const{componentCls:t,antCls:r,controlSize:n,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:p,handleActiveOutlineColor:m,handleLineWidth:h,handleLineWidthHover:f,motionDurationMid:g}=e,b={backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${(0,Me.zA)(h)} ${l}`,insetInlineStart:0,insetBlockStart:0};return{[t]:{...(0,we.dF)(e),position:"relative",height:n,margin:`${(0,Me.zA)(i)} ${(0,Me.zA)(a)}`,padding:0,cursor:"pointer",touchAction:"none",userSelect:"none","&-vertical":{margin:`${(0,Me.zA)(a)} ${(0,Me.zA)(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${(0,Me.zA)(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(h).mul(-1).equal(),insetBlockStart:c(h).mul(-1).equal(),width:c(u).add(c(h).mul(2)).equal(),height:c(u).add(c(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,Me.zA)(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:["inset-inline-start","inset-block-start","width","height","box-shadow","outline"].map(e=>`${e} ${g}`).join(", ")},"&:hover, &:active, &:focus":{[`&:not(${t}-handle-disabled)::before`]:{insetInlineStart:c(d).sub(u).div(2).add(f).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(f).mul(-1).equal(),width:c(d).add(c(f).mul(2)).equal(),height:c(d).add(c(f).mul(2)).equal()},[`&:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${(0,Me.zA)(f)} ${p}`,outline:`6px solid ${m}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${(0,Me.zA)(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{...b},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`${t}-handle-disabled::after`]:{...b},[`&-tooltip ${r}-tooltip-container`]:{minWidth:"unset"}}}},sa=(e,t)=>{const{componentCls:r,railSize:n,handleSize:o,dotSize:a,marginFull:i,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",m=s(n).mul(3).sub(o).div(2).equal(),h=s(o).sub(n).div(2).equal(),f=t?{borderWidth:`${(0,Me.zA)(h)} 0`,transform:`translateY(${(0,Me.zA)(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${(0,Me.zA)(h)}`,transform:`translateX(${(0,Me.zA)(e.calc(h).mul(-1).equal())})`};return{[l]:n,[u]:s(n).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[u]:n},[`${r}-track,${r}-tracks`]:{[u]:n},[`${r}-track-draggable`]:{...f},[`${r}-handle`]:{[d]:m},[`${r}-mark`]:{insetInlineStart:0,top:0,[p]:s(n).mul(3).add(t?0:i).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[p]:n,[c]:"100%",[u]:n},[`${r}-dot`]:{position:"absolute",[d]:s(n).sub(a).div(2).equal()}}},la=e=>{const{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:{...sa(e,!0),[`&${t}-with-marks`]:{marginBottom:r}}}},ca=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:{...sa(e,!1),height:"100%"}}},ua=(0,ve.OF)("Slider",e=>{const t=(0,Se.oX)(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[ia(t),la(t),ca(t)]},e=>{const t=e.controlHeightLG/4,r=e.controlHeightSM/2,n=e.lineWidth+1,o=e.lineWidth+1.5,a=e.colorPrimary,i=new Bt.Y(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:r,dotSize:8,handleLineWidth:n,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:i,handleColorDisabled:new Bt.Y(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function da(){const[e,t]=p.useState(!1),r=p.useRef(null),n=()=>{Ye.er.cancel(r.current)};return p.useEffect(()=>n,[]),[e,e=>{n(),e?t(e):r.current=(0,Ye.er)(()=>{t(e)})}]}const pa=m().forwardRef((e,t)=>{const{prefixCls:r,range:n,className:o,rootClassName:a,style:i,disabled:s,tooltip:l={},onChangeComplete:u,classNames:d,styles:p,vertical:h,orientation:f,...g}=e,[,b]=(0,na.M)(f,h),{getPrefixCls:v,direction:x,className:y,style:$,classNames:C,styles:w,getPopupContainer:S}=(0,fe.TP)("slider"),k=m().useContext(Ot.A),E=s??k,_={...e,disabled:E,vertical:b},A=(0,de.XT)($),N=(0,de.XT)(i),[j,M]=(0,de.AV)([C,d],[w,A,p,N],{props:_}),{handleRender:P,direction:z}=m().useContext(oa),I="rtl"===(z||x),[R,T]=da(),[O,B]=da(),L={...l},{open:H,placement:D,getPopupContainer:F,prefixCls:W,formatter:V}=L,q=H,X=(R||O)&&!1!==q,G=function(e){return e||null===e?e:e=>(0,pe.Et)(e)?e.toString():""}(V),[K,U]=da(),Y=(e,t)=>e||(t?I?"left":"right":"top"),Q=v("slider",r),[Z,J]=ua(Q),ee=(0,c.$)(o,y,j.root,a,{[`${Q}-rtl`]:I,[`${Q}-lock`]:K},Z,J);I&&!b&&(g.reverse=!g.reverse),m().useEffect(()=>{const e=()=>{(0,Ye.er)(()=>{B(!1)},1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[]);const te=n&&!q,re=P||((e,t)=>{const{index:r}=t,n=e.props;function o(e,t,r){r&&g[e]?.(t),n[e]?.(t)}const a={...n,onMouseEnter:e=>{T(!0),o("onMouseEnter",e)},onMouseLeave:e=>{T(!1),o("onMouseLeave",e)},onMouseDown:e=>{B(!0),U(!0),o("onMouseDown",e)},onFocus:e=>{B(!0),g.onFocus?.(e),o("onFocus",e,!0)},onBlur:e=>{B(!1),g.onBlur?.(e),o("onBlur",e,!0)}},i=m().cloneElement(e,a),s=(!!q||X)&&null!==G;return te?i:m().createElement(aa,{...L,prefixCls:v("tooltip",W),title:G?G(t.value):void 0,value:t.value,open:s,placement:Y(D,b),key:r,classNames:{root:`${Q}-tooltip`},getPopupContainer:F||S},i)}),ne=te?(e,t)=>{const r=m().cloneElement(e,{style:{...e.props.style,visibility:"hidden"}});return m().createElement(aa,{...L,prefixCls:v("tooltip",W),title:G?G(t.value):void 0,open:null!==G&&X,placement:Y(D,b),key:"tooltip",classNames:{root:`${Q}-tooltip`},getPopupContainer:F||S,draggingDelete:t.draggingDelete},r)}:void 0,oe={...M.root};return m().createElement(ra,{...g,classNames:j,styles:M,step:g.step,range:n,className:ee,style:oe,disabled:E,vertical:b,ref:t,prefixCls:Q,handleRender:re,activeHandleRender:ne,onChangeComplete:e=>{u?.(e),U(!1)}})}),ma=pa;var ha=r(3964),fa=r(4764);function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ga.apply(this,arguments)}const ba=(e,t)=>p.createElement(ar.A,ga({},e,{ref:t,icon:fa.A})),va=p.forwardRef(ba);var xa=r(1851);function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ya.apply(this,arguments)}const $a=(e,t)=>p.createElement(ar.A,ya({},e,{ref:t,icon:xa.A})),Ca=p.forwardRef($a);var wa=r(4467),Sa=r(296);function ka(){return"function"==typeof BigInt}function Ea(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function _a(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var n=t||"0",o=n.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(n)}}function Aa(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Na(e){var t=e.toLowerCase().split("e"),r=(0,Sa.A)(t,2),n=r[0],o=r[1],a=void 0===o?"0":o,i=n.startsWith("-"),s=(i?n.slice(1):n).split("."),l=(0,Sa.A)(s,2),c=l[0],u=void 0===c?"0":c,d=l[1],p=void 0===d?"":d;return{decimal:p,digits:"".concat(u).concat(p).replace(/^0+/,"")||"0",exponent:Number(a),integer:u,negative:i}}function ja(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function Ma(e){var t=String(e);return Aa(e)?ja(Na(t)):t.includes(".")&&za(t)?t.length-t.indexOf(".")-1:0}function Pa(e){var t=String(e);if(Aa(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ka()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(ka()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var r=Na(t),n=ja(r);t=n>100?function(e){var t=e.decimal,r=e.digits,n=e.exponent,o=e.integer,a=e.negative;if("0"===r)return"0";var i,s=o.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=(s||-l)+n;return i=c<=0?"0.".concat("0".repeat(-c)).concat(r):c>=r.length?"".concat(r).concat("0".repeat(c-r.length)):"".concat(r.slice(0,c),".").concat(r.slice(c)),"".concat(a?"-":"").concat(i)}(r):e.toFixed(n)}return _a(t).fullStr}function za(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var Ia=function(){function e(t){if((0,$n.A)(this,e),(0,wa.A)(this,"origin",""),(0,wa.A)(this,"negative",void 0),(0,wa.A)(this,"integer",void 0),(0,wa.A)(this,"decimal",void 0),(0,wa.A)(this,"decimalLen",void 0),(0,wa.A)(this,"empty",void 0),(0,wa.A)(this,"nan",void 0),Ea(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var r=t;if(Aa(r)&&(r=Number(r)),za(r="string"==typeof r?r:Pa(r))){var n=_a(r);this.negative=n.negative;var o=n.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}}return(0,Cn.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,r,n){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=r(this.alignDecimal(o),t.alignDecimal(o)).toString(),i=n(o),s=_a(a),l=s.negativeStr,c=s.trimStr,u="".concat(l).concat(c.padStart(i+1,"0"));return new e("".concat(u.slice(0,-i),".").concat(u.slice(-i)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=new e(t);return r.isInvalidate()?this:this.cal(r,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var r=new e(t);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":_a("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),Ra=function(){function e(t){(0,$n.A)(this,e),(0,wa.A)(this,"origin",""),(0,wa.A)(this,"number",void 0),(0,wa.A)(this,"empty",void 0),Ea(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,Cn.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var r=Number(t);if(Number.isNaN(r))return this;var n=this.number+r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Ma(this.number),Ma(r));return new e(n.toFixed(o))}},{key:"multi",value:function(t){var r=Number(t);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var n=this.number*r;if(n>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(n<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(Ma(this.number),Ma(r));return new e(n.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":Aa(this.number)&&Ma(this.number)>100?String(this.number):Pa(this.number)}}]),e}();function Ta(e){return ka()?new Ia(e):new Ra(e)}function Oa(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=_a(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(r>=0){var u=Number(s[r]);return u>=5&&!n?Oa(Ta(e).add("".concat(a,"0.").concat("0".repeat(r)).concat(10-u)).toString(),t,r,n):0===r?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return".0"===l?c:"".concat(c).concat(l)}const Ba=Ta;var La=r(6533);function Ha({prefixCls:e,action:t,children:r,disabled:n,className:o,style:a,onStep:i}){const s="up"===t,l=p.useRef(),u=p.useRef([]),d=()=>{clearTimeout(l.current)};p.useEffect(()=>()=>{d(),u.current.forEach(e=>{La.A.cancel(e)})},[]);const m=`${e}-action`,h=(0,c.$)(m,`${m}-${t}`,{[`${m}-${t}-disabled`]:n},o),f=()=>u.current.push((0,La.A)(d));return p.createElement("span",{unselectable:"on",role:"button",onMouseUp:f,onMouseLeave:f,onMouseDown:e=>{(e=>{e.preventDefault(),d(),i(s,"handler"),l.current=setTimeout(function e(){i(s,"handler"),l.current=setTimeout(e,200)},600)})(e)},"aria-label":s?"Increase Value":"Decrease Value","aria-disabled":n,className:h,style:a},r||p.createElement("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}function Da(e){const t="number"==typeof e?Pa(e):_a(e).fullStr;return t.includes(".")?_a(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Fa=r(3415);const Wa=()=>{const e=(0,p.useRef)(0),t=()=>{La.A.cancel(e.current)};return(0,p.useEffect)(()=>t,[]),r=>{t(),e.current=(0,La.A)(()=>{r()})}};function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Va.apply(this,arguments)}r.dn(Wa);const qa=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),Xa=e=>{const t=Ba(e);return t.isInvalidate()?null:t},Ga=p.forwardRef((e,t)=>{const{mode:r="input",prefixCls:n="rc-input-number",className:o,style:a,classNames:i,styles:s,min:l,max:u,step:d=1,defaultValue:m,value:h,disabled:f,readOnly:g,upHandler:b,downHandler:v,keyboard:x,changeOnWheel:y=!1,controls:$=!0,prefix:C,suffix:w,stringMode:S,parser:k,formatter:E,precision:_,decimalSeparator:A,onChange:N,onInput:j,onPressEnter:M,onStep:P,onMouseDown:z,onClick:I,onMouseUp:R,onMouseLeave:T,onMouseMove:O,onMouseEnter:B,onMouseOut:L,changeOnBlur:H=!0,...D}=e,[F,W]=p.useState(!1),V=p.useRef(!1),q=p.useRef(!1),X=p.useRef(!1),G=p.useRef(null),K=p.useRef(null);p.useImperativeHandle(t,()=>{return e=K.current,t={focus:e=>{(0,Fa.F4)(K.current,e)},blur:()=>{K.current?.blur()},nativeElement:G.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get(e,r){if(t[r])return t[r];const n=e[r];return"function"==typeof n?n.bind(e):n}}):e;var e,t});const[U,Y]=p.useState(()=>Ba(h??m)),Q=p.useCallback((e,t)=>{if(!t)return _>=0?_:Math.max(Ma(e),Ma(d))},[_,d]),Z=p.useCallback(e=>{const t=String(e);if(k)return k(t);let r=t;return A&&(r=r.replace(A,".")),r.replace(/[^\w.-]+/g,"")},[k,A]),J=p.useRef(""),ee=p.useCallback((e,t)=>{if(E)return E(e,{userTyping:t,input:String(J.current)});let r="number"==typeof e?Pa(e):e;if(!t){const e=Q(r,t);za(r)&&(A||e>=0)&&(r=Oa(r,A||".",e))}return r},[E,Q,A]),[te,re]=p.useState(()=>{const e=m??h;return U.isInvalidate()&&["string","number"].includes(typeof e)?Number.isNaN(e)?"":e:ee(U.toString(),!1)});function ne(e,t){re(ee(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}J.current=te;const oe=p.useMemo(()=>Xa(u),[u,_]),ae=p.useMemo(()=>Xa(l),[l,_]),ie=p.useMemo(()=>!(!oe||!U||U.isInvalidate())&&oe.lessEquals(U),[oe,U]),se=p.useMemo(()=>!(!ae||!U||U.isInvalidate())&&U.lessEquals(ae),[ae,U]),[le,ce]=function(e,t){const r=(0,p.useRef)(null);return[function(){try{const{selectionStart:t,selectionEnd:n,value:o}=e,a=o.substring(0,t),i=o.substring(n);r.current={start:t,end:n,value:o,beforeTxt:a,afterTxt:i}}catch(e){}},function(){if(e&&r.current&&t)try{const{value:t}=e,{beforeTxt:n,afterTxt:o,start:a}=r.current;let i=t.length;if(t.startsWith(n))i=n.length;else if(t.endsWith(o))i=t.length-r.current.afterTxt.length;else{const e=n[a-1],r=t.indexOf(e,a-1);-1!==r&&(i=r+1)}e.setSelectionRange(i,i)}catch(e){(0,Io.Ay)(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}]}(K.current,F),ue=e=>oe&&!e.lessEquals(oe)?oe:ae&&!ae.lessEquals(e)?ae:null,de=e=>!ue(e),pe=(e,t)=>{let r=e,n=de(r)||r.isEmpty();if(r.isEmpty()||t||(r=ue(r)||r,n=!0),!g&&!f&&n){const e=r.toString(),n=Q(e,t);return n>=0&&(r=Ba(Oa(e,".",n)),de(r)||(r=Ba(Oa(e,".",n,!0)))),r.equals(U)||(void 0===h&&Y(r),N?.(r.isEmpty()?null:qa(S,r)),void 0===h&&ne(r,t)),r}return U},me=Wa(),he=e=>{if(le(),J.current=e,re(e),!q.current){const t=Z(e),r=Ba(t);r.isNaN()||pe(r,!0)}j?.(e),me(()=>{let t=e;k||(t=e.replace(/。/g,".")),t!==e&&he(t)})},fe=(0,Ye._q)((e,t)=>{if(e&&ie||!e&&se)return;V.current=!1;let r=Ba(X.current?Da(d):d);e||(r=r.negate());const n=(U||Ba(0)).add(r.toString()),o=pe(n,!1);P?.(qa(S,o),{offset:X.current?Da(d):d,type:e?"up":"down",emitter:t}),K.current?.focus()}),ge=e=>{const t=Ba(Z(te));let r;r=t.isNaN()?pe(U,e):pe(t,e),void 0!==h?ne(U,!1):r.isNaN()||ne(r,!1)};p.useEffect(()=>{if(y&&F){const e=e=>{fe(e.deltaY<0,"wheel"),e.preventDefault()},t=K.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),()=>t.removeEventListener("wheel",e)}}),(0,Zo.o)(()=>{U.isInvalidate()||ne(U,!1)},[_,E]),(0,Zo.o)(()=>{const e=Ba(h);Y(e);const t=Ba(Z(te));e.equals(t)&&V.current&&!E||ne(e,V.current)},[h]),(0,Zo.o)(()=>{E&&ce()},[te]);const be={prefixCls:n,onStep:fe,className:i?.action,style:s?.action},ve=p.createElement(Ha,Va({},be,{action:"up",disabled:ie}),b),xe=p.createElement(Ha,Va({},be,{action:"down",disabled:se}),v);return p.createElement("div",{ref:G,className:(0,c.$)(n,`${n}-mode-${r}`,o,i?.root,{[`${n}-focused`]:F,[`${n}-disabled`]:f,[`${n}-readonly`]:g,[`${n}-not-a-number`]:U.isNaN(),[`${n}-out-of-range`]:!U.isInvalidate()&&!de(U)}),style:{...s?.root,...a},onMouseDown:e=>{K.current&&e.target!==K.current&&(K.current.focus(),e.preventDefault()),z?.(e)},onMouseUp:R,onMouseLeave:T,onMouseMove:O,onMouseEnter:B,onMouseOut:L,onClick:I,onFocus:()=>{W(!0)},onBlur:()=>{H&&ge(!1),W(!1),V.current=!1},onKeyDown:e=>{const{key:t,shiftKey:r}=e;V.current=!0,X.current=r,"Enter"===t&&(q.current||(V.current=!1),ge(!1),M?.(e)),!1!==x&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(fe("Up"===t||"ArrowUp"===t,"keyboard"),e.preventDefault())},onKeyUp:()=>{V.current=!1,X.current=!1},onCompositionStart:()=>{q.current=!0},onCompositionEnd:()=>{q.current=!1,he(K.current.value)},onBeforeInput:()=>{V.current=!0}},"spinner"===r&&$&&xe,void 0!==C&&p.createElement("div",{className:(0,c.$)(`${n}-prefix`,i?.prefix),style:s?.prefix},C),p.createElement("input",Va({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":u,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:d,ref:K,className:(0,c.$)(`${n}-input`,i?.input),style:s?.input,value:te,onChange:e=>{he(e.target.value)},disabled:f,readOnly:g},D)),void 0!==w&&p.createElement("div",{className:(0,c.$)(`${n}-suffix`,i?.suffix),style:s?.suffix},w),"spinner"===r&&$&&ve,"input"===r&&$&&p.createElement("div",{className:(0,c.$)(`${n}-actions`,i?.actions),style:s?.actions},ve,xe))}),Ka=Ga;var Ua=r(5699),Ya=r(9222),Qa=r(5974);const Za=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:i,colorError:s,paddingInlineSM:l,paddingBlockSM:c,paddingBlockLG:u,paddingInlineLG:d,colorIcon:p,colorTextDisabled:m,motionDurationMid:h,handleHoverColor:f,handleOpacity:g,paddingInline:b,paddingBlock:v,handleBg:x,handleActiveBg:y,inputAffixPadding:$,borderRadiusSM:C,controlWidth:w,handleBorderColor:S,filledHandleBg:k,lineHeightLG:E,antCls:_}=e,A=`${(0,Me.zA)(r)} ${n} ${S}`,[N,j]=(0,ve.PN)(_,"input-number");return[{[t]:{...(0,we.dF)(e),...(0,Ar.wj)(e),[N("input-padding-block")]:(0,Me.zA)(v),[N("input-padding-inline")]:(0,Me.zA)(b),display:"inline-flex",width:w,margin:0,paddingBlock:0,borderRadius:o,...(0,Ya.Eb)(e,{[`${t}-actions`]:{background:x,[`${t}-action-down`]:{borderBlockStart:A}}}),...(0,Ya.sA)(e,{[`${t}-actions`]:{background:k,[`${t}-action-down`]:{borderBlockStart:A}},"&:focus-within":{[`${t}-actions`]:{background:x}}}),...(0,Ya.aP)(e,{[`${t}-actions`]:{background:x,[`${t}-action-down`]:{borderBlockStart:A}}}),...(0,Ya.lB)(e),[`&${t}-borderless`]:{paddingBlock:0,[N("input-padding-block")]:(0,Me.zA)(e.calc(v).add(r).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[N("input-padding-block")]:(0,Me.zA)(e.calc(c).add(r).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[N("input-padding-block")]:(0,Me.zA)(e.calc(u).add(r).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:{...(0,we.dF)(e),width:"100%",paddingBlock:j("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...(0,Ar.j_)(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...(0,we.Nk)(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${h} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:y},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:f},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:m}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${h}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:p,height:"50%",borderInlineStart:A,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:j("input-padding-inline"),"&-up":{borderInlineStart:A},"&-down":{borderInlineEnd:A}},[`${t}-input`]:{textAlign:"center",paddingInline:j("input-padding-inline")}}}},{[t]:{"&-lg":{[N("input-padding-block")]:(0,Me.zA)(u),[N("input-padding-inline")]:(0,Me.zA)(d),paddingBlock:0,fontSize:i,lineHeight:E},"&-sm":{[N("input-padding-block")]:(0,Me.zA)(c),[N("input-padding-inline")]:(0,Me.zA)(l),paddingBlock:0,fontSize:a,borderRadius:C}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:$},[`${t}-suffix`]:{height:"100%",marginInlineStart:$,transition:`margin ${h}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},Ja=e=>{const{componentCls:t,antCls:r}=e;return{[`${t}-addon`]:{[`&:has(${r}-select)`]:{border:0,padding:0}}}},ei=(0,ve.OF)("InputNumber",e=>{const t=(0,Se.oX)(e,(0,Br.C)(e));return[Za(t),Ja(t),(0,Qa.G)(t)]},e=>{const t=e.handleVisible??"auto",r=e.controlHeightSM-2*e.lineWidth;return{...(0,Br.b)(e),controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Bt.Y(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===t?1:0,handleVisibleWidth:!0===t?r:0}},{unitless:{handleOpacity:!0},resetFont:!1}),ti=p.forwardRef((e,t)=>{const r=p.useRef(null);p.useImperativeHandle(t,()=>r.current);const{rootClassName:n,size:o,disabled:a,prefixCls:i,addonBefore:s,addonAfter:l,prefix:u,suffix:d,bordered:m,readOnly:h,status:f,controls:g=!0,variant:b,className:v,style:x,classNames:y,styles:$,mode:C,...w}=e,{direction:S,className:k,style:E,styles:_,classNames:A}=(0,fe.TP)("inputNumber"),N=p.useContext(Ot.A),j=a??N,M=p.useMemo(()=>!(!g||j||h)&&g,[g,j,h]),{compactSize:P,compactItemClassnames:z}=(0,Ir.RQ)(i,S);let I="spinner"===C?p.createElement(oo.A,null):p.createElement(Ca,null),R="spinner"===C?p.createElement(va,null):p.createElement(ha.A,null);const T="boolean"==typeof M?M:void 0;(0,pe.Qd)(M)&&(I=M.upIcon||I,R=M.downIcon||R);const{hasFeedback:O,isFormItemInput:B,feedbackIcon:L}=p.useContext(Er.$W),H=(0,ge.A)(e=>o??P??e),[D,F]=(0,zr.A)("inputNumber",b,m),W=O&&p.createElement(p.Fragment,null,L),V={...e,size:H,disabled:j,controls:M},q=(0,de.XT)(E),X=(0,de.XT)(x),[G,K]=(0,de.AV)([A,y],[_,q,$,X],{props:V});return p.createElement(Ka,{ref:r,mode:C,disabled:j,className:(0,c.$)(v,n,G.root,k,z,(0,Pr.L)(i,f,O),{[`${i}-${D}`]:F,[`${i}-lg`]:"large"===H,[`${i}-sm`]:"small"===H,[`${i}-rtl`]:"rtl"===S,[`${i}-in-form-item`]:B,[`${i}-without-controls`]:!M}),style:K.root,upHandler:I,downHandler:R,prefixCls:i,readOnly:h,controls:T,prefix:u,suffix:W||d,classNames:G,styles:K,...w})}),ri=p.forwardRef((e,t)=>{const{addonBefore:r,addonAfter:n,prefixCls:o,className:a,status:i,rootClassName:s,...l}=e,{getPrefixCls:u}=(0,fe.TP)("inputNumber"),d=u("input-number",o),{status:m}=p.useContext(Er.$W),h=(0,Pr.v)(m,i),f=(0,Gt.A)(d),[g,b]=ei(d,f),v=r||n,x=p.createElement(ti,{ref:t,...l,prefixCls:d,status:h,className:(0,c.$)(b,f,g,a),rootClassName:v?void 0:s});if(v){const t=t=>t?p.createElement(Ua.A,{className:(0,c.$)(`${d}-addon`,b,g),variant:e.variant,disabled:e.disabled,status:h},p.createElement(jr.A,{form:!0},t)):null,o=t(r),a=t(n);return p.createElement(Ir.Ay,{rootClassName:s},o,x,a)}return x}),ni=ri;ni._InternalPanelDoNotUseOrYouWillBeFired=e=>p.createElement(D.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},p.createElement(ri,{...e}));const oi=ni,ai=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},ii=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e,l=`${t}-rail`;return{[t]:{...(0,we.dF)(e),borderBlockStart:`${(0,Me.zA)(o)} solid ${n}`,[l]:{borderBlockStart:`${(0,Me.zA)(o)} solid ${n}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Me.zA)(o)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Me.zA)(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Me.zA)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,[`${l}-start, ${l}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${l}-start`]:{width:`calc(${i} * 100%)`},[`${l}-end`]:{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${l}-start`]:{width:`calc(100% - ${i} * 100%)`},[`${l}-end`]:{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${(0,Me.zA)(o)} 0 0`,[l]:{borderBlockStart:`${(0,Me.zA)(o)} dashed ${n}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${l}-start, ${l}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:`${(0,Me.zA)(o)} 0 0`,[l]:{borderBlockStart:`${(0,Me.zA)(o)} dotted ${n}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${l}-start`]:{width:0},[`${l}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${l}-start`]:{width:"100%"},[`${l}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}}}},si=(0,ve.OF)("Divider",e=>{const t=(0,Se.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[ii(t),ai(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}}),li=["left","right","center","start","end"],ci=e=>{const{getPrefixCls:t,direction:r,className:n,style:o,classNames:a,styles:i}=(0,fe.TP)("divider"),{prefixCls:s,type:l,orientation:u,vertical:d,titlePlacement:m,orientationMargin:h,className:f,rootClassName:g,children:b,dashed:v,variant:x="solid",plain:y,style:$,size:C,classNames:w,styles:S,...k}=e,E=t("divider",s),_=`${E}-rail`,[A,N]=si(E),j=(0,ge.A)(C),M=!!b,P=li.includes(u||""),z=p.useMemo(()=>{const e=m??(P?u:"center");return"left"===e?"rtl"===r?"end":"start":"right"===e?"rtl"===r?"start":"end":e},[r,u,m,P]),I="start"===z&&null!=h,R="end"===z&&null!=h,[T,O]=(0,na.M)(u,d,l),B={...e,orientation:T,titlePlacement:z,size:j},[L,H]=(0,de.AV)([a,w],[i,S],{props:B}),D=(0,c.$)(E,n,A,N,`${E}-${T}`,{[`${E}-with-text`]:M,[`${E}-with-text-${z}`]:M,[`${E}-dashed`]:!!v,[`${E}-${x}`]:"solid"!==x,[`${E}-plain`]:!!y,[`${E}-rtl`]:"rtl"===r,[`${E}-no-default-orientation-margin-start`]:I,[`${E}-no-default-orientation-margin-end`]:R,[`${E}-md`]:"medium"===j||"middle"===j,[`${E}-sm`]:"small"===j,[_]:!b,[L.rail]:L.rail&&!b},f,g,L.root),F=p.useMemo(()=>(0,pe.Et)(h)?h:/^\d+$/.test(h)?Number(h):h,[h]),W={marginInlineStart:I?F:void 0,marginInlineEnd:R?F:void 0};return p.createElement("div",{className:D,style:{...o,...H.root,...b?{}:H.rail,...$},...k,role:"separator"},b&&!O&&p.createElement(p.Fragment,null,p.createElement("div",{className:(0,c.$)(_,`${_}-start`,L.rail),style:H.rail}),p.createElement("span",{className:(0,c.$)(`${E}-inner-text`,L.content),style:{...W,...H.content}},b),p.createElement("div",{className:(0,c.$)(_,`${_}-end`,L.rail),style:H.rail})))};var ui=r(3425),di=r(3643),pi=r(7447),mi=r(4719),hi=r(1713);const fi=(e,t)=>{if(!e)return null;const r={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},gi=e=>void 0!==e?`${e}px`:void 0;function bi(e){const{prefixCls:t,containerRef:r,value:n,getValueIndex:o,motionName:a,onMotionStart:i,onMotionEnd:s,direction:l,vertical:u=!1}=e,d=p.useRef(null),[m,h]=p.useState(n),f=e=>{const n=o(e),a=r.current?.querySelectorAll(`.${t}-item`)[n];return a?.offsetParent&&a},[g,b]=p.useState(null),[v,x]=p.useState(null);(0,Zo.A)(()=>{if(m!==n){const e=f(m),t=f(n),r=fi(e,u),o=fi(t,u);h(n),b(r),x(o),e&&t?i():s()}},[n]);const y=p.useMemo(()=>gi(u?g?.top??0:"rtl"===l?-g?.right:g?.left),[u,l,g]),$=p.useMemo(()=>gi(u?v?.top??0:"rtl"===l?-v?.right:v?.left),[u,l,v]);return g&&v?p.createElement(dn.Ay,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},onAppearActive:()=>u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},onVisibleChanged:()=>{b(null),x(null),s()}},({className:e,style:r},n)=>{const o={...r,"--thumb-start-left":y,"--thumb-start-width":gi(g?.width),"--thumb-active-left":$,"--thumb-active-width":gi(v?.width),"--thumb-start-top":y,"--thumb-start-height":gi(g?.height),"--thumb-active-top":$,"--thumb-active-height":gi(v?.height)},a={ref:(0,hi.K4)(d,n),style:o,className:(0,c.$)(`${t}-thumb`,e)};return p.createElement("div",a)}):null}const vi=({prefixCls:e,className:t,style:r,styles:n,classNames:o,data:a,disabled:i,checked:s,label:l,title:u,value:d,name:m,onChange:h,onFocus:f,onBlur:g,onKeyDown:b,onKeyUp:v,onMouseDown:x,itemRender:y=e=>e})=>y(p.createElement("label",{className:(0,c.$)(t,{[`${e}-item-disabled`]:i}),style:r,onMouseDown:x},p.createElement("input",{name:m,className:`${e}-item-input`,type:"radio",disabled:i,checked:s,onChange:e=>{i||h(e,d)},onFocus:f,onBlur:g,onKeyDown:b,onKeyUp:v}),p.createElement("div",{className:(0,c.$)(`${e}-item-label`,o?.label),title:u,style:n?.label},l)),{item:a}),xi=p.forwardRef((e,t)=>{const{prefixCls:r="rc-segmented",direction:n,vertical:o,options:a=[],disabled:i,defaultValue:s,value:l,name:u,onChange:d,className:m="",style:h,styles:f,classNames:g,motionName:b="thumb-motion",itemRender:v,...x}=e,y=p.useRef(null),$=p.useMemo(()=>(0,hi.K4)(y,t),[y,t]),C=p.useMemo(()=>function(e){return e.map(e=>{if("object"==typeof e&&null!==e){const t=function(e){return void 0!==e.title?e.title:"object"!=typeof e.label?e.label?.toString():void 0}(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}(a),[a]),[w,S]=(0,vo.A)(s??C[0]?.value,l),[k,E]=p.useState(!1),_=(e,t)=>{S(t),d?.(t)},A=(0,mi.A)(x,["children"]),[N,j]=p.useState(!1),[M,P]=p.useState(!1),z=()=>{P(!0)},I=()=>{P(!1)},R=()=>{j(!1)},O=e=>{"Tab"===e.key&&j(!0)},B=e=>{const t=C.findIndex(e=>e.value===w),r=C.length,n=C[(t+e+r)%r];n&&(S(n.value),d?.(n.value))},L=e=>{switch(e.key){case"ArrowLeft":case"ArrowUp":B(-1);break;case"ArrowRight":case"ArrowDown":B(1)}};return p.createElement("div",(0,T.A)({role:"radiogroup","aria-label":"segmented control",tabIndex:i?void 0:0,"aria-orientation":o?"vertical":"horizontal",style:h},A,{className:(0,c.$)(r,{[`${r}-rtl`]:"rtl"===n,[`${r}-disabled`]:i,[`${r}-vertical`]:o},m),ref:$}),p.createElement("div",{className:`${r}-group`},p.createElement(bi,{vertical:o,prefixCls:r,value:w,containerRef:y,motionName:`${r}-${b}`,direction:n,getValueIndex:e=>C.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),C.map(e=>{const{value:t,disabled:n}=e;return p.createElement(vi,(0,T.A)({},e,{name:u,data:e,itemRender:v,key:t,prefixCls:r,className:(0,c.$)(e.className,`${r}-item`,g?.item,{[`${r}-item-selected`]:t===w&&!k,[`${r}-item-focused`]:M&&N&&t===w}),style:f?.item,classNames:g,styles:f,checked:t===w,onChange:_,onFocus:z,onBlur:I,onKeyDown:L,onKeyUp:O,onMouseDown:R,disabled:!!i||!!n}))})))}),yi=xi;function $i(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}const Ci=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),wi={overflow:"hidden",...we.L9},Si=(0,ve.OF)("Segmented",e=>{const{lineWidth:t,calc:r}=e;return(e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,motionDurationMid:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...(0,we.dF)(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${o}`,...(0,we.K8)(e),[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,Me.zA)(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${o}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...Ci(e),color:e.itemSelectedColor},"&-focused":(0,we.jk)(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,pointerEvents:"none",transition:["opacity","background-color"].map(e=>`${e} ${o}`).join(", ")},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:(0,Me.zA)(a),padding:`0 ${(0,Me.zA)(e.segmentedPaddingHorizontal)}`,...wi},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...Ci(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,Me.zA)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:i,lineHeight:(0,Me.zA)(i),padding:`0 ${(0,Me.zA)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:(0,Me.zA)(s),padding:`0 ${(0,Me.zA)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...$i(`&-disabled ${t}-item`,e),...$i(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(e=>`${e} ${r} ${n}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}})((0,Se.oX)(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{const{colorTextLabel:t,colorText:r,colorFillSecondary:n,colorBgElevated:o,colorFill:a,lineWidthBold:i,colorBgLayout:s}=e;return{trackPadding:i,trackBg:s,itemColor:t,itemHoverColor:r,itemHoverBg:n,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:r}}),ki=p.forwardRef((e,t)=>{const r=(0,Ye.Bi)(),{prefixCls:n,className:o,rootClassName:a,block:i,options:s=[],size:l,style:u,vertical:d,orientation:m,shape:h="default",name:f=r,styles:g,classNames:b,...v}=e,{getPrefixCls:x,direction:y,className:$,style:C,classNames:w,styles:S}=(0,fe.TP)("segmented"),k={...e,options:s,size:l,shape:h},E=(0,de.XT)(C),_=(0,de.XT)(u),[A,N]=(0,de.AV)([w,b],[S,E,g,_],{props:k}),j=x("segmented",n),[M,P]=Si(j),z=(0,ge.A)(l),I=p.useMemo(()=>s.map(e=>{if(function(e){return(0,pe.Qd)(e)&&!!e?.icon}(e)){const{icon:t,label:r,...n}=e;return{...n,label:p.createElement(p.Fragment,null,p.createElement("span",{className:(0,c.$)(`${j}-item-icon`,A.icon),style:N.icon},t),r&&p.createElement("span",null,r))}}return e}),[s,j,A.icon,N.icon]),[,R]=(0,na.M)(m,d),T=(0,c.$)(o,a,$,A.root,{[`${j}-block`]:i,[`${j}-sm`]:"small"===z,[`${j}-lg`]:"large"===z,[`${j}-vertical`]:R,[`${j}-shape-${h}`]:"round"===h},M,P);return p.createElement(yi,{...v,name:f,className:T,style:N.root,classNames:A,styles:N,itemRender:(e,{item:t})=>{if(!t.tooltip)return e;const r=(0,pe.Qd)(t.tooltip)?t.tooltip:{title:t.tooltip};return p.createElement(xe.A,{...r},e)},options:I,ref:t,prefixCls:j,direction:y,vertical:R})}),Ei=ki,_i=m().createContext({}),Ai=m().createContext({});var Ni=r(6058);const ji=({prefixCls:e,value:t,onChange:r,className:n,style:o})=>{const a=()=>{if(r&&t&&!t.cleared){const e=t.toHsb();e.a=0;const n=(0,Ni.Z6)(e);n.cleared=!0,r(n)}};return m().createElement("div",{role:"button","aria-label":"Clear color",tabIndex:0,className:(0,c.A)(`${e}-clear`,n),style:o,onClick:a,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())}})},Mi=({prefixCls:e,min:t=0,max:r=100,value:n,onChange:o,className:a,formatter:i})=>{const s=`${e}-steppers`,[l,u]=(0,p.useState)(0),d=Number.isNaN(n)?l:n;return m().createElement(oi,{className:(0,c.$)(s,a),min:t,max:r,value:d,formatter:i,size:"small",onChange:e=>{u(e||0),o?.(e)}})},Pi=({prefixCls:e,value:t,onChange:r})=>{const n=`${e}-alpha-input`,[o,a]=(0,p.useState)(()=>(0,Ni.Z6)(t||"#000")),i=t||o;return m().createElement(Mi,{value:(0,Ni.Gp)(i),prefixCls:e,formatter:e=>`${e}%`,className:n,onChange:e=>{const t=i.toHsb();t.a=(e||0)/100;const n=(0,Ni.Z6)(t);a(n),r?.(n)}})},zi=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Ii=({prefixCls:e,value:t,onChange:r})=>{const n=`${e}-hex-input`,[o,a]=(0,p.useState)(()=>t?(0,Lt.Ol)(t.toHexString()):void 0);return(0,p.useEffect)(()=>{t&&a((0,Lt.Ol)(t.toHexString()))},[t]),m().createElement(Or,{className:n,value:o,prefix:"#",onChange:e=>{const t=e.target.value;var n;a((0,Lt.Ol)(t)),n=(0,Lt.Ol)(t,!0),zi.test(`#${n}`)&&r?.((0,Ni.Z6)(t))},size:"small"})},Ri=({prefixCls:e,value:t,onChange:r})=>{const n=`${e}-hsb-input`,[o,a]=(0,p.useState)(()=>(0,Ni.Z6)(t||"#000")),i=t||o,s=(e,t)=>{const n=i.toHsb();n[t]="h"===t?e:(e||0)/100;const o=(0,Ni.Z6)(n);a(o),r?.(o)};return m().createElement("div",{className:n},m().createElement(Mi,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:e,className:n,formatter:e=>(0,Ni.W)(e||0).toString(),onChange:e=>s(Number(e),"h")}),m().createElement(Mi,{max:100,min:0,value:100*Number(i.toHsb().s),prefixCls:e,className:n,formatter:e=>`${(0,Ni.W)(e||0)}%`,onChange:e=>s(Number(e),"s")}),m().createElement(Mi,{max:100,min:0,value:100*Number(i.toHsb().b),prefixCls:e,className:n,formatter:e=>`${(0,Ni.W)(e||0)}%`,onChange:e=>s(Number(e),"b")}))},Ti=({prefixCls:e,value:t,onChange:r})=>{const n=`${e}-rgb-input`,[o,a]=(0,p.useState)(()=>(0,Ni.Z6)(t||"#000")),i=t||o,s=(e,t)=>{const n=i.toRgb();n[t]=e||0;const o=(0,Ni.Z6)(n);a(o),r?.(o)};return m().createElement("div",{className:n},m().createElement(Mi,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:e,className:n,onChange:e=>s(Number(e),"r")}),m().createElement(Mi,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:e,className:n,onChange:e=>s(Number(e),"g")}),m().createElement(Mi,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:e,className:n,onChange:e=>s(Number(e),"b")}))},Oi=["hex","hsb","rgb"].map(e=>({value:e,label:e.toUpperCase()})),Bi=e=>{const{prefixCls:t,format:r,value:n,disabledAlpha:o,onFormatChange:a,onChange:i,disabledFormat:s}=e,[l,c]=(0,Ye.PW)("hex",r),u=`${t}-input`,d=(0,p.useMemo)(()=>{const e={value:n,prefixCls:t,onChange:i};switch(l){case"hsb":return m().createElement(Ri,{...e});case"rgb":return m().createElement(Ti,{...e});default:return m().createElement(Ii,{...e})}},[l,t,n,i]);return m().createElement("div",{className:`${u}-container`},!s&&m().createElement(go.A,{value:l,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{c(e),a?.(e)},className:`${t}-format-select`,size:"small",options:Oi}),m().createElement("div",{className:u},d),!o&&m().createElement(Pi,{prefixCls:t,value:n,onChange:i}))},Li=e=>{const{prefixCls:t,colors:r,type:n,color:o,range:a=!1,className:i,activeIndex:s,onActive:l,onDragStart:u,onDragChange:d,onKeyDelete:m,...h}=e,f={...h,track:!1},g=p.useMemo(()=>`linear-gradient(90deg, ${r.map(e=>`${e.color} ${e.percent}%`).join(", ")})`,[r]),b=p.useMemo(()=>o&&n?"alpha"===n?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`:null,[o,n]),v=(0,Ye._q)(u),x=(0,Ye._q)(d),y=p.useMemo(()=>({onDragStart:v,onDragChange:x}),[]),$=(0,Ye._q)((e,o)=>{const{onFocus:a,style:i,className:u,onKeyDown:d}=e.props,h={...i};return"gradient"===n&&(h.background=(0,Ni.PU)(r,o.value)),p.cloneElement(e,{onFocus:e=>{l?.(o.index),a?.(e)},style:h,className:(0,c.$)(u,{[`${t}-slider-handle-active`]:s===o.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!m||m(o.index),d?.(e)}})}),C=p.useMemo(()=>({direction:"ltr",handleRender:$}),[]);return p.createElement(oa.Provider,{value:C},p.createElement(Lo.Provider,{value:y},p.createElement(ma,{...f,className:(0,c.$)(i,`${t}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:g},handle:b?{background:b}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))};function Hi(e){return(0,Xt.A)(e).sort((e,t)=>e.percent-t.percent)}const Di=e=>{const{prefixCls:t,mode:r,onChange:n,onChangeComplete:o,onActive:a,activeIndex:i,onGradientDragging:s,colors:l}=e,c="gradient"===r,u=p.useMemo(()=>l.map(e=>({percent:e.percent,color:e.color.toRgbString()})),[l]),d=p.useMemo(()=>u.map(e=>e.percent),[u]),m=p.useRef(u);return c?p.createElement(Li,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:d,range:!0,onChangeComplete:e=>{o(new Lt.kf(u)),i>=e.length&&a(e.length-1),s(!1)},disabled:!1,type:"gradient",activeIndex:i,onActive:a,onDragStart:({rawValues:e,draggingIndex:t,draggingValue:r})=>{if(e.length>u.length){const e=(0,Ni.PU)(u,r),n=(0,Xt.A)(u);n.splice(t,0,{percent:r,color:e}),m.current=n}else m.current=u;s(!0),n(new Lt.kf(Hi(m.current)),!0)},onDragChange:({deleteIndex:e,draggingIndex:t,draggingValue:r})=>{let o=(0,Xt.A)(m.current);-1!==e?o.splice(e,1):(o[t]={...o[t],percent:r},o=Hi(o)),n(new Lt.kf(o),!0)},onKeyDelete:e=>{const t=(0,Xt.A)(u);t.splice(e,1);const r=new Lt.kf(t);n(r),o(r)}}):null},Fi=p.memo(Di),Wi={slider:e=>{const{value:t,onChange:r,onChangeComplete:n}=e;return p.createElement(Li,{...e,value:[t],onChange:e=>r(e[0]),onChangeComplete:e=>n(e[0])})}},Vi=()=>{const e=(0,p.useContext)(_i),{mode:t,onModeChange:r,modeOptions:n,prefixCls:o,allowClear:a,value:i,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:d,gradientDragging:h,...f}=e,g=m().useMemo(()=>i.cleared?[{percent:0,color:new Lt.kf("")},{percent:100,color:new Lt.kf("")}]:i.getColors(),[i]),b=!i.isGradient(),[v,x]=m().useState(i);(0,Ye.Nf)(()=>{b||x(g[d]?.color)},[b,g,h,d]);const y=m().useMemo(()=>b?i:h?v:g[d]?.color,[g,i,d,b,v,h]),[$,C]=m().useState(y),[w,S]=(0,pi.C)(),k=$?.equals(y)?y:$;(0,Ye.Nf)(()=>{C(y)},[w,y?.toHexString()]);const E=(e,r)=>{let n=(0,Ni.Z6)(e);if(i.cleared){const e=n.toRgb();if(e.r||e.g||e.b||!r)n=(0,Ni.E)(n);else{const{type:e,value:t=0}=r;n=new Lt.kf({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return n;const o=(0,Xt.A)(g);return o[d]={...o[d],color:n},new Lt.kf(o)};let _=null;const A=n.length>1;return(a||A)&&(_=m().createElement("div",{className:`${o}-operation`},A&&m().createElement(Ei,{size:"small",options:n,value:t,onChange:r}),m().createElement(ji,{prefixCls:o,value:i,onChange:e=>{l(e),c?.()},...f}))),m().createElement(m().Fragment,null,_,m().createElement(Fi,{...e,colors:g}),m().createElement(di.Ay,{prefixCls:o,value:k?.toHsb(),disabledAlpha:s,onChange:(e,t)=>{((e,t,r)=>{const n=E(e,r);C(n.isGradient()?n.getColors()[d].color:n),l(n,!0)})(e,0,t)},onChangeComplete:(e,t)=>{((e,t)=>{u(E(e,t)),S()})(e,t)},components:Wi}),m().createElement(Bi,{value:y,onChange:e=>{l(E(e))},prefixCls:o,disabledAlpha:s,...f}))},qi=()=>{const{prefixCls:e,value:t,presets:r,onChange:n}=(0,p.useContext)(Ai);return Array.isArray(r)?m().createElement(Ht.A,{value:t,presets:r,prefixCls:e,onChange:n}):null},Xi=e=>{const{prefixCls:t,presets:r,panelRender:n,value:o,onChange:a,onClear:i,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:p,activeIndex:h,onActive:f,format:g,onFormatChange:b,gradientDragging:v,onGradientDragging:x,disabledFormat:y}=e,$=`${t}-inner`,C=m().useMemo(()=>({prefixCls:t,value:o,onChange:a,onClear:i,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:p,activeIndex:h,onActive:f,format:g,onFormatChange:b,gradientDragging:v,onGradientDragging:x,disabledFormat:y}),[t,o,a,i,s,l,c,u,d,p,h,f,g,b,v,x,y]),w=m().useMemo(()=>({prefixCls:t,value:o,presets:r,onChange:a}),[t,o,r,a]),S=m().createElement("div",{className:`${$}-content`},m().createElement(Vi,null),Array.isArray(r)&&m().createElement(ci,null),m().createElement(qi,null));return m().createElement(_i.Provider,{value:C},m().createElement(Ai.Provider,{value:w},m().createElement("div",{className:$},(0,pe.Tn)(n)?n(S,{components:{Picker:Vi,Presets:qi}}):S)))},Gi=(0,p.forwardRef)((e,t)=>{const{color:r,prefixCls:n,open:o,disabled:a,format:i,className:s,style:l,classNames:u,styles:d,showText:h,activeIndex:f,...g}=e,b=`${n}-trigger`,v=`${b}-text`,x=`${v}-cell`,[y]=(0,nt.A)("ColorPicker"),$=m().useMemo(()=>{if(!h)return"";if((0,pe.Tn)(h))return h(r);if(r.cleared)return y.transparent;if(r.isGradient())return r.getColors().map((e,t)=>{const r=-1!==f&&f!==t;return m().createElement("span",{key:t,className:(0,c.$)(x,r&&`${x}-inactive`)},e.color.toRgbString()," ",e.percent,"%")});const e=r.toHexString().toUpperCase(),t=(0,Ni.Gp)(r);switch(i){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}},[r,i,h,f,y.transparent,x]),C=(0,p.useMemo)(()=>r.cleared?m().createElement(ji,{prefixCls:n,className:u.body,style:d.body}):m().createElement(di.ZC,{prefixCls:n,color:r.toCssString(),className:u.body,innerClassName:u.content,style:d.body,innerStyle:d.content}),[r,n,u.body,u.content,d.body,d.content]);return m().createElement("div",{ref:t,className:(0,c.$)(b,s,u.root,{[`${b}-active`]:o,[`${b}-disabled`]:a}),style:{...d.root,...l},...(0,Ye.KE)(g)},C,h&&m().createElement("div",{className:(0,c.$)(v,u.description),style:d.description},$))}),Ki=Gi,Ui=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),Yi=(e,t)=>{const{componentCls:r,borderRadiusSM:n,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:i}=e;return{[`${r}-color-block`]:{position:"relative",borderRadius:n,width:t,height:t,boxShadow:o,flex:"none",...Ui("50%",e.colorFillSecondary),[`${r}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${(0,Me.zA)(a)} ${i}`,borderRadius:"inherit"}}}},Qi=e=>{const{componentCls:t,antCls:r,fontSizeSM:n,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:i,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:m,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${r}-input-number`]:{fontSize:n,lineHeight:o,padding:0,[`${r}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${r}-input-number-handler-wrap`]:{width:m}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${(0,Me.zA)(a)}`,marginInlineStart:i},[`${t}-format-select${r}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${r}-select-selector`]:{padding:0,border:0},[`${r}-select-arrow`]:{insetInlineEnd:0},[`${r}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(i).equal(),fontSize:n,lineHeight:(0,Me.zA)(l)},[`${r}-select-item-option-content`]:{fontSize:n,lineHeight:o},[`${r}-select-dropdown`]:{[`${r}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{height:l,display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${r}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,Me.zA)(d)}`,[`${r}-input`]:{fontSize:n,textTransform:"uppercase",lineHeight:(0,Me.zA)(e.calc(l).sub(e.calc(h).mul(2)).equal())},[`${r}-input-prefix`]:{color:p}}}}}},Zi=e=>{const{componentCls:t,controlHeightLG:r,borderRadiusSM:n,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:i,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(r).mul(4).equal(),overflow:"hidden",borderRadius:n},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${t}-handler`]:{width:c,height:c,border:`${(0,Me.zA)(l)} solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`}}},Ji=e=>{const{componentCls:t,antCls:r,colorTextQuaternary:n,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:i,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:p,marginXXS:m,paddingXS:h,fontHeightSM:f}=e;return{[`${t}-presets`]:{[`${r}-collapse-item > ${r}-collapse-header`]:{padding:0,[`${r}-collapse-expand-icon`]:{height:f,color:n,paddingInlineEnd:o}},[`${r}-collapse`]:{display:"flex",flexDirection:"column",gap:m},[`${r}-collapse-item > ${r}-collapse-panel > ${r}-collapse-body`]:{padding:`${(0,Me.zA)(h)} 0`},"&-label":{fontSize:i,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(m).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(c).mul(4)).equal(),height:e.calc(a).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${(0,Me.zA)(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${(0,Me.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:n}}}},es=e=>{const{componentCls:t,colorPickerInsetShadow:r,colorBgElevated:n,colorFillSecondary:o,lineWidthBold:a,colorPickerHandlerSizeSM:i,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(i).sub(e.calc(a).mul(2).equal()).equal(),d=e.calc(i).add(e.calc(a).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${r}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[Ui((0,Me.zA)(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:r},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:i,height:i,border:`${(0,Me.zA)(a)} solid ${n}`,boxShadow:`${r}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},ts=(e,t,r)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,Me.zA)(e.controlOutlineWidth)} ${r}`,outline:0}),rs=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},ns=(e,t,r)=>{const{componentCls:n,borderRadiusSM:o,lineWidth:a,colorSplit:i,colorBorder:s,red6:l}=e;return{[`${n}-clear`]:{width:t,height:t,borderRadius:o,border:`${(0,Me.zA)(a)} solid ${i}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...r,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}}}},os=e=>{const{componentCls:t,colorError:r,colorWarning:n,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:i,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:{...ts(e,r,i)}},[`&${t}-status-warning`]:{borderColor:n,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:{...ts(e,n,s)}}}},as=e=>{const{componentCls:t,controlHeightLG:r,controlHeightSM:n,controlHeight:o,controlHeightXS:a,borderRadius:i,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:r,minHeight:r,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:i},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:(0,Me.zA)(a)}}}},is=(0,ve.OF)("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:r}=e;return(e=>{const{antCls:t,componentCls:r,colorPickerWidth:n,colorPrimary:o,motionDurationMid:a,colorBgElevated:i,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:d,marginSM:p,controlHeight:m,controlHeightSM:h,colorBgTextActive:f,colorPickerPresetColorSize:g,colorPickerPreviewSize:b,lineWidth:v,colorBorder:x,paddingXXS:y,fontSize:$,colorPrimaryHover:C,controlOutline:w}=e;return[{[r]:{[`${r}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:n,[`& > ${t}-divider`]:{margin:`${(0,Me.zA)(p)} 0 ${(0,Me.zA)(d)}`}},[`${r}-panel`]:{...Zi(e)},...es(e),...Yi(e,b),...Qi(e),...Ji(e),...ns(e,g,{marginInlineStart:"auto"}),[`${r}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}},"&-trigger":{minWidth:m,minHeight:m,borderRadius:u,border:`${(0,Me.zA)(v)} solid ${x}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:i,padding:e.calc(y).sub(v).equal(),[`${r}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(y).sub(v)).equal(),fontSize:$,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:C},[`&${r}-trigger-active`]:{...ts(e,o,w)},"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:f},[`${r}-trigger-text`]:{color:s}},...ns(e,h),...Yi(e,h),...os(e),...as(e)},...rs(e)}},(0,Qa.G)(e,{focusElCls:`${r}-trigger-active`})]})((0,Se.oX)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(r).equal()}))}),ss=e=>{const{mode:t,value:r,defaultValue:n,format:o,defaultFormat:a,allowClear:i=!1,presets:s,children:l,trigger:u="click",open:d,disabled:h,placement:f="bottomLeft",arrow:g,panelRender:b,showText:v,style:x,className:y,size:$,rootClassName:C,prefixCls:w,styles:S,classNames:k,disabledAlpha:E=!1,onFormatChange:_,onChange:A,onClear:N,onOpenChange:j,onChangeComplete:M,getPopupContainer:P,autoAdjustOverflow:z=!0,destroyTooltipOnHide:I,destroyOnHidden:R,disabledFormat:T,...O}=e,{getPrefixCls:B,direction:L,className:H,style:D,classNames:F,styles:W,arrow:V}=(0,fe.TP)("colorPicker"),q=(0,p.useContext)(Ot.A),X=h??q,G=B("color-picker",w),K=(0,Ze.A)(g,V),{compactSize:U,compactItemClassnames:Y}=(0,Ir.RQ)(G,L),Q=(0,ge.A)(e=>$??U??e),Z={...e,trigger:u,allowClear:i,autoAdjustOverflow:z,disabledAlpha:E,arrow:K,placement:f,disabled:X,size:Q},[J,ee]=(0,de.AV)([F,k],[W,S],{props:Z},{popup:{_default:"root"}}),[te,re]=(0,Ye.PW)(!1,d),ne=!X&&te,[oe,ae]=(0,Ye.PW)(a,o),[ie,se,le,ce,ue]=function(e,t,r){const[n]=(0,nt.A)("ColorPicker"),[o,a]=(0,Ye.PW)(e,t),[i,s]=p.useState("single"),[l,c]=p.useMemo(()=>{const e=(Array.isArray(r)?r:[r]).filter(e=>e);e.length||e.push("single");const t=new Set(e),o=[],a=(e,r)=>{t.has(e)&&o.push({label:r,value:e})};return a("single",n.singleColor),a("gradient",n.gradientColor),[o,t]},[r,n.singleColor,n.gradientColor]),[u,d]=p.useState(null),m=(0,Ye._q)(e=>{d(e),a(e)}),h=p.useMemo(()=>{const e=(0,Ni.Z6)(o||"");return e.equals(u)?u:e},[o,u]),f=p.useMemo(()=>c.has(i)?i:l[0]?.value,[c,i,l]);return p.useEffect(()=>{s(h.isGradient()?"gradient":"single")},[h]),[h,m,f,s,l]}(n,r,t),pe=(0,p.useMemo)(()=>(0,Ni.Gp)(ie)<100,[ie]),[me,he]=m().useState(null),be=e=>{if(M){let t=(0,Ni.Z6)(e);E&&pe&&(t=(0,Ni.E)(e)),M(t)}},ve=(e,t)=>{let r=(0,Ni.Z6)(e);E&&pe&&(r=(0,Ni.E)(r)),se(r),he(null),A&&A(r,r.toCssString()),t||be(r)},[xe,ye]=m().useState(0),[$e,Ce]=m().useState(!1),{status:we}=m().useContext(Er.$W),Se=(0,Gt.A)(G),[ke,Ee]=is(G,Se),_e={[`${G}-rtl`]:L},Ae=(0,c.$)(C,Ee,Se,_e),Ne=(0,c.$)((0,Pr.L)(G,we),{[`${G}-sm`]:"small"===Q,[`${G}-lg`]:"large"===Q},Y,H,Ae,y,ke),je=(0,c.$)(G,Ae,J.popup?.root),Me={open:ne,trigger:u,placement:f,arrow:K,rootClassName:C,getPopupContainer:P,autoAdjustOverflow:z,destroyOnHidden:R??!!I},Pe={...D,...x};return m().createElement(Qe.A,{classNames:{root:je},styles:{root:ee.popup?.root,container:S?.popupOverlayInner},onOpenChange:e=>{e&&X||(re(e),j?.(e))},content:m().createElement(jr.A,{form:!0},m().createElement(Xi,{mode:le,onModeChange:e=>{if(ce(e),"single"===e&&ie.isGradient())ye(0),ve(new Lt.kf(ie.getColors()[0].color)),he(ie);else if("gradient"===e&&!ie.isGradient()){const e=pe?(0,Ni.E)(ie):ie;ve(new Lt.kf(me||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:ue,prefixCls:G,value:ie,allowClear:i,disabled:X,disabledAlpha:E,presets:s,panelRender:b,format:oe,onFormatChange:e=>{ae(e),oe!==e&&_?.(e)},onChange:ve,onChangeComplete:be,onClear:N,activeIndex:xe,onActive:ye,gradientDragging:$e,onGradientDragging:Ce,disabledFormat:T})),...Me},l||m().createElement(Ki,{activeIndex:ne?xe:-1,open:ne,className:Ne,style:Pe,classNames:J,styles:ee,prefixCls:G,disabled:X,showText:v,format:oe,...O,color:ie}))},ls=(0,ui.A)(ss,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);ss._InternalPanelDoNotUseOrYouWillBeFired=ls;const cs=ss;var us=r(6654);function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ds.apply(this,arguments)}const ps=(e,t)=>p.createElement(ar.A,ds({},e,{ref:t,icon:us.A})),ms=p.forwardRef(ps),hs=({title:e})=>e?(0,bt.jsx)(xe.A,{title:e,placement:"top",mouseEnterDelay:.1,children:(0,bt.jsx)("span",{className:"uc-ctl-row__info-wrap",role:"img",tabIndex:0,"aria-label":(0,W.__)("More information","ultimate-cursor"),children:(0,bt.jsx)(ms,{className:"uc-ctl-row__info"})})}):null,fs=e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())},gs=()=>(0,bt.jsx)(nr,{color:"blue",className:"uc-ctl-row__pro",children:(0,W.__)("PRO","ultimate-cursor")}),bs=({id:e,label:t,help:r,badge:n})=>(0,bt.jsxs)("span",{className:"uc-ctl-row__label",children:[(0,bt.jsx)("span",{id:e,className:"uc-ctl-row__label-text",children:t}),(0,bt.jsx)(hs,{title:r}),n]}),vs=({label:e,help:t,badge:r,disabled:n,children:o})=>{const a=(0,V.useId)();return(0,bt.jsxs)("div",{className:"uc-ctl-row"+(n?" is-disabled":""),children:[(0,bt.jsx)(bs,{id:a,label:e,help:t,badge:r}),(0,bt.jsx)("div",{className:"uc-ctl-row__field",role:"group","aria-labelledby":a,children:o})]})},xs=({label:e,help:t,badge:r,value:n,onChange:o,min:a,max:i,step:s,disabled:l})=>{const c=(0,V.useId)();return(0,bt.jsxs)("div",{className:"uc-ctl-row uc-ctl-row--slider"+(l?" is-disabled":""),children:[(0,bt.jsx)(bs,{id:c,label:e,help:t,badge:r}),(0,bt.jsx)(ma,{className:"uc-ctl-row__slider",min:a,max:i,step:s,value:"number"==typeof n?n:0,onChange:o,disabled:l,tooltip:{formatter:null},ariaLabelledByForHandle:c}),(0,bt.jsx)("span",{className:"uc-ctl-row__value",children:(0,bt.jsx)(oi,{size:"small",min:a,max:i,step:s,value:n,onChange:e=>"number"==typeof e&&o(e),disabled:l,"aria-labelledby":c})})]})},ys=({label:e,help:t,badge:r,value:n,onChange:o,options:a,disabled:i})=>(0,bt.jsx)(vs,{label:e,help:t,badge:r,disabled:i,children:(0,bt.jsx)(go.A,{value:n,onChange:o,options:a,disabled:i,"aria-label":e,style:{width:"100%"}})}),$s=({label:e,help:t,badge:r,checked:n,onChange:o,disabled:a})=>{const i=(0,V.useId)();return(0,bt.jsxs)("div",{className:"uc-ctl-toggle"+(a?" is-disabled":""),children:[(0,bt.jsxs)("span",{className:"uc-ctl-toggle__title",children:[(0,bt.jsx)("span",{id:i,className:"uc-ctl-toggle__title-text",children:e}),(0,bt.jsx)(hs,{title:t}),r]}),(0,bt.jsx)(Mo,{checked:n,onChange:o,disabled:a,"aria-labelledby":i})]})},Cs=({label:e,help:t,badge:r,value:n,onChange:o,disabled:a})=>{const i=n||"#000000";return(0,bt.jsx)(vs,{label:e,help:t,badge:r,disabled:a,children:(0,bt.jsx)(cs,{value:n,onChange:e=>o((e=>"string"==typeof e?e:e.toHexString())(e)),disabled:a,children:(0,bt.jsxs)("div",{className:"uc-ctl-color__trigger",role:"button",tabIndex:a?-1:0,"aria-label":(0,W.sprintf)(/* translators: 1: field label, 2: current color value. */ /* translators: 1: field label, 2: current color value. */
3 (0,W.__)("%1$s: %2$s. Open color picker.","ultimate-cursor"),e,i),"aria-disabled":a||void 0,onKeyDown:fs,children:[(0,bt.jsx)("span",{className:"uc-ctl-color__swatch",style:{"--uc-swatch":i}}),(0,bt.jsx)("span",{className:"uc-ctl-color__hex",children:i})]})})})},ws=window.wp.apiFetch;var Ss=r.n(ws),ks=r(4716);const{Text:Es}=kr.A,_s=e=>(e||"").split(",").map(e=>e.trim()).filter(Boolean),As=e=>(e||[]).join(", "),Ns=({value:e,onChange:t,disabled:r,ariaLabelledby:n})=>{const[o,a]=(0,V.useState)([]),[i,s]=(0,V.useState)(!1),[l,c]=(0,V.useState)(!1),[u,d]=(0,V.useState)(""),[p,m]=(0,V.useState)(!1),h=(0,V.useMemo)(()=>_s(e),[e]),f=(0,V.useCallback)((e="")=>{s(!0),c(!1);const t=new URLSearchParams({per_page:"50",status:"publish",orderby:"title",order:"asc"});e&&t.set("search",e);let r=0;const n=e=>Ss()({path:e}).catch(()=>(r++,[]));Promise.all([n(`/wp/v2/pages?${t.toString()}`),n(`/wp/v2/posts?${t.toString()}`)]).then(([t,n])=>{if(r>=2)return c(!0),a([]),s(!1),void m(!0);const o=[...(t||[]).map(e=>({value:e.slug,label:`${e.title?.rendered||e.slug} ${(0,W.__)("(Page)","ultimate-cursor")}`})),...(n||[]).map(e=>({value:e.slug,label:`${e.title?.rendered||e.slug} ${(0,W.__)("(Post)","ultimate-cursor")}`}))];o.some(e=>"home"===e.value)||e&&!"home".includes(e.toLowerCase())||o.unshift({value:"home",label:(0,W.__)("Home (Front Page)","ultimate-cursor")}),a(o),s(!1),m(!0)})},[]);(0,V.useEffect)(()=>{p||f()},[f,p]),(0,V.useEffect)(()=>{if(!p)return;const e=setTimeout(()=>{f(u)},300);return()=>clearTimeout(e)},[u,f,p]);const g=(0,bt.jsxs)("div",{className:"uc-page-select-error",style:{padding:8,textAlign:"center"},children:[(0,bt.jsx)(Es,{type:"danger",style:{display:"block",marginBottom:8},children:(0,W.__)("Couldn't load your pages. Try refreshing, or contact your host if this keeps happening.","ultimate-cursor")}),(0,bt.jsx)(G.A,{size:"small",onClick:()=>f(u),children:(0,W.__)("Retry","ultimate-cursor")})]});let b;return b=i?(0,bt.jsx)(ks.A,{size:"small"}):l?g:(0,W.__)("No pages found","ultimate-cursor"),(0,bt.jsx)(go.A,{mode:"multiple",showSearch:!0,allowClear:!0,style:{width:"100%"},placeholder:(0,W.__)("Search and select pages…","ultimate-cursor"),"aria-labelledby":n,value:h,onChange:e=>t(As(e)),onSearch:e=>d(e),filterOption:!1,loading:i,disabled:r,size:"large",status:l?"error":void 0,notFoundContent:b,options:o,tokenSeparators:[","]})},{Panel:js}=fo.A,Ms=({id:e,label:t,help:r,children:n,layout:o})=>{const a=(0,V.useId)(),i=e||a;return t?"stack"===o?(0,bt.jsxs)("div",{className:"uc-ctl-stack",children:[(0,bt.jsxs)("div",{id:i,className:"uc-ctl-stack__label",children:[(0,bt.jsx)("span",{children:t}),(0,bt.jsx)(hs,{title:r})]}),(0,bt.jsx)("div",{role:"group","aria-labelledby":i,children:n})]}):(0,bt.jsxs)("div",{className:"uc-ctl-row",children:[(0,bt.jsxs)("span",{id:i,className:"uc-ctl-row__label",children:[(0,bt.jsx)("span",{className:"uc-ctl-row__label-text",children:t}),(0,bt.jsx)(hs,{title:r})]}),(0,bt.jsx)("div",{className:"uc-ctl-row__field",role:"group","aria-labelledby":i,children:n})]}):(0,bt.jsx)("div",{className:"uc-ctl-block",children:n})},Ps=({id:e,label:t,help:r,value:n,options:o,onChange:a,disabled:i})=>(0,bt.jsx)(Ms,{id:e,label:t,help:r,children:(0,bt.jsx)(go.A,{value:n,options:o,onChange:a,disabled:i,"aria-label":t,style:{width:"100%"}})}),zs=({id:e,label:t,help:r,value:n,onChange:o,disabled:a,allowClear:i=!0,ariaLabelledBy:s})=>(0,bt.jsx)(Ms,{id:e,label:t,help:r,children:(0,bt.jsx)(sn,{style:{width:"100%"},value:n,onChange:e=>o(e.target.value),disabled:a,allowClear:i,"aria-label":t,"aria-labelledby":s})}),Is=({id:e,label:t,help:r,value:n,onChange:o,disabled:a})=>(0,bt.jsx)(Ms,{id:e,label:t,help:r,layout:"stack",children:(0,bt.jsx)(Ns,{value:n,onChange:o,disabled:a})}),Rs=[{value:"a",label:`<a> — ${(0,W.__)("Links","ultimate-cursor")}`},{value:"button",label:`<button> — ${(0,W.__)("Buttons","ultimate-cursor")}`},{value:"img",label:`<img> — ${(0,W.__)("Images","ultimate-cursor")}`},{value:"input",label:`<input> — ${(0,W.__)("Inputs","ultimate-cursor")}`},{value:"textarea",label:`<textarea> — ${(0,W.__)("Text Areas","ultimate-cursor")}`},{value:"select",label:`<select> — ${(0,W.__)("Dropdowns","ultimate-cursor")}`},{value:"form",label:`<form> — ${(0,W.__)("Forms","ultimate-cursor")}`},{value:"h1",label:`<h1> — ${(0,W.__)("Heading 1","ultimate-cursor")}`},{value:"h2",label:`<h2> — ${(0,W.__)("Heading 2","ultimate-cursor")}`},{value:"h3",label:`<h3> — ${(0,W.__)("Heading 3","ultimate-cursor")}`},{value:"p",label:`<p> — ${(0,W.__)("Paragraphs","ultimate-cursor")}`},{value:"span",label:`<span> — ${(0,W.__)("Spans","ultimate-cursor")}`},{value:"div",label:`<div> — ${(0,W.__)("Divs","ultimate-cursor")}`},{value:"section",label:`<section> — ${(0,W.__)("Sections","ultimate-cursor")}`},{value:"article",label:`<article> — ${(0,W.__)("Articles","ultimate-cursor")}`},{value:"nav",label:`<nav> — ${(0,W.__)("Navigation","ultimate-cursor")}`},{value:"header",label:`<header> — ${(0,W.__)("Header","ultimate-cursor")}`},{value:"footer",label:`<footer> — ${(0,W.__)("Footer","ultimate-cursor")}`},{value:"table",label:`<table> — ${(0,W.__)("Tables","ultimate-cursor")}`},{value:"ul",label:`<ul> — ${(0,W.__)("Unordered Lists","ultimate-cursor")}`},{value:"ol",label:`<ol> — ${(0,W.__)("Ordered Lists","ultimate-cursor")}`},{value:"li",label:`<li> — ${(0,W.__)("List Items","ultimate-cursor")}`},{value:"video",label:`<video> — ${(0,W.__)("Videos","ultimate-cursor")}`},{value:"canvas",label:`<canvas> — ${(0,W.__)("Canvas","ultimate-cursor")}`},{value:"svg",label:`<svg> — ${(0,W.__)("SVGs","ultimate-cursor")}`}],Ts=({id:e,label:t,help:r,value:n,onChange:o,disabled:a})=>{const i=(0,V.useMemo)(()=>_s(n),[n]);return(0,bt.jsx)(Ms,{id:e,label:t,help:r,layout:"stack",children:(0,bt.jsx)(go.A,{mode:"tags",allowClear:!0,"aria-label":t,style:{width:"100%"},placeholder:(0,W.__)("Select or type HTML elements…","ultimate-cursor"),value:i,onChange:e=>o(As(e)),disabled:a,size:"large",options:Rs,tokenSeparators:[","," "]})})},Os=({id:e,label:t,help:r,value:n,onChange:o,disabled:a})=>{const i=(0,V.useMemo)(()=>_s(n),[n]);return(0,bt.jsx)(Ms,{id:e,label:t,help:r,layout:"stack",children:(0,bt.jsx)(go.A,{mode:"tags",allowClear:!0,"aria-label":t,style:{width:"100%"},placeholder:(0,W.__)("Type CSS selectors and press Enter…","ultimate-cursor"),value:i,onChange:e=>o(As(e)),disabled:a,size:"large",tokenSeparators:[","],notFoundContent:null,open:!1})})},Bs=({label:e,help:t,checked:r,onChange:n,disabled:o})=>{const a=(0,V.useId)();return(0,bt.jsxs)("div",{className:"uc-ctl-toggle"+(o?" is-disabled":""),children:[(0,bt.jsxs)("span",{className:"uc-ctl-toggle__title",children:[(0,bt.jsx)("span",{id:a,className:"uc-ctl-toggle__title-text",children:e}),(0,bt.jsx)(hs,{title:t})]}),(0,bt.jsx)(Mo,{checked:r,onChange:n,disabled:o,"aria-labelledby":a})]})},Ls=({id:e,label:t,help:r,value:n,min:o,max:a,step:i,onChange:s,disabled:l,renderTooltip:c})=>{const u=(0,V.useId)(),d=e||u;return(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsxs)("div",{className:"uc-ctl-row uc-ctl-row--slider"+(l?" is-disabled":""),children:[(0,bt.jsxs)("span",{id:d,className:"uc-ctl-row__label",children:[(0,bt.jsx)("span",{className:"uc-ctl-row__label-text",children:t}),(0,bt.jsx)(hs,{title:r})]}),(0,bt.jsx)(ma,{className:"uc-ctl-row__slider",min:o,max:a,step:i,value:"number"==typeof n?n:0,onChange:s,disabled:l,tooltip:{formatter:null},ariaLabelledByForHandle:d}),(0,bt.jsx)("span",{className:"uc-ctl-row__value",children:(0,bt.jsx)(oi,{size:"small",min:o,max:a,step:i,value:n,onChange:s,disabled:l,"aria-labelledby":d})})]}),c&&(0,bt.jsx)("div",{className:"uc-ctl-row__aux",children:c(n)})]})},Hs=()=>(0,bt.jsx)(ci,{className:"uc-ctl-divider",style:{margin:"12px 0"}}),Ds=({id:e,label:t,help:r,value:n,onChange:o,disabled:a})=>{const i=n||"#000000";return(0,bt.jsxs)("div",{className:"uc-ctl-row"+(a?" is-disabled":""),id:e,children:[(0,bt.jsxs)("span",{className:"uc-ctl-row__label",children:[(0,bt.jsx)("span",{className:"uc-ctl-row__label-text",children:t}),(0,bt.jsx)(hs,{title:r})]}),(0,bt.jsx)("div",{className:"uc-ctl-row__field",children:(0,bt.jsx)(cs,{value:n,onChange:o,disabled:a,children:(0,bt.jsxs)("div",{className:"uc-ctl-color__trigger",role:"button",tabIndex:a?-1:0,"aria-label":(0,W.sprintf)(/* translators: 1: field label, 2: current color value. */ /* translators: 1: field label, 2: current color value. */
4 (0,W.__)("%1$s: %2$s. Open color picker.","ultimate-cursor"),t,i),onKeyDown:fs,children:[(0,bt.jsx)("span",{className:"uc-ctl-color__swatch",style:{"--uc-swatch":i}}),(0,bt.jsx)("span",{className:"uc-ctl-color__hex",children:i})]})})})]})},Fs=({children:e,variant:t,isSmall:r,isDestructive:n,isLink:o,onClick:a,className:i,disabled:s,href:l,target:c})=>{let u="default";return"primary"===t&&(u="primary"),(o||"link"===t)&&(u="link"),"tertiary"===t&&(u="text"),(0,bt.jsx)(G.A,{type:u,size:r?"small":"middle",danger:n,onClick:a,className:i,disabled:s,href:l,target:c,children:e})},Ws=({title:e,description:t,features:r})=>(0,bt.jsx)(bt.Fragment,{children:!window.ultimateCursorAdminData?.isPro&&(0,bt.jsxs)("div",{className:"wpxero-pro-overlay",children:[(0,bt.jsx)("div",{className:"wpxero-pro-overlay__backdrop"}),(0,bt.jsxs)("div",{className:"wpxero-pro-overlay__content",children:[(0,bt.jsx)("div",{className:"wpxero-pro-overlay__icon",children:(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)("path",{d:"M12 2C13.1 2 14 2.9 14 4C14 5.1 13.1 6 12 6C10.9 6 10 5.1 10 4C10 2.9 10.9 2 12 2M21 9V7L15 1L13.5 2.5L16.17 5.23L10.23 11.17L9.5 10.44L8.06 11.88L10.94 14.76L21 9M15 9L15.94 9.94L4.94 20.94L4 20L15 9M8 12L6 14L4 12L6 10L8 12Z"})})}),(0,bt.jsxs)("div",{className:"wpxero-pro-overlay__header",children:[(0,bt.jsx)("h3",{children:e}),(0,bt.jsx)("span",{className:"wpxero-pro-badge",children:(0,W.__)("Pro","ultimate-cursor")})]}),(0,bt.jsx)("p",{className:"wpxero-pro-overlay__description",children:t}),(0,bt.jsx)("ul",{className:"wpxero-pro-overlay__features",children:r.map((e,t)=>(0,bt.jsxs)("li",{children:[(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),e]},t))}),(0,bt.jsx)("div",{className:"wpxero-pro-overlay__actions",children:(0,bt.jsxs)(Fs,{className:"wpxero-pro-overlay__cta",href:window.ultimateCursorAdminData?.proUrl||"#",target:"_blank",children:[(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",style:{width:"16px",height:"16px"},children:(0,bt.jsx)("path",{d:"M12 2L13.09 8.26L22 9L13.09 9.74L12 16L10.91 9.74L2 9L10.91 8.26L12 2Z"})}),(0,W.__)("Upgrade to Pro","ultimate-cursor")]})})]})]})}),Vs=e=>Math.max(0,Math.min(100,e)),qs="#5c33ff",Xs=({imageUrl:e,hotspotX:t,hotspotY:r,onChange:n,size:o=220})=>{const a=(0,V.useRef)(null),i=(0,V.useRef)(!1),[s,l]=(0,V.useState)(!1),c=Number.isFinite(Number(t))?Number(t):50,u=Number.isFinite(Number(r))?Number(r):50,d=(0,V.useCallback)((e,t)=>{const r=a.current;if(!r)return;const o=r.getBoundingClientRect();if(!o.width||!o.height)return;const i=Vs((e-o.left)/o.width*100),s=Vs((t-o.top)/o.height*100);n(Math.round(i),Math.round(s))},[n]),p=()=>{i.current=!1,l(!1)};if(!e)return null;const m=e=>({position:"absolute",background:"rgba(92, 51, 255, 0.45)",pointerEvents:"none",...e?{left:0,right:0,top:`${u}%`,height:1}:{top:0,bottom:0,left:`${c}%`,width:1}});return(0,bt.jsx)("div",{className:"ultimate-cursor-hotspot-picker",children:(0,bt.jsxs)("div",{ref:a,className:"ultimate-cursor-hotspot-picker__canvas",role:"slider",tabIndex:0,"aria-label":(0,W.__)("Cursor image hotspot position","ultimate-cursor"),"aria-valuetext":(0,W.sprintf)(/* translators: 1: horizontal position percent, 2: vertical position percent. */ /* translators: 1: horizontal position percent, 2: vertical position percent. */
5 (0,W.__)("Horizontal %1$d%%, vertical %2$d%%","ultimate-cursor"),c,u),"aria-valuemin":0,"aria-valuemax":100,onMouseDown:e=>{e.preventDefault(),i.current=!0,l(!0),d(e.clientX,e.clientY)},onMouseMove:e=>{i.current&&d(e.clientX,e.clientY)},onMouseUp:p,onMouseLeave:p,onKeyDown:e=>{const t=e.shiftKey?10:1;let r=c,o=u;switch(e.key){case"ArrowLeft":r=Vs(c-t);break;case"ArrowRight":r=Vs(c+t);break;case"ArrowUp":o=Vs(u-t);break;case"ArrowDown":o=Vs(u+t);break;default:return}e.preventDefault(),n(Math.round(r),Math.round(o))},style:{position:"relative",width:o,height:o,border:`1px solid ${s?qs:"#e2e8f0"}`,borderRadius:12,background:"repeating-conic-gradient(#eef2f7 0% 25%, #ffffff 0% 50%) 50% / 18px 18px",boxShadow:s?"0 0 0 3px rgba(92,51,255,0.15)":"0 1px 2px rgba(0,0,0,0.04)",cursor:"crosshair",userSelect:"none",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.15s ease"},children:[(0,bt.jsx)("img",{src:e,alt:(0,W.__)("Cursor preview","ultimate-cursor"),draggable:!1,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",pointerEvents:"none"}}),(0,bt.jsx)("div",{style:m(!0)}),(0,bt.jsx)("div",{style:m(!1)}),(0,bt.jsx)("div",{style:{position:"absolute",left:`${c}%`,top:`${u}%`,width:18,height:18,marginLeft:-9,marginTop:-9,borderRadius:"50%",border:`2px solid ${qs}`,background:"#ffffff",boxShadow:"0 1px 4px rgba(0,0,0,0.35)",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center",transform:s?"scale(1.15)":"scale(1)",transition:"transform 0.1s ease"},children:(0,bt.jsx)("span",{style:{width:4,height:4,borderRadius:"50%",background:qs}})}),s&&(0,bt.jsxs)("div",{style:{position:"absolute",left:`${c}%`,top:`${u}%`,transform:"translate(12px, -130%)",padding:"2px 6px",borderRadius:6,background:"rgba(15,23,42,0.9)",color:"#fff",fontSize:11,fontWeight:600,whiteSpace:"nowrap",pointerEvents:"none"},children:[c,"% , ",u,"%"]})]})})},Gs=e=>0===e?"flex-start":100===e?"flex-end":"center",Ks=[{x:0,y:0,preset:"top-left",label:(0,W.__)("Top Left","ultimate-cursor")},{x:50,y:0,preset:"custom",label:(0,W.__)("Top Center","ultimate-cursor")},{x:100,y:0,preset:"top-right",label:(0,W.__)("Top Right","ultimate-cursor")},{x:0,y:50,preset:"custom",label:(0,W.__)("Middle Left","ultimate-cursor")},{x:50,y:50,preset:"center",label:(0,W.__)("Center","ultimate-cursor")},{x:100,y:50,preset:"custom",label:(0,W.__)("Middle Right","ultimate-cursor")},{x:0,y:100,preset:"bottom-left",label:(0,W.__)("Bottom Left","ultimate-cursor")},{x:50,y:100,preset:"custom",label:(0,W.__)("Bottom Center","ultimate-cursor")},{x:100,y:100,preset:"bottom-right",label:(0,W.__)("Bottom Right","ultimate-cursor")}],Us=({tempConfig:e,updateTempConfigField:t})=>{const r=vr(),n=e?.imageHotspotPreset||"center",o="number"==typeof e?.imageHotspotX?e.imageHotspotX:50,a="number"==typeof e?.imageHotspotY?e.imageHotspotY:50,i=(e,r,n)=>{t("imageHotspotPreset",n||"custom"),t("imageHotspotX",Math.round(e)),t("imageHotspotY",Math.round(r))},s=!Ks.some(e=>e.x===o&&e.y===a),l=(0,bt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[(0,bt.jsx)("span",{style:{width:22,height:22,borderRadius:6,background:"rgba(92,51,255,0.12)",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"#5c33ff",fontWeight:700,fontSize:13},"aria-hidden":"true",children:"+"}),(0,bt.jsx)("span",{style:{fontSize:15,fontWeight:600},children:(0,W.__)("Cursor Hotspot","ultimate-cursor")}),r&&(0,bt.jsx)("span",{className:"pro-badge",style:{marginInlineStart:2},children:(0,W.__)("PRO","ultimate-cursor")})]});return(0,bt.jsxs)("div",{className:"ultimate-cursor-hotspot-controls",children:[(0,bt.jsx)(ci,{style:{margin:"20px 0 16px"}}),(0,bt.jsxs)("div",{style:{border:"1px solid #e2e8f0",borderRadius:12,padding:16,background:"#fbfcfe"},children:[l,(0,bt.jsx)("p",{style:{margin:"0 0 14px",fontSize:13,color:"#64748b",lineHeight:1.5},children:(0,W.__)("Set which point of the image aligns with the real mouse position — like the tip of an arrow.","ultimate-cursor")}),r?(0,bt.jsx)(Ps,{id:"ultimate-cursor-hotspot-preset",label:(0,W.__)("Hotspot Position","ultimate-cursor"),value:n,options:kt.LA.map(e=>({label:e.label,value:e.value})),disabled:!0,onChange:()=>{},help:(0,W.__)("Choose which point of the image follows the mouse. Upgrade to Pro to unlock.","ultimate-cursor")}):(0,bt.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:20,alignItems:"flex-start"},children:[(0,bt.jsx)(Xs,{imageUrl:e?.imageUrl,hotspotX:o,hotspotY:a,size:200,onChange:(e,t)=>i(e,t)}),(0,bt.jsxs)("div",{style:{flex:"1 1 200px",minWidth:200},children:[(0,bt.jsxs)("div",{style:{fontSize:13,fontWeight:600,marginBottom:8,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,bt.jsx)("span",{children:(0,W.__)("Quick position","ultimate-cursor")}),s&&(0,bt.jsx)("span",{style:{fontSize:11,fontWeight:600,color:"#5c33ff",background:"rgba(92,51,255,0.1)",padding:"2px 8px",borderRadius:10},children:(0,W.__)("Custom","ultimate-cursor")})]}),(0,bt.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:6,width:110,marginBottom:16},children:Ks.map(e=>{const t=e.x===o&&e.y===a;return(0,bt.jsx)("button",{type:"button",title:e.label,"aria-label":e.label,"aria-pressed":t,onClick:()=>i(e.x,e.y,e.preset),style:{width:32,height:32,padding:5,borderRadius:6,border:"1px solid "+(t?"#5c33ff":"#cbd5e1"),background:t?"#5c33ff":"#ffffff",cursor:"pointer",display:"flex",alignItems:Gs(e.y),justifyContent:Gs(e.x),transition:"all 0.12s ease"},children:(0,bt.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:t?"#ffffff":"#94a3b8"}})},`${e.x}-${e.y}`)})}),(0,bt.jsxs)("div",{style:{display:"flex",gap:12,marginBottom:12},children:[(0,bt.jsxs)("div",{style:{flex:1},children:[(0,bt.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"#475569",marginBottom:4},children:(0,W.__)("X (%)","ultimate-cursor")}),(0,bt.jsx)(oi,{min:0,max:100,step:1,value:o,onChange:e=>i(Number(e)||0,a),style:{width:"100%"},"aria-label":(0,W.__)("Hotspot X position, percent","ultimate-cursor")})]}),(0,bt.jsxs)("div",{style:{flex:1},children:[(0,bt.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"#475569",marginBottom:4},children:(0,W.__)("Y (%)","ultimate-cursor")}),(0,bt.jsx)(oi,{min:0,max:100,step:1,value:a,onChange:e=>i(o,Number(e)||0),style:{width:"100%"},"aria-label":(0,W.__)("Hotspot Y position, percent","ultimate-cursor")})]})]}),(0,bt.jsx)(G.A,{type:"link",size:"small",style:{padding:0,height:"auto"},onClick:()=>(e=>{const r=(0,kt.LG)(e);r?i(r.x,r.y,e):t("imageHotspotPreset",e)})("center"),children:(0,W.__)("Reset to center","ultimate-cursor")})]})]})]})]})},Ys=(0,V.lazy)(()=>r.e(686).then(r.bind(r,4063))),Qs=e=>e.split("-").filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),Zs={hile:"chile","souch-korea":"south-korea"},Js={1:(0,W.__)("Target","ultimate-cursor"),2:(0,W.__)("Dot","ultimate-cursor"),3:(0,W.__)("Halo","ultimate-cursor"),4:(0,W.__)("Overlap","ultimate-cursor"),5:(0,W.__)("Ring","ultimate-cursor"),6:(0,W.__)("Triangle","ultimate-cursor"),7:(0,W.__)("Diamond","ultimate-cursor"),8:(0,W.__)("Semi-circle","ultimate-cursor"),9:(0,W.__)("Star","ultimate-cursor"),10:(0,W.__)("Hexagon","ultimate-cursor"),11:(0,W.__)("Cross","ultimate-cursor"),12:(0,W.__)("Heart","ultimate-cursor"),13:(0,W.__)("Arrow","ultimate-cursor"),14:(0,W.__)("Lightning","ultimate-cursor"),15:(0,W.__)("Eye","ultimate-cursor"),16:(0,W.__)("Square","ultimate-cursor"),17:(0,W.__)("Blob","ultimate-cursor"),18:(0,W.__)("Squircle","ultimate-cursor"),19:(0,W.__)("Sparkle","ultimate-cursor"),20:(0,W.__)("Seal Badge","ultimate-cursor"),21:(0,W.__)("Octagon","ultimate-cursor"),22:(0,W.__)("Pin","ultimate-cursor"),23:(0,W.__)("Play","ultimate-cursor"),24:(0,W.__)("Asterisk","ultimate-cursor"),25:(0,W.__)("Shield","ultimate-cursor")},el=({tempConfig:e,updateTempConfigField:t,updateTempCursorType:r})=>(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Mt,{value:e?.cursorType||"cursor-text",onChange:e=>r(e)}),"cursor-text"===e?.cursorType&&(0,bt.jsxs)("div",{className:"uc-effect-picker-card",children:[(0,bt.jsx)("div",{id:"uc-cursor-text-label",className:"uc-effect-picker-card__head",children:(0,W.__)("Cursor Text","ultimate-cursor")}),(0,bt.jsx)("div",{className:"uc-effect-picker-card__body",children:(0,bt.jsx)(zs,{value:e?.text||kt.LP["cursor-text"]?.text||"",onChange:e=>t("text",e),ariaLabelledBy:"uc-cursor-text-label"})})]}),"cursor-image"===e?.cursorType&&(0,bt.jsxs)("div",{className:"uc-effect-picker-card",children:[(0,bt.jsx)("div",{className:"uc-effect-picker-card__head",children:(0,W.__)("Cursor Image","ultimate-cursor")}),(0,bt.jsx)("div",{className:"uc-effect-picker-card__body",children:(0,bt.jsx)(ho,{imageUrl:e?.imageUrl,onSelect:e=>{t("imageUrl",e.url)}})})]}),"cursor-icon"===e.cursorType&&(0,bt.jsxs)("div",{className:"uc-effect-picker-card",children:[(0,bt.jsx)("div",{className:"uc-effect-picker-card__head",children:(0,W.__)("Choose an Icon","ultimate-cursor")}),(0,bt.jsx)("div",{className:"uc-effect-picker-card__body",children:(0,bt.jsx)("div",{className:"cursor-preview-list",children:window.ultimateCursorAdminData?.cursors?.map((r,n)=>{const o=((e,t)=>{const r=e.split("/").pop().replace(/\.[a-z0-9]+$/i,""),n=r.match(/^flags?[-_](.+)$/i);if(n){let e=n[1].toLowerCase();if(e=Zs[e]||e,/^\d+$/.test(e))return(0,W.sprintf)(/* translators: %s: flag number. */ /* translators: %s: flag number. */
6 (0,W.__)("Flag %s","ultimate-cursor"),e);const t=e.match(/^(.*)-(\d+)$/);return t?(0,W.sprintf)(/* translators: 1: country name, 2: variant number. */ /* translators: 1: country name, 2: variant number. */
7 (0,W.__)("%1$s Flag (%2$s)","ultimate-cursor"),Qs(t[1]),t[2]):(0,W.sprintf)(/* translators: %s: country name. */ /* translators: %s: country name. */
8 (0,W.__)("%s Flag","ultimate-cursor"),Qs(e))}const o=r.match(/^cursor[-_](\d+)$/i);return o?(0,W.sprintf)(/* translators: %d: cursor image number. */ /* translators: %d: cursor image number. */
9 (0,W.__)("Cursor %d","ultimate-cursor"),parseInt(o[1],10)):(0,W.sprintf)(/* translators: %d: cursor image number. */ /* translators: %d: cursor image number. */
10 (0,W.__)("Cursor %d","ultimate-cursor"),t)})(r,n),a=e.cursorIcon===r;return(0,bt.jsx)(xe.A,{title:o,children:(0,bt.jsx)("div",{className:"cursor-item "+(a?"active":""),role:"button",tabIndex:0,"aria-label":o,"aria-pressed":a,onClick:e=>{e.preventDefault(),t("cursorIcon",r)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t("cursorIcon",r))},children:(0,bt.jsx)("img",{src:r,alt:"",style:{width:32,height:32}})})},n)})})})]}),"cursor-shape"===e?.cursorType&&(0,bt.jsxs)("div",{className:"uc-effect-picker-card",children:[(0,bt.jsx)("div",{className:"uc-effect-picker-card__head",children:(0,W.__)("Choose a Shape","ultimate-cursor")}),(0,bt.jsx)("div",{className:"uc-effect-picker-card__body",children:(0,bt.jsx)("div",{className:"cursor-preview-list",children:window.ultimateCursorAdminData?.shapes?.slice().sort((e,t)=>parseInt(e.split("/").pop().replace(".svg",""),10)-parseInt(t.split("/").pop().replace(".svg",""),10)).map((r,n)=>{const o=parseInt(r.split("/").pop().replace(".svg",""),10),a=o>=6,i=!vr(),s=a&&!i,l=e.cursorShape===r.split("/").pop(),c=`cursor-item ${l?"active":""} ${a&&!i?"pro-shape":""} ${s?"disabled":""}`,u=((e,t)=>Js[e]||(0,W.sprintf)(/* translators: %d: shape number. */ /* translators: %d: shape number. */
11 (0,W.__)("Shape %d","ultimate-cursor"),t+1))(o,n),d=e=>{e.preventDefault(),s||t("cursorShape",r.split("/").pop())};return(0,bt.jsx)(xe.A,{title:u,children:(0,bt.jsxs)("div",{className:c,role:"button",tabIndex:s?-1:0,"aria-label":u,"aria-pressed":!s&&l,"aria-disabled":s,onClick:d,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||d(e)},children:[(0,bt.jsx)("img",{src:r,alt:""}),a&&!i&&(0,bt.jsx)("div",{className:"wpxero-pro-badge-overlay",children:(0,bt.jsx)("span",{className:"wpxero-pro-badge",children:(0,W.__)("Pro","ultimate-cursor")})})]})},n)})})})]}),"animated-cursor"===e?.cursorType&&(0,bt.jsx)(Pt,{value:e.effect||kt.LP["animated-cursor"].effect,onChange:e=>t("effect",e)})]}),tl=({tempConfig:e,updateTempConfigField:t,isEmojiPickerOpen:r,setIsEmojiPickerOpen:n})=>(0,bt.jsxs)(bt.Fragment,{children:["cursor-text"===e?.cursorType&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"wpxero-select-control",children:(0,bt.jsx)(Ps,{label:(0,W.__)("Text Style","ultimate-cursor"),value:e.textStyle||kt.LP["cursor-text"].textStyle,options:kt.JS.map(e=>"circular"===e.value&&vr()?{...e,label:(0,W.__)("Circular (Pro)","ultimate-cursor")}:e),onChange:e=>t("textStyle",e),help:vr()?(0,W.__)("Circular spins the text around the cursor. This is a pro feature.","ultimate-cursor"):(0,W.__)("Normal renders a pill label; Circular spins the text around the cursor.","ultimate-cursor")})}),(0,bt.jsx)(Bs,{label:(0,W.__)("Circular Background","ultimate-cursor"),checked:void 0!==e.circularBackground?e.circularBackground:kt.LP["cursor-text"].circularBackground,onChange:e=>t("circularBackground",e),help:vr()?(0,W.__)("Use circular background instead of rectangular. This is a pro feature.","ultimate-cursor"):(0,W.__)("Use circular background instead of rectangular","ultimate-cursor"),disabled:vr()}),e.circularBackground&&(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Circle Size","ultimate-cursor"),value:e.circularBackgroundSize||kt.LP["cursor-text"].circularBackgroundSize,min:40,max:200,step:1,onChange:e=>t("circularBackgroundSize",e),help:vr()?(0,W.__)("Diameter of the circular background (Pro feature)","ultimate-cursor"):(0,W.__)("Diameter of the circular background","ultimate-cursor"),disabled:vr()})}),"circular"===e.textStyle&&(0,bt.jsxs)("div",{className:"wpxero-pro-feature",children:[(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Circle Radius","ultimate-cursor"),value:e.circularTextRadius||kt.LP["cursor-text"].circularTextRadius,min:20,max:100,step:1,onChange:e=>t("circularTextRadius",e),help:(0,W.__)("Radius of the circular text path","ultimate-cursor")})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Circle Size","ultimate-cursor"),value:e.circularTextCircleSize||kt.LP["cursor-text"].circularTextCircleSize,min:20,max:120,step:1,onChange:e=>t("circularTextCircleSize",e),help:(0,W.__)("Size of the background circle","ultimate-cursor")})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Rotation","ultimate-cursor"),value:e.circularTextRotate||kt.LP["cursor-text"].circularTextRotate,min:0,max:360,step:1,onChange:e=>t("circularTextRotate",e),help:(0,W.__)("Rotation angle in degrees","ultimate-cursor")})}),(0,bt.jsx)("div",{className:"wpxero-select-control",children:(0,bt.jsx)(Ps,{label:(0,W.__)("Direction","ultimate-cursor"),value:e.circularTextDirection||kt.LP["cursor-text"].circularTextDirection,options:kt.Rq,onChange:e=>t("circularTextDirection",e)})}),(0,bt.jsx)("div",{className:"wpxero-toggle-control",children:(0,bt.jsx)(Bs,{label:(0,W.__)("Show Circle","ultimate-cursor"),checked:void 0!==e.circularTextShowCircle?e.circularTextShowCircle:kt.LP["cursor-text"].circularTextShowCircle,onChange:e=>t("circularTextShowCircle",e),help:(0,W.__)("Show background circle behind text","ultimate-cursor")})}),(0,bt.jsx)("div",{className:"wpxero-toggle-control",children:(0,bt.jsx)(Bs,{label:(0,W.__)("Auto Rotate","ultimate-cursor"),checked:void 0!==e.circularTextAutoRotate?e.circularTextAutoRotate:kt.LP["cursor-text"].circularTextAutoRotate,onChange:e=>t("circularTextAutoRotate",e),help:(0,W.__)("Enable automatic rotation animation","ultimate-cursor")})}),e.circularTextAutoRotate&&(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Rotation Speed","ultimate-cursor"),value:e.circularTextRotationSpeed||kt.LP["cursor-text"].circularTextRotationSpeed,min:.1,max:5,step:.1,onChange:e=>t("circularTextRotationSpeed",e),help:(0,W.__)("Speed of the rotation animation","ultimate-cursor")})}),(0,bt.jsx)(Ws,{title:(0,W.__)("Circular Text","ultimate-cursor"),description:(0,W.__)("Spin your label around the cursor as a rotating badge with full control over the motion.","ultimate-cursor"),features:[(0,W.__)("Rotating text badge","ultimate-cursor"),(0,W.__)("Radius and circle size controls","ultimate-cursor"),(0,W.__)("Spin direction and speed","ultimate-cursor"),(0,W.__)("Optional circle backing","ultimate-cursor")]})]})]}),"animated-cursor"===e?.cursorType&&(0,bt.jsxs)(bt.Fragment,{children:["SnowFlake"===e?.effect&&(0,bt.jsxs)("div",{className:"wpxero-pro-feature",children:[(0,bt.jsx)("div",{className:"wpxero-emoji-picker-control",children:(0,bt.jsxs)(Ms,{id:"snowflake-emojis",label:(0,W.__)("Emoji Characters","ultimate-cursor"),help:(0,W.__)("Click to select emoji characters for snowflakes. This is a pro feature.","ultimate-cursor"),children:[(0,bt.jsxs)("div",{className:"wpxero-emoji-header",children:[(0,bt.jsx)("span",{className:"wpxero-emoji-counter",children:e.snowflakeEmojis&&e.snowflakeEmojis.length>0?(0,bt.jsxs)(bt.Fragment,{children:[e.snowflakeEmojis.length,"/8"," ",(0,W.__)("selected","ultimate-cursor")]}):(0,W.__)("No emojis selected","ultimate-cursor")}),e.snowflakeEmojis&&e.snowflakeEmojis.length>0&&(0,bt.jsx)(Fs,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>t("snowflakeEmojis",["❄️"]),disabled:vr(),children:(0,W.__)("Clear All","ultimate-cursor")})]}),(0,bt.jsx)("div",{className:"wpxero-emoji-display",children:e.snowflakeEmojis&&e.snowflakeEmojis.length>0?e.snowflakeEmojis.map((r,n)=>(0,bt.jsx)("button",{type:"button",className:"wpxero-emoji-item","aria-label":(0,W.__)("Remove emoji","ultimate-cursor"),onClick:()=>{const r=[...e.snowflakeEmojis];r.splice(n,1),t("snowflakeEmojis",r.length?r:["❄️"])},children:r},n)):(0,bt.jsx)("span",{className:"wpxero-emoji-placeholder",children:"❄️"})}),(0,bt.jsx)(Fs,{variant:"secondary",className:"wpxero-emoji-picker-button",onClick:e=>{e.preventDefault(),e.stopPropagation(),n(!0)},disabled:vr()||e.snowflakeEmojis&&e.snowflakeEmojis.length>=8,children:e.snowflakeEmojis&&e.snowflakeEmojis.length>=8?(0,W.__)("Maximum Reached","ultimate-cursor"):(0,W.__)("Add Emoji","ultimate-cursor")}),r&&(0,bt.jsxs)(po.Popover,{className:"wpxero-emoji-popover",onClose:()=>n(!1),position:"middle center",noArrow:!0,focusOnMount:"container",expandOnMobile:!0,headerTitle:(0,W.__)("Select Emoji","ultimate-cursor"),onClickOutside:e=>{e.target.closest(".components-popover__content")||n(!1)},children:[(0,bt.jsxs)("div",{className:"wpxero-emoji-popover-header",children:[(0,bt.jsx)("h3",{children:(0,W.__)("Select Emoji","ultimate-cursor")}),(0,bt.jsx)("p",{children:(0,W.__)("Click an emoji to add it to your snowflakes (max 8)","ultimate-cursor")}),(0,bt.jsxs)("div",{className:"wpxero-emoji-selected-count",children:[e.snowflakeEmojis?e.snowflakeEmojis.length:0,"/8"]})]}),(0,bt.jsx)("div",{className:"wpxero-emoji-picker-container",role:"presentation",onClick:e=>{e.stopPropagation()},children:(0,bt.jsx)(V.Suspense,{fallback:null,children:(0,bt.jsx)(Ys,{onEmojiClick:r=>{const n=e.snowflakeEmojis||["❄️"];if(n.length<8){const e=[...n];e.includes(r.emoji)||(e.push(r.emoji),t("snowflakeEmojis",e))}},searchPlaceHolder:(0,W.__)("Search emojis…","ultimate-cursor"),width:"100%",height:"350px",previewConfig:{showPreview:!1}})})}),(0,bt.jsx)("div",{className:"wpxero-emoji-popover-footer",children:(0,bt.jsx)(Fs,{variant:"primary",onClick:()=>n(!1),children:(0,W.__)("Done","ultimate-cursor")})})]})]})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Emoji Size","ultimate-cursor"),value:e?.snowflakeSize||12,min:8,max:24,step:1,onChange:e=>t("snowflakeSize",e),help:(0,W.__)("Size of the snowflake emoji. This is a pro feature.","ultimate-cursor"),disabled:vr()})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Particle Count","ultimate-cursor"),value:e?.snowflakeCount||5,min:1,max:15,step:1,onChange:e=>t("snowflakeCount",e),help:(0,W.__)("Number of snowflakes to show per cursor movement. This is a pro feature.","ultimate-cursor"),disabled:vr()})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Lifespan","ultimate-cursor"),value:e?.snowflakeLifespan||100,min:50,max:200,step:10,onChange:e=>t("snowflakeLifespan",e),help:(0,W.__)("How long snowflakes remain visible. This is a pro feature.","ultimate-cursor"),disabled:vr()})}),(0,bt.jsx)(Ws,{title:(0,W.__)("Snowfall Effects","ultimate-cursor"),description:(0,W.__)("Customize falling snowflakes with your own emoji, size, count, and lifespan.","ultimate-cursor"),features:[(0,W.__)("Custom emoji characters (up to 8)","ultimate-cursor"),(0,W.__)("Snowflake size control","ultimate-cursor"),(0,W.__)("Particle count control","ultimate-cursor"),(0,W.__)("Lifespan control","ultimate-cursor")]})]}),"TrailCursor"===e?.effect&&(0,bt.jsxs)("div",{className:"wpxero-pro-feature",children:[(0,bt.jsx)("div",{className:"wpxero-emoji-picker-control",children:(0,bt.jsxs)(Ms,{id:"trail-emoji",label:(0,W.__)("Trail Emoji","ultimate-cursor"),help:(0,W.__)("Select an emoji character for the cursor trail. This is a pro feature.","ultimate-cursor"),children:[(0,bt.jsxs)("div",{className:"wpxero-emoji-header",children:[(0,bt.jsx)("span",{className:"wpxero-emoji-counter",children:e.trailEmoji?(0,bt.jsxs)(bt.Fragment,{children:[(0,W.__)("Current emoji:","ultimate-cursor")," ",e.trailEmoji]}):(0,W.__)("No emoji selected","ultimate-cursor")}),e.trailEmoji&&(0,bt.jsx)(Fs,{isSmall:!0,isDestructive:!0,variant:"tertiary",onClick:()=>t("trailEmoji"),disabled:vr(),children:(0,W.__)("Reset","ultimate-cursor")})]}),(0,bt.jsx)("div",{className:"wpxero-emoji-display",children:(0,bt.jsx)("span",{className:"wpxero-emoji-item wpxero-emoji-large",children:e?.trailEmoji||""})}),(0,bt.jsx)(Fs,{variant:"secondary",className:"wpxero-emoji-picker-button",onClick:e=>{e.preventDefault(),e.stopPropagation(),n(!0)},disabled:vr(),children:(0,W.__)("Choose Emoji","ultimate-cursor")}),r&&(0,bt.jsxs)(po.Popover,{className:"wpxero-emoji-popover",onClose:()=>n(!1),position:"middle center",noArrow:!0,focusOnMount:"container",expandOnMobile:!0,headerTitle:(0,W.__)("Select Emoji","ultimate-cursor"),onClickOutside:e=>{e.target.closest(".components-popover__content")||n(!1)},children:[(0,bt.jsxs)("div",{className:"wpxero-emoji-popover-header",children:[(0,bt.jsx)("h3",{children:(0,W.__)("Select Trail Emoji","ultimate-cursor")}),(0,bt.jsx)("p",{children:(0,W.__)("Click an emoji to use for your cursor trail","ultimate-cursor")})]}),(0,bt.jsx)("div",{className:"wpxero-emoji-picker-container",role:"presentation",onClick:e=>{e.stopPropagation()},children:(0,bt.jsx)(V.Suspense,{fallback:null,children:(0,bt.jsx)(Ys,{onEmojiClick:e=>{t("trailEmoji",e.emoji),n(!1)},searchPlaceHolder:(0,W.__)("Search emojis…","ultimate-cursor"),width:"100%",height:"350px",previewConfig:{showPreview:!1}})})}),(0,bt.jsx)("div",{className:"wpxero-emoji-popover-footer",children:(0,bt.jsx)(Fs,{variant:"primary",onClick:()=>n(!1),children:(0,W.__)("Done","ultimate-cursor")})})]})]})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Emoji Size","ultimate-cursor"),value:e?.trailEmojiSize||16,min:8,max:32,step:1,onChange:e=>t("trailEmojiSize",e),help:(0,W.__)("Size of the trail emoji. This is a pro feature.","ultimate-cursor"),disabled:vr()})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Particle Count","ultimate-cursor"),value:e?.trailParticleCount||15,min:5,max:30,step:1,onChange:e=>t("trailParticleCount",e),help:(0,W.__)("Number of particles in the trail. This is a pro feature.","ultimate-cursor"),disabled:vr()})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Trail Speed","ultimate-cursor"),value:e?.trailSpeed||.4,min:.1,max:.9,step:.1,onChange:e=>t("trailSpeed",e),help:(0,W.__)("Speed of the cursor trail. This is a pro feature.","ultimate-cursor"),disabled:vr()})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Opacity","ultimate-cursor"),value:e?.trailOpacity||1,min:.1,max:1,step:.1,onChange:e=>t("trailOpacity",e),help:(0,W.__)("Opacity of the trail particles. This is a pro feature.","ultimate-cursor"),disabled:vr()})}),(0,bt.jsx)(Ws,{title:(0,W.__)("Trail Cursor Effects","ultimate-cursor"),description:(0,W.__)("Customize your cursor trail with a custom emoji, size, particle count, speed, and opacity.","ultimate-cursor"),features:[(0,W.__)("Custom trail emoji","ultimate-cursor"),(0,W.__)("Particle count & size control","ultimate-cursor"),(0,W.__)("Speed & opacity control","ultimate-cursor")]})]})]}),"cursor-image"===e?.cursorType&&e?.imageUrl&&(0,bt.jsxs)(bt.Fragment,{children:[e?.imageUrl&&(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Image Size (px)","ultimate-cursor"),value:Number(e?.imageSize)||kt.LP["cursor-image"].imageSize,min:8,max:128,step:1,onChange:e=>t("imageSize",Number(e))})}),e?.imageUrl&&(0,bt.jsx)(Us,{tempConfig:e,updateTempConfigField:t})]})]}),rl=({tempConfig:e,updateTempConfigField:t})=>(0,bt.jsx)(bt.Fragment,{children:(0,bt.jsxs)(Ms,{children:["cursor-text"===e.cursorType&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Ds,{label:(0,W.__)("Color","ultimate-cursor"),value:e.color||"#000000",onChange:(e,r)=>{t("color",r)}}),(0,bt.jsx)(Ds,{label:(0,W.__)("Background","ultimate-cursor"),value:e.background||"#ffffff",onChange:(e,r)=>{t("background",r)}}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Font Size (px)","ultimate-cursor"),value:Number(e.fontSize)||kt.LP["cursor-text"].fontSize,min:0,max:100,step:1,onChange:e=>t("fontSize",Number(e))})}),!e.circularBackground&&(0,bt.jsxs)("div",{className:"wpxero-unit-control",children:[(0,bt.jsx)(Ls,{label:(0,W.__)("Spacing Vertical (px)","ultimate-cursor"),value:e?.padding||kt.LP.common?.padding,units:kt.QN,onChange:e=>t("padding",Number(e)),min:0,max:30}),(0,bt.jsx)(Ls,{label:(0,W.__)("Spacing Horizontal (px)","ultimate-cursor"),value:e?.paddingLeftRight||kt.LP.common?.paddingLeftRight,units:kt.QN,onChange:e=>t("paddingLeftRight",Number(e)),min:0,max:30})]})]}),("cursor-text"===e.cursorType||"cursor-image"===e.cursorType||"cursor-icon"===e.cursorType)&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"wpxero-select-control",children:(0,bt.jsx)(Ps,{label:(0,W.__)("Border Style","ultimate-cursor"),value:e?.borderStyle||kt.LP.common?.borderStyle,options:kt.BY,onChange:e=>t("borderStyle",e)})}),e?.borderStyle&&"none"!==e.borderStyle&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Ds,{label:(0,W.__)("Border Color","ultimate-cursor"),value:e.borderColor||"#000000",onChange:(e,r)=>{t("borderColor",r)}}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Border Width (px)","ultimate-cursor"),value:e.borderWidth||kt.LP.common.borderWidth,onChange:e=>t("borderWidth",e),min:0,max:30})}),!e.circularBackground&&(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Border Radius (px)","ultimate-cursor"),value:e?.borderRadius||kt.LP.common.borderRadius,onChange:e=>t("borderRadius",e)})})]})]}),"cursor-shape"===e?.cursorType&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Shape Size","ultimate-cursor"),value:e.shapeSize||kt.LP.common?.shapeSize||10,onChange:e=>t("shapeSize",e),min:1,max:50})}),("1.svg"===e?.cursorShape||"5.svg"===e?.cursorShape)&&(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Border Width (px)","ultimate-cursor"),value:e.borderWidth||kt.LP.common.borderWidth,onChange:e=>t("borderWidth",e),min:1,max:20})}),"5.svg"!==e?.cursorShape&&(0,bt.jsx)(Ds,{label:(0,W.__)("Color","ultimate-cursor"),value:e.shapeColor||"#000000",onChange:(e,r)=>{t("shapeColor",r)}}),("1.svg"===e?.cursorShape||"5.svg"===e?.cursorShape)&&(0,bt.jsx)(Ds,{label:(0,W.__)("Border Color","ultimate-cursor"),value:e.borderColor||"#3a92c5",onChange:(e,r)=>{t("borderColor",r)}})]}),"animated-cursor"===e?.cursorType&&"BubbleCursor"===e?.effect&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Bubble Size","ultimate-cursor"),value:e?.bubbleSize||4,onChange:e=>t("bubbleSize",e),min:1,max:20,units:kt.QN})}),(0,bt.jsx)(Ds,{label:(0,W.__)("Fill Color","ultimate-cursor"),value:e.bubbleFillColor||"#e6f1f7",onChange:(e,r)=>{t("bubbleFillColor",r)}}),(0,bt.jsx)(Ds,{label:(0,W.__)("Stroke Color","ultimate-cursor"),value:e.bubbleStrokeColor||"#3a92c5",onChange:(e,r)=>{t("bubbleStrokeColor",r)}})]}),"SplashCursor"===e?.effect&&"animated-cursor"===e?.cursorType&&(0,bt.jsx)(bt.Fragment,{children:(0,bt.jsxs)("div",{className:"wpxero-pro-feature",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors__header",children:[(0,bt.jsx)("span",{className:"components-base-control__label",children:(0,W.__)("Splash Colors","ultimate-cursor")}),(0,bt.jsx)(Fs,{className:"wpxero-splash-colors__add",variant:"secondary",isSmall:!0,onClick:()=>{const r=[...e.splashColors||["#e6f1f7"]];r.push("#e6f1f7"),t("splashColors",r)},children:(0,W.__)("Add Color","ultimate-cursor")})]}),(0,bt.jsx)("div",{className:"wpxero-splash-colors__list",children:(e.splashColors||["#e6f1f7"]).map((r,n)=>(0,bt.jsxs)("div",{className:"wpxero-splash-colors__item",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors__color-picker",children:[(0,bt.jsx)(cs,{disabledAlpha:!0,value:r,onChange:r=>{const o="string"==typeof r?r:r.toHexString(),a=[...e.splashColors||["#e6f1f7"]];a[n]=o,t("splashColors",a)}}),(0,bt.jsx)("span",{className:"wpxero-splash-colors__color-value",children:r})]}),(e.splashColors||["#e6f1f7"]).length>1&&(0,bt.jsx)(Fs,{className:"wpxero-splash-colors__remove",variant:"tertiary",isSmall:!0,isDestructive:!0,onClick:()=>{const r=[...e.splashColors||["#e6f1f7"]];r.splice(n,1),t("splashColors",r)},children:(0,bt.jsx)("span",{className:"dashicons dashicons-trash"})})]},n))}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Splash Size","ultimate-cursor"),disabled:vr(),value:e?.splashRadius||.5,min:.1,max:1.5,step:.1,onChange:e=>t("splashRadius",e)})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Splash Force","ultimate-cursor"),disabled:vr(),value:e?.splashForce||6e3,min:1e3,max:1e4,step:500,onChange:e=>t("splashForce",e)})})]}),(0,bt.jsx)(Ws,{title:(0,W.__)("Splash Effects","ultimate-cursor"),description:(0,W.__)("Create vibrant splash trails with customizable colors, gradients, and smooth animations.","ultimate-cursor"),features:[(0,W.__)("Custom splash colors","ultimate-cursor"),(0,W.__)("Animation speed controls","ultimate-cursor"),(0,W.__)("Trail length adjustment","ultimate-cursor")]})]})}),"CharacterCursor"===e?.effect&&"animated-cursor"===e?.cursorType&&(0,bt.jsx)(bt.Fragment,{children:(0,bt.jsxs)("div",{className:"wpxero-pro-feature",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors__header",children:[(0,bt.jsx)("span",{className:"components-base-control__label",children:(0,W.__)("Character Colors","ultimate-cursor")}),(0,bt.jsx)(Fs,{className:"wpxero-splash-colors__add",variant:"secondary",isSmall:!0,onClick:()=>{const r=[...e.charactersColors||["#0a06f9"]];r.push("#e6f1f7"),t("charactersColors",r)},children:(0,W.__)("Add Color","ultimate-cursor")})]}),(0,bt.jsx)("div",{className:"wpxero-splash-colors__list",children:(e.charactersColors||["#0a06f9"]).map((r,n)=>(0,bt.jsxs)("div",{className:"wpxero-splash-colors__item",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors__color-picker",children:[(0,bt.jsx)(cs,{value:r,onChange:r=>{const o="string"==typeof r?r:r.toHexString(),a=[...e.charactersColors||["#0a06f9"]];a[n]=o,t("charactersColors",a)}}),(0,bt.jsx)("span",{className:"wpxero-splash-colors__color-value",children:r})]}),(e.charactersColors||["#0a06f9"]).length>1&&(0,bt.jsx)(Fs,{className:"wpxero-splash-colors__remove",variant:"tertiary",isSmall:!0,isDestructive:!0,onClick:()=>{const r=[...e.charactersColors||["#0a06f9"]];r.splice(n,1),t("charactersColors",r)},children:(0,bt.jsx)("span",{className:"dashicons dashicons-trash"})})]},n))}),(0,bt.jsx)(zs,{label:(0,W.__)("Characters","ultimate-cursor"),disabled:vr(),value:e.characters?e.characters.join(","):"ultimate,cursor",onChange:e=>{const r=e.split(",").map(e=>e.trim());t("characters",r)}}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Speed","ultimate-cursor"),disabled:vr(),value:e?.speed||.5,min:.1,max:2,step:.1,onChange:e=>t("speed",e)})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Delay","ultimate-cursor"),disabled:vr(),value:e?.delay||100,min:10,max:500,step:10,onChange:e=>t("delay",e)})})]}),(0,bt.jsx)(Ws,{title:(0,W.__)("Character Cursor","ultimate-cursor"),description:(0,W.__)("Create vibrant character cursor with customizable colors, characters, and smooth animations.","ultimate-cursor"),features:[(0,W.__)("Custom characters","ultimate-cursor"),(0,W.__)("Custom character colors","ultimate-cursor"),(0,W.__)("Animation speed controls","ultimate-cursor"),(0,W.__)("Delay character animation","ultimate-cursor")]})]})}),"RainbowCursor"===e?.effect&&"animated-cursor"===e?.cursorType&&(0,bt.jsx)(bt.Fragment,{children:(0,bt.jsxs)("div",{className:"wpxero-pro-feature",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors__header",children:[(0,bt.jsx)("span",{className:"components-base-control__label",children:(0,W.__)("Rainbow Colors","ultimate-cursor")}),(0,bt.jsx)(Fs,{className:"wpxero-splash-colors__add",variant:"secondary",isSmall:!0,onClick:()=>{const r=[...e.colors||["#e6f1f7"]];r.push("#e6f1f7"),t("colors",r)},children:(0,W.__)("Add Color","ultimate-cursor")})]}),(0,bt.jsx)("div",{className:"wpxero-splash-colors__list",children:(e.colors||["#e6f1f7"]).map((r,n)=>(0,bt.jsxs)("div",{className:"wpxero-splash-colors__item",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors__color-picker",children:[(0,bt.jsx)(cs,{value:r,onChange:r=>{const o="string"==typeof r?r:r.toHexString(),a=[...e.colors||["#e6f1f7"]];a[n]=o,t("colors",a)}}),(0,bt.jsx)("span",{className:"wpxero-splash-colors__color-value",children:r})]}),(e.colors||["#e6f1f7"]).length>1&&(0,bt.jsx)(Fs,{className:"wpxero-splash-colors__remove",variant:"tertiary",isSmall:!0,isDestructive:!0,onClick:()=>{const r=[...e.colors||["#e6f1f7"]];r.splice(n,1),t("colors",r)},children:(0,bt.jsx)("span",{className:"dashicons dashicons-trash"})})]},n))}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Length","ultimate-cursor"),disabled:vr(),value:e?.length||20,min:10,max:50,step:1,onChange:e=>t("length",e)})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Size","ultimate-cursor"),disabled:vr(),value:Number(e?.size||3),min:1,max:10,step:1,onChange:e=>t("size",e)})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Trail Speed","ultimate-cursor"),disabled:vr(),value:e?.trailSpeed||.4,min:.1,max:.9,step:.1,onChange:e=>t("trailSpeed",e)})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Blur","ultimate-cursor"),disabled:vr(),value:e?.blur||0,min:0,max:10,step:1,onChange:e=>t("blur",e)})})]}),!window.ultimateCursorAdminData?.isPro&&(0,bt.jsxs)("div",{className:"wpxero-pro-overlay",children:[(0,bt.jsx)("div",{className:"wpxero-pro-overlay__backdrop"}),(0,bt.jsxs)("div",{className:"wpxero-pro-overlay__content",children:[(0,bt.jsx)("div",{className:"wpxero-pro-overlay__icon",children:(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)("path",{d:"M12 2C13.1 2 14 2.9 14 4C14 5.1 13.1 6 12 6C10.9 6 10 5.1 10 4C10 2.9 10.9 2 12 2M21 9V7L15 1L13.5 2.5L16.17 5.23L10.23 11.17L9.5 10.44L8.06 11.88L10.94 14.76L21 9M15 9L15.94 9.94L4.94 20.94L4 20L15 9M8 12L6 14L4 12L6 10L8 12Z"})})}),(0,bt.jsxs)("div",{className:"wpxero-pro-overlay__header",children:[(0,bt.jsx)("h3",{children:(0,W.__)("Rainbow Effects","ultimate-cursor")}),(0,bt.jsx)("span",{className:"wpxero-pro-badge",children:(0,W.__)("Pro","ultimate-cursor")})]}),(0,bt.jsx)("p",{className:"wpxero-pro-overlay__description",children:(0,W.__)("Create vibrant rainbow trails with customizable colors, gradients, and smooth animations.","ultimate-cursor")}),(0,bt.jsxs)("ul",{className:"wpxero-pro-overlay__features",children:[(0,bt.jsxs)("li",{children:[(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),(0,W.__)("Custom rainbow colors","ultimate-cursor")]}),(0,bt.jsxs)("li",{children:[(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),(0,W.__)("Gradient trail effects","ultimate-cursor")]}),(0,bt.jsxs)("li",{children:[(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),(0,W.__)("Animation speed controls","ultimate-cursor")]}),(0,bt.jsxs)("li",{children:[(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),(0,W.__)("Trail length adjustment","ultimate-cursor")]})]}),(0,bt.jsx)("div",{className:"wpxero-pro-overlay__actions",children:(0,bt.jsxs)(Fs,{className:"wpxero-pro-overlay__cta",href:window.ultimateCursorAdminData?.proUrl||"#",target:"_blank",children:[(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",style:{width:"16px",height:"16px"},children:(0,bt.jsx)("path",{d:"M12 2L13.09 8.26L22 9L13.09 9.74L12 16L10.91 9.74L2 9L10.91 8.26L12 2Z"})}),(0,W.__)("Upgrade to Pro","ultimate-cursor")]})})]})]})]})}),"ClickSpark"===e?.effect&&"animated-cursor"===e?.cursorType&&(0,bt.jsx)(bt.Fragment,{children:(0,bt.jsxs)("div",{className:"wpxero-pro-feature",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors",children:[(0,bt.jsx)(Ds,{label:(0,W.__)("Spark Color","ultimate-cursor"),value:e?.sparkColor||"#333",onChange:(e,r)=>{t("sparkColor",r)}}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ps,{label:(0,W.__)("Easing","ultimate-cursor"),value:e?.easing||"ease-out",options:[{label:"Linear",value:"linear"},{label:"Ease In",value:"ease-in"},{label:"Ease Out",value:"ease-out"},{label:"Ease In Out",value:"ease-in-out"}],onChange:e=>t("easing",e),help:(0,W.__)("Animation timing function","ultimate-cursor")})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Extra Scale","ultimate-cursor"),value:e?.extraScale||1,min:.5,max:2,step:.1,onChange:e=>t("extraScale",e),help:(0,W.__)("Additional scaling factor for the effect","ultimate-cursor")})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Spark Radius","ultimate-cursor"),value:e?.sparkRadius||15,min:5,max:50,step:1,onChange:e=>t("sparkRadius",e),help:(0,W.__)("Distance sparks travel from click point","ultimate-cursor")})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Spark Size","ultimate-cursor"),disabled:vr(),value:e?.sparkSize||50,min:10,max:100,step:5,onChange:e=>t("sparkSize",e)})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Spark Count","ultimate-cursor"),disabled:vr(),value:e?.sparkCount||8,min:4,max:16,step:1,onChange:e=>t("sparkCount",e)})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Animation Duration","ultimate-cursor"),disabled:vr(),value:e?.duration||1400,min:200,max:3e3,step:100,onChange:e=>t("duration",e)})})]}),(0,bt.jsx)(Ws,{title:(0,W.__)("ClickSpark Effects","ultimate-cursor"),description:(0,W.__)("Create stunning spark effects with customizable colors, sizes, and animations.","ultimate-cursor"),features:[(0,W.__)("Custom spark colors","ultimate-cursor"),(0,W.__)("Spark size controls","ultimate-cursor"),(0,W.__)("Spark count controls","ultimate-cursor"),(0,W.__)("Animation duration controls","ultimate-cursor")]})]})}),"ClickParticles"===e?.effect&&"animated-cursor"===e?.cursorType&&(0,bt.jsx)(bt.Fragment,{children:(0,bt.jsxs)("div",{className:"wpxero-pro-feature",children:[(0,bt.jsxs)("div",{className:"wpxero-splash-colors",children:[(0,bt.jsx)(Ds,{label:(0,W.__)("Particle Color","ultimate-cursor"),value:e?.particleColor||"#333",onChange:(e,r)=>{t("particleColor",r)}}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Particle Speed","ultimate-cursor"),disabled:vr(),value:e?.particleSpeed||10,min:1,max:100,step:1,onChange:e=>t("particleSpeed",e)})})]}),(0,bt.jsx)(Ws,{title:(0,W.__)("ClickParticles Effects","ultimate-cursor"),description:(0,W.__)("Create stunning particle effects with customizable colors, sizes, and animations.","ultimate-cursor"),features:[(0,W.__)("Custom particle colors","ultimate-cursor"),(0,W.__)("Particle speed controls","ultimate-cursor"),(0,W.__)("Particle size controls","ultimate-cursor"),(0,W.__)("Particle Background controls","ultimate-cursor")]})]})})]})}),nl=[{value:"normal",label:(0,W.__)("Normal","ultimate-cursor")},{value:"difference",label:(0,W.__)("Difference","ultimate-cursor")},{value:"exclusion",label:(0,W.__)("Exclusion","ultimate-cursor")},{value:"multiply",label:(0,W.__)("Multiply","ultimate-cursor")},{value:"screen",label:(0,W.__)("Screen","ultimate-cursor")},{value:"overlay",label:(0,W.__)("Overlay","ultimate-cursor")}],ol=()=>{const e=window.ultimateCursorAdminData?.proUrl||"#";return(0,bt.jsxs)("div",{className:"uc-hover-pro-teaser",children:[(0,bt.jsx)("span",{className:"uc-hover-pro-teaser__icon","aria-hidden":"true",children:(0,bt.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",children:(0,bt.jsx)("path",{d:"M13 3L4 14h6l-1 7 9-11h-6l1-7z"})})}),(0,bt.jsxs)("div",{className:"uc-hover-pro-teaser__text",children:[(0,bt.jsxs)("strong",{children:[(0,W.__)("Interactive Hover","ultimate-cursor"),(0,bt.jsx)("span",{className:"wpxero-pro-badge",children:(0,W.__)("Pro","ultimate-cursor")})]}),(0,bt.jsx)("p",{children:(0,W.__)("Make the cursor react to links & buttons — grow, recolor, glow and snap magnetically.","ultimate-cursor")})]}),(0,bt.jsx)(Fs,{className:"uc-hover-pro-teaser__cta",href:e,target:"_blank",children:(0,W.__)("Upgrade to Pro","ultimate-cursor")})]})},al=({tempConfig:e,updateTempConfigField:t})=>{if("animated-cursor"===e.cursorType)return null;const r=!0===e.hoverEnabled,n=(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Hover Scale","ultimate-cursor"),help:(0,W.__)("How much the cursor grows over interactive elements.","ultimate-cursor"),value:Number(e.hoverScale)||kt.LP.common.hoverScale,min:1,max:3,step:.1,onChange:e=>t("hoverScale",Number(e))})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Hover Speed","ultimate-cursor"),help:(0,W.__)("How quickly the hover animation eases in and out (higher is snappier).","ultimate-cursor"),value:Number(e.hoverSpeed)||kt.LP.common.hoverSpeed,min:.05,max:1,step:.05,onChange:e=>t("hoverSpeed",Number(e))})}),(0,bt.jsx)(Ds,{label:(0,W.__)("Hover Background Color","ultimate-cursor"),help:(0,W.__)("Cursor background/fill color while hovering an interactive element.","ultimate-cursor"),value:e.hoverColor||"#5C33FF",onChange:(e,r)=>t("hoverColor",r)}),(0,bt.jsx)(Ds,{label:(0,W.__)("Hover Text Color","ultimate-cursor"),help:(0,W.__)("Text color while hovering (text cursors only). Falls back to the base text color when unset.","ultimate-cursor"),value:e.hoverTextColor||"#ffffff",onChange:(e,r)=>t("hoverTextColor",r)})]}),o=(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Magnetic Strength","ultimate-cursor"),help:(0,W.__)("Pulls the cursor toward the center of the hovered element. 0 disables it.","ultimate-cursor"),value:Number(e.hoverMagneticStrength)||0,min:0,max:1,step:.05,onChange:e=>t("hoverMagneticStrength",Number(e))})}),(0,bt.jsx)("div",{className:"wpxero-unit-control",children:(0,bt.jsx)(Ls,{label:(0,W.__)("Hover Glow (px)","ultimate-cursor"),help:(0,W.__)("Soft glow radius around the cursor on hover. 0 disables it.","ultimate-cursor"),value:Number(e.hoverGlowSize)||0,min:0,max:60,step:1,onChange:e=>t("hoverGlowSize",Number(e))})}),(0,bt.jsx)(Ds,{label:(0,W.__)("Glow Color","ultimate-cursor"),help:(0,W.__)("Color of the hover glow. Defaults to the hover color.","ultimate-cursor"),value:e.hoverGlowColor||"#5C33FF",onChange:(e,r)=>t("hoverGlowColor",r)}),(0,bt.jsx)(Bs,{label:(0,W.__)("Hover Labels","ultimate-cursor"),help:(0,W.__)("Show a small label (View / Click / Open / Drag) on hover. Override per element with data-uc-hover-label.","ultimate-cursor"),checked:!0===e.hoverLabelsEnabled,onChange:e=>t("hoverLabelsEnabled",e)}),(0,bt.jsx)("div",{className:"wpxero-select-control",children:(0,bt.jsx)(Ps,{label:(0,W.__)("Blend Mode","ultimate-cursor"),help:(0,W.__)("Blends the cursor's color with whatever is underneath it — useful for keeping the cursor visible on any background. Uses the CSS mix-blend-mode property, so it may look different from theme to theme.","ultimate-cursor"),value:e.hoverBlendMode||"normal",options:nl,onChange:e=>t("hoverBlendMode",e)})}),(0,bt.jsx)(Os,{label:(0,W.__)("Custom Hover Selectors","ultimate-cursor"),help:(0,W.__)("Extra CSS selectors that should trigger the hover effect.","ultimate-cursor"),value:e.hoverCustomSelectors||"",onChange:e=>t("hoverCustomSelectors",e)})]});return(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Hs,{}),(0,bt.jsx)("h4",{children:(0,W.__)("HOVER EFFECTS","ultimate-cursor")}),vr()?(0,bt.jsx)(ol,{}):(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Bs,{label:(0,W.__)("Interactive Hover","ultimate-cursor"),help:(0,W.__)("Grow and style the cursor over links, buttons, images and other interactive elements. Detection is automatic.","ultimate-cursor"),checked:r,onChange:e=>t("hoverEnabled",e)}),r&&(0,bt.jsx)(uo.A,{defaultActiveKey:"basic",className:"uc-settings-subtabs uc-hover-subtabs",size:"small",items:[{key:"basic",label:(0,W.__)("Basic","ultimate-cursor"),children:(0,bt.jsx)("div",{className:"uc-settings-subtabs__panel",children:n})},{key:"advanced",label:(0,W.__)("Advanced","ultimate-cursor"),children:(0,bt.jsx)("div",{className:"uc-settings-subtabs__panel",children:o})}]})]})]})},il=({tempConfig:e,updateTempConfigField:t})=>(0,bt.jsx)(bt.Fragment,{children:(0,bt.jsxs)(Ms,{children:["animated-cursor"!==e.cursorType&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"wpxero-toggle-control",children:(0,bt.jsx)(Bs,{label:(0,W.__)("Enable Transition","ultimate-cursor"),help:(0,W.__)("Apply smooth transition effect to cursor movement","ultimate-cursor"),checked:e.enableTransition||!1,onChange:e=>t("enableTransition",e)})}),(0,bt.jsx)("div",{className:"wpxero-toggle-control",children:(0,bt.jsx)(Bs,{label:(0,W.__)("Disable Default Cursor","ultimate-cursor"),help:(0,W.__)("Hide the browser's default cursor and show only your custom cursor","ultimate-cursor"),checked:e.defaultCursor||!1,onChange:e=>t("defaultCursor",e)})})]}),(0,bt.jsx)("div",{className:"wpxero-toggle-control",children:(0,bt.jsx)(Bs,{label:(0,W.__)("Hide Cursor on Touch Devices","ultimate-cursor"),help:(0,W.__)("Hide the custom cursor on all touch-enabled devices (recommended)","ultimate-cursor"),checked:e.hideCursorOnTouch??kt.LP.common.hideCursorOnTouch,onChange:e=>{e&&(t("hideCursorOnMobile",!0),t("hideCursorOnTablet",!0)),t("hideCursorOnTouch",e)}})}),!(e.hideCursorOnTouch??kt.LP.common.hideCursorOnTouch)&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"wpxero-toggle-control advanced-option",children:(0,bt.jsx)(Bs,{label:(0,W.__)("Hide on Small Screens (<600px)","ultimate-cursor"),help:(0,W.__)("Hide on mobile-sized screens","ultimate-cursor"),checked:e.hideCursorOnMobile??kt.LP.common.hideCursorOnMobile,onChange:e=>t("hideCursorOnMobile",e)})}),(0,bt.jsx)("div",{className:"wpxero-toggle-control advanced-option",children:(0,bt.jsx)(Bs,{label:(0,W.__)("Hide on Medium Screens (600–781px)","ultimate-cursor"),help:(0,W.__)("Hide on tablet-sized screens","ultimate-cursor"),checked:e.hideCursorOnTablet??kt.LP.common.hideCursorOnTablet,onChange:e=>t("hideCursorOnTablet",e)})})]}),(0,bt.jsx)(Hs,{}),(0,bt.jsx)("h4",{children:(0,W.__)("TARGET SCOPE","ultimate-cursor")}),(0,bt.jsx)("p",{style:{margin:"0 0 12px",fontSize:13,color:"#64748b",lineHeight:1.5},children:(0,W.__)("Choose where this cursor shows up — everywhere on your site, only on certain pages, or only when someone hovers specific elements.","ultimate-cursor")}),(0,bt.jsx)("div",{className:"wpxero-select-control",children:(0,bt.jsx)(Ps,{label:(0,W.__)("Apply Cursor On","ultimate-cursor"),value:e.cursorScope||"entire-website",options:(0,kt.xr)(),onChange:e=>t("cursorScope",e)})}),"specific-pages"===e.cursorScope&&(0,bt.jsx)(Is,{label:(0,W.__)("Select Pages","ultimate-cursor"),help:(0,W.__)("Search and select pages where this cursor should appear.","ultimate-cursor"),value:e.pagesList||"",onChange:e=>t("pagesList",e),disabled:vr()}),"css-selectors"===e.cursorScope&&(0,bt.jsx)(Os,{label:(0,W.__)("CSS Selectors","ultimate-cursor"),help:(0,W.__)("Type a CSS selector (e.g. .hero-section, #content) and press Enter to add it.","ultimate-cursor"),value:e.cssSelectors||"",onChange:e=>t("cssSelectors",e)}),"html-elements"===e.cursorScope&&(0,bt.jsx)(Ts,{label:(0,W.__)("HTML Elements","ultimate-cursor"),help:(0,W.__)("Select from common elements or type custom ones.","ultimate-cursor"),value:e.htmlElements||"",onChange:e=>t("htmlElements",e)})]})}),sl=e=>{const t=e.tempConfig||e.pendingSettings,r=e.updateTempConfigField||((t,r)=>{e.setPendingSettings(e=>({...e,[t]:r}))}),n=e.updateTempCursorType,[o,a]=(0,V.useState)(!1);return(0,V.useEffect)(()=>(o?document.body.classList.add("has-emoji-picker-open"):document.body.classList.remove("has-emoji-picker-open"),()=>{document.body.classList.remove("has-emoji-picker-open")}),[o]),t?(0,bt.jsx)("div",{className:"cursor-customization-panel",children:(0,bt.jsx)(uo.A,{defaultActiveKey:"type",className:"uc-settings-subtabs",size:"middle",items:[{key:"type",label:(0,W.__)("Cursor","ultimate-cursor"),children:(0,bt.jsx)("div",{className:"uc-settings-subtabs__panel",children:(0,bt.jsx)(el,{tempConfig:t,updateTempConfigField:r,updateTempCursorType:n})})},{key:"customize",label:(0,W.__)("Customize","ultimate-cursor"),children:(0,bt.jsxs)("div",{className:"uc-settings-subtabs__panel",children:[(0,bt.jsx)(tl,{tempConfig:t,updateTempConfigField:r,isEmojiPickerOpen:o,setIsEmojiPickerOpen:a}),(0,bt.jsx)(rl,{tempConfig:t,updateTempConfigField:r}),(0,bt.jsx)(al,{tempConfig:t,updateTempConfigField:r})]})},{key:"advanced",label:(0,W.__)("Advanced","ultimate-cursor"),children:(0,bt.jsx)("div",{className:"uc-settings-subtabs__panel",children:(0,bt.jsx)(il,{tempConfig:t,updateTempConfigField:r})})}].filter(Boolean)})}):null},ll=(0,V.lazy)(()=>r.e(885).then(r.bind(r,9885))),cl=(0,V.lazy)(()=>r.e(514).then(r.bind(r,2514))),ul=(0,V.lazy)(()=>r.e(150).then(r.bind(r,9150))),dl=(0,V.lazy)(()=>r.e(340).then(r.bind(r,7923))),pl=(0,V.lazy)(()=>r.e(372).then(r.bind(r,8372))),ml=(0,V.lazy)(()=>r.e(499).then(r.bind(r,8499))),hl=(0,V.lazy)(()=>r.e(114).then(r.bind(r,4114))),fl=(0,V.lazy)(()=>r.e(680).then(r.bind(r,7680))),gl=(0,V.lazy)(()=>r.e(970).then(r.bind(r,8970))),bl=(0,V.lazy)(()=>r.e(832).then(r.bind(r,1832)));class vl extends V.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?(0,bt.jsx)("div",{className:"preview-error",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#94a3b8",fontSize:13},children:(0,bt.jsx)("p",{children:(0,W.__)("Preview unavailable on this device — your cursor will still work on the site.","ultimate-cursor")})}):this.props.children}}const xl=({config:e,index:t})=>{const[r,n]=(0,V.useState)(null),o=`${e?.cursorType}-${e?.effect}-${t}`,[a,i]=(0,V.useState)(o);(0,V.useEffect)(()=>{if(!e)return;const r=setTimeout(()=>{const e=document.querySelector(`[data-ultimate-cursor="preview-config-${t}"]`);if(e){e.style.position="relative",e.style.overflow="hidden",e.style.height="100%",e.style.zIndex="1",n(e);const t=()=>{const t=e.querySelector(".cursor-element");t&&(t.style.opacity="0")};return e.addEventListener("mouseleave",t),()=>{e.removeEventListener("mouseleave",t)}}},100);return()=>{clearTimeout(r);const e=document.querySelector(`[data-ultimate-cursor="preview-config-${t}"]`);e&&e.querySelectorAll(".cursor-element").forEach(e=>e.remove())}},[e,t]),(0,V.useEffect)(()=>{i(o)},[o]),(0,V.useEffect)(()=>{if(r)return r.classList.toggle("default-cursor-disabled",!!e?.defaultCursor),()=>{r.classList.remove("default-cursor-disabled")}},[r,e?.defaultCursor]);const s=(0,V.useMemo)(()=>({position:"absolute",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1e3}),[]),l=(0,V.useMemo)(()=>{if(!r||!e.effect)return null;switch(e.effect){case"SplashCursor":return(0,bt.jsx)(ul,{wrapperElement:r,props:e},a);case"BubbleCursor":return(0,bt.jsx)(ll,{wrapperElement:r,props:e},a);case"CharacterCursor":return(0,bt.jsx)(cl,{wrapperElement:r,props:e},a);case"SnowFlake":return(0,bt.jsx)(hl,{wrapperElement:r,props:e},a);case"RainbowCursor":return(0,bt.jsx)(fl,{wrapperElement:r,props:e},a);case"TrailCursor":return(0,bt.jsx)(ml,{wrapperElement:r,props:e},a);case"ClickSpark":return(0,bt.jsx)(gl,{wrapperElement:r,props:e},a);case"ClickParticles":return(0,bt.jsx)(bl,{wrapperElement:r,props:e},a);default:return null}},[e.effect,r,e,a]),c=(0,V.useMemo)(()=>{if(!r||!e.cursorType)return null;switch(e.cursorType){case"animated-cursor":return l;case"cursor-shape":return(0,bt.jsx)(pl,{wrapperElement:r,props:e},a);default:return(0,bt.jsx)(dl,{wrapperElement:r,props:e},a)}},[e.cursorType,r,e,l,a]);return c?(0,bt.jsx)("div",{style:s,className:"cursor-wrapper",children:(0,bt.jsx)(vl,{children:(0,bt.jsx)(V.Suspense,{fallback:null,children:c})})}):null},{Title:yl,Text:$l}=kr.A,Cl=()=>{const e=e=>e.preventDefault();return(0,bt.jsxs)("div",{className:"uc-preview-hover-targets",children:[(0,bt.jsx)("style",{children:"\n.uc-preview-hover-targets {\n\tpointer-events: auto;\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tfont-family: inherit;\n}\n.uc-site {\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tbackground: #fff;\n\toverflow: hidden;\n}\n.uc-site__bar {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 10px;\n\tpadding: 10px 16px;\n\tbackground: #f1f5f9;\n\tborder-bottom: 1px solid rgba( 15, 23, 42, 0.06 );\n}\n.uc-site__dots { display: flex; gap: 5px; }\n.uc-site__dot { width: 9px; height: 9px; border-radius: 50%; }\n.uc-site__dot--r { background: #ff5f57; }\n.uc-site__dot--y { background: #febc2e; }\n.uc-site__dot--g { background: #28c840; }\n.uc-site__url {\n\tflex: 1;\n\ttext-align: center;\n\tfont-size: 10px;\n\tcolor: #94a3b8;\n\tbackground: #fff;\n\tborder-radius: 6px;\n\tpadding: 3px 8px;\n}\n.uc-site__nav {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 14px;\n\tpadding: 14px 20px;\n\tborder-bottom: 1px solid rgba( 15, 23, 42, 0.06 );\n}\n.uc-site__brand {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 7px;\n\tfont-size: 14px;\n\tfont-weight: 800;\n\tcolor: #0f172a;\n\ttext-decoration: none;\n}\n.uc-site__mark {\n\twidth: 17px;\n\theight: 17px;\n\tborder-radius: 5px;\n\tbackground: linear-gradient( 135deg, #6d3bff, #9b6bff );\n}\n.uc-site__links { display: flex; gap: 14px; margin-left: 8px; }\n.uc-site__link {\n\tfont-size: 12.5px;\n\tfont-weight: 600;\n\tcolor: #475569;\n\ttext-decoration: none;\n\ttransition: color 0.15s ease;\n}\n.uc-site__link:hover { color: #5c33ff; }\n.uc-site__spacer { flex: 1; }\n.uc-site__signup {\n\tborder: 0;\n\tcursor: pointer;\n\tfont-size: 12px;\n\tfont-weight: 700;\n\tcolor: #fff;\n\tbackground: #0f172a;\n\tborder-radius: 9px;\n\tpadding: 8px 14px;\n\ttransition: background 0.15s ease;\n}\n.uc-site__signup:hover { background: #5c33ff; }\n.uc-site__hero {\n\tflex: 1;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\tpadding: 24px 24px 18px;\n}\n.uc-site__title {\n\tmargin: 0 0 8px;\n\tfont-size: 26px;\n\tline-height: 1.15;\n\tfont-weight: 800;\n\tletter-spacing: -0.01em;\n\tcolor: #0f172a;\n}\n.uc-site__sub {\n\tmargin: 0 0 18px;\n\tfont-size: 13px;\n\tline-height: 1.45;\n\tcolor: #64748b;\n}\n.uc-site__cta { display: flex; align-items: center; gap: 12px; }\n.uc-btn-primary {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 8px;\n\tborder: 0;\n\tcursor: pointer;\n\tfont-size: 13px;\n\tfont-weight: 700;\n\tcolor: #fff;\n\ttext-decoration: none;\n\tbackground: linear-gradient( 135deg, #6d3bff, #9b6bff );\n\tborder-radius: 10px;\n\tpadding: 11px 18px;\n\tbox-shadow: 0 6px 16px rgba( 92, 51, 255, 0.35 );\n\ttransition: transform 0.18s ease, box-shadow 0.18s ease;\n}\n.uc-btn-primary:hover {\n\ttransform: translateY( -2px );\n\tbox-shadow: 0 10px 22px rgba( 92, 51, 255, 0.45 );\n}\n.uc-btn-primary__arrow { transition: transform 0.18s ease; }\n.uc-btn-primary:hover .uc-btn-primary__arrow { transform: translateX( 3px ); }\n.uc-btn-ghost {\n\tposition: relative;\n\tfont-size: 13px;\n\tfont-weight: 700;\n\tcolor: #5c33ff;\n\ttext-decoration: none;\n\tpadding: 7px 3px;\n\tcursor: pointer;\n}\n.uc-btn-ghost::after {\n\tcontent: '';\n\tposition: absolute;\n\tleft: 3px;\n\tright: 3px;\n\tbottom: 3px;\n\theight: 2px;\n\tborder-radius: 2px;\n\tbackground: currentColor;\n\ttransform: scaleX( 0 );\n\ttransform-origin: left;\n\ttransition: transform 0.2s ease;\n}\n.uc-btn-ghost:hover::after { transform: scaleX( 1 ); }\n.uc-site__features { display: flex; gap: 14px; padding: 4px 24px 18px; }\n.uc-feat {\n\tflex: 1;\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 7px;\n\tpadding: 16px;\n\tborder: 1px solid rgba( 15, 23, 42, 0.08 );\n\tborder-radius: 13px;\n\tbackground: #fbfbfe;\n\ttext-decoration: none;\n\ttransition: transform 0.18s ease, box-shadow 0.18s ease,\n\t\tborder-color 0.18s ease;\n}\n.uc-feat:hover {\n\ttransform: translateY( -3px );\n\tbox-shadow: 0 12px 24px rgba( 15, 23, 42, 0.12 );\n\tborder-color: rgba( 92, 51, 255, 0.4 );\n}\n.uc-feat__icon {\n\twidth: 32px;\n\theight: 32px;\n\tborder-radius: 9px;\n\tdisplay: grid;\n\tplace-items: center;\n\tfont-size: 16px;\n\tbackground: rgba( 92, 51, 255, 0.1 );\n}\n.uc-feat__title { font-size: 13px; font-weight: 700; color: #0f172a; }\n.uc-feat__desc { font-size: 11px; line-height: 1.35; color: #94a3b8; }\n.uc-site__news { display: flex; gap: 10px; padding: 0 24px 24px; }\n.uc-site__input {\n\tflex: 1;\n\tfont-size: 12.5px;\n\tcolor: #334155;\n\tborder: 1px solid rgba( 15, 23, 42, 0.14 );\n\tborder-radius: 9px;\n\tpadding: 11px 13px;\n\tbackground: #fff;\n\ttransition: border-color 0.15s ease;\n}\n.uc-site__input:hover { border-color: rgba( 92, 51, 255, 0.5 ); }\n.uc-site__join {\n\tborder: 0;\n\tcursor: pointer;\n\tfont-size: 12.5px;\n\tfont-weight: 700;\n\tcolor: #fff;\n\tbackground: #5c33ff;\n\tborder-radius: 9px;\n\tpadding: 11px 18px;\n}\n"}),(0,bt.jsxs)("div",{className:"uc-site",children:[(0,bt.jsxs)("div",{className:"uc-site__bar",children:[(0,bt.jsxs)("span",{className:"uc-site__dots",children:[(0,bt.jsx)("span",{className:"uc-site__dot uc-site__dot--r"}),(0,bt.jsx)("span",{className:"uc-site__dot uc-site__dot--y"}),(0,bt.jsx)("span",{className:"uc-site__dot uc-site__dot--g"})]}),(0,bt.jsx)("span",{className:"uc-site__url",children:"acme.com"})]}),(0,bt.jsxs)("div",{className:"uc-site__nav",children:[(0,bt.jsxs)("a",{href:"#preview",className:"uc-site__brand",onClick:e,children:[(0,bt.jsx)("span",{className:"uc-site__mark","aria-hidden":"true"}),"Acme"]}),(0,bt.jsxs)("span",{className:"uc-site__links",children:[(0,bt.jsx)("a",{href:"#preview",className:"uc-site__link",onClick:e,children:(0,W.__)("Features","ultimate-cursor")}),(0,bt.jsx)("a",{href:"#preview",className:"uc-site__link",onClick:e,children:(0,W.__)("Pricing","ultimate-cursor")})]}),(0,bt.jsx)("span",{className:"uc-site__spacer"}),(0,bt.jsx)("button",{type:"button",className:"uc-site__signup",onClick:e,children:(0,W.__)("Sign up","ultimate-cursor")})]}),(0,bt.jsxs)("div",{className:"uc-site__hero",children:[(0,bt.jsx)("h3",{className:"uc-site__title",children:(0,W.__)("Ship 10× faster","ultimate-cursor")}),(0,bt.jsx)("p",{className:"uc-site__sub",children:(0,W.__)("The all-in-one platform for modern product teams.","ultimate-cursor")}),(0,bt.jsxs)("div",{className:"uc-site__cta",children:[(0,bt.jsxs)("button",{type:"button",className:"uc-btn-primary",onClick:e,children:[(0,W.__)("Get started","ultimate-cursor"),(0,bt.jsx)("span",{className:"uc-btn-primary__arrow","aria-hidden":"true",children:"→"})]}),(0,bt.jsx)("a",{href:"#preview",className:"uc-btn-ghost",onClick:e,children:(0,W.__)("Live demo","ultimate-cursor")})]})]}),(0,bt.jsxs)("div",{className:"uc-site__features",children:[(0,bt.jsxs)("a",{href:"#preview",className:"uc-feat","data-uc-hover-label":(0,W.__)("Open","ultimate-cursor"),onClick:e,children:[(0,bt.jsx)("span",{className:"uc-feat__icon","aria-hidden":"true",children:(0,bt.jsx)(Rn,{style:{color:"#f59e0b"}})}),(0,bt.jsx)("span",{className:"uc-feat__title",children:(0,W.__)("Lightning fast","ultimate-cursor")}),(0,bt.jsx)("span",{className:"uc-feat__desc",children:(0,W.__)("Instant page loads","ultimate-cursor")})]}),(0,bt.jsxs)("a",{href:"#preview",className:"uc-feat","data-uc-hover-label":(0,W.__)("Open","ultimate-cursor"),onClick:e,children:[(0,bt.jsx)("span",{className:"uc-feat__icon","aria-hidden":"true",children:(0,bt.jsx)(Ln,{style:{color:"#d97706"}})}),(0,bt.jsx)("span",{className:"uc-feat__title",children:(0,W.__)("Secure","ultimate-cursor")}),(0,bt.jsx)("span",{className:"uc-feat__desc",children:(0,W.__)("Private by default","ultimate-cursor")})]})]}),(0,bt.jsxs)("div",{className:"uc-site__news",children:[(0,bt.jsx)("input",{type:"email",className:"uc-site__input",placeholder:(0,W.__)("you@email.com","ultimate-cursor"),readOnly:!0}),(0,bt.jsx)("button",{type:"button",className:"uc-site__join",onClick:e,children:(0,W.__)("Join","ultimate-cursor")})]})]})]})},wl={"cursor-text":(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(pr,{})," ",(0,W.__)("Text","ultimate-cursor")]}),"cursor-image":(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Wn,{})," ",(0,W.__)("Image","ultimate-cursor")]}),"cursor-icon":(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Gn,{})," ",(0,W.__)("Icon","ultimate-cursor")]}),"animated-cursor":(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Kn.A,{})," ",(0,W.__)("Animated","ultimate-cursor")]}),"cursor-shape":(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(ht.GQ,{})," ",(0,W.__)("Shape","ultimate-cursor")]})},Sl=[{scope:"css-selectors",field:"cssSelectors",label:(0,W.__)("Selectors:","ultimate-cursor")},{scope:"html-elements",field:"htmlElements",label:(0,W.__)("Elements:","ultimate-cursor")},{scope:"specific-pages",field:"pagesList",label:(0,W.__)("Pages:","ultimate-cursor")}],kl={"entire-website":{color:"blue",label:(0,W.__)("Site-wide default","ultimate-cursor"),note:(0,W.__)("Shows everywhere, unless a page or hover override below takes priority.","ultimate-cursor")},"specific-pages":{color:"purple",label:(0,W.__)("Page override","ultimate-cursor"),note:(0,W.__)("Replaces the site-wide cursor on its pages.","ultimate-cursor")},"css-selectors":{color:"purple",label:(0,W.__)("Hover override","ultimate-cursor"),note:(0,W.__)("Replaces the active cursor while hovering its targets.","ultimate-cursor")},"html-elements":{color:"purple",label:(0,W.__)("Hover override","ultimate-cursor"),note:(0,W.__)("Replaces the active cursor while hovering its targets.","ultimate-cursor")}},El=e=>e?.enableMultipleCursors&&e?.cursorConfigurations?.length?e.cursorConfigurations:e?.cursorType?[{...(0,St.uj)(e),name:e.cursorName||(0,W.__)("My Cursor","ultimate-cursor")}]:[],_l=({pendingSettings:e,setPendingSettings:t,onUpgradeClick:r,setHasUnsavedConfig:n,autoEditFirst:o,onAutoEditDone:a,onFocusFallback:i})=>{const[s,l]=(0,V.useState)(null),[c,u]=(0,V.useState)(null),{modal:d}=F.A.useApp(),p=(0,V.useRef)(null),m=(0,V.useRef)(null),h=(0,V.useRef)({}),f=(0,V.useRef)(!1),g=(0,V.useRef)(null),b=vr(),v=(0,V.useMemo)(()=>El(e),[e]),x=b&&v.length>=1;(0,V.useEffect)(()=>{n&&n(null!==c)},[c,n]),(0,V.useEffect)(()=>{const e=null!==c;e&&!f.current&&p.current?.focus(),f.current=e}),(0,V.useEffect)(()=>{o&&1===v.length&&!c&&(l(0),u({...v[0]}),a&&a())},[o,v,c,a]);const y=r=>{t(((e,t)=>{if(!t.length)return{...e,cursorType:null,enableMultipleCursors:!1,cursorConfigurations:[],effect:"none"};if(1===t.length){const{id:r,name:n,enableMultipleCursors:o,cursorConfigurations:a,...i}=t[0];return{...e,...i,cursorName:n,enableMultipleCursors:!1,cursorConfigurations:[]}}return{...e,enableMultipleCursors:!0,cursorConfigurations:t}})(e,r))},$=()=>{const e=s;u(null),l(null),g.current=null,requestAnimationFrame(()=>{null!==e&&h.current[e]?h.current[e].focus():m.current?.focus()})},C=e=>{g.current={...v[e]},l(e),u({...v[e]})},w=()=>{if(!c)return;const e=[...v];null!==s?e[s]=c:e.push(c),y(e),$()},S=()=>{$()},k=!!c&&!!g.current&&!(0,X.isEqual)(c,g.current),E=(e,t)=>{u(r=>({...r,[e]:t}))},_=e=>{u(t=>({...t,cursorType:e,...(0,St.cs)(e)}))},A=e=>{if(!c||e===c.cursorType)return void _(e);const t=(0,St.cs)(c.cursorType),r=(0,X.pick)(c,Object.keys(t));(0,X.isEqual)(r,t)?_(e):d.confirm({title:(0,W.__)("Switch cursor type?","ultimate-cursor"),content:(0,W.__)("Your current style settings for this cursor will be reset.","ultimate-cursor"),okText:(0,W.__)("Switch","ultimate-cursor"),cancelText:(0,W.__)("Cancel","ultimate-cursor"),onOk:()=>_(e)})};if(c){const e=!0===c.hoverEnabled&&!b,t=b?{...c,hoverEnabled:!1,..."circular"===c.textStyle&&{textStyle:"normal"}}:c;return(0,bt.jsxs)("div",{className:"cursor-configuration-editor",children:[(0,bt.jsxs)("div",{className:"uc-editor-header",children:[k?(0,bt.jsx)(ut,{title:(0,W.__)("Discard changes?","ultimate-cursor"),description:(0,W.__)("Your unsaved edits to this cursor will be lost.","ultimate-cursor"),okText:(0,W.__)("Discard","ultimate-cursor"),cancelText:(0,W.__)("Keep editing","ultimate-cursor"),okButtonProps:{danger:!0},onConfirm:S,children:(0,bt.jsx)(G.A,{type:"text",shape:"circle",className:"uc-editor-header__back",icon:(0,bt.jsx)(Zn,{}),"aria-label":(0,W.__)("Back to cursor list (discards changes)","ultimate-cursor")})}):(0,bt.jsx)(G.A,{type:"text",shape:"circle",className:"uc-editor-header__back",icon:(0,bt.jsx)(Zn,{}),"aria-label":(0,W.__)("Back to cursor list","ultimate-cursor"),onClick:S}),(0,bt.jsxs)("div",{className:"uc-editor-header__titles",children:[(0,bt.jsx)("h2",{ref:p,tabIndex:-1,className:"uc-editor-header__title",children:null!==s?(0,W.__)("Edit Cursor","ultimate-cursor"):(0,W.__)("New Cursor","ultimate-cursor")}),(0,bt.jsx)("span",{className:"uc-editor-header__subtitle",children:(0,W.__)("Style your cursor and choose where it appears.","ultimate-cursor")})]}),(0,bt.jsx)(sn,{className:"uc-editor-header__name",prefix:(0,bt.jsx)(Jn.A,{className:"uc-editor-header__name-icon"}),value:c.name||"",placeholder:(0,W.__)("e.g. Button hover cursor","ultimate-cursor"),"aria-label":(0,W.__)("Name","ultimate-cursor"),onChange:e=>E("name",e.target.value)}),(0,bt.jsxs)(_r.A,{className:"uc-editor-header__actions",children:[k?(0,bt.jsx)(ut,{title:(0,W.__)("Discard changes?","ultimate-cursor"),description:(0,W.__)("Your unsaved edits to this cursor will be lost.","ultimate-cursor"),okText:(0,W.__)("Discard","ultimate-cursor"),cancelText:(0,W.__)("Keep editing","ultimate-cursor"),okButtonProps:{danger:!0},onConfirm:S,children:(0,bt.jsx)(G.A,{children:(0,W.__)("Cancel","ultimate-cursor")})}):(0,bt.jsx)(G.A,{onClick:S,children:(0,W.__)("Cancel","ultimate-cursor")}),(0,bt.jsx)(G.A,{type:"primary",icon:(0,bt.jsx)(K.A,{}),onClick:w,className:"uc-editor-header__apply-btn"+(k?" uc-editor-header__apply--pulse":""),children:(0,W.__)("Apply","ultimate-cursor")})]})]}),(0,bt.jsxs)("div",{className:"cursor-config-layout",children:[(0,bt.jsx)("div",{className:"cursor-config-settings",children:(0,bt.jsx)(sl,{tempConfig:c,updateTempConfigField:E,updateTempCursorType:A})}),(0,bt.jsxs)("div",{className:"cursor-preview-section",children:[(0,bt.jsx)("h4",{style:{fontSize:14,fontWeight:600,marginBottom:12},children:(0,W.__)("Preview","ultimate-cursor")}),(0,bt.jsxs)("div",{className:"configuration-preview-area uc-preview-area","data-ultimate-cursor":"preview-config-temp",children:[(0,bt.jsx)("div",{className:"preview-content",children:e&&"animated-cursor"!==c.cursorType?(0,bt.jsx)(Cl,{}):(0,bt.jsx)("p",{children:"animated-cursor"===c.cursorType&&["ClickSpark","ClickParticles"].includes(c.effect)?(0,W.__)("Click here to preview","ultimate-cursor"):(0,W.__)("Move your cursor here to preview","ultimate-cursor")})}),(0,bt.jsx)(xl,{config:t,index:"temp"})]})]})]})]})}const N=(e=>{const t=new Map;e.forEach((e,r)=>{const n=(e=>{const t=e.cursorScope||"entire-website";if("entire-website"===t)return t;const r=Sl.find(e=>e.scope===t),n=(r?String(e[r.field]||""):"").split(",").map(e=>e.trim().toLowerCase()).filter(Boolean).sort().join(",");return`${t}|${n}`})(e),o=e.name||`${(0,W.__)("Cursor","ultimate-cursor")} ${r+1}`;t.set(n,[...t.get(n)||[],{name:o,index:r}])});const r=[];return t.forEach((e,t)=>{if(e.length<2)return;const n=e.map(e=>e.name).join(", "),o="entire-website"===t?(0,W.sprintf)(/* translators: %s: comma-separated cursor names. */ /* translators: %s: comma-separated cursor names. */
12 (0,W.__)("%s are all set to the entire website — only one site-wide cursor can be active at a time.","ultimate-cursor"),n):(0,W.sprintf)(/* translators: %s: comma-separated cursor names. */ /* translators: %s: comma-separated cursor names. */
13 (0,W.__)("%s target the same pages or elements — only one of them will show there.","ultimate-cursor"),n);r.push({key:t,text:o,entries:e})}),r})(v),j=v.some(e=>"entire-website"===(e.cursorScope||"entire-website"));return(0,bt.jsxs)("div",{className:"cursor-config-list",children:[(0,bt.jsxs)($t.A,{justify:"space-between",align:"middle",className:"uc-list-header",children:[(0,bt.jsxs)(Ct.A,{children:[(0,bt.jsx)(yl,{level:2,ref:m,tabIndex:-1,style:{margin:0,fontSize:20},children:(0,W.__)("Your Cursors","ultimate-cursor")}),(0,bt.jsx)($l,{type:"secondary",style:{fontSize:13},children:b?(0,W.__)("Free plan includes one cursor. Upgrade to Pro to target different cursors at specific pages and elements.","ultimate-cursor"):(0,W.__)("Each cursor has its own style and targeting rules.","ultimate-cursor")})]}),(0,bt.jsx)(Ct.A,{children:(0,bt.jsx)(G.A,{type:"primary",icon:x?(0,bt.jsx)(no,{}):(0,bt.jsx)(oo.A,{}),onClick:()=>{if(x)return void r();const e={id:`config-${Date.now()}`,name:`${(0,W.__)("Cursor","ultimate-cursor")} ${v.length+1}`,cursorType:"cursor-text",cursorScope:"entire-website",...(0,St.cs)("cursor-text")};g.current=e,l(null),u(e)},children:x?(0,W.__)("Add Cursor (Pro)","ultimate-cursor"):(0,W.__)("Add Cursor","ultimate-cursor")})})]}),N.length>0&&(0,bt.jsx)(Mn,{type:"warning",showIcon:!0,style:{marginBottom:16},message:(0,W.__)("Some cursors compete for the same area","ultimate-cursor"),description:(0,bt.jsx)("ul",{style:{margin:0,paddingInlineStart:18},children:N.map(e=>(0,bt.jsxs)("li",{children:[(0,bt.jsx)("div",{children:e.text}),(0,bt.jsx)(_r.A,{size:4,wrap:!0,children:e.entries.map(e=>(0,bt.jsx)(G.A,{type:"link",size:"small",style:{padding:0,height:"auto"},onClick:()=>C(e.index),children:(0,W.sprintf)(/* translators: %s: cursor name. */ /* translators: %s: cursor name. */
14 (0,W.__)("Edit %s","ultimate-cursor"),e.name)},e.index))})]},e.key))})}),(0,bt.jsxs)($t.A,{gutter:[16,16],children:[v.map((e,t)=>{const n=e.cursorScope||"entire-website",o=Sl.find(t=>t.scope===e.cursorScope&&e[t.field]),a=kl[n]||kl["entire-website"],s="entire-website"!==n&&j?a.note:null;return(0,bt.jsx)(Ct.A,{xs:24,lg:12,children:(0,bt.jsx)(wt.A,{className:"uc-config-card",styles:{body:{padding:20}},children:(0,bt.jsxs)($t.A,{justify:"space-between",align:"top",children:[(0,bt.jsxs)(Ct.A,{children:[(0,bt.jsxs)(_r.A,{direction:"vertical",size:2,children:[(0,bt.jsx)(yl,{level:5,style:{margin:0},children:e.name||`${(0,W.__)("Cursor","ultimate-cursor")} ${t+1}`}),(0,bt.jsxs)(_r.A,{size:4,wrap:!0,children:[(0,bt.jsx)(nr,{color:"cyan",children:wl[e.cursorType]||e.cursorType}),(0,bt.jsx)(xe.A,{title:a.note,children:(0,bt.jsx)(nr,{color:a.color,children:a.label})})]})]}),(0,bt.jsxs)("div",{className:"uc-card-meta",children:[o?(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)($l,{type:"secondary",strong:!0,children:o.label})," ",(0,bt.jsx)(xe.A,{title:String(e[o.field]),children:(0,bt.jsx)("code",{className:"uc-card-meta__value","aria-label":String(e[o.field]),children:String(e[o.field])})})]}):(0,bt.jsx)($l,{type:"secondary",children:(0,W.__)("Shows everywhere no other cursor applies.","ultimate-cursor")}),s&&(0,bt.jsx)("div",{children:(0,bt.jsx)($l,{type:"secondary",style:{fontSize:12},children:s})})]})]}),(0,bt.jsx)(Ct.A,{children:(0,bt.jsxs)(_r.A,{children:[(0,bt.jsx)(G.A,{ref:e=>{h.current[t]=e?.nativeElement||e},icon:(0,bt.jsx)(Jn.A,{}),"aria-label":(0,W.__)("Edit cursor","ultimate-cursor"),onClick:()=>C(t)}),(0,bt.jsx)(G.A,{icon:(0,bt.jsx)(ao.A,{}),"aria-label":(0,W.__)("Duplicate cursor","ultimate-cursor"),onClick:()=>(e=>{if(x)return void r();const t={...v[e],id:`config-${Date.now()}`,name:`${v[e].name||(0,W.__)("Cursor","ultimate-cursor")} ${(0,W.__)("(copy)","ultimate-cursor")}`};y([...v,t])})(t)}),(0,bt.jsx)(ut,{title:(0,W.__)("Delete this cursor?","ultimate-cursor"),okText:(0,W.__)("Delete","ultimate-cursor"),cancelText:(0,W.__)("Cancel","ultimate-cursor"),okButtonProps:{danger:!0},onConfirm:()=>(e=>{const t=v.filter((t,r)=>r!==e);y(t),requestAnimationFrame(()=>{0===t.length?i?.():m.current?.focus()})})(t),children:(0,bt.jsx)(G.A,{danger:!0,icon:(0,bt.jsx)(co,{}),"aria-label":(0,W.__)("Delete cursor","ultimate-cursor")})})]})})]})})},e.id||t)}),x&&(0,bt.jsx)(Ct.A,{xs:24,lg:12,children:(0,bt.jsx)(wt.A,{hoverable:!0,role:"button",tabIndex:0,"aria-label":(0,W.__)("Add another cursor (Pro feature)","ultimate-cursor"),onClick:r,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r())},className:"uc-locked-card",styles:{body:{padding:20}},children:(0,bt.jsxs)(_r.A,{direction:"vertical",size:4,children:[(0,bt.jsx)(no,{style:{fontSize:20,color:"#94a3b8"},"aria-hidden":"true"}),(0,bt.jsxs)($l,{strong:!0,children:[(0,W.__)("Add another cursor","ultimate-cursor"),(0,bt.jsx)("span",{className:"pro-badge",style:{marginInlineStart:8},children:(0,W.__)("PRO","ultimate-cursor")})]}),(0,bt.jsx)($l,{type:"secondary",style:{fontSize:13},children:(0,W.__)("Different cursors for buttons, images, or specific pages.","ultimate-cursor")})]})})})]})]})};var Al=r(2068);function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nl.apply(this,arguments)}const jl=(e,t)=>p.createElement(ar.A,Nl({},e,{ref:t,icon:Al.A})),Ml=p.forwardRef(jl);function Pl({settings:e}){const t=(e=>{if(!e?.cursorType)return[];const t=e.enableMultipleCursors&&e.cursorConfigurations?.length?e.cursorConfigurations:[e],r=[];return t.some(e=>!1!==e.hideCursorOnTouch)&&r.push((0,W.__)("Touch devices: custom cursors are hidden on touch screens (Advanced → Hide on Touch Devices, on by default). Check on a desktop browser.","ultimate-cursor")),t.some(e=>e.hideCursorOnMobile)&&r.push((0,W.__)("Mobile: “Hide on Mobile” is enabled for at least one cursor (Advanced tab).","ultimate-cursor")),t.some(e=>e.hideCursorOnTablet)&&r.push((0,W.__)("Tablet: “Hide on Tablet” is enabled for at least one cursor (Advanced tab).","ultimate-cursor")),t.some(e=>"entire-website"!==(e.cursorScope||"entire-website"))&&r.push((0,W.__)("Targeting: at least one cursor is limited to specific pages or elements (Advanced → Apply Cursor On). It only shows there.","ultimate-cursor")),r.push((0,W.__)("Reduced motion: animated effects are skipped for visitors whose system requests reduced motion — static cursors still show.","ultimate-cursor")),r.push((0,W.__)("Caching: if you use a caching plugin, clear its cache after saving changes.","ultimate-cursor")),r})(e);return t.length?(0,bt.jsx)(fo.A,{className:"ultimate-cursor-troubleshoot",style:{marginTop:24},items:[{key:"troubleshoot",label:(0,W.__)("Why isn’t my cursor showing?","ultimate-cursor"),extra:(0,bt.jsx)(G.A,{size:"small",icon:(0,bt.jsx)(Ml,{}),href:(window.ultimateCursorAdminData?.ajaxUrl||"/wp-admin/admin-ajax.php").replace(/wp-admin\/admin-ajax\.php$/,""),target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),children:(0,W.__)("View your site","ultimate-cursor")}),children:(0,bt.jsx)("ul",{style:{margin:0,paddingInlineStart:18},children:t.map(e=>(0,bt.jsx)("li",{style:{marginBottom:6},children:e},e))})}]}):null}var zl=r(7072);function Il({rows:e=4}){return(0,bt.jsx)("div",{className:"uc-page-skeleton",role:"status","aria-busy":"true","aria-label":(0,W.__)("Loading…","ultimate-cursor"),style:{padding:24},children:(0,bt.jsx)(zl.A,{active:!0,title:{width:"30%"},paragraph:{rows:e}})})}const Rl=[{label:(0,W.__)("Capsule","ultimate-cursor"),value:"capsule"},{label:(0,W.__)("Sphere","ultimate-cursor"),value:"sphere"},{label:(0,W.__)("Box","ultimate-cursor"),value:"box"},{label:(0,W.__)("Tetrahedron","ultimate-cursor"),value:"tetrahedron"}],Tl={id:"antigravity",label:(0,W.__)("Antigravity Particles","ultimate-cursor"),description:(0,W.__)("Interactive floating particles that respond to mouse movement","ultimate-cursor"),category:"Particles",isNew:!1,isPro:!1,defaultConfig:{particleColor:"#FF9FFC",particleCount:300,particleSize:2,particleShape:"capsule",magnetRadius:10,ringRadius:10,waveSpeed:.4,waveAmplitude:1,lerpSpeed:.1,autoAnimate:!1,particleVariance:1,rotationSpeed:0,depthFactor:1,pulseSpeed:3,fieldStrength:10},Controls:({values:e,onChange:t})=>{const r=(0,yt.applyFilters)("ultimate-cursor.is-pro-feature",!0);return(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsxs)(wt.A,{title:(0,W.__)("Colors","ultimate-cursor"),size:"small",className:"settings-card",children:[(0,bt.jsx)(Cs,{label:(0,W.__)("Background Color","ultimate-cursor"),value:e.backgroundColor,onChange:e=>t("backgroundColor",e)}),(0,bt.jsx)(Cs,{label:(0,W.__)("Particle Color","ultimate-cursor"),value:e.particleColor,onChange:e=>t("particleColor",e)})]}),(0,bt.jsxs)(wt.A,{title:(0,W.__)("Particle Settings","ultimate-cursor"),size:"small",className:"settings-card",children:[(0,bt.jsx)(ys,{label:(0,W.__)("Shape","ultimate-cursor"),value:e.particleShape,onChange:e=>t("particleShape",e),options:Rl}),(0,bt.jsx)(xs,{label:(0,W.__)("Count","ultimate-cursor"),value:e.particleCount,onChange:e=>t("particleCount",e),min:50,max:1e3,step:10}),(0,bt.jsx)(xs,{label:(0,W.__)("Size","ultimate-cursor"),value:e.particleSize,onChange:e=>t("particleSize",e),min:.5,max:10,step:.1}),(0,bt.jsx)(xs,{label:(0,W.__)("Variance","ultimate-cursor"),value:e.particleVariance,onChange:e=>t("particleVariance",e),min:0,max:5,step:.1})]}),(0,bt.jsxs)(wt.A,{title:(0,bt.jsxs)("span",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[(0,bt.jsx)("span",{children:(0,W.__)("Interaction & Motion","ultimate-cursor")}),r&&(0,bt.jsxs)(G.A,{type:"primary",size:"small",style:{background:"linear-gradient(to right, rgb(74, 108, 247), rgb(0, 212, 255))",border:"none",fontWeight:600,fontSize:12,color:"#fff"},href:window.ultimateCursorAdminData?.proUrl||"#",target:"_blank",children:[(0,W.__)("Upgrade to Pro","ultimate-cursor")," ",(0,bt.jsx)("span",{style:{marginInlineStart:4},children:"→"})]})]}),size:"small",className:"settings-card",children:[(0,bt.jsx)(xs,{label:(0,W.__)("Magnet Radius","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.magnetRadius,onChange:e=>t("magnetRadius",e),min:1,max:50,step:1,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Ring Radius","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.ringRadius,onChange:e=>t("ringRadius",e),min:1,max:50,step:1,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Field Strength","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.fieldStrength,onChange:e=>t("fieldStrength",e),min:1,max:50,step:1,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Wave Speed","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.waveSpeed,onChange:e=>t("waveSpeed",e),min:0,max:5,step:.1,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Wave Amplitude","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.waveAmplitude,onChange:e=>t("waveAmplitude",e),min:0,max:10,step:.1,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Lerp Speed","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.lerpSpeed,onChange:e=>t("lerpSpeed",e),min:.01,max:1,step:.01,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Pulse Speed","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.pulseSpeed,onChange:e=>t("pulseSpeed",e),min:0,max:10,step:.1,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Depth Factor","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.depthFactor,onChange:e=>t("depthFactor",e),min:0,max:5,step:.1,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Rotation Speed","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.rotationSpeed,onChange:e=>t("rotationSpeed",e),min:0,max:5,step:.1,disabled:r}),(0,bt.jsx)($s,{label:(0,W.__)("Auto Animate (when idle)","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,checked:e.autoAnimate||!1,onChange:e=>t("autoAnimate",e),disabled:r})]})]})},getPreviewProps:function(e){return{count:Math.min(e.particleCount||300,500),magnetRadius:e.magnetRadius,ringRadius:e.ringRadius,waveSpeed:e.waveSpeed,waveAmplitude:e.waveAmplitude,particleSize:e.particleSize,lerpSpeed:e.lerpSpeed,color:e.particleColor,autoAnimate:e.autoAnimate,particleVariance:e.particleVariance,rotationSpeed:e.rotationSpeed,depthFactor:e.depthFactor,pulseSpeed:e.pulseSpeed,particleShape:e.particleShape,fieldStrength:e.fieldStrength}},previewChunk:"antigravity-preview",previewImport:()=>Promise.all([r.e(437),r.e(560),r.e(180)]).then(r.bind(r,7494))},Ol=[{label:(0,W.__)("Low","ultimate-cursor"),value:"low"},{label:(0,W.__)("Medium","ultimate-cursor"),value:"medium"},{label:(0,W.__)("High","ultimate-cursor"),value:"high"}],Bl=[{label:"screen",value:"screen"},{label:"normal",value:"normal"},{label:"lighten",value:"lighten"},{label:"plus-lighter",value:"plus-lighter"}],Ll=[Tl,{id:"light-pillar",label:(0,W.__)("Light Pillar","ultimate-cursor"),description:(0,W.__)("Ethereal rotating light pillar for hero and atmospheric sections","ultimate-cursor"),category:"Effects",isNew:!0,isPro:!1,defaultConfig:{topColor:"#5227FF",bottomColor:"#FF9FFC",intensity:1,rotationSpeed:.3,interactive:!1,glowAmount:.005,pillarWidth:3,pillarHeight:.4,noiseIntensity:.5,mixBlendMode:"screen",pillarRotation:25,quality:"high"},Controls:({values:e,onChange:t})=>{const r=(0,yt.applyFilters)("ultimate-cursor.is-pro-feature",!0);return(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsxs)(wt.A,{title:(0,W.__)("Colors","ultimate-cursor"),size:"small",className:"settings-card",children:[(0,bt.jsx)(Cs,{label:(0,W.__)("Top Color","ultimate-cursor"),value:e.topColor,onChange:e=>t("topColor",e)}),(0,bt.jsx)(Cs,{label:(0,W.__)("Bottom Color","ultimate-cursor"),value:e.bottomColor,onChange:e=>t("bottomColor",e)})]}),(0,bt.jsxs)(wt.A,{title:(0,W.__)("Pillar Shape","ultimate-cursor"),size:"small",className:"settings-card",children:[(0,bt.jsx)(xs,{label:(0,W.__)("Pillar Width","ultimate-cursor"),value:e.pillarWidth,onChange:e=>t("pillarWidth",e),min:1,max:10,step:.1}),(0,bt.jsx)(xs,{label:(0,W.__)("Pillar Height","ultimate-cursor"),value:e.pillarHeight,onChange:e=>t("pillarHeight",e),min:.1,max:1.2,step:.01}),(0,bt.jsx)(xs,{label:(0,W.__)("Pillar Rotation","ultimate-cursor"),value:e.pillarRotation,onChange:e=>t("pillarRotation",e),min:0,max:360,step:1})]}),(0,bt.jsxs)(wt.A,{title:(0,bt.jsxs)("span",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[(0,bt.jsx)("span",{children:(0,W.__)("Motion & Atmosphere","ultimate-cursor")}),r&&(0,bt.jsxs)(G.A,{type:"primary",size:"small",style:{background:"linear-gradient(to right, rgb(74, 108, 247), rgb(0, 212, 255))",border:"none",fontWeight:600,fontSize:12,color:"#fff"},href:window.ultimateCursorAdminData?.proUrl||"#",target:"_blank",children:[(0,W.__)("Upgrade to Pro","ultimate-cursor")," ",(0,bt.jsx)("span",{style:{marginInlineStart:4},children:"→"})]})]}),size:"small",className:"settings-card",children:[(0,bt.jsx)(xs,{label:(0,W.__)("Intensity","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.intensity,onChange:e=>t("intensity",e),min:.1,max:2.5,step:.05,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Rotation Speed","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.rotationSpeed,onChange:e=>t("rotationSpeed",e),min:0,max:2,step:.01,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Glow Amount","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.glowAmount,onChange:e=>t("glowAmount",e),min:.001,max:.02,step:.001,disabled:r}),(0,bt.jsx)(xs,{label:(0,W.__)("Noise Intensity","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.noiseIntensity,onChange:e=>t("noiseIntensity",e),min:0,max:1,step:.01,disabled:r}),(0,bt.jsx)($s,{label:(0,W.__)("Interactive","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,checked:e.interactive||!1,onChange:e=>t("interactive",e),disabled:r})]}),(0,bt.jsxs)(wt.A,{title:(0,bt.jsxs)("span",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[(0,bt.jsx)("span",{children:(0,W.__)("Rendering","ultimate-cursor")}),r&&(0,bt.jsxs)(G.A,{type:"primary",size:"small",style:{background:"linear-gradient(to right, rgb(74, 108, 247), rgb(0, 212, 255))",border:"none",fontWeight:600,fontSize:12,color:"#fff"},href:window.ultimateCursorAdminData?.proUrl||"#",target:"_blank",children:[(0,W.__)("Upgrade to Pro","ultimate-cursor")," ",(0,bt.jsx)("span",{style:{marginInlineStart:4},children:"→"})]})]}),size:"small",className:"settings-card",children:[(0,bt.jsx)(ys,{label:(0,W.__)("Mix Blend Mode","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.mixBlendMode,onChange:e=>t("mixBlendMode",e),options:Bl,disabled:r}),(0,bt.jsx)(ys,{label:(0,W.__)("Quality","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.quality,onChange:e=>t("quality",e),options:Ol,disabled:r})]})]})},getPreviewProps:function(e){return{topColor:e.topColor,bottomColor:e.bottomColor,intensity:e.intensity,rotationSpeed:e.rotationSpeed,interactive:e.interactive,glowAmount:e.glowAmount,pillarWidth:e.pillarWidth,pillarHeight:e.pillarHeight,noiseIntensity:e.noiseIntensity,mixBlendMode:e.mixBlendMode,pillarRotation:e.pillarRotation,quality:e.quality}},previewChunk:"light-pillar-preview",previewImport:()=>Promise.all([r.e(472),r.e(437),r.e(617)]).then(r.bind(r,9331))}],Hl={scope:"entire-website",specificPages:"",cssSelector:"",backgroundColor:"#0a0a0a",zIndex:-1,opacity:1,position:"fixed"};function Dl(e){const t=Fl(e);return t?{animationType:t.id,...Hl,...t.defaultConfig}:{animationType:e,...Hl}}function Fl(e){return Ll.find(t=>t.id===e)||null}const Wl=Dl("antigravity"),Vl=({values:e,onChange:t})=>{const r=(0,yt.applyFilters)("ultimate-cursor.is-pro-feature",!0),n=(()=>{const e=(0,yt.applyFilters)("ultimate-cursor.is-pro-feature",!0);return[{label:(0,W.__)("Entire Website","ultimate-cursor"),value:"entire-website"},{label:e?(0,W.__)("Specific Pages (Pro)","ultimate-cursor"):(0,W.__)("Specific Pages","ultimate-cursor"),value:"specific-pages",disabled:e},{label:e?(0,W.__)("CSS Selector (Pro)","ultimate-cursor"):(0,W.__)("CSS Selector","ultimate-cursor"),value:"css-selector",disabled:e}]})();return(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsxs)(wt.A,{title:(0,W.__)("Where to Display","ultimate-cursor"),size:"small",className:"settings-card",style:{maxWidth:600},children:[(0,bt.jsx)(ys,{label:(0,W.__)("Display Scope","ultimate-cursor"),value:e.scope,onChange:e=>t("scope",e),options:n}),"specific-pages"===e.scope&&(0,bt.jsx)(vs,{label:(0,W.__)("Select Pages","ultimate-cursor"),help:(0,W.__)("Search and select pages where the background animation should appear.","ultimate-cursor"),disabled:r,children:(0,bt.jsx)(Ns,{value:e.specificPages,onChange:e=>t("specificPages",e),disabled:r})}),"css-selector"===e.scope&&(0,bt.jsx)(vs,{label:(0,W.__)("CSS Selector","ultimate-cursor"),help:(0,W.__)("Enter CSS selectors where the background animation should appear. The animation will be contained within these elements.","ultimate-cursor"),disabled:r,children:(0,bt.jsx)(sn,{value:e.cssSelector,onChange:e=>t("cssSelector",e.target.value),placeholder:".hero-section, #main-banner, .page-header",disabled:r})})]}),(0,bt.jsxs)(wt.A,{title:(0,bt.jsxs)("span",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[(0,bt.jsx)("span",{children:(0,W.__)("Display Settings","ultimate-cursor")}),r&&(0,bt.jsxs)(G.A,{type:"primary",size:"small",href:window.ultimateCursorAdminData?.proUrl||"#",target:"_blank",children:[(0,W.__)("Upgrade to Pro","ultimate-cursor")," ",(0,bt.jsx)("span",{"aria-hidden":"true",style:{marginInlineStart:4},children:"→"})]})]}),size:"small",className:"settings-card",style:{maxWidth:600,marginTop:16},children:[(0,bt.jsx)(ys,{label:(0,W.__)("Position","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.position,onChange:e=>t("position",e),options:[{label:(0,W.__)("Fixed (stays in viewport)","ultimate-cursor"),value:"fixed"},{label:(0,W.__)("Absolute (scrolls with content)","ultimate-cursor"),value:"absolute"}],disabled:r}),(0,bt.jsx)(vs,{label:(0,W.__)("Z-Index","ultimate-cursor"),help:(0,W.__)("Use negative values to place the animation behind content, or positive values to overlay.","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,disabled:r,children:(0,bt.jsx)(oi,{min:-9999,max:9999,value:e.zIndex,onChange:e=>t("zIndex",e),style:{width:"100%"},disabled:r})}),(0,bt.jsx)(xs,{label:(0,W.__)("Opacity","ultimate-cursor"),badge:r?(0,bt.jsx)(gs,{}):null,value:e.opacity,onChange:e=>t("opacity",e),min:0,max:1,step:.05,disabled:r})]})]})},ql=[["#6366F1","#8B5CF6"],["#FF9FFC","#5227FF"],["#00C9A7","#005BEA"],["#F5576C","#F093FB"],["#FA709A","#FEE140"],["#30CFD0","#330867"],["#667EEA","#764BA2"],["#2AF598","#009EFD"]],Xl=e=>{let t=0;for(let r=0;r<e.length;r++)t=(31*t+e.charCodeAt(r))%997;const[r,n]=ql[t%ql.length];return`linear-gradient(135deg, ${r} 0%, ${n} 100%)`},Gl=({type:e,selected:t,onSelect:r})=>{const n=(e=>{const t="undefined"!=typeof window&&window.ultimateCursorAdminData&&window.ultimateCursorAdminData.plugin_url||"";return t?`${t}assets/images/effects/${e}.webp`:""})(e.id);return(0,bt.jsxs)("button",{type:"button",className:"uc-effect-card"+(t?" uc-effect-card--selected":""),onClick:()=>r(e.id),"aria-pressed":t,children:[(0,bt.jsxs)("span",{className:"uc-effect-card__thumb",style:{background:Xl(e.id)},children:[n&&(0,bt.jsx)("img",{className:"uc-effect-card__thumb-img",src:n,alt:"",draggable:!1,onError:e=>{e.currentTarget.style.display="none"}}),t&&(0,bt.jsx)("span",{className:"uc-effect-card__check",children:"✓"})]}),(0,bt.jsx)("span",{className:"uc-effect-card__meta",children:(0,bt.jsxs)("span",{className:"uc-effect-card__label",children:[e.label,e.isNew&&(0,bt.jsx)("span",{className:"uc-effect-card__new",children:(0,W.__)("New","ultimate-cursor")})]})})]})},Kl=({value:e,onChange:t})=>(0,bt.jsx)("div",{className:"uc-effect-picker",children:(0,bt.jsx)("div",{className:"uc-effect-picker__grid",children:Ll.map(r=>(0,bt.jsx)(Gl,{type:r,selected:e===r.id,onSelect:t},r.id))})}),{Title:Ul,Text:Yl}=kr.A,Ql=["enabled","enableMultipleBackgrounds","backgroundConfigurations","respectReducedMotion"];class Zl extends V.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?(0,bt.jsx)("div",{className:"preview-loading",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#94a3b8"},children:(0,bt.jsx)("p",{children:(0,W.__)("Preview unavailable.","ultimate-cursor")})}):this.props.children}}const Jl=({typeId:e,previewProps:t})=>{const[r,n]=(0,V.useState)(null);return(0,V.useEffect)(()=>{n(null);const t=Fl(e);if(!t||!t.previewImport)return;!function(){void 0===window.IS_REACT_ACT_ENVIRONMENT&&(window.IS_REACT_ACT_ENVIRONMENT=!1);try{const e=window.React;if(e&&e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED){const t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t.ReactCurrentActQueue||(t.ReactCurrentActQueue={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1})}}catch(e){}}();let r=!0;return t.previewImport().then(e=>{r&&n(()=>e.default)}).catch(()=>{}),()=>{r=!1}},[e]),r?(0,bt.jsx)(Zl,{children:(0,bt.jsx)(r,{...t})}):(0,bt.jsx)("div",{className:"preview-loading",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"#94a3b8"},children:(0,bt.jsx)("p",{children:(0,W.__)("Loading preview…","ultimate-cursor")})})},ec=[{scope:"css-selector",field:"cssSelector",label:(0,W.__)("Selector:","ultimate-cursor")},{scope:"specific-pages",field:"specificPages",label:(0,W.__)("Pages:","ultimate-cursor")}],tc={"entire-website":{color:"blue",label:(0,W.__)("Site-wide","ultimate-cursor")},"specific-pages":{color:"geekblue",label:(0,W.__)("Specific pages","ultimate-cursor")},"css-selector":{color:"geekblue",label:(0,W.__)("Inside a selector","ultimate-cursor")}},rc=({pendingSettings:e,setPendingSettings:t,onUpgradeClick:r,setHasUnsavedConfig:n})=>{const[o,a]=(0,V.useState)(null),[i,s]=(0,V.useState)(null),l=(0,V.useRef)(null),c=vr(),u=(0,V.useMemo)(()=>(e=>{if(e?.enableMultipleBackgrounds&&e?.backgroundConfigurations?.length)return e.backgroundConfigurations;const t=Object.fromEntries(Object.entries(e||{}).filter(([e])=>!Ql.includes(e)));return[{id:"primary",name:e?.backgroundName||(0,W.__)("My Background","ultimate-cursor"),animationType:e?.animationType||"antigravity",...t}]})(e),[e]),d=c&&u.length>=1;(0,V.useEffect)(()=>{n&&n(null!==i)},[i,n]);const p=r=>{t(((e,t)=>{if(1===t.length){const{id:r,name:n,...o}=t[0];return{...e,...o,backgroundName:n,enableMultipleBackgrounds:!1,backgroundConfigurations:[]}}return{...e,enableMultipleBackgrounds:!0,backgroundConfigurations:t}})(e,r))},m=()=>{if(!i)return;const e=[...u];null!==o?e[o]=i:e.push(i),p(e),s(null),a(null),l.current=null},h=()=>{s(null),a(null),l.current=null},f=!!i&&!!l.current&&!(0,X.isEqual)(i,l.current),g=(e,t)=>{s(r=>({...r,[e]:t}))};if(i){const e=Fl(i.animationType);return(0,bt.jsxs)("div",{className:"bg-configuration-editor",children:[(0,bt.jsxs)("div",{className:"uc-editor-header",children:[f?(0,bt.jsx)(ut,{title:(0,W.__)("Discard changes?","ultimate-cursor"),description:(0,W.__)("Your unsaved edits to this background will be lost.","ultimate-cursor"),okText:(0,W.__)("Discard","ultimate-cursor"),cancelText:(0,W.__)("Keep editing","ultimate-cursor"),okButtonProps:{danger:!0},onConfirm:h,children:(0,bt.jsx)(G.A,{type:"text",shape:"circle",className:"uc-editor-header__back",icon:(0,bt.jsx)(Zn,{}),"aria-label":(0,W.__)("Back to background list (discards changes)","ultimate-cursor")})}):(0,bt.jsx)(G.A,{type:"text",shape:"circle",className:"uc-editor-header__back",icon:(0,bt.jsx)(Zn,{}),"aria-label":(0,W.__)("Back to background list","ultimate-cursor"),onClick:h}),(0,bt.jsxs)("div",{className:"uc-editor-header__titles",children:[(0,bt.jsx)("span",{className:"uc-editor-header__title",children:null!==o?(0,W.__)("Edit Background","ultimate-cursor"):(0,W.__)("New Background","ultimate-cursor")}),(0,bt.jsx)("span",{className:"uc-editor-header__subtitle",children:(0,W.__)("Pick an effect and choose where it appears.","ultimate-cursor")})]}),(0,bt.jsx)(sn,{className:"uc-editor-header__name",prefix:(0,bt.jsx)(Jn.A,{className:"uc-editor-header__name-icon"}),value:i.name||"",placeholder:(0,W.__)("e.g. Hero section background","ultimate-cursor"),"aria-label":(0,W.__)("Name","ultimate-cursor"),onChange:e=>g("name",e.target.value)}),(0,bt.jsxs)(_r.A,{className:"uc-editor-header__actions",children:[f?(0,bt.jsx)(ut,{title:(0,W.__)("Discard changes?","ultimate-cursor"),description:(0,W.__)("Your unsaved edits to this background will be lost.","ultimate-cursor"),okText:(0,W.__)("Discard","ultimate-cursor"),cancelText:(0,W.__)("Keep editing","ultimate-cursor"),okButtonProps:{danger:!0},onConfirm:h,children:(0,bt.jsx)(G.A,{children:(0,W.__)("Cancel","ultimate-cursor")})}):(0,bt.jsx)(G.A,{onClick:h,children:(0,W.__)("Cancel","ultimate-cursor")}),(0,bt.jsx)(G.A,{type:"primary",icon:(0,bt.jsx)(K.A,{}),onClick:m,className:"uc-editor-header__apply-btn"+(f?" uc-editor-header__apply--pulse":""),children:(0,W.__)("Apply","ultimate-cursor")})]})]}),(0,bt.jsxs)("div",{className:"background-settings-layout",children:[(0,bt.jsx)("div",{className:"background-settings-controls",children:(0,bt.jsx)(uo.A,{defaultActiveKey:"effect",className:"uc-settings-subtabs",size:"middle",items:[{key:"effect",label:(0,W.__)("Effect","ultimate-cursor"),children:(0,bt.jsx)("div",{className:"uc-settings-subtabs__panel",children:(0,bt.jsxs)("div",{className:"uc-effect-picker-card",children:[(0,bt.jsx)("div",{className:"uc-effect-picker-card__head",children:(0,W.__)("Choose an Effect","ultimate-cursor")}),(0,bt.jsx)("div",{className:"uc-effect-picker-card__body",children:(0,bt.jsx)(Kl,{value:i.animationType,onChange:e=>{const t=Dl(e);s(e=>({...e,...t,id:e.id,name:e.name,scope:e.scope,specificPages:e.specificPages,cssSelector:e.cssSelector,position:e.position,zIndex:e.zIndex,opacity:e.opacity,backgroundColor:e.backgroundColor}))}})})]})})},{key:"customize",label:(0,W.__)("Customize","ultimate-cursor"),children:(0,bt.jsx)("div",{className:"uc-settings-subtabs__panel",children:e?.Controls?(0,bt.jsx)(e.Controls,{values:i,onChange:g}):(0,bt.jsx)(wt.A,{size:"small",className:"settings-card",children:(0,W.__)("This effect has no extra options.","ultimate-cursor")})})},{key:"display",label:(0,W.__)("Display","ultimate-cursor"),children:(0,bt.jsx)("div",{className:"uc-settings-subtabs__panel",children:(0,bt.jsx)(Vl,{values:i,onChange:g})})}]})}),(0,bt.jsxs)("div",{className:"background-settings-preview",children:[(0,bt.jsx)("h4",{children:(0,W.__)("Preview","ultimate-cursor")}),(0,bt.jsx)("div",{className:"background-preview-area",style:{backgroundColor:i.backgroundColor,borderRadius:12,overflow:"hidden",position:"relative",height:300},children:(0,bt.jsx)(Jl,{typeId:i.animationType,previewProps:e?.getPreviewProps?e.getPreviewProps(i):{}})})]})]})]})}const b=(e=>{const t=new Map;e.forEach((e,r)=>{const n=(e=>{const t=e.scope||"entire-website";if("entire-website"===t)return t;const r=ec.find(e=>e.scope===t),n=(r?String(e[r.field]||""):"").split(",").map(e=>e.trim().toLowerCase()).filter(Boolean).sort().join(",");return`${t}|${n}`})(e),o=e.name||`${(0,W.__)("Background","ultimate-cursor")} ${r+1}`;t.set(n,[...t.get(n)||[],o])});const r=[];return t.forEach(e=>{e.length<2||r.push((0,W.sprintf)(/* translators: %s: comma-separated background names. */ /* translators: %s: comma-separated background names. */
15 (0,W.__)("%s display on the same pages — they will render stacked, and usually only the top layer is visible.","ultimate-cursor"),e.join(", ")))}),r})(u);return(0,bt.jsxs)("div",{className:"bg-config-list",children:[(0,bt.jsxs)($t.A,{justify:"space-between",align:"middle",className:"uc-list-header",children:[(0,bt.jsxs)(Ct.A,{children:[(0,bt.jsx)(Ul,{level:4,style:{margin:0},children:(0,W.__)("Your Backgrounds","ultimate-cursor")}),(0,bt.jsx)(Yl,{type:"secondary",style:{fontSize:13},children:c?(0,W.__)("Free plan includes one background. Upgrade to Pro to target different backgrounds at specific sections or pages.","ultimate-cursor"):(0,W.__)("Each background has its own animation and display rules.","ultimate-cursor")})]}),(0,bt.jsx)(Ct.A,{children:(0,bt.jsx)(G.A,{type:"primary",icon:d?(0,bt.jsx)(no,{}):(0,bt.jsx)(oo.A,{}),onClick:()=>{if(d)return void r();const e={id:`bg-config-${Date.now()}`,name:`${(0,W.__)("Background","ultimate-cursor")} ${u.length+1}`,...Dl("antigravity")};l.current=e,a(null),s(e)},children:d?(0,W.__)("Add Background (Pro)","ultimate-cursor"):(0,W.__)("Add Background","ultimate-cursor")})})]}),b.length>0&&(0,bt.jsx)(Mn,{type:"warning",showIcon:!0,style:{marginBottom:16},message:(0,W.__)("Some backgrounds overlap","ultimate-cursor"),description:(0,bt.jsx)("ul",{style:{margin:0,paddingInlineStart:18},children:b.map(e=>(0,bt.jsx)("li",{children:e},e))})}),(0,bt.jsxs)($t.A,{gutter:[16,16],children:[u.map((e,t)=>{const n=ec.find(t=>t.scope===e.scope&&e[t.field]),o=tc[e.scope||"entire-website"]||tc["entire-website"];return(0,bt.jsx)(Ct.A,{xs:24,lg:12,children:(0,bt.jsx)(wt.A,{className:"uc-config-card",styles:{body:{padding:20}},children:(0,bt.jsxs)($t.A,{justify:"space-between",align:"top",children:[(0,bt.jsxs)(Ct.A,{children:[(0,bt.jsxs)(_r.A,{direction:"vertical",size:2,children:[(0,bt.jsx)(Ul,{level:5,style:{margin:0},children:e.name||`${(0,W.__)("Background","ultimate-cursor")} ${t+1}`}),(0,bt.jsxs)(_r.A,{size:4,wrap:!0,children:[(0,bt.jsx)(nr,{color:"purple",children:(Fl(e.animationType)||{}).label||e.animationType}),(0,bt.jsx)(nr,{color:o.color,children:o.label})]})]}),(0,bt.jsx)("div",{className:"uc-card-meta",children:n?(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(Yl,{type:"secondary",strong:!0,children:n.label})," ",(0,bt.jsx)("code",{children:String(e[n.field]).substr(0,30)})]}):(0,bt.jsx)(Yl,{type:"secondary",children:(0,W.__)("Entire website","ultimate-cursor")})})]}),(0,bt.jsx)(Ct.A,{children:(0,bt.jsxs)(_r.A,{children:[(0,bt.jsx)(G.A,{icon:(0,bt.jsx)(Jn.A,{}),"aria-label":(0,W.__)("Edit background","ultimate-cursor"),onClick:()=>(e=>{l.current={...u[e]},a(e),s({...u[e]})})(t)}),(0,bt.jsx)(G.A,{icon:(0,bt.jsx)(ao.A,{}),"aria-label":(0,W.__)("Duplicate background","ultimate-cursor"),onClick:()=>(e=>{d?r():p([...u,{...u[e],id:`bg-config-${Date.now()}`,name:`${u[e].name||(0,W.__)("Background","ultimate-cursor")} ${(0,W.__)("(copy)","ultimate-cursor")}`}])})(t)}),u.length>1&&(0,bt.jsx)(ut,{title:(0,W.__)("Delete this background?","ultimate-cursor"),okText:(0,W.__)("Delete","ultimate-cursor"),cancelText:(0,W.__)("Cancel","ultimate-cursor"),okButtonProps:{danger:!0},onConfirm:()=>(e=>{u.length<=1||p(u.filter((t,r)=>r!==e))})(t),children:(0,bt.jsx)(G.A,{danger:!0,icon:(0,bt.jsx)(co,{}),"aria-label":(0,W.__)("Delete background","ultimate-cursor")})})]})})]})})},e.id||t)}),d&&(0,bt.jsx)(Ct.A,{xs:24,lg:12,children:(0,bt.jsx)(wt.A,{hoverable:!0,role:"button",tabIndex:0,"aria-label":(0,W.__)("Add another background (Pro feature)","ultimate-cursor"),onClick:r,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r())},className:"uc-locked-card",styles:{body:{padding:20}},children:(0,bt.jsxs)(_r.A,{direction:"vertical",size:4,children:[(0,bt.jsx)(no,{style:{fontSize:20,color:"#94a3b8"},"aria-hidden":"true"}),(0,bt.jsxs)(Yl,{strong:!0,children:[(0,W.__)("Add another background","ultimate-cursor"),(0,bt.jsx)("span",{className:"pro-badge",style:{marginInlineStart:8},children:(0,W.__)("PRO","ultimate-cursor")})]}),(0,bt.jsx)(Yl,{type:"secondary",style:{fontSize:13},children:(0,W.__)("Different animations for different sections or pages.","ultimate-cursor")})]})})})]})]})},nc={enabled:!1,enableMultipleBackgrounds:!1,backgroundConfigurations:[],...Wl},oc=(0,V.lazy)(()=>Promise.all([r.e(84),r.e(765)]).then(r.bind(r,390))),ac=(0,V.lazy)(()=>Promise.all([r.e(295),r.e(315),r.e(206)]).then(r.bind(r,6373))),ic="welcome",sc="settings",lc="background",cc="about",uc={[ic]:{label:(0,W.__)("Welcome","ultimate-cursor"),block:oc,description:(0,W.__)("Get started with Ultimate Cursor","ultimate-cursor")},[sc]:{label:(0,W.__)("Cursors","ultimate-cursor"),block:function(){const[e,t]=(0,V.useState)(()=>window.ultimateCursorAdminData?.settings||{}),[r,n]=(0,V.useState)(!1),[o,a]=(0,V.useState)(!1),[i,s]=(0,V.useState)(!1),l=(0,V.useRef)(null),c=()=>l.current?.focus(),{updateSettings:u}=(0,q.useDispatch)("ultimate/cursor/settings"),{settings:d,updating:p}=(0,q.useSelect)(e=>{const t=e("ultimate/cursor/settings");return{settings:t.getSettings(),updating:t.getUpdating(),error:t.getError()}});(0,V.useEffect)(()=>{t(d)},[d]);const m=(0,V.useMemo)(()=>!(0,X.isEqual)(d,e),[d,e]),h=El(e).length>0,f=!d?.cursorType,{notification:g}=F.A.useApp(),b=(0,xt.d)(),v=(window.ultimateCursorAdminData?.ajaxUrl||"/wp-admin/admin-ajax.php").replace(/wp-admin\/admin-ajax\.php$/,""),x=()=>n(!0),y=(0,V.useCallback)(()=>s(!1),[]);return(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-settings",ref:l,tabIndex:-1,children:[!f&&(0,bt.jsx)(Sr,{onUpgradeClick:x}),(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-settings-general",style:{padding:24,paddingTop:16},children:[f&&(0,bt.jsx)(Ke,{size:"small",style:{maxWidth:640,margin:"0 auto 32px"},current:h?o?1:2:0,items:[{title:(0,W.__)("Choose a style","ultimate-cursor")},{title:(0,W.__)("Customize","ultimate-cursor")},{title:(0,W.__)("Save & go live","ultimate-cursor")}]}),!h&&(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)("div",{className:"setup-step",style:{marginBottom:32},children:(0,bt.jsxs)("div",{className:"step-content",children:[(0,bt.jsx)("h3",{style:{marginBottom:4,fontSize:18,fontWeight:600},children:(0,W.__)("Start with a preset","ultimate-cursor")}),(0,bt.jsx)("p",{style:{margin:"0 0 16px",color:"#64748b",fontSize:13},children:(0,W.__)("Pick a ready-made cursor and tweak it — or choose a type below to start from scratch.","ultimate-cursor")}),(0,bt.jsx)(yr,{onApply:r=>{t({...e,...r}),s(!0)}})]})}),(0,bt.jsx)(It,{pendingSettings:e,setPendingSettings:e=>{t(e),s(!0)}})]}),h&&(0,bt.jsx)(bt.Fragment,{children:(0,bt.jsx)(_l,{pendingSettings:e,setPendingSettings:t,onUpgradeClick:x,setHasUnsavedConfig:a,autoEditFirst:i,onAutoEditDone:y,onFocusFallback:c})}),!f&&(0,bt.jsx)(Pl,{settings:d}),vr()&&(0,bt.jsx)($r,{onUpgradeClick:x})]}),h&&!m&&(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-settings-actions uc-actions-row",children:[(0,bt.jsx)("span",{className:"uc-actions-credit",children:(0,bt.jsx)(ht.lB,{})}),(0,bt.jsx)(ut,{title:(0,W.__)("Deactivate cursor?","ultimate-cursor"),description:(0,W.__)("This removes your cursor from the site and deletes all cursor configurations.","ultimate-cursor"),okText:(0,W.__)("Deactivate","ultimate-cursor"),cancelText:(0,W.__)("Cancel","ultimate-cursor"),okButtonProps:{danger:!0},onConfirm:()=>{u({cursorType:null,enableMultipleCursors:!1,cursorConfigurations:[],effect:"none"}).then(()=>{b.success((0,W.__)("Cursor deactivated.","ultimate-cursor")),c()}).catch(e=>{b.error(e?.message||(0,W.__)("Could not deactivate cursor. Please try again.","ultimate-cursor"))})},children:(0,bt.jsxs)(G.A,{danger:!0,size:"large",children:[(0,W.__)("Deactivate Cursor","ultimate-cursor"),p&&(0,bt.jsx)(gt,{viewBox:"0 0 24 24",style:{width:16,height:16,marginInlineStart:8}})]})})]}),(0,bt.jsx)(vt,{visible:m&&!o,saving:p,onSave:t=>{t.preventDefault();const r=f,n={...e};u(n).then(()=>{g.success({message:r&&n.cursorType?(0,W.__)("Your cursor is live!","ultimate-cursor"):(0,W.__)("Cursor settings saved.","ultimate-cursor"),description:(0,W.__)("Visit your site to see it in action.","ultimate-cursor"),btn:(0,bt.jsx)(G.A,{type:"primary",size:"small",href:v,target:"_blank",rel:"noopener noreferrer",children:(0,W.__)("View your site","ultimate-cursor")}),placement:"bottomRight",duration:8,showProgress:!0,pauseOnHover:!0})}).catch(e=>{b.error(e?.message||(0,W.__)("Could not save settings. Please try again.","ultimate-cursor"))})},onDiscard:()=>t(d)}),(0,bt.jsx)(mt.H,{open:r,onClose:()=>n(!1)})]})},description:(0,W.__)("Configure your cursor settings","ultimate-cursor")},[lc]:{label:(0,W.__)("Background","ultimate-cursor"),block:function(){const[e,t]=(0,V.useState)(()=>({...nc,...window.ultimateCursorAdminData?.backgroundSettings||{}})),{updateSettings:r}=(0,q.useDispatch)("ultimate/cursor/background-settings"),{settings:n,updating:o}=(0,q.useSelect)(e=>{const t=e("ultimate/cursor/background-settings");return{settings:t.getSettings(),updating:t.getUpdating(),error:t.getError()}});(0,V.useEffect)(()=>{n&&Object.keys(n).length&&t({...nc,...n})},[n]);const a=(0,V.useMemo)(()=>!(0,X.isEqual)({...nc,...n},e),[n,e]),i=(0,V.useCallback)((e,r)=>{t(t=>({...t,[e]:r}))},[]),s=(0,xt.d)(),{modal:l}=F.A.useApp(),[c,u]=(0,V.useState)(!1),[d,p]=(0,V.useState)(!1),[m,h]=(0,V.useState)(()=>!!e.enabled);return(0,V.useEffect)(()=>{e.enabled?h(!0):h(!1)},[e.enabled]),(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-background-settings",children:[(0,bt.jsxs)("div",{className:"background-settings-header",children:[(0,bt.jsxs)("div",{className:"background-settings-header-content",children:[(0,bt.jsx)("h2",{children:(0,W.__)("Background Animation","ultimate-cursor")}),(0,bt.jsx)("p",{children:(0,W.__)("Add beautiful, interactive background animations to your website without impacting performance.","ultimate-cursor")})]}),(0,bt.jsx)("div",{className:"background-settings-header-toggles",children:(0,bt.jsxs)("div",{className:"background-enable-toggle",children:[(0,bt.jsx)("span",{children:(0,W.__)("Enable Background Animation","ultimate-cursor")}),(0,bt.jsx)(Mo,{checked:e.enabled||!1,onChange:e=>{e||!c?i("enabled",e):l.confirm({title:(0,W.__)("Discard unsaved changes?","ultimate-cursor"),content:(0,W.__)("You have an unsaved background edit open. Turning off Background Animation will close it and discard those changes.","ultimate-cursor"),okText:(0,W.__)("Discard and turn off","ultimate-cursor"),cancelText:(0,W.__)("Keep editing","ultimate-cursor"),okButtonProps:{danger:!0},onOk:()=>i("enabled",!1)})}})]})})]}),e.enabled&&!m&&(0,bt.jsx)("div",{className:"background-settings-body",children:(0,bt.jsx)(Il,{rows:5})}),e.enabled&&m&&(0,bt.jsx)("div",{className:"background-settings-body",children:(0,bt.jsx)(rc,{pendingSettings:e,setPendingSettings:t,onUpgradeClick:()=>p(!0),setHasUnsavedConfig:u})}),!e.enabled&&(0,bt.jsx)("div",{className:"background-disabled-notice",children:(0,bt.jsxs)("div",{className:"disabled-notice-content",children:[(0,bt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,bt.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,bt.jsx)("path",{d:"M12 16v-4"}),(0,bt.jsx)("path",{d:"M12 8h.01"})]}),(0,bt.jsx)("h3",{children:(0,W.__)("Background Animation is Disabled","ultimate-cursor")}),(0,bt.jsx)("p",{children:(0,W.__)("Enable the toggle above to add interactive background animations to your website. The animation is performance-optimized and only loads on pages where it is needed.","ultimate-cursor")})]})}),e.enabled&&!a&&(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-settings-actions uc-actions-row",children:[(0,bt.jsx)("span",{className:"uc-actions-credit",children:(0,bt.jsx)(ht.lB,{})}),(0,bt.jsx)(ut,{title:(0,W.__)("Deactivate background animation?","ultimate-cursor"),description:(0,W.__)("This removes the background animation from your site and resets its settings.","ultimate-cursor"),okText:(0,W.__)("Deactivate","ultimate-cursor"),cancelText:(0,W.__)("Cancel","ultimate-cursor"),okButtonProps:{danger:!0},onConfirm:()=>{const e={...nc,enabled:!1};r(e).then(()=>{s.success((0,W.__)("Background animation deactivated.","ultimate-cursor"))}).catch(e=>{s.error(e?.message||(0,W.__)("Could not deactivate background. Please try again.","ultimate-cursor"))})},children:(0,bt.jsxs)(G.A,{danger:!0,size:"large",children:[(0,W.__)("Deactivate Background","ultimate-cursor"),o&&(0,bt.jsx)(gt,{viewBox:"0 0 24 24",style:{width:16,height:16,marginInlineStart:8}})]})})]}),(0,bt.jsx)(vt,{visible:a&&!c,saving:o,onSave:t=>{t.preventDefault(),r({...e}).then(()=>{s.success((0,W.__)("Background settings saved.","ultimate-cursor"))}).catch(e=>{s.error(e?.message||(0,W.__)("Could not save settings. Please try again.","ultimate-cursor"))})},onDiscard:()=>t({...nc,...n})}),(0,bt.jsx)(mt.H,{open:d,onClose:()=>p(!1)})]})},description:(0,W.__)("Configure background animation settings","ultimate-cursor")},[cc]:{label:(0,W.__)("About","ultimate-cursor"),block:ac,description:(0,W.__)("Learn more about Ultimate Cursor","ultimate-cursor")}},dc=()=>(()=>{const e=window.ultimateCursorAdminData||{};return!(!e.settings?.cursorType&&!e.backgroundSettings?.enabled)})()?sc:ic,pc=uc,mc=[];window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,(e,t,r)=>{mc[t]=r});const hc=mc.sub_page&&pc[mc.sub_page]&&mc.sub_page||dc();function fc(e){return{type:"SET_ACTIVE_PAGE",activePage:e}}function gc(e){return e?.activePage||""}const bc=(0,q.createReduxStore)("ultimate/cursor/admin",{reducer:function(e={activePage:hc},t={}){return"SET_ACTIVE_PAGE"===t.type&&e.activePage!==t.activePage?{...e,activePage:t.activePage}:e},actions:n,selectors:o});(0,q.register)(bc);const{settings:vc}=window.ultimateCursorAdminData;function xc(e){return({dispatch:t})=>{if(!e||!Object.keys(e).length)return;t({type:"UPDATE_SETTINGS_PENDING"});const r={settings:e};return Ss()({path:"/ultimate/cursor/v1/update_settings",method:"POST",data:r}).then(r=>(t({type:"UPDATE_SETTINGS_SUCCESS",settings:e}),r.response)).catch(e=>{const r=e?.response||e?.error_code||(0,W.__)("Something went wrong, please try again…","ultimate-cursor");throw t({type:"UPDATE_SETTINGS_ERROR",error:r}),new Error(r)})}}function yc(e){return e?.settings||{}}function $c(e,t){return e?.settings[t]||""}function Cc(e){return e?.updating||!1}function wc(e){return e?.error||!1}const Sc=(0,q.createReduxStore)("ultimate/cursor/settings",{reducer:function(e={settings:vc,updating:!1,error:""},t={}){switch(t.type){case"UPDATE_SETTINGS_PENDING":return{...e,updating:!0};case"UPDATE_SETTINGS_SUCCESS":return{...e,updating:!1,settings:{...e.settings,...t.settings}};case"UPDATE_SETTINGS_ERROR":return{...e,updating:!1,error:t.error||""}}return e},actions:a,selectors:i});(0,q.register)(Sc);const{backgroundSettings:kc}=window.ultimateCursorAdminData||{};function Ec(e){return({dispatch:t})=>{if(!e||!Object.keys(e).length)return;t({type:"UPDATE_BACKGROUND_SETTINGS_PENDING"});const r={settings:e};return Ss()({path:"/ultimate/cursor/v1/update_background_settings",method:"POST",data:r}).then(r=>(t({type:"UPDATE_BACKGROUND_SETTINGS_SUCCESS",settings:e}),r.response)).catch(e=>{const r=e?.response||e?.error_code||(0,W.__)("Something went wrong, please try again…","ultimate-cursor");throw t({type:"UPDATE_BACKGROUND_SETTINGS_ERROR",error:r}),new Error(r)})}}function _c(e){return e?.settings||{}}function Ac(e,t){return e?.settings[t]||""}function Nc(e){return e?.updating||!1}function jc(e){return e?.error||!1}const Mc=(0,q.createReduxStore)("ultimate/cursor/background-settings",{reducer:function(e={settings:kc||{},updating:!1,error:""},t={}){switch(t.type){case"UPDATE_BACKGROUND_SETTINGS_PENDING":return{...e,updating:!0};case"UPDATE_BACKGROUND_SETTINGS_SUCCESS":return{...e,updating:!1,settings:{...e.settings,...t.settings}};case"UPDATE_BACKGROUND_SETTINGS_ERROR":return{...e,updating:!1,error:t.error||""}}return e},actions:s,selectors:l});(0,q.register)(Mc);var Pc=r(8403);function zc(){const e=(0,V.useRef)(),{setActivePage:t}=(0,q.useDispatch)("ultimate/cursor/admin"),{activePage:r}=(0,q.useSelect)(e=>{const{getActivePage:t}=e("ultimate/cursor/admin");return{activePage:t()}});(0,V.useEffect)(()=>{document.querySelectorAll(".toplevel_page_ultimate-cursor .current").forEach(e=>{e.classList.remove("current")});let e=document.querySelectorAll(`.toplevel_page_ultimate-cursor [href="admin.php?page=ultimate-cursor&sub_page=${r}"]`);e&&e.length||(e=document.querySelectorAll('.toplevel_page_ultimate-cursor [href="admin.php?page=ultimate-cursor"]')),e.forEach(e=>{e.parentNode.classList.add("current")}),document.body.classList.forEach(e=>{/ultimate-cursor-admin-page-/.test(e)&&document.body.classList.remove(e)}),document.body.classList.add(`ultimate-cursor-admin-page-${r}`),e&&e.length&&new URLSearchParams(window.location.search).get("sub_page")!==new URL(e[0].href,window.location.origin).searchParams.get("sub_page")&&window.history.pushState({ucPage:r},document.title,e[0].href)},[r]),(0,V.useEffect)(()=>{const e=e=>{const r=e.state?.ucPage,n=new URLSearchParams(window.location.search).get("sub_page"),o=r&&pc[r]&&r||n&&pc[n]&&n||dc();t(o)};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[t]);const n=[];let o="";if(Object.entries(pc).forEach(([e,o])=>{("function"==typeof o.hideInNav?o.hideInNav():o.hideInNav)&&r!==e||n.push((0,bt.jsx)("a",{href:o.href||`admin.php?page=ultimate-cursor&sub_page=${e}`,target:o.href?"_blank":null,rel:"noreferrer",className:(0,c.A)(r===e&&"active"),"aria-current":r===e?"page":void 0,onClick:r=>{o.href||(r.preventDefault(),t(e))},children:o.label},e))}),r&&pc[r]){const e=pc[r].block;o=(0,bt.jsx)(V.Suspense,{fallback:(0,bt.jsx)(Il,{rows:6}),children:(0,bt.jsx)(e,{})})}const a=window.ultimateCursorAdminData?.version||"2.0.0";return(0,bt.jsx)(D.Ay,{direction:(0,W.isRTL)()?"rtl":"ltr",theme:{token:{colorPrimary:"#5C33FF",colorInfo:"#5C33FF",borderRadius:10,borderRadiusLG:14,borderRadiusSM:8,controlHeight:38,fontSize:14,colorText:"#0f172a",colorTextSecondary:"#475569",colorTextTertiary:"#64748b",colorBorder:"#e5e9f0",colorBorderSecondary:"#eef1f6",colorBgLayout:"#f6f7fb",boxShadow:"0 4px 12px rgba(15, 23, 42, 0.06)",boxShadowSecondary:"0 12px 32px rgba(15, 23, 42, 0.10)",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif'},components:{Button:{controlHeight:40,paddingInline:20,fontWeight:600,primaryShadow:"0 6px 16px rgba(92, 51, 255, 0.28)"},Card:{borderRadiusLG:14,boxShadowTertiary:"0 1px 3px rgba(15, 23, 42, 0.04)"},Tag:{borderRadiusSM:20},Segmented:{borderRadius:10}}},children:(0,bt.jsx)(F.A,{message:{top:48},children:(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-wrapper",children:[(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-header",children:[(0,bt.jsx)("div",{className:"ultimate-cursor-admin-header-bg"}),(0,bt.jsx)("div",{className:"ultimate-cursor-admin-content header-content",children:(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-header-wrap",children:[(0,bt.jsxs)("div",{className:"ultimate-cursor-admin-header-logo",children:[(0,bt.jsx)("div",{className:"logo-icon",children:(0,bt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",height:22,width:22,id:"Cursor-Click--Streamline-Phosphor",children:(0,bt.jsx)("path",{d:"M95.4817 21.1463v-9.2918c0 -7.1528 7.7431 -11.6232 13.9376 -8.0469 2.8749 1.6599 4.6459 4.7273 4.6459 8.0469v9.2918c0 7.1528 -7.7431 11.6233 -13.9376 8.0469 -2.8749 -1.6598 -4.6459 -4.7273 -4.6459 -8.0469ZM11.856 114.0637h9.2917c7.1528 0 11.6233 -7.7431 8.0469 -13.9376 -1.6597 -2.8747 -4.7274 -4.6457 -8.0469 -4.6459H11.856c-7.1528 -0.0003 -11.6232 7.7426 -8.0471 13.9373 1.6597 2.8751 4.7273 4.6462 8.0471 4.6462Zm125.9264 -75.3096c4.5926 2.3 10.18 0.4375 12.4741 -4.158l9.2918 -18.5835c3.2008 -6.3973 -1.7239 -13.8606 -8.8645 -13.434 -3.314 0.198 -6.2706 2.1489 -7.7561 5.1179L133.6359 26.28c-2.3016 4.5895 -0.4447 10.1758 4.1465 12.4741Zm-111.501 94.8804 -18.5835 9.2917c-6.3972 3.2009 -6.9305 12.1267 -0.9598 16.0664 2.771 1.8285 6.307 2.0397 9.2759 0.5542l18.5835 -9.2917c6.3973 -3.2009 6.9306 -12.1267 0.9599 -16.0665 -2.771 -1.8284 -6.307 -2.0397 -9.276 -0.5541Zm221.7127 73.3467c7.2593 7.2576 7.2593 19.0263 0 26.284l-14.7275 14.7274c-7.2576 7.2593 -19.0263 7.2593 -26.284 0l-59.5833 -59.5949 -20.558 53.5321c0 0.1161 -0.0929 0.2439 -0.151 0.3716 -2.907 6.7777 -9.5826 11.1626 -16.9574 11.1385h-0.9176c-7.7065 -0.3263 -14.3901 -5.4283 -16.7367 -12.7761l-60.71 -185.9279C27.0023 41.113 39.0207 27.872 53.0017 30.9021c0.5857 0.127 1.1649 0.2822 1.7357 0.4651l185.9278 60.7099c13.5666 4.5383 17.1329 22.0611 6.4193 31.541 -1.427 1.2627 -3.0397 2.2984 -4.7816 3.0708l-0.3717 0.151 -53.5321 20.5463Zm-13.1362 13.1362 -59.595 -59.5949c-9.2832 -9.2662 -6.3048 -24.9736 5.7261 -30.1982l0.3716 -0.1626 53.3695 -20.4883L49.023 49.0215l60.6286 185.6723 20.4999 -53.4275c0 -0.1278 0.0929 -0.2555 0.151 -0.3833 2.4521 -5.6399 7.5355 -9.7015 13.5776 -10.8481 1.1493 -0.2131 2.3155 -0.3219 3.4844 -0.3252 4.9237 0.0053 9.6441 1.9645 13.1246 5.4473l59.6297 59.6994Z",strokeWidth:1})})}),(0,bt.jsxs)("h1",{children:[(0,W.__)("Ultimate Cursor","ultimate-cursor"),(0,bt.jsxs)("span",{children:["v",a]})]})]}),(0,bt.jsx)("nav",{className:"ultimate-cursor-admin-header-nav",children:n})]})})]}),(0,bt.jsx)(R,{mode:"out-in",children:(0,bt.jsx)(H,{nodeRef:e,timeout:(0,Pc.Oe)()?0:200,classNames:"fade",unmountOnExit:!0,children:(0,bt.jsx)("div",{ref:e,className:(0,c.A)("ultimate-cursor-admin-content",`ultimate-cursor-admin-content-${r}`),children:(0,bt.jsx)("div",{className:"ultimate-cursor-admin-content-card",children:o})})},r)})]})})})}window.addEventListener("load",()=>{const e=document.querySelector(".ultimate-cursor-admin-root");e&&(0,V.createRoot)(e).render((0,bt.jsx)(zc,{}))})},6466(e,t,r){var n=r(1609),o=r(1622);r.d(t,["cs",0,e=>({...o.LP.common||{},...o.LP[e]||{}}),"uj",0,(e,t="Primary Cursor")=>({id:"primary",name:t,cursorScope:"entire-website",...e,enableMultipleCursors:void 0,cursorConfigurations:void 0}),"xQ",0,(e,t)=>{const r=(0,n.useRef)({x:0,y:0}),o=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{const n=n=>{if(e){const a=e.getBoundingClientRect(),i=n.clientX>=a.left&&n.clientX<=a.right&&n.clientY>=a.top&&n.clientY<=a.bottom;i&&(r.current={x:n.clientX-a.left,y:n.clientY-a.top}),o.current!==i&&(o.current=i,t(i))}else r.current={x:n.clientX,y:n.clientY}};return document.addEventListener("mousemove",n),()=>{document.removeEventListener("mousemove",n)}},[e,t]),r},"zx",0,({color:e})=>{if("undefined"!=typeof window){const e=document.documentElement;if(e.classList.contains("dark")||document.body.classList.contains("dark")||"dark"===e.getAttribute("data-theme")||"dark"===e.getAttribute("data-bs-theme"))return"255, 255, 255";const t=window.getComputedStyle(document.body).backgroundColor,r=window.getComputedStyle(e).backgroundColor,n=e=>{const t=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return t?[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]:null},o=n(t),a=n(r),i=e=>e?(299*e[0]+587*e[1]+114*e[2])/1e3:255,s=i(o),l=i(a);if(s<128||l<128)return"255, 255, 255";if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return"255, 255, 255"}return e||"100, 100, 100"}])},8403(e,t,r){r.d(t,{Gz:()=>o,Oe:()=>n});function n(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}function o(e){return!1!==e?.respectReducedMotion&&n()}},5574(e){e.exports=o,e.exports.isMobile=o,e.exports.default=o;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,n=/android|ipad|playbook|silk/i;function o(e){e||(e={});let o=e.ua;if(o||"undefined"==typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;let a=t.test(o)&&!r.test(o)||!!e.tablet&&n.test(o);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(a=!0),a}},2799(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case i:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case h:case m:case s:return e;default:return t}}case n:return t}}}(e)===m}},4363(e,t,r){e.exports=r(2799)},1609(e){e.exports=window.React},5795(e){e.exports=window.ReactDOM},790(e){e.exports=window.ReactJSXRuntime},7143(e){e.exports=window.wp.data},6087(e){e.exports=window.wp.element},2619(e){e.exports=window.wp.hooks},7723(e){e.exports=window.wp.i18n},3145(e,t,r){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{A:()=>n})},9417(e,t,r){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},3029(e,t,r){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{A:()=>n})},2901(e,t,r){r.d(t,{A:()=>a});var n=r(816);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.A)(o.key),o)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},4467(e,t,r){r.d(t,{A:()=>o});var n=r(816);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},8168(e,t,r){function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},3954(e,t,r){function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{A:()=>n})},5501(e,t,r){r.d(t,{A:()=>o});var n=r(3662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,n.A)(e,t)}},2176(e,t,r){function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n=function(){return!!e})()}r.d(t,{A:()=>n})},6822(e,t,r){r.d(t,{A:()=>a});var n=r(2284),o=r(9417);function a(e,t){if(t&&("object"==(0,n.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},3662(e,t,r){function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},296(e,t,r){r.d(t,{A:()=>o});var n=r(7800);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||(0,n.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5458(e,t,r){r.d(t,{A:()=>a});var n=r(3145),o=r(7800);function a(e){return function(e){if(Array.isArray(e))return(0,n.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},816(e,t,r){r.d(t,{A:()=>o});var n=r(2284);function o(e){var t=function(e){if("object"!=(0,n.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,n.A)(t)?t:t+""}},2284(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})},7800(e,t,r){r.d(t,{A:()=>o});var n=r(3145);function o(e,t){if(e){if("string"==typeof e)return(0,n.A)(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.A)(e,t):void 0}}},4164(e,t,r){function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function o(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}r.d(t,{$:()=>o});const a=o;r.d(t,["A",0,a])}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.m=e,(()=>{const e=[];r.O=(t,n,o,a)=>{if(n){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];return void(e[i]=[n,o,a])}let s=1/0;for(i=0;i<e.length;i++){let[n,o,a]=e[i],c=!0;for(var l=0;l<n.length;l++)(!1&a||s>=a)&&Object.keys(r.O).every(e=>r.O[e](n[l]))?n.splice(l--,1):(c=!1,a<s&&(s=a));if(c){e.splice(i--,1);const r=o();void 0!==r&&(t=r)}}return t}})(),r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],a=t[n++];r.o(e,o)?0===a&&n++:0===a?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:a})}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>(({180:"antigravity-preview",206:"page-about",617:"light-pillar-preview",686:"emoji-picker",765:"page-welcome"}[e]||e)+".js"),r.miniCssF=e=>({84:"./style-page-welcome",295:"./style-page-about",472:"./style-light-pillar-preview"}[e]+".css"),r.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={},t="ultimate-cursor:";r.l=(n,o,a,i)=>{if(e[n])return void e[n].push(o);let s,l;if(void 0!==a){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const r=e[c];if(r.getAttribute("src")==n||r.getAttribute("data-webpack")==t+a){s=r;break}}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+a),s.src=n),e[n]=[o];const u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(d);const o=e[n];if(delete e[n],s.parentNode?.removeChild(s),o?.forEach(e=>e(r)),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}})(),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{if("undefined"!=typeof document){var e={884:0};r.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{84:1,295:1,472:1}[t]&&n.push(e[t]=(e=>new Promise((t,n)=>{var o=r.miniCssF(e),a=r.p+o;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(i=r[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===e||o===t))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((o=(i=a[n]).getAttribute("data-href"))===e||o===t)return i}})(o,a))return t();((e,t,n,o,a)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)o();else{var n=r&&r.type,s=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+n+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=n,l.request=s,i.parentNode&&i.parentNode.removeChild(i),a(l)}},i.href=t,document.head.appendChild(i)})(e,a,0,t,n)}))(t).then(()=>{e[t]=0},r=>{throw delete e[t],r}))}}})(),(()=>{const e={884:0,15:0};r.f.j=(t,n)=>{let o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else if(/^(15|295|472|84)$/.test(t))e[t]=0;else{const a=new Promise((r,n)=>o=e[t]=[r,n]);n.push(o[2]=a);const i=r.p+r.u(t),s=new Error,l=n=>{if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",s.name="ChunkLoadError",s.type=e,s.request=r,o[1](s)}};r.l(i,l,"chunk-"+t,t)}},r.O.j=t=>0===e[t];const t=(t,n)=>{let[o,a,i]=n;var s,l,c=0;if(o.some(t=>0!==e[t])){for(s in a)r.o(a,s)&&(r.m[s]=a[s]);if(i)var u=i(r)}for(t&&t(n);c<o.length;c++)l=o[c],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(u)},n=globalThis.webpackChunkultimate_cursor||=[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();let n=r.O(void 0,[15],()=>r(8706));n=r.O(n)})();