diff --git a/README.md b/README.md
index a25bfb2..07e581e 100644
--- a/README.md
+++ b/README.md
@@ -516,7 +516,7 @@ Every bit counts and your one-time donation sparkles in our galaxy of support! Y
-Copyright © 2023 [CanisMinor][profile-link].
+Copyright © 2023 [LobeHub][profile-link].
This project is [AGPL3](./LICENSE) licensed.
@@ -571,6 +571,6 @@ This project is [AGPL3](./LICENSE) licensed.
[lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
-[profile-link]: https://github.com/canisminor1990
+[profile-link]: https://github.com/lobehub
[sponsor-link]: https://opencollective.com/lobehub 'Become 🩷 LobeHub Sponsor'
[sponsor-shield]: https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square
diff --git a/README.zh-CN.md b/README.zh-CN.md
index aca03fb..29d1b56 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -487,7 +487,7 @@ $ bun dev
-Copyright © 2023 [CanisMinor][profile-link].
+Copyright © 2023 [LobeHub][profile-link].
This project is [AGPL3](./LICENSE) licensed.
@@ -542,6 +542,6 @@ This project is [AGPL3](./LICENSE) licensed.
[lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
[pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
[pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
-[profile-link]: https://github.com/canisminor1990
+[profile-link]: https://github.com/lobehub
[sponsor-link]: https://opencollective.com/lobehub 'Become 🩷 LobeHub Sponsor'
[sponsor-shield]: https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square
diff --git a/javascript/main.js b/javascript/main.js
index 019ccf1..95b1b10 100644
--- a/javascript/main.js
+++ b/javascript/main.js
@@ -1,4 +1,4 @@
-function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}},i={},a={exports:{}},l={},s=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function k(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=k.prototype;var O=E.prototype=new C;O.constructor=E,x(O,k.prototype),O.isPureReactComponent=!0;var D=Array.isArray,$=Object.prototype.hasOwnProperty,j={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)$.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r})(t,"symbol"!=typeof n?n+"":n,r),r);function n(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var a={exports:{}},l={},s={exports:{}},c={},u=Symbol.for("react.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),m=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.iterator;var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,C={};function E(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||S}function O(){}function D(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||S}E.prototype.isReactComponent={},E.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=E.prototype;var $=D.prototype=new O;$.constructor=D,k($,E.prototype),$.isPureReactComponent=!0;var _=Array.isArray,j=Object.prototype.hasOwnProperty,P={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)j.call(t,r)&&!I.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1e.reduce(((e,t)=>te(e,t,"",re)),{});var re;function oe(e){return t=e,"[object Object]"===Object.prototype.toString.call(t)&&(!(!e.message&&!e.args)&&!e.stack);var t}let ie=!1;const ae=[];class le{constructor(e={}){const t=e.types||Z;this.options=ne({...e,defaults:{...e.defaults},level:se(e.level,t),reporters:[...e.reporters||[]]},{types:Z,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in t){const e={type:n,...this.options.defaults,...t[n]};this[n]=this._wrapLogFn(e),this[n].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=se(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new le({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(t>=0)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){ie=!0}resumeLogs(){ie=!1;const e=ae.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,"function"==typeof t)for(const n in this.options.types)this[n]=t(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(e,t){return(...n)=>{if(!ie)return this._logFn(e,n,t);ae.push([this,e,n,t])}}_logFn(e,t,n){if((e.level||0)>this.level)return!1;const r={date:new Date,args:[],...e,level:se(e.level,this.options.types)};!n&&1===t.length&&oe(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split("\n")),r.args.push("\n"+r.additional.join("\n")),delete r.additional),r.type="string"==typeof r.type?r.type.toLowerCase():"log",r.tag="string"==typeof r.tag?r.tag:"";const o=(e=!1)=>{const t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){const e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,ithis.options.throttleMin))return void(this._lastLog.timeout=setTimeout(o,this.options.throttle))}catch{}o(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function se(e,t={},n=3){return void 0===e?n:"number"==typeof e?e:t[e]&&void 0!==t[e].level?t[e].level:n}le.prototype.add=le.prototype.addReporter,le.prototype.remove=le.prototype.removeReporter,le.prototype.clear=le.prototype.removeReporter,le.prototype.withScope=le.prototype.withTag,le.prototype.mock=le.prototype.mockTypes,le.prototype.pause=le.prototype.pauseLogs,le.prototype.resume=le.prototype.resumeLogs;class ce{constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:1===e?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),n="log"===e.type?"":e.type,r=e.tag||"",o=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,i=`%c${[r,n].filter(Boolean).join(":")}`;"string"==typeof e.args[0]?t(`${i}%c ${e.args[0]}`,o,"",...e.args.slice(1)):t(i,o,...e.args)}}const ue=function(e={}){return function(e={}){return new le(e)}({reporters:e.reporters||[new ce({})],prompt:(e,t={})=>"confirm"===t.type?Promise.resolve(confirm(e)):Promise.resolve(prompt(e)),...e})}();var de={exports:{}},fe={},pe={exports:{}},he={};
+var G=W,q=Symbol.for("react.element"),X=Symbol.for("react.fragment"),K=Object.prototype.hasOwnProperty,Y=G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Q={key:!0,ref:!0,__self:!0,__source:!0};function J(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)K.call(t,r)&&!Q.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:q,type:e,key:i,ref:a,props:o,_owner:Y.current}}l.Fragment=X,l.jsx=J,l.jsxs=J,a.exports=l;var Z=a.exports;const ee={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},te={silent:{level:-1},fatal:{level:ee.fatal},error:{level:ee.error},warn:{level:ee.warn},log:{level:ee.log},info:{level:ee.info},success:{level:ee.success},fail:{level:ee.fail},ready:{level:ee.info},start:{level:ee.info},box:{level:ee.info},debug:{level:ee.debug},trace:{level:ee.trace},verbose:{level:ee.verbose}};function ne(e){return null!==e&&"object"==typeof e}function re(e,t,n=".",r){if(!ne(t))return re(e,{},n,r);const o=Object.assign({},t);for(const i in e){if("__proto__"===i||"constructor"===i)continue;const t=e[i];null!=t&&(r&&r(o,i,t,n)||(Array.isArray(t)&&Array.isArray(o[i])?o[i]=[...t,...o[i]]:ne(t)&&ne(o[i])?o[i]=re(t,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=t))}return o}const oe=(...e)=>e.reduce(((e,t)=>re(e,t,"",ie)),{});var ie;function ae(e){return t=e,"[object Object]"===Object.prototype.toString.call(t)&&(!(!e.message&&!e.args)&&!e.stack);var t}let le=!1;const se=[];class ce{constructor(e={}){const t=e.types||te;this.options=oe({...e,defaults:{...e.defaults},level:ue(e.level,t),reporters:[...e.reporters||[]]},{types:te,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const n in t){const e={type:n,...this.options.defaults,...t[n]};this[n]=this._wrapLogFn(e),this[n].raw=this._wrapLogFn(e,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=ue(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new ce({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(t>=0)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=e=>{this[t].raw(String(e).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){le=!0}resumeLogs(){le=!1;const e=se.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,"function"==typeof t)for(const n in this.options.types)this[n]=t(n,this.options.types[n])||this[n],this[n].raw=this[n]}_wrapLogFn(e,t){return(...n)=>{if(!le)return this._logFn(e,n,t);se.push([this,e,n,t])}}_logFn(e,t,n){if((e.level||0)>this.level)return!1;const r={date:new Date,args:[],...e,level:ue(e.level,this.options.types)};!n&&1===t.length&&ae(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split("\n")),r.args.push("\n"+r.additional.join("\n")),delete r.additional),r.type="string"==typeof r.type?r.type.toLowerCase():"log",r.tag="string"==typeof r.tag?r.tag:"";const o=(e=!1)=>{const t=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&t>0){const e=[...this._lastLog.object.args];t>1&&e.push(`(repeated ${t} times)`),this._log({...this._lastLog.object,args:e}),this._lastLog.count=1}e&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);const i=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,ithis.options.throttleMin))return void(this._lastLog.timeout=setTimeout(o,this.options.throttle))}catch{}o(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function ue(e,t={},n=3){return void 0===e?n:"number"==typeof e?e:t[e]&&void 0!==t[e].level?t[e].level:n}ce.prototype.add=ce.prototype.addReporter,ce.prototype.remove=ce.prototype.removeReporter,ce.prototype.clear=ce.prototype.removeReporter,ce.prototype.withScope=ce.prototype.withTag,ce.prototype.mock=ce.prototype.mockTypes,ce.prototype.pause=ce.prototype.pauseLogs,ce.prototype.resume=ce.prototype.resumeLogs;class de{constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:1===e?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),n="log"===e.type?"":e.type,r=e.tag||"",o=`\n background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n `,i=`%c${[r,n].filter(Boolean).join(":")}`;"string"==typeof e.args[0]?t(`${i}%c ${e.args[0]}`,o,"",...e.args.slice(1)):t(i,o,...e.args)}}const pe=function(e={}){return function(e={}){return new ce(e)}({reporters:e.reporters||[new de({})],prompt:(e,t={})=>"confirm"===t.type?Promise.resolve(confirm(e)):Promise.resolve(prompt(e)),...e})}();var fe={exports:{}},he={},ge={exports:{}},me={};
/**
* @license React
* scheduler.production.min.js
@@ -18,7 +18,7 @@ var U=B,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.pr
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(s,n))co(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function w(e){if(g=!1,y(e),!h)if(null!==n(s))h=!0,_(x);else{var t=n(c);null!==t&&I(w,t.startTime-e)}}function x(t,o){h=!1,g&&(g=!1,b(E),E=-1),p=!0;var i=f;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!$());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&I(w,m.startTime-o),u=!1}return u}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,E=-1,O=5,D=-1;function $(){return!(e.unstable_now()-De||125a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(g?(b(E),E=-1):g=!0,I(w,i-a))):(r.sortIndex=l,t(s,r),h||p||(h=!0,_(x))),r},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(he),pe.exports=he;var ge=pe.exports,me=B,be=ge;
+!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(s,n))co(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function w(e){if(g=!1,y(e),!h)if(null!==n(s))h=!0,I(x);else{var t=n(c);null!==t&&N(w,t.startTime-e)}}function x(t,o){h=!1,g&&(g=!1,b(E),E=-1),f=!0;var i=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!$());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&N(w,m.startTime-o),u=!1}return u}finally{d=null,p=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,E=-1,O=5,D=-1;function $(){return!(e.unstable_now()-De||125a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(g?(b(E),E=-1):g=!0,N(w,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,I(x))),r},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(me),ge.exports=me;var be=ge.exports,ve=W,ye=be;
/**
* @license React
* react-dom.production.min.js
@@ -27,25 +27,25 @@ var U=B,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.pr
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */function ve(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Ce.call(De,e)||!Ce.call(Oe,e)&&(Ee.test(e)?De[e]=!0:(Oe[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Pe,Ne);je[t]=new $e(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Pe,Ne);je[t]=new $e(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Pe,Ne);je[t]=new $e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){je[e]=new $e(e,1,!1,e.toLowerCase(),null,!1,!1)})),je.xlinkHref=new $e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){je[e]=new $e(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Ie=me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Te=Symbol.for("react.element"),Fe=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),Ae=Symbol.for("react.strict_mode"),Me=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),ze=Symbol.for("react.context"),Be=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),We=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),Ve=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),qe=Symbol.iterator;function Xe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=qe&&e[qe]||e["@@iterator"])?e:null}var Ke,Ye=Object.assign;function Qe(e){if(void 0===Ke)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||""}return"\n"+Ke+e}var Je=!1;function Ze(e,t){if(!e||Je)return"";Je=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Je=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qe(e):""}function et(e){switch(e.tag){case 5:return Qe(e.type);case 16:return Qe("Lazy");case 13:return Qe("Suspense");case 19:return Qe("SuspenseList");case 0:case 2:case 15:return e=Ze(e.type,!1);case 11:return e=Ze(e.type.render,!1);case 1:return e=Ze(e.type,!0);default:return""}}function tt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Re:return"Fragment";case Fe:return"Portal";case Me:return"Profiler";case Ae:return"StrictMode";case He:return"Suspense";case We:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ze:return(e.displayName||"Context")+".Consumer";case Le:return(e._context.displayName||"Context")+".Provider";case Be:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ue:return null!==(t=e.displayName||null)?t:tt(e.type)||"Memo";case Ve:t=e._payload,e=e._init;try{return tt(e(t))}catch(n){}}return null}function nt(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tt(t);case 8:return t===Ae?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function rt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ot(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function it(e){e._valueTracker||(e._valueTracker=function(e){var t=ot(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function at(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ot(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function lt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function st(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ct(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=rt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ut(e,t){null!=(t=t.checked)&&_e(e,"checked",t,!1)}function dt(e,t){ut(e,t);var n=rt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?pt(e,t.type,n):t.hasOwnProperty("defaultValue")&&pt(e,t.type,rt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ft(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function pt(e,t,n){"number"===t&<(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ht=Array.isArray;function gt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=St.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return kt(e,t)}))}:kt);function Et(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ot={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dt=["Webkit","ms","Moz","O"];function $t(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ot.hasOwnProperty(e)&&Ot[e]?(""+t).trim():t+"px"}function jt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=$t(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Ot).forEach((function(e){Dt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ot[t]=Ot[e]}))}));var Pt=Ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nt(e,t){if(t){if(Pt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ve(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ve(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ve(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ve(62))}}function _t(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var It=null;function Tt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,Rt=null,At=null;function Mt(e){if(e=Ii(e)){if("function"!=typeof Ft)throw Error(ve(280));var t=e.stateNode;t&&(t=Fi(t),Ft(e.stateNode,e.type,t))}}function Lt(e){Rt?At?At.push(e):At=[e]:Rt=e}function zt(){if(Rt){var e=Rt,t=At;if(At=Rt=null,Mt(e),t)for(e=0;e>>=0,0===e?32:31-(xn(e)/Sn|0)|0},xn=Math.log,Sn=Math.LN2;var kn=64,Cn=4194304;function En(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function On(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=En(l):0!==(i&=a)&&(r=En(i))}else 0!==(a=n&~o)?r=En(a):0!==i&&(r=En(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Nn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wn(t)]=n}function _n(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wn(n),o=1<=Xr),Qr=String.fromCharCode(32),Jr=!1;function Zr(e,t){switch(e){case"keyup":return-1!==Gr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eo(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var to=!1;var no={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!no[e.type]:"textarea"===t}function oo(e,t,n,r){Lt(r),0<(t=ai(t,"onChange")).length&&(n=new kr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var io=null,ao=null;function lo(e){Jo(e,0)}function so(e){if(at(Ti(e)))return e}function co(e,t){if("change"===e)return t}var uo=!1;if(ke){var fo;if(ke){var po="oninput"in document;if(!po){var ho=document.createElement("div");ho.setAttribute("oninput","return;"),po="function"==typeof ho.oninput}fo=po}else fo=!1;uo=fo&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ko(r)}}function Eo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Eo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Oo(){for(var e=window,t=lt();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=lt((e=t.contentWindow).document)}return t}function Do(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function $o(e){var t=Oo(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Eo(n.ownerDocument.documentElement,n)){if(null!==r&&Do(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Co(n,i);var a=Co(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,Po=null,No=null,_o=null,Io=!1;function To(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Io||null==Po||Po!==lt(r)||("selectionStart"in(r=Po)&&Do(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},_o&&So(_o,r)||(_o=r,0<(r=ai(No,"onSelect")).length&&(t=new kr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Po)))}function Fo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ro={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionend:Fo("Transition","TransitionEnd")},Ao={},Mo={};function Lo(e){if(Ao[e])return Ao[e];if(!Ro[e])return e;var t,n=Ro[e];for(t in n)if(n.hasOwnProperty(t)&&t in Mo)return Ao[e]=n[t];return e}ke&&(Mo=document.createElement("div").style,"AnimationEvent"in window||(delete Ro.animationend.animation,delete Ro.animationiteration.animation,delete Ro.animationstart.animation),"TransitionEvent"in window||delete Ro.transitionend.transition);var zo=Lo("animationend"),Bo=Lo("animationiteration"),Ho=Lo("animationstart"),Wo=Lo("transitionend"),Uo=new Map,Vo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Go(e,t){Uo.set(e,t),xe(t,[e])}for(var qo=0;qoAi||(e.current=Ri[Ai],Ri[Ai]=null,Ai--)}function zi(e,t){Ai++,Ri[Ai]=e.current,e.current=t}var Bi={},Hi=Mi(Bi),Wi=Mi(!1),Ui=Bi;function Vi(e,t){var n=e.type.contextTypes;if(!n)return Bi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Gi(e){return null!=(e=e.childContextTypes)}function qi(){Li(Wi),Li(Hi)}function Xi(e,t,n){if(Hi.current!==Bi)throw Error(ve(168));zi(Hi,t),zi(Wi,n)}function Ki(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(ve(108,nt(e)||"Unknown",o));return Ye({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bi,Ui=Hi.current,zi(Hi,e),zi(Wi,Wi.current),!0}function Qi(e,t,n){var r=e.stateNode;if(!r)throw Error(ve(169));n?(e=Ki(e,t,Ui),r.__reactInternalMemoizedMergedChildContext=e,Li(Wi),Li(Hi),zi(Hi,e)):Li(Wi),zi(Wi,n)}var Ji=null,Zi=!1,ea=!1;function ta(e){null===Ji?Ji=[e]:Ji.push(e)}function na(){if(!ea&&null!==Ji){ea=!0;var e=0,t=In;try{var n=Ji;for(In=1;e>=a,o-=a,ua=1<<32-wn(t)+o|n<g?(m=h,h=null):m=h.sibling;var b=f(o,h,l[g],s);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,h=m}if(g===l.length)return n(o,h),va&&fa(o,g),c;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var v=f(o,h,b.value,s);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,g),null===u?c=v:u.sibling=v,u=v,h=m}if(b.done)return n(o,h),va&&fa(o,g),c;if(null===h){for(;!b.done;g++,b=l.next())null!==(b=d(o,b.value,s))&&(a=i(b,a,g),null===u?c=b:u.sibling=b,u=b);return va&&fa(o,g),c}for(h=r(o,h);!b.done;g++,b=l.next())null!==(b=p(h,o,g,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b);return e&&h.forEach((function(e){return t(o,e)})),va&&fa(o,g),c}(s,c,u,h);ll(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(c=o(c,u)).return=s,s=c):(n(s,c),(c=Qu(u,s.mode,h)).return=s,s=c),a(s)):n(s,c)}}var ul=cl(!0),dl=cl(!1),fl={},pl=Mi(fl),hl=Mi(fl),gl=Mi(fl);function ml(e){if(e===fl)throw Error(ve(174));return e}function bl(e,t){switch(zi(gl,t),zi(hl,e),zi(pl,fl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xt(null,"");break;default:t=xt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Li(pl),zi(pl,t)}function vl(){Li(pl),Li(hl),Li(gl)}function yl(e){ml(gl.current);var t=ml(pl.current),n=xt(t,e.type);t!==n&&(zi(hl,e),zi(pl,n))}function wl(e){hl.current===e&&(Li(pl),Li(hl))}var xl=Mi(0);function Sl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kl=[];function Cl(){for(var e=0;en?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{In=n,Ol.transition=r}}function ps(){return zl().memoizedState}function hs(e,t,n){var r=gu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ms(e))bs(t,n);else if(null!==(n=Ha(e,t,n,r))){mu(n,e,r,hu()),vs(n,t,r)}}function gs(e,t,n){var r=gu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ms(e))bs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,xo(l,a)){var s=t.interleaved;return null===s?(o.next=o,Ba(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ha(e,t,o,r))&&(mu(n,e,r,o=hu()),vs(n,t,r))}}function ms(e){var t=e.alternate;return e===$l||null!==t&&t===$l}function bs(e,t){_l=Nl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vs(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,_n(e,n)}}var ys={readContext:La,useCallback:Fl,useContext:Fl,useEffect:Fl,useImperativeHandle:Fl,useInsertionEffect:Fl,useLayoutEffect:Fl,useMemo:Fl,useReducer:Fl,useRef:Fl,useState:Fl,useDebugValue:Fl,useDeferredValue:Fl,useTransition:Fl,useMutableSource:Fl,useSyncExternalStore:Fl,useId:Fl,unstable_isNewReconciler:!1},ws={readContext:La,useCallback:function(e,t){return Ll().memoizedState=[e,void 0===t?null:t],e},useContext:La,useEffect:ns,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,es(4194308,4,as.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var n=Ll();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ll();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hs.bind(null,$l,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ll().memoizedState=e},useState:Ql,useDebugValue:ss,useDeferredValue:function(e){return Ll().memoizedState=e},useTransition:function(){var e=Ql(!1),t=e[0];return e=fs.bind(null,e[1]),Ll().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$l,o=Ll();if(va){if(void 0===n)throw Error(ve(407));n=n()}else{if(n=t(),null===Wc)throw Error(ve(349));0!=(30&Dl)||Gl(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ns(Xl.bind(null,r,i,e),[e]),r.flags|=2048,Jl(9,ql.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ll(),t=Wc.identifierPrefix;if(va){var n=da;t=":"+t+"R"+(n=(ua&~(1<<32-wn(ua)-1)).toString(32)+n),0<(n=Il++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Tl++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xs={readContext:La,useCallback:cs,useContext:La,useEffect:rs,useImperativeHandle:ls,useInsertionEffect:os,useLayoutEffect:is,useMemo:us,useReducer:Hl,useRef:Zl,useState:function(){return Hl(Bl)},useDebugValue:ss,useDeferredValue:function(e){return ds(zl(),jl.memoizedState,e)},useTransition:function(){return[Hl(Bl)[0],zl().memoizedState]},useMutableSource:Ul,useSyncExternalStore:Vl,useId:ps,unstable_isNewReconciler:!1},Ss={readContext:La,useCallback:cs,useContext:La,useEffect:rs,useImperativeHandle:ls,useInsertionEffect:os,useLayoutEffect:is,useMemo:us,useReducer:Wl,useRef:Zl,useState:function(){return Wl(Bl)},useDebugValue:ss,useDeferredValue:function(e){var t=zl();return null===jl?t.memoizedState=e:ds(t,jl.memoizedState,e)},useTransition:function(){return[Wl(Bl)[0],zl().memoizedState]},useMutableSource:Ul,useSyncExternalStore:Vl,useId:ps,unstable_isNewReconciler:!1};function ks(e,t){try{var n="",r=t;do{n+=et(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function Cs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Es(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var Os="function"==typeof WeakMap?WeakMap:Map;function Ds(e,t,n){(n=qa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ou||(ou=!0,iu=r),Es(0,t)},n}function $s(e,t,n){(n=qa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Es(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Es(0,t),"function"!=typeof r&&(null===au?au=new Set([this]):au.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function js(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Os;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Lu.bind(null,e,t,n),t.then(e,e))}function Ps(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ns(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=qa(-1,1)).tag=2,Xa(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var _s=Ie.ReactCurrentOwner,Is=!1;function Ts(e,t,n,r){t.child=null===e?dl(t,null,n,r):ul(t,e.child,n,r)}function Fs(e,t,n,r,o){n=n.render;var i=t.ref;return Ma(t,o),r=Al(e,t,n,r,i,o),n=Ml(),null===e||Is?(va&&n&&ha(t),t.flags|=1,Ts(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,oc(e,t,o))}function Rs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Gu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,As(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:So)(a,r)&&e.ref===t.ref)return oc(e,t,o)}return t.flags|=1,(e=qu(i,r)).ref=t.ref,e.return=t,t.child=e}function As(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(So(i,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,oc(e,t,o);0!=(131072&e.flags)&&(Is=!0)}}return zs(e,t,n,r,o)}function Ms(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},zi(qc,Gc),Gc|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,zi(qc,Gc),Gc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,zi(qc,Gc),Gc|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,zi(qc,Gc),Gc|=r;return Ts(e,t,o,n),t.child}function Ls(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zs(e,t,n,r,o){var i=Gi(n)?Ui:Hi.current;return i=Vi(t,i),Ma(t,o),n=Al(e,t,n,r,i,o),r=Ml(),null===e||Is?(va&&r&&ha(t),t.flags|=1,Ts(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,oc(e,t,o))}function Bs(e,t,n,r,o){if(Gi(n)){var i=!0;Yi(t)}else i=!1;if(Ma(t,o),null===t.stateNode)rc(e,t),rl(t,n,r),il(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=La(c):c=Vi(t,c=Gi(n)?Ui:Hi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&ol(t,a,r,c),Ua=!1;var f=t.memoizedState;a.state=f,Qa(t,r,a,o),s=t.memoizedState,l!==r||f!==s||Wi.current||Ua?("function"==typeof u&&(el(t,n,u,r),s=t.memoizedState),(l=Ua||nl(t,n,l,r,f,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ga(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Pa(t.type,l),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=La(s):s=Vi(t,s=Gi(n)?Ui:Hi.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&ol(t,a,r,s),Ua=!1,f=t.memoizedState,a.state=f,Qa(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Wi.current||Ua?("function"==typeof p&&(el(t,n,p,r),h=t.memoizedState),(c=Ua||nl(t,n,c,r,f,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Hs(e,t,n,r,i,o)}function Hs(e,t,n,r,o,i){Ls(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Qi(t,n,!1),oc(e,t,i);r=t.stateNode,_s.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ul(t,e.child,null,i),t.child=ul(t,null,l,i)):Ts(e,t,l,i),t.memoizedState=r.state,o&&Qi(t,n,!0),t.child}function Ws(e){var t=e.stateNode;t.pendingContext?Xi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(0,t.context,!1),bl(e,t.containerInfo)}function Us(e,t,n,r,o){return Da(),$a(o),t.flags|=256,Ts(e,t,n,r),t.child}var Vs,Gs,qs,Xs,Ks={dehydrated:null,treeContext:null,retryLane:0};function Ys(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qs(e,t,n){var r,o=t.pendingProps,i=xl.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),zi(xl,1&i),null===e)return ka(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Yu(l,o,0,null),e=Ku(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Ys(n),t.memoizedState=Ks,e):Js(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Zs(e,t,a,r=Cs(Error(ve(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Yu({mode:"visible",children:r.children},o,0,null),(i=Ku(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&ul(t,e.child,null,a),t.child.memoizedState=Ys(a),t.memoizedState=Ks,i);if(0==(1&t.mode))return Zs(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Zs(e,t,a,r=Cs(i=Error(ve(419)),r,void 0))}if(l=0!=(a&e.childLanes),Is||l){if(null!==(r=Wc)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Wa(e,o),mu(r,e,o,-1))}return ju(),Zs(e,t,a,r=Cs(Error(ve(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Bu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ba=ki(o.nextSibling),ma=t,va=!0,ya=null,null!==e&&(la[sa++]=ua,la[sa++]=da,la[sa++]=ca,ua=e.id,da=e.overflow,ca=t),t=Js(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=qu(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=qu(r,a):(a=Ku(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Ys(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ks,o}return e=(a=e.child).sibling,o=qu(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Js(e,t){return(t=Yu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Zs(e,t,n,r){return null!==r&&$a(r),ul(t,e.child,null,n),(e=Js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ec(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Aa(e.return,t,n)}function tc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function nc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ts(e,t,r.children,n),0!=(2&(r=xl.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ec(e,n,t);else if(19===e.tag)ec(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(zi(xl,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Sl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Sl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tc(t,!0,n,null,i);break;case"together":tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rc(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Yc|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ve(153));if(null!==t.child){for(n=qu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=qu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ic(e,t){if(!va)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ac(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function lc(e,t,n){var r=t.pendingProps;switch(ga(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ac(t),null;case 1:case 17:return Gi(t.type)&&qi(),ac(t),null;case 3:return r=t.stateNode,vl(),Li(Wi),Li(Hi),Cl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ea(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ya&&(wu(ya),ya=null))),Gs(e,t),ac(t),null;case 5:wl(t);var o=ml(gl.current);if(n=t.type,null!==e&&null!=t.stateNode)qs(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ve(166));return ac(t),null}if(e=ml(pl.current),Ea(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Oi]=t,r[Di]=i,e=0!=(1&t.mode),n){case"dialog":Zo("cancel",r),Zo("close",r);break;case"iframe":case"object":case"embed":Zo("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Oi]=t,e[Di]=r,Vs(e,t,!1,!1),t.stateNode=e;e:{switch(a=_t(n,r),n){case"dialog":Zo("cancel",e),Zo("close",e),o=r;break;case"iframe":case"object":case"embed":Zo("load",e),o=r;break;case"video":case"audio":for(o=0;onu&&(t.flags|=128,r=!0,ic(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Sl(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ic(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!va)return ac(t),null}else 2*dn()-i.renderingStartTime>nu&&1073741824!==n&&(t.flags|=128,r=!0,ic(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=dn(),t.sibling=null,n=xl.current,zi(xl,r?1&n|2:1&n),t):(ac(t),null);case 22:case 23:return Eu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Gc)&&(ac(t),6&t.subtreeFlags&&(t.flags|=8192)):ac(t),null;case 24:case 25:return null}throw Error(ve(156,t.tag))}function sc(e,t){switch(ga(t),t.tag){case 1:return Gi(t.type)&&qi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return vl(),Li(Wi),Li(Hi),Cl(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return wl(t),null;case 13:if(Li(xl),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ve(340));Da()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Li(xl),null;case 4:return vl(),null;case 10:return Ra(t.type._context),null;case 22:case 23:return Eu(),null;default:return null}}Vs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Gs=function(){},qs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ml(pl.current);var i,a=null;switch(n){case"input":o=st(e,o),r=st(e,r),a=[];break;case"select":o=Ye({},o,{value:void 0}),r=Ye({},r,{value:void 0}),a=[];break;case"textarea":o=mt(e,o),r=mt(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=pi)}for(c in Nt(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(we.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(we.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Zo("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Xs=function(e,t,n,r){n!==r&&(t.flags|=4)};var cc=!1,uc=!1,dc="function"==typeof WeakSet?WeakSet:Set,fc=null;function pc(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Mu(e,t,r)}else n.current=null}function hc(e,t,n){try{n()}catch(r){Mu(e,t,r)}}var gc=!1;function mc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&hc(t,n,i)}o=o.next}while(o!==r)}}function bc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function yc(e){var t=e.alternate;null!==t&&(e.alternate=null,yc(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Oi],delete t[Di],delete t[ji],delete t[Pi],delete t[Ni])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wc(e){return 5===e.tag||3===e.tag||4===e.tag}function xc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Sc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=pi));else if(4!==r&&null!==(e=e.child))for(Sc(e,t,n),e=e.sibling;null!==e;)Sc(e,t,n),e=e.sibling}function kc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(kc(e,t,n),e=e.sibling;null!==e;)kc(e,t,n),e=e.sibling}var Cc=null,Ec=!1;function Oc(e,t,n){for(n=n.child;null!==n;)Dc(e,t,n),n=n.sibling}function Dc(e,t,n){if(yn&&"function"==typeof yn.onCommitFiberUnmount)try{yn.onCommitFiberUnmount(vn,n)}catch(l){}switch(n.tag){case 5:uc||pc(n,t);case 6:var r=Cc,o=Ec;Cc=null,Oc(e,t,n),Ec=o,null!==(Cc=r)&&(Ec?(e=Cc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Cc.removeChild(n.stateNode));break;case 18:null!==Cc&&(Ec?(e=Cc,n=n.stateNode,8===e.nodeType?Si(e.parentNode,n):1===e.nodeType&&Si(e,n),nr(e)):Si(Cc,n.stateNode));break;case 4:r=Cc,o=Ec,Cc=n.stateNode.containerInfo,Ec=!0,Oc(e,t,n),Cc=r,Ec=o;break;case 0:case 11:case 14:case 15:if(!uc&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&hc(n,t,a),o=o.next}while(o!==r)}Oc(e,t,n);break;case 1:if(!uc&&(pc(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Mu(n,t,l)}Oc(e,t,n);break;case 21:Oc(e,t,n);break;case 22:1&n.mode?(uc=(r=uc)||null!==n.memoizedState,Oc(e,t,n),uc=r):Oc(e,t,n);break;default:Oc(e,t,n)}}function $c(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new dc),t.forEach((function(t){var r=Hu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function jc(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=dn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mc(r/1960))-r)){e.timeoutHandle=bi(Fu.bind(null,e,eu,ru),r);break}Fu(e,eu,ru);break;default:throw Error(ve(329))}}}return bu(e,dn()),e.callbackNode===n?vu.bind(null,e):null}function yu(e,t){var n=Zc;return e.current.memoizedState.isDehydrated&&(Ou(e,t).flags|=256),2!==(e=Pu(e,t))&&(t=eu,eu=n,null!==t&&wu(t)),e}function wu(e){null===eu?eu=e:eu.push.apply(eu,e)}function xu(e,t){for(t&=~Jc,t&=~Qc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===su)var r=!1;else{if(e=su,su=null,cu=0,0!=(6&Hc))throw Error(ve(331));var o=Hc;for(Hc|=4,fc=e.current;null!==fc;){var i=fc,a=i.child;if(0!=(16&fc.flags)){var l=i.deletions;if(null!==l){for(var s=0;sdn()-tu?Ou(e,0):Jc|=n),bu(e,t)}function zu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Cn,0==(130023424&(Cn<<=1))&&(Cn=4194304)));var n=hu();null!==(e=Wa(e,t))&&(Nn(e,t,n),bu(e,n))}function Bu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),zu(e,n)}function Hu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ve(314))}null!==r&&r.delete(t),zu(e,n)}function Wu(e,t){return ln(e,t)}function Uu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vu(e,t,n,r){return new Uu(e,t,n,r)}function Gu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function qu(e,t){var n=e.alternate;return null===n?((n=Vu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xu(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Gu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Re:return Ku(n.children,o,i,t);case Ae:a=8,o|=8;break;case Me:return(e=Vu(12,n,t,2|o)).elementType=Me,e.lanes=i,e;case He:return(e=Vu(13,n,t,o)).elementType=He,e.lanes=i,e;case We:return(e=Vu(19,n,t,o)).elementType=We,e.lanes=i,e;case Ge:return Yu(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Le:a=10;break e;case ze:a=9;break e;case Be:a=11;break e;case Ue:a=14;break e;case Ve:a=16,r=null;break e}throw Error(ve(130,null==e?e:typeof e,""))}return(t=Vu(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ku(e,t,n,r){return(e=Vu(7,e,r,t)).lanes=n,e}function Yu(e,t,n,r){return(e=Vu(22,e,r,t)).elementType=Ge,e.lanes=n,e.stateNode={isHidden:!1},e}function Qu(e,t,n){return(e=Vu(6,e,null,t)).lanes=n,e}function Ju(e,t,n){return(t=Vu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pn(0),this.expirationTimes=Pn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ed(e,t,n,r,o,i,a,l,s){return e=new Zu(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Vu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Va(i),e}function td(e){if(!e)return Bi;e:{if(tn(e=e._reactInternals)!==e||1!==e.tag)throw Error(ve(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Gi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ve(171))}if(1===e.tag){var n=e.type;if(Gi(n))return Ki(e,n,t)}return t}function nd(e,t,n,r,o,i,a,l,s){return(e=ed(n,r,!0,e,0,i,0,l,s)).context=td(null),n=e.current,(i=qa(r=hu(),o=gu(n))).callback=null!=t?t:null,Xa(n,i,o),e.current.lanes=o,Nn(e,o,r),bu(e,r),e}function rd(e,t,n,r){var o=t.current,i=hu(),a=gu(o);return n=td(n),null===t.context?t.context=n:t.pendingContext=n,(t=qa(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Xa(o,t,a))&&(mu(e,o,a,i),Ka(e,o,a)),a}function od(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function id(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}
+ */function we(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Oe.call(_e,e)||!Oe.call($e,e)&&(De.test(e)?_e[e]=!0:($e[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Ie,Ne);Pe[t]=new je(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Ie,Ne);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Ie,Ne);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)})),Pe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Ae=ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fe=Symbol.for("react.element"),Re=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),Le=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),Be=Symbol.for("react.provider"),He=Symbol.for("react.context"),We=Symbol.for("react.forward_ref"),Ue=Symbol.for("react.suspense"),Ve=Symbol.for("react.suspense_list"),Ge=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),Xe=Symbol.for("react.offscreen"),Ke=Symbol.iterator;function Ye(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Ke&&e[Ke]||e["@@iterator"])?e:null}var Qe,Je=Object.assign;function Ze(e){if(void 0===Qe)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qe=t&&t[1]||""}return"\n"+Qe+e}var et=!1;function tt(e,t){if(!e||et)return"";et=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{et=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ze(e):""}function nt(e){switch(e.tag){case 5:return Ze(e.type);case 16:return Ze("Lazy");case 13:return Ze("Suspense");case 19:return Ze("SuspenseList");case 0:case 2:case 15:return e=tt(e.type,!1);case 11:return e=tt(e.type.render,!1);case 1:return e=tt(e.type,!0);default:return""}}function rt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Me:return"Fragment";case Re:return"Portal";case ze:return"Profiler";case Le:return"StrictMode";case Ue:return"Suspense";case Ve:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case He:return(e.displayName||"Context")+".Consumer";case Be:return(e._context.displayName||"Context")+".Provider";case We:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ge:return null!==(t=e.displayName||null)?t:rt(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return rt(e(t))}catch(n){}}return null}function ot(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rt(t);case 8:return t===Le?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function it(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function at(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function lt(e){e._valueTracker||(e._valueTracker=function(e){var t=at(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function st(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=at(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ct(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ut(e,t){var n=t.checked;return Je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function dt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=it(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function pt(e,t){null!=(t=t.checked)&&Te(e,"checked",t,!1)}function ft(e,t){pt(e,t);var n=it(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?gt(e,t.type,n):t.hasOwnProperty("defaultValue")&>(e,t.type,it(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ht(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function gt(e,t,n){"number"===t&&ct(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mt=Array.isArray;function bt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ct.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Et(e,t)}))}:Et);function Dt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var $t={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_t=["Webkit","ms","Moz","O"];function jt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||$t.hasOwnProperty(e)&&$t[e]?(""+t).trim():t+"px"}function Pt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=jt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys($t).forEach((function(e){_t.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$t[t]=$t[e]}))}));var It=Je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nt(e,t){if(t){if(It[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(we(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(we(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(we(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(we(62))}}function Tt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var At=null;function Ft(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Rt=null,Mt=null,Lt=null;function zt(e){if(e=Ai(e)){if("function"!=typeof Rt)throw Error(we(280));var t=e.stateNode;t&&(t=Ri(t),Rt(e.stateNode,e.type,t))}}function Bt(e){Mt?Lt?Lt.push(e):Lt=[e]:Mt=e}function Ht(){if(Mt){var e=Mt,t=Lt;if(Lt=Mt=null,zt(e),t)for(e=0;e>>=0,0===e?32:31-(kn(e)/Cn|0)|0},kn=Math.log,Cn=Math.LN2;var En=64,On=4194304;function Dn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $n(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=Dn(l):0!==(i&=a)&&(r=Dn(i))}else 0!==(a=n&~o)?r=Dn(a):0!==i&&(r=Dn(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Nn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Sn(t)]=n}function Tn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sn(n),o=1<=Yr),Zr=String.fromCharCode(32),eo=!1;function to(e,t){switch(e){case"keyup":return-1!==Xr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function no(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ro=!1;var oo={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function io(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!oo[e.type]:"textarea"===t}function ao(e,t,n,r){Bt(r),0<(t=si(t,"onChange")).length&&(n=new Er("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var lo=null,so=null;function co(e){ei(e,0)}function uo(e){if(st(Fi(e)))return e}function po(e,t){if("change"===e)return t}var fo=!1;if(Ee){var ho;if(Ee){var go="oninput"in document;if(!go){var mo=document.createElement("div");mo.setAttribute("oninput","return;"),go="function"==typeof mo.oninput}ho=go}else ho=!1;fo=ho&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Eo(r)}}function Do(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Do(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function $o(){for(var e=window,t=ct();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ct((e=t.contentWindow).document)}return t}function _o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function jo(e){var t=$o(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Do(n.ownerDocument.documentElement,n)){if(null!==r&&_o(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Oo(n,i);var a=Oo(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,Io=null,No=null,To=null,Ao=!1;function Fo(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ao||null==Io||Io!==ct(r)||("selectionStart"in(r=Io)&&_o(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},To&&Co(To,r)||(To=r,0<(r=si(No,"onSelect")).length&&(t=new Er("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Io)))}function Ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mo={animationend:Ro("Animation","AnimationEnd"),animationiteration:Ro("Animation","AnimationIteration"),animationstart:Ro("Animation","AnimationStart"),transitionend:Ro("Transition","TransitionEnd")},Lo={},zo={};function Bo(e){if(Lo[e])return Lo[e];if(!Mo[e])return e;var t,n=Mo[e];for(t in n)if(n.hasOwnProperty(t)&&t in zo)return Lo[e]=n[t];return e}Ee&&(zo=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);var Ho=Bo("animationend"),Wo=Bo("animationiteration"),Uo=Bo("animationstart"),Vo=Bo("transitionend"),Go=new Map,qo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Xo(e,t){Go.set(e,t),ke(t,[e])}for(var Ko=0;KoLi||(e.current=Mi[Li],Mi[Li]=null,Li--)}function Hi(e,t){Li++,Mi[Li]=e.current,e.current=t}var Wi={},Ui=zi(Wi),Vi=zi(!1),Gi=Wi;function qi(e,t){var n=e.type.contextTypes;if(!n)return Wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xi(e){return null!=(e=e.childContextTypes)}function Ki(){Bi(Vi),Bi(Ui)}function Yi(e,t,n){if(Ui.current!==Wi)throw Error(we(168));Hi(Ui,t),Hi(Vi,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(we(108,ot(e)||"Unknown",o));return Je({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wi,Gi=Ui.current,Hi(Ui,e),Hi(Vi,Vi.current),!0}function Zi(e,t,n){var r=e.stateNode;if(!r)throw Error(we(169));n?(e=Qi(e,t,Gi),r.__reactInternalMemoizedMergedChildContext=e,Bi(Vi),Bi(Ui),Hi(Ui,e)):Bi(Vi),Hi(Vi,n)}var ea=null,ta=!1,na=!1;function ra(e){null===ea?ea=[e]:ea.push(e)}function oa(){if(!na&&null!==ea){na=!0;var e=0,t=An;try{var n=ea;for(An=1;e>=a,o-=a,pa=1<<32-Sn(t)+o|n<g?(m=h,h=null):m=h.sibling;var b=p(o,h,l[g],s);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,h=m}if(g===l.length)return n(o,h),wa&&ha(o,g),c;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var v=p(o,h,b.value,s);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,g),null===u?c=v:u.sibling=v,u=v,h=m}if(b.done)return n(o,h),wa&&ha(o,g),c;if(null===h){for(;!b.done;g++,b=l.next())null!==(b=d(o,b.value,s))&&(a=i(b,a,g),null===u?c=b:u.sibling=b,u=b);return wa&&ha(o,g),c}for(h=r(o,h);!b.done;g++,b=l.next())null!==(b=f(h,o,g,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b);return e&&h.forEach((function(e){return t(o,e)})),wa&&ha(o,g),c}(s,c,u,h);cl(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(c=o(c,u)).return=s,s=c):(n(s,c),(c=Zu(u,s.mode,h)).return=s,s=c),a(s)):n(s,c)}}var pl=dl(!0),fl=dl(!1),hl={},gl=zi(hl),ml=zi(hl),bl=zi(hl);function vl(e){if(e===hl)throw Error(we(174));return e}function yl(e,t){switch(Hi(bl,t),Hi(ml,e),Hi(gl,hl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kt(null,"");break;default:t=kt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Bi(gl),Hi(gl,t)}function wl(){Bi(gl),Bi(ml),Bi(bl)}function xl(e){vl(bl.current);var t=vl(gl.current),n=kt(t,e.type);t!==n&&(Hi(ml,e),Hi(gl,n))}function Sl(e){ml.current===e&&(Bi(gl),Bi(ml))}var kl=zi(0);function Cl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var El=[];function Ol(){for(var e=0;en?n:4,e(!0);var r=$l.transition;$l.transition={};try{e(!1),t()}finally{An=n,$l.transition=r}}function gs(){return Hl().memoizedState}function ms(e,t,n){var r=bu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vs(e))ys(t,n);else if(null!==(n=Ua(e,t,n,r))){vu(n,e,r,mu()),ws(n,t,r)}}function bs(e,t,n){var r=bu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vs(e))ys(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,ko(l,a)){var s=t.interleaved;return null===s?(o.next=o,Wa(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ua(e,t,o,r))&&(vu(n,e,r,o=mu()),ws(n,t,r))}}function vs(e){var t=e.alternate;return e===jl||null!==t&&t===jl}function ys(e,t){Tl=Nl=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ws(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Tn(e,n)}}var xs={readContext:Ba,useCallback:Rl,useContext:Rl,useEffect:Rl,useImperativeHandle:Rl,useInsertionEffect:Rl,useLayoutEffect:Rl,useMemo:Rl,useReducer:Rl,useRef:Rl,useState:Rl,useDebugValue:Rl,useDeferredValue:Rl,useTransition:Rl,useMutableSource:Rl,useSyncExternalStore:Rl,useId:Rl,unstable_isNewReconciler:!1},Ss={readContext:Ba,useCallback:function(e,t){return Bl().memoizedState=[e,void 0===t?null:t],e},useContext:Ba,useEffect:os,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ns(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=Bl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bl();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ms.bind(null,jl,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Bl().memoizedState=e},useState:Zl,useDebugValue:us,useDeferredValue:function(e){return Bl().memoizedState=e},useTransition:function(){var e=Zl(!1),t=e[0];return e=hs.bind(null,e[1]),Bl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jl,o=Bl();if(wa){if(void 0===n)throw Error(we(407));n=n()}else{if(n=t(),null===Vc)throw Error(we(349));0!=(30&_l)||Xl(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,os(Yl.bind(null,r,i,e),[e]),r.flags|=2048,es(9,Kl.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Bl(),t=Vc.identifierPrefix;if(wa){var n=fa;t=":"+t+"R"+(n=(pa&~(1<<32-Sn(pa)-1)).toString(32)+n),0<(n=Al++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Fl++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ks={readContext:Ba,useCallback:ds,useContext:Ba,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:ls,useMemo:ps,useReducer:Ul,useRef:ts,useState:function(){return Ul(Wl)},useDebugValue:us,useDeferredValue:function(e){return fs(Hl(),Pl.memoizedState,e)},useTransition:function(){return[Ul(Wl)[0],Hl().memoizedState]},useMutableSource:Gl,useSyncExternalStore:ql,useId:gs,unstable_isNewReconciler:!1},Cs={readContext:Ba,useCallback:ds,useContext:Ba,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:ls,useMemo:ps,useReducer:Vl,useRef:ts,useState:function(){return Vl(Wl)},useDebugValue:us,useDeferredValue:function(e){var t=Hl();return null===Pl?t.memoizedState=e:fs(t,Pl.memoizedState,e)},useTransition:function(){return[Vl(Wl)[0],Hl().memoizedState]},useMutableSource:Gl,useSyncExternalStore:ql,useId:gs,unstable_isNewReconciler:!1};function Es(e,t){try{var n="",r=t;do{n+=nt(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function Os(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var $s="function"==typeof WeakMap?WeakMap:Map;function _s(e,t,n){(n=Ka(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){au||(au=!0,lu=r),Ds(0,t)},n}function js(e,t,n){(n=Ka(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){Ds(0,t),"function"!=typeof r&&(null===su?su=new Set([this]):su.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Ps(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new $s;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Bu.bind(null,e,t,n),t.then(e,e))}function Is(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ns(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ka(-1,1)).tag=2,Ya(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Ts=Ae.ReactCurrentOwner,As=!1;function Fs(e,t,n,r){t.child=null===e?fl(t,null,n,r):pl(t,e.child,n,r)}function Rs(e,t,n,r,o){n=n.render;var i=t.ref;return za(t,o),r=Ll(e,t,n,r,i,o),n=zl(),null===e||As?(wa&&n&&ma(t),t.flags|=1,Fs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ac(e,t,o))}function Ms(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Xu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Yu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ls(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Co)(a,r)&&e.ref===t.ref)return ac(e,t,o)}return t.flags|=1,(e=Ku(i,r)).ref=t.ref,e.return=t,t.child=e}function Ls(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Co(i,r)&&e.ref===t.ref){if(As=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,ac(e,t,o);0!=(131072&e.flags)&&(As=!0)}}return Hs(e,t,n,r,o)}function zs(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Hi(Kc,Xc),Xc|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Hi(Kc,Xc),Xc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Hi(Kc,Xc),Xc|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Hi(Kc,Xc),Xc|=r;return Fs(e,t,o,n),t.child}function Bs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hs(e,t,n,r,o){var i=Xi(n)?Gi:Ui.current;return i=qi(t,i),za(t,o),n=Ll(e,t,n,r,i,o),r=zl(),null===e||As?(wa&&r&&ma(t),t.flags|=1,Fs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ac(e,t,o))}function Ws(e,t,n,r,o){if(Xi(n)){var i=!0;Ji(t)}else i=!1;if(za(t,o),null===t.stateNode)ic(e,t),il(t,n,r),ll(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ba(c):c=qi(t,c=Xi(n)?Gi:Ui.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&al(t,a,r,c),Ga=!1;var p=t.memoizedState;a.state=p,Za(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Vi.current||Ga?("function"==typeof u&&(nl(t,n,u,r),s=t.memoizedState),(l=Ga||ol(t,n,l,r,p,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Xa(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Ia(t.type,l),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ba(s):s=qi(t,s=Xi(n)?Gi:Ui.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&al(t,a,r,s),Ga=!1,p=t.memoizedState,a.state=p,Za(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||Vi.current||Ga?("function"==typeof f&&(nl(t,n,f,r),h=t.memoizedState),(c=Ga||ol(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Us(e,t,n,r,i,o)}function Us(e,t,n,r,o,i){Bs(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Zi(t,n,!1),ac(e,t,i);r=t.stateNode,Ts.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=pl(t,e.child,null,i),t.child=pl(t,null,l,i)):Fs(e,t,l,i),t.memoizedState=r.state,o&&Zi(t,n,!0),t.child}function Vs(e){var t=e.stateNode;t.pendingContext?Yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Yi(0,t.context,!1),yl(e,t.containerInfo)}function Gs(e,t,n,r,o){return _a(),ja(o),t.flags|=256,Fs(e,t,n,r),t.child}var qs,Xs,Ks,Ys,Qs={dehydrated:null,treeContext:null,retryLane:0};function Js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zs(e,t,n){var r,o=t.pendingProps,i=kl.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Hi(kl,1&i),null===e)return Ea(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Ju(l,o,0,null),e=Qu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Js(n),t.memoizedState=Qs,e):ec(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,tc(e,t,a,r=Os(Error(we(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ju({mode:"visible",children:r.children},o,0,null),(i=Qu(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&pl(t,e.child,null,a),t.child.memoizedState=Js(a),t.memoizedState=Qs,i);if(0==(1&t.mode))return tc(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,tc(e,t,a,r=Os(i=Error(we(419)),r,void 0))}if(l=0!=(a&e.childLanes),As||l){if(null!==(r=Vc)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Va(e,o),vu(r,e,o,-1))}return Pu(),tc(e,t,a,r=Os(Error(we(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Wu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ya=Ei(o.nextSibling),va=t,wa=!0,xa=null,null!==e&&(ca[ua++]=pa,ca[ua++]=fa,ca[ua++]=da,pa=e.id,fa=e.overflow,da=t),t=ec(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Ku(i,s)).subtreeFlags=14680064&i.subtreeFlags,null!==r?a=Ku(r,a):(a=Qu(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Qs,o}return e=(a=e.child).sibling,o=Ku(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function ec(e,t){return(t=Ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function tc(e,t,n,r){return null!==r&&ja(r),pl(t,e.child,null,n),(e=ec(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function nc(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),La(e.return,t,n)}function rc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function oc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fs(e,t,r.children,n),0!=(2&(r=kl.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nc(e,n,t);else if(19===e.tag)nc(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Hi(kl,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Cl(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Cl(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rc(t,!0,n,null,i);break;case"together":rc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ic(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ac(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Jc|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(we(153));if(null!==t.child){for(n=Ku(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ku(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function lc(e,t){if(!wa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cc(e,t,n){var r=t.pendingProps;switch(ba(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sc(t),null;case 1:case 17:return Xi(t.type)&&Ki(),sc(t),null;case 3:return r=t.stateNode,wl(),Bi(Vi),Bi(Ui),Ol(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==xa&&(Su(xa),xa=null))),Xs(e,t),sc(t),null;case 5:Sl(t);var o=vl(bl.current);if(n=t.type,null!==e&&null!=t.stateNode)Ks(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(we(166));return sc(t),null}if(e=vl(gl.current),Da(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[$i]=t,r[_i]=i,e=0!=(1&t.mode),n){case"dialog":ti("cancel",r),ti("close",r);break;case"iframe":case"object":case"embed":ti("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[$i]=t,e[_i]=r,qs(e,t,!1,!1),t.stateNode=e;e:{switch(a=Tt(n,r),n){case"dialog":ti("cancel",e),ti("close",e),o=r;break;case"iframe":case"object":case"embed":ti("load",e),o=r;break;case"video":case"audio":for(o=0;oou&&(t.flags|=128,r=!0,lc(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Cl(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),lc(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!wa)return sc(t),null}else 2*fn()-i.renderingStartTime>ou&&1073741824!==n&&(t.flags|=128,r=!0,lc(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=fn(),t.sibling=null,n=kl.current,Hi(kl,r?1&n|2:1&n),t):(sc(t),null);case 22:case 23:return Du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Xc)&&(sc(t),6&t.subtreeFlags&&(t.flags|=8192)):sc(t),null;case 24:case 25:return null}throw Error(we(156,t.tag))}function uc(e,t){switch(ba(t),t.tag){case 1:return Xi(t.type)&&Ki(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return wl(),Bi(Vi),Bi(Ui),Ol(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Sl(t),null;case 13:if(Bi(kl),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(we(340));_a()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Bi(kl),null;case 4:return wl(),null;case 10:return Ma(t.type._context),null;case 22:case 23:return Du(),null;default:return null}}qs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Xs=function(){},Ks=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,vl(gl.current);var i,a=null;switch(n){case"input":o=ut(e,o),r=ut(e,r),a=[];break;case"select":o=Je({},o,{value:void 0}),r=Je({},r,{value:void 0}),a=[];break;case"textarea":o=vt(e,o),r=vt(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=gi)}for(c in Nt(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Se.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Se.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ti("scroll",e),a||l===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ys=function(e,t,n,r){n!==r&&(t.flags|=4)};var dc=!1,pc=!1,fc="function"==typeof WeakSet?WeakSet:Set,hc=null;function gc(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){zu(e,t,r)}else n.current=null}function mc(e,t,n){try{n()}catch(r){zu(e,t,r)}}var bc=!1;function vc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&mc(t,n,i)}o=o.next}while(o!==r)}}function yc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function xc(e){var t=e.alternate;null!==t&&(e.alternate=null,xc(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[$i],delete t[_i],delete t[Pi],delete t[Ii],delete t[Ni])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Sc(e){return 5===e.tag||3===e.tag||4===e.tag}function kc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=gi));else if(4!==r&&null!==(e=e.child))for(Cc(e,t,n),e=e.sibling;null!==e;)Cc(e,t,n),e=e.sibling}function Ec(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ec(e,t,n),e=e.sibling;null!==e;)Ec(e,t,n),e=e.sibling}var Oc=null,Dc=!1;function $c(e,t,n){for(n=n.child;null!==n;)_c(e,t,n),n=n.sibling}function _c(e,t,n){if(xn&&"function"==typeof xn.onCommitFiberUnmount)try{xn.onCommitFiberUnmount(wn,n)}catch(l){}switch(n.tag){case 5:pc||gc(n,t);case 6:var r=Oc,o=Dc;Oc=null,$c(e,t,n),Dc=o,null!==(Oc=r)&&(Dc?(e=Oc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Oc.removeChild(n.stateNode));break;case 18:null!==Oc&&(Dc?(e=Oc,n=n.stateNode,8===e.nodeType?Ci(e.parentNode,n):1===e.nodeType&&Ci(e,n),or(e)):Ci(Oc,n.stateNode));break;case 4:r=Oc,o=Dc,Oc=n.stateNode.containerInfo,Dc=!0,$c(e,t,n),Oc=r,Dc=o;break;case 0:case 11:case 14:case 15:if(!pc&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&mc(n,t,a),o=o.next}while(o!==r)}$c(e,t,n);break;case 1:if(!pc&&(gc(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){zu(n,t,l)}$c(e,t,n);break;case 21:$c(e,t,n);break;case 22:1&n.mode?(pc=(r=pc)||null!==n.memoizedState,$c(e,t,n),pc=r):$c(e,t,n);break;default:$c(e,t,n)}}function jc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fc),t.forEach((function(t){var r=Uu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Pc(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=fn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zc(r/1960))-r)){e.timeoutHandle=yi(Ru.bind(null,e,nu,iu),r);break}Ru(e,nu,iu);break;default:throw Error(we(329))}}}return yu(e,fn()),e.callbackNode===n?wu.bind(null,e):null}function xu(e,t){var n=tu;return e.current.memoizedState.isDehydrated&&($u(e,t).flags|=256),2!==(e=Iu(e,t))&&(t=nu,nu=n,null!==t&&Su(t)),e}function Su(e){null===nu?nu=e:nu.push.apply(nu,e)}function ku(e,t){for(t&=~eu,t&=~Zc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===uu)var r=!1;else{if(e=uu,uu=null,du=0,0!=(6&Uc))throw Error(we(331));var o=Uc;for(Uc|=4,hc=e.current;null!==hc;){var i=hc,a=i.child;if(0!=(16&hc.flags)){var l=i.deletions;if(null!==l){for(var s=0;sfn()-ru?$u(e,0):eu|=n),yu(e,t)}function Hu(e,t){0===t&&(0==(1&e.mode)?t=1:(t=On,0==(130023424&(On<<=1))&&(On=4194304)));var n=mu();null!==(e=Va(e,t))&&(Nn(e,t,n),yu(e,n))}function Wu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Hu(e,n)}function Uu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(we(314))}null!==r&&r.delete(t),Hu(e,n)}function Vu(e,t){return cn(e,t)}function Gu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qu(e,t,n,r){return new Gu(e,t,n,r)}function Xu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ku(e,t){var n=e.alternate;return null===n?((n=qu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yu(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Xu(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Me:return Qu(n.children,o,i,t);case Le:a=8,o|=8;break;case ze:return(e=qu(12,n,t,2|o)).elementType=ze,e.lanes=i,e;case Ue:return(e=qu(13,n,t,o)).elementType=Ue,e.lanes=i,e;case Ve:return(e=qu(19,n,t,o)).elementType=Ve,e.lanes=i,e;case Xe:return Ju(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Be:a=10;break e;case He:a=9;break e;case We:a=11;break e;case Ge:a=14;break e;case qe:a=16,r=null;break e}throw Error(we(130,null==e?e:typeof e,""))}return(t=qu(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Qu(e,t,n,r){return(e=qu(7,e,r,t)).lanes=n,e}function Ju(e,t,n,r){return(e=qu(22,e,r,t)).elementType=Xe,e.lanes=n,e.stateNode={isHidden:!1},e}function Zu(e,t,n){return(e=qu(6,e,null,t)).lanes=n,e}function ed(e,t,n){return(t=qu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function td(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=In(0),this.expirationTimes=In(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=In(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function nd(e,t,n,r,o,i,a,l,s){return e=new td(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=qu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qa(i),e}function rd(e){if(!e)return Wi;e:{if(rn(e=e._reactInternals)!==e||1!==e.tag)throw Error(we(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(we(171))}if(1===e.tag){var n=e.type;if(Xi(n))return Qi(e,n,t)}return t}function od(e,t,n,r,o,i,a,l,s){return(e=nd(n,r,!0,e,0,i,0,l,s)).context=rd(null),n=e.current,(i=Ka(r=mu(),o=bu(n))).callback=null!=t?t:null,Ya(n,i,o),e.current.lanes=o,Nn(e,o,r),yu(e,r),e}function id(e,t,n,r){var o=t.current,i=mu(),a=bu(o);return n=rd(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ka(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ya(o,t,a))&&(vu(e,o,a,i),Qa(e,o,a)),a}function ad(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ld(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}
/**
- * @license lucide-react v0.293.0 - ISC
+ * @license lucide-react v0.297.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */xd=Sd.createRoot,Sd.hydrateRoot;var Dd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
+ */kd=Cd.createRoot,Cd.hydrateRoot;var _d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
/**
- * @license lucide-react v0.293.0 - ISC
+ * @license lucide-react v0.297.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
- */const $d=(e,t)=>{const n=B.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:a="",children:l,...s},c)=>{return B.createElement("svg",{ref:c,...Dd,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,a].join(" "),...s},[...t.map((([e,t])=>B.createElement(e,t))),...(Array.isArray(l)?l:[l])||[]]);var u}));return n.displayName=`${e}`,n},jd=$d("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Pd=$d("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),Nd=$d("Brush",[["path",{d:"m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08",key:"1styjt"}],["path",{d:"M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z",key:"z0l1mu"}]]),_d=$d("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),Id=$d("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Td=$d("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Fd=$d("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Rd=$d("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Ad=$d("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Md=$d("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Ld=$d("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),zd=$d("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]),Bd=$d("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]),Hd=$d("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),Wd=$d("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),Ud=$d("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),Vd=$d("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Gd=$d("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),qd=$d("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),Xd=$d("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Kd=$d("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),Yd=$d("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),Qd=$d("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Jd=$d("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),Zd=$d("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),ef=$d("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),tf=$d("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),nf=$d("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}]]),rf=$d("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),of=$d("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),af=$d("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]),lf=$d("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),sf=$d("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),cf=$d("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),uf=$d("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),df=$d("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),ff=$d("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),pf=$d("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),hf=$d("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function gf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function mf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bf(e,t){for(var n=0;n2||Yf(Hf)>3?"":" "}function tp(e,t){for(;--t&&Gf()&&!(Hf<48||Hf>102||Hf>57&&Hf<65||Hf>70&&Hf<97););return Kf(e,Xf()+(t<6&&32==qf()&&32==Gf()))}function np(e){for(;Gf();)switch(Hf){case e:return Bf;case 34:case 39:34!==e&&39!==e&&np(Hf);break;case 40:41===e&&np(e);break;case 92:Gf()}return Bf}function rp(e,t){for(;Gf()&&e+Hf!==57&&(e+Hf!==84||47!==qf()););return"/*"+Kf(t,Bf-1)+"*"+$f(47===e?e:Gf())}function op(e){for(;!Yf(qf());)Gf();return Kf(e,Bf)}function ip(e){return Jf(ap("",null,null,null,[""],e=Qf(e),0,[0],e))}function ap(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=i,S=r,k=y;m;)switch(h=v,v=Gf()){case 40:if(108!=h&&58==If(k,d-1)){-1!=_f(k+=Nf(Zf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=Zf(v);break;case 9:case 10:case 13:case 32:k+=ep(h);break;case 92:k+=tp(Xf()-1,7);continue;case 47:switch(qf()){case 42:case 47:Af(sp(rp(Gf(),Xf()),t,n),s);break;default:k+="/"}break;case 123*g:l[c++]=Ff(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=Nf(k,/\f/g,"")),p>0&&Ff(k)-d&&Af(p>32?cp(k+";",r,n,d-1):cp(Nf(k," ","")+";",r,n,d-2),s);break;case 59:k+=";";default:if(Af(S=lp(k,t,n,c,u,o,l,y,w=[],x=[],d),i),123===v)if(0===u)ap(k,t,S,S,w,i,d,l,x);else switch(99===f&&110===If(k,3)?100:f){case 100:case 108:case 109:case 115:ap(e,S,S,r&&Af(lp(e,S,S,0,0,o,l,y,o,w=[],d),x),o,x,d,l,r?w:x);break;default:ap(k,S,S,S,[""],x,0,l,x)}}c=u=p=0,g=b=1,y=k="",d=a;break;case 58:d=1+Ff(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(Hf=Bf>0?If(Wf,--Bf):0,Lf--,10===Hf&&(Lf=1,Mf--),Hf))continue;switch(k+=$f(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:l[c++]=(Ff(k)-1)*b,b=1;break;case 64:45===qf()&&(k+=Zf(Gf())),f=qf(),u=d=Ff(y=k+=op(Xf())),v++;break;case 45:45===h&&2==Ff(k)&&(g=0)}}return i}function lp(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,f=0===o?i:[""],p=Rf(f),h=0,g=0,m=0;h0?f[b]+" "+v:Nf(v,/&\f/g,f[b])))&&(s[m++]=y);return Uf(e,t,n,0===o?Cf:l,s,c,u)}function sp(e,t,n){return Uf(e,t,n,kf,$f(Hf),Tf(e,2,-2),0)}function cp(e,t,n,r){return Uf(e,t,n,Ef,Tf(e,0,r),Tf(e,r+1,-1),r)}function up(e,t){for(var n="",r=Rf(e),o=0;o6)switch(If(e,t+1)){case 109:if(45!==If(e,t+4))break;case 102:return Nf(e,/(.+:)(.+)-([^]+)/,"$1"+Sf+"$2-$3$1"+xf+(108==If(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_f(e,"stretch")?yp(Nf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==If(e,t+1))break;case 6444:switch(If(e,Ff(e)-3-(~_f(e,"!important")&&10))){case 107:return Nf(e,":",":"+Sf)+e;case 101:return Nf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Sf+(45===If(e,14)?"inline-":"")+"box$3$1"+Sf+"$2$3$1"+wf+"$2box$3")+e}break;case 5936:switch(If(e,t+11)){case 114:return Sf+e+wf+Nf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Sf+e+wf+Nf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Sf+e+wf+Nf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Sf+e+wf+e+e}return e}var wp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ef:e.return=yp(e.value,e.length);break;case Of:return up([Vf(e,{value:Nf(e.value,"@","@"+Sf)})],r);case Cf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return up([Vf(e,{props:[Nf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return up([Vf(e,{props:[Nf(t,/:(plac\w+)/,":"+Sf+"input-$1")]}),Vf(e,{props:[Nf(t,/:(plac\w+)/,":-moz-$1")]}),Vf(e,{props:[Nf(t,/:(plac\w+)/,wf+"input-$1")]})],r)}return""}))}}],xp=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||wp,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:Pp}};function Ip(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Tp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Fp=function(e,t,n){Tp(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function Rp(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Ap(e,t,n){var r=[],o=Ip(e,r,n);return r.length<2?n:o+t(r)}var Mp=function(e){var t=xp(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function zh(e,t,n){var r=B.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var Bh={};function Hh(e,t){}function Wh(e,t){}function Uh(e,t,n){t||Bh[n]||(e(!1,n),Bh[n]=!0)}function Vh(e,t){Uh(Hh,e,t)}function Gh(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(Vh(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):ig}function sg(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function cg(e){return Array.from((ag.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function ug(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!tg())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,s=document.createElement("style");s.setAttribute(rg,a),l&&i&&s.setAttribute(og,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=sg(t),u=c.firstChild;if(r){if(l){var d=cg(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(rg)))return!1;var t=Number(e.getAttribute(og)||0);return i>=t}));if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function dg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cg(sg(t)).find((function(n){return n.getAttribute(lg(t))===e}))}function fg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=dg(e,t);n&&sg(t).removeChild(n)}function pg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=ag.get(e);if(!n||!ng(document,n)){var r=ug("",t),o=r.parentNode;ag.set(e,o),e.removeChild(r)}}(sg(n),n);var r=dg(t,n);if(r){var o,i,a;if(null!==(o=n.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce))r.nonce=null===(a=n.csp)||void 0===a?void 0:a.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var l=ug(e,n);return l.setAttribute(lg(n),t),l}function hg(e){if(Array.isArray(e))return e}function gg(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mg(e,t){return hg(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,o=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Fh(e,t)||gg()}var bg=function(){function e(){mf(this,e),Ed(this,"cache",void 0),Ed(this,"keys",void 0),Ed(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return vf(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=mg(e,2)[1];return r.internalGet(t)[1]zg&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Kh,'="').concat(e,'"]')).forEach((function(e){var n;e[Qh]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Lg.delete(e)}))}var Hg=function(e,t,n,r){var o=Mh(Mh({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o};function Wg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B.useContext(Zh).cache.instanceId,o=n.salt,i=void 0===o?"":o,a=n.override,l=void 0===a?Ag:a,s=n.formatToken,c=n.getComputedToken,u=function(e,t){for(var n=Sg,r=0;r2||bm(um)>3?"":" "}function wm(e,t){for(;--t&&pm()&&!(um<48||um>102||um>57&&um<65||um>70&&um<97););return mm(e,gm()+(t<6&&32==hm()&&32==pm()))}function xm(e){for(;pm();)switch(um){case e:return cm;case 34:case 39:34!==e&&39!==e&&xm(um);break;case 40:41===e&&xm(e);break;case 92:pm()}return cm}function Sm(e,t){for(;pm()&&e+um!==57&&(e+um!==84||47!==hm()););return"/*"+mm(t,cm-1)+"*"+Jg(47===e?e:pm())}function km(e){for(;!bm(hm());)pm();return mm(e,cm)}function Cm(e){return function(e){return dm="",e}(Em("",null,null,null,[""],e=function(e){return am=lm=1,sm=om(dm=e),cm=0,[]}(e),0,[0],e))}function Em(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=i,S=r,k=y;m;)switch(h=v,v=pm()){case 40:if(108!=h&&58==nm(k,d-1)){-1!=tm(k+=em(vm(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=vm(v);break;case 9:case 10:case 13:case 32:k+=ym(h);break;case 92:k+=wm(gm()-1,7);continue;case 47:switch(hm()){case 42:case 47:im(Dm(Sm(pm(),gm()),t,n,s),s);break;default:k+="/"}break;case 123*g:l[c++]=om(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=em(k,/\f/g,"")),p>0&&om(k)-d&&im(p>32?$m(k+";",r,n,d-1,s):$m(em(k," ","")+";",r,n,d-2,s),s);break;case 59:k+=";";default:if(im(S=Om(k,t,n,c,u,o,l,y,w=[],x=[],d,i),i),123===v)if(0===u)Em(k,t,S,S,w,i,d,l,x);else switch(99===f&&110===nm(k,3)?100:f){case 100:case 108:case 109:case 115:Em(e,S,S,r&&im(Om(e,S,S,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Em(k,S,S,S,[""],x,0,l,x)}}c=u=p=0,g=b=1,y=k="",d=a;break;case 58:d=1+om(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(um=cm>0?nm(dm,--cm):0,lm--,10===um&&(lm=1,am--),um))continue;switch(k+=Jg(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:l[c++]=(om(k)-1)*b,b=1;break;case 64:45===hm()&&(k+=vm(pm())),f=hm(),u=d=om(y=k+=km(gm())),v++;break;case 45:45===h&&2==om(k)&&(g=0)}}return i}function Om(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,m=0,b=0;g0?p[v]+" "+y:em(y,/&\f/g,p[v])))&&(s[b++]=w);return fm(e,t,n,0===o?Gg:l,s,c,u,d)}function Dm(e,t,n,r){return fm(e,t,n,Vg,Jg(um),rm(e,2,-2),0,r)}function $m(e,t,n,r,o){return fm(e,t,n,qg,rm(e,0,r),rm(e,r+1,-1),r,o)}function jm(e,t){for(var n="",r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=void 0===u?[]:u;n.linters;var f="",p={};function h(t){var r=t.getName(l);if(!p[r]){var o=mg(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(g.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var s=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==kd(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===kd(e)&&e&&("_skip_check_"in e||Am in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Ug[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")};var u,d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===kd(r)&&null!=r&&r[Am]&&Array.isArray(d)?d.forEach((function(n){e(t,n)})):e(t,d)}else{var g=!1,m=t.trim(),b=!1;(o||i)&&l?m.startsWith("@")?g=!0:m=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Rh(n.slice(1))).join(" ")})).join(",")}(t,l,c):!o||l||"&"!==m&&""!==m||(m="",b=!0);var v=mg(e(r,n,{root:b,injectHash:g,parentSelectors:[].concat(Rh(a),[m])}),2),y=v[0],w=v[1];p=Mh(Mh({},p),w),f+="".concat(m).concat(y)}}))}})),o){if(s&&jg()){var m=s.split(","),b=m[m.length-1].trim();f="@layer ".concat(b," {").concat(f,"}"),m.length>1&&(f="@layer ".concat(s,"{%%%:%}").concat(f))}}else f="{".concat(f,"}");return[f,p]};function zm(){return null}function Bm(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=void 0===s?0:s,u=B.useContext(Zh),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,v=u.cache,y=n._tokenKey,w=[y].concat(Rh(r)),x=Rm,S=Rg("style",w,(function(){var e=w.join("|");if(Fm(e)){var n=function(e){var t=Nm[e],n=null;if(t&&tg())if(Tm)n=Im;else{var r=document.querySelector("style[".concat(Yh,'="').concat(Nm[e],'"]'));r?n=r.innerHTML:delete Nm[e]}return[n,t]}(e),a=mg(n,2),s=a[0],u=a[1];if(s)return[s,y,u,{},l,c]}var d=t(),f=mg(Lm(d,{hashId:o,hashPriority:p,layer:i,path:r.join("-"),transformers:m,linters:b}),2),h=f[0],g=f[1],v=Mm(h),x=function(e,t){return Lh("".concat(e.join("%")).concat(t))}(w,v);return[v,y,x,g,l,c]}),(function(e,t){var n=mg(e,3)[2];(t||d)&&Rm&&fg(n,{mark:Yh})}),(function(e){var t=mg(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(x&&n!==Im){var i={mark:Yh,prepend:"queue",attachTo:h,priority:c},l="function"==typeof a?a():a;l&&(i.csp={nonce:l});var s=pg(n,r,i);s[Qh]=v.instanceId,s.setAttribute(Kh,y),Object.keys(o).forEach((function(e){pg(Mm(o[e]),"_effect-".concat(e),i)}))}})),k=mg(S,3),C=k[0],E=k[1],O=k[2];return function(e){var t,n;g&&!x&&f?t=B.createElement("style",Zp({},(Ed(n={},Kh,E),Ed(n,Yh,O),n),{dangerouslySetInnerHTML:{__html:C}})):t=B.createElement(zm,null);return B.createElement(B.Fragment,null,t,e)}}var Hm=function(){function e(t,n){mf(this,e),Ed(this,"name",void 0),Ed(this,"style",void 0),Ed(this,"_keyframe",!0),this.name=t,this.style=n}return vf(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Wm(e){return e.notSplit=!0,e}Wm(["borderTop","borderBottom"]),Wm(["borderTop"]),Wm(["borderBottom"]),Wm(["borderLeft","borderRight"]),Wm(["borderLeft"]),Wm(["borderRight"]);var Um=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"];function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gm(e){for(var t=1;t{const n=W.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:a="",children:l,...s},c)=>{return W.createElement("svg",{ref:c,..._d,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:["lucide",`lucide-${u=e,u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,a].join(" "),...s},[...t.map((([e,t])=>W.createElement(e,t))),...Array.isArray(l)?l:[l]]);var u}));return n.displayName=`${e}`,n},Pd=jd("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Id=jd("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),Nd=jd("Brush",[["path",{d:"m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08",key:"1styjt"}],["path",{d:"M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z",key:"z0l1mu"}]]),Td=jd("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),Ad=jd("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Fd=jd("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Rd=jd("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Md=jd("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Ld=jd("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),zd=jd("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Bd=jd("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),Hd=jd("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]),Wd=jd("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]),Ud=jd("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),Vd=jd("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),Gd=jd("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),qd=jd("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Xd=jd("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),Kd=jd("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),Yd=jd("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Qd=jd("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),Jd=jd("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),Zd=jd("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),ep=jd("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),tp=jd("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),np=jd("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),rp=jd("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),op=jd("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}]]),ip=jd("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),ap=jd("Pin",[["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z",key:"13yl11"}]]),lp=jd("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]),sp=jd("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),cp=jd("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),up=jd("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),dp=jd("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),pp=jd("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),fp=jd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),hp=jd("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),gp=jd("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function mp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function bp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vp(e,t){for(var n=0;n2||Qp(Wp)>3?"":" "}function nf(e,t){for(;--t&&qp()&&!(Wp<48||Wp>102||Wp>57&&Wp<65||Wp>70&&Wp<97););return Yp(e,Kp()+(t<6&&32==Xp()&&32==qp()))}function rf(e){for(;qp();)switch(Wp){case e:return Hp;case 34:case 39:34!==e&&39!==e&&rf(Wp);break;case 40:41===e&&rf(e);break;case 92:qp()}return Hp}function of(e,t){for(;qp()&&e+Wp!==57&&(e+Wp!==84||47!==Xp()););return"/*"+Yp(t,Hp-1)+"*"+_p(47===e?e:qp())}function af(e){for(;!Qp(Xp());)qp();return Yp(e,Hp)}function lf(e){return Zp(sf("",null,null,null,[""],e=Jp(e),0,[0],e))}function sf(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=i,S=r,k=y;m;)switch(h=v,v=qp()){case 40:if(108!=h&&58==Tp(k,d-1)){-1!=Np(k+=Ip(ef(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=ef(v);break;case 9:case 10:case 13:case 32:k+=tf(h);break;case 92:k+=nf(Kp()-1,7);continue;case 47:switch(Xp()){case 42:case 47:Mp(uf(of(qp(),Kp()),t,n),s);break;default:k+="/"}break;case 123*g:l[c++]=Fp(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=Ip(k,/\f/g,"")),f>0&&Fp(k)-d&&Mp(f>32?df(k+";",r,n,d-1):df(Ip(k," ","")+";",r,n,d-2),s);break;case 59:k+=";";default:if(Mp(S=cf(k,t,n,c,u,o,l,y,w=[],x=[],d),i),123===v)if(0===u)sf(k,t,S,S,w,i,d,l,x);else switch(99===p&&110===Tp(k,3)?100:p){case 100:case 108:case 109:case 115:sf(e,S,S,r&&Mp(cf(e,S,S,0,0,o,l,y,o,w=[],d),x),o,x,d,l,r?w:x);break;default:sf(k,S,S,S,[""],x,0,l,x)}}c=u=f=0,g=b=1,y=k="",d=a;break;case 58:d=1+Fp(k),f=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(Wp=Hp>0?Tp(Up,--Hp):0,zp--,10===Wp&&(zp=1,Lp--),Wp))continue;switch(k+=_p(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:l[c++]=(Fp(k)-1)*b,b=1;break;case 64:45===Xp()&&(k+=ef(qp())),p=Xp(),u=d=Fp(y=k+=af(Kp())),v++;break;case 45:45===h&&2==Fp(k)&&(g=0)}}return i}function cf(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,p=0===o?i:[""],f=Rp(p),h=0,g=0,m=0;h0?p[b]+" "+v:Ip(v,/&\f/g,p[b])))&&(s[m++]=y);return Vp(e,t,n,0===o?Ep:l,s,c,u)}function uf(e,t,n){return Vp(e,t,n,Cp,_p(Wp),Ap(e,2,-2),0)}function df(e,t,n,r){return Vp(e,t,n,Op,Ap(e,0,r),Ap(e,r+1,-1),r)}function pf(e,t){for(var n="",r=Rp(e),o=0;o6)switch(Tp(e,t+1)){case 109:if(45!==Tp(e,t+4))break;case 102:return Ip(e,/(.+:)(.+)-([^]+)/,"$1"+kp+"$2-$3$1"+Sp+(108==Tp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Np(e,"stretch")?xf(Ip(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Tp(e,t+1))break;case 6444:switch(Tp(e,Fp(e)-3-(~Np(e,"!important")&&10))){case 107:return Ip(e,":",":"+kp)+e;case 101:return Ip(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kp+(45===Tp(e,14)?"inline-":"")+"box$3$1"+kp+"$2$3$1"+xp+"$2box$3")+e}break;case 5936:switch(Tp(e,t+11)){case 114:return kp+e+xp+Ip(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kp+e+xp+Ip(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kp+e+xp+Ip(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kp+e+xp+e+e}return e}var Sf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Op:e.return=xf(e.value,e.length);break;case Dp:return pf([Gp(e,{value:Ip(e.value,"@","@"+kp)})],r);case Ep:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pf([Gp(e,{props:[Ip(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return pf([Gp(e,{props:[Ip(t,/:(plac\w+)/,":"+kp+"input-$1")]}),Gp(e,{props:[Ip(t,/:(plac\w+)/,":-moz-$1")]}),Gp(e,{props:[Ip(t,/:(plac\w+)/,xp+"input-$1")]})],r)}return""}))}}],kf=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Sf,a={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:If}};function Af(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ff=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Rf=function(e,t,n){Ff(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function Mf(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Lf(e,t,n){var r=[],o=Af(e,r,n);return r.length<2?n:o+t(r)}var zf=function(e){var t=kf(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Hh(e,t,n){var r=W.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var Wh={};function Uh(e,t){}function Vh(e,t){}function Gh(e,t,n){t||Wh[n]||(e(!1,n),Wh[n]=!0)}function qh(e,t){Gh(Uh,e,t)}function Xh(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(qh(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):lg}function ug(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function dg(e){return Array.from((sg.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function pg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!rg())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,s=document.createElement("style");s.setAttribute(ig,a),l&&i&&s.setAttribute(ag,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=ug(t),u=c.firstChild;if(r){if(l){var d=dg(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ig)))return!1;var t=Number(e.getAttribute(ag)||0);return i>=t}));if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function fg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return dg(ug(t)).find((function(n){return n.getAttribute(cg(t))===e}))}function hg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=fg(e,t);n&&ug(t).removeChild(n)}function gg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=sg.get(e);if(!n||!og(document,n)){var r=pg("",t),o=r.parentNode;sg.set(e,o),e.removeChild(r)}}(ug(n),n);var r=fg(t,n);if(r){var o,i,a;if(null!==(o=n.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce))r.nonce=null===(a=n.csp)||void 0===a?void 0:a.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var l=pg(e,n);return l.setAttribute(cg(n),t),l}function mg(e){if(Array.isArray(e))return e}function bg(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vg(e,t){return mg(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,o=u}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Rh(e,t)||bg()}var yg=function(){function e(){bp(this,e),Dd(this,"cache",void 0),Dd(this,"keys",void 0),Dd(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return yp(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=vg(e,2)[1];return r.internalGet(t)[1]Hg&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Qh,'="').concat(e,'"]')).forEach((function(e){var n;e[Zh]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Bg.delete(e)}))}var Ug=function(e,t,n,r){var o=zh(zh({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o};function Vg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=W.useContext(tg).cache.instanceId,o=n.salt,i=void 0===o?"":o,a=n.override,l=void 0===a?Lg:a,s=n.formatToken,c=n.getComputedToken,u=function(e,t){for(var n=Cg,r=0;r2||ym(pm)>3?"":" "}function Sm(e,t){for(;--t&&gm()&&!(pm<48||pm>102||pm>57&&pm<65||pm>70&&pm<97););return vm(e,bm()+(t<6&&32==mm()&&32==gm()))}function km(e){for(;gm();)switch(pm){case e:return dm;case 34:case 39:34!==e&&39!==e&&km(pm);break;case 40:41===e&&km(e);break;case 92:gm()}return dm}function Cm(e,t){for(;gm()&&e+pm!==57&&(e+pm!==84||47!==mm()););return"/*"+vm(t,dm-1)+"*"+em(47===e?e:gm())}function Em(e){for(;!ym(mm());)gm();return vm(e,dm)}function Om(e){return function(e){return fm="",e}(Dm("",null,null,null,[""],e=function(e){return sm=cm=1,um=am(fm=e),dm=0,[]}(e),0,[0],e))}function Dm(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=i,S=r,k=y;m;)switch(h=v,v=gm()){case 40:if(108!=h&&58==om(k,d-1)){-1!=rm(k+=nm(wm(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=wm(v);break;case 9:case 10:case 13:case 32:k+=xm(h);break;case 92:k+=Sm(bm()-1,7);continue;case 47:switch(mm()){case 42:case 47:lm(_m(Cm(gm(),bm()),t,n,s),s);break;default:k+="/"}break;case 123*g:l[c++]=am(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=nm(k,/\f/g,"")),f>0&&am(k)-d&&lm(f>32?jm(k+";",r,n,d-1,s):jm(nm(k," ","")+";",r,n,d-2,s),s);break;case 59:k+=";";default:if(lm(S=$m(k,t,n,c,u,o,l,y,w=[],x=[],d,i),i),123===v)if(0===u)Dm(k,t,S,S,w,i,d,l,x);else switch(99===p&&110===om(k,3)?100:p){case 100:case 108:case 109:case 115:Dm(e,S,S,r&&lm($m(e,S,S,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Dm(k,S,S,S,[""],x,0,l,x)}}c=u=f=0,g=b=1,y=k="",d=a;break;case 58:d=1+am(k),f=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(pm=dm>0?om(fm,--dm):0,cm--,10===pm&&(cm=1,sm--),pm))continue;switch(k+=em(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:l[c++]=(am(k)-1)*b,b=1;break;case 64:45===mm()&&(k+=wm(gm())),p=mm(),u=d=am(y=k+=Em(bm())),v++;break;case 45:45===h&&2==am(k)&&(g=0)}}return i}function $m(e,t,n,r,o,i,a,l,s,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),g=0,m=0,b=0;g0?f[v]+" "+y:nm(y,/&\f/g,f[v])))&&(s[b++]=w);return hm(e,t,n,0===o?Xg:l,s,c,u,d)}function _m(e,t,n,r){return hm(e,t,n,qg,em(pm),im(e,2,-2),0,r)}function jm(e,t,n,r,o){return hm(e,t,n,Kg,im(e,0,r),im(e,r+1,-1),r,o)}function Pm(e,t){for(var n="",r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=void 0===u?[]:u;n.linters;var p="",f={};function h(t){var r=t.getName(l);if(!f[r]){var o=vg(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];f[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(g.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)p+="".concat(r,"\n");else if(r._keyframe)h(r);else{var s=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==Ed(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Ed(e)&&e&&("_skip_check_"in e||Lm in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Gg[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(l)),p+="".concat(n,":").concat(r,";")};var u,d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===Ed(r)&&null!=r&&r[Lm]&&Array.isArray(d)?d.forEach((function(n){e(t,n)})):e(t,d)}else{var g=!1,m=t.trim(),b=!1;(o||i)&&l?m.startsWith("@")?g=!0:m=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Mh(n.slice(1))).join(" ")})).join(",")}(t,l,c):!o||l||"&"!==m&&""!==m||(m="",b=!0);var v=vg(e(r,n,{root:b,injectHash:g,parentSelectors:[].concat(Mh(a),[m])}),2),y=v[0],w=v[1];f=zh(zh({},f),w),p+="".concat(m).concat(y)}}))}})),o){if(s&&Pg()){var m=s.split(","),b=m[m.length-1].trim();p="@layer ".concat(b," {").concat(p,"}"),m.length>1&&(p="@layer ".concat(s,"{%%%:%}").concat(p))}}else p="{".concat(p,"}");return[p,f]};function Hm(){return null}function Wm(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=void 0===s?0:s,u=W.useContext(tg),d=u.autoClear;u.mock;var p=u.defaultCache,f=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,v=u.cache,y=n._tokenKey,w=[y].concat(Mh(r)),x=Mm,S=Mg("style",w,(function(){var e=w.join("|");if(Rm(e)){var n=function(e){var t=Nm[e],n=null;if(t&&rg())if(Fm)n=Am;else{var r=document.querySelector("style[".concat(Jh,'="').concat(Nm[e],'"]'));r?n=r.innerHTML:delete Nm[e]}return[n,t]}(e),a=vg(n,2),s=a[0],u=a[1];if(s)return[s,y,u,{},l,c]}var d=t(),p=vg(Bm(d,{hashId:o,hashPriority:f,layer:i,path:r.join("-"),transformers:m,linters:b}),2),h=p[0],g=p[1],v=zm(h),x=function(e,t){return Bh("".concat(e.join("%")).concat(t))}(w,v);return[v,y,x,g,l,c]}),(function(e,t){var n=vg(e,3)[2];(t||d)&&Mm&&hg(n,{mark:Jh})}),(function(e){var t=vg(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(x&&n!==Am){var i={mark:Jh,prepend:"queue",attachTo:h,priority:c},l="function"==typeof a?a():a;l&&(i.csp={nonce:l});var s=gg(n,r,i);s[Zh]=v.instanceId,s.setAttribute(Qh,y),Object.keys(o).forEach((function(e){gg(zm(o[e]),"_effect-".concat(e),i)}))}})),k=vg(S,3),C=k[0],E=k[1],O=k[2];return function(e){var t,n;g&&!x&&p?t=W.createElement("style",th({},(Dd(n={},Qh,E),Dd(n,Jh,O),n),{dangerouslySetInnerHTML:{__html:C}})):t=W.createElement(Hm,null);return W.createElement(W.Fragment,null,t,e)}}var Um=function(){function e(t,n){bp(this,e),Dd(this,"name",void 0),Dd(this,"style",void 0),Dd(this,"_keyframe",!0),this.name=t,this.style=n}return yp(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Vm(e){return e.notSplit=!0,e}Vm(["borderTop","borderBottom"]),Vm(["borderTop"]),Vm(["borderBottom"]),Vm(["borderLeft","borderRight"]),Vm(["borderLeft"]),Vm(["borderRight"]);var Gm=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"];function qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xm(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=[];return H.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(mb(e)):gb.isFragment(e)&&e.props?n=n.concat(mb(e.props.children,t)):n.push(e))})),n}function bb(e){return e instanceof HTMLElement||e instanceof SVGElement}function vb(e){return bb(e)?e:e instanceof H.Component?yd.findDOMNode(e):null}function yb(e,t){"function"==typeof e?e(t):"object"===kd(e)&&e&&"current"in e&&(e.current=t)}function wb(){for(var e=arguments.length,t=new Array(e),n=0;n0},e.prototype.connect_=function(){Eb&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),jb?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Eb&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;$b.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Nb=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Wb="undefined"!=typeof WeakMap?new WeakMap:new Cb,Ub=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Pb.getInstance(),r=new Hb(t,n,this);Wb.set(this,r)}}();["observe","unobserve","disconnect"].forEach((function(e){Ub.prototype[e]=function(){var t;return(t=Wb.get(this))[e].apply(t,arguments)}}));var Vb=void 0!==Ob.ResizeObserver?Ob.ResizeObserver:Ub,Gb=new Map;var qb=new Vb((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Gb.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Xb(e,t){return(Xb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Kb(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&&Xb(e,t)}function Yb(e){return(Yb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qb(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(GY){return!1}}function Jb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zb(e){var t=Qb();return function(){var n,r=Yb(e);if(t){var o=Yb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jb(e)}(this,n)}}var ev=function(e){Kb(n,B.Component);var t=Zb(n);function n(){return mf(this,n),t.apply(this,arguments)}return vf(n,[{key:"render",value:function(){return this.props.children}}]),n}();function tv(e,t){var n=e.children,r=e.disabled,o=B.useRef(null),i=B.useRef(null),a=B.useContext(kb),l="function"==typeof n,s=l?n(o):n,c=B.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&B.isValidElement(s)&&Sb(s),d=xb(u?s.ref:null,o),f=function(){var e;return vb(o.current)||(o.current&&"object"===kd(o.current)?vb(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||vb(i.current)};B.useImperativeHandle(t,(function(){return f()}));var p=B.useRef(e);p.current=e;var h=B.useCallback((function(e){var t=p.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,s=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),f=Math.floor(l);if(c.current.width!==d||c.current.height!==f||c.current.offsetWidth!==s||c.current.offsetHeight!==u){var h={width:d,height:f,offsetWidth:s,offsetHeight:u};c.current=h;var g=s===Math.round(i)?i:s,m=u===Math.round(l)?l:u,b=Mh(Mh({},h),{},{offsetWidth:g,offsetHeight:m});null==a||a(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return B.useEffect((function(){var e,t,n=f();return n&&!r&&(e=n,t=h,Gb.has(e)||(Gb.set(e,new Set),qb.observe(e)),Gb.get(e).add(t)),function(){return function(e,t){Gb.has(e)&&(Gb.get(e).delete(t),Gb.get(e).size||(qb.unobserve(e),Gb.delete(e)))}(n,h)}}),[o.current,r]),B.createElement(ev,{ref:i},u?B.cloneElement(s,{ref:d}):s)}var nv=B.forwardRef(tv);function rv(e,t){var n=e.children;return("function"==typeof n?[n]:mb(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return B.createElement(nv,Zp({},e,{key:o,ref:0===r?t:void 0}),n)}))}var ov=B.forwardRef(rv);function iv(e,t){var n=Mh({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}ov.Collection=function(e){var t=e.children,n=e.onBatchResize,r=B.useRef(0),o=B.useRef([]),i=B.useContext(kb),a=B.useCallback((function(e,t,a){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){l===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return B.createElement(kb.Provider,{value:a},t)};var av=function(e){return+setTimeout(e,16)},lv=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(av=function(e){return window.requestAnimationFrame(e)},lv=function(e){return window.cancelAnimationFrame(e)});var sv=0,cv=new Map;function uv(e){cv.delete(e)}var dv=function(e){var t=sv+=1;return function n(r){if(0===r)uv(t),e();else{var o=av((function(){n(r-1)}));cv.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};dv.cancel=function(e){var t=cv.get(e);return uv(e),lv(t)};const fv=B.createContext({});function pv(e){return hg(e)||Th(e)||Fh(e)||gg()}function hv(e,t){for(var n=e,r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!hv(e,t.slice(0,-1))?e:gv(e,t,n,r)}function bv(e){return Array.isArray(e)?[]:{}}var vv="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function yv(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=wv,e},kv=B.createContext(void 0);const Cv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ev={lang:Object.assign({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"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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:Object.assign({},Cv)},Ov="${label} is not a valid ${type}",Dv={locale:"en",Pagination:{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"},DatePicker:Ev,TimePicker:Cv,Calendar:Ev,global:{placeholder:"Please select"},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",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"},PageHeader:{back:"Back"},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:Ov,method:Ov,array:Ov,object:Ov,number:Ov,date:Ov,boolean:Ov,integer:Ov,float:Ov,regexp:Ov,email:Ov,url:Ov,hex:Ov},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}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let $v=Object.assign({},Dv.Modal),jv=[];const Pv=()=>jv.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Dv.Modal);function Nv(){return $v}const _v=B.createContext(void 0),Iv=(e,t)=>{const n=B.useContext(_v);return[B.useMemo((()=>{var r;const o=t||Dv[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]),B.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Dv.locale:e}),[n])]},Tv=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;B.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return jv.push(t),$v=Pv(),()=>{jv=jv.filter((e=>e!==t)),$v=Pv()}}$v=Object.assign({},Dv.Modal)}(t&&t.Modal);return e}),[t]);const o=B.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return B.createElement(_v.Provider,{value:o},n)};function Fv(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Rv(e){return Math.min(1,Math.max(0,e))}function Av(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mv(e){return e<=1?"".concat(100*Number(e),"%"):e}function Lv(e){return 1===e.length?"0"+e:String(e)}function zv(e,t,n){e=Fv(e,255),t=Fv(t,255),n=Fv(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Hv(e,t,n){e=Fv(e,255),t=Fv(t,255),n=Fv(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=0===r?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=qv(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Av(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=Hv(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Hv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=zv(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=zv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Wv(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[Lv(Math.round(e).toString(16)),Lv(Math.round(t).toString(16)),Lv(Math.round(n).toString(16)),Lv((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Fv(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Fv(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Wv(this.r,this.g,this.b,!1),t=0,n=Object.entries(Gv);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Rv(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Rv(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Rv(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Rv(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ey*t:Math.round(e.h)+ey*t:n?Math.round(e.h)+ey*t:Math.round(e.h)-ey*t)<0?r+=360:r>=360&&(r-=360),r}function dy(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-ty*t:t===ay?e.s+ty:e.s+ny*t)>1&&(r=1),n&&t===iy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function fy(e,t,n){var r;return(r=n?e.v+ry*t:e.v-oy*t)>1&&(r=1),Number(r.toFixed(2))}function py(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=qv(e),o=iy;o>0;o-=1){var i=sy(r),a=cy(qv({h:uy(i,o,!0),s:dy(i,o,!0),v:fy(i,o,!0)}));n.push(a)}n.push(cy(r));for(var l=1;l<=ay;l+=1){var s=sy(r),c=cy(qv({h:uy(s,l),s:dy(s,l),v:fy(s,l)}));n.push(c)}return"dark"===t.theme?ly.map((function(e){var r,o,i,a=e.index,l=e.opacity;return cy((r=qv(t.backgroundColor||"#141414"),o=qv(n[a]),i=100*l/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var hy={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"},gy={},my={};Object.keys(hy).forEach((function(e){gy[e]=py(hy[e]),gy[e].primary=gy[e][5],my[e]=py(hy[e],{theme:"dark",backgroundColor:"#141414"}),my[e].primary=my[e][5]}));var by=gy.blue;const vy=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const yy={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"},wy=Object.assign(Object.assign({},yy),{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});function xy(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(o),p=n(i),h=n(a),g=n(l),m=r(c,u),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[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:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Zv("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Sy=e=>{let t=e,n=e,r=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?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const ky=(e,t)=>new Zv(e).setAlpha(t).toRgbString(),Cy=(e,t)=>new Zv(e).darken(t).toHexString(),Ey=e=>{const t=py(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]}},Oy=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ky(r,.88),colorTextSecondary:ky(r,.65),colorTextTertiary:ky(r,.45),colorTextQuaternary:ky(r,.25),colorFill:ky(r,.15),colorFillSecondary:ky(r,.06),colorFillTertiary:ky(r,.04),colorFillQuaternary:ky(r,.02),colorBgLayout:Cy(n,4),colorBgContainer:Cy(n,0),colorBgElevated:Cy(n,0),colorBgSpotlight:ky(r,.85),colorBgBlur:"transparent",colorBorder:Cy(n,15),colorBorderSecondary:Cy(n,6)}};const Dy=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function $y(e){const t=Object.keys(yy).map((t=>{const n=py(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),xy(e,{generateColorPalettes:Ey,generateNeutralColorPalettes:Oy})),Dy(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),vy(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},Sy(r))}(e))}const jy=xg($y),Py={token:wy,override:{override:wy},hashed:!0},Ny=H.createContext(Py),_y="anticon",Iy=B.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:_y}),Ty=`-ant-${Date.now()}-${Math.random()}`;function Fy(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Zv(e),i=py(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Zv(t.primaryColor),i=py(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Zv(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);tg()&&pg(n,`${Ty}-dynamic-theme`)}const Ry=B.createContext(!1),Ay=e=>{let{children:t,disabled:n}=e;const r=B.useContext(Ry);return B.createElement(Ry.Provider,{value:null!=n?n:r},t)},My=Ry,Ly=B.createContext(void 0),zy=e=>{let{children:t,size:n}=e;const r=B.useContext(Ly);return B.createElement(Ly.Provider,{value:n||r},t)},By=Ly;const Hy=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Wy="5.11.5";function Uy(e){return e>=0&&e<=255}function Vy(e,t){const{r:n,g:r,b:o,a:i}=new Zv(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Zv(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-l*(1-c))/c),i=Math.round((o-s*(1-c))/c);if(Uy(e)&&Uy(t)&&Uy(i))return new Zv({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new Zv({r:n,g:r,b:o,a:1}).toRgbString()}var Gy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Vy(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:Vy(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Vy(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*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:Vy(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 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\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:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Zv("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Zv("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Zv("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Xy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=Xy(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=qy(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Xy(n,["theme"]);let i=o;r&&(i=Ky(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function Yy(){const{token:e,hashed:t,theme:n,override:r}=H.useContext(Ny),o=`${Wy}-${t||""}`,i=n||jy,[a,l]=Wg(i,[wy,e],{salt:o,override:r,getComputedToken:Ky,formatToken:qy});return[i,a,t?l:""]}function Qy(e){var t=B.useRef();t.current=e;var n=B.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o{const i=e/2,a=i,l=1*n/Math.sqrt(2),s=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,f=u,p=2*i-l,h=s,g=2*i-0,m=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),v=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${v}px 100%, 50% ${v}px, ${2*i-v}px 100%, ${v}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${l} ${s} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${f} L ${p} ${h} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},nw={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},rw=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},ow=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),iw=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},aw=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),lw=e=>({"&:focus-visible":Object.assign({},aw(e))}),sw="undefined"!=typeof CSSINJS_STATISTIC;let cw=!0;function uw(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),cw=!0,r}const dw={};function fw(){}const pw=(e,t)=>{const[n,r]=Yy();return Bm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}})}]))};function hw(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return e=>{const[o,l,s]=Yy(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=B.useContext(Iy),f=c(),p={theme:o,token:l,hashId:s,nonce:()=>null==d?void 0:d.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Bm(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",f]}),(()=>[{"&":ow(l)}])),pw(u,d),[Bm(Object.assign(Object.assign({},p),{path:[a,e,u]}),(()=>{const{token:o,flush:a}=function(e){let t,n=e,r=fw;return sw&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(cw&&t.add(n),e[n])}),r=(e,n)=>{var r;dw[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=dw[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(l),c=Object.assign({},l[i]);if(r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==c?void 0:c[t])||(null==c?void 0:c[n]))&&(null!==(r=c[n])&&void 0!==r||(c[n]=null==c?void 0:c[t]))}))}const d="function"==typeof n?n(uw(o,null!=c?c:{})):n,p=Object.assign(Object.assign({},d),c),h=uw(o,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${f}`},p),g=t(h,{hashId:s,prefixCls:e,rootPrefixCls:f,iconPrefixCls:u,overrideComponentToken:c});return a(i,p),[!1===r.resetStyle?null:iw(h,e),g]})),s]}}const gw=(e,t,n,r)=>{const o=hw(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}};function mw(e,t){return Hy.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}var bw=["children"],vw=B.createContext({});function yw(e){var t=e.children,n=Od(e,bw);return B.createElement(vw.Provider,{value:n},t)}var ww=function(e){Kb(n,B.Component);var t=Zb(n);function n(){return mf(this,n),t.apply(this,arguments)}return vf(n,[{key:"render",value:function(){return this.props.children}}]),n}(),xw="none",Sw="appear",kw="enter",Cw="leave",Ew="none",Ow="prepare",Dw="start",$w="active",jw="end",Pw="prepared";function Nw(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var _w,Iw,Tw,Fw=(_w=tg(),Iw="undefined"!=typeof window?window:{},Tw={animationend:Nw("Animation","AnimationEnd"),transitionend:Nw("Transition","TransitionEnd")},_w&&("AnimationEvent"in Iw||delete Tw.animationend.animation,"TransitionEvent"in Iw||delete Tw.transitionend.transition),Tw),Rw={};if(tg()){var Aw=document.createElement("div");Rw=Aw.style}var Mw={};function Lw(e){if(Mw[e])return Mw[e];var t=Fw[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=dv((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=mg(a,2),s=l[0],c=l[1];var u=t?Kw:Xw;return qw((function(){if(o!==Ew&&o!==jw){var e=u.indexOf(o),t=u[e+1],r=n(o);r===Yw?i(t,!0):t&&s((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),B.useEffect((function(){return function(){c()}}),[]),[function(){i(Ow,!0)},o]};const ex=function(e){var t=e;"object"===kd(e)&&(t=e.transitionSupport);var n=B.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,l=e.forceRender,s=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,B.useContext(vw).motion),p=B.useRef(),h=B.useRef();var g=function(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,a=r.motionAppear,l=void 0===a||a,s=r.motionLeave,c=void 0===s||s,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,v=r.onAppearActive,y=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,S=r.onEnterEnd,k=r.onLeaveEnd,C=r.onVisibleChanged,E=mg(Jy(),2),O=E[0],D=E[1],$=mg(Jy(xw),2),j=$[0],P=$[1],N=mg(Jy(null),2),_=N[0],I=N[1],T=B.useRef(!1),F=B.useRef(null);function R(){return n()}var A=B.useRef(!1);function M(){P(xw,!0),I(null,!0)}function L(e){var t=R();if(!e||e.deadline||e.target===t){var n,r=A.current;j===Sw&&r?n=null==x?void 0:x(t,e):j===kw&&r?n=null==S?void 0:S(t,e):j===Cw&&r&&(n=null==k?void 0:k(t,e)),j!==xw&&r&&!1!==n&&M()}}var z=mg(Gw(L),1)[0],H=function(e){var t,n,r;switch(e){case Sw:return Ed(t={},Ow,f),Ed(t,Dw,g),Ed(t,$w,v),t;case kw:return Ed(n={},Ow,p),Ed(n,Dw,m),Ed(n,$w,y),n;case Cw:return Ed(r={},Ow,h),Ed(r,Dw,b),Ed(r,$w,w),r;default:return{}}},W=B.useMemo((function(){return H(j)}),[j]),U=mg(Zw(j,!e,(function(e){if(e===Ow){var t=W[Ow];return t?t(R()):Yw}var n;return G in W&&I((null===(n=W[G])||void 0===n?void 0:n.call(W,R(),null))||null),G===$w&&(z(R()),u>0&&(clearTimeout(F.current),F.current=setTimeout((function(){L({deadline:!0})}),u))),G===Pw&&M(),Qw})),2),V=U[0],G=U[1],q=Jw(G);A.current=q,qw((function(){D(t);var n,r=T.current;T.current=!0,!r&&t&&l&&(n=Sw),r&&t&&i&&(n=kw),(r&&!t&&c||!r&&d&&!t&&c)&&(n=Cw);var o=H(n);n&&(e||o[Ow])?(P(n),V()):P(xw)}),[t]),B.useEffect((function(){(j===Sw&&!l||j===kw&&!i||j===Cw&&!c)&&P(xw)}),[l,i,c]),B.useEffect((function(){return function(){T.current=!1,clearTimeout(F.current)}}),[]);var X=B.useRef(!1);B.useEffect((function(){O&&(X.current=!0),void 0!==O&&j===xw&&((X.current||O)&&(null==C||C(O)),X.current=!0)}),[O,j]);var K=_;return W[Ow]&&G===Dw&&(K=Mh({transition:"none"},K)),[j,G,K,null!=O?O:t]}(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:vb(h.current)}catch(GY){return null}}),e),m=mg(g,4),b=m[0],v=m[1],y=m[2],w=m[3],x=B.useRef(w);w&&(x.current=!0);var S,k=B.useCallback((function(e){p.current=e,yb(n,e)}),[n]),C=Mh(Mh({},d),{},{visible:o});if(s)if(b===xw)S=w?s(Mh({},C),k):!a&&x.current&&u?s(Mh(Mh({},C),{},{className:u}),k):l||!a&&!u?s(Mh(Mh({},C),{},{style:{display:"none"}}),k):null;else{var E,O;v===Ow?O="prepare":Jw(v)?O="active":v===Dw&&(O="start");var D=Vw(c,"".concat(b,"-").concat(O));S=s(Mh(Mh({},C),{},{className:Ym(Vw(c,b),(E={},Ed(E,D,D&&O),Ed(E,c,"string"==typeof c),E)),style:y}),k)}else S=null;B.isValidElement(S)&&Sb(S)&&(S.ref||(S=B.cloneElement(S,{ref:k})));return B.createElement(ww,{ref:h},S)}));return n.displayName="CSSMotion",n}(Hw);var tx="add",nx="keep",rx="remove",ox="removed";function ix(e){var t;return Mh(Mh({},t=e&&"object"===kd(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function ax(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ix)}var lx=["component","children","onVisibleChanged","onAllRemoved"],sx=["status"],cx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const ux=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ex,n=function(e){Kb(r,B.Component);var n=Zb(r);function r(){var e;mf(this,r);for(var t=arguments.length,o=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ax(e),a=ax(t);i.forEach((function(e){for(var t=!1,i=r;i1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==rx}))).forEach((function(t){t.key===e&&(t.status=nx)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ox||e.status!==rx}))}}}]),r}();return Ed(n,"defaultProps",{component:"div"}),n}(Hw);function dx(e){const{children:t}=e,[,n]=Yy(),{motion:r}=n,o=B.useRef(!1);return o.current=o.current||!1===r,o.current?B.createElement(yw,{motion:r},t):t}const fx=()=>null;const px=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let hx,gx,mx;function bx(){return hx||"ant"}function vx(){return gx||_y}const yx=()=>({getPrefixCls:(e,t)=>t||(e?`${bx()}-${e}`:bx()),getIconPrefixCls:vx,getRootPrefixCls:()=>hx||bx(),getTheme:()=>mx}),wx=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:g,parentContext:m,iconPrefixCls:b,theme:v,componentDisabled:y,segmented:w,statistic:x,spin:S,calendar:k,carousel:C,cascader:E,collapse:O,typography:D,checkbox:$,descriptions:j,divider:P,drawer:N,skeleton:_,steps:I,image:T,layout:F,list:R,mentions:A,modal:M,progress:L,result:z,slider:H,breadcrumb:W,menu:U,pagination:V,input:G,empty:q,badge:X,radio:K,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ie,timePicker:ae,upload:le,notification:se,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:ge,warning:me}=e,be=B.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||m.getPrefixCls("");return t?`${o}-${t}`:o}),[m.getPrefixCls,e.prefixCls]),ve=b||m.iconPrefixCls||_y,ye=n||m.csp;pw(ve,ye);const we=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:Py;return zh((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Gh(e,t[n],!0)))))}(v,m.theme),xe={csp:ye,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:h,getPrefixCls:be,iconPrefixCls:ve,theme:we,segmented:w,statistic:x,spin:S,calendar:k,carousel:C,cascader:E,collapse:O,typography:D,checkbox:$,descriptions:j,divider:P,drawer:N,skeleton:_,steps:I,image:T,input:G,layout:F,list:R,mentions:A,modal:M,progress:L,result:z,slider:H,breadcrumb:W,menu:U,pagination:V,empty:q,badge:X,radio:K,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ie,timePicker:ae,upload:le,notification:se,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:ge,warning:me},Se=Object.assign({},m);Object.keys(xe).forEach((e=>{void 0!==xe[e]&&(Se[e]=xe[e])})),px.forEach((t=>{const n=e[t];n&&(Se[t]=n)}));const ke=zh((()=>Se),Se,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ce=B.useMemo((()=>({prefixCls:ve,csp:ye})),[ve,ye]);let Ee=B.createElement(B.Fragment,null,B.createElement(fx,{dropdownMatchSelectWidth:f}),t);const Oe=B.useMemo((()=>{var e,t,n,r;return yv((null===(e=Dv.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ke.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=ke.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[ke,null==a?void 0:a.validateMessages]);Object.keys(Oe).length>0&&(Ee=B.createElement(kv.Provider,{value:Oe},Ee)),l&&(Ee=B.createElement(Tv,{locale:l,_ANT_MARK__:"internalMark"},Ee)),(ve||ye)&&(Ee=B.createElement(fv.Provider,{value:Ce},Ee)),s&&(Ee=B.createElement(zy,{size:s},Ee)),Ee=B.createElement(dx,null,Ee);const De=B.useMemo((()=>{const e=we||{},{algorithm:t,token:n,components:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0)?xg(t):jy,a={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=xg(r.algorithm)),delete r.algorithm),a[t]=r}));const l=Object.assign(Object.assign({},wy),n);return Object.assign(Object.assign({},o),{theme:i,token:l,components:a,override:Object.assign({override:l},a)})}),[we]);return v&&(Ee=B.createElement(Ny.Provider,{value:De},Ee)),ke.warning&&(Ee=B.createElement(xv.Provider,{value:ke.warning},Ee)),void 0!==y&&(Ee=B.createElement(Ay,{disabled:y},Ee)),B.createElement(Iy.Provider,{value:ke},Ee)},xx=e=>{const t=B.useContext(Iy),n=B.useContext(_v);return B.createElement(wx,Object.assign({parentContext:t,legacyLocale:n},e))};xx.ConfigContext=Iy,xx.SizeContext=By,xx.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(hx=t),void 0!==n&&(gx=n),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?mx=r:Fy(bx(),r))},xx.useConfig=function(){return{componentDisabled:B.useContext(My),componentSize:B.useContext(By)}},Object.defineProperty(xx,"SizeContext",{get:()=>By});const Sx=xx;const kx={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"};function Cx(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ex(e){return function(e){return Cx(e)instanceof ShadowRoot}(e)?Cx(e):null}function Ox(e){return"object"===kd(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===kd(e.icon)||"function"==typeof e.icon)}function Dx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function $x(e,t,n){return n?H.createElement(e.tag,Mh(Mh({key:t},Dx(e.attrs)),n),(e.children||[]).map((function(n,r){return $x(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):H.createElement(e.tag,Mh({key:t},Dx(e.attrs)),(e.children||[]).map((function(n,r){return $x(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function jx(e){return py(e)[0]}function Px(e){return e?Array.isArray(e)?e:[e]:[]}var Nx=["icon","className","onClick","style","primaryColor","secondaryColor"],_x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Ix=function(e){var t,n,r,o,i,a,l,s=e.icon,c=e.className,u=e.onClick,d=e.style,f=e.primaryColor,p=e.secondaryColor,h=Od(e,Nx),g=B.useRef(),m=_x;if(f&&(m={primaryColor:f,secondaryColor:p||jx(f)}),t=g,n=B.useContext(fv),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-block;\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}\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::before,\n.anticon-spin {\n display: inline-block;\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",o&&(i=i.replace(/anticon/g,o)),B.useEffect((function(){var e=Ex(t.current);pg(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),a=Ox(s),l="icon should be icon definiton, but got ".concat(s),Vh(a,"[@ant-design/icons] ".concat(l)),!Ox(s))return null;var b=s;return b&&"function"==typeof b.icon&&(b=Mh(Mh({},b),{},{icon:b.icon(m.primaryColor,m.secondaryColor)})),$x(b.icon,"svg-".concat(b.name),Mh(Mh({className:c,onClick:u,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:g}))};Ix.displayName="IconReact",Ix.getTwoToneColors=function(){return Mh({},_x)},Ix.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;_x.primaryColor=t,_x.secondaryColor=n||jx(t),_x.calculated=!!n};const Tx=Ix;function Fx(e){var t=mg(Px(e),2),n=t[0],r=t[1];return Tx.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Rx=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fx(by.primary);var Ax=B.forwardRef((function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=Od(e,Rx),d=B.useContext(fv),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,g=Ym(h,p,(Ed(n={},"".concat(p,"-").concat(o.name),!!o.name),Ed(n,"".concat(p,"-spin"),!!i||"loading"===o.name),n),r),m=l;void 0===m&&s&&(m=-1);var b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,v=mg(Px(c),2),y=v[0],w=v[1];return B.createElement("span",Zp({role:"img","aria-label":o.name},u,{ref:t,tabIndex:m,onClick:s,className:g}),B.createElement(Tx,{icon:o,primaryColor:y,secondaryColor:w,style:b}))}));Ax.displayName="AntdIcon",Ax.getTwoToneColor=function(){var e=Tx.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Ax.setTwoToneColor=Fx;const Mx=Ax;var Lx=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:kx}))};const zx=B.forwardRef(Lx);const Bx={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"};var Hx=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:Bx}))};const Wx=B.forwardRef(Hx);const Ux={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"};var Vx=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:Ux}))};const Gx=B.forwardRef(Vx);const qx={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"};var Xx=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:qx}))};const Kx=B.forwardRef(Xx);const Yx={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"};var Qx=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:Yx}))};const Jx=B.forwardRef(Qx);var Zx="".concat("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"," ").concat("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]+/),eS="aria-",tS="data-";function nS(e,t){return 0===e.indexOf(t)}function rS(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Mh({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||nS(n,eS))||t.data&&nS(n,tS)||t.attr&&Zx.includes(n))&&(r[n]=e[n])})),r}const{isValidElement:oS}=W;function iS(e){return e&&oS(e)&&e.type===B.Fragment}function aS(e,t,n){return oS(e)?B.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function lS(e,t){return aS(e,e,t)}const sS=(e,t,n,r,o)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),cS=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},rw(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},uS=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":sS(o,r,n,e,t),"&-info":sS(p,f,d,e,t),"&-warning":sS(l,a,i,e,t),"&-error":Object.assign(Object.assign({},sS(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},dS=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},fS=e=>[cS(e),uS(e),dS(e)],pS=hw("Alert",(e=>[fS(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})));const hS={success:zx,info:Jx,error:Wx,warning:Kx},gS=e=>{const{icon:t,prefixCls:n,type:r}=e,o=hS[r]||null;return t?aS(t,B.createElement("span",{className:`${n}-icon`},t),(()=>({className:Ym(`${n}-icon`,{[t.props.className]:t.props.className})}))):B.createElement(o,{className:`${n}-icon`})},mS=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o}=e,i=!0===r||void 0===r?B.createElement(Gx,null):r;return t?B.createElement("button",{type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i):null},bS=e=>{const{description:t,prefixCls:n,message:r,banner:o,className:i,rootClassName:a,style:l,onMouseEnter:s,onMouseLeave:c,onClick:u,afterClose:d,showIcon:f,closable:p,closeText:h,closeIcon:g,action:m}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;y(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},$=B.useMemo((()=>void 0!==e.type?e.type:o?"warning":"info"),[e.type,o]),j=B.useMemo((()=>!!h||("boolean"==typeof p?p:!1!==g&&null!=g)),[h,g,p]),P=!(!o||void 0!==f)||f,N=Ym(C,`${C}-${$}`,{[`${C}-with-description`]:!!t,[`${C}-no-icon`]:!P,[`${C}-banner`]:!!o,[`${C}-rtl`]:"rtl"===S},null==k?void 0:k.className,i,a,O),_=rS(b,{aria:!0,data:!0});return E(B.createElement(ex,{visible:!v,motionName:`${C}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:d},(n=>{let{className:o,style:i}=n;return B.createElement("div",Object.assign({ref:w,"data-show":!v,className:Ym(N,o),style:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.style),l),i),onMouseEnter:s,onMouseLeave:c,onClick:u,role:"alert"},_),P?B.createElement(gS,{description:t,icon:e.icon,prefixCls:C,type:$}):null,B.createElement("div",{className:`${C}-content`},r?B.createElement("div",{className:`${C}-message`},r):null,t?B.createElement("div",{className:`${C}-description`},t):null),m?B.createElement("div",{className:`${C}-action`},m):null,B.createElement(mS,{isClosable:j,prefixCls:C,closeIcon:h||g,handleClose:D}))})))};const vS=function(e){Kb(n,B.Component);var t=Zb(n);function n(){var e;return mf(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return vf(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:r,info:o}=this.state,i=o&&o.componentStack?o.componentStack:null,a=void 0===e?(r||"").toString():e,l=void 0===t?i:t;return r?B.createElement(bS,{type:"error",message:a,description:B.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},l)}):n}}]),n}(),yS=bS;yS.ErrorBoundary=vS;const wS=yS,xS=e=>"object"==typeof e&&null!=e&&1===e.nodeType,SS=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,kS=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&l>=n?i-e-r:a>t&&ln?a-t+o:0,ES=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},OS=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!xS(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;xS(h)&&d(h);){if(h=ES(h),h===f){p.push(h);break}null!=h&&h===document.body&&kS(h)&&!kS(document.documentElement)||null!=h&&kS(h,u)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:w,top:x,right:S,bottom:k,left:C}=e.getBoundingClientRect(),{top:E,right:O,bottom:D,left:$}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let j="start"===l||"nearest"===l?x-E:"end"===l?k+D:x+y/2-E+D,P="center"===s?C+w/2-$+O:"end"===s?S+O:C-$;const N=[];for(let _=0;_=0&&C>=0&&k<=m&&S<=g&&x>=r&&k<=i&&C>=c&&S<=o)return N;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),O=parseInt(u.borderBottomWidth,10);let D=0,$=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-O:0,F="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,R="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)D="start"===l?j:"end"===l?j-m:"nearest"===l?CS(v,v+m,m,h,O,v+j,v+j+y,y):j-m/2,$="start"===s?P:"center"===s?P-g/2:"end"===s?P-g:CS(b,b+g,g,d,E,b+P,b+P+w,w),D=Math.max(0,D+v),$=Math.max(0,$+b);else{D="start"===l?j-r-h:"end"===l?j-i+O+T:"nearest"===l?CS(r,i,t,h,O+T,j,j+y,y):j-(r+t/2)+T/2,$="start"===s?P-c-d:"center"===s?P-(c+n/2)+I/2:"end"===s?P-o+E+I:CS(c,o,n,d,E+I,P,P+w,w);const{scrollLeft:a,scrollTop:u}=e;D=0===R?0:Math.max(0,Math.min(u+D/R,e.scrollHeight-t/R+T)),$=0===F?0:Math.max(0,Math.min(a+$/F,e.scrollWidth-n/F+I)),j+=u-D,P+=a-$}N.push({el:e,top:D,left:$})}return N},DS=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};var $S={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){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=$S.F1&&t<=$S.F12)return!1;switch(t){case $S.ALT:case $S.CAPS_LOCK:case $S.CONTEXT_MENU:case $S.CTRL:case $S.DOWN:case $S.END:case $S.ESC:case $S.HOME:case $S.INSERT:case $S.LEFT:case $S.MAC_FF_META:case $S.META:case $S.NUMLOCK:case $S.NUM_CENTER:case $S.PAGE_DOWN:case $S.PAGE_UP:case $S.PAUSE:case $S.PRINT_SCREEN:case $S.RIGHT:case $S.SHIFT:case $S.UP:case $S.WIN_KEY:case $S.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=$S.ZERO&&e<=$S.NINE)return!0;if(e>=$S.NUM_ZERO&&e<=$S.NUM_MULTIPLY)return!0;if(e>=$S.A&&e<=$S.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case $S.SPACE:case $S.QUESTION_MARK:case $S.NUM_PLUS:case $S.NUM_MINUS:case $S.NUM_PERIOD:case $S.NUM_DIVISION:case $S.SEMICOLON:case $S.DASH:case $S.EQUALS:case $S.COMMA:case $S.PERIOD:case $S.SLASH:case $S.APOSTROPHE:case $S.SINGLE_QUOTE:case $S.OPEN_SQUARE_BRACKET:case $S.BACKSLASH:case $S.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jS=B.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,l=e.eventKey,s=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,p=e.onClick,h=e.onNoticeClose,g=e.times,m=e.hovering,b=mg(B.useState(!1),2),v=b[0],y=b[1],w=m||v,x=function(){h(l)};B.useEffect((function(){if(!w&&a>0){var e=setTimeout((function(){x()}),1e3*a);return function(){clearTimeout(e)}}}),[a,w,g]);var S="".concat(n,"-notice");return B.createElement("div",Zp({},f,{ref:t,className:Ym(S,o,Ed({},"".concat(S,"-closable"),c)),style:r,onMouseEnter:function(e){var t;y(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;y(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:p}),B.createElement("div",{className:"".concat(S,"-content")},s),c&&B.createElement("a",{tabIndex:0,className:"".concat(S,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==$S.ENTER||x()},onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}},d))})),PS=H.createContext({}),NS=function(e){var t=e.children,n=e.classNames;return H.createElement(PS.Provider,{value:{classNames:n}},t)},_S=["className","style","classNames","styles"],IS=function(e){var t,n,r,o,i,a,l=e.configList,s=e.placement,c=e.prefixCls,u=e.className,d=e.style,f=e.motion,p=e.onAllNoticeRemoved,h=e.onNoticeClose,g=e.stack,m=B.useContext(PS).classNames,b=B.useRef({}),v=mg(B.useState(null),2),y=v[0],w=v[1],x=mg(B.useState([]),2),S=x[0],k=x[1],C=l.map((function(e){return{config:e,key:String(e.key)}})),E=mg((a={offset:8,threshold:3,gap:16},(n=g)&&"object"===kd(n)&&(a.offset=null!==(r=n.offset)&&void 0!==r?r:8,a.threshold=null!==(o=n.threshold)&&void 0!==o?o:3,a.gap=null!==(i=n.gap)&&void 0!==i?i:16),[!!n,a]),2),O=E[0],D=E[1],$=D.offset,j=D.threshold,P=D.gap,N=O&&(S.length>0||C.length<=j),_="function"==typeof f?f(s):f;return B.useEffect((function(){O&&S.length>1&&k((function(e){return e.filter((function(e){return C.some((function(t){var n=t.key;return e===n}))}))}))}),[S,C,O]),B.useEffect((function(){var e,t;O&&b.current[null===(e=C[C.length-1])||void 0===e?void 0:e.key]&&w(b.current[null===(t=C[C.length-1])||void 0===t?void 0:t.key])}),[C,O]),H.createElement(ux,Zp({key:s,className:Ym(c,"".concat(c,"-").concat(s),null==m?void 0:m.list,u,(t={},Ed(t,"".concat(c,"-stack"),!!O),Ed(t,"".concat(c,"-stack-expanded"),N),t)),style:d,keys:C,motionAppear:!0},_,{onAllRemoved:function(){p(s)}}),(function(e,t){var n=e.config,r=e.className,o=e.style,i=e.index,a=n,l=a.key,u=a.times,d=String(l),f=n,p=f.className,g=f.style,v=f.classNames,w=f.styles,x=Od(f,_S),E=C.findIndex((function(e){return e.key===d})),D={};if(O){var j=C.length-1-(E>-1?E:i-1),_="top"===s||"bottom"===s?"-50%":"0";if(j>0){var I,T,F;D.height=N?null===(I=b.current[d])||void 0===I?void 0:I.offsetHeight:null==y?void 0:y.offsetHeight;for(var R=0,A=0;A-1?b.current[d]=e:delete b.current[d]},prefixCls:c,classNames:v,styles:w,className:Ym(p,null==m?void 0:m.notice),style:g,times:u,key:l,eventKey:l,onNoticeClose:h,hovering:O&&S.length>0})))}))},TS=B.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=mg(B.useState([]),2),p=f[0],h=f[1],g=function(e){var t,n=p.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),h((function(t){return t.filter((function(t){return t.key!==e}))}))};B.useImperativeHandle(t,(function(){return{open:function(e){h((function(t){var n,r=Rh(t),o=r.findIndex((function(t){return t.key===e.key})),i=Mh({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return a>0&&r.length>a&&(r=r.slice(-a)),r}))},close:function(e){g(e)},destroy:function(){h([])}}}));var m=mg(B.useState({}),2),b=m[0],v=m[1];B.useEffect((function(){var e={};p.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),v(e)}),[p]);var y=function(e){v((function(t){var n=Mh({},t);return(n[e]||[]).length||delete n[e],n}))},w=B.useRef(!1);if(B.useEffect((function(){Object.keys(b).length>0?w.current=!0:w.current&&(null==c||c(),w.current=!1)}),[b]),!o)return null;var x=Object.keys(b);return vd.createPortal(B.createElement(B.Fragment,null,x.map((function(e){var t=b[e],n=B.createElement(IS,{key:e,configList:t,placement:e,prefixCls:r,className:null==l?void 0:l(e),style:null==s?void 0:s(e),motion:i,onNoticeClose:g,onAllNoticeRemoved:y,stack:u});return d?d(n,{prefixCls:r,key:e}):n}))),o)})),FS=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],RS=function(){return document.body},AS=0;function MS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?RS:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=Od(e,FS),f=mg(B.useState(),2),p=f[0],h=f[1],g=B.useRef(),m=B.createElement(TS,{container:p,ref:g,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),b=mg(B.useState([]),2),v=b[0],y=b[1],w=B.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,v=`${t}-notice`,y=new Hm("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new Hm("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${v}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},rw(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},KS=hw("Message",(e=>{const t=uw(e,{height:150});return[XS(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+US+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));const YS={info:B.createElement(Jx,null),success:B.createElement(zx,null),error:B.createElement(Wx,null),warning:B.createElement(Kx,null),loading:B.createElement(BS,null)},QS=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return B.createElement("div",{className:Ym(`${t}-custom-content`,`${t}-${n}`)},r||YS[n],B.createElement("span",null,o))},JS=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var ek=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const[,r]=KS(n);return B.createElement(NS,{classNames:{list:r,notice:r}},t)},rk=(e,t)=>{let{prefixCls:n,key:r}=t;return B.createElement(nk,{prefixCls:n,key:r},e)},ok=B.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=tk,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f}=B.useContext(Iy),p=r||u("message"),h=B.createElement("span",{className:`${p}-close-x`},B.createElement(Gx,{className:`${p}-close-icon`})),[g,m]=MS({prefixCls:p,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>Ym({[`${p}-rtl`]:l}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(p,s),closable:!1,closeIcon:h,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:rk});return B.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:p,message:f}))),m}));let ik=0;function ak(e){const t=B.useRef(null);Sv();return[B.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:l,icon:s,type:c,key:u,className:d,style:f,onClose:p}=n,h=ek(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(ik+=1,g=`antd-message-${ik}`),ZS((t=>(r(Object.assign(Object.assign({},h),{key:g,content:B.createElement(QS,{prefixCls:o,type:c,icon:s},l),placement:"top",className:Ym(c&&`${a}-${c}`,d,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==p||p(),t()}})),()=>{e(g)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(a=r,l=o);const s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(s)}})),r}),[]),B.createElement(ok,Object.assign({key:"message-holder"},e,{ref:t}))]}function lk(e){return ak(e)}function sk(){sk=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(_){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new P(r||[]);return o(a,"_invoke",{value:O(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function b(){}function v(){}function y(){}var w={};c(w,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(N([])));S&&S!==n&&r.call(S,a)&&(w=S);var k=y.prototype=b.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==kd(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=D(l,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?g:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function D(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function ck(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function uk(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ck(i,r,o,a,l,"next",e)}function l(e){ck(i,r,o,a,l,"throw",e)}a(void 0)}))}}var dk,fk=Mh({},wd),pk=fk.version,hk=fk.render,gk=fk.unmountComponentAtNode;try{Number((pk||"").split(".")[0])>=18&&(dk=fk.createRoot)}catch(GY){}function mk(e){var t=fk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===kd(t)&&(t.usingClientEntryPoint=e)}var bk="__rc_react_root__";function vk(e,t){dk?function(e,t){mk(!0);var n=t[bk]||dk(t);mk(!1),n.render(e),t[bk]=n}(e,t):function(e,t){hk(e,t)}(e,t)}function yk(e){return wk.apply(this,arguments)}function wk(){return(wk=uk(sk().mark((function e(t){return sk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[bk])||void 0===e||e.unmount(),delete t[bk]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xk(e){gk(e)}function Sk(e){return kk.apply(this,arguments)}function kk(){return(kk=uk(sk().mark((function e(t){return sk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===dk){e.next=2;break}return e.abrupt("return",yk(t));case 2:xk(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const Ck=()=>({height:0,opacity:0}),Ek=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Ok=e=>({height:e?e.offsetHeight:0}),Dk=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,$k=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Ck,onEnterStart:Ck,onAppearActive:Ek,onEnterActive:Ek,onLeaveStart:Ok,onLeaveActive:Ck,onAppearEnd:Dk,onEnterEnd:Dk,onLeaveEnd:Dk,motionDeadline:500}},jk=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Pk=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},Nk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},_k=hw("Wave",(e=>[Nk(e)]));function Ik(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const Tk="ant-wave-target";function Fk(e){return Number.isNaN(e)?0:e}const Rk=e=>{const{className:t,target:n,component:r}=e,o=B.useRef(null),[i,a]=B.useState(null),[l,s]=B.useState([]),[c,u]=B.useState(0),[d,f]=B.useState(0),[p,h]=B.useState(0),[g,m]=B.useState(0),[b,v]=B.useState(!1),y={left:c,top:d,width:p,height:g,borderRadius:l.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Ik(t)?t:Ik(n)?n:Ik(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:Fk(-parseFloat(r))),f(t?n.offsetTop:Fk(-parseFloat(o))),h(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:l,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;s([i,l,d,c].map((e=>Fk(parseFloat(e)))))}if(i&&(y["--wave-color"]=i),B.useEffect((()=>{if(n){const e=dv((()=>{w(),v(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{dv.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(Tk));return B.createElement(ex,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;Sk(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return B.createElement("div",{ref:o,className:Ym(t,{"wave-quick":x},n),style:y})}))},Ak=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),vk(B.createElement(Rk,Object.assign({},t,{target:e})),o)};const Mk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=B.useContext(Iy),i=B.useRef(null),a=o("wave"),[,l]=_k(a),s=function(e,t,n){const{wave:r}=B.useContext(Iy),[,o,i]=Yy(),a=Qy((a=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const s=l.querySelector(`.${Tk}`)||l,{showEffect:c}=r||{};(c||Ak)(s,{className:t,token:o,component:n,event:a,hashId:i})})),l=B.useRef();return e=>{dv.cancel(l.current),l.current=dv((()=>{a(e)}))}}(i,Ym(a,l),r);if(H.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Pk(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!H.isValidElement(t))return null!=t?t:null;return lS(t,{ref:Sb(t)?wb(t.ref,i):i})},Lk=e=>{const t=H.useContext(By);return H.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},zk=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Bk=e=>{const{componentCls:t}=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"}}}},Hk=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Wk=hw("Space",(e=>{const t=uw(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Bk(t),Hk(t),zk(t)]}),(()=>({})),{resetStyle:!1});var Uk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=B.useContext(Vk),r=B.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return Ym(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},qk=e=>{let{children:t}=e;return B.createElement(Vk.Provider,{value:null},t)},Xk=e=>{var{children:t}=e,n=Uk(e,["children"]);return B.createElement(Vk.Provider,{value:n},t)},Kk=e=>{const{getPrefixCls:t,direction:n}=B.useContext(Iy),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,u=Uk(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Lk((e=>null!=r?r:e)),f=t("space-compact",a),[p,h]=Wk(f),g=Ym(f,h,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:i,[`${f}-vertical`]:"vertical"===o},l,s),m=B.useContext(Vk),b=mb(c),v=B.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return B.createElement(Xk,{key:n,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!m||(null==m?void 0:m.isFirstItem)),isLastItem:t===b.length-1&&(!m||(null==m?void 0:m.isLastItem))},e)}))),[r,b,m]);return 0===b.length?null:p(B.createElement("div",Object.assign({className:g},u),v))};const Yk=B.createContext(void 0),Qk=e=>{const{getPrefixCls:t,direction:n}=B.useContext(Iy),{prefixCls:r,size:o,className:i}=e,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),H.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&tC(e.type)&&Zk(e.props.children)?lS(e,{children:e.props.children.split("").join(n)}):tC(e)?Zk(e)?H.createElement("span",null,e.split("").join(n)):H.createElement("span",null,e):iS(e)?H.createElement("span",null,e):e}(e,t)))}const oC=B.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=Ym(`${i}-icon`,n);return H.createElement("span",{ref:t,className:a,style:r},o)})),iC=B.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=Ym(`${n}-loading-icon`,r);return H.createElement(oC,{prefixCls:n,className:a,style:o,ref:t},H.createElement(BS,{className:i}))})),aC=()=>({width:0,opacity:0,transform:"scale(0)"}),lC=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),sC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?H.createElement(iC,{prefixCls:t,className:o,style:i}):H.createElement(ex,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:aC,onAppearActive:lC,onEnterStart:aC,onEnterActive:lC,onLeaveStart:lC,onLeaveActive:aC},((e,n)=>{let{className:r,style:a}=e;return H.createElement(iC,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))},cC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),uC=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},cC(`${t}-primary`,o),cC(`${t}-danger`,i)]}},dC=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},lw(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},fC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),pC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),hC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),gC=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),mC=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},fC(e,Object.assign({backgroundColor:t},a),Object.assign({backgroundColor:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),bC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},gC(e))}),vC=e=>Object.assign({},bC(e)),yC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),wC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vC(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),fC(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),mC(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},fC(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),mC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),bC(e))}),xC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vC(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),fC(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),mC(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},fC(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),mC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bC(e))}),SC=e=>Object.assign(Object.assign({},wC(e)),{borderStyle:"dashed"}),kC=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},fC(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),yC(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},fC(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),yC(e))}),CC=e=>Object.assign(Object.assign(Object.assign({},fC(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),yC(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},yC(e)),fC(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),EC=e=>{const{componentCls:t}=e;return{[`${t}-default`]:wC(e),[`${t}-primary`]:xC(e),[`${t}-dashed`]:SC(e),[`${t}-link`]:kC(e),[`${t}-text`]:CC(e),[`${t}-ghost`]:mC(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},OC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Math.max(0,(r-o*i)/2-a)}px ${s}px`,borderRadius:l,[`&${`${n}-icon-only`}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:pC(e)},{[`${n}${n}-round${t}`]:hC(e)}]},DC=e=>OC(uw(e,{fontSize:e.contentFontSize})),$C=e=>{const t=uw(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return OC(t,`${e.componentCls}-sm`)},jC=e=>{const t=uw(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return OC(t,`${e.componentCls}-lg`)},PC=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},NC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return uw(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},_C=e=>({fontWeight:400,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.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),IC=hw("Button",(e=>{const t=NC(e);return[dC(t),$C(t),DC(t),jC(t),PC(t),EC(t),uC(t)]}),_C);function TC(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function FC(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";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 RC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},TC(e,r,t)),FC(n,r,t))}}function AC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function MC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},AC(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const LC=gw(["Button","compact"],(e=>{const t=NC(e);return[RC(t),MC(t)]}),_C);const zC=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:l,shape:s="default",size:c,styles:u,disabled:d,className:f,rootClassName:p,children:h,icon:g,ghost:m=!1,block:b=!1,htmlType:v="button",classNames:y,style:w={}}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ofunction(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o)),[o]),[I,T]=B.useState(_.loading),[F,R]=B.useState(!1),A=wb(t,B.createRef()),M=1===B.Children.count(h)&&!g&&!nC(a);B.useEffect((()=>{let e=null;return _.delay>0?e=setTimeout((()=>{e=null,T(!0)}),_.delay):T(_.loading),function(){e&&(clearTimeout(e),e=null)}}),[_]),B.useEffect((()=>{if(!A||!A.current||!1===k)return;const e=A.current.textContent;M&&Zk(e)?F||R(!0):F&&R(!1)}),[A]);const L=t=>{const{onClick:n}=e;I||P?t.preventDefault():null==n||n(t)},z=!1!==k,{compactSize:W,compactItemClassnames:U}=Gk(O,C),V=Lk((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:W)&&void 0!==t?t:N)&&void 0!==n?n:e})),G=V&&{large:"lg",small:"sm",middle:void 0}[V]||"",q=I?"loading":g,X=iv(x,["navigate"]),K=Ym(O,$,{[`${O}-${s}`]:"default"!==s&&s,[`${O}-${a}`]:a,[`${O}-${G}`]:G,[`${O}-icon-only`]:!h&&0!==h&&!!q,[`${O}-background-ghost`]:m&&!nC(a),[`${O}-loading`]:I,[`${O}-two-chinese-chars`]:F&&z&&!I,[`${O}-block`]:b,[`${O}-dangerous`]:!!l,[`${O}-rtl`]:"rtl"===C},U,f,p,null==E?void 0:E.className),Y=Object.assign(Object.assign({},null==E?void 0:E.style),w),Q=Ym(null==y?void 0:y.icon,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.icon),J=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==E?void 0:E.styles)||void 0===r?void 0:r.icon)||{}),Z=g&&!I?H.createElement(oC,{prefixCls:O,className:Q,style:J},g):H.createElement(sC,{existIcon:!!g,prefixCls:O,loading:!!I}),ee=h||0===h?rC(h,M&&z):null;if(void 0!==X.href)return D(H.createElement("a",Object.assign({},X,{className:Ym(K,{[`${O}-disabled`]:P}),href:P?void 0:X.href,style:Y,onClick:L,ref:A,tabIndex:P?-1:0}),Z,ee));let te=H.createElement("button",Object.assign({},x,{type:v,className:K,style:Y,onClick:L,disabled:P,ref:A}),Z,ee,U&&H.createElement(LC,{key:"compact",prefixCls:O}));return nC(a)||(te=H.createElement(Mk,{component:"Button",disabled:!!I},te)),D(te)},BC=B.forwardRef(zC);BC.Group=Qk,BC.__ANT_BUTTON=!0;const HC=BC;function WC(e){return!(!e||!e.then)}const UC=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,d=B.useRef(!1),f=B.useRef(null),[p,h]=Jy(!1),g=function(){null==i||i.apply(void 0,arguments)};B.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return B.createElement(HC,Object.assign({},eC(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(l){if(t=u(e),c&&!WC(t))return d.current=!1,void g(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void g();(e=>{WC(e)&&(h(!0),e.then((function(){h(!1,!0),g.apply(void 0,arguments),d.current=!1}),(e=>{if(h(!1,!0),d.current=!1,!(null==s?void 0:s()))return Promise.reject(e)})))})(t)},loading:p,prefixCls:r},o,{ref:f}),n)},VC=H.createContext({}),{Provider:GC}=VC,qC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=B.useContext(VC);return o?H.createElement(UC,{isSilent:r,actionFn:l,close:function(){null==a||a.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},XC=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=B.useContext(VC);return H.createElement(UC,{isSilent:n,type:a||"primary",actionFn:s,close:function(){null==t||t.apply(void 0,arguments),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};var KC,YC=B.createContext(null),QC=[];function JC(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===KC){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),KC=o-i}return KC}():n}var ZC="rc-util-locker-".concat(Date.now()),eE=0;function tE(e){var t=!!e,n=mg(B.useState((function(){return eE+=1,"".concat(ZC,"_").concat(eE)})),1)[0];Ng((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:JC(n),height:JC(r)}}(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;pg("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else fg(n);return function(){fg(n)}}),[t,n])}var nE=!1;var rE=function(e){return!1!==e&&(tg()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},oE=B.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=void 0===i||i,l=e.children,s=mg(B.useState(n),2),c=s[0],u=s[1],d=c||n;B.useEffect((function(){(a||n)&&u(n)}),[n,a]);var f=mg(B.useState((function(){return rE(o)})),2),p=f[0],h=f[1];B.useEffect((function(){var e=rE(o);h(null!=e?e:null)}));var g=function(e,t){var n=mg(B.useState((function(){return tg()?document.createElement("div"):null})),1)[0],r=B.useRef(!1),o=B.useContext(YC),i=mg(B.useState(QC),2),a=i[0],l=i[1],s=o||(r.current?void 0:function(e){l((function(t){return[e].concat(Rh(t))}))});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Ng((function(){return e?o?o(c):c():u(),u}),[e]),Ng((function(){a.length&&(a.forEach((function(e){return e()})),l(QC))}),[a]),[n,s]}(d&&!p),m=mg(g,2),b=m[0],v=m[1],y=null!=p?p:b;tE(r&&n&&tg()&&(y===b||y===document.body));var w=null;l&&Sb(l)&&t&&(w=l.ref);var x=xb(w,t);if(!d||!tg()||void 0===p)return null;var S,k=!1===y||("boolean"==typeof S&&(nE=S),nE),C=l;return t&&(C=B.cloneElement(l,{ref:x})),B.createElement(YC.Provider,{value:v},k?C:vd.createPortal(C,y))})),iE=B.createContext({});var aE=0,lE=Mh({},W).useId;const sE=lE?function(e){var t=lE();return e||t}:function(e){var t=mg(B.useState("ssr-id"),2),n=t[0],r=t[1];return B.useEffect((function(){var e=aE;aE+=1,r("rc_unique_".concat(e))}),[]),e||n};function cE(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function uE(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const dE=B.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var fE={width:0,height:0,overflow:"hidden",outline:"none"},pE=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,g=e.onMouseDown,m=e.onMouseUp,b=e.holderRef,v=e.visible,y=e.forceRender,w=e.width,x=e.height,S=e.classNames,k=e.styles,C=xb(b,H.useContext(iE).panel),E=B.useRef(),O=B.useRef();H.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?E.current.focus():e||t!==E.current||O.current.focus()}}}));var D,$,j,P={};void 0!==w&&(P.width=w),void 0!==x&&(P.height=x),l&&(D=H.createElement("div",{className:Ym("".concat(n,"-footer"),null==S?void 0:S.footer),style:Mh({},null==k?void 0:k.footer)},l)),i&&($=H.createElement("div",{className:Ym("".concat(n,"-header"),null==S?void 0:S.header),style:Mh({},null==k?void 0:k.header)},H.createElement("div",{className:"".concat(n,"-title"),id:a},i))),s&&(j=H.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||H.createElement("span",{className:"".concat(n,"-close-x")})));var N=H.createElement("div",{className:Ym("".concat(n,"-content"),null==S?void 0:S.content),style:null==k?void 0:k.content},j,$,H.createElement("div",Zp({className:Ym("".concat(n,"-body"),null==S?void 0:S.body),style:Mh(Mh({},f),null==k?void 0:k.body)},p),d),D);return H.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:C,style:Mh(Mh({},o),P),className:Ym(n,r),onMouseDown:g,onMouseUp:m},H.createElement("div",{tabIndex:0,ref:E,style:fE,"aria-hidden":"true"}),H.createElement(dE,{shouldUpdate:v||y},h?h(N):N),H.createElement("div",{tabIndex:0,ref:O,style:fE,"aria-hidden":"true"}))})),hE=B.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=B.useRef(),h=mg(B.useState(),2),g=h[0],m=h[1],b={};function v(){var e,t,n,r,o,i=(e=p.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=uE(o),n.top+=uE(o,!0),n);m(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}return g&&(b.transformOrigin=g),B.createElement(ex,{visible:a,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:l,motionName:c,removeOnLeave:s,ref:p},(function(a,l){var s=a.className,c=a.style;return B.createElement(pE,Zp({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:l,style:Mh(Mh(Mh({},c),o),b),className:Ym(i,s)}))}))}));function gE(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return B.createElement(ex,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var i=e.className,l=e.style;return B.createElement("div",Zp({ref:r,style:Mh(Mh({},l),n),className:Ym("".concat(t,"-mask"),i,a)},o))}))}function mE(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,a=e.keyboard,l=void 0===a||a,s=e.focusTriggerAfterClose,c=void 0===s||s,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,h=e.afterOpenChange,g=e.afterClose,m=e.transitionName,b=e.animation,v=e.closable,y=void 0===v||v,w=e.mask,x=void 0===w||w,S=e.maskTransitionName,k=e.maskAnimation,C=e.maskClosable,E=void 0===C||C,O=e.maskStyle,D=e.maskProps,$=e.rootClassName,j=e.classNames,P=e.styles,N=B.useRef(),_=B.useRef(),I=B.useRef(),T=mg(B.useState(i),2),F=T[0],R=T[1],A=sE();function M(e){null==p||p(e)}var L=B.useRef(!1),z=B.useRef(),H=null;return E&&(H=function(e){L.current?L.current=!1:_.current===e.target&&M(e)}),B.useEffect((function(){i&&(R(!0),ng(_.current,document.activeElement)||(N.current=document.activeElement))}),[i]),B.useEffect((function(){return function(){clearTimeout(z.current)}}),[]),B.createElement("div",Zp({className:Ym("".concat(n,"-root"),$)},rS(e,{data:!0})),B.createElement(gE,{prefixCls:n,visible:x&&i,motionName:cE(n,S,k),style:Mh(Mh({zIndex:r},O),null==P?void 0:P.mask),maskProps:D,className:null==j?void 0:j.mask}),B.createElement("div",Zp({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===$S.ESC)return e.stopPropagation(),void M(e);i&&e.keyCode===$S.TAB&&I.current.changeActive(!e.shiftKey)},className:Ym("".concat(n,"-wrap"),d,null==j?void 0:j.wrapper),ref:_,onClick:H,style:Mh(Mh(Mh({zIndex:r},u),null==P?void 0:P.wrapper),{},{display:F?null:"none"})},f),B.createElement(hE,Zp({},e,{onMouseDown:function(){clearTimeout(z.current),L.current=!0},onMouseUp:function(){z.current=setTimeout((function(){L.current=!1}))},ref:I,closable:y,ariaId:A,prefixCls:n,visible:i&&F,onClose:M,onVisibleChanged:function(e){if(e)ng(_.current,document.activeElement)||null===(t=I.current)||void 0===t||t.focus();else{if(R(!1),x&&N.current&&c){try{N.current.focus({preventScroll:!0})}catch(GY){}N.current=null}F&&(null==g||g())}var t;null==h||h(e)},motionName:cE(n,m,b)}))))}hE.displayName="Content";var bE=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,l=e.panelRef,s=mg(B.useState(t),2),c=s[0],u=s[1],d=B.useMemo((function(){return{panel:l}}),[l]);return B.useEffect((function(){t&&u(!0)}),[t]),r||!i||c?B.createElement(iE.Provider,{value:d},B.createElement(oE,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},B.createElement(mE,Zp({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null};function vE(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.createElement(Gx,null);const o=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]);if(!o)return[!1,null];const i="boolean"==typeof t||null==t?r:t;return[!0,n?n(i):i]}bE.displayName="Dialog";var yE="RC_FORM_INTERNAL_HOOKS",wE=function(){Vh(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},xE=B.createContext({getFieldValue:wE,getFieldsValue:wE,getFieldError:wE,getFieldWarning:wE,getFieldsError:wE,isFieldsTouched:wE,isFieldTouched:wE,isFieldValidating:wE,isFieldsValidating:wE,resetFields:wE,setFields:wE,setFieldValue:wE,setFieldsValue:wE,validateFields:wE,submit:wE,getInternalHooks:function(){return wE(),{dispatch:wE,initEntityValue:wE,registerField:wE,useSubscribe:wE,setInitialValues:wE,destroyForm:wE,setCallbacks:wE,registerWatch:wE,getFields:wE,setValidateMessages:wE,setPreserve:wE,getInitialValue:wE}}}),SE=B.createContext(null);function kE(e){return null==e?[]:Array.isArray(e)?e:[e]}function CE(){return CE=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function IE(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}(t)||"string"!=typeof e||e))}function TE(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l()\[\]\\.,;:\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,}))$/,HE=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,WE={integer:function(e){return WE.number(e)&&parseInt(e,10)===e},float:function(e){return WE.number(e)&&!WE.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(GY){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!WE.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(BE)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(LE)return LE;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?: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}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};s.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+o+t(e),"g")};var c=s.v4().source,u=s.v6().source;return LE=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")}())},hex:function(e){return"string"==typeof e&&!!e.match(HE)}},UE="enum",VE={required:zE,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(_E(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)zE(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?WE[i](t)||r.push(_E(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(_E(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(_E(o.messages[c].len,e.fullField,e.len)):a&&!l&&se.max?r.push(_E(o.messages[c].max,e.fullField,e.max)):a&&l&&(se.max)&&r.push(_E(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[UE]=Array.isArray(e[UE])?e[UE]:[],-1===e[UE].indexOf(t)&&r.push(_E(o.messages[UE],e.fullField,e[UE].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(_E(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(_E(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},GE=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t,i)&&!e.required)return n();VE.required(e,t,r,a,o,i),IE(t,i)||VE.type(e,t,r,a,o)}n(a)},qE={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t,"string")&&!e.required)return n();VE.required(e,t,r,i,o,"string"),IE(t,"string")||(VE.type(e,t,r,i,o),VE.range(e,t,r,i,o),VE.pattern(e,t,r,i,o),!0===e.whitespace&&VE.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t)&&!e.required)return n();VE.required(e,t,r,i,o),void 0!==t&&VE.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),IE(t)&&!e.required)return n();VE.required(e,t,r,i,o),void 0!==t&&(VE.type(e,t,r,i,o),VE.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t)&&!e.required)return n();VE.required(e,t,r,i,o),void 0!==t&&VE.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t)&&!e.required)return n();VE.required(e,t,r,i,o),IE(t)||VE.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t)&&!e.required)return n();VE.required(e,t,r,i,o),void 0!==t&&(VE.type(e,t,r,i,o),VE.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t)&&!e.required)return n();VE.required(e,t,r,i,o),void 0!==t&&(VE.type(e,t,r,i,o),VE.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();VE.required(e,t,r,i,o,"array"),null!=t&&(VE.type(e,t,r,i,o),VE.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t)&&!e.required)return n();VE.required(e,t,r,i,o),void 0!==t&&VE.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t)&&!e.required)return n();VE.required(e,t,r,i,o),void 0!==t&&VE.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t,"string")&&!e.required)return n();VE.required(e,t,r,i,o),IE(t,"string")||VE.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t,"date")&&!e.required)return n();var a;if(VE.required(e,t,r,i,o),!IE(t,"date"))a=t instanceof Date?t:new Date(t),VE.type(e,a,r,i,o),a&&VE.range(e,a.getTime(),r,i,o)}n(i)},url:GE,hex:GE,email:GE,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;VE.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(IE(t)&&!e.required)return n();VE.required(e,t,r,i,o)}n(i)}};function XE(){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",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:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var KE=XE(),YE=function(){function e(e){this.rules=null,this._messages=KE,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;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((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=ME(XE(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===KE&&(s=XE()),ME(s,a.messages),a.messages=s}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=CE({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:CE({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))}))}));var u={};return RE(c,a,(function(t,n){var r,o=t.rule,l=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function s(e,t){return CE({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(AE(o,i));if(a.first&&d.length)return u[o.field]=1,n(d);if(l){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(AE(o,i)):a.error&&(d=[a.error(o,_E(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=CE({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(d){null==console.error||console.error(d),a.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},a=0;a2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return uO(t,e,n)}))}function uO(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function dO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===kd(t.target)&&e in t.target?t.target[e]:t}function fO(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Rh(e.slice(0,n)),[o],Rh(e.slice(n,t)),Rh(e.slice(t+1,r))):i<0?[].concat(Rh(e.slice(0,t)),Rh(e.slice(t+1,n+1)),[o],Rh(e.slice(n+1,r))):e}var pO=["name"],hO=[];function gO(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var mO=function(e){Kb(n,B.Component);var t=Zb(n);function n(e){var r;(mf(this,n),Ed(Jb(r=t.call(this,e)),"state",{resetCount:0}),Ed(Jb(r),"cancelRegisterFunc",null),Ed(Jb(r),"mounted",!1),Ed(Jb(r),"touched",!1),Ed(Jb(r),"dirty",!1),Ed(Jb(r),"validatePromise",void 0),Ed(Jb(r),"prevValidating",void 0),Ed(Jb(r),"errors",hO),Ed(Jb(r),"warnings",hO),Ed(Jb(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,lO(o)),r.cancelRegisterFunc=null})),Ed(Jb(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Rh(void 0===n?[]:n),Rh(t)):[]})),Ed(Jb(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),Ed(Jb(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Ed(Jb(r),"metaCache",null),Ed(Jb(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Mh(Mh({},r.getMeta()),{},{destroy:e});Gh(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Ed(Jb(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,s=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(c),p=t&&cO(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=hO,r.warnings=hO,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=hO,r.warnings=hO,r.triggerMetaEvent(),null==s||s(),void r.refresh();break;case"remove":if(i)return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||hO),"warnings"in h&&(r.warnings=h.warnings||hO),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&cO(t,u,!0))return void r.reRender();if(i&&!u.length&&gO(i,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(lO).some((function(e){return cO(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&gO(i,e,c,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),Ed(Jb(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(uk(sk().mark((function o(){var a,l,c,u,d,f,p;return sk().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,c=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||kE(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===s){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=oO(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hO;if(r.validatePromise===s){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?hO:r;t?o.push.apply(o,Rh(i)):n.push.apply(n,Rh(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return l||(r.validatePromise=s,r.dirty=!0,r.errors=hO,r.warnings=hO,r.triggerMetaEvent(),r.reRender()),s})),Ed(Jb(r),"isFieldValidating",(function(){return!!r.validatePromise})),Ed(Jb(r),"isFieldTouched",(function(){return r.touched})),Ed(Jb(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(yE).getInitialValue)(r.getNamePath())})),Ed(Jb(r),"getErrors",(function(){return r.errors})),Ed(Jb(r),"getWarnings",(function(){return r.warnings})),Ed(Jb(r),"isListField",(function(){return r.props.isListField})),Ed(Jb(r),"isList",(function(){return r.props.isList})),Ed(Jb(r),"isPreserve",(function(){return r.props.preserve})),Ed(Jb(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Ed(Jb(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Mh(Mh({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=mb(e);return 1===n.length&&B.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Ed(Jb(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return hv(e||t(!0),n)})),Ed(Jb(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,s=t.getValueProps,c=t.fieldContext,u=void 0!==o?o:c.validateTrigger,d=r.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,h=f(yE).dispatch,g=r.getValue(),m=s||function(e){return Ed({},l,e)},b=e[n],v=Mh(Mh({},e),m(g));return v[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o=0&&t<=n.length?(c.keys=[].concat(Rh(c.keys.slice(0,t)),[c.id],Rh(c.keys.slice(t))),i([].concat(Rh(n.slice(0,t)),[e],Rh(n.slice(t))))):(c.keys=[].concat(Rh(c.keys),[c.id]),i([].concat(Rh(n),[e]))),c.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(c.keys=fO(c.keys,e,t),i(fO(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))}Ed(mO,"contextType",xE),Ed(mO,"defaultProps",{trigger:"onChange",valuePropName:"value"});var yO="__@field_split__";function wO(e){return e.map((function(e){return"".concat(kd(e),":").concat(e)})).join(yO)}var xO=function(){function e(){mf(this,e),Ed(this,"kvs",new Map)}return vf(e,[{key:"set",value:function(e,t){this.kvs.set(wO(e),t)}},{key:"get",value:function(e){return this.kvs.get(wO(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(wO(e))}},{key:"map",value:function(e){return Rh(this.kvs.entries()).map((function(t){var n=mg(t,2),r=n[0],o=n[1],i=r.split(yO);return e({key:i.map((function(e){var t=mg(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),SO=["name"],kO=vf((function e(t){var n=this;mf(this,e),Ed(this,"formHooked",!1),Ed(this,"forceRootUpdate",void 0),Ed(this,"subscribable",!0),Ed(this,"store",{}),Ed(this,"fieldEntities",[]),Ed(this,"initialValues",{}),Ed(this,"callbacks",{}),Ed(this,"validateMessages",null),Ed(this,"preserve",null),Ed(this,"lastValidatePromise",null),Ed(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Ed(this,"getInternalHooks",(function(e){return e===yE?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Vh(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Ed(this,"useSubscribe",(function(e){n.subscribable=e})),Ed(this,"prevWithoutPreserves",null),Ed(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=yv(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=mv(o,n,hv(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Ed(this,"destroyForm",(function(){var e=new xO;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Ed(this,"getInitialValue",(function(e){var t=hv(n.initialValues,e);return e.length?yv(t):t})),Ed(this,"setCallbacks",(function(e){n.callbacks=e})),Ed(this,"setValidateMessages",(function(e){n.validateMessages=e})),Ed(this,"setPreserve",(function(e){n.preserve=e})),Ed(this,"watchList",[]),Ed(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Ed(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),Ed(this,"timeoutId",null),Ed(this,"warningUnhooked",(function(){})),Ed(this,"updateStore",(function(e){n.store=e})),Ed(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Ed(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new xO;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Ed(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=lO(e);return t.get(n)||{INVALIDATE_NAME_PATH:lO(e)}}))})),Ed(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===kd(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)})),sO(n.store,l.map(lO))})),Ed(this,"getFieldValue",(function(e){n.warningUnhooked();var t=lO(e);return hv(n.store,t)})),Ed(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:lO(e[n]),errors:[],warnings:[]}}))})),Ed(this,"getFieldError",(function(e){n.warningUnhooked();var t=lO(e);return n.getFieldsError([t])[0].errors})),Ed(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=lO(e);return n.getFieldsError([t])[0].warnings})),Ed(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new xO,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Rh(Rh(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))Vh(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)Vh(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(mv(n.store,o,Rh(i)[0].value))}}}}))})),Ed(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(yv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(lO);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(mv(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Ed(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=Od(e,SO),a=lO(o);r.push(a),"value"in i&&n.updateStore(mv(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Ed(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Mh(Mh({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Ed(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===hv(n.store,r)&&n.updateStore(mv(n.store,r,t))}})),Ed(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Ed(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!uO(e.getNamePath(),t)}))){var l=n.store;n.updateStore(mv(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),Ed(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),Ed(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Mh(Mh({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Ed(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Rh(r))}),r})),Ed(this,"updateValue",(function(e,t){var r=lO(e),o=n.store;n.updateStore(mv(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(sO(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Rh(i)))})),Ed(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=yv(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Ed(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Ed(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new xO;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=lO(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Ed(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new xO;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return cO(e,n)}));a.length&&r(a,o)}})),Ed(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(lO):[],l=[],s=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(s)),!i||cO(a,t,d)){var r=e.validateRules(Mh({validateMessages:Mh(Mh({},JE),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Rh(n)):r.push.apply(r,Rh(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var g=a.filter((function(e){return c.has(e.join(s))}));return n.triggerOnFieldsChange(g),h})),Ed(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function CO(e){var t=B.useRef(),n=mg(B.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new kO((function(){n({})}));t.current=r.getForm()}return[t.current]}var EO=B.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),OO=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=B.useContext(EO),a=B.useRef({});return B.createElement(EO.Provider,{value:Mh(Mh({},i),{},{validateMessages:Mh(Mh({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Mh(Mh({},a.current),{},Ed({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Mh({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},DO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],$O=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,l=e.children,s=e.component,c=void 0===s?"form":s,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=Od(e,DO),v=B.useContext(EO),y=mg(CO(i),1)[0],w=y.getInternalHooks(yE),x=w.useSubscribe,S=w.setInitialValues,k=w.setCallbacks,C=w.setValidateMessages,E=w.setPreserve,O=w.destroyForm;B.useImperativeHandle(t,(function(){return y})),B.useEffect((function(){return v.registerForm(n,y),function(){v.unregisterForm(n)}}),[v,y,n]),C(Mh(Mh({},v.validateMessages),u)),k({onValuesChange:p,onFieldsChange:function(e){if(v.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{}}),IO=B.createContext(null),TO=e=>{const t=iv(e,["prefixCls"]);return B.createElement(OO,Object.assign({},t))},FO=B.createContext({prefixCls:""}),RO=B.createContext({}),AO=e=>{let{children:t,status:n,override:r}=e;const o=B.useContext(RO),i=B.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return B.createElement(RO.Provider,{value:i},t)};function MO(){}const LO=B.createContext({add:MO,remove:MO});function zO(e){const t=B.useContext(LO),n=B.useRef();return Qy((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const BO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=B.useContext(VC);return H.createElement(HC,Object.assign({onClick:n},e),t)},HO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=B.useContext(VC);return H.createElement(HC,Object.assign({},eC(n),{loading:e,onClick:o},t),r)};function WO(e,t){return H.createElement("span",{className:`${e}-close-x`},t||H.createElement(Gx,{className:`${e}-close-icon`}))}const UO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=Iv("Modal",Nv()),d={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:r||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},f=H.useMemo((()=>d),Rh(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=H.createElement(H.Fragment,null,H.createElement(BO,null),H.createElement(HO,null)),"function"==typeof c&&(p=c(p,{OkBtn:HO,CancelBtn:BO})),p=H.createElement(GC,{value:f},p)):p=c,H.createElement(Ay,{disabled:!1},p)},VO=e=>({animationDuration:e,animationFillMode:"both"}),GO=e=>({animationDuration:e,animationFillMode:"both"}),qO=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},VO(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},GO(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},XO=new Hm("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),KO=new Hm("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),YO=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[qO(r,XO,KO,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},QO=new Hm("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),JO=new Hm("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ZO=new Hm("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eD=new Hm("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tD=new Hm("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nD=new Hm("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rD={"move-up":{inKeyframes:new Hm("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 Hm("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:QO,outKeyframes:JO},"move-left":{inKeyframes:ZO,outKeyframes:eD},"move-right":{inKeyframes:tD,outKeyframes:nD}},oD=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=rD[t];return[qO(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},iD=new Hm("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),aD=new Hm("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),lD=new Hm("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),sD=new Hm("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),cD=new Hm("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),uD=new Hm("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),dD=new Hm("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),fD=new Hm("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),pD={"slide-up":{inKeyframes:iD,outKeyframes:aD},"slide-down":{inKeyframes:lD,outKeyframes:sD},"slide-left":{inKeyframes:cD,outKeyframes:uD},"slide-right":{inKeyframes:dD,outKeyframes:fD}},hD=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=pD[t];return[qO(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},gD=new Hm("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),mD=new Hm("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bD=new Hm("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vD=new Hm("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yD=new Hm("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wD=new Hm("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),xD=new Hm("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),SD=new Hm("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),kD=new Hm("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),CD=new Hm("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ED=new Hm("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),OD=new Hm("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),DD={zoom:{inKeyframes:gD,outKeyframes:mD},"zoom-big":{inKeyframes:bD,outKeyframes:vD},"zoom-big-fast":{inKeyframes:bD,outKeyframes:vD},"zoom-left":{inKeyframes:xD,outKeyframes:SD},"zoom-right":{inKeyframes:kD,outKeyframes:CD},"zoom-up":{inKeyframes:yD,outKeyframes:wD},"zoom-down":{inKeyframes:ED,outKeyframes:OD}},$D=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=DD[t];return[qO(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jD=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});function PD(e){return{position:e,inset:0}}const ND=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},PD("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},PD("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:YO(e)}]},_D=e=>{const{componentCls:t}=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})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},rw(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,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 ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},lw(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ID=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body > ${e.iconCls}`]:{marginInlineEnd:e.margin},[`${r}-btns`]:{marginTop:e.marginLG}}}},TD=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},FD=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return uw(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:r*n+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight})},RD=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),AD=hw("Modal",(e=>{const t=FD(e);return[_D(t),TD(t),ND(t),e.wireframe&&ID(t),$D(t,"zoom")]}),RD);let MD;const LD=e=>{MD={x:e.pageX,y:e.pageY},setTimeout((()=>{MD=null}),100)};tg()&&window.document.documentElement&&document.documentElement.addEventListener("click",LD,!0);const zD=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=B.useContext(Iy),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:l,className:s,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:p,closeIcon:h,closable:g,focusTriggerAfterClose:m=!0,style:b,visible:v,width:y=520,footer:w,classNames:x,styles:S}=e,k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[P,N]=vE(g,h,(e=>WO(C,e)),B.createElement(Gx,{className:`${C}-close-icon`}),!0),_=zO(`.${C}-content`),[I,T]=qS("Modal",k.zIndex);return O(B.createElement(qk,null,B.createElement(AO,{status:!0,override:!0},B.createElement(HS.Provider,{value:T},B.createElement(bE,Object.assign({width:y},k,{zIndex:I,getContainer:void 0===p?n:p,prefixCls:C,rootClassName:Ym(D,c),footer:j,visible:null!=u?u:v,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:MD,onClose:a,closable:P,closeIcon:N,focusTriggerAfterClose:m,transitionName:jk(E,"zoom",e.transitionName),maskTransitionName:jk(E,"fade",e.maskTransitionName),className:Ym(D,s,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),b),classNames:Object.assign(Object.assign({wrapper:$},null==i?void 0:i.classNames),x),styles:Object.assign(Object.assign({},null==i?void 0:i.styles),S),panelRef:_}))))))},BD=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a}=e,l=`${t}-confirm`,s=Math.round(n*r),c=Math.round(i*a);return{[l]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${l}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${l}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.marginSM,marginTop:(c-o)/2},[`&-has-title > ${e.iconCls}`]:{marginTop:(s-o)/2}},[`${l}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`},[`${l}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${l}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${l}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${l}-error ${l}-body > ${e.iconCls}`]:{color:e.colorError},[`${l}-warning ${l}-body > ${e.iconCls},\n ${l}-confirm ${l}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${l}-info ${l}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${l}-success ${l}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},HD=gw(["Modal","confirm"],(e=>{const t=FD(e);return[BD(t)]}),RD,{order:-1e3});function WD(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ov),Rh(Object.values(v))),w=B.createElement(B.Fragment,null,B.createElement(qC,null),B.createElement(XC,null)),x=void 0!==e.title&&null!==e.title,S=`${i}-body`;return B.createElement("div",{className:`${i}-body-wrapper`},B.createElement("div",{className:Ym(S,{[`${S}-has-title`]:x})},d,B.createElement("div",{className:`${i}-paragraph`},x&&B.createElement("span",{className:`${i}-title`},e.title),B.createElement("div",{className:`${i}-content`},e.content))),void 0===s||"function"==typeof s?B.createElement(GC,{value:y},B.createElement("div",{className:`${i}-btns`},"function"==typeof s?s(w,{OkBtn:XC,CancelBtn:qC}):w)):s,B.createElement(HD,{prefixCls:t}))}const UD=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:h=!1,closeIcon:g,modalRender:m,focusTriggerAfterClose:b,onConfirm:v,styles:y}=e,w=`${u}-confirm`,x=e.width||416,S=e.style||{},k=void 0===e.mask||e.mask,C=void 0!==e.maskClosable&&e.maskClosable,E=Ym(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===c},e.className),[,O]=Yy(),D=B.useMemo((()=>void 0!==n?n:O.zIndexPopupBase+US),[n,O]);return B.createElement(zD,{prefixCls:u,className:E,wrapClassName:Ym({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==v||v(!1)},open:o,title:"",footer:null,transitionName:jk(f||"","zoom",e.transitionName),maskTransitionName:jk(f||"","fade",e.maskTransitionName),mask:k,maskClosable:C,style:S,styles:Object.assign({body:p,mask:s},y),width:x,zIndex:D,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:h,closeIcon:g,modalRender:m,focusTriggerAfterClose:b},B.createElement(WD,Object.assign({},e,{confirmPrefixCls:w})))},VD=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return B.createElement(Sx,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},B.createElement(UD,Object.assign({},e)))},GD=[];var qD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(Rh(r.slice(1))));for(let e=0;e{const e=Nv(),{getPrefixCls:n,getIconPrefixCls:s,getTheme:c}=yx(),u=n(void 0,XD),d=i||`${u}-modal`,f=s(),p=c();let h=a;!1===h&&(h=void 0),vk(B.createElement(VD,Object.assign({},l,{getContainer:h,prefixCls:d,rootPrefixCls:u,iconPrefixCls:f,okText:r,locale:e,theme:p,cancelText:o||e.cancelText})),t)}))}function a(){for(var t=arguments.length,n=new Array(t),a=0;a{"function"==typeof e.afterClose&&e.afterClose(),o.apply(this,n)}}),r.visible&&delete r.visible,i(r)}return i(r),GD.push(a),{destroy:a,update:function(e){r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e),i(r)}}}function YD(e){return Object.assign(Object.assign({},e),{type:"warning"})}function QD(e){return Object.assign(Object.assign({},e),{type:"info"})}function JD(e){return Object.assign(Object.assign({},e),{type:"success"})}function ZD(e){return Object.assign(Object.assign({},e),{type:"error"})}function e$(e){return Object.assign(Object.assign({},e),{type:"confirm"})}const t$=(e,t)=>{var n,{afterClose:r,config:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe&&e.triggerCancel));s.onCancel&&r&&s.onCancel.apply(s,[()=>{}].concat(Rh(t.slice(1))))};B.useImperativeHandle(t,(()=>({destroy:h,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[m]=Iv("Modal",Dv.Modal);return B.createElement(VD,Object.assign({prefixCls:f,rootPrefixCls:p},s,{close:h,open:a,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(g?null==m?void 0:m.okText:null==m?void 0:m.justOkText),direction:s.direction||u,cancelText:s.cancelText||(null==m?void 0:m.cancelText)},i))},n$=B.forwardRef(t$);let r$=0;const o$=B.memo(B.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=B.useState([]);return[e,B.useCallback((e=>(t((t=>[].concat(Rh(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return B.useImperativeHandle(t,(()=>({patchElement:r})),[]),B.createElement(B.Fragment,null,n)})));function i$(){const e=B.useRef(null),[t,n]=B.useState([]);B.useEffect((()=>{if(t.length){Rh(t).forEach((e=>{e()})),n([])}}),[t]);const r=B.useCallback((t=>function(r){var o;r$+=1;const i=B.createRef();let a;const l=new Promise((e=>{a=e}));let s,c=!1;const u=B.createElement(n$,{key:`modal-${r$}`,config:t(r),ref:i,afterClose:()=>{null==s||s()},isSilent:()=>c,onConfirm:e=>{a(e)}});s=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),s&&GD.push(s);return{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(Rh(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(Rh(e),[t])))},then:e=>(c=!0,l.then(e))}}),[]);return[B.useMemo((()=>({info:r(QD),success:r(JD),error:r(ZD),warning:r(YD),confirm:r(e$)})),[]),B.createElement(o$,{key:"modal-holder",ref:e})]}const a$=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Hm("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hm("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hm("antNotificationBottomFadeIn",{"0%":{bottom:-r,opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new Hm("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},l$=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],s$={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},c$=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},u$=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},c$(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},u$(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:-e.margin,background:"transparent",pointerEvents:"auto"}}}},l$.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[s$[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},f$=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:g,lineHeight:m,width:b,notificationIconSize:v,colorText:y}=e,w=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[w]:{padding:p,width:b,maxWidth:`calc(100vw - ${2*h}px)`,overflow:"hidden",lineHeight:m,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:g,color:y},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+v,fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+v,fontSize:g},[`${w}-icon`]:{position:"absolute",fontSize:v,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},p$=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Hm("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},rw(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},f$(e))}}]},h$=e=>({zIndexPopup:e.zIndexPopupBase+US+50,width:384}),g$=e=>{const t=e.paddingMD,n=e.paddingLG;return uw(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},m$=hw("Notification",(e=>{const t=g$(e);return[p$(t),a$(t),d$(t)]}),h$),b$=gw(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=g$(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},f$(n)),{width:n.width,maxWidth:`calc(100vw - ${2*n.notificationMarginEdge}px)`,margin:0})}}),h$);function v$(e,t){return null===t||!1===t?null:t||B.createElement("span",{className:`${e}-close-x`},B.createElement(Gx,{className:`${e}-close-icon`}))}const y$={success:zx,info:Jx,error:Wx,warning:Kx},w$=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let s=null;return n?s=B.createElement("span",{className:`${t}-icon`},n):r&&(s=B.createElement(y$[r]||null,{className:Ym(`${t}-icon`,`${t}-icon-${r}`)})),B.createElement("div",{className:Ym({[`${t}-with-icon`]:s}),role:l},s,B.createElement("div",{className:`${t}-message`},o),B.createElement("div",{className:`${t}-description`},i),a&&B.createElement("div",{className:`${t}-btn`},a))};var x$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const[,r]=m$(n);return B.createElement(NS,{classNames:{list:r,notice:r}},t)},C$=(e,t)=>{let{prefixCls:n,key:r}=t;return B.createElement(k$,{prefixCls:n,key:r},e)},E$=B.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c}=e,{getPrefixCls:u,getPopupContainer:d,notification:f}=B.useContext(Iy),[,p]=Yy(),h=o||u("notification"),[g,m]=MS({prefixCls:h,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>Ym({[`${h}-rtl`]:l}),motion:()=>function(e){return{motionName:`${e}-fade`}}(h),closable:!0,closeIcon:v$(h),duration:4.5,getContainer:()=>(null==i?void 0:i())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:s,renderNotifications:C$,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:p.margin}});return B.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:h,notification:f}))),m}));function O$(e){const t=B.useRef(null);Sv();return[B.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,notification:a}=t.current,l=`${i}-notice`,{message:s,description:c,icon:u,type:d,btn:f,className:p,style:h,role:g="alert",closeIcon:m}=n,b=x$(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=v$(l,m);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:S$},b),{content:B.createElement(w$,{prefixCls:l,icon:u,type:d,message:s,description:c,btn:f,role:g}),className:Ym(d&&`${l}-${d}`,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),closeIcon:v,closable:!!v}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),B.createElement(E$,Object.assign({key:"notification-holder"},e,{ref:t}))]}function D$(e){return O$(e)}const $$=H.createContext({}),j$=H.createContext({message:{},notification:{},modal:{}}),P$=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},N$=hw("App",(e=>[P$(e)])),_$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:l,component:s="div"}=e,{getPrefixCls:c}=B.useContext(Iy),u=c("app",t),[d,f]=N$(u),p=Ym(f,u,r,o),h=B.useContext($$),g=H.useMemo((()=>({message:Object.assign(Object.assign({},h.message),i),notification:Object.assign(Object.assign({},h.notification),a)})),[i,a,h.message,h.notification]),[m,b]=lk(g.message),[v,y]=D$(g.notification),[w,x]=i$(),S=H.useMemo((()=>({message:m,notification:v,modal:w})),[m,v,w]),k=!1===s?H.Fragment:s,C={className:p,style:l};return d(H.createElement(j$.Provider,{value:S},H.createElement($$.Provider,{value:g},H.createElement(k,Object.assign({},!1===s?void 0:C),x,b,y,n))))};_$.useApp=()=>H.useContext(j$);const I$=_$;function T$(e){return function(t){return B.createElement(Sx,{theme:{token:{motion:!1,zIndexPopupBase:0}}},B.createElement(e,Object.assign({},t)))}}const F$=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|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|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var R$=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,l=e.children;return t="function"==typeof r?r(o):r,B.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:B.createElement("span",{className:Ym(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},l))};var A$=B.createContext(null);function M$(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=B.useRef(null),n=B.useRef(null);return B.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var L$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],z$=void 0;function B$(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,h=e.order,g=e.component,m=void 0===g?"div":g,b=Od(e,L$),v=a&&!p;function y(e){s(c,e)}B.useEffect((function(){return function(){y(null)}}),[]);var w,x=i&&o!==z$?i(o):f;r||(w={opacity:v?0:1,height:v?0:z$,overflowY:v?"hidden":z$,order:a?h:z$,pointerEvents:v?"none":z$,position:v?"absolute":z$});var S={};v&&(S["aria-hidden"]=!0);var k=B.createElement(m,Zp({className:Ym(!r&&n,u),style:Mh(Mh({},w),d)},S,b,{ref:t}),x);return a&&(k=B.createElement(ov,{onResize:function(e){y(e.offsetWidth)},disabled:l},k)),k}var H$=B.forwardRef(B$);function W$(){var e=B.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)dv(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){vd.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function U$(e,t){var n=mg(B.useState(t),2),r=n[0],o=n[1];return[r,Qy((function(t){e((function(){o(t)}))}))]}H$.displayName="Item";var V$=H.createContext(null),G$=["component"],q$=["className"],X$=["className"],K$=function(e,t){var n=B.useContext(V$);if(!n){var r=e.component,o=void 0===r?"div":r,i=Od(e,G$);return B.createElement(o,Zp({},i,{ref:t}))}var a=n.className,l=Od(n,q$),s=e.className,c=Od(e,X$);return B.createElement(V$.Provider,{value:null},B.createElement(H$,Zp({ref:t,className:Ym(a,s)},l,c)))},Y$=B.forwardRef(K$);Y$.displayName="RawItem";var Q$=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],J$="responsive",Z$="invalidate";function ej(e){return"+ ".concat(e.length," ...")}function tj(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,o=e.data,i=void 0===o?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,u=void 0===c?10:c,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.suffix,v=e.component,y=void 0===v?"div":v,w=e.itemComponent,x=e.onVisibleChange,S=Od(e,Q$),k="full"===d,C=W$(),E=mg(U$(C,null),2),O=E[0],D=E[1],$=O||0,j=mg(U$(C,new Map),2),P=j[0],N=j[1],_=mg(U$(C,0),2),I=_[0],T=_[1],F=mg(U$(C,0),2),R=F[0],A=F[1],M=mg(U$(C,0),2),L=M[0],z=M[1],H=mg(B.useState(null),2),W=H[0],U=H[1],V=mg(B.useState(null),2),G=V[0],q=V[1],X=B.useMemo((function(){return null===G&&k?Number.MAX_SAFE_INTEGER:G||0}),[G,O]),K=mg(B.useState(!1),2),Y=K[0],Q=K[1],J="".concat(r,"-item"),Z=Math.max(I,R),ee=h===J$,te=i.length&&ee,ne=h===Z$,re=te||"number"==typeof h&&i.length>h,oe=B.useMemo((function(){var e=i;return te?e=null===O&&k?i:i.slice(0,Math.min(i.length,$/u)):"number"==typeof h&&(e=i.slice(0,h)),e}),[i,u,O,h,te]),ie=B.useMemo((function(){return te?i.slice(X+1):i.slice(oe.length)}),[i,oe,te,X]),ae=B.useCallback((function(e,t){var n;return"function"==typeof s?s(e):null!==(n=s&&(null==e?void 0:e[s]))&&void 0!==n?n:t}),[s]),le=B.useCallback(a||function(e){return e},[a]);function se(e,t,n){(G!==e||void 0!==t&&t!==W)&&(q(e),n||(Q(e$){se(r-1,e-o-L+R);break}}b&&ue(0)+L>$&&U(null)}}),[$,P,R,L,ae,oe]);var de=Y&&!!ie.length,fe={};null!==W&&te&&(fe={position:"absolute",left:W,top:0});var pe,he={prefixCls:J,responsive:te,component:w,invalidate:ne},ge=l?function(e,t){var n=ae(e,t);return B.createElement(V$.Provider,{key:n,value:Mh(Mh({},he),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=X})},l(e,t))}:function(e,t){var n=ae(e,t);return B.createElement(H$,Zp({},he,{order:t,key:n,item:e,renderItem:le,itemKey:n,registerSize:ce,display:t<=X}))},me={order:de?X:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){A(t),T(R)},display:de};if(m)m&&(pe=B.createElement(V$.Provider,{value:Mh(Mh({},he),me)},m(ie)));else{var be=g||ej;pe=B.createElement(H$,Zp({},he,me),"function"==typeof be?be(ie):be)}var ve=B.createElement(y,Zp({className:Ym(!ne&&r,p),style:f,ref:t},S),oe.map(ge),re?pe:null,b&&B.createElement(H$,Zp({},he,{responsive:ee,responsiveDisabled:!te,order:X,className:"".concat(J,"-suffix"),registerSize:function(e,t){z(t)},display:!0,style:fe}),b));return ee&&(ve=B.createElement(ov,{onResize:function(e,t){D(t.clientWidth)},disabled:!te},ve)),ve}var nj=B.forwardRef(tj);nj.displayName="Overflow",nj.Item=Y$,nj.RESPONSIVE=J$,nj.INVALIDATE=Z$;var rj=function(e,t){var n,r=e.prefixCls,o=e.id,i=e.inputElement,a=e.disabled,l=e.tabIndex,s=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,f=e.value,p=e.maxLength,h=e.onKeyDown,g=e.onMouseDown,m=e.onChange,b=e.onPaste,v=e.onCompositionStart,y=e.onCompositionEnd,w=e.open,x=e.attrs,S=i||B.createElement("input",null),k=S,C=k.ref,E=k.props,O=E.onKeyDown,D=E.onChange,$=E.onMouseDown,j=E.onCompositionStart,P=E.onCompositionEnd,N=E.style;return S.props,S=B.cloneElement(S,Mh(Mh(Mh({type:"search"},E),{},{id:o,ref:wb(t,C),disabled:a,tabIndex:l,autoComplete:c||"off",autoFocus:s,className:Ym("".concat(r,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?d:void 0},x),{},{value:u?f:"",maxLength:p,readOnly:!u,unselectable:u?null:"on",style:Mh(Mh({},N),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),O&&O(e)},onMouseDown:function(e){g(e),$&&$(e)},onChange:function(e){m(e),D&&D(e)},onCompositionStart:function(e){v(e),j&&j(e)},onCompositionEnd:function(e){y(e),P&&P(e)},onPaste:b}))},oj=B.forwardRef(rj);function ij(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}oj.displayName="Input";var aj="undefined"!=typeof window&&window.document&&window.document.documentElement;function lj(e){return["string","number"].includes(kd(e))}function sj(e){var t=void 0;return e&&(lj(e.title)?t=e.title.toString():lj(e.label)&&(t=e.label.toString())),t}function cj(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var uj=function(e){e.preventDefault(),e.stopPropagation()},dj=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,a=e.open,l=e.searchValue,s=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,h=e.autoFocus,g=e.autoComplete,m=e.activeDescendantId,b=e.tabIndex,v=e.removeIcon,y=e.maxTagCount,w=e.maxTagTextLength,x=e.maxTagPlaceholder,S=void 0===x?function(e){return"+ ".concat(e.length," ...")}:x,k=e.tagRender,C=e.onToggleOpen,E=e.onRemove,O=e.onInputChange,D=e.onInputPaste,$=e.onInputKeyDown,j=e.onInputMouseDown,P=e.onInputCompositionStart,N=e.onInputCompositionEnd,_=B.useRef(null),I=mg(B.useState(0),2),T=I[0],F=I[1],R=mg(B.useState(!1),2),A=R[0],M=R[1],L="".concat(o,"-selection"),z=a||"multiple"===f&&!1===s||"tags"===f?l:"",H="tags"===f||"multiple"===f&&!1===s||p&&(a||A);function W(e,t,n,r,o){return B.createElement("span",{className:Ym("".concat(L,"-item"),Ed({},"".concat(L,"-item-disabled"),n)),title:sj(e)},B.createElement("span",{className:"".concat(L,"-item-content")},t),r&&B.createElement(R$,{className:"".concat(L,"-item-remove"),onMouseDown:uj,onClick:o,customizeIcon:v},"×"))}t=function(){F(_.current.scrollWidth)},n=[z],aj?B.useLayoutEffect(t,n):B.useEffect(t,n);var U=B.createElement("div",{className:"".concat(L,"-search"),style:{width:T},onFocus:function(){M(!0)},onBlur:function(){M(!1)}},B.createElement(oj,{ref:c,open:a,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:H,activeDescendantId:m,value:z,onKeyDown:$,onMouseDown:j,onChange:O,onPaste:D,onCompositionStart:P,onCompositionEnd:N,tabIndex:b,attrs:rS(e,!0)}),B.createElement("span",{ref:_,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},z," ")),V=B.createElement(nj,{prefixCls:"".concat(L,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var l=String(i);l.length>w&&(i="".concat(l.slice(0,w),"..."))}var s=function(t){t&&t.stopPropagation(),E(e)};return"function"==typeof k?function(e,t,n,r,o){return B.createElement("span",{onMouseDown:function(e){uj(e),C(!a)}},k({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,s):W(e,i,t,o,s)},renderRest:function(e){var t="function"==typeof S?S(e):S;return W({title:t},t,!1)},suffix:U,itemKey:cj,maxCount:y});return B.createElement(B.Fragment,null,V,!i.length&&!z&&B.createElement("span",{className:"".concat(L,"-placeholder")},u))},fj=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,v=e.onInputKeyDown,y=e.onInputMouseDown,w=e.onInputChange,x=e.onInputPaste,S=e.onInputCompositionStart,k=e.onInputCompositionEnd,C=e.title,E=mg(B.useState(!1),2),O=E[0],D=E[1],$="combobox"===c,j=$||h,P=d[0],N=g||"";$&&m&&!O&&(N=m),B.useEffect((function(){$&&D(!1)}),[$,m]);var _=!("combobox"!==c&&!u&&!h)&&!!N,I=void 0===C?sj(P):C;return B.createElement(B.Fragment,null,B.createElement("span",{className:"".concat(n,"-selection-search")},B.createElement(oj,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:j,activeDescendantId:s,value:N,onKeyDown:v,onMouseDown:y,onChange:function(e){D(!0),w(e)},onPaste:x,onCompositionStart:S,onCompositionEnd:k,tabIndex:p,attrs:rS(e,!0),maxLength:$?b:void 0})),!$&&P?B.createElement("span",{className:"".concat(n,"-selection-item"),title:I,style:_?{visibility:"hidden"}:void 0},P.label):null,function(){if(P)return null;var e=_?{visibility:"hidden"}:void 0;return B.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},f)}())};var pj=function(e,t){var n=B.useRef(null),r=B.useRef(!1),o=e.prefixCls,i=e.open,a=e.mode,l=e.showSearch,s=e.tokenWithEnter,c=e.autoClearSearchValue,u=e.onSearch,d=e.onSearchSubmit,f=e.onToggleOpen,p=e.onInputKeyDown,h=e.domRef;B.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=mg(M$(0),2),m=g[0],b=g[1],v=B.useRef(null),y=function(e){!1!==u(e,!0,r.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==$S.UP&&n!==$S.DOWN||e.preventDefault(),p&&p(e),n!==$S.ENTER||"tags"!==a||r.current||i||null==d||d(e.target.value),t=n,[$S.ESC,$S.SHIFT,$S.BACKSPACE,$S.TAB,$S.WIN_KEY,$S.ALT,$S.META,$S.WIN_KEY_RIGHT,$S.CTRL,$S.SEMICOLON,$S.EQUALS,$S.CAPS_LOCK,$S.CONTEXT_MENU,$S.F1,$S.F2,$S.F3,$S.F4,$S.F5,$S.F6,$S.F7,$S.F8,$S.F9,$S.F10,$S.F11,$S.F12].includes(t)||f(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(s&&v.current&&/[\r\n]/.test(v.current)){var n=v.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,v.current)}v.current=null,y(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");v.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==a&&y(e.target.value)}},x="multiple"===a||"tags"===a?B.createElement(dj,Zp({},e,w)):B.createElement(fj,Zp({},e,w));return B.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=m();e.target===n.current||t||"combobox"===a||e.preventDefault(),("combobox"===a||l&&t)&&i||(i&&!1!==c&&u("",!0,!1),f())}},x)},hj=B.forwardRef(pj);function gj(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=void 0===s?0:s,u=o.y,d=void 0===u?0:u,f=B.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],m=h[0],b=h[1],v=g[0],y=g[1];m!==v&&["t","b"].includes(m)?"t"===m?p.top=0:p.bottom=0:p.top=d,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return B.createElement("div",{ref:f,className:Ym("".concat(t,"-arrow"),a),style:p},l)}function mj(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?B.createElement(ex,Zp({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return B.createElement("div",{style:{zIndex:r},className:Ym("".concat(t,"-mask"),n)})})):null}hj.displayName="Selector";var bj=B.memo((function(e){return e.children}),(function(e,t){return t.cache})),vj=B.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,v=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,x=e.portal,S=e.zIndex,k=e.onMouseEnter,C=e.onMouseLeave,E=e.onPointerEnter,O=e.ready,D=e.offsetX,$=e.offsetY,j=e.offsetR,P=e.offsetB,N=e.onAlign,_=e.onPrepare,I=e.stretch,T=e.targetWidth,F=e.targetHeight,R="function"==typeof n?n():n,A=s||c,M=(null==y?void 0:y.length)>0,L=mg(B.useState(!y||!M),2),z=L[0],H=L[1];if(Ng((function(){!z&&M&&a&&H(!0)}),[z,M,a]),!z)return null;var W="auto",U={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(O||!s){var V,G=g.points,q=g.dynamicInset||(null===(V=g._experimental)||void 0===V?void 0:V.dynamicInset),X=q&&"r"===G[0][1],K=q&&"b"===G[0][0];X?(U.right=j,U.left=W):(U.left=D,U.right=W),K?(U.bottom=P,U.top=W):(U.top=$,U.bottom=W)}var Y={};return I&&(I.includes("height")&&F?Y.height=F:I.includes("minHeight")&&F&&(Y.minHeight=F),I.includes("width")&&T?Y.width=T:I.includes("minWidth")&&T&&(Y.minWidth=T)),s||(Y.pointerEvents="none"),B.createElement(x,{open:v||A,getContainer:y&&function(){return y(a)},autoDestroy:w},B.createElement(mj,{prefixCls:o,open:s,zIndex:S,mask:f,motion:b}),B.createElement(ov,{onResize:N,disabled:!s},(function(e){return B.createElement(ex,Zp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:_,onEnterPrepare:_,visible:s,onVisibleChanged:function(e){var t;null==m||null===(t=m.onVisibleChanged)||void 0===t||t.call(m,e),l(e)}}),(function(n,a){var l=n.className,c=n.style,f=Ym(o,l,r);return B.createElement("div",{ref:wb(e,t,a),className:f,style:Mh(Mh(Mh(Mh({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),Y),c),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:k,onMouseLeave:C,onPointerEnter:E,onClick:d},p&&B.createElement(gj,{prefixCls:o,arrow:p,arrowPos:h,align:g}),B.createElement(bj,{cache:!s&&!u},R))}))})))})),yj=B.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Sb(n),i=xb(B.useCallback((function(e){yb(t,r?r(e):e)}),[r]),n.ref);return o?B.cloneElement(n,{ref:i}):n})),wj=B.createContext(null);function xj(e){return e?Array.isArray(e)?e:[e]:[]}function Sj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function kj(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Cj(e){return e.ownerDocument.defaultView}function Ej(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Cj(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Oj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Dj(e){return Oj(parseFloat(e),0)}function $j(e,t){var n=Mh({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Cj(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=Dj(i),g=Dj(a),m=Dj(l),b=Dj(s),v=Oj(Math.round(c.width/f*1e3)/1e3),y=Oj(Math.round(c.height/u*1e3)/1e3),w=(f-p-m-b)*v,x=(u-d-h-g)*y,S=h*y,k=g*y,C=m*v,E=b*v,O=0,D=0;if("clip"===r){var $=Dj(o);O=$*v,D=$*y}var j=c.x+C-O,P=c.y+S-D,N=j+c.width+2*O-C-E-w,_=P+c.height+2*D-S-k-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,_)}})),n}function jj(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Pj(e,t){var n=mg(t||[],2),r=n[0],o=n[1];return[jj(e.width,r),jj(e.height,o)]}function Nj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function _j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function Ij(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var Tj=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const Fj=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oE,t=B.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,l=void 0===a?"hover":a,s=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,m=void 0===g?.1:g,b=t.focusDelay,v=t.blurDelay,y=t.mask,w=t.maskClosable,x=void 0===w||w,S=t.getPopupContainer,k=t.forceRender,C=t.autoDestroy,E=t.destroyPopupOnHide,O=t.popup,D=t.popupClassName,$=t.popupStyle,j=t.popupPlacement,P=t.builtinPlacements,N=void 0===P?{}:P,_=t.popupAlign,I=t.zIndex,T=t.stretch,F=t.getPopupClassNameFromAlign,R=t.fresh,A=t.alignPoint,M=t.onPopupClick,L=t.onPopupAlign,z=t.arrow,H=t.popupMotion,W=t.maskMotion,U=t.popupTransitionName,V=t.popupAnimation,G=t.maskTransitionName,q=t.maskAnimation,X=t.className,K=t.getTriggerDOMNode,Y=Od(t,Tj),Q=C||E||!1,J=mg(B.useState(!1),2),Z=J[0],ee=J[1];Ng((function(){ee(F$())}),[]);var te=B.useRef({}),ne=B.useContext(wj),re=B.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=sE(),ie=mg(B.useState(null),2),ae=ie[0],le=ie[1],se=Qy((function(e){bb(e)&&ae!==e&&le(e),null==ne||ne.registerSubPopup(oe,e)})),ce=mg(B.useState(null),2),ue=ce[0],de=ce[1],fe=B.useRef(null),pe=Qy((function(e){bb(e)&&ue!==e&&(de(e),fe.current=e)})),he=B.Children.only(i),ge=(null==he?void 0:he.props)||{},me={},be=Qy((function(e){var t,n,r=ue;return(null==r?void 0:r.contains(e))||(null===(t=Ex(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=Ex(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ve=kj(o,H,V,U),ye=kj(o,W,q,G),we=mg(B.useState(d||!1),2),xe=we[0],Se=we[1],ke=null!=u?u:xe,Ce=Qy((function(e){void 0===u&&Se(e)}));Ng((function(){Se(u||!1)}),[u]);var Ee=B.useRef(ke);Ee.current=ke;var Oe=B.useRef([]);Oe.current=[];var De=Qy((function(e){var t;Ce(e),(null!==(t=Oe.current[Oe.current.length-1])&&void 0!==t?t:ke)!==e&&(Oe.current.push(e),null==f||f(e))})),$e=B.useRef(),je=function(){clearTimeout($e.current)},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;je(),0===t?De(e):$e.current=setTimeout((function(){De(e)}),1e3*t)};B.useEffect((function(){return je}),[]);var Ne=mg(B.useState(!1),2),_e=Ne[0],Ie=Ne[1];Ng((function(e){e&&!ke||Ie(!0)}),[ke]);var Te=mg(B.useState(null),2),Fe=Te[0],Re=Te[1],Ae=mg(B.useState([0,0]),2),Me=Ae[0],Le=Ae[1],ze=function(e){Le([e.clientX,e.clientY])},Be=function(e,t,n,r,o,i,a){var l=mg(B.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),s=l[0],c=l[1],u=B.useRef(0),d=B.useMemo((function(){return t?Ej(t):[]}),[t]),f=B.useRef({});e||(f.current={});var p=Qy((function(){if(t&&n&&e){let e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=D.x+e,o=D.y+t,i=r+R,a=o+F,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))},lt=function(){ae=D.y+ve,le=ae+F,se=D.x+be,ce=se+R};var l,s,u,p=t,h=p.ownerDocument,g=Cj(p).getComputedStyle(p),m=g.width,b=g.height,v=g.position,y=p.style.left,w=p.style.top,x=p.style.right,S=p.style.bottom,k=p.style.overflow,C=Mh(Mh({},o[r]),i),E=h.createElement("div");if(null===(l=p.parentElement)||void 0===l||l.appendChild(E),E.style.left="".concat(p.offsetLeft,"px"),E.style.top="".concat(p.offsetTop,"px"),E.style.position=v,E.style.height="".concat(p.offsetHeight,"px"),E.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))u={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();u={x:O.x,y:O.y,width:O.width,height:O.height}}var D=p.getBoundingClientRect(),$=h.documentElement,j=$.clientWidth,P=$.clientHeight,N=$.scrollWidth,_=$.scrollHeight,I=$.scrollTop,T=$.scrollLeft,F=D.height,R=D.width,A=u.height,M=u.width,L={left:0,top:0,right:j,bottom:P},z={left:-T,top:-I,right:N-T,bottom:_-I},B=C.htmlRegion,H="visible",W="visibleFirst";"scroll"!==B&&B!==W&&(B=H);var U=B===W,V=$j(z,d),G=$j(L,d),q=B===H?G:V,X=U?G:q;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var K=p.getBoundingClientRect();p.style.left=y,p.style.top=w,p.style.right=x,p.style.bottom=S,p.style.overflow=k,null===(s=p.parentElement)||void 0===s||s.removeChild(E);var Y=Oj(Math.round(R/parseFloat(m)*1e3)/1e3),Q=Oj(Math.round(F/parseFloat(b)*1e3)/1e3);if(0===Y||0===Q||bb(n)&&!Pk(n))return;var J=C.offset,Z=C.targetOffset,ee=mg(Pj(D,J),2),te=ee[0],ne=ee[1],re=mg(Pj(u,Z),2),oe=re[0],ie=re[1];u.x-=oe,u.y-=ie;var ae,le,se,ce,ue=mg(C.points||[],2),de=ue[0],fe=Nj(ue[1]),pe=Nj(de),he=_j(u,fe),ge=_j(D,pe),me=Mh({},C),be=he.x-ge.x+te,ve=he.y-ge.y+ne,ye=e(be,ve),we=e(be,ve,G),xe=_j(u,["t","l"]),Se=_j(D,["t","l"]),ke=_j(u,["b","r"]),Ce=_j(D,["b","r"]),Ee=C.overflow||{},Oe=Ee.adjustX,De=Ee.adjustY,$e=Ee.shiftX,je=Ee.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};lt();var Ne=Pe(De),_e=pe[0]===fe[0];if(Ne&&"t"===pe[0]&&(le>X.bottom||f.current.bt)){var Ie=ve;_e?Ie-=F-A:Ie=xe.y-Ce.y-ne;var Te=e(be,Ie),Fe=e(be,Ie,G);Te>ye||Te===ye&&(!U||Fe>=we)?(f.current.bt=!0,ve=Ie,ne=-ne,me.points=[Ij(pe,0),Ij(fe,0)]):f.current.bt=!1}if(Ne&&"b"===pe[0]&&(aeye||Ae===ye&&(!U||Me>=we)?(f.current.tb=!0,ve=Re,ne=-ne,me.points=[Ij(pe,0),Ij(fe,0)]):f.current.tb=!1}var Le=Pe(Oe),ze=pe[1]===fe[1];if(Le&&"l"===pe[1]&&(ce>X.right||f.current.rl)){var Be=be;ze?Be-=R-M:Be=xe.x-Ce.x-te;var He=e(Be,ve),We=e(Be,ve,G);He>ye||He===ye&&(!U||We>=we)?(f.current.rl=!0,be=Be,te=-te,me.points=[Ij(pe,1),Ij(fe,1)]):f.current.rl=!1}if(Le&&"r"===pe[1]&&(seye||Ve===ye&&(!U||Ge>=we)?(f.current.lr=!0,be=Ue,te=-te,me.points=[Ij(pe,1),Ij(fe,1)]):f.current.lr=!1}lt();var qe=!0===$e?0:$e;"number"==typeof qe&&(seG.right&&(be-=ce-G.right-te,u.x>G.right-qe&&(be+=u.x-G.right+qe)));var Xe=!0===je?0:je;"number"==typeof Xe&&(aeG.bottom&&(ve-=le-G.bottom-ne,u.y>G.bottom-Xe&&(ve+=u.y-G.bottom+Xe)));var Ke=D.x+be,Ye=Ke+R,Qe=D.y+ve,Je=Qe+F,Ze=u.x,et=Ze+M,tt=u.y,nt=tt+A,rt=(Math.max(Ke,Ze)+Math.min(Ye,et))/2-Ke,ot=(Math.max(Qe,tt)+Math.min(Je,nt))/2-Qe;null==a||a(t,me);var it=K.right-D.x-(be+D.width),at=K.bottom-D.y-(ve+D.height);c({ready:!0,offsetX:be/Y,offsetY:ve/Q,offsetR:it/Y,offsetB:at/Q,arrowX:rt/Y,arrowY:ot/Q,scaleX:Y,scaleY:Q,align:me})}})),h=function(){c((function(e){return Mh(Mh({},e),{},{ready:!1})}))};return Ng(h,[r]),Ng((function(){e||h()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(ke,ae,A?Me:ue,j,N,_,L),He=mg(Be,11),We=He[0],Ue=He[1],Ve=He[2],Ge=He[3],qe=He[4],Xe=He[5],Ke=He[6],Ye=He[7],Qe=He[8],Je=He[9],Ze=He[10],et=function(e,t,n,r){return B.useMemo((function(){var o=xj(null!=n?n:t),i=xj(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}(Z,l,s,c),tt=mg(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),it=rt.has("click")||rt.has("contextMenu"),at=Qy((function(){_e||Ze()}));!function(e,t,n,r,o){Ng((function(){if(e&&t&&n){let e=function(){r(),o()};var i=n,a=Ej(t),l=Ej(i),s=Cj(i),c=new Set([s].concat(Rh(a),Rh(l)));return c.forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){c.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(ke,ue,ae,at,(function(){Ee.current&&A&&it&&Pe(!1)})),Ng((function(){at()}),[Me,j]),Ng((function(){!ke||null!=N&&N[j]||at()}),[JSON.stringify(_)]);var lt=B.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:10,t=mg(B.useState(!1),2),n=t[0],r=t[1],o=B.useRef(null),i=function(){window.clearTimeout(o.current)};return B.useEffect((function(){return i}),[]),[n,function(t,n){i(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),me=mg(ge,3),be=me[0],ve=me[1],ye=me[2];B.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=fe.current)||void 0===e?void 0:e.focus,blur:null===(t=fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var we=B.useMemo((function(){var e;if("combobox"!==b)return $;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[$,b,d]),xe="combobox"===b&&"function"==typeof w&&w()||null,Se="function"==typeof x&&x(),ke=xb(ue,null==Se||null===(n=Se.props)||void 0===n?void 0:n.ref),Ce=mg(B.useState(!1),2),Ee=Ce[0],Oe=Ce[1];Ng((function(){Oe(!0)}),[]);var De=mg(ew(!1,{defaultValue:k,value:S}),2),$e=De[0],je=De[1],Pe=!!Ee&&$e,Ne=!g&&p;(v||Ne&&Pe&&"combobox"===b)&&(Pe=!1);var _e=!Ne&&Pe,Ie=B.useCallback((function(e){var t=void 0!==e?e:!Pe;v||(je(t),Pe!==t&&(null==C||C(t)))}),[v,Pe,je,C]),Te=B.useMemo((function(){return(_||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[_]),Fe=function(e,t,n){var r=!0,o=e;null==O||O(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=pv(r),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce((function(t,n){return[].concat(Rh(t),Rh(e(n,a)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,_);return"combobox"!==b&&i&&(o="",null==N||N(i),Ie(!1),r=!1),P&&we!==o&&P(o,{source:t?"typing":"effect"}),r};B.useEffect((function(){Pe||re||"combobox"===b||Fe("",!1,!1)}),[Pe]),B.useEffect((function(){$e&&v&&je(!1),v&&!he.current&&ve(!1)}),[v]);var Re=mg(M$(),2),Ae=Re[0],Me=Re[1],Le=B.useRef(!1),ze=[];B.useEffect((function(){return function(){ze.forEach((function(e){return clearTimeout(e)})),ze.splice(0,ze.length)}}),[]);var Be,He=mg(B.useState({}),2)[1];Se&&(Be=function(e){Ie(e)}),function(e,t,n,r){var o=B.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},B.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ce.current,null===(e=de.current)||void 0===e?void 0:e.getPopupElement()]}),_e,Ie,!!Se);var We,Ue=B.useMemo((function(){return Mh(Mh({},e),{},{notFoundContent:g,open:Pe,triggerOpen:_e,id:o,showSearch:oe,multiple:re,toggleOpen:Ie})}),[e,g,_e,Pe,o,oe,re,Ie]),Ve=!!T||y;Ve&&(We=B.createElement(R$,{className:Ym("".concat(i,"-arrow"),Ed({},"".concat(i,"-arrow-loading"),y)),customizeIcon:T,customizeIconProps:{loading:y,searchValue:we,open:Pe,focused:be,showSearch:oe}}));var Ge,qe=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=H.useMemo((function(){return"object"===kd(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:H.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===l&&""===a)}),[r,i,n.length,a,l]),clearIcon:H.createElement(R$,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(i,(function(){var e;null==m||m(),null===(e=fe.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Fe("",!1,!1)}),d,I,F,v,we,b),Xe=qe.allowClear,Ke=qe.clearIcon,Ye=B.createElement(R,{ref:pe}),Qe=Ym(i,a,(Ed(r={},"".concat(i,"-focused"),be),Ed(r,"".concat(i,"-multiple"),re),Ed(r,"".concat(i,"-single"),!re),Ed(r,"".concat(i,"-allow-clear"),I),Ed(r,"".concat(i,"-show-arrow"),Ve),Ed(r,"".concat(i,"-disabled"),v),Ed(r,"".concat(i,"-loading"),y),Ed(r,"".concat(i,"-open"),Pe),Ed(r,"".concat(i,"-customize-input"),xe),Ed(r,"".concat(i,"-show-search"),oe),r)),Je=B.createElement(Mj,{ref:de,disabled:v,prefixCls:i,visible:_e,popupElement:Ye,animation:A,transitionName:M,dropdownStyle:L,dropdownClassName:z,direction:c,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:V,placement:G,builtinPlacements:q,getPopupContainer:X,empty:p,getTriggerDOMNode:function(){return ue.current},onPopupVisibleChange:Be,onPopupMouseEnter:function(){He({})}},Se?B.cloneElement(Se,{ref:ke}):B.createElement(hj,Zp({},e,{domRef:ue,prefixCls:i,inputElement:xe,ref:fe,id:o,showSearch:oe,autoClearSearchValue:j,mode:b,activeDescendantId:D,tagRender:s,values:d,open:Pe,onToggleOpen:Ie,activeValue:E,searchValue:we,onSearch:Fe,onSearchSubmit:function(e){e&&e.trim()&&P(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:Te})));return Ge=Se?Je:B.createElement("div",Zp({className:Qe},ie,{ref:ce,onMouseDown:function(e){var t,n=e.target,r=null===(t=de.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=ze.indexOf(o);-1!==t&&ze.splice(t,1),ye(),le||r.contains(document.activeElement)||null===(e=fe.current)||void 0===e||e.focus()}));ze.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&f(o,{type:"remove",values:[i]})}for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u1?t-1:0),r=1;r0,F=B.useMemo((function(){return 0===i||0===_?0:i/_*I}),[i,_,I]),R=B.useRef({top:F,dragging:m,pageY:y,startTop:S});R.current={top:F,dragging:m,pageY:y,startTop:S};var A=function(e){b(!0),w(Kj(e,u)),k(R.current.top),l(),e.stopPropagation(),e.preventDefault()};B.useEffect((function(){var e=function(e){e.preventDefault()},t=E.current,n=O.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",A),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",A)}}),[]);var M=B.useRef();M.current=_;var L=B.useRef();L.current=I,B.useEffect((function(){if(m){var e,t=function(t){var n=R.current,r=n.dragging,o=n.pageY,i=n.startTop;if(dv.cancel(e),r){var a=Kj(t,u)-o,l=i;!C&&u?l-=a:l+=a;var s=M.current,d=L.current,f=d?l/d:0,p=Math.ceil(f*s);p=Math.max(p,0),p=Math.min(p,s),e=dv((function(){c(p,u)}))}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),dv.cancel(e)}}}),[m]),B.useEffect((function(){N()}),[i]),B.useImperativeHandle(t,(function(){return{delayHidden:N}}));var z="".concat(r,"-scrollbar"),H={position:"absolute",visibility:$&&T?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(H.height=8,H.left=0,H.right=0,H.bottom=0,W.height="100%",W.width=d,C?W.left=F:W.right=F):(H.width=8,H.top=0,H.bottom=0,C?H.right=0:H.left=0,W.width="100%",W.height=d,W.top=F),B.createElement("div",{ref:E,className:Ym(z,(n={},Ed(n,"".concat(z,"-horizontal"),u),Ed(n,"".concat(z,"-vertical"),!u),Ed(n,"".concat(z,"-visible"),$),n)),style:Mh(Mh({},H),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:N},B.createElement("div",{ref:O,className:Ym("".concat(z,"-thumb"),Ed({},"".concat(z,"-thumb-moving"),m)),style:Mh(Mh({},W),h),onMouseDown:A}))}));function Qj(e){var t=e.children,n=e.setRef,r=B.useCallback((function(e){n(e)}),[]);return B.cloneElement(t,{ref:r})}var Jj=function(){function e(){mf(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return vf(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var Zj=10;function eP(e,t,n){var r=mg(B.useState(e),2),o=r[0],i=r[1],a=mg(B.useState(null),2),l=a[0],s=a[1];return B.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i1&&void 0!==arguments[1]&&arguments[1],i=e<0&&o.current.top||e>0&&o.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};function rP(e,t,n,r,o){var i=B.useRef(0),a=B.useRef(null),l=B.useRef(null),s=B.useRef(!1),c=nP(t,n);var u=B.useRef(null),d=B.useRef(null);return[function(t){if(e){dv.cancel(d.current),d.current=dv((function(){u.current=null}),2);var n=t.deltaX,f=t.deltaY,p=t.shiftKey,h=n,g=f;("sx"===u.current||!u.current&&p&&f&&!n)&&(h=f,g=0,u.current="sx");var m=Math.abs(h),b=Math.abs(g);null===u.current&&(u.current=r&&m>b?"x":"y"),"y"===u.current?function(e,t){dv.cancel(a.current),i.current+=t,l.current=t,c(t)||(tP||e.preventDefault(),a.current=dv((function(){var e=s.current?10:1;o(i.current*e),i.current=0})))}(t,g):function(e,t){o(t,!0),tP||e.preventDefault()}(t,h)}},function(t){e&&(s.current=t.detail===l.current)}]}var oP=14/15;var iP=20;function aP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,iP),t=Math.min(t,e/2),Math.floor(t)}var lP=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],sP=[],cP={overflowY:"auto",overflowAnchor:"none"};function uP(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=void 0===l||l,c=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=void 0===m?"div":m,v=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,S=e.extraRender,k=e.styles,C=Od(e,lP),E=!(!1===p||!i||!a),O=E&&u&&(a*u.length>i||!!g),D="rtl"===h,$=Ym(r,Ed({},"".concat(r,"-rtl"),D),o),j=u||sP,P=B.useRef(),N=B.useRef(),_=mg(B.useState(0),2),I=_[0],T=_[1],F=mg(B.useState(0),2),R=F[0],A=F[1],M=mg(B.useState(!1),2),L=M[0],z=M[1],H=function(){z(!0)},W=function(){z(!1)},U=B.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),V={getKey:U};function G(e){T((function(t){var n=function(e){var t=e;Number.isNaN(ge.current)||(t=Math.min(t,ge.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return P.current.scrollTop=n,n}))}var q=B.useRef({start:0,end:j.length}),X=B.useRef(),K=mg(eP(j,U),1)[0];X.current=K;var Y=function(e,t,n){var r=mg(B.useState(0),2),o=r[0],i=r[1],a=B.useRef(new Map),l=B.useRef(new Jj),s=B.useRef();function c(){dv.cancel(s.current)}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=vb(e),r=n.offsetHeight;l.current.get(t)!==r&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():s.current=dv(t)}return B.useEffect((function(){return c}),[]),[function(r,o){var i=e(r),l=a.current.get(i);o?(a.current.set(i,o),u()):a.current.delete(i),!l!=!o&&(o?null==t||t(r):null==n||n(r))},u,l.current,o]}(U,null,null),Q=mg(Y,4),J=Q[0],Z=Q[1],ee=Q[2],te=Q[3],ne=B.useMemo((function(){if(!E)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};var e;if(!O)return{scrollHeight:(null===(e=N.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:j.length-1,offset:void 0};for(var t,n,r,o=0,l=j.length,s=0;s=I&&void 0===t&&(t=s,n=o),f>I+i&&void 0===r&&(r=s),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(i/a)),void 0===r&&(r=j.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,j.length-1),offset:n}}),[O,E,I,j,te,i]),re=ne.scrollHeight,oe=ne.start,ie=ne.end,ae=ne.offset;q.current.start=oe,q.current.end=ie;var le=mg(B.useState({width:0,height:i}),2),se=le[0],ce=le[1],ue=B.useRef(),de=B.useRef(),fe=B.useMemo((function(){return aP(se.width,g)}),[se.width,g]),pe=B.useMemo((function(){return aP(se.height,re)}),[se.height,re]),he=re-i,ge=B.useRef(he);ge.current=he;var me=I<=0,be=I>=he,ve=nP(me,be),ye=function(){return{x:D?-R:R,y:I}},we=B.useRef(ye()),xe=Qy((function(){if(y){var e=ye();we.current.x===e.x&&we.current.y===e.y||(y(e),we.current=e)}}));function Se(e,t){var n=e;t?(vd.flushSync((function(){A(n)})),xe()):G(n)}var ke=function(e){var t=e,n=g-se.width;return t=Math.max(t,0),t=Math.min(t,n)},Ce=Qy((function(e,t){t?(vd.flushSync((function(){A((function(t){return ke(t+(D?-e:e))}))})),xe()):G((function(t){return t+e}))})),Ee=mg(rP(E,me,be,!!g,Ce),2),Oe=Ee[0],De=Ee[1];!function(e,t,n){var r,o=B.useRef(!1),i=B.useRef(0),a=B.useRef(null),l=B.useRef(null),s=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(r*=oP,!0)||Math.abs(r)<=.1)&&clearInterval(l.current)}),16)}},c=function(){o.current=!1,r()},u=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",s),a.current.addEventListener("touchend",c))};r=function(){a.current&&(a.current.removeEventListener("touchmove",s),a.current.removeEventListener("touchend",c))},Ng((function(){return e&&t.current.addEventListener("touchstart",u),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),r(),clearInterval(l.current)}}),[e])}(E,P,(function(e,t){return!ve(e,t)&&(Oe({preventDefault:function(){},deltaY:e}),!0)})),Ng((function(){function e(e){E&&e.preventDefault()}var t=P.current;return t.addEventListener("wheel",Oe),t.addEventListener("DOMMouseScroll",De),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Oe),t.removeEventListener("DOMMouseScroll",De),t.removeEventListener("MozMousePixelScroll",e)}}),[E]),Ng((function(){g&&A((function(e){return ke(e)}))}),[se.width,g]);var $e=function(){var e,t;null===(e=ue.current)||void 0===e||e.delayHidden(),null===(t=de.current)||void 0===t||t.delayHidden()},je=function(e,t,n,r,o,i,a,l){var s=B.useRef(),c=mg(B.useState(null),2),u=c[0],d=c[1];return Ng((function(){if(u&&u.times=0;O-=1){var D=o(t[O]),$=n.get(D);if(void 0===$){h=!0;break}if((E-=$)<=0)break}switch(b){case"top":m=y-f;break;case"bottom":m=w-p+f;break;default:var j=e.current.scrollTop;yj+p&&(g="bottom")}null!==m&&a(m),m!==u.lastTop&&(h=!0)}h&&d(Mh(Mh({},u),{},{times:u.times+1,targetAlign:g,lastTop:m}))}}),[u,e.current]),function(e){if(null!=e){if(dv.cancel(s.current),"number"==typeof e)a(e);else if(e&&"object"===kd(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var i=e.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else l()}}(P,j,ee,a,U,(function(){return Z(!0)}),G,$e);B.useImperativeHandle(t,(function(){return{getScrollInfo:ye,scrollTo:function(e){var t;(t=e)&&"object"===kd(t)&&("left"in t||"top"in t)?(void 0!==e.left&&A(ke(e.left)),je(e.top)):je(e)}}})),Ng((function(){if(w){var e=j.slice(oe,ie+1);w(e,j)}}),[oe,ie,j]);var Pe=function(e,t,n,r){var o=mg(B.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,s=i.get(o),c=i.get(l);if(void 0===s||void 0===c)for(var u=e.length,d=a.length;di&&B.createElement(Yj,{ref:ue,prefixCls:r,scrollOffset:I,scrollRange:re,rtl:D,onScroll:Se,onStartMove:H,onStopMove:W,spinSize:pe,containerSize:se.height,style:null==k?void 0:k.verticalScrollBar,thumbStyle:null==k?void 0:k.verticalScrollBarThumb}),O&&g&&B.createElement(Yj,{ref:de,prefixCls:r,scrollOffset:R,scrollRange:g,rtl:D,onScroll:Se,onStartMove:H,onStopMove:W,spinSize:fe,containerSize:se.width,horizontal:!0,style:null==k?void 0:k.horizontalScrollBar,thumbStyle:null==k?void 0:k.horizontalScrollBarThumb}))}var dP=B.forwardRef(uP);dP.displayName="List";var fP=B.createContext(null);var pP=["disabled","title","children","style","className"];function hP(e){return"string"==typeof e||"number"==typeof e}var gP=function(e,t){var n=B.useContext(A$),r=n.prefixCls,o=n.id,i=n.open,a=n.multiple,l=n.mode,s=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=B.useContext(fP),p=f.flattenOptions,h=f.onActiveValue,g=f.defaultActiveFirstOption,m=f.onSelect,b=f.menuItemSelectedIcon,v=f.rawValues,y=f.fieldNames,w=f.virtual,x=f.direction,S=f.listHeight,k=f.listItemHeight,C=f.optionRender,E="".concat(r,"-item"),O=zh((function(){return p}),[i,p],(function(e,t){return t[0]&&e[1]!==t[1]})),D=B.useRef(null),$=function(e){e.preventDefault()},j=function(e){D.current&&D.current.scrollTo("number"==typeof e?{index:e}:e)},P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];I(e);var n={source:t?"keyboard":"mouse"},r=O[e];r?h(r.value,e,n):h(null,-1,n)};B.useEffect((function(){T(!1!==g?P(0):-1)}),[O.length,s]);var F=B.useCallback((function(e){return v.has(e)&&"combobox"!==l}),[l,Rh(v).toString(),v.size]);B.useEffect((function(){var e,t=setTimeout((function(){if(!a&&i&&1===v.size){var e=Array.from(v)[0],t=O.findIndex((function(t){return t.data.value===e}));-1!==t&&(T(t),j(t))}}));i&&(null===(e=D.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[i,s]);var R=function(e){void 0!==e&&m(e,{selected:!v.has(e)}),a||c(!1)};if(B.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case $S.N:case $S.P:case $S.UP:case $S.DOWN:var r=0;if(t===$S.UP?r=-1:t===$S.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===$S.N?r=1:t===$S.P&&(r=-1)),0!==r){var o=P(_+r,r);j(o),T(o,!0)}break;case $S.ENTER:var a=O[_];a&&!a.data.disabled?R(a.value):R(void 0),i&&e.preventDefault();break;case $S.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===O.length)return B.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(E,"-empty"),onMouseDown:$},u);var A=Object.keys(y).map((function(e){return y[e]})),M=function(e){return e.label};function L(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var z=function(e){var t=O[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=rS(n,!0),a=M(t);return t?B.createElement("div",Zp({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},L(t,e),{"aria-selected":F(r)}),r):null},H={role:"listbox",id:"".concat(o,"_list")};return B.createElement(B.Fragment,null,w&&B.createElement("div",Zp({},H,{style:{height:0,width:0,overflow:"hidden"}}),z(_-1),z(_),z(_+1)),B.createElement(dP,{itemKey:"key",ref:D,data:O,height:S,itemHeight:k,fullHeight:!1,onMouseDown:$,onScroll:d,virtual:w,direction:x,innerProps:w?null:H},(function(e,t){var n,r=e.group,o=e.groupOption,i=e.data,a=e.label,l=e.value,s=i.key;if(r){var c,u=null!==(c=i.title)&&void 0!==c?c:hP(a)?a.toString():void 0;return B.createElement("div",{className:Ym(E,"".concat(E,"-group")),title:u},void 0!==a?a:s)}var d=i.disabled,f=i.title;i.children;var p=i.style,h=i.className,g=iv(Od(i,pP),A),m=F(l),v="".concat(E,"-option"),y=Ym(E,v,h,(Ed(n={},"".concat(v,"-grouped"),o),Ed(n,"".concat(v,"-active"),_===t&&!d),Ed(n,"".concat(v,"-disabled"),d),Ed(n,"".concat(v,"-selected"),m),n)),x=M(e),S=!b||"function"==typeof b||m,k="number"==typeof x?x:x||l,O=hP(k)?k.toString():void 0;return void 0!==f&&(O=f),B.createElement("div",Zp({},rS(g),w?{}:L(e,t),{"aria-selected":m,className:y,title:O,onMouseMove:function(){_===t||d||T(t)},onClick:function(){d||R(l)},style:p}),B.createElement("div",{className:"".concat(v,"-content")},"function"==typeof C?C(e,{index:t}):k),B.isValidElement(b)||m,S&&B.createElement(R$,{className:"".concat(E,"-option-state"),customizeIcon:b,customizeIconProps:{value:l,disabled:d,isSelected:m}},m?"✓":null))})))},mP=B.forwardRef(gP);mP.displayName="OptionList";function bP(e,t){return ij(e).join("").toUpperCase().includes(t)}var vP=0,yP=tg();function wP(e){var t=mg(B.useState(),2),n=t[0],r=t[1];return B.useEffect((function(){var e;r("rc_select_".concat((yP?(e=vP,vP+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var xP=["children","value"],SP=["children"];function kP(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return mb(e).map((function(e,n){if(!B.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,a=r.props,l=a.children,s=Od(a,SP);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return Mh({key:n,value:void 0!==i?i:n,children:o},Od(r,xP))}(e):Mh(Mh({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:kP(l)})})).filter((function(e){return e}))}function CP(e){var t=B.useRef();t.current=e;var n=B.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var EP=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],OP=["inputValue"];var DP=B.forwardRef((function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=void 0===o?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,p=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=void 0===g||g,b=e.filterOption,v=e.filterSort,y=e.optionFilterProp,w=e.optionLabelProp,x=e.options,S=e.optionRender,k=e.children,C=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,O=e.virtual,D=e.direction,$=e.listHeight,j=void 0===$?200:$,P=e.listItemHeight,N=void 0===P?20:P,_=e.value,I=e.defaultValue,T=e.labelInValue,F=e.onChange,R=Od(e,EP),A=wP(n),M=Uj(r),L=!(x||!k),z=B.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),H=B.useMemo((function(){return zj(l,L)}),[JSON.stringify(l),L]),W=mg(ew("",{value:void 0!==c?c:s,postState:function(e){return e||""}}),2),U=W[0],V=W[1],G=function(e,t,n,r,o){return B.useMemo((function(){var i=e;!e&&(i=kP(t));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=zj(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){t.forEach((function(t){if(n||!(s in t)){var i=t[l];o.push({key:Lj(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:Lj(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),o}(de,{fieldNames:H,childrenAsData:L})}),[de,H,L]),pe=function(e){var t=Y(e);if(Z(t),F&&(t.length!==re.length||t.some((function(e,t){var n;return(null===(n=re[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=T?t:t.map((function(e){return e.value})),r=t.map((function(e){return Bj(oe(e.value))}));F(M?n:n[0],M?r:r[0])}},he=mg(B.useState(null),2),ge=he[0],me=he[1],be=mg(B.useState(0),2),ve=be[0],ye=be[1],we=void 0!==C?C:"combobox"!==r,xe=B.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;ye(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&me(String(e))}),[a,r]),Se=function(e,t,n){var r=function(){var t,n=oe(e);return[T?{label:null==n?void 0:n[H.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,Bj(n)]};if(t&&p){var o=mg(r(),2),i=o[0],a=o[1];p(i,a)}else if(!t&&h&&"clear"!==n){var l=mg(r(),2),s=l[0],c=l[1];h(s,c)}},ke=CP((function(e,t){var n,o=!M||t.selected;n=o?M?[].concat(Rh(re),[e]):[e]:re.filter((function(t){return t.value!==e})),pe(n),Se(e,o),"combobox"===r?me(""):Uj&&!f||(V(""),me(""))})),Ce=B.useMemo((function(){var e=!1!==O&&!1!==m;return Mh(Mh({},G),{},{flattenOptions:fe,onActiveValue:xe,defaultActiveFirstOption:we,onSelect:ke,menuItemSelectedIcon:E,rawValues:ae,fieldNames:H,virtual:e,direction:D,listHeight:j,listItemHeight:N,childrenAsData:L,optionRender:S})}),[G,fe,xe,we,ke,E,ae,H,O,m,j,N,L,S]);return B.createElement(fP.Provider,{value:Ce},B.createElement(Vj,Zp({},R,{id:A,prefixCls:i,ref:t,omitDomProps:OP,mode:r,displayValues:ie,onDisplayValuesChange:function(e,t){pe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Se(e.value,!1,n)}))},direction:D,searchValue:U,onSearch:function(e,t){if(V(e),me(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&pe(e),null==u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Rh(ae),[n])));pe(o),Se(n,!0),V("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=X.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Rh(ae),Rh(t))));pe(n),n.forEach((function(e){Se(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:mP,emptyOptions:!fe.length,activeValue:ge,activeDescendantId:"".concat(A,"_list_").concat(ve)})))})),$P=DP;function jP(e,t,n){return Ym({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}$P.Option=qj,$P.OptGroup=Gj;const PP=(e,t)=>t||e,NP=()=>{const[,e]=Yy(),t=new Zv(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return B.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},B.createElement("g",{fill:"none",fillRule:"evenodd"},B.createElement("g",{transform:"translate(24 31.67)"},B.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),B.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),B.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),B.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),B.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),B.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),B.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},B.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),B.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},_P=()=>{const[,e]=Yy(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=B.useMemo((()=>({borderColor:new Zv(t).onBackground(o).toHexShortString(),shadowColor:new Zv(n).onBackground(o).toHexShortString(),contentColor:new Zv(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return B.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},B.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},B.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),B.createElement("g",{fillRule:"nonzero",stroke:i},B.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),B.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},IP=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},TP=hw("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=uw(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[IP(r)]}));const FP=B.createElement(NP,null),RP=B.createElement(_P,null),AP=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=FP,description:i,children:a,imageStyle:l,style:s}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentName:t}=e,{getPrefixCls:n}=B.useContext(Iy),r=n("empty");switch(t){case"Table":case"List":return H.createElement(MP,{image:MP.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return H.createElement(MP,{image:MP.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return H.createElement(MP,null)}},zP=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},BP=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},rw(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}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:iD},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:lD},[`${a}${l}bottomLeft`]:{animationName:aD},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:sD},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},zP(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},nw),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},hD(e,"slide-up"),hD(e,"slide-down"),oD(e,"move-up"),oD(e,"move-down")]},HP=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function WP(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,[a]=HP(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const UP=e=>{const{componentCls:t}=e,n=uw(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=uw(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=HP(e);return[WP(e),WP(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},WP(r,"lg")]};function VP(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},rw(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function GP(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[VP(e),VP(uw(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},VP(uw(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const qP=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},XP=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,antCls:i,borderActiveColor:a,outlineColor:l,controlOutlineWidth:s}=t,c=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${s}px ${l}`,outline:0}})}}},KP=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},YP=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},rw(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},qP(e)),KP(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},nw),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},nw),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},QP=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},YP(e),GP(e),UP(e),BP(e),{[`${t}-rtl`]:{direction:"rtl"}},XP(t,uw(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),XP(`${t}-status-error`,uw(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),XP(`${t}-status-warning`,uw(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),RC(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},JP=hw("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=uw(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[QP(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}));function ZP(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const eN={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"};var tN=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:eN}))};const nN=B.forwardRef(tN);const rN={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"};var oN=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:rN}))};const iN=B.forwardRef(oN);const aN={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"};var lN=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:aN}))};const sN=B.forwardRef(lN);const cN="SECRET_COMBOBOX_MODE_DO_NOT_USE",uN=(e,t)=>{var n,r,{prefixCls:o,bordered:i=!0,className:a,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p=24,size:h,disabled:g,notFoundContent:m,status:b,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:S,allowClear:k}=e,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{mode:e}=C;if("combobox"!==e)return e===cN?"combobox":e}),[C.mode]),H="multiple"===z||"tags"===z,W=function(e,t){return void 0!==t?t:null!==e}(C.suffixIcon,C.showArrow),U=null!==(n=null!=w?w:y)&&void 0!==n?n:P,{status:V,hasFeedback:G,isFormItemInput:q,feedbackIcon:X}=B.useContext(RO),K=PP(V,b);let Y;Y=void 0!==m?m:"combobox"===z?null:(null==D?void 0:D("Select"))||B.createElement(LP,{componentName:"Select"});const{suffixIcon:Q,itemIcon:J,removeIcon:Z,clearIcon:ee}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=null!=n?n:B.createElement(Wx,null),h=e=>null!==t||l||d?B.createElement(B.Fragment,null,!1!==c&&e,l&&u):null;let g=null;if(void 0!==t)g=h(t);else if(i)g=h(B.createElement(BS,{spin:!0}));else{const e=`${s}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return h(n&&r?B.createElement(sN,{className:e}):B.createElement(iN,{className:e}))}}let m=null;m=void 0!==r?r:a?B.createElement(nN,null):null;let b=null;return b=void 0!==o?o:B.createElement(Gx,null),{clearIcon:p,suffixIcon:g,itemIcon:m,removeIcon:b}}(Object.assign(Object.assign({},C),{multiple:H,hasFeedback:G,feedbackIcon:X,showSuffixIcon:W,prefixCls:I,showArrow:C.showArrow,componentName:"Select"})),te=!0===k?{clearIcon:ee}:k,ne=iv(C,["suffixIcon","itemIcon"]),re=Ym(c||u,{[`${I}-dropdown-${F}`]:"rtl"===F},l,L),oe=Lk((e=>{var t;return null!==(t=null!=h?h:R)&&void 0!==t?t:e})),ie=B.useContext(My),ae=null!=g?g:ie,le=Ym({[`${I}-lg`]:"large"===oe,[`${I}-sm`]:"small"===oe,[`${I}-rtl`]:"rtl"===F,[`${I}-borderless`]:!i,[`${I}-in-form-item`]:q},jP(I,K,G),A,null==_?void 0:_.className,a,l,L),se=B.useMemo((()=>void 0!==f?f:"rtl"===F?"bottomRight":"bottomLeft"),[f,F]),ce=ZP(v,N),[ue]=qS("SelectLike",null===(r=C.dropdownStyle)||void 0===r?void 0:r.zIndex);return M(B.createElement($P,Object.assign({ref:t,virtual:j,showSearch:null==_?void 0:_.showSearch},ne,{style:Object.assign(Object.assign({},null==_?void 0:_.style),S),dropdownMatchSelectWidth:U,builtinPlacements:ce,transitionName:jk(T,"slide-up",C.transitionName),listHeight:d,listItemHeight:p,mode:z,prefixCls:I,placement:se,direction:F,suffixIcon:Q,menuItemSelectedIcon:J,removeIcon:Z,allowClear:te,notFoundContent:Y,className:le,getPopupContainer:s||E,dropdownClassName:re,disabled:ae,dropdownStyle:Object.assign(Object.assign({},null==C?void 0:C.dropdownStyle),{zIndex:ue})})))},dN=B.forwardRef(uN),fN=(pN=dN,T$((function(e){const{prefixCls:t,style:n}=e,r=B.useRef(null),[o,i]=B.useState(0),[a,l]=B.useState(0),[s,c]=ew(!1,{value:e.open}),{getPrefixCls:u}=B.useContext(Iy),d=u(hN||"select",t);B.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),l(t.offsetWidth)})),t=setInterval((()=>{var n;const o=gN?`.${gN(d)}`:`.${d}-dropdown`,i=null===(n=r.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let f=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:s,visible:s,getPopupContainer:()=>r.current});return mN&&(f=mN(f)),B.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:a}},B.createElement(pN,Object.assign({},f)))})));var pN,hN,gN,mN;dN.SECRET_COMBOBOX_MODE_DO_NOT_USE=cN,dN.Option=qj,dN.OptGroup=Gj,dN._InternalPanelDoNotUseOrYouWillBeFired=fN;const bN=dN,vN=["xxl","xl","lg","md","sm","xs"],yN=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)`}),wN=e=>{const t=e,n=[].concat(vN).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function SN(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=B.useRef({}),n=function(){const[,e]=B.useReducer((e=>e+1),0);return e}(),r=xN();return Ng((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}const kN=B.createContext({}),CN=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:h,lineWidth:g,lineType:m}=e,b=(e,t,o)=>({width:e,height:e,lineHeight:e-2*g+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},rw(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${g}px ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,f)),{"&-lg":Object.assign({},b(l,u,p)),"&-sm":Object.assign({},b(s,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},EN=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},ON=hw("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=uw(e,{avatarBg:n,avatarColor:t});return[CN(r),EN(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}}));const DN=(e,t)=>{const[n,r]=B.useState(1),[o,i]=B.useState(!1),[a,l]=B.useState(!0),s=B.useRef(null),c=B.useRef(null),u=wb(t,s),{getPrefixCls:d,avatar:f}=B.useContext(Iy),p=B.useContext(kN),h=()=>{if(!c.current||!s.current)return;const t=c.current.offsetWidth,n=s.current.offsetWidth;if(0!==t&&0!==n){const{gap:o=4}=e;2*o{i(!0)}),[]),B.useEffect((()=>{l(!0),r(1)}),[e.src]),B.useEffect(h,[e.gap]);const g=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&l(!1)},{prefixCls:m,shape:b,size:v,src:y,srcSet:w,icon:x,className:S,rootClassName:k,alt:C,draggable:E,children:O,crossOrigin:D}=e,$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n;return null!==(n=null!==(t=null!=v?v:null==p?void 0:p.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),P=SN(Object.keys("object"==typeof j&&j||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),N=B.useMemo((()=>{if("object"!=typeof j)return{};const e=vN.find((e=>P[e])),t=j[e];return t?{width:t,height:t,lineHeight:`${t}px`,fontSize:t&&(x||O)?t/2:18}:{}}),[P,j]),_=d("avatar",m),[I,T]=ON(_),F=Ym({[`${_}-lg`]:"large"===j,[`${_}-sm`]:"small"===j}),R=B.isValidElement(y),A=b||(null==p?void 0:p.shape)||"circle",M=Ym(_,F,null==f?void 0:f.className,`${_}-${A}`,{[`${_}-image`]:R||y&&a,[`${_}-icon`]:!!x},S,k,T),L="number"==typeof j?{width:j,height:j,lineHeight:`${j}px`,fontSize:x?j/2:18}:{};let z;if("string"==typeof y&&a)z=B.createElement("img",{src:y,draggable:E,srcSet:w,onError:g,alt:C,crossOrigin:D});else if(R)z=y;else if(x)z=x;else if(o||1!==n){const e=`scale(${n}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},r="number"==typeof j?{lineHeight:`${j}px`}:{};z=B.createElement(ov,{onResize:h},B.createElement("span",{className:`${_}-string`,ref:c,style:Object.assign(Object.assign({},r),t)},O))}else z=B.createElement("span",{className:`${_}-string`,style:{opacity:0},ref:c},O);return delete $.onError,delete $.gap,I(B.createElement("span",Object.assign({},$,{style:Object.assign(Object.assign(Object.assign(Object.assign({},L),N),null==f?void 0:f.style),$.style),className:M,ref:u}),z))},$N=B.forwardRef(DN),jN=e=>e?"function"==typeof e?e():e:null;function PN(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return B.createElement("div",{className:Ym("".concat(n,"-content"),i),style:a},B.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var NN={shiftX:64,adjustY:1},_N={adjustX:1,shiftY:!0},IN=[0,0],TN={left:{points:["cr","cl"],overflow:_N,offset:[-4,0],targetOffset:IN},right:{points:["cl","cr"],overflow:_N,offset:[4,0],targetOffset:IN},top:{points:["bc","tc"],overflow:NN,offset:[0,-4],targetOffset:IN},bottom:{points:["tc","bc"],overflow:NN,offset:[0,4],targetOffset:IN},topLeft:{points:["bl","tl"],overflow:NN,offset:[0,-4],targetOffset:IN},leftTop:{points:["tr","tl"],overflow:_N,offset:[-4,0],targetOffset:IN},topRight:{points:["br","tr"],overflow:NN,offset:[0,-4],targetOffset:IN},rightTop:{points:["tl","tr"],overflow:_N,offset:[4,0],targetOffset:IN},bottomRight:{points:["tr","br"],overflow:NN,offset:[0,4],targetOffset:IN},rightBottom:{points:["bl","br"],overflow:_N,offset:[4,0],targetOffset:IN},bottomLeft:{points:["tl","bl"],overflow:NN,offset:[0,4],targetOffset:IN},leftBottom:{points:["br","bl"],overflow:_N,offset:[-4,0],targetOffset:IN}},FN=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],RN=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,l=e.mouseLeaveDelay,s=void 0===l?.1:l,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,v=e.placement,y=void 0===v?"right":v,w=e.align,x=void 0===w?{}:w,S=e.destroyTooltipOnHide,k=void 0!==S&&S,C=e.defaultVisible,E=e.getTooltipContainer,O=e.overlayInnerStyle;e.arrowContent;var D=e.overlay,$=e.id,j=e.showArrow,P=void 0===j||j,N=Od(e,FN),_=B.useRef(null);B.useImperativeHandle(t,(function(){return _.current}));var I=Mh({},N);"visible"in e&&(I.popupVisible=e.visible);return B.createElement(Fj,Zp({popupClassName:n,prefixCls:d,popup:function(){return B.createElement(PN,{key:"content",prefixCls:d,id:$,overlayInnerStyle:O},D)},action:o,builtinPlacements:TN,popupPlacement:y,ref:_,popupAlign:x,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:C,autoDestroy:k,mouseLeaveDelay:s,popupStyle:c,mouseEnterDelay:a,arrow:P},I),f)};const AN=B.forwardRef(RN),MN=8;function LN(e){const t=MN,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function zN(e,t){return e?t:{}}function BN(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:l,contentRadius:s=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=LN({contentRadius:s,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},tw(r,o,i,l,a)),{"&:before":{background:l}})]},zN(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),zN(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),zN(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),zN(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}const HN={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"]}},WN={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"]}},UN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function VN(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(HN).forEach((e=>{const c=r&&WN[e]||HN[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,UN.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=LN({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-l;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),s}const GN=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},rw(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,MN)}},[`${t}-content`]:{position:"relative"}}),mw(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},BN(uw(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qN=(e,t)=>hw("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=uw(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[GN(a),$D(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),XN=Hy.map((e=>`${e}-inverse`)),KN=["success","processing","error","default","warning"];function YN(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Rh(XN),Rh(Hy)).includes(e):Hy.includes(e)}function QN(e,t){const n=YN(t),r=Ym({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const JN=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=B.useContext(Iy),s=l("tooltip",t),[c,u]=qN(s,!0),d=QN(s,i),f=d.arrowStyle,p=Object.assign(Object.assign({},a),d.overlayStyle),h=Ym(u,s,`${s}-pure`,`${s}-placement-${r}`,n,d.className);return c(B.createElement("div",{className:h,style:f},B.createElement("div",{className:`${s}-arrow`}),B.createElement(PN,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:p}),o)))};const ZN=B.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0}=e,w=!!h,[,x]=Yy(),{getPopupContainer:S,getPrefixCls:k,direction:C}=B.useContext(Iy),E=Sv(),O=B.useRef(null),D=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};B.useImperativeHandle(t,(()=>({forceAlign:D,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),D()}})));const[$,j]=ew(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),P=!g&&!m&&0!==g,N=B.useMemo((()=>{var e,t;let n=v;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:v),b||VN({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[v,h,b,x]),_=B.useMemo((()=>0===g?g:m||g||""),[m,g]),I=B.createElement(qk,null,"function"==typeof _?_():_),{getPopupContainer:T,placement:F="top",mouseEnterDelay:R=.1,mouseLeaveDelay:A=.1,overlayStyle:M,rootClassName:L}=e,z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;j(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:Z,arrowContent:B.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:jk(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),V?lS(G,{className:X}):G);return K(B.createElement(HS.Provider,{value:ne},re))}));ZN._InternalPanelDoNotUseOrYouWillBeFired=JN;const e_=ZN,t_=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,marginXS:u,colorBgElevated:d,popoverBg:f}=e;return[{[t]:Object.assign(Object.assign({},rw(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},BN(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},n_=e=>{const{componentCls:t}=e;return{[t]:Hy.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},r_=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:s,padding:c}=e,u=a-Math.round(l*s);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${c}px`}}}},o_=hw("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=uw(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[t_(o),n_(o),r&&r_(o),$D(o,"zoom-big")]}),(e=>({width:177,minWidth:177,titleMinWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const i_=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e;return B.createElement("div",{className:Ym(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},B.createElement("div",{className:`${n}-arrow`}),B.createElement(PN,Object.assign({},e,{className:t,prefixCls:n}),s||((e,t,n)=>{if(t||n)return B.createElement(B.Fragment,null,t&&B.createElement("div",{className:`${e}-title`},jN(t)),B.createElement("div",{className:`${e}-inner-content`},jN(n)))})(n,a,l)))},a_=e=>{const{prefixCls:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:r}=e;return B.createElement(B.Fragment,null,t&&B.createElement("div",{className:`${r}-title`},jN(t)),B.createElement("div",{className:`${r}-inner-content`},jN(n)))},s_=B.forwardRef(((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l="hover",mouseEnterDelay:s=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{size:t,shape:n}=B.useContext(kN),r=B.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return B.createElement(kN.Provider,{value:r},e.children)},d_=e=>{const{getPrefixCls:t,direction:n}=B.useContext(Iy),{prefixCls:r,className:o,rootClassName:i,style:a,maxCount:l,maxStyle:s,size:c,shape:u,maxPopoverPlacement:d="top",maxPopoverTrigger:f="hover",children:p}=e,h=t("avatar",r),g=`${h}-group`,[m,b]=ON(h),v=Ym(g,{[`${g}-rtl`]:"rtl"===n},o,i,b),y=mb(p).map(((e,t)=>lS(e,{key:`avatar-key-${t}`}))),w=y.length;if(l&&l1&&void 0!==arguments[1]&&arguments[1];if(Pk(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var z_=$S.LEFT,B_=$S.RIGHT,H_=$S.UP,W_=$S.DOWN,U_=$S.ENTER,V_=$S.ESC,G_=$S.HOME,q_=$S.END,X_=[H_,W_,z_,B_];function K_(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Rh(e.querySelectorAll("*")).filter((function(e){return L_(e,t)}));return L_(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function Y_(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=K_(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}function Q_(e,t,n,r,o,i,a,l,s,c){var u=B.useRef(),d=B.useRef();d.current=t;var f=function(){dv.cancel(u.current)};return B.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(X_,[U_,V_,G_,q_]).includes(h)){var g,m,b,v=function(){return g=new Set,m=new Map,b=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(D_(r,e),"']"));t&&(g.add(t),b.set(t,e),m.set(e,t))})),g};v();var y=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(m.get(t),g),w=b.get(y),x=function(e,t,n,r){var o,i,a,l,s="prev",c="next",u="children",d="parent";if("inline"===e&&r===U_)return{inlineTrigger:!0};var f=(Ed(o={},H_,s),Ed(o,W_,c),o),p=(Ed(i={},z_,n?c:s),Ed(i,B_,n?s:c),Ed(i,W_,u),Ed(i,U_,u),i),h=(Ed(a={},H_,s),Ed(a,W_,c),Ed(a,U_,u),Ed(a,V_,d),Ed(a,z_,n?u:d),Ed(a,B_,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,h);if(!x&&h!==G_&&h!==q_)return;(X_.includes(h)||[G_,q_].includes(h))&&p.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=b.get(e);l(r),f(),u.current=dv((function(){d.current===r&&t.focus()}))}};if([G_,q_].includes(h)||x.sibling||!y){var k,C,E=K_(k=y&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):o.current,g);C=h===G_?E[0]:h===q_?E[E.length-1]:Y_(k,g,y,x.offset),S(C)}else if(x.inlineTrigger)s(w);else if(x.offset>0)s(w,!0),f(),u.current=dv((function(){v();var e=y.getAttribute("aria-controls"),t=Y_(document.getElementById(e),g);S(t)}),5);else if(x.offset<0){var O=a(w,!0),D=O[O.length-2],$=m.get(D);s(D,!1),S($)}}null==c||c(p)}}var J_="__RC_UTIL_PATH_SPLIT__",Z_=function(e){return e.join(J_)},eI="rc-menu-more";function tI(){var e=mg(B.useState({}),2)[1],t=B.useRef(new Map),n=B.useRef(new Map),r=mg(B.useState([]),2),o=r[0],i=r[1],a=B.useRef(0),l=B.useRef(!1),s=B.useCallback((function(r,o){var i=Z_(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var s,c=a.current;s=function(){c===a.current&&(l.current||e({}))},Promise.resolve().then(s)}),[]),c=B.useCallback((function(e,r){var o=Z_(r);n.current.delete(o),t.current.delete(e)}),[]),u=B.useCallback((function(e){i(e)}),[]),d=B.useCallback((function(e,n){var r=t.current.get(e)||"",i=r.split(J_);return n&&o.includes(i[0])&&i.unshift(eI),i}),[o]),f=B.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=B.useCallback((function(e){var r="".concat(t.current.get(e)).concat(J_),o=new Set;return Rh(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return B.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=Rh(t.current.keys());return o.length&&e.push(eI),e},getSubPathKeys:p}}function nI(e){var t=B.useRef(e);t.current=e;var n=B.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(b.motionAppear=!1);var v=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||g(!0),null==v?void 0:v(e)},h?null:B.createElement(N_,{mode:i,locked:!f.current},B.createElement(ex,Zp({visible:m},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return B.createElement(yI,{id:t,className:n,style:r},o)})))}var $I=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],jI=["active"],PI=function(e){var t,n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,l=e.internalPopupClose,s=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.popupStyle,h=e.onClick,g=e.onMouseEnter,m=e.onMouseLeave,b=e.onTitleClick,v=e.onTitleMouseEnter,y=e.onTitleMouseLeave,w=Od(e,$I),x=$_(i),S=B.useContext(P_),k=S.prefixCls,C=S.mode,E=S.openKeys,O=S.disabled,D=S.overflowDisabled,$=S.activeKey,j=S.selectedKeys,P=S.itemIcon,N=S.expandIcon,_=S.onItemClick,I=S.onOpenChange,T=S.onActive,F=B.useContext(M_)._internalRenderSubMenuItem,R=B.useContext(A_).isSubPathKey,A=R_(),M="".concat(k,"-submenu"),L=O||a,z=B.useRef(),H=B.useRef(),W=null!=c?c:P,U=null!=u?u:N,V=E.includes(i),G=!D&&V,q=R(j,i),X=iI(i,L,v,y),K=X.active,Y=Od(X,jI),Q=mg(B.useState(!1),2),J=Q[0],Z=Q[1],ee=function(e){L||Z(e)},te=B.useMemo((function(){return K||"inline"!==C&&(J||R([$],i))}),[C,K,$,J,i,R]),ne=aI(A.length),re=nI((function(e){null==h||h(cI(e)),_(e)})),oe=x&&"".concat(x,"-popup"),ie=B.createElement("div",Zp({role:"menuitem",style:ne,className:"".concat(M,"-title"),tabIndex:L?null:-1,ref:z,title:"string"==typeof o?o:null,"data-menu-id":D&&x?null:x,"aria-expanded":G,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":L,onClick:function(e){L||(null==b||b({key:i,domEvent:e}),"inline"===C&&I(i,!V))},onFocus:function(){T(i)}},Y),o,B.createElement(lI,{icon:"horizontal"!==C?U:void 0,props:Mh(Mh({},e),{},{isOpen:G,isSubMenu:!0})},B.createElement("i",{className:"".concat(M,"-arrow")}))),ae=B.useRef(C);if("inline"!==C&&A.length>1?ae.current="vertical":ae.current=C,!D){var le=ae.current;ie=B.createElement(OI,{mode:le,prefixCls:M,visible:!l&&G&&"inline"!==C,popupClassName:d,popupOffset:f,popupStyle:p,popup:B.createElement(N_,{mode:"horizontal"===le?"vertical":le},B.createElement(yI,{id:oe,ref:H},s)),disabled:L,onVisibleChange:function(e){"inline"!==C&&I(i,e)}},ie)}var se=B.createElement(nj.Item,Zp({role:"none"},w,{component:"li",style:n,className:Ym(M,"".concat(M,"-").concat(C),r,(t={},Ed(t,"".concat(M,"-open"),G),Ed(t,"".concat(M,"-active"),te),Ed(t,"".concat(M,"-selected"),q),Ed(t,"".concat(M,"-disabled"),L),t)),onMouseEnter:function(e){ee(!0),null==g||g({key:i,domEvent:e})},onMouseLeave:function(e){ee(!1),null==m||m({key:i,domEvent:e})}}),ie,!D&&B.createElement(DI,{id:oe,open:G,keyPath:A},s));return F&&(se=F(se,e,{selected:q,active:te,open:G,disabled:L})),B.createElement(N_,{onItemClick:re,mode:"horizontal"===C?"vertical":C,itemIcon:W,expandIcon:U},se)};function NI(e){var t,n=e.eventKey,r=e.children,o=R_(n),i=wI(r,o),a=T_();return B.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:B.createElement(PI,e,i),B.createElement(F_.Provider,{value:o},t)}var _I=["className","title","eventKey","children"],II=["children"],TI=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=Od(e,_I),i=B.useContext(P_).prefixCls,a="".concat(i,"-item-group");return B.createElement("li",Zp({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:Ym(a,t)}),B.createElement("div",{role:"presentation",className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),B.createElement("ul",{role:"group",className:"".concat(a,"-list")},r))};function FI(e){var t=e.children,n=Od(e,II),r=wI(t,R_(n.eventKey));return T_()?r:B.createElement(TI,iv(n,["warnKey"]),r)}function RI(e){var t=e.className,n=e.style,r=B.useContext(P_).prefixCls;return T_()?null:B.createElement("li",{role:"separator",className:Ym("".concat(r,"-item-divider"),t),style:n})}var AI=["label","children","key","type"];function MI(e){return(e||[]).map((function(e,t){if(e&&"object"===kd(e)){var n=e,r=n.label,o=n.children,i=n.key,a=n.type,l=Od(n,AI),s=null!=i?i:"tmp-".concat(t);return o||"group"===a?"group"===a?B.createElement(FI,Zp({key:s},l,{title:r}),MI(o)):B.createElement(NI,Zp({key:s},l,{title:r}),MI(o)):"divider"===a?B.createElement(RI,Zp({key:s},l)):B.createElement(mI,Zp({key:s},l),r)}return null})).filter((function(e){return e}))}function LI(e,t,n){var r=e;return t&&(r=MI(t)),wI(r,n)}var zI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],BI=[],HI=B.forwardRef((function(e,t){var n,r,o=e,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,h=o.direction,g=o.id,m=o.mode,b=void 0===m?"vertical":m,v=o.inlineCollapsed,y=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,S=void 0===x?.1:x,k=o.subMenuCloseDelay,C=void 0===k?.1:k,E=o.forceSubMenuRender,O=o.defaultOpenKeys,D=o.openKeys,$=o.activeKey,j=o.defaultActiveFirst,P=o.selectable,N=void 0===P||P,_=o.multiple,I=void 0!==_&&_,T=o.defaultSelectedKeys,F=o.selectedKeys,R=o.onSelect,A=o.onDeselect,M=o.inlineIndent,L=void 0===M?24:M,z=o.motion,H=o.defaultMotions,W=o.triggerSubMenuAction,U=void 0===W?"hover":W,V=o.builtinPlacements,G=o.itemIcon,q=o.expandIcon,X=o.overflowedIndicator,K=void 0===X?"...":X,Y=o.overflowedIndicatorPopupClassName,Q=o.getPopupContainer,J=o.onClick,Z=o.onOpenChange,ee=o.onKeyDown;o.openAnimation,o.openTransitionName;var te=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,re=Od(o,zI),oe=B.useMemo((function(){return LI(p,f,BI)}),[p,f]),ie=mg(B.useState(!1),2),ae=ie[0],le=ie[1],se=B.useRef(),ce=function(e){var t=mg(ew(e,{value:e}),2),n=t[0],r=t[1];return B.useEffect((function(){oI+=1;var e="".concat(rI,"-").concat(oI);r("rc-menu-uuid-".concat(e))}),[]),n}(g),ue="rtl"===h,de=mg(ew(O,{value:D,postState:function(e){return e||BI}}),2),fe=de[0],pe=de[1],he=function(e){function t(){pe(e),null==Z||Z(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?vd.flushSync(t):t()},ge=mg(B.useState(fe),2),me=ge[0],be=ge[1],ve=B.useRef(!1),ye=mg(B.useMemo((function(){return"inline"!==b&&"vertical"!==b||!v?[b,!1]:["vertical",v]}),[b,v]),2),we=ye[0],xe=ye[1],Se="inline"===we,ke=mg(B.useState(we),2),Ce=ke[0],Ee=ke[1],Oe=mg(B.useState(xe),2),De=Oe[0],$e=Oe[1];B.useEffect((function(){Ee(we),$e(xe),ve.current&&(Se?pe(me):he(BI))}),[we,xe]);var je=mg(B.useState(0),2),Pe=je[0],Ne=je[1],_e=Pe>=oe.length-1||"horizontal"!==Ce||w;B.useEffect((function(){Se&&be(fe)}),[fe]),B.useEffect((function(){return ve.current=!0,function(){ve.current=!1}}),[]);var Ie=tI(),Te=Ie.registerPath,Fe=Ie.unregisterPath,Re=Ie.refreshOverflowKeys,Ae=Ie.isSubPathKey,Me=Ie.getKeyPath,Le=Ie.getKeys,ze=Ie.getSubPathKeys,Be=B.useMemo((function(){return{registerPath:Te,unregisterPath:Fe}}),[Te,Fe]),He=B.useMemo((function(){return{isSubPathKey:Ae}}),[Ae]);B.useEffect((function(){Re(_e?BI:oe.slice(Pe+1).map((function(e){return e.key})))}),[Pe,_e]);var We=mg(ew($||j&&(null===(n=oe[0])||void 0===n?void 0:n.key),{value:$}),2),Ue=We[0],Ve=We[1],Ge=nI((function(e){Ve(e)})),qe=nI((function(){Ve(void 0)}));B.useImperativeHandle(t,(function(){return{list:se.current,focus:function(e){var t,n,r,o,i=null!=Ue?Ue:null===(t=oe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=se.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(D_(ce,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var Xe=mg(ew(T||[],{value:F,postState:function(e){return Array.isArray(e)?e:null==e?BI:[e]}}),2),Ke=Xe[0],Ye=Xe[1],Qe=nI((function(e){null==J||J(cI(e)),function(e){if(N){var t,n=e.key,r=Ke.includes(n);t=I?r?Ke.filter((function(e){return e!==n})):[].concat(Rh(Ke),[n]):[n],Ye(t);var o=Mh(Mh({},e),{},{selectedKeys:t});r?null==A||A(o):null==R||R(o)}!I&&fe.length&&"inline"!==Ce&&he(BI)}(e)})),Je=nI((function(e,t){var n=fe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ce){var r=ze(e);n=n.filter((function(e){return!r.has(e)}))}Gh(fe,n,!0)||he(n,!0)})),Ze=Q_(Ce,Ue,ue,ce,se,Le,Me,Ve,(function(e,t){var n=null!=t?t:!fe.includes(e);Je(e,n)}),ee);B.useEffect((function(){le(!0)}),[]);var et=B.useMemo((function(){return{_internalRenderMenuItem:te,_internalRenderSubMenuItem:ne}}),[te,ne]),tt="horizontal"!==Ce||w?oe:oe.map((function(e,t){return B.createElement(N_,{key:e.key,overflowDisabled:t>Pe},e)})),nt=B.createElement(nj,Zp({id:g,ref:se,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:mI,className:Ym(a,"".concat(a,"-root"),"".concat(a,"-").concat(Ce),c,(r={},Ed(r,"".concat(a,"-inline-collapsed"),De),Ed(r,"".concat(a,"-rtl"),ue),r),l),dir:h,style:s,role:"menu",tabIndex:d,data:tt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?oe.slice(-t):null;return B.createElement(NI,{eventKey:eI,title:K,disabled:_e,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==Ce||w?nj.INVALIDATE:nj.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ne(e)},onKeyDown:Ze},re));return B.createElement(M_.Provider,{value:et},B.createElement(O_.Provider,{value:ce},B.createElement(N_,{prefixCls:a,rootClassName:l,mode:Ce,openKeys:fe,rtl:ue,disabled:y,motion:ae?z:null,defaultMotions:ae?H:null,activeKey:Ue,onActive:Ge,onInactive:qe,selectedKeys:Ke,inlineIndent:L,subMenuOpenDelay:S,subMenuCloseDelay:C,forceSubMenuRender:E,builtinPlacements:V,triggerSubMenuAction:U,getPopupContainer:Q,itemIcon:G,expandIcon:q,onItemClick:Qe,onOpenChange:Je},B.createElement(A_.Provider,{value:He},nt),B.createElement("div",{style:{display:"none"},"aria-hidden":!0},B.createElement(I_.Provider,{value:Be},oe)))))}));HI.Item=mI,HI.SubMenu=NI,HI.ItemGroup=FI,HI.Divider=RI;const WI=B.createContext({});const UI=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=B.useContext(VI),{siderCollapsed:f}=B.useContext(WI);let p=i;void 0===i?p=s?r:"":!1===i&&(p="");const h={title:p};f||d||(h.title=null,h.open=!1);const g=mb(r).length;let m=B.createElement(mI,Object.assign({},iv(e,["title","icon","danger"]),{className:Ym({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof i?i:void 0}),lS(o,{className:Ym(oS(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=B.createElement("span",{className:`${l}-title-content`},r);return(!o||oS(r)&&"span"===r.type)&&r&&e&&s&&"string"==typeof r?B.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(m=B.createElement(e_,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),m)),m},qI=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=B.useContext(VI),{prefixCls:l,inlineCollapsed:s,theme:c}=a,u=R_();let d;if(r){const e=oS(o)&&"span"===o.type;d=B.createElement(B.Fragment,null,lS(r,{className:Ym(oS(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?o:B.createElement("span",{className:`${l}-title-content`},o))}else d=s&&!u.length&&o&&"string"==typeof o?B.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):B.createElement("span",{className:`${l}-title-content`},o);const f=B.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]),[p]=qS("Menu");return B.createElement(VI.Provider,{value:f},B.createElement(NI,Object.assign({},iv(e,["icon"]),{title:d,popupClassName:Ym(l,n,`${l}-${i||c}`),popupStyle:{zIndex:p}})))};const XI={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"};var KI=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:XI}))};const YI=B.forwardRef(KI);var QI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,l=QI(n,["label","children","key","type"]),s=null!=i?i:`tmp-${t}`;return o||"group"===a?"group"===a?B.createElement(FI,Object.assign({key:s},l,{title:r}),JI(o)):B.createElement(qI,Object.assign({key:s},l,{title:r}),JI(o)):"divider"===a?B.createElement(UI,Object.assign({key:s},l)):B.createElement(GI,Object.assign({key:s},l),r)}return null})).filter((e=>e))}function ZI(e){return B.useMemo((()=>e?JI(e):e),[e])}const eT=B.createContext(null),tT=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},nT=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},rT=e=>Object.assign({},aw(e)),oT=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:S,dangerItemSelectedColor:k,dangerItemActiveBg:C,dangerItemSelectedBg:E,itemHoverBg:O,itemActiveBg:D,menuSubMenuBg:$,horizontalItemSelectedColor:j,horizontalItemSelectedBg:P,horizontalItemBorderRadius:N,horizontalItemHoverBg:_,popupBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},rT(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},rT(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:$},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:_,"&::after":{borderBottomWidth:c,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(",")}}}}}},iT=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}},aT=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},iT(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},iT(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},nw),{paddingInline:p})}}]},lT=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},sT=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},cT=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:g,lineType:m,menuPanelMaskInset:b,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rw(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${l}px ${s}px`,fontSize:y,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lT(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${s}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},lT(e)),sT(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),sT(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};const uT=B.forwardRef(((e,t)=>{var n,r;const o=B.useContext(eT),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=B.useContext(Iy),u=a(),{prefixCls:d,className:f,style:p,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:b,siderCollapsed:v,items:y,children:w,rootClassName:x,mode:S,selectable:k,onClick:C,overflowedIndicatorPopupClassName:E}=e,O=iv(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ovoid 0!==v?v:b),[b,v]),_={horizontal:{motionName:`${u}-slide-up`},inline:$k(u),other:{motionName:`${u}-zoom-big`}},I=a("menu",d||i.prefixCls),[T,F]=((e,t)=>hw("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:l,darkDangerItemColor:s,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:f,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:b,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:w}=e,x=a/7*5,S=uw(e,{menuArrowSize:x,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),k=uw(S,{itemColor:l,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:s,dangerItemHoverColor:v,dangerItemSelectedColor:y,dangerItemActiveBg:w,dangerItemSelectedBg:p,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[cT(S),tT(S),aT(S),oT(S,"light"),oT(k,"dark"),nT(S),jD(S),hD(S,"slide-up"),hD(S,"slide-down"),$D(S,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:h,lineHeight:g,colorBgElevated:m,marginXXS:b,padding:v,fontSize:y,controlHeightSM:w,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:k}=e,C=new Zv(S).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:c,itemActiveBg:f,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:g,collapsedWidth:2*h,popupBg:m,itemMarginBlock:b,itemPaddingInline:v,horizontalLineHeight:1.15*h+"px",iconSize:y,iconMarginInlineEnd:w-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new Zv(S).setAlpha(.25).toRgbString(),darkItemColor:C,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:C,darkItemHoverColor:S,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e))(I,!o),R=Ym(`${I}-${h}`,null==c?void 0:c.className,f);let A;if("function"==typeof g)A=g;else if(null===g||!1===g)A=null;else if(null===i.expandIcon||!1===i.expandIcon)A=null;else{const e=null!=g?g:i.expandIcon;A=lS(e,{className:Ym(`${I}-submenu-expand-icon`,oS(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const M=B.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:h,mode:j,disableMenuItemTitleTooltip:m})),[I,N,s,m,h]);return T(B.createElement(eT.Provider,{value:null},B.createElement(VI.Provider,{value:M},B.createElement(HI,Object.assign({getPopupContainer:l,overflowedIndicator:B.createElement(YI,null),overflowedIndicatorPopupClassName:Ym(I,`${I}-${h}`,E),mode:j,selectable:P,onClick:$},O,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:R,prefixCls:I,direction:s,defaultMotions:_,expandIcon:A,ref:t,rootClassName:Ym(x,F)}),D))))})),dT=uT,fT=B.forwardRef(((e,t)=>{const n=B.useRef(null),r=B.useContext(WI);return B.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),B.createElement(dT,Object.assign({ref:n},e,r))}));fT.Item=GI,fT.SubMenu=qI,fT.Divider=UI,fT.ItemGroup=FI;const pT=fT;var hT={exports:{}};hT.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},b=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:b,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+b(r,2,"0")+":"+b(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var l=t.name;w[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},C=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},E=v;E.l=k,E.i=S,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var b=m.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return E},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},b.isAfter=function(e,t){return C(e)({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),vT=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),yT=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),wT=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},vT(uw(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),xT=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},ST=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),kT=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:i,warningActiveShadow:a,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},yT(uw(e,{activeBorderColor:r,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},yT(uw(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},CT=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},bT(e.colorTextPlaceholder)),{"&:hover":Object.assign({},vT(e)),"&:focus, &:focus-within":Object.assign({},yT(e)),"&-disabled, &[disabled]":Object.assign({},wT(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},xT(e)),"&-sm":Object.assign({},ST(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),ET=e=>{const{componentCls:t,antCls:n}=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`]:Object.assign({},xT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ST(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{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 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{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,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},OT=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},rw(e)),CT(e)),kT(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},DT=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},$T=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},CT(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-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:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),DT(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),kT(e,`${t}-affix-wrapper`))}},jT=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},rw(e)),ET(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},wT(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}}}})}},PT=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},NT=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},_T=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function IT(e){return uw(e,{inputAffixPadding:e.paddingXXS})}const TT=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:v}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${v}`,hoverBg:"",activeBg:""}},FT=hw("Input",(e=>{const t=uw(e,IT(e));return[OT(t),NT(t),$T(t),jT(t),PT(t),_T(t),RC(t)]}),TT),RT=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=Ym({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=Ym({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=B.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return B.createElement("span",{className:Ym(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},AT=new Hm("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),MT=e=>({height:e,lineHeight:`${e}px`}),LT=e=>Object.assign({width:e},MT(e)),zT=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:AT,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),BT=e=>Object.assign({width:5*e,minWidth:5*e},MT(e)),HT=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},LT(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},LT(o)),[`${t}${t}-sm`]:Object.assign({},LT(i))}},WT=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},BT(t)),[`${r}-lg`]:Object.assign({},BT(o)),[`${r}-sm`]:Object.assign({},BT(i))}},UT=e=>Object.assign({width:e},MT(e)),VT=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},UT(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},UT(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},GT=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},qT=e=>Object.assign({width:2*e,minWidth:2*e},MT(e)),XT=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:2*r,minWidth:2*r},qT(r))},GT(e,r,n)),{[`${n}-lg`]:Object.assign({},qT(o))}),GT(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},qT(i))}),GT(e,i,`${n}-sm`))},KT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:b,controlHeightXS:v,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},LT(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},LT(c)),[`${n}-sm`]:Object.assign({},LT(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},XT(e)),HT(e)),WT(e)),VT(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},zT(e))}}},YT=hw("Skeleton",(e=>{const{componentCls:t}=e,n=uw(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[KT(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),QT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=B.useContext(Iy),s=l("skeleton",t),[c,u]=YT(s),d=iv(e,["prefixCls","className"]),f=Ym(s,`${s}-element`,{[`${s}-active`]:o},n,r,u);return c(B.createElement("div",{className:f},B.createElement(RT,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},d))))},JT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=B.useContext(Iy),s=l("skeleton",t),[c,u]=YT(s),d=iv(e,["prefixCls"]),f=Ym(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u);return c(B.createElement("div",{className:f},B.createElement(RT,Object.assign({prefixCls:`${s}-button`,size:a},d))))},ZT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=B.useContext(Iy),l=a("skeleton",t),[s,c]=YT(l),u=Ym(l,`${l}-element`,{[`${l}-active`]:i},n,r,c);return s(B.createElement("div",{className:u},B.createElement("div",{className:Ym(`${l}-image`,n),style:o},B.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},B.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},eF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=B.useContext(Iy),s=l("skeleton",t),[c,u]=YT(s),d=iv(e,["prefixCls"]),f=Ym(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u);return c(B.createElement("div",{className:f},B.createElement(RT,Object.assign({prefixCls:`${s}-input`,size:a},d))))};const tF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var nF=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:tF}))};const rF=B.forwardRef(nF),oF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=B.useContext(Iy),s=l("skeleton",t),[c,u]=YT(s),d=Ym(s,`${s}-element`,{[`${s}-active`]:i},u,n,r),f=null!=a?a:B.createElement(rF,null);return c(B.createElement("div",{className:d},B.createElement("div",{className:Ym(`${s}-image`,n),style:o},f)))},iF=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:i}=e,a=Rh(Array(i)).map(((e,n)=>B.createElement("li",{key:n,style:{width:t(n)}})));return B.createElement("ul",{className:Ym(n,r),style:o},a)},aF=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return B.createElement("h3",{className:Ym(t,n),style:Object.assign({width:r},o)})};function lF(e){return e&&"object"==typeof e?e:{}}const sF=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p,skeleton:h}=B.useContext(Iy),g=f("skeleton",t),[m,b]=YT(g);if(n||!("loading"in e)){const e=!!l,t=!!s,n=!!c;let a,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),lF(l));a=B.createElement("div",{className:`${g}-header`},B.createElement(RT,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${g}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),lF(s));r=B.createElement(aF,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),lF(c));o=B.createElement(iF,Object.assign({},n))}f=B.createElement("div",{className:`${g}-content`},r,o)}const v=Ym(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===p,[`${g}-round`]:d},null==h?void 0:h.className,r,o,b);return m(B.createElement("div",{className:v,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,f))}return void 0!==a?a:null};sF.Button=JT,sF.Avatar=QT,sF.Input=eF,sF.Image=ZT,sF.Node=oF;const cF=sF;const uF={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"};var dF=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:uF}))};const fF=B.forwardRef(dF),pF=B.createContext(null);var hF=B.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return B.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:Ym(n,a&&"".concat(n,"-active"),r),ref:t},s)})),gF=["key","forceRender","style","className","destroyInactiveTabPane"];function mF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=B.useContext(pF),l=a.prefixCls,s=a.tabs,c=r.tabPane,u="".concat(l,"-tabpane");return B.createElement("div",{className:Ym("".concat(l,"-content-holder"))},B.createElement("div",{className:Ym("".concat(l,"-content"),"".concat(l,"-content-").concat(o),Ed({},"".concat(l,"-content-animated"),c))},s.map((function(e){var o=e.key,a=e.forceRender,l=e.style,s=e.className,d=e.destroyInactiveTabPane,f=Od(e,gF),p=o===n;return B.createElement(ex,Zp({key:o,visible:p,forceRender:a,removeOnLeave:!(!i&&!d),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return B.createElement(hF,Zp({},f,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Mh(Mh({},l),r),className:Ym(s,i),ref:n}))}))}))))}var bF={width:0,height:0,left:0,top:0};function vF(e,t){var n=B.useRef(e),r=mg(B.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var yF=.1,wF=.01,xF=20,SF=Math.pow(.995,xF);function kF(e){var t=mg(B.useState(0),2),n=t[0],r=t[1],o=B.useRef(0),i=B.useRef();return i.current=e,_g((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var CF={width:0,height:0,left:0,top:0,right:0};function EF(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}var OF="TABS_DQ";function DF(e){return String(e).replace(/"/g,OF)}function $F(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function jF(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?B.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}const PF=B.forwardRef(jF);var NF=B.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==kd(i)||B.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?B.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}));function _F(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.moreIcon,s=void 0===l?"More":l,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,m=e.onTabClick,b=e.getPopupContainer,v=e.popupClassName,y=mg(B.useState(!1),2),w=y[0],x=y[1],S=mg(B.useState(null),2),k=S[0],C=S[1],E="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),D=null!==k?"".concat(E,"-").concat(k):null,$=null==i?void 0:i.dropdownAriaLabel;var j=B.createElement(HI,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),x(!1)},prefixCls:"".concat(O,"-menu"),id:E,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[k],"aria-label":void 0!==$?$:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,l=$F(t,o,f,n);return B.createElement(mI,{key:i,id:"".concat(E,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},B.createElement("span",null,a),l&&B.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,i)}},o||f.removeIcon||"×"))})));function P(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,i=0;it?"left":"right"})})),2),F=T[0],R=T[1],A=mg(vF(0,(function(e,t){!I&&C&&C({direction:e>t?"top":"bottom"})})),2),M=A[0],L=A[1],z=mg(B.useState([0,0]),2),H=z[0],W=z[1],U=mg(B.useState([0,0]),2),V=U[0],G=U[1],q=mg(B.useState([0,0]),2),X=q[0],K=q[1],Y=mg(B.useState([0,0]),2),Q=Y[0],J=Y[1],Z=(r=new Map,o=B.useRef([]),i=mg(B.useState({}),2)[1],a=B.useRef("function"==typeof r?r():r),l=kF((function(){var e=a.current;o.current.forEach((function(t){e=t(e)})),o.current=[],a.current=e,i({})})),[a.current,function(e){o.current.push(e),l()}]),ee=mg(Z,2),te=ee[0],ne=ee[1],re=function(e,t,n){return B.useMemo((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||bF,i=o.left+o.width,a=0;afe?fe:e}I&&m?(de=0,fe=Math.max(0,ie-ce)):(de=Math.min(0,ce-ie),fe=0);var he=B.useRef(),ge=mg(B.useState(),2),me=ge[0],be=ge[1];function ve(){be(Date.now())}function ye(){window.clearTimeout(he.current)}!function(e,t){var n=mg(B.useState(),2),r=n[0],o=n[1],i=mg(B.useState(0),2),a=i[0],l=i[1],s=mg(B.useState(0),2),c=s[0],u=s[1],d=mg(B.useState(),2),f=d[0],p=d[1],h=B.useRef(),g=B.useRef(),m=B.useRef(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],i=n.screenX,s=n.screenY;o({x:i,y:s});var c=i-r.x,d=s-r.y;t(c,d);var f=Date.now();l(f),u(f-a),p({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),p(null),f)){var e=f.x/c,n=f.y/c,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)a?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},B.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(j,(function(e,t){function n(e,t){e((function(e){return pe(e+t)}))}return!!se&&(I?n(R,e):n(L,t),ye(),ve(),!0)})),B.useEffect((function(){return ye(),me&&(he.current=window.setTimeout((function(){be(0)}),100)),ye}),[me]);var we=function(e,t,n,r,o,i,a){var l,s,c,u=a.tabs,d=a.tabPosition,f=a.rtl;return["top","bottom"].includes(d)?(l="width",s=f?"right":"left",c=Math.abs(n)):(l="height",s="top",c=-n),B.useMemo((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;oc+t){r=o-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||CF)[s]=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),f])}(re,ce,I?F:M,ie,ae,le,Mh(Mh({},e),{},{tabs:u})),xe=mg(we,2),Se=xe[0],ke=xe[1],Ce=Qy((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(I){var n=F;m?t.rightF+ce&&(n=t.right+t.width-ce):t.left<-F?n=-t.left:t.left+t.width>-F+ce&&(n=-(t.left+t.width-ce)),L(0),R(pe(n))}else{var r=M;t.top<-M?r=-t.top:t.top+t.height>-M+ce&&(r=-(t.top+t.height-ce)),R(0),L(pe(r))}})),Ee={};"top"===w||"bottom"===w?Ee[m?"marginRight":"marginLeft"]=x:Ee.marginTop=x;var Oe=u.map((function(e,t){var n=e.key;return B.createElement(TF,{id:p,prefixCls:c,key:n,tab:e,style:0===t?void 0:Ee,closable:e.closable,editable:v,active:n===g,renderWrapper:S,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){k(n,e)},onFocus:function(){Ce(n),ve(),j.current&&(m||(j.current.scrollLeft=0),j.current.scrollTop=0)}})})),De=function(){return ne((function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return u.forEach((function(e){var r,o=e.key,i=null===(r=P.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(DF(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,s=a.height,c=a.x,u=a.y;return Math.abs(l-n)<1?[l,s,c-t.x,u-t.y]:[n,r,i,o]}(i,n),l=mg(a,4),s=l[0],c=l[1],u=l[2],d=l[3];t.set(o,{width:s,height:c,left:u,top:d})}})),t}))};B.useEffect((function(){De()}),[u.map((function(e){return e.key})).join("_")]);var $e=kF((function(){var e=FF(O),t=FF(D),n=FF($);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=FF(_);K(r);var o=FF(N);J(o);var i=FF(P);G([i[0]-r[0],i[1]-r[1]]),De()})),je=u.slice(0,Se),Pe=u.slice(ke+1),Ne=[].concat(Rh(je),Rh(Pe)),_e=re.get(g),Ie=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicatorSize,i=mg(B.useState(),2),a=i[0],l=i[1],s=B.useRef(),c=function(e){return"function"==typeof o?o(e):"number"==typeof o?o:e};function u(){dv.cancel(s.current)}return B.useEffect((function(){var e={};return t&&(n?(r?(e.right=t.right+t.width/2,e.transform="translateX(50%)"):(e.left=t.left+t.width/2,e.transform="translateX(-50%)"),e.width=c(t.width)):(e.top=t.top+t.height/2,e.transform="translateY(-50%)",e.height=c(t.height))),u(),s.current=dv((function(){l(e)})),u}),[t,n,r,o]),{style:a}}({activeTabOffset:_e,horizontal:I,rtl:m,indicatorSize:E}),Te=Ie.style;B.useEffect((function(){Ce()}),[g,de,fe,EF(_e),EF(re),I]),B.useEffect((function(){$e()}),[m]);var Fe,Re,Ae,Me,Le=!!Ne.length,ze="".concat(c,"-nav-wrap");return I?m?(Re=F>0,Fe=F!==fe):(Fe=F<0,Re=F!==de):(Ae=M<0,Me=M!==de),B.createElement(ov,{onResize:$e},B.createElement("div",{ref:xb(t,O),role:"tablist",className:Ym("".concat(c,"-nav"),d),style:f,onKeyDown:function(){ve()}},B.createElement(NF,{ref:D,position:"left",extra:b,prefixCls:c}),B.createElement(ov,{onResize:$e},B.createElement("div",{className:Ym(ze,(n={},Ed(n,"".concat(ze,"-ping-left"),Fe),Ed(n,"".concat(ze,"-ping-right"),Re),Ed(n,"".concat(ze,"-ping-top"),Ae),Ed(n,"".concat(ze,"-ping-bottom"),Me),n)),ref:j},B.createElement(ov,{onResize:$e},B.createElement("div",{ref:P,className:"".concat(c,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(M,"px)"),transition:me?"none":void 0}},Oe,B.createElement(PF,{ref:_,prefixCls:c,locale:y,editable:v,style:Mh(Mh({},0===Oe.length?void 0:Ee),{},{visibility:Le?"hidden":null})}),B.createElement("div",{className:Ym("".concat(c,"-ink-bar"),Ed({},"".concat(c,"-ink-bar-animated"),h.inkBar)),style:Te}))))),B.createElement(IF,Zp({},e,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:N,prefixCls:c,tabs:Ne,className:!Le&&ue,tabMoving:!!me})),B.createElement(NF,{ref:$,position:"right",extra:b,prefixCls:c})))}const MF=B.forwardRef(AF);var LF=["renderTabBar"],zF=["label","key"];function BF(e){var t=e.renderTabBar,n=Od(e,LF),r=B.useContext(pF).tabs;return t?t(Mh(Mh({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Od(e,zF);return B.createElement(hF,Zp({tab:t,key:n,tabKey:n},r))}))}),MF):B.createElement(MF,n)}var HF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],WF=0;function UF(e,t){var n,r=e.id,o=e.prefixCls,i=void 0===o?"rc-tabs":o,a=e.className,l=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=void 0===p?"top":p,g=e.tabBarGutter,m=e.tabBarStyle,b=e.tabBarExtraContent,v=e.locale,y=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,S=e.renderTabBar,k=e.onChange,C=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,D=e.popupClassName,$=e.indicatorSize,j=Od(e,HF),P=B.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===kd(e)&&"key"in e}))}),[l]),N="rtl"===s,_=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Mh({inkBar:!0},"object"===kd(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),I=mg(B.useState(!1),2),T=I[0],F=I[1];B.useEffect((function(){F(F$())}),[]);var R=mg(ew((function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:u}),2),A=R[0],M=R[1],L=mg(B.useState((function(){return P.findIndex((function(e){return e.key===A}))})),2),z=L[0],H=L[1];B.useEffect((function(){var e,t=P.findIndex((function(e){return e.key===A}));-1===t&&(t=Math.max(0,Math.min(z,P.length-1)),M(null===(e=P[t])||void 0===e?void 0:e.key));H(t)}),[P.map((function(e){return e.key})).join("_"),A,z]);var W=mg(ew(null,{value:r}),2),U=W[0],V=W[1];B.useEffect((function(){r||(V("rc-tabs-".concat(WF)),WF+=1)}),[]);var G={id:U,activeKey:A,animated:_,tabPosition:h,rtl:N,mobile:T},q=Mh(Mh({},G),{},{editable:d,locale:v,moreIcon:y,moreTransitionName:w,tabBarGutter:g,onTabClick:function(e,t){null==C||C(e,t);var n=e!==A;M(e),n&&(null==k||k(e))},onTabScroll:E,extra:b,style:m,panes:null,getPopupContainer:O,popupClassName:D,indicatorSize:$});return B.createElement(pF.Provider,{value:{tabs:P,prefixCls:i}},B.createElement("div",Zp({ref:t,id:r,className:Ym(i,"".concat(i,"-").concat(h),(n={},Ed(n,"".concat(i,"-mobile"),T),Ed(n,"".concat(i,"-editable"),d),Ed(n,"".concat(i,"-rtl"),N),n),a)},j),B.createElement(BF,Zp({},q,{renderTabBar:S})),B.createElement(mF,Zp({destroyInactiveTabPane:x},G,{animated:_}))))}var VF=B.forwardRef(UF);const GF={motionAppear:!1,motionEnter:!0,motionLeave:!0};function qF(e,t){if(e)return e;return function(e){return e.filter((e=>e))}(mb(t).map((e=>{if(B.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[hD(e,"slide-up"),hD(e,"slide-down")]]},KF=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},YF=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},rw(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 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":Object.assign(Object.assign({},nw),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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.colorTextDescription,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"}}})}})}},QF=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=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:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${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:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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 ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${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}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{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}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},JF=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},ZF=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},lw(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${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},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},eR=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-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"}}}}},tR=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},rw(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:n,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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},lw(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ZF(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},nR=hw("Tabs",(e=>{const t=uw(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[JF(t),eR(t),QF(t),YF(t),KF(t),tR(t),XF(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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}}));const rR=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:l,addIcon:s,popupClassName:c,children:u,items:d,animated:f,style:p,indicatorSize:h}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{key:n,event:r}=t;null==i||i("add"===e?r:n,e)},removeIcon:B.createElement(Gx,null),addIcon:s||B.createElement(fF,null),showAdd:!0!==a});const O=w(),D=qF(d,u),$=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},GF),{motionName:jk(e,"switch")})),t}(S,f),j=Lk(o),P=Object.assign(Object.assign({},null==y?void 0:y.style),p);return k(B.createElement(VF,Object.assign({direction:v,getPopupContainer:x,moreTransitionName:`${O}-slide-up`},g,{items:D,className:Ym({[`${S}-${j}`]:j,[`${S}-card`]:["card","editable-card"].includes(t),[`${S}-editable-card`]:"editable-card"===t,[`${S}-centered`]:l},null==y?void 0:y.className,n,r,C),popupClassName:Ym(c,C),style:P,editable:E,moreIcon:b,prefixCls:S,animated:$,indicatorSize:null!=h?h:null==y?void 0:y.indicatorSize})))};rR.TabPane=()=>null;const oR=rR,iR=B.createContext({}),aR=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"}}}},lR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},sR=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"}],o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o})(e,t),cR=hw("Grid",(e=>[aR(e)])),uR=hw("Grid",(e=>{const t=uw(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[lR(t),sR(t,""),sR(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},sR(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));const dR=["xs","sm","md","lg","xl","xxl"],fR=B.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=B.useContext(Iy),{gutter:o,wrap:i}=B.useContext(iR),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:d,className:f,children:p,flex:h,style:g}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete m[t],w=Object.assign(Object.assign({},w),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${b}-rtl`]:"rtl"===r})}));const x=Ym(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${s}`]:s,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},f,w,y),S={};if(o&&o[0]>0){const e=o[0]/2;S.paddingLeft=e,S.paddingRight=e}return h&&(S.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(h),!1!==i||S.minWidth||(S.minWidth=0)),v(B.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign({},S),g),className:x,ref:t}),p))})),pR=fR;function hR(e,t){const[n,r]=B.useState("string"==typeof e?e:"");return B.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const e=w.subscribe((e=>{m(e);const t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>w.unsubscribe(e)}),[]);const x=d("row",n),[S,k]=cR(x),C=(()=>{const e=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?C[0]/-2:void 0;D&&(O.marginLeft=D,O.marginRight=D),[,O.rowGap]=C;const[$,j]=C,P=B.useMemo((()=>({gutter:[$,j],wrap:c})),[$,j,c]);return S(B.createElement(iR.Provider,{value:P},B.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},O),a),ref:t}),l)))})),mR=gR;const bR={useBreakpoint:function(){return SN()}};var vR=H.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,s=e.isActive,c=e.role,u=mg(H.useState(s||o),2),d=u[0],f=u[1];return H.useEffect((function(){(o||s)&&f(!0)}),[o,s]),d?H.createElement("div",{ref:t,className:Ym("".concat(r,"-content"),(n={},Ed(n,"".concat(r,"-content-active"),s),Ed(n,"".concat(r,"-content-inactive"),!s),n),i),style:a,role:c},H.createElement("div",{className:"".concat(r,"-content-box")},l)):null}));vR.displayName="PanelContent";var yR=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],wR=H.forwardRef((function(e,t){var n,r,o=e.showArrow,i=void 0===o||o,a=e.headerClass,l=e.isActive,s=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,f=e.collapsible,p=e.accordion,h=e.panelKey,g=e.extra,m=e.header,b=e.expandIcon,v=e.openMotion,y=e.destroyInactivePanel,w=e.children,x=Od(e,yR),S="disabled"===f,k="header"===f,C="icon"===f,E=null!=g&&"boolean"!=typeof g,O=function(){null==s||s(h)},D="function"==typeof b?b(e):H.createElement("i",{className:"arrow"});D&&(D=H.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},D));var $=Ym((Ed(n={},"".concat(d,"-item"),!0),Ed(n,"".concat(d,"-item-active"),l),Ed(n,"".concat(d,"-item-disabled"),S),n),u),j={className:Ym(a,(Ed(r={},"".concat(d,"-header"),!0),Ed(r,"".concat(d,"-header-collapsible-only"),k),Ed(r,"".concat(d,"-icon-collapsible-only"),C),r)),"aria-expanded":l,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==$S.ENTER&&e.which!==$S.ENTER||O()}};return k||C||(j.onClick=O,j.role=p?"tab":"button",j.tabIndex=S?-1:0),H.createElement("div",Zp({},x,{ref:t,className:$}),H.createElement("div",j,i&&D,H.createElement("span",{className:"".concat(d,"-header-text"),onClick:"header"===f?O:void 0},m),E&&H.createElement("div",{className:"".concat(d,"-extra")},g)),H.createElement(ex,Zp({visible:l,leavedClassName:"".concat(d,"-content-hidden")},v,{forceRender:c,removeOnLeave:y}),(function(e,t){var n=e.className,r=e.style;return H.createElement(vR,{ref:t,prefixCls:d,className:n,style:r,isActive:l,forceRender:c,role:p?"tabpanel":void 0},w)})))})),xR=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function SR(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,l=t.activeKey,s=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u=e.children,d=e.label,f=e.key,p=e.collapsible,h=e.onItemClick,g=e.destroyInactivePanel,m=Od(e,xR),b=String(null!=f?f:t),v=null!=p?p:o,y=null!=g?g:i,w=!1;return w=r?l[0]===b:l.indexOf(b)>-1,H.createElement(wR,Zp({},m,{prefixCls:n,key:b,panelKey:b,isActive:w,accordion:r,openMotion:s,expandIcon:c,header:d,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==h||h(e))},destroyInactivePanel:y}),u)}))}(e,n):mb(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=e.props,p=f.header,h=f.headerClass,g=f.destroyInactivePanel,m=f.collapsible,b=f.onItemClick,v=!1;v=o?s[0]===d:s.indexOf(d)>-1;var y=null!=m?m:i,w={key:d,panelKey:d,header:p,headerClass:h,isActive:v,prefixCls:r,destroyInactivePanel:null!=g?g:a,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==y&&(l(e),null==b||b(e))},expandIcon:u,collapsible:y};return"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),H.cloneElement(e,w))}(e,t,n)}))}function kR(e){var t=e;if(!Array.isArray(t)){var n=kd(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var CR=H.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,i=void 0!==o&&o,a=e.style,l=e.accordion,s=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,g=e.onChange,m=e.items,b=Ym(r,s),v=mg(ew([],{value:p,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:kR}),2),y=v[0],w=v[1];Vh(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=SR(m,c,{prefixCls:r,accordion:l,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:i,onItemClick:function(e){return w((function(){return l?y[0]===e?[]:[e]:y.indexOf(e)>-1?y.filter((function(t){return t!==e})):[].concat(Rh(y),[e])}))},activeKey:y});return H.createElement("div",{ref:t,className:b,style:a,role:l?"tablist":void 0},x)}));const ER=Object.assign(CR,{Panel:wR});ER.Panel;const OR=B.forwardRef(((e,t)=>{const{getPrefixCls:n}=B.useContext(Iy),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=Ym({[`${a}-no-arrow`]:!i},o);return B.createElement(ER.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))})),DR=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:v,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:k,contentPadding:C}=e,E=`${c}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},rw(e)),{backgroundColor:o,border:E,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:b,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:k,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:C},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:y-x}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:m,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:m*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},$R=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},jR=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},PR=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},NR=hw("Collapse",(e=>{const t=uw(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[DR(t),jR(t),PR(t),$R(t),jD(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),_R=B.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=B.useContext(Iy),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,g=Lk((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",i),b=n(),[v,y]=NR(m),w=B.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),x=Ym(`${m}-icon-position-${w}`,{[`${m}-borderless`]:!c,[`${m}-rtl`]:"rtl"===r,[`${m}-ghost`]:!!u,[`${m}-${g}`]:"middle"!==g},null==o?void 0:o.className,a,l,y),S=Object.assign(Object.assign({},$k(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),k=B.useMemo((()=>p?mb(p).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:i}=e.props;return lS(e,Object.assign(Object.assign({},iv(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[p]);return v(B.createElement(ER,Object.assign({ref:t,openMotion:S},iv(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=h?h(e):B.createElement(m_,{rotate:e.isActive?90:void 0});return lS(t,(()=>({className:Ym(t.props.className,`${m}-arrow`)})))},prefixCls:m,className:x,style:Object.assign(Object.assign({},null==o?void 0:o.style),s)}),k))})),IR=Object.assign(_R,{Panel:OR}),TR=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},rw(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},FR=hw("Divider",(e=>{const t=uw(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[TR(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));const RR=e=>{const{getPrefixCls:t,direction:n,divider:r}=B.useContext(Iy),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:u,dashed:d,plain:f,style:p}=e,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?`-${a}`:a,y=!!u,w="left"===a&&null!=l,x="right"===a&&null!=l,S=Ym(g,null==r?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:y,[`${g}-with-text${v}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!f,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:w,[`${g}-no-default-orientation-margin-right`]:x},s,c),k=B.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),C=Object.assign(Object.assign({},w&&{marginLeft:k}),x&&{marginRight:k});return m(B.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==r?void 0:r.style),p)},h,{role:"separator"}),u&&"vertical"!==i&&B.createElement("span",{className:`${g}-inner-text`,style:C},u)))};const AR={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"};var MR=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:AR}))};const LR=B.forwardRef(MR);function zR(){return"function"==typeof BigInt}function BR(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function HR(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function WR(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function UR(e){var t=String(e);if(WR(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&GR(t)?t.length-t.indexOf(".")-1:0}function VR(e){var t=String(e);if(WR(e)){if(e>Number.MAX_SAFE_INTEGER)return String(zR()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":HR("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),XR=function(){function e(t){mf(this,e),Ed(this,"origin",""),Ed(this,"number",void 0),Ed(this,"empty",void 0),BR(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return vf(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":VR(this.number):this.origin}}]),e}();function KR(e){return zR()?new qR(e):new XR(e)}function YR(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=HR(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?YR(KR(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}function QR(e){return!(!e.addonBefore&&!e.addonAfter)}function JR(e){return!!(e.prefix||e.suffix||e.allowClear)}function ZR(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),"file"!==e.type&&(e.value=r),void n(o);n(o)}}function eA(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var tA=function(e){var t,n,r=e.inputElement,o=e.prefixCls,i=e.prefix,a=e.suffix,l=e.addonBefore,s=e.addonAfter,c=e.className,u=e.style,d=e.disabled,f=e.readOnly,p=e.focused,h=e.triggerFocus,g=e.allowClear,m=e.value,b=e.handleReset,v=e.hidden,y=e.classes,w=e.classNames,x=e.dataAttrs,S=e.styles,k=e.components,C=(null==k?void 0:k.affixWrapper)||"span",E=(null==k?void 0:k.groupWrapper)||"span",O=(null==k?void 0:k.wrapper)||"span",D=(null==k?void 0:k.groupAddon)||"span",$=B.useRef(null),j=B.cloneElement(r,{value:m,hidden:v,className:Ym(null===(t=r.props)||void 0===t?void 0:t.className,!JR(e)&&!QR(e)&&c)||null,style:Mh(Mh({},null===(n=r.props)||void 0===n?void 0:n.style),JR(e)||QR(e)?{}:u)});if(JR(e)){var P,N="".concat(o,"-affix-wrapper"),_=Ym(N,(Ed(P={},"".concat(N,"-disabled"),d),Ed(P,"".concat(N,"-focused"),p),Ed(P,"".concat(N,"-readonly"),f),Ed(P,"".concat(N,"-input-with-clear-btn"),a&&g&&m),P),!QR(e)&&c,null==y?void 0:y.affixWrapper,null==w?void 0:w.affixWrapper),I=(a||g)&&H.createElement("span",{className:Ym("".concat(o,"-suffix"),null==w?void 0:w.suffix),style:null==S?void 0:S.suffix},function(){var e;if(!g)return null;var t=!d&&!f&&m,n="".concat(o,"-clear-icon"),r="object"===kd(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";return H.createElement("span",{onClick:b,onMouseDown:function(e){return e.preventDefault()},className:Ym(n,(e={},Ed(e,"".concat(n,"-hidden"),!t),Ed(e,"".concat(n,"-has-suffix"),!!a),e)),role:"button",tabIndex:-1},r)}(),a);j=H.createElement(C,Zp({className:_,style:Mh(Mh({},QR(e)?void 0:u),null==S?void 0:S.affixWrapper),hidden:!QR(e)&&v,onClick:function(e){var t;null!==(t=$.current)&&void 0!==t&&t.contains(e.target)&&(null==h||h())}},null==x?void 0:x.affixWrapper,{ref:$}),i&&H.createElement("span",{className:Ym("".concat(o,"-prefix"),null==w?void 0:w.prefix),style:null==S?void 0:S.prefix},i),B.cloneElement(r,{value:m,hidden:null}),I)}if(QR(e)){var T="".concat(o,"-group"),F="".concat(T,"-addon"),R=Ym("".concat(o,"-wrapper"),T,null==y?void 0:y.wrapper),A=Ym("".concat(o,"-group-wrapper"),c,null==y?void 0:y.group);return H.createElement(E,{className:A,style:u,hidden:v},H.createElement(O,{className:R},l&&H.createElement(D,{className:F},l),B.cloneElement(j,{hidden:null}),s&&H.createElement(D,{className:F},s)))}return j},nA=["show"];function rA(e,t){return B.useMemo((function(){var n={};t&&(n.show="object"===kd(t)&&t.formatter?t.formatter:!!t);var r=n=Mh(Mh({},n),e),o=r.show,i=Od(r,nA);return Mh(Mh({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var oA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],iA=B.forwardRef((function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.prefixCls,c=void 0===s?"rc-input":s,u=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,g=e.showCount,m=e.count,b=e.type,v=void 0===b?"text":b,y=e.classes,w=e.classNames,x=e.styles,S=e.onCompositionStart,k=e.onCompositionEnd,C=Od(e,oA),E=mg(B.useState(!1),2),O=E[0],D=E[1],$=H.useRef(!1),j=B.useRef(null),P=function(e){j.current&&eA(j.current,e)},N=mg(ew(e.defaultValue,{value:e.value}),2),_=N[0],I=N[1],T=null==_?"":String(_),F=mg(H.useState(null),2),R=F[0],A=F[1],M=rA(m,g),L=M.max||p,z=M.strategy(T),W=!!L&&z>L;B.useImperativeHandle(t,(function(){return{focus:P,blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=j.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.current}})),B.useEffect((function(){D((function(e){return(!e||!u)&&e}))}),[u]);var U=function(e,t){var n,o,i=t;!$.current&&M.exceedFormatter&&M.max&&M.strategy(t)>M.max&&(t!==(i=M.exceedFormatter(t,{max:M.max}))&&A([(null===(n=j.current)||void 0===n?void 0:n.selectionStart)||0,(null===(o=j.current)||void 0===o?void 0:o.selectionEnd)||0]));I(i),j.current&&ZR(j.current,e,r,i)};H.useEffect((function(){var e;R&&(null===(e=j.current)||void 0===e||e.setSelectionRange.apply(e,Rh(R)))}),[R]);var V,G=function(e){U(e,e.target.value)},q=function(e){$.current=!1,U(e,e.currentTarget.value),null==k||k(e)},X=function(e){a&&"Enter"===e.key&&a(e),null==l||l(e)},K=function(e){D(!0),null==o||o(e)},Y=function(e){D(!1),null==i||i(e)},Q=W&&"".concat(c,"-out-of-range");return H.createElement(tA,Zp({},C,{prefixCls:c,className:Ym(f,Q),inputElement:(V=iv(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),H.createElement("input",Zp({autoComplete:n},V,{onChange:G,onFocus:K,onBlur:Y,onKeyDown:X,className:Ym(c,Ed({},"".concat(c,"-disabled"),u),null==w?void 0:w.input),style:null==x?void 0:x.input,ref:j,size:d,type:v,onCompositionStart:function(e){$.current=!0,null==S||S(e)},onCompositionEnd:q}))),handleReset:function(e){I(""),P(),j.current&&ZR(j.current,e,r)},value:T,focused:O,triggerFocus:P,suffix:function(){var e=Number(L)>0;if(h||M.show){var t=M.showFormatter?M.showFormatter({value:T,count:z,maxLength:L}):"".concat(z).concat(e?" / ".concat(L):"");return H.createElement(H.Fragment,null,M.show&&H.createElement("span",{className:Ym("".concat(c,"-show-count-suffix"),Ed({},"".concat(c,"-show-count-has-suffix"),!!h),null==w?void 0:w.count),style:Mh({},null==x?void 0:x.count)},t),h)}return null}(),disabled:u,classes:y,classNames:w,styles:x}))}));function aA(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=B.useRef(),s=B.useRef([]),c=B.useRef();c.current=a;var u,d,f,p=function(){clearTimeout(l.current)},h=function(e,t){e.preventDefault(),p(),c.current(t),l.current=setTimeout((function e(){c.current(t),l.current=setTimeout(e,200)}),600)};if(B.useEffect((function(){return function(){p(),s.current.forEach((function(e){return dv.cancel(e)}))}}),[]),u=mg(B.useState(!1),2),d=u[0],f=u[1],Ng((function(){f(F$())}),[]),d)return null;var g="".concat(t,"-handler"),m=Ym(g,"".concat(g,"-up"),Ed({},"".concat(g,"-up-disabled"),o)),b=Ym(g,"".concat(g,"-down"),Ed({},"".concat(g,"-down-disabled"),i)),v=function(){return s.current.push(dv(p))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return B.createElement("div",{className:"".concat(g,"-wrap")},B.createElement("span",Zp({},y,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||B.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),B.createElement("span",Zp({},y,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:b}),r||B.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function lA(e){var t="number"==typeof e?VR(e):HR(e).fullStr;return t.includes(".")?HR(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var sA=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],cA=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],uA=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},dA=function(e){var t=KR(e);return t.isInvalidate()?null:t},fA=B.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,i=e.className,a=e.style,l=e.min,s=e.max,c=e.step,u=void 0===c?1:c,d=e.defaultValue,f=e.value,p=e.disabled,h=e.readOnly,g=e.upHandler,m=e.downHandler,b=e.keyboard,v=e.controls,y=void 0===v||v,w=e.classNames,x=e.stringMode,S=e.parser,k=e.formatter,C=e.precision,E=e.decimalSeparator,O=e.onChange,D=e.onInput,$=e.onPressEnter,j=e.onStep,P=e.changeOnBlur,N=void 0===P||P,_=Od(e,sA),I="".concat(o,"-input"),T=B.useRef(null),F=mg(B.useState(!1),2),R=F[0],A=F[1],M=B.useRef(!1),L=B.useRef(!1),z=B.useRef(!1),H=mg(B.useState((function(){return KR(null!=f?f:d)})),2),W=H[0],U=H[1];var V=B.useCallback((function(e,t){if(!t)return C>=0?C:Math.max(UR(e),UR(u))}),[C,u]),G=B.useCallback((function(e){var t=String(e);if(S)return S(t);var n=t;return E&&(n=n.replace(E,".")),n.replace(/[^\w.-]+/g,"")}),[S,E]),q=B.useRef(""),X=B.useCallback((function(e,t){if(k)return k(e,{userTyping:t,input:String(q.current)});var n="number"==typeof e?VR(e):e;if(!t){var r=V(n,t);if(GR(n)&&(E||r>=0))n=YR(n,E||".",r)}return n}),[k,V,E]),K=mg(B.useState((function(){var e=null!=d?d:f;return W.isInvalidate()&&["string","number"].includes(kd(e))?Number.isNaN(e)?"":e:X(W.toString(),!1)})),2),Y=K[0],Q=K[1];function J(e,t){Q(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}q.current=Y;var Z,ee,te,ne,re,oe=B.useMemo((function(){return dA(s)}),[s,C]),ie=B.useMemo((function(){return dA(l)}),[l,C]),ae=B.useMemo((function(){return!(!oe||!W||W.isInvalidate())&&oe.lessEquals(W)}),[oe,W]),le=B.useMemo((function(){return!(!ie||!W||W.isInvalidate())&&W.lessEquals(ie)}),[ie,W]),se=(Z=T.current,ee=R,te=B.useRef(null),[function(){try{var e=Z.selectionStart,t=Z.selectionEnd,n=Z.value,r=n.substring(0,e),o=n.substring(t);te.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(GY){}},function(){if(Z&&te.current&&ee)try{var e=Z.value,t=te.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-te.current.afterTxt.length;else if(e.startsWith(n))i=n.length;else{var a=n[o-1],l=e.indexOf(a,o-1);-1!==l&&(i=l+1)}Z.setSelectionRange(i,i)}catch(GY){Vh(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(GY.message))}}]),ce=mg(se,2),ue=ce[0],de=ce[1],fe=function(e){return oe&&!e.lessEquals(oe)?oe:ie&&!ie.lessEquals(e)?ie:null},pe=function(e){return!fe(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=fe(r)||r,o=!0),!h&&!p&&o){var i=r.toString(),a=V(i,t);return a>=0&&(r=KR(YR(i,".",a)),pe(r)||(r=KR(YR(i,".",a,!0)))),r.equals(W)||(n=r,void 0===f&&U(n),null==O||O(r.isEmpty()?null:uA(x,r)),void 0===f&&J(r,t)),r}return W},ge=(ne=B.useRef(0),re=function(){dv.cancel(ne.current)},B.useEffect((function(){return re}),[]),function(e){re(),ne.current=dv((function(){e()}))}),me=function e(t){if(ue(),q.current=t,Q(t),!L.current){var n=KR(G(t));n.isNaN()||he(n,!0)}null==D||D(t),ge((function(){var n=t;S||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},be=function(e){var t;if(!(e&&ae||!e&&le)){M.current=!1;var n=KR(z.current?lA(u):u);e||(n=n.negate());var r=(W||KR(0)).add(n.toString()),o=he(r,!1);null==j||j(uA(x,o),{offset:z.current?lA(u):u,type:e?"up":"down"}),null===(t=T.current)||void 0===t||t.focus()}},ve=function(e){var t=KR(G(Y)),n=t;n=t.isNaN()?he(W,e):he(t,e),void 0!==f?J(W,!1):n.isNaN()||J(n,!1)};return _g((function(){W.isInvalidate()||J(W,!1)}),[C,k]),_g((function(){var e=KR(f);U(e);var t=KR(G(Y));e.equals(t)&&M.current&&!k||J(e,M.current)}),[f]),_g((function(){k&&de()}),[Y]),B.createElement("div",{className:Ym(o,null==w?void 0:w.input,i,(n={},Ed(n,"".concat(o,"-focused"),R),Ed(n,"".concat(o,"-disabled"),p),Ed(n,"".concat(o,"-readonly"),h),Ed(n,"".concat(o,"-not-a-number"),W.isNaN()),Ed(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!pe(W)),n)),style:a,onFocus:function(){A(!0)},onBlur:function(){N&&ve(!1),A(!1),M.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;M.current=!0,z.current=n,"Enter"===t&&(L.current||(M.current=!1),ve(!1),null==$||$(e)),!1!==b&&!L.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){M.current=!1,z.current=!1},onCompositionStart:function(){L.current=!0},onCompositionEnd:function(){L.current=!1,me(T.current.value)},onBeforeInput:function(){M.current=!0}},y&&B.createElement(aA,{prefixCls:o,upNode:g,downNode:m,upDisabled:ae,downDisabled:le,onStep:be}),B.createElement("div",{className:"".concat(I,"-wrap")},B.createElement("input",Zp({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},_,{ref:wb(T,t),className:I,value:Y,onChange:function(e){me(e.target.value)},disabled:p,readOnly:h}))))})),pA=B.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,l=e.suffix,s=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,f=e.classNames,p=Od(e,cA),h=B.useRef(null);return B.createElement(tA,{inputElement:B.createElement(fA,Zp({prefixCls:o,disabled:n,classNames:f,ref:wb(h,t)},p)),className:d,triggerFocus:function(e){h.current&&eA(h.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:l,addonAfter:c,addonBefore:s,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}));pA.displayName="InputNumber";const hA=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},gA=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:f,handleHoverColor:p,paddingInline:h,paddingBlock:g,handleBg:m,handleActiveBg:b,colorTextDisabled:v,borderRadiusSM:y,borderRadiusLG:w,controlWidth:x,handleVisible:S,handleBorderColor:k}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},rw(e)),CT(e)),kT(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:w,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},rw(e)),ET(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},wT(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},rw(e)),{width:"100%",padding:`${g}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),bT(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===S?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${k}`,transition:`all ${f} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${k}`,borderEndEndRadius:i}},hA(e,"lg")),hA(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:v}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},mA=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},CT(e)),kT(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},bA=hw("InputNumber",(e=>{const t=uw(e,IT(e));return[gA(t),mA(t),RC(t)]}),(e=>Object.assign(Object.assign({},TT(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder})));const vA=B.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=B.useContext(Iy),o=B.useRef(null);B.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:p=!0,readOnly:h,status:g,controls:m}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=l?l:x)&&void 0!==t?t:e})),_=B.useContext(My),I=null!=s?s:_,T=Ym({[`${v}-lg`]:"large"===N,[`${v}-sm`]:"small"===N,[`${v}-rtl`]:"rtl"===r,[`${v}-borderless`]:!p,[`${v}-in-form-item`]:$},jP(v,P),w),F=`${v}-group`,R=O&&B.createElement(B.Fragment,null,j);return y(B.createElement(pA,Object.assign({ref:o,disabled:I,className:Ym(i,a,S),upHandler:k,downHandler:C,prefixCls:v,readOnly:h,controls:E,prefix:f,suffix:R,addonAfter:d&&B.createElement(qk,null,B.createElement(AO,{override:!0,status:!0},d)),addonBefore:u&&B.createElement(qk,null,B.createElement(AO,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:Ym(jP(`${v}-affix-wrapper`,P,O),{[`${v}-affix-wrapper-sm`]:"small"===N,[`${v}-affix-wrapper-lg`]:"large"===N,[`${v}-affix-wrapper-rtl`]:"rtl"===r,[`${v}-affix-wrapper-borderless`]:!p},w),wrapper:Ym({[`${F}-rtl`]:"rtl"===r,[`${v}-wrapper-disabled`]:I},w),group:Ym({[`${v}-group-wrapper-sm`]:"small"===N,[`${v}-group-wrapper-lg`]:"large"===N,[`${v}-group-wrapper-rtl`]:"rtl"===r},jP(`${v}-group-wrapper`,P,O),w)}},b)))})),yA=vA;yA._InternalPanelDoNotUseOrYouWillBeFired=e=>B.createElement(Sx,{theme:{components:{InputNumber:{handleVisible:!0}}}},B.createElement(vA,Object.assign({},e)));const wA=yA,xA=e=>{const{getPrefixCls:t,direction:n}=B.useContext(Iy),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=FT(a),c=Ym(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},s,o),u=B.useContext(RO),d=B.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return l(B.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},B.createElement(RO.Provider,{value:d},e.children)))};function SA(e,t){const n=B.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return B.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}const kA=B.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:g,styles:m,rootClassName:b,onChange:v,classNames:y}=e,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=a?a:$)&&void 0!==t?t:e})),N=H.useContext(My),_=null!=l?l:N,{status:I,hasFeedback:T,feedbackIcon:F}=B.useContext(RO),R=PP(I,i),A=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!T;B.useRef(A);const M=SA(E,!0),L=(T||u)&&H.createElement(H.Fragment,null,u,T&&F);let z;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?z=d:d&&(z={clearIcon:H.createElement(Wx,null)}),O(H.createElement(iA,Object.assign({ref:wb(t,E),prefixCls:C,autoComplete:null==k?void 0:k.autoComplete},w,{disabled:_,onBlur:e=>{M(),null==s||s(e)},onFocus:e=>{M(),null==c||c(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),g),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),m),suffix:L,allowClear:z,className:Ym(h,b,j,null==k?void 0:k.className),onChange:e=>{M(),null==v||v(e)},addonAfter:f&&H.createElement(qk,null,H.createElement(AO,{override:!0,status:!0},f)),addonBefore:p&&H.createElement(qk,null,H.createElement(AO,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),null==k?void 0:k.classNames),{input:Ym({[`${C}-sm`]:"small"===P,[`${C}-lg`]:"large"===P,[`${C}-rtl`]:"rtl"===S,[`${C}-borderless`]:!o},!A&&jP(C,R),null==y?void 0:y.input,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.input,D)}),classes:{affixWrapper:Ym({[`${C}-affix-wrapper-sm`]:"small"===P,[`${C}-affix-wrapper-lg`]:"large"===P,[`${C}-affix-wrapper-rtl`]:"rtl"===S,[`${C}-affix-wrapper-borderless`]:!o},jP(`${C}-affix-wrapper`,R,T),D),wrapper:Ym({[`${C}-group-rtl`]:"rtl"===S},D),group:Ym({[`${C}-group-wrapper-sm`]:"small"===P,[`${C}-group-wrapper-lg`]:"large"===P,[`${C}-group-wrapper-rtl`]:"rtl"===S,[`${C}-group-wrapper-disabled`]:_},jP(`${C}-group-wrapper`,R,T),D)}})))})),CA=kA;const EA={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"};var OA=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:EA}))};const DA=B.forwardRef(OA);const $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"};var jA=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:$A}))};const PA=B.forwardRef(jA);const NA=e=>e?B.createElement(PA,null):B.createElement(DA,null),_A={click:"onClick",hover:"onMouseOver"},IA=B.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=B.useState((()=>!!r&&n.visible)),a=B.useRef(null);B.useEffect((()=>{r&&i(n.visible)}),[r,n]);const l=SA(a),s=()=>{const{disabled:t}=e;t||(o&&l(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{action:n="click",iconRender:r=NA}=e,i=_A[n]||"",a=r(o),l={[i]:s,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return B.cloneElement(B.isValidElement(a)?a:B.createElement("span",null,a),l)})(m),v=Ym(m,c,{[`${m}-${f}`]:!!f}),y=Object.assign(Object.assign({},iv(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:v,prefixCls:g,suffix:b});return f&&(y.size=f),B.createElement(CA,Object.assign({ref:wb(t,a)},y))})),TA=IA;const FA=B.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;return null!==(t=null!=i?i:x)&&void 0!==t?t:e})),k=B.useRef(null),C=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof l?B.createElement(sN,null):null,D=`${y}-button`;let $;const j=l||{},P=j.type&&!0===j.type.__ANT_BUTTON;$=P||"button"===j.type?lS(j,Object.assign({onMouseDown:C,onClick:e=>{var t,n;null===(n=null===(t=null==j?void 0:j.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},P?{className:D,size:S}:{})):B.createElement(HC,{className:D,type:l?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:C,onClick:E,loading:c,icon:O},l),s&&($=[$,lS(s,{key:"addonAfter"})]);const N=Ym(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${S}`]:!!S,[`${y}-with-button`]:!!l},o);return B.createElement(CA,Object.assign({ref:wb(k,t),onPressEnter:e=>{v.current||c||E(e)}},g,{size:S,onCompositionStart:e=>{v.current=!0,null==p||p(e)},onCompositionEnd:e=>{v.current=!1,null==h||h(e)},prefixCls:w,addonAfter:$,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:N,disabled:u}))})),RA=FA;var AA,MA=["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"],LA={};function zA(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;AA||((AA=document.createElement("textarea")).setAttribute("tab-index","-1"),AA.setAttribute("aria-hidden","true"),document.body.appendChild(AA)),e.getAttribute("wrap")?AA.setAttribute("wrap",e.getAttribute("wrap")):AA.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&LA[n])return LA[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:MA.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(LA[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;AA.setAttribute("style","".concat(s,";").concat("\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")),AA.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=AA.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){AA.value=" ";var p=AA.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var BA=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],HA=B.forwardRef((function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=Od(n,BA),p=mg(ew(o,{value:i,postState:function(e){return null!=e?e:""}}),2),h=p[0],g=p[1],m=B.useRef();B.useImperativeHandle(t,(function(){return{textArea:m.current}}));var b=mg(B.useMemo((function(){return a&&"object"===kd(a)?[a.minRows,a.maxRows]:[]}),[a]),2),v=b[0],y=b[1],w=!!a,x=mg(B.useState(2),2),S=x[0],k=x[1],C=mg(B.useState(),2),E=C[0],O=C[1],D=function(){k(0)};Ng((function(){w&&D()}),[i,v,y,w]),Ng((function(){if(0===S)k(1);else if(1===S){var e=zA(m.current,!1,v,y);k(2),O(e)}else!function(){try{if(document.activeElement===m.current){var e=m.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;m.current.setSelectionRange(t,n),m.current.scrollTop=r}}catch(GY){}}()}),[S]);var $=B.useRef(),j=function(){dv.cancel($.current)};B.useEffect((function(){return j}),[]);var P=w?E:null,N=Mh(Mh({},c),P);return 0!==S&&1!==S||(N.overflowY="hidden",N.overflowX="hidden"),B.createElement(ov,{onResize:function(e){2===S&&(null==l||l(e),a&&(j(),$.current=dv((function(){D()}))))},disabled:!(a||l)},B.createElement("textarea",Zp({},f,{ref:m,style:N,className:Ym(r,s,Ed({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){g(e.target.value),null==d||d(e)}})))})),WA=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],UA=H.forwardRef((function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,g=void 0===h?"rc-textarea":h,m=e.classes,b=e.showCount,v=e.count,y=e.className,w=e.style,x=e.disabled,S=e.hidden,k=e.classNames,C=e.styles,E=e.onResize,O=Od(e,WA),D=mg(ew(o,{value:i,defaultValue:o}),2),$=D[0],j=D[1],P=null==$?"":String($),N=mg(H.useState(!1),2),_=N[0],I=N[1],T=H.useRef(!1),F=mg(H.useState(null),2),R=F[0],A=F[1],M=B.useRef(null),L=function(){var e;return null===(e=M.current)||void 0===e?void 0:e.textArea},z=function(){L().focus()};B.useImperativeHandle(t,(function(){return{resizableTextArea:M.current,focus:z,blur:function(){L().blur()}}})),B.useEffect((function(){I((function(e){return!x&&e}))}),[x]);var W=mg(H.useState(null),2),U=W[0],V=W[1];H.useEffect((function(){var e;U&&(e=L()).setSelectionRange.apply(e,Rh(U))}),[U]);var G,q=rA(v,b),X=null!==(n=q.max)&&void 0!==n?n:u,K=Number(X)>0,Y=q.strategy(P),Q=!!X&&Y>X,J=function(e,t){var n=t;!T.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&V([L().selectionStart||0,L().selectionEnd||0]),j(n),ZR(e.currentTarget,e,s,n)},Z=p;q.show&&(G=q.showFormatter?q.showFormatter({value:P,count:Y,maxLength:X}):"".concat(Y).concat(K?" / ".concat(X):""),Z=H.createElement(H.Fragment,null,Z,H.createElement("span",{className:Ym("".concat(g,"-data-count"),null==k?void 0:k.count),style:null==C?void 0:C.count},G)));var ee=!O.autoSize&&!b&&!c;return H.createElement(tA,{value:P,allowClear:c,handleReset:function(e){j(""),z(),ZR(L(),e,s)},suffix:Z,prefixCls:g,classes:{affixWrapper:Ym(null==m?void 0:m.affixWrapper,(r={},Ed(r,"".concat(g,"-show-count"),b),Ed(r,"".concat(g,"-textarea-allow-clear"),c),r))},disabled:x,focused:_,className:Ym(y,Q&&"".concat(g,"-out-of-range")),style:Mh(Mh({},w),R&&!ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof G?G:void 0}},hidden:S,inputElement:H.createElement(HA,Zp({},O,{maxLength:u,onKeyDown:function(e){var t=O.onPressEnter,n=O.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){J(e,e.target.value)},onFocus:function(e){I(!0),null==a||a(e)},onBlur:function(e){I(!1),null==l||l(e)},onCompositionStart:function(e){T.current=!0,null==d||d(e)},onCompositionEnd:function(e){T.current=!1,J(e,e.currentTarget.value),null==f||f(e)},className:Ym(null==k?void 0:k.textarea),style:Mh(Mh({},null==C?void 0:C.textarea),{},{resize:null==w?void 0:w.resize}),disabled:x,prefixCls:g,onResize:function(e){var t;null==E||E(e),null!==(t=L())&&void 0!==t&&t.style.height&&A(!0)},ref:M}))})}));const VA=B.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:u,className:d}=e,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var e;return{resizableTextArea:null===(e=S.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=S.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=S.current)||void 0===e?void 0:e.blur()}}}));const k=p("input",r);let C;"object"==typeof s&&(null==s?void 0:s.clearIcon)?C=s:s&&(C={clearIcon:B.createElement(Wx,null)});const[E,O]=FT(k);return E(B.createElement(UA,Object.assign({},f,{disabled:b,allowClear:C,className:Ym(d,u),classes:{affixWrapper:Ym(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===h,[`${k}-affix-wrapper-borderless`]:!o,[`${k}-affix-wrapper-sm`]:"small"===g,[`${k}-affix-wrapper-lg`]:"large"===g,[`${k}-textarea-show-count`]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},jP(`${k}-affix-wrapper`,x),O)},classNames:Object.assign(Object.assign({},c),{textarea:Ym({[`${k}-borderless`]:!o,[`${k}-sm`]:"small"===g,[`${k}-lg`]:"large"===g},jP(k,x),O,null==c?void 0:c.textarea)}),prefixCls:k,suffix:y&&B.createElement("span",{className:`${k}-textarea-suffix`},w),ref:S})))})),GA=VA,qA=CA;qA.Group=xA,qA.Search=RA,qA.TextArea=GA,qA.Password=TA;const XA=qA;var KA=B.createContext(null),YA=B.createContext({}),QA=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.children,i=e.containerRef,a=e.id,l={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},s=xb(B.useContext(YA).panel,i);return B.createElement(B.Fragment,null,B.createElement("div",Zp({id:a,className:Ym("".concat(t,"-content"),n),style:Mh({},r),"aria-modal":"true",role:"dialog",ref:s},l),o))};function JA(e){return"string"==typeof e&&String(Number(e))===e?(Vh(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var ZA={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function eM(e,t){var n,r,o,i,a=e.prefixCls,l=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,g=e.rootClassName,m=e.rootStyle,b=e.zIndex,v=e.className,y=e.id,w=e.style,x=e.motion,S=e.width,k=e.height,C=e.children,E=e.contentWrapperStyle,O=e.mask,D=e.maskClosable,$=e.maskMotion,j=e.maskClassName,P=e.maskStyle,N=e.afterOpenChange,_=e.onClose,I=e.onMouseEnter,T=e.onMouseOver,F=e.onMouseLeave,R=e.onClick,A=e.onKeyDown,M=e.onKeyUp,L=e.styles,z=B.useRef(),H=B.useRef(),W=B.useRef();B.useImperativeHandle(t,(function(){return z.current}));B.useEffect((function(){var e;l&&f&&(null===(e=z.current)||void 0===e||e.focus({preventScroll:!0}))}),[l]);var U=mg(B.useState(!1),2),V=U[0],G=U[1],q=B.useContext(KA),X=null!==(n=null!==(r=null===(o=!1===u?{distance:0}:!0===u?{}:u||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==q?void 0:q.pushDistance)&&void 0!==n?n:180,K=B.useMemo((function(){return{pushDistance:X,push:function(){G(!0)},pull:function(){G(!1)}}}),[X]);B.useEffect((function(){var e,t;l?null==q||null===(e=q.push)||void 0===e||e.call(q):null==q||null===(t=q.pull)||void 0===t||t.call(q)}),[l]),B.useEffect((function(){return function(){var e;null==q||null===(e=q.pull)||void 0===e||e.call(q)}}),[]);var Y=O&&B.createElement(ex,Zp({key:"mask"},$,{visible:l}),(function(e,t){var n=e.className,r=e.style;return B.createElement("div",{className:Ym("".concat(a,"-mask"),n,null==h?void 0:h.mask,j),style:Mh(Mh(Mh({},r),P),null==L?void 0:L.mask),onClick:D&&l?_:void 0,ref:t})})),Q="function"==typeof x?x(s):x,J={};if(V&&X)switch(s){case"top":J.transform="translateY(".concat(X,"px)");break;case"bottom":J.transform="translateY(".concat(-X,"px)");break;case"left":J.transform="translateX(".concat(X,"px)");break;default:J.transform="translateX(".concat(-X,"px)")}"left"===s||"right"===s?J.width=JA(S):J.height=JA(k);var Z={onMouseEnter:I,onMouseOver:T,onMouseLeave:F,onClick:R,onKeyDown:A,onKeyUp:M},ee=B.createElement(ex,Zp({key:"panel"},Q,{visible:l,forceRender:d,onVisibleChanged:function(e){null==N||N(e)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return B.createElement("div",Zp({className:Ym("".concat(a,"-content-wrapper"),null==h?void 0:h.wrapper,r),style:Mh(Mh(Mh(Mh({},J),o),E),null==L?void 0:L.wrapper)},rS(e,{data:!0})),B.createElement(QA,Zp({id:y,containerRef:n,prefixCls:a,className:Ym(v,null==h?void 0:h.content),style:Mh(Mh({},w),null==L?void 0:L.content)},Z),C))})),te=Mh({},m);return b&&(te.zIndex=b),B.createElement(KA.Provider,{value:K},B.createElement("div",{className:Ym(a,"".concat(a,"-").concat(s),g,(i={},Ed(i,"".concat(a,"-open"),l),Ed(i,"".concat(a,"-inline"),c),i)),style:te,tabIndex:-1,ref:z,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case $S.TAB:var r;if(t===$S.TAB)if(n||document.activeElement!==W.current){if(n&&document.activeElement===H.current){var o;null===(o=W.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=H.current)||void 0===r||r.focus({preventScroll:!0});break;case $S.ESC:_&&p&&(e.stopPropagation(),_(e))}}},Y,B.createElement("div",{tabIndex:0,ref:H,style:ZA,"aria-hidden":"true","data-sentinel":"start"}),ee,B.createElement("div",{tabIndex:0,ref:W,style:ZA,"aria-hidden":"true","data-sentinel":"end"})))}var tM=B.forwardRef(eM),nM=function(e){var t=e.open,n=void 0!==t&&t,r=e.prefixCls,o=void 0===r?"rc-drawer":r,i=e.placement,a=void 0===i?"right":i,l=e.autoFocus,s=void 0===l||l,c=e.keyboard,u=void 0===c||c,d=e.width,f=void 0===d?378:d,p=e.mask,h=void 0===p||p,g=e.maskClosable,m=void 0===g||g,b=e.getContainer,v=e.forceRender,y=e.afterOpenChange,w=e.destroyOnClose,x=e.onMouseEnter,S=e.onMouseOver,k=e.onMouseLeave,C=e.onClick,E=e.onKeyDown,O=e.onKeyUp,D=e.panelRef,$=mg(B.useState(!1),2),j=$[0],P=$[1],N=mg(B.useState(!1),2),_=N[0],I=N[1];Ng((function(){I(!0)}),[]);var T=!!_&&n,F=B.useRef(),R=B.useRef();Ng((function(){T&&(R.current=document.activeElement)}),[T]);var A=B.useMemo((function(){return{panel:D}}),[D]);if(!v&&!j&&!T&&w)return null;var M={onMouseEnter:x,onMouseOver:S,onMouseLeave:k,onClick:C,onKeyDown:E,onKeyUp:O},L=Mh(Mh({},e),{},{open:T,prefixCls:o,placement:a,autoFocus:s,keyboard:u,width:f,mask:h,maskClosable:m,inline:!1===b,afterOpenChange:function(e){var t,n;(P(e),null==y||y(e),e||!R.current||null!==(t=F.current)&&void 0!==t&&t.contains(R.current))||(null===(n=R.current)||void 0===n||n.focus({preventScroll:!0}))},ref:F},M);return B.createElement(YA.Provider,{value:A},B.createElement(oE,{open:T||v||j,autoDestroy:!1,getContainer:b,autoLock:h&&(T||j)},B.createElement(tM,L)))};const rM=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,closeIcon:l,closable:s,onClose:c,headerStyle:u,drawerStyle:d,bodyStyle:f,footerStyle:p,children:h,classNames:g,styles:m}=e,{drawer:b}=B.useContext(Iy),v=B.useCallback((e=>B.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},e)),[c]),[y,w]=vE(s,l,v,void 0,!0),x=B.useMemo((()=>{var e,t;return o||y?B.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==b?void 0:b.styles)||void 0===e?void 0:e.header),u),null==m?void 0:m.header),className:Ym(`${r}-header`,{[`${r}-header-close-only`]:y&&!o&&!a},null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},B.createElement("div",{className:`${r}-header-title`},w,o&&B.createElement("div",{className:`${r}-title`},o)),a&&B.createElement("div",{className:`${r}-extra`},a)):null}),[y,w,a,u,r,o]),S=B.useMemo((()=>{var e,t;if(!i)return null;const n=`${r}-footer`;return B.createElement("div",{className:Ym(n,null===(e=null==b?void 0:b.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==b?void 0:b.styles)||void 0===t?void 0:t.footer),p),null==m?void 0:m.footer)},i)}),[i,p,r]);return B.createElement("div",{className:`${r}-wrapper-body`,style:d},x,B.createElement("div",{className:Ym(`${r}-body`,null==g?void 0:g.body,null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==b?void 0:b.styles)||void 0===n?void 0:n.body),f),null==m?void 0:m.body)},h),S)},oM=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},iM=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:l,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:p,marginSM:h,colorIcon:g,colorIconHover:m,colorText:b,fontWeightStrong:v,footerPaddingBlock:y,footerPaddingInline:w}=e,x=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[x]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${x}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${x}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${x}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${x}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${f} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:g,fontWeight:v,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${w}px`,borderTop:`${d}px ${f} ${p}`},"&-rtl":{direction:"rtl"}}}},aM=hw("Drawer",(e=>{const t=uw(e,{});return[iM(t),oM(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var lM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,l,s;const{rootClassName:c,width:u,height:d,size:f="default",mask:p=!0,push:h=sM,open:g,afterOpenChange:m,onClose:b,prefixCls:v,getContainer:y,style:w,className:x,visible:S,afterVisibleChange:k}=e,C=lM(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:E,getPrefixCls:O,direction:D,drawer:$}=B.useContext(Iy),j=O("drawer",v),[P,N]=aM(j),_=void 0===y&&E?()=>E(document.body):y,I=Ym({"no-mask":!p,[`${j}-rtl`]:"rtl"===D},c,N),T=B.useMemo((()=>null!=u?u:"large"===f?736:378),[u,f]),F=B.useMemo((()=>null!=d?d:"large"===f?736:378),[d,f]),R={motionName:jk(j,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},A=zO(),[M,L]=qS("Drawer",C.zIndex);return P(B.createElement(qk,null,B.createElement(AO,{status:!0,override:!0},B.createElement(HS.Provider,{value:L},B.createElement(nM,Object.assign({prefixCls:j,onClose:b,maskMotion:R,motion:e=>({motionName:jk(j,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{classNames:{mask:Ym(null===(t=C.classNames)||void 0===t?void 0:t.mask,null===(n=null==$?void 0:$.classNames)||void 0===n?void 0:n.mask),content:Ym(null===(r=C.classNames)||void 0===r?void 0:r.content,null===(o=null==$?void 0:$.classNames)||void 0===o?void 0:o.content)},styles:{mask:Object.assign(Object.assign({},null===(i=C.styles)||void 0===i?void 0:i.mask),null===(a=null==$?void 0:$.styles)||void 0===a?void 0:a.mask),content:Object.assign(Object.assign({},null===(l=C.styles)||void 0===l?void 0:l.content),null===(s=null==$?void 0:$.styles)||void 0===s?void 0:s.content)},open:null!=g?g:S,mask:p,push:h,width:T,height:F,style:Object.assign(Object.assign({},null==$?void 0:$.style),w),className:Ym(null==$?void 0:$.className,x),rootClassName:I,getContainer:_,afterOpenChange:null!=m?m:k,panelRef:A,zIndex:M}),B.createElement(rM,Object.assign({prefixCls:j},C,{onClose:b})))))))};cM._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=lM(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=B.useContext(Iy),l=a("drawer",t),[s,c]=aM(l),u=Ym(l,`${l}-pure`,`${l}-${o}`,c,r);return s(B.createElement("div",{className:u,style:n},B.createElement(rM,Object.assign({prefixCls:l},i))))};const uM=cM;function dM(e){return["small","middle","large"].includes(e)}function fM(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const pM=H.createContext({latestIndex:0}),hM=pM.Provider,gM=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=B.useContext(pM);return null==r?null:B.createElement(B.Fragment,null,B.createElement("div",{className:t,style:i},r),n{var n,r;const{getPrefixCls:o,space:i,direction:a}=B.useContext(Iy),{size:l=(null==i?void 0:i.size)||"small",align:s,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:p,split:h,style:g,wrap:m=!1,classNames:b,styles:v}=e,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;null!=e&&(I=t);const o=e&&e.key||`${_}-${t}`;return B.createElement(gM,{className:_,key:o,index:t,split:h,style:null!==(n=null==v?void 0:v.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),F=B.useMemo((()=>({latestIndex:I})),[I]);if(0===O.length)return null;const R={};return m&&(R.flexWrap="wrap"),!k&&E&&(R.columnGap=w),!S&&C&&(R.rowGap=x),j(B.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},R),null==i?void 0:i.style),g)},y),B.createElement(hM,{value:F},T)))})),bM=mM;bM.Compact=Kk;const vM=bM;function yM(e){const[t,n]=B.useState(e);return B.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const wM=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},xM=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),SM=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},kM=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},rw(e)),xM(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},SM(e,e.controlHeightSM)),"&-large":Object.assign({},SM(e,e.controlHeightLG))})}},CM=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},rw(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:gD,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},EM=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},OM=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},DM=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),$M=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:DM(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},jM=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:DM(e),[`@media (max-width: ${e.screenXSMax}px)`]:[$M(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:DM(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:DM(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:DM(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:DM(e)}}}},PM=(e,t)=>uw(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),NM=hw("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=PM(e,n);return[kM(r),CM(r),wM(r),EM(r),OM(r),jM(r),jD(r),gD]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3}),_M=[];function IM(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const TM=e=>{let{help:t,helpStatus:n,errors:r=_M,warnings:o=_M,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=B.useContext(FO),c=`${s}-item-explain`,[,u]=NM(s),d=B.useMemo((()=>$k(s)),[s]),f=yM(r),p=yM(o),h=B.useMemo((()=>null!=t?[IM(t,"help",n)]:[].concat(Rh(f.map(((e,t)=>IM(e,"error","error",t)))),Rh(p.map(((e,t)=>IM(e,"warning","warning",t)))))),[t,n,f,p]),g={};return a&&(g.id=`${a}_help`),B.createElement(ex,{motionDeadline:d.motionDeadline,motionName:`${s}-show-help`,visible:!!h.length,onVisibleChanged:l},(e=>{const{className:t,style:n}=e;return B.createElement("div",Object.assign({},g,{className:Ym(c,t,i,u),style:n,role:"alert"}),B.createElement(ux,Object.assign({keys:h},$k(s),{motionName:`${s}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return B.createElement("div",{key:t,className:Ym(o,{[`${c}-${r}`]:r}),style:i},n)})))}))},FM=["parentNode"],RM="form_item";function AM(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function MM(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return FM.includes(n)?`${RM}_${n}`:n}function LM(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function zM(e){return AM(e).join("_")}function BM(e){const[t]=CO(),n=B.useRef({}),r=B.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=zM(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=MM(AM(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(OS(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:a,left:l}of OS(e,DS(t))){const e=a-n.top+n.bottom,t=l-n.left+n.right;i.scroll({top:e,left:t,behavior:o})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=zM(e);return n.current[t]}})),[e,t]);return[r]}const HM=(e,t)=>{const n=B.useContext(My),{getPrefixCls:r,direction:o,form:i}=B.useContext(Iy),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:g,wrapperCol:m,hideRequiredMark:b,layout:v="horizontal",scrollToFirstError:y,requiredMark:w,onFinishFailed:x,name:S,style:k,feedbackIcons:C}=e,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ovoid 0!==w?w:i&&void 0!==i.requiredMark?i.requiredMark:!b),[b,w,i]),j=null!=f?f:null==i?void 0:i.colon,P=r("form",a),[N,_]=NM(P),I=Ym(P,`${P}-${v}`,{[`${P}-hide-required-mark`]:!1===$,[`${P}-rtl`]:"rtl"===o,[`${P}-${O}`]:O},_,null==i?void 0:i.className,l,s),[T]=BM(d),{__INTERNAL__:F}=T;F.name=S;const R=B.useMemo((()=>({name:S,labelAlign:p,labelCol:g,labelWrap:h,wrapperCol:m,vertical:"vertical"===v,colon:j,requiredMark:$,itemRef:F.itemRef,form:T,feedbackIcons:C})),[S,p,g,m,v,j,$,T,C]);B.useImperativeHandle(t,(()=>T));const A=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),T.scrollToField(t,n)}};return N(B.createElement(Ay,{disabled:u},B.createElement(By.Provider,{value:O},B.createElement(TO,{validateMessages:D},B.createElement(_O.Provider,{value:R},B.createElement(NO,Object.assign({id:S},E,{name:S,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void A(y,t);i&&void 0!==i.scrollToFirstError&&A(i.scrollToFirstError,t)}},form:T,style:Object.assign(Object.assign({},null==i?void 0:i.style),k),className:I})))))))},WM=B.forwardRef(HM);const UM=()=>{const{status:e,errors:t=[],warnings:n=[]}=B.useContext(RO);return{status:e,errors:t,warnings:n}};UM.Context=RO;const VM=UM;const GM=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},qM=gw(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=PM(e,n);return[GM(r)]})),XM=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,h=B.useContext(_O),g=r||h.wrapperCol||{},m=Ym(`${p}-control`,g.className),b=B.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const v=B.createElement("div",{className:`${p}-control-input`},B.createElement("div",{className:`${p}-control-input-content`},o)),y=B.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||i.length||a.length?B.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},B.createElement(FO.Provider,{value:y},B.createElement(TM,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&B.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id=`${u}_extra`);const S=s?B.createElement("div",Object.assign({},x,{className:`${p}-extra`}),s):null,k=l&&"pro_table_render"===l.mark&&l.render?l.render(e,{input:v,errorList:w,extra:S}):B.createElement(B.Fragment,null,v,w,S);return B.createElement(_O.Provider,{value:b},B.createElement(pR,Object.assign({},g,{className:m}),k),B.createElement(qM,{prefixCls:t}))};const KM={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var YM=function(e,t){return B.createElement(Mx,Zp({},e,{ref:t,icon:KM}))};const QM=B.forwardRef(YM);const JM=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c}=e;var u;const[d]=Iv("Form"),{vertical:f,labelAlign:p,labelCol:h,labelWrap:g,colon:m}=B.useContext(_O);if(!n)return null;const b=o||h||{},v=`${t}-item-label`,y=Ym(v,"left"===(i||p)&&`${v}-left`,b.className,{[`${v}-wrap`]:!!g});let w=n;const x=!0===a||!1!==m&&!1!==a;x&&!f&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const S=function(e){return e?"object"!=typeof e||B.isValidElement(e)?{title:e}:e:null}(c);if(S){const{icon:e=B.createElement(QM,null)}=S,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var e;let t;if(o){const i=!0!==o&&o.icons||u,a=d&&(null===(e=null==i?void 0:i({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),l=d&&ZM[d];t=!1!==a&&l?B.createElement("span",{className:Ym(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||B.createElement(l,null)):null}const i={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return s&&(i.status=(null!=d?d:p)||"",i.isFormItemInput=f,i.hasFeedback=!!(null!=o?o:h),i.feedbackIcon=void 0!==o?i.feedbackIcon:g),i}),[d,o,s,f,p]);return B.createElement(RO.Provider,{value:m},t)}var tL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(C&&w.current){const e=getComputedStyle(w.current);D(parseInt(e.marginBottom,10))}}),[C,E]);const $=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return LM(e?x:c.errors,e?S:c.warnings,c,"",!!u,s)}(),j=Ym(v,n,r,{[`${v}-with-help`]:k||x.length||S.length,[`${v}-has-feedback`]:$&&u,[`${v}-has-success`]:"success"===$,[`${v}-has-warning`]:"warning"===$,[`${v}-has-error`]:"error"===$,[`${v}-is-validating`]:"validating"===$,[`${v}-hidden`]:d});return B.createElement("div",{className:j,style:o,ref:w},B.createElement(mR,Object.assign({className:`${v}-row`},iv(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),B.createElement(JM,Object.assign({htmlFor:p},e,{requiredMark:y,required:null!=h?h:g,prefixCls:t})),B.createElement(XM,Object.assign({},e,c,{errors:x,warnings:S,prefixCls:t,status:$,help:i,marginBottom:O,onErrorVisibleChanged:e=>{e||D(null)}}),B.createElement(IO.Provider,{value:m},B.createElement(eL,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:$},f)))),!!O&&B.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-O}}))}const rL=B.memo((e=>{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const oL=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:g}=e,{getPrefixCls:m}=B.useContext(Iy),{name:b}=B.useContext(_O),v=function(e){if("function"==typeof e)return e;const t=mb(e);return t.length<=1?t[0]:t}(s),y="function"==typeof v,w=B.useContext(IO),{validateTrigger:x}=B.useContext(xE),S=void 0!==p?p:x,k=!(null==t),C=m("form",i),[E,O]=NM(C);Sv();const D=B.useContext(SE),$=B.useRef(),[j,P]=function(e){const[t,n]=B.useState(e),r=B.useRef(null),o=B.useRef([]),i=B.useRef(!1);return B.useEffect((()=>(i.current=!1,()=>{i.current=!0,dv.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=dv((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[N,_]=Jy((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{P((n=>{const r=Object.assign({},n),o=[].concat(Rh(e.name.slice(0,-1)),Rh(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[T,F]=B.useMemo((()=>{const e=Rh(N.errors),t=Rh(N.warnings);return Object.values(j).forEach((n=>{e.push.apply(e,Rh(n.errors||[])),t.push.apply(t,Rh(n.warnings||[]))})),[e,t]}),[j,N.errors,N.warnings]),R=function(){const{itemRef:e}=B.useContext(_O),t=B.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=wb(e(n),o)),t.current.ref}}();function A(t,o,i){return n&&!h?B.createElement(eL,{prefixCls:C,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:T,warnings:F,noStyle:!0},t):B.createElement(nL,Object.assign({key:"row"},e,{className:Ym(r,O),prefixCls:C,fieldId:o,isRequired:i,errors:T,warnings:F,meta:N,onSubItemMetaChange:I}),t)}if(!k&&!y&&!o)return E(A(v));let M={};return"string"==typeof u?M.label=u:t&&(M.label=String(t)),d&&(M=Object.assign(Object.assign({},M),d)),E(B.createElement(bO,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:S,onMetaChange:e=>{const t=null==D?void 0:D.getKey(e.name);if(_(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==g&&w){let n=e.name;if(e.destroy)n=$.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(Rh(r)),$.current=n}w(e,n)}}}),((n,r,i)=>{const s=AM(t).length&&r?r.name:[],u=MM(s,b),d=void 0!==c?c:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),p=Object.assign({},n);let h=null;if(Array.isArray(v)&&k)h=v;else if(y&&(!a&&!o||k));else if(!o||y||k)if(oS(v)){const t=Object.assign(Object.assign({},v.props),p);if(t.id||(t.id=u),g||T.length>0||F.length>0||e.extra){const n=[];(g||T.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}T.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),Sb(v)&&(t.ref=R(s,v));new Set([].concat(Rh(AM(f)),Rh(AM(S)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),s=0;s{var{prefixCls:t,children:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({prefixCls:i,status:"error"})),[i]);return B.createElement(vO,Object.assign({},r),((e,t,r)=>B.createElement(FO.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const lL=WM;lL.Item=iL,lL.List=aL,lL.ErrorList=TM,lL.useForm=BM,lL.useFormInstance=function(){const{form:e}=B.useContext(_O);return e},lL.useWatch=PO,lL.Provider=TO,lL.create=()=>{};const sL=lL;let cL=null,uL=e=>e(),dL=[],fL={};function pL(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=fL,a=null!=e?e:yx().getPrefixCls("message"),l=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>l,duration:n,rtl:r,maxCount:o,top:i}}const hL=B.forwardRef(((e,t)=>{const[n,r]=B.useState(pL),[o,i]=ak(n),a=yx(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(pL)};return B.useEffect(u,[]),B.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),B.createElement(Sx,{prefixCls:l,iconPrefixCls:s,theme:c},i)}));function gL(){if(!cL){const e=document.createDocumentFragment(),t={fragment:e};return cL=t,void uL((()=>{vk(B.createElement(hL,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,gL())}))}}),e)}))}cL.instance&&(dL.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":uL((()=>{const t=cL.instance.open(Object.assign(Object.assign({},fL),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":uL((()=>{null==cL||cL.instance.destroy(e.key)}));break;default:uL((()=>{var n;const r=(n=cL.instance)[t].apply(n,Rh(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),dL=[])}const mL={open:function(e){const t=ZS((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return dL.push(r),()=>{n?uL((()=>{n()})):r.skipped=!0}}));return gL(),t},destroy:function(e){dL.push({type:"destroy",key:e}),gL()},config:function(e){fL=Object.assign(Object.assign({},fL),e),uL((()=>{var e;null===(e=null==cL?void 0:cL.sync)||void 0===e||e.call(cL)}))},useMessage:lk,_InternalPanelDoNotUseOrYouWillBeFired:JS};["success","info","warning","error","loading"].forEach((e=>{mL[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return dL.push(o),()=>{r?uL((()=>{r()})):o.skipped=!0}}));return gL(),n}(e,n)}}));const bL=mL;const vL=T$((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:s}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe(),CL=[],EL={};function OL(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=EL,a=null!=e?e:yx().getPrefixCls("notification"),l=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>l,rtl:n,maxCount:r,top:o,bottom:i}}const DL=B.forwardRef(((e,t)=>{const[n,r]=B.useState(OL),[o,i]=O$(n),a=yx(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(OL)};return B.useEffect(u,[]),B.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),B.createElement(Sx,{prefixCls:l,iconPrefixCls:s,theme:c},i)}));function $L(){if(!SL){const e=document.createDocumentFragment(),t={fragment:e};return SL=t,void kL((()=>{vk(B.createElement(DL,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,$L())}))}}),e)}))}SL.instance&&(CL.forEach((e=>{switch(e.type){case"open":kL((()=>{SL.instance.open(Object.assign(Object.assign({},EL),e.config))}));break;case"destroy":kL((()=>{null==SL||SL.instance.destroy(e.key)}))}})),CL=[])}function jL(e){CL.push({type:"open",config:e}),$L()}const PL={open:jL,destroy:function(e){CL.push({type:"destroy",key:e}),$L()},config:function(e){EL=Object.assign(Object.assign({},EL),e),kL((()=>{var e;null===(e=null==SL?void 0:SL.sync)||void 0===e||e.call(SL)}))},useNotification:D$,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:s=!0,closeIcon:c}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{NL[e]=t=>jL(Object.assign(Object.assign({},t),{type:e}))}));const _L=NL,IL=hw("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});const TL=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=B.createElement(Kx,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:h}=e,{getPrefixCls:g}=B.useContext(Iy),[m]=Iv("Popconfirm",Dv.Popconfirm),b=jN(o),v=jN(i);return B.createElement("div",{className:`${t}-inner-content`,onClick:h},B.createElement("div",{className:`${t}-message`},c&&B.createElement("span",{className:`${t}-message-icon`},c),B.createElement("div",{className:`${t}-message-text`},b&&B.createElement("div",{className:Ym(`${t}-title`)},b),v&&B.createElement("div",{className:`${t}-description`},v))),B.createElement("div",{className:`${t}-buttons`},u&&B.createElement(HC,Object.assign({onClick:p,size:"small"},r),null!=a?a:null==m?void 0:m.cancelText),B.createElement(UC,{buttonProps:Object.assign(Object.assign({size:"small"},eC(s)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},null!=l?l:null==m?void 0:m.okText)))},FL=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:l="primary",icon:s=B.createElement(Kx,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{m(e,!0),null==f||f(e),null==d||d(e,t)},v=h("popconfirm",o),y=Ym(v,u),[w]=IL(v);return w(B.createElement(c_,Object.assign({},iv(p,["title"]),{trigger:a,placement:i,onOpenChange:t=>{const{disabled:n=!1}=e;n||b(t)},open:g,ref:t,overlayClassName:y,content:B.createElement(TL,Object.assign({okType:l,icon:s},e,{prefixCls:v,close:e=>{b(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;b(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),lS(c,{onKeyDown:e=>{var t,n;B.isValidElement(c)&&(null===(n=null==c?void 0:(t=c.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===$S.ESC&&g&&b(!1,e)})(e)}})))}));RL._InternalPanelDoNotUseOrYouWillBeFired=FL;const AL=RL;var ML=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},LL=function(e){return void 0!==e?"".concat(e,"px"):void 0};function zL(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,l=e.onMotionEnd,s=e.direction,c=B.useRef(null),u=mg(B.useState(r),2),d=u[0],f=u[1],p=function(e){var r,i=o(e),a=null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[i];return(null==a?void 0:a.offsetParent)&&a},h=mg(B.useState(null),2),g=h[0],m=h[1],b=mg(B.useState(null),2),v=b[0],y=b[1];Ng((function(){if(d!==r){var e=p(d),t=p(r),n=ML(e),o=ML(t);f(r),m(n),y(o),e&&t?a():l()}}),[r]);var w=B.useMemo((function(){return LL("rtl"===s?-(null==g?void 0:g.right):null==g?void 0:g.left)}),[s,g]),x=B.useMemo((function(){return LL("rtl"===s?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[s,v]);return g&&v?B.createElement(ex,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){m(null),y(null),l()}},(function(e,n){var r=e.className,o=Mh(Mh({},e.style),{},{"--thumb-start-left":w,"--thumb-start-width":LL(null==g?void 0:g.width),"--thumb-active-left":x,"--thumb-active-width":LL(null==v?void 0:v.width)}),i={ref:wb(c,n),style:o,className:Ym("".concat(t,"-thumb"),r)};return B.createElement("div",i)})):null}var BL=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function HL(e){return e.map((function(e){if("object"===kd(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==kd(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Mh(Mh({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var WL=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,o=e.checked,i=e.label,a=e.title,l=e.value,s=e.onChange;return B.createElement("label",{className:Ym(n,Ed({},"".concat(t,"-item-disabled"),r))},B.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:o,onChange:function(e){r||s(e,l)}}),B.createElement("div",{className:"".concat(t,"-item-label"),title:a},i))},UL=B.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,l=e.options,s=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,f=e.className,p=void 0===f?"":f,h=e.motionName,g=void 0===h?"thumb-motion":h,m=Od(e,BL),b=B.useRef(null),v=B.useMemo((function(){return wb(b,t)}),[b,t]),y=B.useMemo((function(){return HL(l)}),[l]),w=mg(ew(null===(n=y[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),x=w[0],S=w[1],k=mg(B.useState(!1),2),C=k[0],E=k[1],O=function(e,t){s||(S(t),null==d||d(t))},D=iv(m,["children"]);return B.createElement("div",Zp({},D,{className:Ym(i,(r={},Ed(r,"".concat(i,"-rtl"),"rtl"===a),Ed(r,"".concat(i,"-disabled"),s),r),p),ref:v}),B.createElement("div",{className:"".concat(i,"-group")},B.createElement(zL,{prefixCls:i,value:x,containerRef:b,motionName:"".concat(i,"-").concat(g),direction:a,getValueIndex:function(e){return y.findIndex((function(t){return t.value===e}))},onMotionStart:function(){E(!0)},onMotionEnd:function(){E(!1)}}),y.map((function(e){return B.createElement(WL,Zp({},e,{key:e.value,prefixCls:i,className:Ym(e.className,"".concat(i,"-item"),Ed({},"".concat(i,"-item-selected"),e.value===x&&!C)),checked:e.value===x,onChange:O,disabled:!!s||!!e.disabled}))}))))}));function VL(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function GL(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}UL.displayName="Segmented",UL.defaultProps={options:[]};const qL=Object.assign({overflow:"hidden"},nw),XL=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rw(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},GL(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},qL),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},GL(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 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:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),VL(`&-disabled ${t}-item`,e)),VL(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},KL=hw("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=uw(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[XL(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}}));var YL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:l="middle",style:s}=e,c=YL(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:f}=B.useContext(Iy),p=u("segmented",n),[h,g]=KL(p),m=Lk(l),b=B.useMemo((()=>a.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=YL(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:B.createElement(B.Fragment,null,B.createElement("span",{className:`${p}-item-icon`},t),n&&B.createElement("span",null,n))})}return e}))),[a,p]),v=Ym(r,o,null==f?void 0:f.className,{[`${p}-block`]:i,[`${p}-sm`]:"small"===m,[`${p}-lg`]:"large"===m},g),y=Object.assign(Object.assign({},null==f?void 0:f.style),s);return h(B.createElement(UL,Object.assign({},c,{className:v,style:y,options:b,ref:t,prefixCls:p,direction:d})))}));var JL=B.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function ZL(e,t,n){return(e-t)/(n-t)}function ez(e,t,n,r){var o=ZL(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function tz(e,t){return Array.isArray(e)?e[t]:e}var nz=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],rz=B.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,l=e.onStartMove,s=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,f=Od(e,nz),p=B.useContext(JL),h=p.min,g=p.max,m=p.direction,b=p.disabled,v=p.keyboard,y=p.range,w=p.tabIndex,x=p.ariaLabelForHandle,S=p.ariaLabelledByForHandle,k=p.ariaValueTextFormatterForHandle,C=p.styles,E=p.classNames,O="".concat(o,"-handle"),D=function(e){b||l(e,a)},$=ez(m,i,h,g),j=B.createElement("div",Zp({ref:t,className:Ym(O,(n={},Ed(n,"".concat(O,"-").concat(a+1),y),Ed(n,"".concat(O,"-dragging"),u),n),E.handle),style:Mh(Mh(Mh({},$),s),C.handle),onMouseDown:D,onTouchStart:D,onKeyDown:function(e){if(!b&&v){var t=null;switch(e.which||e.keyCode){case $S.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case $S.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case $S.UP:t="ttb"!==m?1:-1;break;case $S.DOWN:t="ttb"!==m?-1:1;break;case $S.HOME:t="min";break;case $S.END:t="max";break;case $S.PAGE_UP:t=2;break;case $S.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,a))}},tabIndex:b?null:tz(w,a),role:"slider","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":tz(x,a),"aria-labelledby":tz(S,a),"aria-valuetext":null===(r=tz(k,a))||void 0===r?void 0:r(i),"aria-orientation":"ltr"===m||"rtl"===m?"horizontal":"vertical"},f));return c&&(j=c(j,{index:a,prefixCls:o,value:i,dragging:u})),j})),oz=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],iz=B.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,l=e.handleRender,s=e.draggingIndex,c=Od(e,oz),u=B.useRef({});return B.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),B.createElement(B.Fragment,null,a.map((function(e,t){return B.createElement(rz,Zp({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:s===t,prefixCls:n,style:tz(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:l},c))})))}));function az(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function lz(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=B.useContext(JL),l=a.min,s=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,f=a.included,p="".concat(t,"-text"),h=ez(c,o,l,s);return B.createElement("span",{className:Ym(p,Ed({},"".concat(p,"-active"),f&&u<=o&&o<=d)),style:Mh(Mh({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){i(o)}},r)}function sz(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?B.createElement("div",{className:o},n.map((function(e){var t=e.value,n=e.style,i=e.label;return B.createElement(lz,{key:t,prefixCls:o,style:n,value:t,onClick:r},i)}))):null}function cz(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=B.useContext(JL),a=i.min,l=i.max,s=i.direction,c=i.included,u=i.includedStart,d=i.includedEnd,f="".concat(t,"-dot"),p=c&&u<=n&&n<=d,h=Mh(Mh({},ez(s,n,a,l)),"function"==typeof r?r(n):r);return p&&(h=Mh(Mh({},h),"function"==typeof o?o(n):o)),B.createElement("span",{className:Ym(f,Ed({},"".concat(f,"-active"),p)),style:h})}function uz(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=B.useContext(JL),l=a.min,s=a.max,c=a.step,u=B.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==c)for(var t=l;t<=s;)e.add(t),t+=c;return Array.from(e)}),[l,s,c,r,n]);return B.createElement("div",{className:"".concat(t,"-step")},u.map((function(e){return B.createElement(cz,{prefixCls:t,key:e,value:e,style:o,activeStyle:i})})))}function dz(e){var t,n=e.prefixCls,r=e.style,o=e.start,i=e.end,a=e.index,l=e.onStartMove,s=e.replaceCls,c=B.useContext(JL),u=c.direction,d=c.min,f=c.max,p=c.disabled,h=c.range,g=c.classNames,m="".concat(n,"-track"),b=ZL(o,d,f),v=ZL(i,d,f),y=function(e){!p&&l&&l(e,-1)},w={};switch(u){case"rtl":w.right="".concat(100*b,"%"),w.width="".concat(100*v-100*b,"%");break;case"btt":w.bottom="".concat(100*b,"%"),w.height="".concat(100*v-100*b,"%");break;case"ttb":w.top="".concat(100*b,"%"),w.height="".concat(100*v-100*b,"%");break;default:w.left="".concat(100*b,"%"),w.width="".concat(100*v-100*b,"%")}var x=s||Ym(m,(Ed(t={},"".concat(m,"-").concat(a+1),null!==a&&h),Ed(t,"".concat(n,"-track-draggable"),l),t),g.track);return B.createElement("div",{className:x,style:Mh(Mh({},w),r),onMouseDown:y,onTouchStart:y})}function fz(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=B.useContext(JL),l=a.included,s=a.range,c=a.min,u=a.styles,d=a.classNames,f=B.useMemo((function(){if(!s){if(0===r.length)return[];var e=null!=o?o:c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],i=0;i=0&&_}),[_,oe]),ae=B.useMemo((function(){return Object.keys(V||{}).map((function(e){var t=V[e],n={value:Number(e)};return t&&"object"===kd(t)&&!B.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[V]),le=function(e,t,n,r,o,i){var a=B.useCallback((function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),Math.max(e,r)}),[e,t]),l=B.useCallback((function(r){if(null!==n){var o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},l=Math.max(i(n),i(t),i(e)),s=Number(o.toFixed(l));return e<=s&&s<=t?s:null}return null}),[n,e,t,a]),s=B.useCallback((function(o){var i=a(o),s=r.map((function(e){return e.value}));null!==n&&s.push(l(o)),s.push(e,t);var c=s[0],u=t-e;return s.forEach((function(e){var t=Math.abs(i-e);t<=u&&(c=e,u=t)})),c}),[e,t,r,n,a,l]),c=function o(i,a,s){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var u,d=i[s],f=d+a,p=[];r.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(l(d));var h=a>0?1:-1;"unit"===c?p.push(l(d+h*n)):p.push(l(f)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===c&&(p=p.filter((function(e){return e!==d})));var g="unit"===c?d:f;u=p[0];var m=Math.abs(u-g);if(p.forEach((function(e){var t=Math.abs(e-g);t1){var b=Rh(i);return b[s]=u,o(b,a-h,s,c)}return u}return"min"===a?e:"max"===a?t:void 0},u=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=c(e,t,n,r);return{value:i,changed:i!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(s),l=a[n],f=c(a,t,n,r);if(a[n]=f,!1===o){var p=i||0;n>0&&a[n-1]!==l&&(a[n]=Math.max(a[n],a[n-1]+p)),n0;b-=1)for(var v=!0;d(a[b]-a[b-1])&&v;){var y=u(a,-1,b-1);a[b-1]=y.value,v=y.changed}for(var w=a.length-1;w>0;w-=1)for(var x=!0;d(a[w]-a[w-1])&&x;){var S=u(a,-1,w-1);a[w-1]=S.value,x=S.changed}for(var k=0;k=0?E+1:2;for(n=n.slice(0,r);n.length=0&&Z.current.focus(e)}De(null)}),[Oe]);var $e=B.useMemo((function(){return(!I||null!==oe)&&I}),[I,oe]),je=function(e,t){ke(e,t),null==D||D(me(ge.current))},Pe=-1!==we;B.useEffect((function(){if(!Pe){var e=he.lastIndexOf(xe);Z.current.focus(e)}}),[Pe]);var Ne=B.useMemo((function(){return Rh(Se).sort((function(e,t){return e-t}))}),[Se]),_e=mg(B.useMemo((function(){return C?[Ne[0],Ne[Ne.length-1]]:[ne,Ne[0]]}),[Ne,C,ne]),2),Ie=_e[0],Te=_e[1];B.useImperativeHandle(t,(function(){return{focus:function(){Z.current.focus(0)},blur:function(){var e=document.activeElement;ee.current.contains(e)&&(null==e||e.blur())}}})),B.useEffect((function(){p&&Z.current.focus(0)}),[]);var Fe=B.useMemo((function(){return{min:ne,max:re,direction:te,disabled:u,keyboard:f,step:oe,included:A,includedStart:Ie,includedEnd:Te,range:C,tabIndex:K,ariaLabelForHandle:Y,ariaLabelledByForHandle:Q,ariaValueTextFormatterForHandle:J,styles:s||{},classNames:l||{}}}),[ne,re,te,u,f,oe,A,Ie,Te,C,K,Y,Q,J,s,l]);return B.createElement(JL.Provider,{value:Fe},B.createElement("div",{ref:ee,className:Ym(o,i,(n={},Ed(n,"".concat(o,"-disabled"),u),Ed(n,"".concat(o,"-vertical"),F),Ed(n,"".concat(o,"-horizontal"),!F),Ed(n,"".concat(o,"-with-marks"),ae.length),n)),style:a,onMouseDown:function(e){e.preventDefault();var t,n=ee.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,l=n.bottom,s=n.right,c=e.clientX,u=e.clientY;switch(te){case"btt":t=(l-u)/o;break;case"ttb":t=(u-a)/o;break;case"rtl":t=(s-c)/r;break;default:t=(c-i)/r}Ce(ce(ne+t*(re-ne)),e)}},B.createElement("div",{className:Ym("".concat(o,"-rail"),null==l?void 0:l.rail),style:Mh(Mh({},H),null==s?void 0:s.rail)}),B.createElement(fz,{prefixCls:o,style:L,values:Ne,startPoint:M,onStartMove:$e?je:null}),B.createElement(uz,{prefixCls:o,marks:ae,dots:G,style:W,activeStyle:U}),B.createElement(iz,{ref:Z,prefixCls:o,style:z,values:Se,draggingIndex:we,onStartMove:je,onOffsetChange:function(e,t){if(!u){var n=ue(he,e,t);null==D||D(me(he)),be(n.values),null==$||$(me(n.values)),De(n.value)}},onFocus:h,onBlur:g,handleRender:q}),B.createElement(sz,{prefixCls:o,marks:ae,onClick:Ce})))}));const hz=B.forwardRef(((e,t)=>{const{open:n}=e,r=B.useRef(null),o=B.useRef(null);function i(){dv.cancel(o.current),o.current=null}return B.useEffect((()=>(n?o.current=dv((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),o.current=null})):i(),i)),[n,e.title]),B.createElement(e_,Object.assign({ref:wb(r,t)},e))})),gz=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l}=e;return{[t]:Object.assign(Object.assign({},rw(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${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:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${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:`${e.handleLineWidth}px 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`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Zv(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},mz=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"width":"height",l=t?"height":"width",s=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart",u=(3*r-o)/2,d=(o-r)/2,f=t?{borderWidth:`${d}px 0`,transform:`translateY(-${d}px)`}:{borderWidth:`0 ${d}px`,transform:`translateX(-${d}px)`};return{[t?"paddingBlock":"paddingInline"]:r,[l]:3*r,[`${n}-rail`]:{[a]:"100%",[l]:r},[`${n}-track,${n}-tracks`]:{[l]:r},[`${n}-track-draggable`]:Object.assign({},f),[`${n}-handle`]:{[s]:u},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:3*r+(t?0:e.marginFull),[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[s]:(r-i)/2}}},bz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},mz(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},vz=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},mz(e,!1)),{height:"100%"})}},yz=hw("Slider",(e=>{const t=uw(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[gz(t),bz(t),vz(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));const wz=H.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{x((n=>Object.assign(Object.assign({},n),{[e]:t})))},k=(e,t)=>e||(t?"rtl"===h?"left":"right":"top"),C=m("slider",n),[E,O]=yz(C),D=Ym(o,null==g?void 0:g.className,i,{[`${C}-rtl`]:"rtl"===h},O);"rtl"!==h||p.vertical||(p.reverse=!p.reverse);const[$,j]=H.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),P=Object.assign(Object.assign({},null==g?void 0:g.style),a);return E(H.createElement(pz,Object.assign({},p,{step:p.step,range:$,draggableTrack:j,className:D,style:P,disabled:y,ref:t,prefixCls:C,handleRender:(t,n)=>{var r;const{index:o,dragging:i}=n,{tooltip:a={},vertical:l}=e,h=Object.assign({},a),{open:g,placement:v,getPopupContainer:y,prefixCls:x,formatter:E}=h,O=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(E,c),D=!!O&&(w[o]||i),$=null!==(r=null!=g?g:u)&&void 0!==r?r:void 0===g&&D,j=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>S(o,!0),onMouseLeave:()=>S(o,!1),onFocus:e=>{var t;S(o,!0),null===(t=p.onFocus)||void 0===t||t.call(p,e)},onBlur:e=>{var t;S(o,!1),null===(t=p.onBlur)||void 0===t||t.call(p,e)}});return H.createElement(hz,Object.assign({},h,{prefixCls:m("tooltip",null!=x?x:s),title:O?O(n.value):"",open:$,placement:k(null!=v?v:f,l),key:o,overlayClassName:`${C}-tooltip`,getPopupContainer:y||d||b}),H.cloneElement(t,j))}})))})),xz=wz;var Sz=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],kz=B.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,g=Od(e,Sz),m=mg(ew(!1,{value:a,defaultValue:l}),2),b=m[0],v=m[1];function y(e,t){var n=b;return s||(v(n=e),null==p||p(n,t)),n}var w=Ym(o,i,(Ed(n={},"".concat(o,"-checked"),b),Ed(n,"".concat(o,"-disabled"),s),n));return B.createElement("button",Zp({},g,{type:"button",role:"switch","aria-checked":b,disabled:s,className:w,ref:t,onKeyDown:function(e){e.which===$S.LEFT?y(!1,e):e.which===$S.RIGHT&&y(!0,e),null==h||h(e)},onClick:function(e){var t=y(!b,e);null==f||f(t,e)}}),c,B.createElement("span",{className:"".concat(o,"-inner")},B.createElement("span",{className:"".concat(o,"-inner-checked")},u),B.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))}));kz.displayName="Switch";const Cz=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l}=e,s=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${l+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${l+2*r}px + ${2*a}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:(l-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${l+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${l+2*r}px - ${2*a}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${l+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},Ez=e=>{const{componentCls:t,handleSize:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Oz=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:i,handleSize:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a/2,boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${a+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},Dz=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a}=e,l=`${t}-inner`;return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${a+2*r}px + ${2*i}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${a+2*r}px - ${2*i}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},$z=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},rw(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),lw(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"}})}},jz=hw("Switch",(e=>{const t=uw(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$z(t),Dz(t),Oz(t),Ez(t),Cz(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,s=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new Zv("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}}));const Pz=B.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return uw(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Tz=e=>({defaultBg:new Zv(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Fz=hw("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},rw(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${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:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-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}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(Iz(e))),Tz);const Rz=B.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{null==a||a(!i),null==l||l(e)}})))})),Az=Rz,Mz=gw(["Tag","preset"],(e=>(e=>mw(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(Iz(e))),Tz);const Lz=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},zz=gw(["Tag","status"],(e=>{const t=Iz(e);return[Lz(t,"success","Success"),Lz(t,"processing","Info"),Lz(t,"error","Error"),Lz(t,"warning","Warning")]}),Tz);const Bz=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"visible"in p&&v(p.visible)}),[p.visible]);const y=YN(s),w=function(e){return KN.includes(e)}(s),x=y||w,S=Object.assign(Object.assign({backgroundColor:s&&!x?s:void 0},null==m?void 0:m.style),i),k=h("tag",n),[C,E]=Fz(k),O=Ym(k,null==m?void 0:m.className,{[`${k}-${s}`]:x,[`${k}-has-color`]:s&&!x,[`${k}-hidden`]:!b,[`${k}-rtl`]:"rtl"===g,[`${k}-borderless`]:!f},r,o,E),D=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||v(!1)},[,$]=vE(d,u,(e=>null===e?B.createElement(Gx,{className:`${k}-close-icon`,onClick:D}):B.createElement("span",{className:`${k}-close-icon`,onClick:D},e)),null,!1),j="function"==typeof p.onClick||a&&"a"===a.type,P=l||null,N=P?B.createElement(B.Fragment,null,P,a&&B.createElement("span",null,a)):a,_=B.createElement("span",Object.assign({},p,{ref:t,className:O,style:S}),N,$,y&&B.createElement(Mz,{key:"preset",prefixCls:k}),w&&B.createElement(zz,{key:"status",prefixCls:k}));return C(j?B.createElement(Mk,{component:"Tag"},_):_)},Hz=B.forwardRef(Bz);Hz.CheckableTag=Az;const Wz=Hz;const Uz=(e,t)=>{const n=null!=t?t:$y(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),Dy(r)),{controlHeight:o}),vy(Object.assign(Object.assign({},n),{controlHeight:o})))},Vz=(e,t)=>new Zv(e).setAlpha(t).toRgbString(),Gz=(e,t)=>new Zv(e).lighten(t).toHexString(),qz=e=>{const t=py(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Xz=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Vz(r,.85),colorTextSecondary:Vz(r,.65),colorTextTertiary:Vz(r,.45),colorTextQuaternary:Vz(r,.25),colorFill:Vz(r,.18),colorFillSecondary:Vz(r,.12),colorFillTertiary:Vz(r,.08),colorFillQuaternary:Vz(r,.04),colorBgElevated:Gz(n,12),colorBgContainer:Gz(n,8),colorBgLayout:Gz(n,0),colorBgSpotlight:Gz(n,26),colorBgBlur:Vz(r,.04),colorBorder:Gz(n,26),colorBorderSecondary:Gz(n,19)}},Kz=(e,t)=>{const n=Object.keys(yy).map((t=>{const n=py(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:$y(e);return Object.assign(Object.assign(Object.assign({},r),n),xy(e,{generateColorPalettes:qz,generateNeutralColorPalettes:Xz}))};const Yz={defaultConfig:Py,defaultSeed:Py.token,useToken:function(){const[e,t,n]=Yy();return{theme:e,token:t,hashId:n}},defaultAlgorithm:$y,darkAlgorithm:Kz,compactAlgorithm:Uz,getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?xg(e.algorithm):xg($y),n=Object.assign(Object.assign({},wy),null==e?void 0:e.token);return Hg(n,{override:null==e?void 0:e.token},t,qy)}};var Qz=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r0&&(o=o.replace(/^[\/]+/,"")),o=r0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}var SU=function(e){var t=e.pkg,n=e.version,r=void 0===n?"latest":n,o=e.path;return"unpkg"===e.proxy?xU("https://unpkg.com","".concat(t,"@").concat(r),o):xU("https://registry.npmmirror.com",t,r,"files",o)},kU=B.createContext(null),CU=function(e){var t=e.pkg,n=e.version,r=e.path;return SU({path:r,pkg:t,proxy:"aliyun",version:n})},EU=function(){var e=B.useContext(kU);return e?"custom"!==(null==e?void 0:e.proxy)?function(t){var n=t.pkg,r=t.version,o=t.path;return SU({path:o,pkg:n,proxy:e.proxy,version:r})}:(null==e?void 0:e.customCdnFn)||CU:CU};function OU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DU(e){for(var t=1;t=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,c=a):o>=3&&o<4?(s=a,c=i):o>=4&&o<5?(l=a,c=i):o>=5&&o<6&&(l=i,c=a);var u=n-i/2;return r(l+u,s+u,c+u)}var WU={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var UU=/^#[a-fA-F0-9]{6}$/,VU=/^#[a-fA-F0-9]{8}$/,GU=/^#[a-fA-F0-9]{3}$/,qU=/^#[a-fA-F0-9]{4}$/,XU=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,KU=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,YU=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,QU=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function JU(e){if("string"!=typeof e)throw new LU(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return WU[t]?"#"+WU[t]:e}(e);if(t.match(UU))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(VU)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(GU))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(qU)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=XU.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=KU.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=YU.exec(t);if(a){var l="rgb("+HU(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=XU.exec(l);if(!s)throw new LU(4,t,l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=QU.exec(t.substring(0,50));if(c){var u="rgb("+HU(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=XU.exec(u);if(!d)throw new LU(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new LU(5)}function ZU(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),l=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s=i-a,c=l>.5?s/(2-i-a):s/(i+a);switch(i){case n:t=(r-o)/s+(r=1?iV(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?iV(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new LU(7)}var lV=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},sV=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},cV=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},uV=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function dV(e){if("object"!=typeof e)throw new LU(8);if(sV(e))return aV(e);if(lV(e))return iV(e);if(uV(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?oV(e,t,n):"rgba("+HU(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?oV(e.hue,e.saturation,e.lightness):"rgba("+HU(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new LU(2)}(e);if(cV(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return oV(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return oV(e.hue,e.saturation,e.lightness);throw new LU(1)}(e);throw new LU(8)}function fV(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):fV(e,t,r)}}function pV(e){return fV(e,e.length,[])}function hV(e,t){if("transparent"===t)return t;var n=ZU(t);return dV(Zp({},n,{hue:n.hue+parseFloat(e)}))}var gV=pV(hV);function mV(e){if("transparent"===e)return 0;var t=JU(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],i=n[2];return parseFloat((.2126*r+.7152*o+.0722*i).toFixed(3))}function bV(e,t){if("transparent"===t)return t;var n,r,o,i=ZU(t);return dV(Zp({},i,{lightness:(n=0,r=1,o=i.lightness+parseFloat(e),Math.max(n,Math.min(r,o)))}))}var vV,yV=pV(bV),wV="#000",xV="#fff";function SV(e,t,n,r){void 0===t&&(t=wV),void 0===n&&(n=xV),void 0===r&&(r=!0);var o,i,a,l=mV(e)>.179,s=l?t:n;return!r||(o=s,i=mV(e),a=mV(o),parseFloat((i>a?(i+.05)/(a+.05):(a+.05)/(i+.05)).toFixed(2))>=4.5)?s:l?wV:xV}var kV=HB((function(e,t){var n=e.css,r=e.token,o=e.prefixCls,i=t.background,a=t.size,l=t.isEmoji,s=null!=i?i:r.colorBgContainer,c=SV(s);return{avatar:n(vV||(vV=gf(["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n background: ",";\n border: 1px solid ",";\n\n > .","-avatar-string {\n font-size: ","px;\n font-weight: 700;\n line-height: 1 !important;\n color: ",";\n }\n\n > * {\n cursor: pointer;\n }\n "])),s,i?"transparent":r.colorSplit,o,a*(l?.7:.5),c)}})),CV=["className","avatar","title","animation","size","shape","background","style"];function EV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OV(e){for(var t=1;t0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var jV=function(e){return"function"==typeof e};function PV(e,t){if(e===t)return!0;for(var n=0;n-1},vG=function(e,t){var n=this.__data__,r=pG(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function yG(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tl))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new Vq:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},PX=KV,NX=jX,_X=YV,IX={};IX["[object Float32Array]"]=IX["[object Float64Array]"]=IX["[object Int8Array]"]=IX["[object Int16Array]"]=IX["[object Int32Array]"]=IX["[object Uint8Array]"]=IX["[object Uint8ClampedArray]"]=IX["[object Uint16Array]"]=IX["[object Uint32Array]"]=!0,IX["[object Arguments]"]=IX["[object Array]"]=IX["[object ArrayBuffer]"]=IX["[object Boolean]"]=IX["[object DataView]"]=IX["[object Date]"]=IX["[object Error]"]=IX["[object Function]"]=IX["[object Map]"]=IX["[object Number]"]=IX["[object Object]"]=IX["[object RegExp]"]=IX["[object Set]"]=IX["[object String]"]=IX["[object WeakMap]"]=!1;var TX=function(e){return _X(e)&&NX(e.length)&&!!IX[PX(e)]};var FX=function(e){return function(t){return e(t)}},RX={exports:{}};!function(e,t){var n=TV,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(GY){}}();e.exports=a}(RX,RX.exports);var AX=RX.exports,MX=TX,LX=FX,zX=AX&&AX.isTypedArray,BX=zX?LX(zX):MX,HX=gX,WX=kX,UX=iX,VX=OX,GX=$X,qX=BX,XX=Object.prototype.hasOwnProperty;var KX=function(e,t){var n=UX(e),r=!n&&WX(e),o=!n&&!r&&VX(e),i=!n&&!r&&!o&&qX(e),a=n||r||o||i,l=a?HX(e.length,String):[],s=l.length;for(var c in e)!t&&!XX.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||GX(c,s))||l.push(c);return l},YX=Object.prototype;var QX=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||YX)};var JX=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ZX=QX,eK=JX,tK=Object.prototype.hasOwnProperty;var nK=function(e){if(!ZX(e))return eK(e);var t=[];for(var n in Object(e))tK.call(e,n)&&"constructor"!=n&&t.push(n);return t},rK=jG,oK=jX;var iK=KX,aK=nK,lK=function(e){return null!=e&&oK(e.length)&&!rK(e)};var sK=function(e){return lK(e)?iK(e):aK(e)},cK=sX,uK=hX,dK=sK;var fK=function(e){return cK(e,dK,uK)},pK=fK,hK=Object.prototype.hasOwnProperty;var gK=function(e,t,n,r,o,i){var a=1&n,l=pK(e),s=l.length;if(s!=pK(t).length&&!a)return!1;for(var c=s;c--;){var u=l[c];if(!(a?u in t:hK.call(t,u)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c .","-menu-item-only-child, .","-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .","-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .","-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .","-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .","-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .","-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .","-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),i,i,n.colorText,n.colorFill,i,i,n.colorText,i,n.colorFillSecondary,i,n.borderRadius,n.colorText,n.colorFillSecondary,i,n.colorFillSecondary,n.borderRadius,i,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),dY=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];function fY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pY(e){for(var t=1;t{if((e=function(e){return"/dev/"+e}(e))in NY)return;NY[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(n)for(let n=r.length-1;n>=0;n--){const o=r[n];if(o.href===e&&(!t||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${e}"]${o}`))return;const i=document.createElement("link");return i.rel=t?"stylesheet":"modulepreload",t||(i.as="script",i.crossOrigin=""),i.href=e,document.head.appendChild(i),t?new Promise(((t,n)=>{i.addEventListener("load",t),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))}((()=>import("./onig.js")),__vite__mapDeps([])).then((e=>({data:e.default})))),_Y}var TY={};var FY=Object.defineProperty,RY=(e,t,n)=>(((e,t,n)=>{t in e?FY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let AY=null;class MY{constructor(e){RY(this,"utf16Length"),RY(this,"utf8Length"),RY(this,"utf16Value"),RY(this,"utf8Value"),RY(this,"utf16OffsetToUtf8"),RY(this,"utf8OffsetToUtf16");const t=e.length,n=MY._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);const i=r?new Uint32Array(n+1):null;r&&(i[n]=t);const a=new Uint8Array(n);let l=0;for(let s=0;s=55296&&n<=56319&&s+1=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?i[l+0]=s:c<=2047?(i[l+0]=s,i[l+1]=s):c<=65535?(i[l+0]=s,i[l+1]=s,i[l+2]=s):(i[l+0]=s,i[l+1]=s,i[l+2]=s,i[l+3]=s)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(1984&c)>>>6,a[l++]=128|(63&c)>>>0):c<=65535?(a[l++]=224|(61440&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0):(a[l++]=240|(1835008&c)>>>18,a[l++]=128|(258048&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n=55296&&o<=56319&&n+1=56320&&t<=57343&&(i=65536+(o-55296<<10)|t-56320,a=!0)}t+=i<=127?1:i<=2047?2:i<=65535?3:4,a&&n++}return t}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}const LY=class e{constructor(t){if(RY(this,"id",++e.LAST_ID),RY(this,"_onigBinding"),RY(this,"content"),RY(this,"utf16Length"),RY(this,"utf8Length"),RY(this,"utf16OffsetToUtf8"),RY(this,"utf8OffsetToUtf16"),RY(this,"ptr"),!AY)throw new Error("Must invoke loadWasm first.");this._onigBinding=AY,this.content=t;const n=new MY(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=AY._omalloc(1e4)),e._sharedPtrInUse=!0,AY.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(AY)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}};RY(LY,"LAST_ID",0),RY(LY,"_sharedPtr",0),RY(LY,"_sharedPtrInUse",!1);let zY=LY;class BY{constructor(e){if(RY(this,"_onigBinding"),RY(this,"_ptr"),!AY)throw new Error("Must invoke loadWasm first.");const t=[],n=[];for(let a=0,l=e.length;a>>16),o(t.buffer),1}catch(GY){}}const a={emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:function(e,t,n){r.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){const t=r.length,n=2147483648;if((e>>>=0)>n)return!1;for(let r=1;r<=4;r*=2){let l=t*(1+.2/r);if(l=Math.min(l,e+100663296),i(Math.min(n,(o=Math.max(e,l))+((a=65536)-o%a)%a)))return!0}var o,a;return!1},fd_write:()=>0};return await async function(){const n={env:a,wasi_snapshot_preview1:a},r=await e.instantiateWasm(n);return function(n){const r=n.exports;e.asm=r,t=e.asm.memory,o(t.buffer)}(r),r}(),e._omalloc=function(){return(e._omalloc=e.asm.omalloc).apply(null,arguments)},e._ofree=function(){return(e._ofree=e.asm.ofree).apply(null,arguments)},e._getLastOnigError=function(){return(e._getLastOnigError=e.asm.getLastOnigError).apply(null,arguments)},e._createOnigScanner=function(){return(e._createOnigScanner=e.asm.createOnigScanner).apply(null,arguments)},e._freeOnigScanner=function(){return(e._freeOnigScanner=e.asm.freeOnigScanner).apply(null,arguments)},e._findNextOnigScannerMatch=function(){return(e._findNextOnigScannerMatch=e.asm.findNextOnigScannerMatch).apply(null,arguments)},e._findNextOnigScannerMatchDbg=function(){return(e._findNextOnigScannerMatchDbg=e.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},e}({print:t,instantiateWasm:t=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>e.instance||e))}})}let WY=!1,UY=null;function VY(e){if(WY)return UY;let t,n;if(WY=!0,"function"==typeof e)t=e;else if(function(e){return"function"==typeof e.instantiator}(e))t=e.instantiator,n=e.print;else{let r;!function(e){return void 0!==e.data}(e)?r=e:(r=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(r)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}return UY=HY(t,n),UY}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var GY,qY,XY={exports:{}};XY.exports=(GY={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!TY.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},442:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyStateStackDiff=t.diffStateStacksRefEq=void 0;const r=n(391);t.diffStateStacksRefEq=function(e,t){let n=0;const r=[];let o=e,i=t;for(;o!==i;)o&&(!i||o.depth>=i.depth)?(n++,o=o.parent):(r.push(i.toStateStackFrame()),i=i.parent);return{pops:n,newFrames:r.reverse()}},t.applyStateStackDiff=function(e,t){let n=e;for(let r=0;r{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){const t=n.getLanguageId(e),r=n.getTokenType(e),o=n.getFontStyle(e),i=n.getForeground(e),a=n.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:o,foreground:i,background:a})},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,o,i,a,l){let s=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,d=n.getFontStyle(e),f=n.getForeground(e),p=n.getBackground(e);return 0!==t&&(s=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==i&&(d=i),0!==a&&(f=a),0!==l&&(p=l),(s<<0|c<<8|u<<10|d<<11|f<<15|p<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class i{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new o(t,n)})),this._defaultAttributes=new o(e,8),this._embeddedLanguagesMatcher=new a(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(i.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=i,i._NULL_SCOPE_METADATA=new o(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class a{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStackImpl=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const r=n(350),o=n(36),i=n(736),a=n(44),l=n(792),s=n(583),c=n(878),u=n(996),d=n(47);function f(e,t,n,r,o){const a=i.createMatchers(t,p),s=l.RuleFactory.getCompiledRuleId(n,r,o.repository);for(const i of a)e.push({debugSelector:t,matcher:i.matcher,ruleId:s,grammar:o,priority:i.priority})}function p(e,t){if(t.length{for(let r=n;rn&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,r,o,i,a,l){return new g(e,t,n,r,o,i,a,l)};class g{constructor(e,t,n,r,o,a,l,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=m(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const c of Object.keys(o)){const e=i.createMatchers(c,p);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:o[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const r=n.injections;if(r)for(let t in r)f(e,t,r[t],this,n);const o=this._grammarRepository.injections(t);o&&o.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&f(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),r.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(` - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(l.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[l.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=m(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let i;if(-1===this._rootId&&(this._rootId=l.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==v.NULL)i=!1,t.reset();else{i=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=o.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null);let l;l=a?b.createRootAndLookUpScopeName(a,r,this):b.createRoot("unknown",r),t=new v(null,this._rootId,-1,-1,!1,null,l,l)}e+="\n";const s=this.createOnigString(e),c=s.content.length,u=new y(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=d._tokenizeString(this,s,i,0,t,u,!0,r);return a.disposeOnigString(s),{lineLength:c,lineTokens:u,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}}function m(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(e,t){let n=e,r=(null==e?void 0:e.scopePath)??null;for(const o of t)r=s.ScopeStack.push(r,o.scopeNames),n=new b(n,r,o.encodedTokenAttributes);return n}static createRoot(e,t){return new b(null,new s.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new s.ScopeStack(null,e),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(t,r,i);return new b(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return b.equals(this,e)}static equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),o.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const o of n)r=b._pushAttributed(r,o,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),o=e.scopePath.push(t),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(e.tokenAttributes,r,i);return new b(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var t;const n=[];let r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined((null==(t=r.parent)?void 0:t.scopePath)??null)}),r=r.parent;return r===e?n.reverse():void 0}}t.AttributedScopeStack=b;class v{constructor(e,t,n,r,o,i,a,l){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&v._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&b.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){v._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,i,a){return new v(this,e,t,n,r,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,r;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${null==(n=this.nameScopesList)?void 0:n.toString()}, ${null==(r=this.contentNameScopesList)?void 0:r.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new v(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n;return{ruleId:l.ruleIdToNumber(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(null==(t=this.nameScopesList)?void 0:t.getExtensionIfDefined((null==(e=this.parent)?void 0:e.nameScopesList)??null))??[],contentNameScopesList:(null==(n=this.contentNameScopesList)?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=b.fromExtension((null==e?void 0:e.nameScopesList)??null,t.nameScopesList);return new v(e,l.ruleIdFromNumber(t.ruleId),t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,b.fromExtension(n,t.contentNameScopesList))}}t.StateStackImpl=v,v.NULL=new v(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):i.createMatchers(e,p).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>i.createMatchers(e,p).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class y{constructor(e,t,n,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,r.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=(null==e?void 0:e.tokenAttributes)??0,a=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const t=(null==e?void 0:e.getScopeNames())??[];for(const e of this._tokenTypeOverrides)e.matcher(t)&&(i=o.EncodedTokenAttributes.set(i,0,o.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(t))}if(a&&(i=o.EncodedTokenAttributes.set(i,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i)return void(this._lastTokenEndIndex=t);if(r.DebugFlags.InDebugMode){const n=(null==e?void 0:e.getScopeNames())??[];console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const r=n(878);class o{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=o;class i{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=i;class a{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function l(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const a=n.lookup(t);e instanceof o?c({baseGrammar:a,selfGrammar:i},r):s(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);const l=n.injections(e.scopeName);if(l)for(const s of l)r.add(new o(s))}function s(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const a of e){if(n.visitedRule.has(a))continue;n.visitedRule.add(a);const e=a.repository?r.mergeObjects({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&u(a.patterns,{...t,repository:e},n);const l=a.include;if(!l)continue;const d=m(l);switch(d.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:s(d.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const o={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===d.kind?s(d.ruleName,o,n):c(o,n)}else 4===d.kind?n.add(new i(d.scopeName,d.ruleName)):n.add(new o(d.scopeName))}}}t.ExternalReferenceCollector=a,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new o(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new a;for(const n of e)l(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof o){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class d{constructor(){this.kind=0}}t.BaseReference=d;class f{constructor(){this.kind=1}}t.SelfReference=f;class p{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=p;class h{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=h;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function m(e){if("$base"===e)return new d;if("$self"===e)return new f;const t=e.indexOf("#");if(-1===t)return new h(e);if(0===t)return new p(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new g(n,r)}}t.TopLevelRepositoryReference=g,t.parseInclude=m},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const r=n(350),o=n(44),i=n(792),a=n(878);class l{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function s(e,t,n,o,s,d,p,h){const g=t.content.length;let m=!1,b=-1;if(p){const a=function(e,t,n,o,a,l){let s=a.beginRuleCapturedEOL?0:-1;const c=[];for(let r=a;r;r=r.pop()){const t=r.getRule(e);t instanceof i.BeginWhileRule&&c.push({rule:t,stack:r})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:c,findOptions:p}=u(d.rule,e,d.stack.endRule,n,o===s),h=c.findNextMatchSync(t,o,p);if(r.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(c.toString())),!h){r.DebugFlags.InDebugMode&&console.log(" popping "+d.rule.debugName+" - "+d.rule.debugWhileRegExp),a=d.stack.pop();break}if(h.ruleId!==i.whileRuleId){a=d.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(l.produce(d.stack,h.captureIndices[0].start),f(e,t,n,d.stack,l,d.rule.whileCaptures,h.captureIndices),l.produce(d.stack,h.captureIndices[0].end),s=h.captureIndices[0].end,h.captureIndices[0].end>o&&(o=h.captureIndices[0].end,n=!1))}return{stack:a,linePos:o,anchorPosition:s,isFirstLine:n}}(e,t,n,o,s,d);s=a.stack,o=a.linePos,n=a.isFirstLine,b=a.anchorPosition}const v=Date.now();for(;!m;){if(0!==h&&Date.now()-v>h)return new l(s,!0);y()}return new l(s,!1);function y(){r.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${o}: |${t.content.substr(o).replace(/\n$/,"\\n")}|`));const l=function(e,t,n,o,i,l){const s=function(e,t,n,o,i,l){const s=i.getRule(e),{ruleScanner:u,findOptions:d}=c(s,e,i.endRule,n,o===l);let f=0;r.DebugFlags.InDebugMode&&(f=a.performanceNow());const p=u.findNextMatchSync(t,o,d);if(r.DebugFlags.InDebugMode){const e=a.performanceNow()-f;e>5&&console.warn(`Rule ${s.debugName} (${s.id}) matching took ${e} against '${t}'`),console.log(` scanning for (linePos: ${o}, anchorPosition: ${l})`),console.log(u.toString()),p&&console.log(`matched rule id: ${p.ruleId} from ${p.captureIndices[0].start} to ${p.captureIndices[0].end}`)}return p?{captureIndices:p.captureIndices,matchedRuleId:p.ruleId}:null}(e,t,n,o,i,l),u=e.getInjections();if(0===u.length)return s;const d=function(e,t,n,o,i,a,l){let s,u=Number.MAX_VALUE,d=null,f=0;const p=a.contentNameScopesList.getScopeNames();for(let h=0,g=e.length;h=u)&&(u=y,d=v.captureIndices,s=v.ruleId,f=a.priority,u===i))break}return d?{priorityMatch:-1===f,captureIndices:d,matchedRuleId:s}:null}(u,e,t,n,o,i,l);if(!d)return s;if(!s)return d;const f=s.captureIndices[0].start,p=d.captureIndices[0].start;return p0)&&u[0].end>o;if(p===i.endRuleId){const i=s.getRule(e);r.DebugFlags.InDebugMode&&console.log(" popping "+i.debugName+" - "+i.debugEndRegExp),d.produce(s,u[0].start),s=s.withContentNameScopesList(s.nameScopesList),f(e,t,n,s,d,i.endCaptures,u),d.produce(s,u[0].end);const a=s;if(s=s.parent,b=a.getAnchorPos(),!h&&a.getEnterPos()===o)return r.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),s=a,d.produce(s,g),void(m=!0)}else{const a=e.getRule(p);d.produce(s,u[0].start);const l=s,c=a.getName(t.content,u),v=s.contentNameScopesList.pushAttributed(c,e);if(s=s.push(p,o,b,u[0].end===g,null,v,v),a instanceof i.BeginEndRule){const o=a;r.DebugFlags.InDebugMode&&console.log(" pushing "+o.debugName+" - "+o.debugBeginRegExp),f(e,t,n,s,d,o.beginCaptures,u),d.produce(s,u[0].end),b=u[0].end;const i=o.getContentName(t.content,u),c=v.pushAttributed(i,e);if(s=s.withContentNameScopesList(c),o.endHasBackReferences&&(s=s.withEndRule(o.getEndWithResolvedBackReferences(t.content,u))),!h&&l.hasSameRuleAs(s))return r.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),s=s.pop(),d.produce(s,g),void(m=!0)}else if(a instanceof i.BeginWhileRule){const o=a;r.DebugFlags.InDebugMode&&console.log(" pushing "+o.debugName),f(e,t,n,s,d,o.beginCaptures,u),d.produce(s,u[0].end),b=u[0].end;const i=o.getContentName(t.content,u),c=v.pushAttributed(i,e);if(s=s.withContentNameScopesList(c),o.whileHasBackReferences&&(s=s.withEndRule(o.getWhileWithResolvedBackReferences(t.content,u))),!h&&l.hasSameRuleAs(s))return r.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),s=s.pop(),d.produce(s,g),void(m=!0)}else{const o=a;if(r.DebugFlags.InDebugMode&&console.log(" matched "+o.debugName+" - "+o.debugMatchRegExp),f(e,t,n,s,d,o.captures,u),d.produce(s,u[0].end),s=s.pop(),!h)return r.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),s=s.safePop(),d.produce(s,g),void(m=!0)}}u[0].end>o&&(o=u[0].end,n=!1)}}function c(e,t,n,o,i){return r.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:d(o,i)}:{ruleScanner:e.compileAG(t,n,o,i),findOptions:0}}function u(e,t,n,o,i){return r.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:d(o,i)}:{ruleScanner:e.compileWhileAG(t,n,o,i),findOptions:0}}function d(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function f(e,t,n,r,i,a,l){if(0===a.length)return;const c=t.content,u=Math.min(a.length,l.length),d=[],f=l[0].end;for(let h=0;hf)break;for(;d.length>0&&d[d.length-1].endPos<=u.start;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?i.produceFromScopes(d[d.length-1].scopes,u.start):i.produce(r,u.start),t.retokenizeCapturedWithRuleId){const a=t.getName(c,l),d=r.contentNameScopesList.pushAttributed(a,e),f=t.getContentName(c,l),p=d.pushAttributed(f,e),h=r.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,p),g=e.createOnigString(c.substring(0,u.end));s(e,g,n&&0===u.start,u.start,h,i,!1,0),o.disposeOnigString(g);continue}const g=t.getName(c,l);if(null!==g){const t=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);d.push(new p(t,u.end))}}for(;d.length>0;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}t._tokenizeString=s;class p{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=p},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,a){let l=new r(e),s=new o,c=0,u=null,d=[],f=[];function p(){d.push(c),f.push(u)}function h(){c=d.pop(),u=f.pop()}function g(e){n(l,e)}for(;i(l,s);){if(0===c){if(null!==u&&g("too many constructs in root"),3===s.type){u={},a&&(u.$vscodeTextmateLocation=s.toLocation(t)),p(),c=1;continue}if(2===s.type){u=[],p(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===s.type){h();continue}if(7===s.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===s.type){h();continue}if(1===s.type){let e=s.value;if(i(l,s)&&6===s.type||g("expected colon"),i(l,s)||g("expected value"),c=2,1===s.type){u[e]=s.value;continue}if(8===s.type){u[e]=null;continue}if(9===s.type){u[e]=!0;continue}if(10===s.type){u[e]=!1;continue}if(11===s.type){u[e]=parseFloat(s.value);continue}if(2===s.type){let t=[];u[e]=t,p(),c=4,u=t;continue}if(3===s.type){let n={};a&&(n.$vscodeTextmateLocation=s.toLocation(t)),u[e]=n,p(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===s.type){h();continue}if(7===s.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===s.type){h();continue}if(c=5,1===s.type){u.push(s.value);continue}if(8===s.type){u.push(null);continue}if(9===s.type){u.push(!0);continue}if(10===s.type){u.push(!1);continue}if(11===s.type){u.push(parseFloat(s.value));continue}if(2===s.type){let e=[];u.push(e),p(),c=4,u=e;continue}if(3===s.type){let e={};a&&(e.$vscodeTextmateLocation=s.toLocation(t)),u.push(e),p(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==f.length&&g("unclosed constructs"),u};class r{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class o{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function i(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,o=e.source,i=e.pos,a=e.len,l=e.line,s=e.char;for(;;){if(i>=a)return!1;if(r=o.charCodeAt(i),32!==r&&9!==r&&13!==r){if(10!==r)break;i++,l++,s=0}else i++,s++}if(t.offset=i,t.line=l,t.char=s,34===r){for(t.type=1,i++,s++;;){if(i>=a)return!1;if(r=o.charCodeAt(i),i++,s++,92!==r){if(34===r)break}else i++,s++}t.value=o.substring(t.offset+1,i-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,i++,s++;else if(123===r)t.type=3,i++,s++;else if(93===r)t.type=4,i++,s++;else if(125===r)t.type=5,i++,s++;else if(58===r)t.type=6,i++,s++;else if(44===r)t.type=7,i++,s++;else if(110===r){if(t.type=8,i++,s++,r=o.charCodeAt(i),117!==r)return!1;if(i++,s++,r=o.charCodeAt(i),108!==r)return!1;if(i++,s++,r=o.charCodeAt(i),108!==r)return!1;i++,s++}else if(116===r){if(t.type=9,i++,s++,r=o.charCodeAt(i),114!==r)return!1;if(i++,s++,r=o.charCodeAt(i),117!==r)return!1;if(i++,s++,r=o.charCodeAt(i),101!==r)return!1;i++,s++}else if(102===r){if(t.type=10,i++,s++,r=o.charCodeAt(i),97!==r)return!1;if(i++,s++,r=o.charCodeAt(i),108!==r)return!1;if(i++,s++,r=o.charCodeAt(i),115!==r)return!1;if(i++,s++,r=o.charCodeAt(i),101!==r)return!1;i++,s++}else for(t.type=11;;){if(i>=a)return!1;if(r=o.charCodeAt(i),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;i++,s++}return t.len=i-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=i,e.line=l,e.char=s,!0}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.applyStateStackDiff=t.diffStateStacksRefEq=t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const i=n(391),a=n(50),l=n(652),s=n(583),c=n(965),u=n(442);Object.defineProperty(t,"applyStateStackDiff",{enumerable:!0,get:function(){return u.applyStateStackDiff}}),Object.defineProperty(t,"diffStateStacksRefEq",{enumerable:!0,get:function(){return u.diffStateStacksRefEq}}),o(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new l.SyncRegistry(s.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(s.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new i.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const i=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;i.Q.length>0;)await Promise.all(i.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),i.processQueue();return this._grammarForScopeName(e,t,n,r,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},t.INITIAL=i.StateStackImpl.NULL,t.parseRawGrammar=a.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const r=[],o=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let i=o.next();for(;null!==i;){let e=0;if(2===i.length&&":"===i.charAt(1)){switch(i.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=o.next()}let t=l();if(r.push({matcher:t,priority:e}),","!==i)break;i=o.next()}return r;function a(){if("-"===i){i=o.next();const e=a();return t=>!!e&&!e(t)}if("("===i){i=o.next();const e=function(){const e=[];let t=l();for(;t&&(e.push(t),"|"===i||","===i);){do{i=o.next()}while("|"===i||","===i);t=l()}return t=>e.some((e=>e(t)))}();return")"===i&&(i=o.next()),e}if(n(i)){const e=[];do{e.push(i),i=o.next()}while(n(i));return n=>t(e,n)}return null}function l(){const e=[];let t=a();for(;t;)e.push(t),t=a();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),i=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(l=e,s=t,o.DebugFlags.InDebugMode?i.parseJSON(l,s,!0):JSON.parse(l)):(n=e,a=t,o.DebugFlags.InDebugMode?r.parseWithLocation(n,a,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,a,l,s}},69:(e,t)=>{function n(e,t,n){const r=e.length;let o=0,i=1,a=0;function l(t){if(null===n)o+=t;else for(;t>0;)10===e.charCodeAt(o)?(o++,i++,a=0):(o++,a++),t--}function s(e){null===n?o=e:l(e-o)}function c(){for(;o0&&65279===e.charCodeAt(0)&&(o=1);let p=0,h=null,g=[],m=[],b=null;function v(e,t){g.push(p),m.push(h),p=e,h=t}function y(){if(0===g.length)return w("illegal state stack");p=g.pop(),h=m.pop()}function w(t){throw new Error("Near offset "+o+": "+t+" ~~~"+e.substr(o,50)+"~~~")}const x=function(){if(null===b)return w("missing ");let e={};null!==n&&(e[n]={filename:t,line:i,char:a}),h[b]=e,b=null,v(1,e)},S=function(){if(null===b)return w("missing ");let e=[];h[b]=e,b=null,v(2,e)},k=function(){let e={};null!==n&&(e[n]={filename:t,line:i,char:a}),h.push(e),v(1,e)},C=function(){let e=[];h.push(e),v(2,e)};function E(){if(1!==p)return w("unexpected ");y()}function O(){return 1===p||2!==p?w("unexpected "):void y()}function D(e){if(1===p){if(null===b)return w("missing ");h[b]=e,b=null}else 2===p?h.push(e):h=e}function $(e){if(isNaN(e))return w("cannot parse float");if(1===p){if(null===b)return w("missing ");h[b]=e,b=null}else 2===p?h.push(e):h=e}function j(e){if(isNaN(e))return w("cannot parse integer");if(1===p){if(null===b)return w("missing ");h[b]=e,b=null}else 2===p?h.push(e):h=e}function P(e){if(1===p){if(null===b)return w("missing ");h[b]=e,b=null}else 2===p?h.push(e):h=e}function N(e){if(1===p){if(null===b)return w("missing ");h[b]=e,b=null}else 2===p?h.push(e):h=e}function _(e){if(1===p){if(null===b)return w("missing ");h[b]=e,b=null}else 2===p?h.push(e):h=e}function I(){let e=f(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function T(e){if(e.isClosed)return"";let t=f("");return d(">"),t.replace(/([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}for(;o=r));){const s=e.charCodeAt(o);if(l(1),60!==s)return w("expected <");if(o>=r)return w("unexpected end of input");const f=e.charCodeAt(o);if(63===f){l(1),d("?>");continue}if(33===f){if(l(1),u("--")){d("--\x3e");continue}d(">");continue}if(47===f){if(l(1),c(),u("plist")){d(">");continue}if(u("dict")){d(">"),E();continue}if(u("array")){d(">"),O();continue}return w("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===p?x():2===p?k():(h={},null!==n&&(h[n]={filename:t,line:i,char:a}),v(1,h)),g.isClosed&&E();continue;case"array":1===p?S():2===p?C():(h=[],v(2,h)),g.isClosed&&O();continue;case"key":F=T(g),1!==p?w("unexpected