mirror of
https://github.com/lobehub/sd-webui-lobe-theme.git
synced 2026-01-09 06:23:44 +08:00
2607 lines
1.5 MiB
2607 lines
1.5 MiB
var e=Object.defineProperty,t=(t,n,r)=>(((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;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[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"),f=Symbol.for("react.fragment"),p=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 k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function E(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||k}function D(){}function $(e,t,n){this.props=e,this.context=t,this.refs=C,this.updater=n||k}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")},D.prototype=E.prototype;var O=$.prototype=new D;O.constructor=$,S(O,E.prototype),O.isPureReactComponent=!0;var _=Array.isArray,I=Object.prototype.hasOwnProperty,N={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function P(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)I.call(t,r)&&!j.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:u,type:e,key:i,ref:a,props:o,_owner:N.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var F=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case u:case d:a=!0}}if(a)return o=o(a=e),e=""===r?"."+R(a,0):r,_(o)?(n="",null!=e&&(n=e.replace(F,"$&/")+"/"),A(o,t,n,"",(function(e){return e}))):null!=o&&(T(o)&&(o=function(e,t){return{$$typeof:u,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(F,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",_(e))for(var l=0;l<e.length;l++){var s=r+R(i=e[l],l);a+=A(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=x&&e[x]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=A(i=i.value,t,n,s=r+R(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function M(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var z={current:null},B={transition:null},H={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:B,ReactCurrentOwner:N};function W(){throw Error("act(...) is not supported in production builds of React.")}c.Children={map:M,forEach:function(e,t,n){M(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},c.Component=E,c.Fragment=f,c.Profiler=h,c.PureComponent=$,c.StrictMode=p,c.Suspense=v,c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,c.act=W,c.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=S({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=N.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)I.call(t,s)&&!j.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:u,type:e.type,key:o,ref:i,props:r,_owner:a}},c.createContext=function(e){return(e={$$typeof:m,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},c.createElement=P,c.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},c.createRef=function(){return{current:null}},c.forwardRef=function(e){return{$$typeof:b,render:e}},c.isValidElement=T,c.lazy=function(e){return{$$typeof:w,_payload:{_status:-1,_result:e},_init:L}},c.memo=function(e,t){return{$$typeof:y,type:e,compare:void 0===t?null:t}},c.startTransition=function(e){var t=B.transition;B.transition={};try{e()}finally{B.transition=t}},c.unstable_act=W,c.useCallback=function(e,t){return z.current.useCallback(e,t)},c.useContext=function(e){return z.current.useContext(e)},c.useDebugValue=function(){},c.useDeferredValue=function(e){return z.current.useDeferredValue(e)},c.useEffect=function(e,t){return z.current.useEffect(e,t)},c.useId=function(){return z.current.useId()},c.useImperativeHandle=function(e,t,n){return z.current.useImperativeHandle(e,t,n)},c.useInsertionEffect=function(e,t){return z.current.useInsertionEffect(e,t)},c.useLayoutEffect=function(e,t){return z.current.useLayoutEffect(e,t)},c.useMemo=function(e,t){return z.current.useMemo(e,t)},c.useReducer=function(e,t,n){return z.current.useReducer(e,t,n)},c.useRef=function(e){return z.current.useRef(e)},c.useState=function(e){return z.current.useState(e)},c.useSyncExternalStore=function(e,t,n){return z.current.useSyncExternalStore(e,t,n)},c.useTransition=function(){return z.current.useTransition()},c.version="18.3.1",s.exports=c;var U=s.exports;const q=o(U),V=n({__proto__:null,default:q},[U]);
|
||
/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var G=U,X=Symbol.for("react.element"),K=Symbol.for("react.fragment"),Y=Object.prototype.hasOwnProperty,Q=G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,J={key:!0,ref:!0,__self:!0,__source:!0};function Z(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)Y.call(t,r)&&!J.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:X,type:e,key:i,ref:a,props:o,_owner:Q.current}}l.Fragment=K,l.jsx=Z,l.jsxs=Z,a.exports=l;var ee=a.exports;const te={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},ne={silent:{level:-1},fatal:{level:te.fatal},error:{level:te.error},warn:{level:te.warn},log:{level:te.log},info:{level:te.info},success:{level:te.success},fail:{level:te.fail},ready:{level:te.info},start:{level:te.info},box:{level:te.info},debug:{level:te.debug},trace:{level:te.trace},verbose:{level:te.verbose}};function re(e){return null!==e&&"object"==typeof e}function oe(e,t,n=".",r){if(!re(t))return oe(e,{},n);const o=Object.assign({},t);for(const i in e){if("__proto__"===i||"constructor"===i)continue;const t=e[i];null!=t&&(Array.isArray(t)&&Array.isArray(o[i])?o[i]=[...t,...o[i]]:re(t)&&re(o[i])?o[i]=oe(t,o[i],(n?`${n}.`:"")+i.toString()):o[i]=t)}return o}const ie=(...e)=>e.reduce(((e,t)=>oe(e,t,"")),{});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||ne;this.options=ie({...e,defaults:{...e.defaults},level:ue(e.level,t),reporters:[...e.reporters||[]]},{types:ne,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,i<this.options.throttle)try{const e=JSON.stringify([r.type,r.tag,r.args]),t=this._lastLog.serialized===e;if(this._lastLog.serialized=e,t&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.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 fe=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 pe={exports:{}},he={},ge={exports:{}},me={};
|
||
/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* 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<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(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,j(x);else{var t=n(c);null!==t&&P(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&&!O());){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&&P(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 k,S=!1,C=null,E=-1,D=5,$=-1;function O(){return!(e.unstable_now()-$<D)}function _(){if(null!==C){var t=e.unstable_now();$=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}if("function"==typeof v)k=function(){v(_)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,N=I.port2;I.port1.onmessage=_,k=function(){N.postMessage(null)}}else k=function(){m(_,0)};function j(e){C=e,S||(S=!0,k())}function P(t,n){E=m((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,j(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(g?(b(E),E=-1):g=!0,P(w,i-a))):(r.sortIndex=l,t(s,r),h||p||(h=!0,j(x))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(me),ge.exports=me;var be=ge.exports,ve=U,ye=be;
|
||
/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function we(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var xe=new Set,ke={};function Se(e,t){Ce(e,t),Ce(e+"Capture",t)}function Ce(e,t){for(ke[e]=t,e=0;e<t.length;e++)xe.add(t[e])}var Ee=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),De=Object.prototype.hasOwnProperty,$e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Oe={},_e={};function Ie(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Ne[e]=new Ie(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Ne[t]=new Ie(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Ne[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Ne[e]=new Ie(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Ne[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Ne[e]=new Ie(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Ne[e]=new Ie(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Ne[e]=new Ie(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Ne[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)}));var je=/[\-:]([a-z])/g;function Pe(e){return e[1].toUpperCase()}function Te(e,t,n,r){var o=Ne.hasOwnProperty(t)?Ne[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!De.call(_e,e)||!De.call(Oe,e)&&($e.test(e)?_e[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(je,Pe);Ne[t]=new Ie(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(je,Pe);Ne[t]=new Ie(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(je,Pe);Ne[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Ne[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)})),Ne.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Ne[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Fe=ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Re=Symbol.for("react.element"),Ae=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"),qe=Symbol.for("react.suspense_list"),Ve=Symbol.for("react.memo"),Ge=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("<anonymous>")&&(s=s.replace("<anonymous>",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 Ae:return"Portal";case ze:return"Profiler";case Le:return"StrictMode";case Ue:return"Suspense";case qe: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 Ve:return null!==(t=e.displayName||null)?t:rt(e.type)||"Memo";case Ge: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 ft(e,t){null!=(t=t.checked)&&Te(e,"checked",t,!1)}function pt(e,t){ft(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<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+it(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function vt(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(we(91));return Je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yt(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(we(92));if(mt(n)){if(1<n.length)throw Error(we(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:it(n)}}function wt(e,t){var n=it(t.value),r=it(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function xt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function kt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function St(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?kt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ct,Et,Dt=(Et=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ct=Ct||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",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 $t(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},_t=["Webkit","ms","Moz","O"];function It(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 Nt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=It(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Ot).forEach((function(e){_t.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ot[t]=Ot[e]}))}));var jt=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 Pt(e,t){if(t){if(jt[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 Ft=null;function Rt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var At=null,Mt=null,Lt=null;function zt(e){if(e=Fi(e)){if("function"!=typeof At)throw Error(we(280));var t=e.stateNode;t&&(t=Ai(t),At(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<t.length;e++)zt(t[e])}}function Wt(e,t){return e(t)}function Ut(){}var qt=!1;function Vt(e,t,n){if(qt)return e(t,n);qt=!0;try{return Wt(e,t,n)}finally{qt=!1,(null!==Mt||null!==Lt)&&(Ut(),Ht())}}function Gt(e,t){var n=e.stateNode;if(null===n)return null;var r=Ai(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(we(231,t,typeof n));return n}var Xt=!1;if(Ee)try{var Kt={};Object.defineProperty(Kt,"passive",{get:function(){Xt=!0}}),window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch(Et){Xt=!1}function Yt(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Qt=!1,Jt=null,Zt=!1,en=null,tn={onError:function(e){Qt=!0,Jt=e}};function nn(e,t,n,r,o,i,a,l,s){Qt=!1,Jt=null,Yt.apply(tn,arguments)}function rn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function on(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function an(e){if(rn(e)!==e)throw Error(we(188))}function ln(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=rn(e)))throw Error(we(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return an(o),e;if(i===r)return an(o),t;i=i.sibling}throw Error(we(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(we(189))}}if(n.alternate!==r)throw Error(we(190))}if(3!==n.tag)throw Error(we(188));return n.stateNode.current===n?e:t}(e))?sn(e):null}function sn(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=sn(e);if(null!==t)return t;e=e.sibling}return null}var cn=ye.unstable_scheduleCallback,un=ye.unstable_cancelCallback,dn=ye.unstable_shouldYield,fn=ye.unstable_requestPaint,pn=ye.unstable_now,hn=ye.unstable_getCurrentPriorityLevel,gn=ye.unstable_ImmediatePriority,mn=ye.unstable_UserBlockingPriority,bn=ye.unstable_NormalPriority,vn=ye.unstable_LowPriority,yn=ye.unstable_IdlePriority,wn=null,xn=null;var kn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Sn(e)/Cn|0)|0},Sn=Math.log,Cn=Math.LN2;var En=64,Dn=4194304;function $n(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=$n(l):0!==(i&=a)&&(r=$n(i))}else 0!==(a=n&~o)?r=$n(a):0!==i&&(r=$n(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-kn(t)),r|=e[n],t&=~o;return r}function _n(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;default:return-1}}function In(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Nn(){var e=En;return!(4194240&(En<<=1))&&(En=64),e}function jn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-kn(t)]=n}function Tn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Fn=0;function Rn(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var An,Mn,Ln,zn,Bn,Hn=!1,Wn=[],Un=null,qn=null,Vn=null,Gn=new Map,Xn=new Map,Kn=[],Yn="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qn(e,t){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":Gn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xn.delete(t.pointerId)}}function Jn(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Fi(t))&&Mn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Zn(e){var t=Ti(e.target);if(null!==t){var n=rn(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=on(n)))return e.blockedOn=t,void Bn(e.priority,(function(){Ln(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function er(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=dr(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Fi(n))&&Mn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ft=r,n.target.dispatchEvent(r),Ft=null,t.shift()}return!0}function tr(e,t,n){er(e)&&n.delete(t)}function nr(){Hn=!1,null!==Un&&er(Un)&&(Un=null),null!==qn&&er(qn)&&(qn=null),null!==Vn&&er(Vn)&&(Vn=null),Gn.forEach(tr),Xn.forEach(tr)}function rr(e,t){e.blockedOn===t&&(e.blockedOn=null,Hn||(Hn=!0,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,nr)))}function or(e){function t(t){return rr(t,e)}if(0<Wn.length){rr(Wn[0],e);for(var n=1;n<Wn.length;n++){var r=Wn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Un&&rr(Un,e),null!==qn&&rr(qn,e),null!==Vn&&rr(Vn,e),Gn.forEach(t),Xn.forEach(t),n=0;n<Kn.length;n++)(r=Kn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Kn.length&&null===(n=Kn[0]).blockedOn;)Zn(n),null===n.blockedOn&&Kn.shift()}var ir=Fe.ReactCurrentBatchConfig,ar=!0;function lr(e,t,n,r){var o=Fn,i=ir.transition;ir.transition=null;try{Fn=1,cr(e,t,n,r)}finally{Fn=o,ir.transition=i}}function sr(e,t,n,r){var o=Fn,i=ir.transition;ir.transition=null;try{Fn=4,cr(e,t,n,r)}finally{Fn=o,ir.transition=i}}function cr(e,t,n,r){if(ar){var o=dr(e,t,n,r);if(null===o)ai(e,t,r,ur,n),Qn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Un=Jn(Un,e,t,n,r,o),!0;case"dragenter":return qn=Jn(qn,e,t,n,r,o),!0;case"mouseover":return Vn=Jn(Vn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Gn.set(i,Jn(Gn.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Xn.set(i,Jn(Xn.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Qn(e,r),4&t&&-1<Yn.indexOf(e)){for(;null!==o;){var i=Fi(o);if(null!==i&&An(i),null===(i=dr(e,t,n,r))&&ai(e,t,r,ur,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else ai(e,t,r,null,n)}}var ur=null;function dr(e,t,n,r){if(ur=null,null!==(e=Ti(e=Rt(r))))if(null===(t=rn(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=on(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ur=e,null}function fr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hn()){case gn:return 1;case mn:return 4;case bn:case vn:return 16;case yn:return 536870912;default:return 16}default:return 16}}var pr=null,hr=null,gr=null;function mr(){if(gr)return gr;var e,t,n=hr,r=n.length,o="value"in pr?pr.value:pr.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return gr=o.slice(e,1<t?1-t:void 0)}function br(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function vr(){return!0}function yr(){return!1}function wr(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?vr:yr,this.isPropagationStopped=yr,this}return Je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=vr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=vr)},persist:function(){},isPersistent:vr}),t}var xr,kr,Sr,Cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Er=wr(Cr),Dr=Je({},Cr,{view:0,detail:0}),$r=wr(Dr),Or=Je({},Dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Sr&&(Sr&&"mousemove"===e.type?(xr=e.screenX-Sr.screenX,kr=e.screenY-Sr.screenY):kr=xr=0,Sr=e),xr)},movementY:function(e){return"movementY"in e?e.movementY:kr}}),_r=wr(Or),Ir=wr(Je({},Or,{dataTransfer:0})),Nr=wr(Je({},Dr,{relatedTarget:0})),jr=wr(Je({},Cr,{animationName:0,elapsedTime:0,pseudoElement:0})),Pr=Je({},Cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tr=wr(Pr),Fr=wr(Je({},Cr,{data:0})),Rr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ar={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mr[e])&&!!t[e]}function zr(){return Lr}var Br=Je({},Dr,{key:function(e){if(e.key){var t=Rr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=br(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ar[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zr,charCode:function(e){return"keypress"===e.type?br(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?br(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Hr=wr(Br),Wr=wr(Je({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ur=wr(Je({},Dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zr})),qr=wr(Je({},Cr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Vr=Je({},Or,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Gr=wr(Vr),Xr=[9,13,27,32],Kr=Ee&&"CompositionEvent"in window,Yr=null;Ee&&"documentMode"in document&&(Yr=document.documentMode);var Qr=Ee&&"TextEvent"in window&&!Yr,Jr=Ee&&(!Kr||Yr&&8<Yr&&11>=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(Ri(e)))return e}function fo(e,t){if("change"===e)return t}var po=!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;po=ho&&(!document.documentMode||9<document.documentMode)}function bo(){lo&&(lo.detachEvent("onpropertychange",vo),so=lo=null)}function vo(e){if("value"===e.propertyName&&uo(so)){var t=[];ao(t,so,e,Rt(e)),Vt(co,t)}}function yo(e,t,n){"focusin"===e?(bo(),so=n,(lo=t).attachEvent("onpropertychange",vo)):"focusout"===e&&bo()}function wo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return uo(so)}function xo(e,t){if("click"===e)return uo(t)}function ko(e,t){if("input"===e||"change"===e)return uo(t)}var So="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Co(e,t){if(So(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!De.call(t,o)||!So(e[o],t[o]))return!1}return!0}function Eo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Do(e,t){var n,r=Eo(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=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 $o(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?$o(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Oo(){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 Io(e){var t=Oo(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$o(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=Do(n,i);var a=Do(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<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var No=Ee&&"documentMode"in document&&11>=document.documentMode,jo=null,Po=null,To=null,Fo=!1;function Ro(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Fo||null==jo||jo!==ct(r)||("selectionStart"in(r=jo)&&_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(Po,"onSelect")).length&&(t=new Er("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jo)))}function Ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mo={animationend:Ao("Animation","AnimationEnd"),animationiteration:Ao("Animation","AnimationIteration"),animationstart:Ao("Animation","AnimationStart"),transitionend:Ao("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"),qo=Bo("transitionend"),Vo=new Map,Go="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){Vo.set(e,t),Se(t,[e])}for(var Ko=0;Ko<Go.length;Ko++){var Yo=Go[Ko];Xo(Yo.toLowerCase(),"on"+(Yo[0].toUpperCase()+Yo.slice(1)))}Xo(Ho,"onAnimationEnd"),Xo(Wo,"onAnimationIteration"),Xo(Uo,"onAnimationStart"),Xo("dblclick","onDoubleClick"),Xo("focusin","onFocus"),Xo("focusout","onBlur"),Xo(qo,"onTransitionEnd"),Ce("onMouseEnter",["mouseout","mouseover"]),Ce("onMouseLeave",["mouseout","mouseover"]),Ce("onPointerEnter",["pointerout","pointerover"]),Ce("onPointerLeave",["pointerout","pointerover"]),Se("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Se("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Se("onBeforeInput",["compositionend","keypress","textInput","paste"]),Se("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Se("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Se("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qo));function Zo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(nn.apply(this,arguments),Qt){if(!Qt)throw Error(we(198));var c=Jt;Qt=!1,Jt=null,Zt||(Zt=!0,en=c)}}(r,t,void 0,e),e.currentTarget=null}function ei(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Zo(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Zo(o,l,c),i=s}}}if(Zt)throw e=en,Zt=!1,en=null,e}function ti(e,t){var n=t[Ni];void 0===n&&(n=t[Ni]=new Set);var r=e+"__bubble";n.has(r)||(ii(t,e,2,!1),n.add(r))}function ni(e,t,n){var r=0;t&&(r|=4),ii(n,e,r,t)}var ri="_reactListening"+Math.random().toString(36).slice(2);function oi(e){if(!e[ri]){e[ri]=!0,xe.forEach((function(t){"selectionchange"!==t&&(Jo.has(t)||ni(t,!1,e),ni(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ri]||(t[ri]=!0,ni("selectionchange",!1,t))}}function ii(e,t,n,r){switch(fr(t)){case 1:var o=lr;break;case 4:o=sr;break;default:o=cr}n=o.bind(null,t,n,e),o=void 0,!Xt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ai(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Ti(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Vt((function(){var r=i,o=Rt(n),a=[];e:{var l=Vo.get(e);if(void 0!==l){var s=Er,c=e;switch(e){case"keypress":if(0===br(n))break e;case"keydown":case"keyup":s=Hr;break;case"focusin":c="focus",s=Nr;break;case"focusout":c="blur",s=Nr;break;case"beforeblur":case"afterblur":s=Nr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=_r;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Ir;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ur;break;case Ho:case Wo:case Uo:s=jr;break;case qo:s=qr;break;case"scroll":s=$r;break;case"wheel":s=Gr;break;case"copy":case"cut":case"paste":s=Tr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Wr}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==l?l+"Capture":null:l;u=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Gt(h,f))&&u.push(li(h,g,p)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Ft||!(c=n.relatedTarget||n.fromElement)||!Ti(c)&&!c[Ii])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ti(c):null)&&(c!==(d=rn(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=_r,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Wr,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:Ri(s),p=null==c?l:Ri(c),(l=new u(g,h+"leave",s,n,o)).target=d,l.relatedTarget=p,g=null,Ti(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(f=c,h=0,p=u=s;p;p=ci(p))h++;for(p=0,g=f;g;g=ci(g))p++;for(;0<h-p;)u=ci(u),h--;for(;0<p-h;)f=ci(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=ci(u),f=ci(f)}u=null}else u=null;null!==s&&ui(a,l,s,u,!1),null!==c&&null!==d&&ui(a,d,c,u,!0)}if("select"===(s=(l=r?Ri(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=fo;else if(io(l))if(po)m=ko;else{m=wo;var b=yo}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=xo);switch(m&&(m=m(e,r))?ao(a,m,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&>(l,"number",l.value)),b=r?Ri(r):window,e){case"focusin":(io(b)||"true"===b.contentEditable)&&(jo=b,Po=r,To=null);break;case"focusout":To=Po=jo=null;break;case"mousedown":Fo=!0;break;case"contextmenu":case"mouseup":case"dragend":Fo=!1,Ro(a,n,o);break;case"selectionchange":if(No)break;case"keydown":case"keyup":Ro(a,n,o)}var v;if(Kr)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else ro?to(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Jr&&"ko"!==n.locale&&(ro||"onCompositionStart"!==y?"onCompositionEnd"===y&&ro&&(v=mr()):(hr="value"in(pr=o)?pr.value:pr.textContent,ro=!0)),0<(b=si(r,y)).length&&(y=new Fr(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=no(n))&&(y.data=v))),(v=Qr?function(e,t){switch(e){case"compositionend":return no(t);case"keypress":return 32!==t.which?null:(eo=!0,Zr);case"textInput":return(e=t.data)===Zr&&eo?null:e;default:return null}}(e,n):function(e,t){if(ro)return"compositionend"===e||!Kr&&to(e,t)?(e=mr(),gr=hr=pr=null,ro=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=si(r,"onBeforeInput")).length&&(o=new Fr("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}ei(a,t)}))}function li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Gt(e,n))&&r.unshift(li(e,i,o)),null!=(i=Gt(e,t))&&r.push(li(e,i,o))),e=e.return}return r}function ci(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ui(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Gt(n,i))&&a.unshift(li(n,s,l)):o||null!=(s=Gt(n,i))&&a.push(li(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var di=/\r\n?/g,fi=/\u0000|\uFFFD/g;function pi(e){return("string"==typeof e?e:""+e).replace(di,"\n").replace(fi,"")}function hi(e,t,n){if(t=pi(t),pi(e)!==t&&n)throw Error(we(425))}function gi(){}var mi=null,bi=null;function vi(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yi="function"==typeof setTimeout?setTimeout:void 0,wi="function"==typeof clearTimeout?clearTimeout:void 0,xi="function"==typeof Promise?Promise:void 0,ki="function"==typeof queueMicrotask?queueMicrotask:void 0!==xi?function(e){return xi.resolve(null).then(e).catch(Si)}:yi;function Si(e){setTimeout((function(){throw e}))}function Ci(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void or(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);or(t)}function Ei(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Di(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $i=Math.random().toString(36).slice(2),Oi="__reactFiber$"+$i,_i="__reactProps$"+$i,Ii="__reactContainer$"+$i,Ni="__reactEvents$"+$i,ji="__reactListeners$"+$i,Pi="__reactHandles$"+$i;function Ti(e){var t=e[Oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ii]||n[Oi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Di(e);null!==e;){if(n=e[Oi])return n;e=Di(e)}return t}n=(e=n).parentNode}return null}function Fi(e){return!(e=e[Oi]||e[Ii])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(we(33))}function Ai(e){return e[_i]||null}var Mi=[],Li=-1;function zi(e){return{current:e}}function Bi(e){0>Li||(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),qi=zi(!1),Vi=Wi;function Gi(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(qi),Bi(Ui)}function Yi(e,t,n){if(Ui.current!==Wi)throw Error(we(168));Hi(Ui,t),Hi(qi,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,Vi=Ui.current,Hi(Ui,e),Hi(qi,qi.current),!0}function Zi(e,t,n){var r=e.stateNode;if(!r)throw Error(we(169));n?(e=Qi(e,t,Vi),r.__reactInternalMemoizedMergedChildContext=e,Bi(qi),Bi(Ui),Hi(Ui,e)):Bi(qi),Hi(qi,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=Fn;try{var n=ea;for(Fn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}ea=null,ta=!1}catch(b6){throw null!==ea&&(ea=ea.slice(e+1)),cn(gn,oa),b6}finally{Fn=t,na=!1}}return null}var ia=[],aa=0,la=null,sa=0,ca=[],ua=0,da=null,fa=1,pa="";function ha(e,t){ia[aa++]=sa,ia[aa++]=la,la=e,sa=t}function ga(e,t,n){ca[ua++]=fa,ca[ua++]=pa,ca[ua++]=da,da=e;var r=fa;e=pa;var o=32-kn(r)-1;r&=~(1<<o),n+=1;var i=32-kn(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,fa=1<<32-kn(t)+o|n<<o|r,pa=i+e}else fa=1<<i|n<<o|r,pa=e}function ma(e){null!==e.return&&(ha(e,1),ga(e,1,0))}function ba(e){for(;e===la;)la=ia[--aa],ia[aa]=null,sa=ia[--aa],ia[aa]=null;for(;e===da;)da=ca[--ua],ca[ua]=null,pa=ca[--ua],ca[ua]=null,fa=ca[--ua],ca[ua]=null}var va=null,ya=null,wa=!1,xa=null;function ka(e,t){var n=Vu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,va=e,ya=Ei(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,va=e,ya=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==da?{id:fa,overflow:pa}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Vu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,va=e,ya=null,!0);default:return!1}}function Ca(e){return!(!(1&e.mode)||128&e.flags)}function Ea(e){if(wa){var t=ya;if(t){var n=t;if(!Sa(e,t)){if(Ca(e))throw Error(we(418));t=Ei(n.nextSibling);var r=va;t&&Sa(e,t)?ka(r,n):(e.flags=-4097&e.flags|2,wa=!1,va=e)}}else{if(Ca(e))throw Error(we(418));e.flags=-4097&e.flags|2,wa=!1,va=e}}}function Da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;va=e}function $a(e){if(e!==va)return!1;if(!wa)return Da(e),wa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!vi(e.type,e.memoizedProps)),t&&(t=ya)){if(Ca(e))throw Oa(),Error(we(418));for(;t;)ka(e,t),t=Ei(t.nextSibling)}if(Da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(we(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ya=Ei(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ya=null}}else ya=va?Ei(e.stateNode.nextSibling):null;return!0}function Oa(){for(var e=ya;e;)e=Ei(e.nextSibling)}function _a(){ya=va=null,wa=!1}function Ia(e){null===xa?xa=[e]:xa.push(e)}var Na=Fe.ReactCurrentBatchConfig;function ja(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(we(309));var r=n.stateNode}if(!r)throw Error(we(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(we(284));if(!n._owner)throw Error(we(290,e))}return e}function Pa(e,t){throw e=Object.prototype.toString.call(t),Error(we(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ta(e){return(0,e._init)(e._payload)}function Fa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Xu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ju(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===Me?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ge&&Ta(i)===t.type)?((r=o(t,n.props)).ref=ja(e,t,n),r.return=e,r):((r=Ku(n.type,n.key,n.props,null,e.mode,r)).ref=ja(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Zu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=Yu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ju(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Re:return(n=Ku(t.type,t.key,t.props,null,e.mode,n)).ref=ja(e,null,t),n.return=e,n;case Ae:return(t=Zu(t,e.mode,n)).return=e,t;case Ge:return d(e,(0,t._init)(t._payload),n)}if(mt(t)||Ye(t))return(t=Yu(t,e.mode,n,null)).return=e,t;Pa(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Re:return n.key===o?s(e,t,n,r):null;case Ae:return n.key===o?c(e,t,n,r):null;case Ge:return f(e,t,(o=n._init)(n._payload),r)}if(mt(n)||Ye(n))return null!==o?null:u(e,t,n,r,null);Pa(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Re:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ae:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ge:return p(e,t,n,(0,r._init)(r._payload),o)}if(mt(r)||Ye(r))return u(t,e=e.get(n)||null,r,o,null);Pa(t,r)}return null}return function l(s,c,u,h){if("object"==typeof u&&null!==u&&u.type===Me&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case Re:e:{for(var g=u.key,m=c;null!==m;){if(m.key===g){if((g=u.type)===Me){if(7===m.tag){n(s,m.sibling),(c=o(m,u.props.children)).return=s,s=c;break e}}else if(m.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===Ge&&Ta(g)===m.type){n(s,m.sibling),(c=o(m,u.props)).ref=ja(s,m,u),c.return=s,s=c;break e}n(s,m);break}t(s,m),m=m.sibling}u.type===Me?((c=Yu(u.props.children,s.mode,h,u.key)).return=s,s=c):((h=Ku(u.type,u.key,u.props,null,s.mode,h)).ref=ja(s,c,u),h.return=s,s=h)}return a(s);case Ae:e:{for(m=u.key;null!==c;){if(c.key===m){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(s,c.sibling),(c=o(c,u.children||[])).return=s,s=c;break e}n(s,c);break}t(s,c),c=c.sibling}(c=Zu(u,s.mode,h)).return=s,s=c}return a(s);case Ge:return l(s,c,(m=u._init)(u._payload),h)}if(mt(u))return function(o,a,l,s){for(var c=null,u=null,h=a,g=a=0,m=null;null!==h&&g<l.length;g++){h.index>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),wa&&ha(o,g),c;if(null===h){for(;g<l.length;g++)null!==(h=d(o,l[g],s))&&(a=i(h,a,g),null===u?c=h:u.sibling=h,u=h);return wa&&ha(o,g),c}for(h=r(o,h);g<l.length;g++)null!==(m=p(h,o,g,l[g],s))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),a=i(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&h.forEach((function(e){return t(o,e)})),wa&&ha(o,g),c}(s,c,u,h);if(Ye(u))return function(o,a,l,s){var c=Ye(l);if("function"!=typeof c)throw Error(we(150));if(null==(l=c.call(l)))throw Error(we(151));for(var u=c=null,h=a,g=a=0,m=null,b=l.next();null!==h&&!b.done;g++,b=l.next()){h.index>g?(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),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=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)})),wa&&ha(o,g),c}(s,c,u,h);Pa(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=Ju(u,s.mode,h)).return=s,s=c),a(s)):n(s,c)}}var Ra=Fa(!0),Aa=Fa(!1),Ma=zi(null),La=null,za=null,Ba=null;function Ha(){Ba=za=La=null}function Wa(e){var t=Ma.current;Bi(Ma),e._currentValue=t}function Ua(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function qa(e,t){La=e,Ba=za=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Ts=!0),e.firstContext=null)}function Va(e){var t=e._currentValue;if(Ba!==e)if(e={context:e,memoizedValue:t,next:null},null===za){if(null===La)throw Error(we(308));za=e,La.dependencies={lanes:0,firstContext:e}}else za=za.next=e;return t}var Ga=null;function Xa(e){null===Ga?Ga=[e]:Ga.push(e)}function Ka(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Xa(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ya(e,r)}function Ya(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Qa=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Za(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function el(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function tl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Wc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ya(e,n)}return null===(o=r.interleaved)?(t.next=t,Xa(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ya(e,n)}function nl(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Tn(e,n)}}function rl(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ol(e,t,n,r){var o=e.updateQueue;Qa=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,g=l;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=g.payload)?h.call(p,d,f):h))break e;d=Je({},d,f);break e;case 2:Qa=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=p,s=d):u=u.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Qc|=a,e.lanes=a,e.memoizedState=d}}function il(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(we(191,o));o.call(r)}}}var al={},ll=zi(al),sl=zi(al),cl=zi(al);function ul(e){if(e===al)throw Error(we(174));return e}function dl(e,t){switch(Hi(cl,t),Hi(sl,e),Hi(ll,al),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:St(null,"");break;default:t=St(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Bi(ll),Hi(ll,t)}function fl(){Bi(ll),Bi(sl),Bi(cl)}function pl(e){ul(cl.current);var t=ul(ll.current),n=St(t,e.type);t!==n&&(Hi(sl,e),Hi(ll,n))}function hl(e){sl.current===e&&(Bi(ll),Bi(sl))}var gl=zi(0);function ml(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(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 bl=[];function vl(){for(var e=0;e<bl.length;e++)bl[e]._workInProgressVersionPrimary=null;bl.length=0}var yl=Fe.ReactCurrentDispatcher,wl=Fe.ReactCurrentBatchConfig,xl=0,kl=null,Sl=null,Cl=null,El=!1,Dl=!1,$l=0,Ol=0;function _l(){throw Error(we(321))}function Il(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!So(e[n],t[n]))return!1;return!0}function Nl(e,t,n,r,o,i){if(xl=i,kl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yl.current=null===e||null===e.memoizedState?hs:gs,e=n(r,o),Dl){i=0;do{if(Dl=!1,$l=0,25<=i)throw Error(we(301));i+=1,Cl=Sl=null,t.updateQueue=null,yl.current=ms,e=n(r,o)}while(Dl)}if(yl.current=ps,t=null!==Sl&&null!==Sl.next,xl=0,Cl=Sl=kl=null,El=!1,t)throw Error(we(300));return e}function jl(){var e=0!==$l;return $l=0,e}function Pl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Cl?kl.memoizedState=Cl=e:Cl=Cl.next=e,Cl}function Tl(){if(null===Sl){var e=kl.alternate;e=null!==e?e.memoizedState:null}else e=Sl.next;var t=null===Cl?kl.memoizedState:Cl.next;if(null!==t)Cl=t,Sl=e;else{if(null===e)throw Error(we(310));e={memoizedState:(Sl=e).memoizedState,baseState:Sl.baseState,baseQueue:Sl.baseQueue,queue:Sl.queue,next:null},null===Cl?kl.memoizedState=Cl=e:Cl=Cl.next=e}return Cl}function Fl(e,t){return"function"==typeof t?t(e):t}function Rl(e){var t=Tl(),n=t.queue;if(null===n)throw Error(we(311));n.lastRenderedReducer=e;var r=Sl,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,c=i;do{var u=c.lane;if((xl&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,kl.lanes|=u,Qc|=u}c=c.next}while(null!==c&&c!==i);null===s?a=r:s.next=l,So(r,t.memoizedState)||(Ts=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,kl.lanes|=i,Qc|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Al(e){var t=Tl(),n=t.queue;if(null===n)throw Error(we(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);So(i,t.memoizedState)||(Ts=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ml(){}function Ll(e,t){var n=kl,r=Tl(),o=t(),i=!So(r.memoizedState,o);if(i&&(r.memoizedState=o,Ts=!0),r=r.queue,Ql(Hl.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==Cl&&1&Cl.memoizedState.tag){if(n.flags|=2048,Vl(9,Bl.bind(null,n,r,o,t),void 0,null),null===Uc)throw Error(we(349));30&xl||zl(n,t,o)}return o}function zl(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=kl.updateQueue)?(t={lastEffect:null,stores:null},kl.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Bl(e,t,n,r){t.value=n,t.getSnapshot=r,Wl(t)&&Ul(e)}function Hl(e,t,n){return n((function(){Wl(t)&&Ul(e)}))}function Wl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!So(e,n)}catch(r){return!0}}function Ul(e){var t=Ya(e,1);null!==t&&bu(t,e,1,-1)}function ql(e){var t=Pl();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fl,lastRenderedState:e},t.queue=e,e=e.dispatch=cs.bind(null,kl,e),[t.memoizedState,e]}function Vl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=kl.updateQueue)?(t={lastEffect:null,stores:null},kl.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Gl(){return Tl().memoizedState}function Xl(e,t,n,r){var o=Pl();kl.flags|=e,o.memoizedState=Vl(1|t,n,void 0,void 0===r?null:r)}function Kl(e,t,n,r){var o=Tl();r=void 0===r?null:r;var i=void 0;if(null!==Sl){var a=Sl.memoizedState;if(i=a.destroy,null!==r&&Il(r,a.deps))return void(o.memoizedState=Vl(t,n,i,r))}kl.flags|=e,o.memoizedState=Vl(1|t,n,i,r)}function Yl(e,t){return Xl(8390656,8,e,t)}function Ql(e,t){return Kl(2048,8,e,t)}function Jl(e,t){return Kl(4,2,e,t)}function Zl(e,t){return Kl(4,4,e,t)}function es(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ts(e,t,n){return n=null!=n?n.concat([e]):null,Kl(4,4,es.bind(null,t,e),n)}function ns(){}function rs(e,t){var n=Tl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Il(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function os(e,t){var n=Tl();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Il(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function is(e,t,n){return 21&xl?(So(n,t)||(n=Nn(),kl.lanes|=n,Qc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ts=!0),e.memoizedState=n)}function as(e,t){var n=Fn;Fn=0!==n&&4>n?n:4,e(!0);var r=wl.transition;wl.transition={};try{e(!1),t()}finally{Fn=n,wl.transition=r}}function ls(){return Tl().memoizedState}function ss(e,t,n){var r=mu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},us(e))ds(t,n);else if(null!==(n=Ka(e,t,n,r))){bu(n,e,r,gu()),fs(n,t,r)}}function cs(e,t,n){var r=mu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(us(e))ds(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,So(l,a)){var s=t.interleaved;return null===s?(o.next=o,Xa(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ka(e,t,o,r))&&(bu(n,e,r,o=gu()),fs(n,t,r))}}function us(e){var t=e.alternate;return e===kl||null!==t&&t===kl}function ds(e,t){Dl=El=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Tn(e,n)}}var ps={readContext:Va,useCallback:_l,useContext:_l,useEffect:_l,useImperativeHandle:_l,useInsertionEffect:_l,useLayoutEffect:_l,useMemo:_l,useReducer:_l,useRef:_l,useState:_l,useDebugValue:_l,useDeferredValue:_l,useTransition:_l,useMutableSource:_l,useSyncExternalStore:_l,useId:_l,unstable_isNewReconciler:!1},hs={readContext:Va,useCallback:function(e,t){return Pl().memoizedState=[e,void 0===t?null:t],e},useContext:Va,useEffect:Yl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Xl(4194308,4,es.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xl(4,2,e,t)},useMemo:function(e,t){var n=Pl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pl();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=ss.bind(null,kl,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Pl().memoizedState=e},useState:ql,useDebugValue:ns,useDeferredValue:function(e){return Pl().memoizedState=e},useTransition:function(){var e=ql(!1),t=e[0];return e=as.bind(null,e[1]),Pl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=kl,o=Pl();if(wa){if(void 0===n)throw Error(we(407));n=n()}else{if(n=t(),null===Uc)throw Error(we(349));30&xl||zl(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Yl(Hl.bind(null,r,i,e),[e]),r.flags|=2048,Vl(9,Bl.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pl(),t=Uc.identifierPrefix;if(wa){var n=pa;t=":"+t+"R"+(n=(fa&~(1<<32-kn(fa)-1)).toString(32)+n),0<(n=$l++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Ol++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gs={readContext:Va,useCallback:rs,useContext:Va,useEffect:Ql,useImperativeHandle:ts,useInsertionEffect:Jl,useLayoutEffect:Zl,useMemo:os,useReducer:Rl,useRef:Gl,useState:function(){return Rl(Fl)},useDebugValue:ns,useDeferredValue:function(e){return is(Tl(),Sl.memoizedState,e)},useTransition:function(){return[Rl(Fl)[0],Tl().memoizedState]},useMutableSource:Ml,useSyncExternalStore:Ll,useId:ls,unstable_isNewReconciler:!1},ms={readContext:Va,useCallback:rs,useContext:Va,useEffect:Ql,useImperativeHandle:ts,useInsertionEffect:Jl,useLayoutEffect:Zl,useMemo:os,useReducer:Al,useRef:Gl,useState:function(){return Al(Fl)},useDebugValue:ns,useDeferredValue:function(e){var t=Tl();return null===Sl?t.memoizedState=e:is(t,Sl.memoizedState,e)},useTransition:function(){return[Al(Fl)[0],Tl().memoizedState]},useMutableSource:Ml,useSyncExternalStore:Ll,useId:ls,unstable_isNewReconciler:!1};function bs(e,t){if(e&&e.defaultProps){for(var n in t=Je({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Je({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ys={isMounted:function(e){return!!(e=e._reactInternals)&&rn(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gu(),o=mu(e),i=el(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=tl(e,i,o))&&(bu(t,e,o,r),nl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gu(),o=mu(e),i=el(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=tl(e,i,o))&&(bu(t,e,o,r),nl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gu(),r=mu(e),o=el(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=tl(e,o,r))&&(bu(t,e,r,n),nl(t,e,r))}};function ws(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Co(n,r)||!Co(o,i))}function xs(e,t,n){var r=!1,o=Wi,i=t.contextType;return"object"==typeof i&&null!==i?i=Va(i):(o=Xi(t)?Vi:Ui.current,i=(r=null!=(r=t.contextTypes))?Gi(e,o):Wi),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ys,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ks(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ys.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ja(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Va(i):(i=Xi(t)?Vi:Ui.current,o.context=Gi(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ys.enqueueReplaceState(o,o.state,null),ol(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Cs(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 Es(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 Os(e,t,n){(n=el(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){iu||(iu=!0,au=r),Ds(0,t)},n}function _s(e,t,n){(n=el(-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===lu?lu=new Set([this]):lu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Is(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=zu.bind(null,e,t,n),t.then(e,e))}function Ns(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 js(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=el(-1,1)).tag=2,tl(n,t,1))),n.lanes|=1),e)}var Ps=Fe.ReactCurrentOwner,Ts=!1;function Fs(e,t,n,r){t.child=null===e?Aa(t,null,n,r):Ra(t,e.child,n,r)}function Rs(e,t,n,r,o){n=n.render;var i=t.ref;return qa(t,o),r=Nl(e,t,n,r,i,o),n=jl(),null===e||Ts?(wa&&n&&ma(t),t.flags|=1,Fs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ic(e,t,o))}function As(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=Ku(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ms(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Co)(a,r)&&e.ref===t.ref)return ic(e,t,o)}return t.flags|=1,(e=Xu(i,r)).ref=t.ref,e.return=t,t.child=e}function Ms(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Co(i,r)&&e.ref===t.ref){if(Ts=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,ic(e,t,o);131072&e.flags&&(Ts=!0)}}return Bs(e,t,n,r,o)}function Ls(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(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(Xc,Gc),Gc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Hi(Xc,Gc),Gc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Hi(Xc,Gc),Gc|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Hi(Xc,Gc),Gc|=r;return Fs(e,t,o,n),t.child}function zs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bs(e,t,n,r,o){var i=Xi(n)?Vi:Ui.current;return i=Gi(t,i),qa(t,o),n=Nl(e,t,n,r,i,o),r=jl(),null===e||Ts?(wa&&r&&ma(t),t.flags|=1,Fs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ic(e,t,o))}function Hs(e,t,n,r,o){if(Xi(n)){var i=!0;Ji(t)}else i=!1;if(qa(t,o),null===t.stateNode)oc(e,t),xs(t,n,r),Ss(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=Va(c):c=Gi(t,c=Xi(n)?Vi: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)&&ks(t,a,r,c),Qa=!1;var f=t.memoizedState;a.state=f,ol(t,r,a,o),s=t.memoizedState,l!==r||f!==s||qi.current||Qa?("function"==typeof u&&(vs(t,n,u,r),s=t.memoizedState),(l=Qa||ws(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,Za(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:bs(t.type,l),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Va(s):s=Gi(t,s=Xi(n)?Vi:Ui.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)&&ks(t,a,r,s),Qa=!1,f=t.memoizedState,a.state=f,ol(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||qi.current||Qa?("function"==typeof p&&(vs(t,n,p,r),h=t.memoizedState),(c=Qa||ws(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 Ws(e,t,n,r,i,o)}function Ws(e,t,n,r,o,i){zs(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Zi(t,n,!1),ic(e,t,i);r=t.stateNode,Ps.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,l,i)):Fs(e,t,l,i),t.memoizedState=r.state,o&&Zi(t,n,!0),t.child}function Us(e){var t=e.stateNode;t.pendingContext?Yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Yi(0,t.context,!1),dl(e,t.containerInfo)}function qs(e,t,n,r,o){return _a(),Ia(o),t.flags|=256,Fs(e,t,n,r),t.child}var Vs,Gs,Xs,Ks,Ys={dehydrated:null,treeContext:null,retryLane:0};function Qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Js(e,t,n){var r,o=t.pendingProps,i=gl.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Hi(gl,1&i),null===e)return Ea(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=Qu(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Yu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Qs(n),t.memoizedState=Ys,e):Zs(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,ec(e,t,a,r=Es(Error(we(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Qu({mode:"visible",children:r.children},o,0,null),(i=Yu(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&Ra(t,e.child,null,a),t.child.memoizedState=Qs(a),t.memoizedState=Ys,i);if(!(1&t.mode))return ec(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,ec(e,t,a,r=Es(i=Error(we(419)),r,void 0))}if(l=!!(a&e.childLanes),Ts||l){if(null!==(r=Uc)){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=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ya(e,o),bu(r,e,o,-1))}return Iu(),ec(e,t,a,r=Es(Error(we(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Hu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ya=Ei(o.nextSibling),va=t,wa=!0,xa=null,null!==e&&(ca[ua++]=fa,ca[ua++]=pa,ca[ua++]=da,fa=e.id,pa=e.overflow,da=t),t=Zs(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 1&l||t.child===i?(o=Xu(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=Xu(r,a):(a=Yu(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)?Qs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ys,o}return e=(a=e.child).sibling,o=Xu(a,{mode:"visible",children:o.children}),!(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 Zs(e,t){return(t=Qu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ec(e,t,n,r){return null!==r&&Ia(r),Ra(t,e.child,null,n),(e=Zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tc(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ua(e.return,t,n)}function nc(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 rc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fs(e,t,r.children,n),2&(r=gl.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tc(e,n,t);else if(19===e.tag)tc(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(gl,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ml(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),nc(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===ml(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nc(t,!0,n,null,i);break;case"together":nc(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function oc(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ic(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Qc|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(we(153));if(null!==t.child){for(n=Xu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Xu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ac(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 lc(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 sc(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 lc(t),null;case 1:case 17:return Xi(t.type)&&Ki(),lc(t),null;case 3:return r=t.stateNode,fl(),Bi(qi),Bi(Ui),vl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||($a(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==xa&&(xu(xa),xa=null))),Gs(e,t),lc(t),null;case 5:hl(t);var o=ul(cl.current);if(n=t.type,null!==e&&null!=t.stateNode)Xs(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 lc(t),null}if(e=ul(ll.current),$a(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Oi]=t,r[_i]=i,e=!!(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<Qo.length;o++)ti(Qo[o],r);break;case"source":ti("error",r);break;case"img":case"image":case"link":ti("error",r),ti("load",r);break;case"details":ti("toggle",r);break;case"input":dt(r,i),ti("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ti("invalid",r);break;case"textarea":yt(r,i),ti("invalid",r)}for(var a in Pt(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",""+l]):ke.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&ti("scroll",r)}switch(n){case"input":lt(r),ht(r,i,!0);break;case"textarea":lt(r),xt(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=gi)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=kt(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/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[_i]=r,Vs(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;o<Qo.length;o++)ti(Qo[o],e);o=r;break;case"source":ti("error",e),o=r;break;case"img":case"image":case"link":ti("error",e),ti("load",e),o=r;break;case"details":ti("toggle",e),o=r;break;case"input":dt(e,r),o=ut(e,r),ti("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Je({},r,{value:void 0}),ti("invalid",e);break;case"textarea":yt(e,r),o=vt(e,r),ti("invalid",e)}for(i in Pt(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?Nt(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&Dt(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&$t(e,s):"number"==typeof s&&$t(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(ke.hasOwnProperty(i)?null!=s&&"onScroll"===i&&ti("scroll",e):null!=s&&Te(e,i,s,a))}switch(n){case"input":lt(e),ht(e,r,!1);break;case"textarea":lt(e),xt(e);break;case"option":null!=r.value&&e.setAttribute("value",""+it(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?bt(e,!!r.multiple,i,!1):null!=r.defaultValue&&bt(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=gi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return lc(t),null;case 6:if(e&&null!=t.stateNode)Ks(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(we(166));if(n=ul(cl.current),ul(ll.current),$a(t)){if(r=t.stateNode,n=t.memoizedProps,r[Oi]=t,(i=r.nodeValue!==n)&&null!==(e=va))switch(e.tag){case 3:hi(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&hi(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Oi]=t,t.stateNode=r}return lc(t),null;case 13:if(Bi(gl),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(wa&&null!==ya&&1&t.mode&&!(128&t.flags))Oa(),_a(),t.flags|=98560,i=!1;else if(i=$a(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(we(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(we(317));i[Oi]=t}else _a(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lc(t),i=!1}else null!==xa&&(xu(xa),xa=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&gl.current?0===Kc&&(Kc=3):Iu())),null!==t.updateQueue&&(t.flags|=4),lc(t),null);case 4:return fl(),Gs(e,t),null===e&&oi(t.stateNode.containerInfo),lc(t),null;case 10:return Wa(t.type._context),lc(t),null;case 19:if(Bi(gl),null===(i=t.memoizedState))return lc(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)ac(i,!1);else{if(0!==Kc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=ml(e))){for(t.flags|=128,ac(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Hi(gl,1&gl.current|2),t.child}e=e.sibling}null!==i.tail&&pn()>ru&&(t.flags|=128,r=!0,ac(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ml(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ac(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!wa)return lc(t),null}else 2*pn()-i.renderingStartTime>ru&&1073741824!==n&&(t.flags|=128,r=!0,ac(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=pn(),t.sibling=null,n=gl.current,Hi(gl,r?1&n|2:1&n),t):(lc(t),null);case 22:case 23:return Du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Gc)&&(lc(t),6&t.subtreeFlags&&(t.flags|=8192)):lc(t),null;case 24:case 25:return null}throw Error(we(156,t.tag))}function cc(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 fl(),Bi(qi),Bi(Ui),vl(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return hl(t),null;case 13:if(Bi(gl),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(gl),null;case 4:return fl(),null;case 10:return Wa(t.type._context),null;case 22:case 23:return Du(),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(){},Xs=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ul(ll.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 Pt(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&&(ke.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&&(ke.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)}},Ks=function(e,t,n,r){n!==r&&(t.flags|=4)};var uc=!1,dc=!1,fc="function"==typeof WeakSet?WeakSet:Set,pc=null;function hc(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Lu(e,t,r)}else n.current=null}function gc(e,t,n){try{n()}catch(r){Lu(e,t,r)}}var mc=!1;function bc(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&&gc(t,n,i)}o=o.next}while(o!==r)}}function vc(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 yc(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 wc(e){var t=e.alternate;null!==t&&(e.alternate=null,wc(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Oi],delete t[_i],delete t[Ni],delete t[ji],delete t[Pi])),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 xc(e){return 5===e.tag||3===e.tag||4===e.tag}function kc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||xc(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=gi));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 Cc(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(Cc(e,t,n),e=e.sibling;null!==e;)Cc(e,t,n),e=e.sibling}var Ec=null,Dc=!1;function $c(e,t,n){for(n=n.child;null!==n;)Oc(e,t,n),n=n.sibling}function Oc(e,t,n){if(xn&&"function"==typeof xn.onCommitFiberUnmount)try{xn.onCommitFiberUnmount(wn,n)}catch(l){}switch(n.tag){case 5:dc||hc(n,t);case 6:var r=Ec,o=Dc;Ec=null,$c(e,t,n),Dc=o,null!==(Ec=r)&&(Dc?(e=Ec,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Ec.removeChild(n.stateNode));break;case 18:null!==Ec&&(Dc?(e=Ec,n=n.stateNode,8===e.nodeType?Ci(e.parentNode,n):1===e.nodeType&&Ci(e,n),or(e)):Ci(Ec,n.stateNode));break;case 4:r=Ec,o=Dc,Ec=n.stateNode.containerInfo,Dc=!0,$c(e,t,n),Ec=r,Dc=o;break;case 0:case 11:case 14:case 15:if(!dc&&(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&&(2&i||4&i)&&gc(n,t,a),o=o.next}while(o!==r)}$c(e,t,n);break;case 1:if(!dc&&(hc(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Lu(n,t,l)}$c(e,t,n);break;case 21:$c(e,t,n);break;case 22:1&n.mode?(dc=(r=dc)||null!==n.memoizedState,$c(e,t,n),dc=r):$c(e,t,n);break;default:$c(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 fc),t.forEach((function(t){var r=Wu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ic(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:Ec=l.stateNode,Dc=!1;break e;case 3:case 4:Ec=l.stateNode.containerInfo,Dc=!0;break e}l=l.return}if(null===Ec)throw Error(we(160));Oc(i,a,o),Ec=null,Dc=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(c){Lu(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Nc(t,e),t=t.sibling}function Nc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ic(t,e),jc(e),4&r){try{bc(3,e,e.return),vc(3,e)}catch(x6){Lu(e,e.return,x6)}try{bc(5,e,e.return)}catch(x6){Lu(e,e.return,x6)}}break;case 1:Ic(t,e),jc(e),512&r&&null!==n&&hc(n,n.return);break;case 5:if(Ic(t,e),jc(e),512&r&&null!==n&&hc(n,n.return),32&e.flags){var o=e.stateNode;try{$t(o,"")}catch(x6){Lu(e,e.return,x6)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&ft(o,i),Tt(l,a);var c=Tt(l,i);for(a=0;a<s.length;a+=2){var u=s[a],d=s[a+1];"style"===u?Nt(o,d):"dangerouslySetInnerHTML"===u?Dt(o,d):"children"===u?$t(o,d):Te(o,u,d,c)}switch(l){case"input":pt(o,i);break;case"textarea":wt(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?bt(o,!!i.multiple,p,!1):f!==!!i.multiple&&(null!=i.defaultValue?bt(o,!!i.multiple,i.defaultValue,!0):bt(o,!!i.multiple,i.multiple?[]:"",!1))}o[_i]=i}catch(x6){Lu(e,e.return,x6)}}break;case 6:if(Ic(t,e),jc(e),4&r){if(null===e.stateNode)throw Error(we(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(x6){Lu(e,e.return,x6)}}break;case 3:if(Ic(t,e),jc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{or(t.containerInfo)}catch(x6){Lu(e,e.return,x6)}break;case 4:default:Ic(t,e),jc(e);break;case 13:Ic(t,e),jc(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(nu=pn())),4&r&&_c(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(dc=(c=dc)||u,Ic(t,e),dc=c):Ic(t,e),jc(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(pc=e,u=e.child;null!==u;){for(d=pc=u;null!==pc;){switch(p=(f=pc).child,f.tag){case 0:case 11:case 14:case 15:bc(4,f,f.return);break;case 1:hc(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(x6){Lu(r,n,x6)}}break;case 5:hc(f,f.return);break;case 22:if(null!==f.memoizedState){Rc(d);continue}}null!==p?(p.return=f,pc=p):Rc(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=It("display",a))}catch(x6){Lu(e,e.return,x6)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(x6){Lu(e,e.return,x6)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ic(t,e),jc(e),4&r&&_c(e);case 21:}}function jc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(xc(n)){var r=n;break e}n=n.return}throw Error(we(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&($t(o,""),r.flags&=-33),Cc(e,kc(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;Sc(e,kc(e),i);break;default:throw Error(we(161))}}catch(a){Lu(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Pc(e,t,n){pc=e,Tc(e)}function Tc(e,t,n){for(var r=!!(1&e.mode);null!==pc;){var o=pc,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||uc;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||dc;l=uc;var c=dc;if(uc=a,(dc=s)&&!c)for(pc=o;null!==pc;)s=(a=pc).child,22===a.tag&&null!==a.memoizedState?Ac(o):null!==s?(s.return=a,pc=s):Ac(o);for(;null!==i;)pc=i,Tc(i),i=i.sibling;pc=o,uc=l,dc=c}Fc(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,pc=i):Fc(e)}}function Fc(e){for(;null!==pc;){var t=pc;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:dc||vc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!dc)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:bs(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&il(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}il(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&or(d)}}}break;default:throw Error(we(163))}dc||512&t.flags&&yc(t)}catch(f){Lu(t,t.return,f)}}if(t===e){pc=null;break}if(null!==(n=t.sibling)){n.return=t.return,pc=n;break}pc=t.return}}function Rc(e){for(;null!==pc;){var t=pc;if(t===e){pc=null;break}var n=t.sibling;if(null!==n){n.return=t.return,pc=n;break}pc=t.return}}function Ac(e){for(;null!==pc;){var t=pc;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vc(4,t)}catch(s){Lu(t,n,s)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(s){Lu(t,o,s)}}var i=t.return;try{yc(t)}catch(s){Lu(t,i,s)}break;case 5:var a=t.return;try{yc(t)}catch(s){Lu(t,a,s)}}}catch(s){Lu(t,t.return,s)}if(t===e){pc=null;break}var l=t.sibling;if(null!==l){l.return=t.return,pc=l;break}pc=t.return}}var Mc,Lc=Math.ceil,zc=Fe.ReactCurrentDispatcher,Bc=Fe.ReactCurrentOwner,Hc=Fe.ReactCurrentBatchConfig,Wc=0,Uc=null,qc=null,Vc=0,Gc=0,Xc=zi(0),Kc=0,Yc=null,Qc=0,Jc=0,Zc=0,eu=null,tu=null,nu=0,ru=1/0,ou=null,iu=!1,au=null,lu=null,su=!1,cu=null,uu=0,du=0,fu=null,pu=-1,hu=0;function gu(){return 6&Wc?pn():-1!==pu?pu:pu=pn()}function mu(e){return 1&e.mode?2&Wc&&0!==Vc?Vc&-Vc:null!==Na.transition?(0===hu&&(hu=Nn()),hu):0!==(e=Fn)?e:e=void 0===(e=window.event)?16:fr(e.type):1}function bu(e,t,n,r){if(50<du)throw du=0,fu=null,Error(we(185));Pn(e,n,r),2&Wc&&e===Uc||(e===Uc&&(!(2&Wc)&&(Jc|=n),4===Kc&&ku(e,Vc)),vu(e,r),1===n&&0===Wc&&!(1&t.mode)&&(ru=pn()+500,ta&&oa()))}function vu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-kn(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=_n(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=On(e,e===Uc?Vc:0);if(0===r)null!==n&&un(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&un(n),1===t)0===e.tag?function(e){ta=!0,ra(e)}(Su.bind(null,e)):ra(Su.bind(null,e)),ki((function(){!(6&Wc)&&oa()})),n=null;else{switch(Rn(r)){case 1:n=gn;break;case 4:n=mn;break;case 16:default:n=bn;break;case 536870912:n=yn}n=Uu(n,yu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yu(e,t){if(pu=-1,hu=0,6&Wc)throw Error(we(327));var n=e.callbackNode;if(Au()&&e.callbackNode!==n)return null;var r=On(e,e===Uc?Vc:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=Nu(e,r);else{t=r;var o=Wc;Wc|=2;var i=_u();for(Uc===e&&Vc===t||(ou=null,ru=pn()+500,$u(e,t));;)try{Pu();break}catch(l){Ou(e,l)}Ha(),zc.current=i,Wc=o,null!==qc?t=0:(Uc=null,Vc=0,t=Kc)}if(0!==t){if(2===t&&(0!==(o=In(e))&&(r=o,t=wu(e,o))),1===t)throw n=Yc,$u(e,0),ku(e,r),vu(e,pn()),n;if(6===t)ku(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!So(i(),o))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=Nu(e,r),2===t&&(i=In(e),0!==i&&(r=i,t=wu(e,i))),1!==t)))throw n=Yc,$u(e,0),ku(e,r),vu(e,pn()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(we(345));case 2:case 5:Ru(e,tu,ou);break;case 3:if(ku(e,r),(130023424&r)===r&&10<(t=nu+500-pn())){if(0!==On(e,0))break;if(((o=e.suspendedLanes)&r)!==r){gu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yi(Ru.bind(null,e,tu,ou),t);break}Ru(e,tu,ou);break;case 4:if(ku(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-kn(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=pn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Lc(r/1960))-r)){e.timeoutHandle=yi(Ru.bind(null,e,tu,ou),r);break}Ru(e,tu,ou);break;default:throw Error(we(329))}}}return vu(e,pn()),e.callbackNode===n?yu.bind(null,e):null}function wu(e,t){var n=eu;return e.current.memoizedState.isDehydrated&&($u(e,t).flags|=256),2!==(e=Nu(e,t))&&(t=tu,tu=n,null!==t&&xu(t)),e}function xu(e){null===tu?tu=e:tu.push.apply(tu,e)}function ku(e,t){for(t&=~Zc,t&=~Jc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kn(t),r=1<<n;e[n]=-1,t&=~r}}function Su(e){if(6&Wc)throw Error(we(327));Au();var t=On(e,0);if(!(1&t))return vu(e,pn()),null;var n=Nu(e,t);if(0!==e.tag&&2===n){var r=In(e);0!==r&&(t=r,n=wu(e,r))}if(1===n)throw n=Yc,$u(e,0),ku(e,t),vu(e,pn()),n;if(6===n)throw Error(we(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ru(e,tu,ou),vu(e,pn()),null}function Cu(e,t){var n=Wc;Wc|=1;try{return e(t)}finally{0===(Wc=n)&&(ru=pn()+500,ta&&oa())}}function Eu(e){null!==cu&&0===cu.tag&&!(6&Wc)&&Au();var t=Wc;Wc|=1;var n=Hc.transition,r=Fn;try{if(Hc.transition=null,Fn=1,e)return e()}finally{Fn=r,Hc.transition=n,!(6&(Wc=t))&&oa()}}function Du(){Gc=Xc.current,Bi(Xc)}function $u(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wi(n)),null!==qc)for(n=qc.return;null!==n;){var r=n;switch(ba(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ki();break;case 3:fl(),Bi(qi),Bi(Ui),vl();break;case 5:hl(r);break;case 4:fl();break;case 13:case 19:Bi(gl);break;case 10:Wa(r.type._context);break;case 22:case 23:Du()}n=n.return}if(Uc=e,qc=e=Xu(e.current,null),Vc=Gc=t,Kc=0,Yc=null,Zc=Jc=Qc=0,tu=eu=null,null!==Ga){for(t=0;t<Ga.length;t++)if(null!==(r=(n=Ga[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ga=null}return e}function Ou(e,t){for(;;){var n=qc;try{if(Ha(),yl.current=ps,El){for(var r=kl.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}El=!1}if(xl=0,Cl=Sl=kl=null,Dl=!1,$l=0,Bc.current=null,null===n||null===n.return){Kc=1,Yc=t,qc=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Vc,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,u=l,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=Ns(a);if(null!==p){p.flags&=-257,js(p,a,l,0,t),1&p.mode&&Is(i,c,t),s=c;var h=(t=p).updateQueue;if(null===h){var g=new Set;g.add(s),t.updateQueue=g}else h.add(s);break e}if(!(1&t)){Is(i,c,t),Iu();break e}s=Error(we(426))}else if(wa&&1&l.mode){var m=Ns(a);if(null!==m){!(65536&m.flags)&&(m.flags|=256),js(m,a,l,0,t),Ia(Cs(s,l));break e}}i=s=Cs(s,l),4!==Kc&&(Kc=2),null===eu?eu=[i]:eu.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,rl(i,Os(0,s,t));break e;case 1:l=s;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==lu&&lu.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,rl(i,_s(i,l,t));break e}}i=i.return}while(null!==i)}Fu(n)}catch(y){t=y,qc===n&&null!==n&&(qc=n=n.return);continue}break}}function _u(){var e=zc.current;return zc.current=ps,null===e?ps:e}function Iu(){0!==Kc&&3!==Kc&&2!==Kc||(Kc=4),null===Uc||!(268435455&Qc)&&!(268435455&Jc)||ku(Uc,Vc)}function Nu(e,t){var n=Wc;Wc|=2;var r=_u();for(Uc===e&&Vc===t||(ou=null,$u(e,t));;)try{ju();break}catch(b6){Ou(e,b6)}if(Ha(),Wc=n,zc.current=r,null!==qc)throw Error(we(261));return Uc=null,Vc=0,Kc}function ju(){for(;null!==qc;)Tu(qc)}function Pu(){for(;null!==qc&&!dn();)Tu(qc)}function Tu(e){var t=Mc(e.alternate,e,Gc);e.memoizedProps=e.pendingProps,null===t?Fu(e):qc=t,Bc.current=null}function Fu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=cc(n,t)))return n.flags&=32767,void(qc=n);if(null===e)return Kc=6,void(qc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=sc(n,t,Gc)))return void(qc=n);if(null!==(t=t.sibling))return void(qc=t);qc=t=e}while(null!==t);0===Kc&&(Kc=5)}function Ru(e,t,n){var r=Fn,o=Hc.transition;try{Hc.transition=null,Fn=1,function(e,t,n,r){do{Au()}while(null!==cu);if(6&Wc)throw Error(we(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(we(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-kn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Uc&&(qc=Uc=null,Vc=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||su||(su=!0,Uu(bn,(function(){return Au(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=Hc.transition,Hc.transition=null;var a=Fn;Fn=1;var l=Wc;Wc|=4,Bc.current=null,function(e,t){if(mi=ar,_o(e=Oo())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var a=0,l=-1,s=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===o&&(l=a),f===i&&++u===r&&(s=a),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(bi={focusedElem:e,selectionRange:n},ar=!1,pc=t;null!==pc;)if(e=(t=pc).child,1028&t.subtreeFlags&&null!==e)e.return=t,pc=e;else for(;null!==pc;){t=pc;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,m=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:bs(t.type,g),m);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(we(163))}}catch(w){Lu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,pc=e;break}pc=t.return}h=mc,mc=!1}(e,n),Nc(n,e),Io(bi),ar=!!mi,bi=mi=null,e.current=n,Pc(n),fn(),Wc=l,Fn=a,Hc.transition=i}else e.current=n;if(su&&(su=!1,cu=e,uu=o),i=e.pendingLanes,0===i&&(lu=null),function(e){if(xn&&"function"==typeof xn.onCommitFiberRoot)try{xn.onCommitFiberRoot(wn,e,void 0,!(128&~e.current.flags))}catch(t){}}(n.stateNode),vu(e,pn()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(iu)throw iu=!1,e=au,au=null,e;!!(1&uu)&&0!==e.tag&&Au(),i=e.pendingLanes,1&i?e===fu?du++:(du=0,fu=e):du=0,oa()}(e,t,n,r)}finally{Hc.transition=o,Fn=r}return null}function Au(){if(null!==cu){var e=Rn(uu),t=Hc.transition,n=Fn;try{if(Hc.transition=null,Fn=16>e?16:e,null===cu)var r=!1;else{if(e=cu,cu=null,uu=0,6&Wc)throw Error(we(331));var o=Wc;for(Wc|=4,pc=e.current;null!==pc;){var i=pc,a=i.child;if(16&pc.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(pc=c;null!==pc;){var u=pc;switch(u.tag){case 0:case 11:case 15:bc(8,u,i)}var d=u.child;if(null!==d)d.return=u,pc=d;else for(;null!==pc;){var f=(u=pc).sibling,p=u.return;if(wc(u),u===c){pc=null;break}if(null!==f){f.return=p,pc=f;break}pc=p}}}var h=i.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}pc=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,pc=a;else e:for(;null!==pc;){if(2048&(i=pc).flags)switch(i.tag){case 0:case 11:case 15:bc(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,pc=b;break e}pc=i.return}}var v=e.current;for(pc=v;null!==pc;){var y=(a=pc).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,pc=y;else e:for(a=v;null!==pc;){if(2048&(l=pc).flags)try{switch(l.tag){case 0:case 11:case 15:vc(9,l)}}catch(x){Lu(l,l.return,x)}if(l===a){pc=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,pc=w;break e}pc=l.return}}if(Wc=o,oa(),xn&&"function"==typeof xn.onPostCommitFiberRoot)try{xn.onPostCommitFiberRoot(wn,e)}catch(x){}r=!0}return r}finally{Fn=n,Hc.transition=t}}return!1}function Mu(e,t,n){e=tl(e,t=Os(0,t=Cs(n,t),1),1),t=gu(),null!==e&&(Pn(e,1,t),vu(e,t))}function Lu(e,t,n){if(3===e.tag)Mu(e,e,n);else for(;null!==t;){if(3===t.tag){Mu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===lu||!lu.has(r))){t=tl(t,e=_s(t,e=Cs(n,e),1),1),e=gu(),null!==t&&(Pn(t,1,e),vu(t,e));break}}t=t.return}}function zu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=gu(),e.pingedLanes|=e.suspendedLanes&n,Uc===e&&(Vc&n)===n&&(4===Kc||3===Kc&&(130023424&Vc)===Vc&&500>pn()-nu?$u(e,0):Zc|=n),vu(e,t)}function Bu(e,t){0===t&&(1&e.mode?(t=Dn,!(130023424&(Dn<<=1))&&(Dn=4194304)):t=1);var n=gu();null!==(e=Ya(e,t))&&(Pn(e,t,n),vu(e,n))}function Hu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Bu(e,n)}function Wu(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),Bu(e,n)}function Uu(e,t){return cn(e,t)}function qu(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 qu(e,t,n,r)}function Gu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Xu(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 Ku(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 Me:return Yu(n.children,o,i,t);case Le:a=8,o|=8;break;case ze:return(e=Vu(12,n,t,2|o)).elementType=ze,e.lanes=i,e;case Ue:return(e=Vu(13,n,t,o)).elementType=Ue,e.lanes=i,e;case qe:return(e=Vu(19,n,t,o)).elementType=qe,e.lanes=i,e;case Xe:return Qu(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 Ve:a=14;break e;case Ge:a=16,r=null;break e}throw Error(we(130,null==e?e:typeof e,""))}return(t=Vu(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Yu(e,t,n,r){return(e=Vu(7,e,r,t)).lanes=n,e}function Qu(e,t,n,r){return(e=Vu(22,e,r,t)).elementType=Xe,e.lanes=n,e.stateNode={isHidden:!1},e}function Ju(e,t,n){return(e=Vu(6,e,null,t)).lanes=n,e}function Zu(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 ed(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=jn(0),this.expirationTimes=jn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function td(e,t,n,r,o,i,a,l,s){return e=new ed(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},Ja(i),e}function nd(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 rd(e,t,n,r,o,i,a,l,s){return(e=td(n,r,!0,e,0,i,0,l,s)).context=nd(null),n=e.current,(i=el(r=gu(),o=mu(n))).callback=null!=t?t:null,tl(n,i,o),e.current.lanes=o,Pn(e,o,r),vu(e,r),e}function od(e,t,n,r){var o=t.current,i=gu(),a=mu(o);return n=nd(n),null===t.context?t.context=n:t.pendingContext=n,(t=el(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=tl(o,t,a))&&(bu(e,o,a,i),nl(e,o,a)),a}function id(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ad(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ld(e,t){ad(e,t),(e=e.alternate)&&ad(e,t)}Mc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||qi.current)Ts=!0;else{if(!(e.lanes&n||128&t.flags))return Ts=!1,function(e,t,n){switch(t.tag){case 3:Us(t),_a();break;case 5:pl(t);break;case 1:Xi(t.type)&&Ji(t);break;case 4:dl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Hi(Ma,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Hi(gl,1&gl.current),t.flags|=128,null):n&t.child.childLanes?Js(e,t,n):(Hi(gl,1&gl.current),null!==(e=ic(e,t,n))?e.sibling:null);Hi(gl,1&gl.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return rc(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Hi(gl,gl.current),r)break;return null;case 22:case 23:return t.lanes=0,Ls(e,t,n)}return ic(e,t,n)}(e,t,n);Ts=!!(131072&e.flags)}else Ts=!1,wa&&1048576&t.flags&&ga(t,sa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oc(e,t),e=t.pendingProps;var o=Gi(t,Ui.current);qa(t,n),o=Nl(null,t,r,e,o,n);var i=jl();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xi(r)?(i=!0,Ji(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ja(t),o.updater=ys,t.stateNode=o,o._reactInternals=t,Ss(t,r,e,n),t=Ws(null,t,r,!0,i,n)):(t.tag=0,wa&&i&&ma(t),Fs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oc(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Gu(e)?1:0;if(null!=e){if((e=e.$$typeof)===We)return 11;if(e===Ve)return 14}return 2}(r),e=bs(r,e),o){case 0:t=Bs(null,t,r,e,n);break e;case 1:t=Hs(null,t,r,e,n);break e;case 11:t=Rs(null,t,r,e,n);break e;case 14:t=As(null,t,r,bs(r.type,e),n);break e}throw Error(we(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Bs(e,t,r,o=t.elementType===r?o:bs(r,o),n);case 1:return r=t.type,o=t.pendingProps,Hs(e,t,r,o=t.elementType===r?o:bs(r,o),n);case 3:e:{if(Us(t),null===e)throw Error(we(387));r=t.pendingProps,o=(i=t.memoizedState).element,Za(e,t),ol(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=qs(e,t,r,n,o=Cs(Error(we(423)),t));break e}if(r!==o){t=qs(e,t,r,n,o=Cs(Error(we(424)),t));break e}for(ya=Ei(t.stateNode.containerInfo.firstChild),va=t,wa=!0,xa=null,n=Aa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(_a(),r===o){t=ic(e,t,n);break e}Fs(e,t,r,n)}t=t.child}return t;case 5:return pl(t),null===e&&Ea(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,vi(r,o)?a=null:null!==i&&vi(r,i)&&(t.flags|=32),zs(e,t),Fs(e,t,a,n),t.child;case 6:return null===e&&Ea(t),null;case 13:return Js(e,t,n);case 4:return dl(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ra(t,null,r,n):Fs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Rs(e,t,r,o=t.elementType===r?o:bs(r,o),n);case 7:return Fs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Hi(Ma,r._currentValue),r._currentValue=a,null!==i)if(So(i.value,a)){if(i.children===o.children&&!qi.current){t=ic(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=el(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Ua(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(we(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ua(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Fs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,qa(t,n),r=r(o=Va(o)),t.flags|=1,Fs(e,t,r,n),t.child;case 14:return o=bs(r=t.type,t.pendingProps),As(e,t,r,o=bs(r.type,o),n);case 15:return Ms(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bs(r,o),oc(e,t),t.tag=1,Xi(r)?(e=!0,Ji(t)):e=!1,qa(t,n),xs(t,r,o),Ss(t,r,o,n),Ws(null,t,r,!0,e,n);case 19:return rc(e,t,n);case 22:return Ls(e,t,n)}throw Error(we(156,t.tag))};var sd="function"==typeof reportError?reportError:function(e){console.error(e)};function cd(e){this._internalRoot=e}function ud(e){this._internalRoot=e}function dd(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function fd(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function pd(){}function hd(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=id(a);l.call(e)}}od(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=id(a);i.call(e)}}var a=rd(t,r,e,0,null,!1,0,"",pd);return e._reactRootContainer=a,e[Ii]=a.current,oi(8===e.nodeType?e.parentNode:e),Eu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=id(s);l.call(e)}}var s=td(e,0,!1,null,0,!1,0,"",pd);return e._reactRootContainer=s,e[Ii]=s.current,oi(8===e.nodeType?e.parentNode:e),Eu((function(){od(t,s,n,r)})),s}(n,t,e,o,r);return id(a)}ud.prototype.render=cd.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(we(409));od(e,t,null,null)},ud.prototype.unmount=cd.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Eu((function(){od(null,e,null,null)})),t[Ii]=null}},ud.prototype.unstable_scheduleHydration=function(e){if(e){var t=zn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kn.length&&0!==t&&t<Kn[n].priority;n++);Kn.splice(n,0,e),0===n&&Zn(e)}},An=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$n(t.pendingLanes);0!==n&&(Tn(t,1|n),vu(t,pn()),!(6&Wc)&&(ru=pn()+500,oa()))}break;case 13:Eu((function(){var t=Ya(e,1);if(null!==t){var n=gu();bu(t,e,1,n)}})),ld(e,1)}},Mn=function(e){if(13===e.tag){var t=Ya(e,134217728);if(null!==t)bu(t,e,134217728,gu());ld(e,134217728)}},Ln=function(e){if(13===e.tag){var t=mu(e),n=Ya(e,t);if(null!==n)bu(n,e,t,gu());ld(e,t)}},zn=function(){return Fn},Bn=function(e,t){var n=Fn;try{return Fn=e,t()}finally{Fn=n}},At=function(e,t,n){switch(t){case"input":if(pt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ai(r);if(!o)throw Error(we(90));st(r),pt(r,o)}}}break;case"textarea":wt(e,n);break;case"select":null!=(t=n.value)&&bt(e,!!n.multiple,t,!1)}},Wt=Cu,Ut=Eu;var gd={usingClientEntryPoint:!1,Events:[Fi,Ri,Ai,Bt,Ht,Cu]},md={findFiberByHostInstance:Ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bd={bundleType:md.bundleType,version:md.version,rendererPackageName:md.rendererPackageName,rendererConfig:md.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ln(e))?null:e.stateNode},findFiberByHostInstance:md.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vd.isDisabled&&vd.supportsFiber)try{wn=vd.inject(bd),xn=vd}catch(Et){}}he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gd,he.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dd(t))throw Error(we(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ae,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},he.createRoot=function(e,t){if(!dd(e))throw Error(we(299));var n=!1,r="",o=sd;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=td(e,1,!1,null,0,n,0,r,o),e[Ii]=t.current,oi(8===e.nodeType?e.parentNode:e),new cd(t)},he.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(we(188));throw e=Object.keys(e).join(","),Error(we(268,e))}return e=null===(e=ln(t))?null:e.stateNode},he.flushSync=function(e){return Eu(e)},he.hydrate=function(e,t,n){if(!fd(t))throw Error(we(200));return hd(null,e,t,!0,n)},he.hydrateRoot=function(e,t,n){if(!dd(e))throw Error(we(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=sd;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=rd(t,null,e,1,null!=n?n:null,o,0,i,a),e[Ii]=t.current,oi(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ud(t)},he.render=function(e,t,n){if(!fd(t))throw Error(we(200));return hd(null,e,t,!1,n)},he.unmountComponentAtNode=function(e){if(!fd(e))throw Error(we(40));return!!e._reactRootContainer&&(Eu((function(){hd(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ii]=null}))})),!0)},he.unstable_batchedUpdates=Cu,he.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fd(n))throw Error(we(200));if(null==e||void 0===e._reactInternals)throw Error(we(38));return hd(e,t,n,!1,r)},he.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),pe.exports=he;var yd=pe.exports;const wd=o(yd),xd=n({__proto__:null,default:wd},[yd]);var kd,Sd=yd;function Cd(e){return(Cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ed(e){var t=function(e,t){if("object"!=Cd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Cd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cd(t)?t:t+""}function Dd(e,t,n){return(t=Ed(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $d(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 Od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$d(Object(n),!0).forEach((function(t){Dd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}
|
||
/**
|
||
* @license lucide-react v0.378.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/kd=Sd.createRoot,Sd.hydrateRoot;const Id=(...e)=>e.filter(((e,t,n)=>Boolean(e)&&n.indexOf(e)===t)).join(" ")
|
||
/**
|
||
* @license lucide-react v0.378.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/;var Nd={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.378.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jd=U.forwardRef((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...l},s)=>U.createElement("svg",{ref:s,...Nd,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Id("lucide",o),...l},[...a.map((([e,t])=>U.createElement(e,t))),...Array.isArray(i)?i:[i]]))),Pd=(e,t)=>{const n=U.forwardRef((({className:n,...r},o)=>{return U.createElement(jd,{ref:o,iconNode:t,className:Id(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var i}));return n.displayName=`${e}`,n},Td=Pd("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"}]]),Fd=Pd("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"}]]),Rd=Pd("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Ad=Pd("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Md=Pd("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Ld=Pd("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),zd=Pd("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Bd=Pd("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),Hd=Pd("CircleX",[["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"}]]),Wd=Pd("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"}]]),Ud=Pd("FileClock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),qd=Pd("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"}]]),Vd=Pd("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"}]]),Gd=Pd("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"}]]),Xd=Pd("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"}]]),Kd=Pd("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Yd=Pd("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=Pd("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Jd=Pd("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),Zd=Pd("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"}]]),ef=Pd("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),tf=Pd("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),nf=Pd("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),rf=Pd("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),of=Pd("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),af=Pd("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"}]]),lf=Pd("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"}]]),sf=Pd("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"}]]),cf=Pd("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=Pd("TriangleAlert",[["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-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),df=Pd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ff=Pd("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"}]]),pf=Pd("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"}]]);
|
||
/**
|
||
* @license lucide-react v0.378.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/function hf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var gf=function(e){return e||"layoutkit"},mf=function(e,t){if(t)return"row";switch(e){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},bf=function(e){return"number"==typeof e?"".concat(e,"px"):e};var vf=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(b6){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),yf="-ms-",wf="-moz-",xf="-webkit-",kf="comm",Sf="rule",Cf="decl",Ef="@keyframes",Df=Math.abs,$f=String.fromCharCode,Of=Object.assign;function _f(e){return e.trim()}function If(e,t,n){return e.replace(t,n)}function Nf(e,t){return e.indexOf(t)}function jf(e,t){return 0|e.charCodeAt(t)}function Pf(e,t,n){return e.slice(t,n)}function Tf(e){return e.length}function Ff(e){return e.length}function Rf(e,t){return t.push(e),e}var Af=1,Mf=1,Lf=0,zf=0,Bf=0,Hf="";function Wf(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Af,column:Mf,length:a,return:""}}function Uf(e,t){return Of(Wf("",null,null,"",null,null,0),e,{length:-e.length},t)}function qf(){return Bf=zf<Lf?jf(Hf,zf++):0,Mf++,10===Bf&&(Mf=1,Af++),Bf}function Vf(){return jf(Hf,zf)}function Gf(){return zf}function Xf(e,t){return Pf(Hf,e,t)}function Kf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yf(e){return Af=Mf=1,Lf=Tf(Hf=e),zf=0,[]}function Qf(e){return Hf="",e}function Jf(e){return _f(Xf(zf-1,tp(91===e?e+2:40===e?e+1:e)))}function Zf(e){for(;(Bf=Vf())&&Bf<33;)qf();return Kf(e)>2||Kf(Bf)>3?"":" "}function ep(e,t){for(;--t&&qf()&&!(Bf<48||Bf>102||Bf>57&&Bf<65||Bf>70&&Bf<97););return Xf(e,Gf()+(t<6&&32==Vf()&&32==qf()))}function tp(e){for(;qf();)switch(Bf){case e:return zf;case 34:case 39:34!==e&&39!==e&&tp(Bf);break;case 40:41===e&&tp(e);break;case 92:qf()}return zf}function np(e,t){for(;qf()&&e+Bf!==57&&(e+Bf!==84||47!==Vf()););return"/*"+Xf(t,zf-1)+"*"+$f(47===e?e:qf())}function rp(e){for(;!Kf(Vf());)qf();return Xf(e,zf)}function op(e){return Qf(ip("",null,null,null,[""],e=Yf(e),0,[0],e))}function ip(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,k=r,S=y;m;)switch(h=v,v=qf()){case 40:if(108!=h&&58==jf(S,d-1)){-1!=Nf(S+=If(Jf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=Jf(v);break;case 9:case 10:case 13:case 32:S+=Zf(h);break;case 92:S+=ep(Gf()-1,7);continue;case 47:switch(Vf()){case 42:case 47:Rf(lp(np(qf(),Gf()),t,n),s);break;default:S+="/"}break;case 123*g:l[c++]=Tf(S)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(S=If(S,/\f/g,"")),p>0&&Tf(S)-d&&Rf(p>32?sp(S+";",r,n,d-1):sp(If(S," ","")+";",r,n,d-2),s);break;case 59:S+=";";default:if(Rf(k=ap(S,t,n,c,u,o,l,y,w=[],x=[],d),i),123===v)if(0===u)ip(S,t,k,k,w,i,d,l,x);else switch(99===f&&110===jf(S,3)?100:f){case 100:case 108:case 109:case 115:ip(e,k,k,r&&Rf(ap(e,k,k,0,0,o,l,y,o,w=[],d),x),o,x,d,l,r?w:x);break;default:ip(S,k,k,k,[""],x,0,l,x)}}c=u=p=0,g=b=1,y=S="",d=a;break;case 58:d=1+Tf(S),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(Bf=zf>0?jf(Hf,--zf):0,Mf--,10===Bf&&(Mf=1,Af--),Bf))continue;switch(S+=$f(v),v*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(Tf(S)-1)*b,b=1;break;case 64:45===Vf()&&(S+=Jf(qf())),f=Vf(),u=d=Tf(y=S+=rp(Gf())),v++;break;case 45:45===h&&2==Tf(S)&&(g=0)}}return i}function ap(e,t,n,r,o,i,a,l,s,c,u){for(var d=o-1,f=0===o?i:[""],p=Ff(f),h=0,g=0,m=0;h<r;++h)for(var b=0,v=Pf(e,d+1,d=Df(g=a[h])),y=e;b<p;++b)(y=_f(g>0?f[b]+" "+v:If(v,/&\f/g,f[b])))&&(s[m++]=y);return Wf(e,t,n,0===o?Sf:l,s,c,u)}function lp(e,t,n){return Wf(e,t,n,kf,$f(Bf),Pf(e,2,-2),0)}function sp(e,t,n,r){return Wf(e,t,n,Cf,Pf(e,0,r),Pf(e,r+1,-1),r)}function cp(e,t){for(var n="",r=Ff(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function up(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Cf:return e.return=e.return||e.value;case kf:return"";case Ef:return e.return=e.value+"{"+cp(e.children,r)+"}";case Sf:e.value=e.props.join(",")}return Tf(n=cp(e.children,r))?e.return=e.value+"{"+n+"}":""}var dp=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function fp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pp=function(e,t,n){for(var r=0,o=0;r=o,o=Vf(),38===r&&12===o&&(t[n]=1),!Kf(o);)qf();return Xf(e,zf)},hp=function(e,t){return Qf(function(e,t){var n=-1,r=44;do{switch(Kf(r)){case 0:38===r&&12===Vf()&&(t[n]=1),e[n]+=pp(zf-1,t,n);break;case 2:e[n]+=Jf(r);break;case 4:if(44===r){e[++n]=58===Vf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=$f(r)}}while(r=qf());return e}(Yf(e),t))},gp=new WeakMap,mp=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||gp.get(n))&&!r){gp.set(e,!0);for(var o=[],i=hp(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},bp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vp(e,t){switch(function(e,t){return 45^jf(e,0)?(((t<<2^jf(e,0))<<2^jf(e,1))<<2^jf(e,2))<<2^jf(e,3):0}(e,t)){case 5103:return xf+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xf+e+wf+e+yf+e+e;case 6828:case 4268:return xf+e+yf+e+e;case 6165:return xf+e+yf+"flex-"+e+e;case 5187:return xf+e+If(e,/(\w+).+(:[^]+)/,xf+"box-$1$2"+yf+"flex-$1$2")+e;case 5443:return xf+e+yf+"flex-item-"+If(e,/flex-|-self/,"")+e;case 4675:return xf+e+yf+"flex-line-pack"+If(e,/align-content|flex-|-self/,"")+e;case 5548:return xf+e+yf+If(e,"shrink","negative")+e;case 5292:return xf+e+yf+If(e,"basis","preferred-size")+e;case 6060:return xf+"box-"+If(e,"-grow","")+xf+e+yf+If(e,"grow","positive")+e;case 4554:return xf+If(e,/([^-])(transform)/g,"$1"+xf+"$2")+e;case 6187:return If(If(If(e,/(zoom-|grab)/,xf+"$1"),/(image-set)/,xf+"$1"),e,"")+e;case 5495:case 3959:return If(e,/(image-set\([^]*)/,xf+"$1$`$1");case 4968:return If(If(e,/(.+:)(flex-)?(.*)/,xf+"box-pack:$3"+yf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xf+e+e;case 4095:case 3583:case 4068:case 2532:return If(e,/(.+)-inline(.+)/,xf+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tf(e)-1-t>6)switch(jf(e,t+1)){case 109:if(45!==jf(e,t+4))break;case 102:return If(e,/(.+:)(.+)-([^]+)/,"$1"+xf+"$2-$3$1"+wf+(108==jf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nf(e,"stretch")?vp(If(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==jf(e,t+1))break;case 6444:switch(jf(e,Tf(e)-3-(~Nf(e,"!important")&&10))){case 107:return If(e,":",":"+xf)+e;case 101:return If(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xf+(45===jf(e,14)?"inline-":"")+"box$3$1"+xf+"$2$3$1"+yf+"$2box$3")+e}break;case 5936:switch(jf(e,t+11)){case 114:return xf+e+yf+If(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xf+e+yf+If(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xf+e+yf+If(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xf+e+yf+e+e}return e}var yp=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Cf:e.return=vp(e.value,e.length);break;case Ef:return cp([Uf(e,{value:If(e.value,"@","@"+xf)})],r);case Sf: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 cp([Uf(e,{props:[If(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cp([Uf(e,{props:[If(t,/:(plac\w+)/,":"+xf+"input-$1")]}),Uf(e,{props:[If(t,/:(plac\w+)/,":-moz-$1")]}),Uf(e,{props:[If(t,/:(plac\w+)/,yf+"input-$1")]})],r)}return""}))}}],wp=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||yp,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<t.length;n++)a[t[n]]=!0;l.push(e)}));var s,c,u,d,f=[up,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[mp,bp].concat(i,f),u=Ff(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){s=n,cp(op(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new vf({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(l),h};var xp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kp=/[A-Z]|^ms/g,Sp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cp=function(e){return 45===e.charCodeAt(1)},Ep=function(e){return null!=e&&"boolean"!=typeof e},Dp=fp((function(e){return Cp(e)?e:e.replace(kp,"-$&").toLowerCase()})),$p=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Sp,(function(e,t,n){return _p={name:t,styles:n,next:_p},t}))}return 1===xp[e]||Cp(e)||"number"!=typeof t||0===t?t:t+"px"};function Op(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return _p={name:n.name,styles:n.styles,next:_p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)_p={name:r.name,styles:r.styles,next:_p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Op(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ep(a)&&(r+=Dp(i)+":"+$p(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Op(e,t,a);switch(i){case"animation":case"animationName":r+=Dp(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Ep(a[s])&&(r+=Dp(i)+":"+$p(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=_p,i=n(e);return _p=o,Op(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var _p,Ip=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Np=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";_p=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Op(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Op(n,t,e[a]),r&&(o+=i[a]);Ip.lastIndex=0;for(var l,s="";null!==(l=Ip.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=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:_p}};function jp(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Pp=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Tp=function(e,t,n){Pp(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 Fp(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Rp(e,t,n){var r=[],o=jp(e,r,n);return r.length<2?n:o+t(r)}var Ap=function(e){var t=wp(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;r<e;r++)n[r]=arguments[r];var o=Np(n,t.registered,void 0);return Tp(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Rp(t.registered,n,Mp(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Np(n,t.registered);Fp(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Np(n,t.registered),i="animation-"+o.name;return Fp(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:jp.bind(null,t.registered),merge:Rp.bind(null,t.registered,n)}},Mp=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},Lp=Ap({key:"css"});Lp.flush,Lp.hydrate;var zp=Lp.cx;Lp.merge,Lp.getRegisteredStyles,Lp.injectGlobal,Lp.keyframes;var Bp=Lp.css;Lp.sheet;var Hp,Wp=Lp.cache,Up=["visible","flex","gap","direction","horizontal","align","justify","distribution","height","width","padding","paddingInline","paddingBlock","as","internalClassName","className","children","wrap"];function qp(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 Vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qp(Object(n),!0).forEach((function(t){Dd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gp=U.forwardRef((function(e,t){var n=e.visible,r=e.flex,o=e.gap,i=e.direction,a=e.horizontal,l=e.align,s=e.justify,c=e.distribution,u=e.height,d=e.width,f=e.padding,p=e.paddingInline,h=e.paddingBlock,g=e.as,m=e.internalClassName,b=e.className,v=e.children,y=e.wrap,w=_d(e,Up),x=s||c,k=U.useMemo((function(){return function(e,t){return"row"===mf(e,t)}(i,a)&&!d&&function(e){if(e)return["space-between","space-around","space-evenly"].includes(e)}(x)?"100%":bf(d)}),[i,a,x,d]),S=U.useMemo((function(){return function(e){return U.forwardRef((function(t,n){return U.createElement(e,Vp(Vp({},t),{},{ref:n}))}))}(g||"div")}),[g]);return ee.jsx(S,Vp(Vp({ref:t},w),{},{className:zp(m,Bp(Hp||(Hp=hf(["\n // 是否显示\n display: ",";\n\n flex: ",";\n\n flex-direction: ",";\n flex-wrap: ",";\n\n justify-content: ",";\n align-items: ",";\n\n width: ",";\n height: ",";\n\n padding: ",";\n\n padding-inline: ",";\n padding-block: ",";\n\n gap: ",";\n "])),!1===n?"none":"flex",r,mf(i,a),y,x,l,k,bf(u),bf(f),bf(p),bf(h),bf(o)),b),children:v}))})),Xp=["children","className","prefixCls"];function Kp(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 Yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kp(Object(n),!0).forEach((function(t){Dd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qp=U.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.prefixCls,i=_d(e,Xp);return ee.jsx(Gp,Yp(Yp({ref:t,internalClassName:"".concat(gf(o),"-center"),className:r},i),{},{align:"center",justify:"center",children:n}))})),Jp=["className","prefixCls","children"];function Zp(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 eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(n),!0).forEach((function(t){Dd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var th=U.forwardRef((function(e,t){var n=e.className,r=e.prefixCls,o=e.children,i=_d(e,Jp);return ee.jsx(Gp,eh(eh({ref:t},i),{},{internalClassName:"".concat(gf(r),"-flexbox"),className:n,children:o}))}));function nh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ed(r.key),r)}}function oh(e,t,n){return t&&rh(e.prototype,t),n&&rh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ih=function(){function e(){nh(this,e),Dd(this,"_cacheList",[Wp])}return oh(e,[{key:"add",value:function(e){var t=this.getCache(e.key);return t||(this._cacheList.push(e),e)}},{key:"delete",value:function(e){this._cacheList=this._cacheList.filter((function(t){return t.key!==e.key}))}},{key:"hasCache",value:function(e){return this._cacheList.some((function(t){return t.key===e.key}))}},{key:"getCache",value:function(e){return this._cacheList.find((function(t){return t.key===e}))}},{key:"getCacheList",value:function(){return this._cacheList}}]),e}(),ah="undefined"!=typeof document,lh=function(e,t){return"".concat(e,"-").concat(t)},sh=function(e){return"object"===Cd(e)&&"styles"in e&&"name"in e&&"toString"in e},ch=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!==o){var i=void 0;switch(Cd(o)){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},uh=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=Np(r,e.registered,void 0);return function(e,t,n,r){var o=r.hashPriority||"high";Pp(e,t,n);var i=".".concat(lh(e.key,t.name)),a="low"===o?":where(".concat(i,")"):i;if(void 0===e.inserted[t.name]){var l="",s=t;do{var c=e.insert(t===s?a:"",s,e.sheet,!0);ah||void 0===c||(l+=c),s=s.next}while(void 0!==s);if(!ah&&0!==l.length);}}(e,i,!1,t),lh(e.key,i.name)}},dh=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.map((function(e){return sh(e)?t(e):e}));return function(e,t,n){var r=[],o=jp(e,r,n);return r.length<2?n:o+t(r)}(e.registered,t,ch(i))}},fh=function(e,t){var n=uh(e,{hashPriority:t.hashPriority||"high",label:t.label});return{css:n,cx:dh(e,n)}},ph=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Np(t)};function hh(){return hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hh.apply(this,arguments)}var gh={exports:{}},mh={},bh="function"==typeof Symbol&&Symbol.for,vh=bh?Symbol.for("react.element"):60103,yh=bh?Symbol.for("react.portal"):60106,wh=bh?Symbol.for("react.fragment"):60107,xh=bh?Symbol.for("react.strict_mode"):60108,kh=bh?Symbol.for("react.profiler"):60114,Sh=bh?Symbol.for("react.provider"):60109,Ch=bh?Symbol.for("react.context"):60110,Eh=bh?Symbol.for("react.async_mode"):60111,Dh=bh?Symbol.for("react.concurrent_mode"):60111,$h=bh?Symbol.for("react.forward_ref"):60112,Oh=bh?Symbol.for("react.suspense"):60113,_h=bh?Symbol.for("react.suspense_list"):60120,Ih=bh?Symbol.for("react.memo"):60115,Nh=bh?Symbol.for("react.lazy"):60116,jh=bh?Symbol.for("react.block"):60121,Ph=bh?Symbol.for("react.fundamental"):60117,Th=bh?Symbol.for("react.responder"):60118,Fh=bh?Symbol.for("react.scope"):60119;function Rh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case vh:switch(e=e.type){case Eh:case Dh:case wh:case kh:case xh:case Oh:return e;default:switch(e=e&&e.$$typeof){case Ch:case $h:case Nh:case Ih:case Sh:return e;default:return t}}case yh:return t}}}function Ah(e){return Rh(e)===Dh}mh.AsyncMode=Eh,mh.ConcurrentMode=Dh,mh.ContextConsumer=Ch,mh.ContextProvider=Sh,mh.Element=vh,mh.ForwardRef=$h,mh.Fragment=wh,mh.Lazy=Nh,mh.Memo=Ih,mh.Portal=yh,mh.Profiler=kh,mh.StrictMode=xh,mh.Suspense=Oh,mh.isAsyncMode=function(e){return Ah(e)||Rh(e)===Eh},mh.isConcurrentMode=Ah,mh.isContextConsumer=function(e){return Rh(e)===Ch},mh.isContextProvider=function(e){return Rh(e)===Sh},mh.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===vh},mh.isForwardRef=function(e){return Rh(e)===$h},mh.isFragment=function(e){return Rh(e)===wh},mh.isLazy=function(e){return Rh(e)===Nh},mh.isMemo=function(e){return Rh(e)===Ih},mh.isPortal=function(e){return Rh(e)===yh},mh.isProfiler=function(e){return Rh(e)===kh},mh.isStrictMode=function(e){return Rh(e)===xh},mh.isSuspense=function(e){return Rh(e)===Oh},mh.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wh||e===Dh||e===kh||e===xh||e===Oh||e===_h||"object"==typeof e&&null!==e&&(e.$$typeof===Nh||e.$$typeof===Ih||e.$$typeof===Sh||e.$$typeof===Ch||e.$$typeof===$h||e.$$typeof===Ph||e.$$typeof===Th||e.$$typeof===Fh||e.$$typeof===jh)},mh.typeOf=Rh,gh.exports=mh;var Mh=gh.exports,Lh={};Lh[Mh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lh[Mh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var zh=!!V.useInsertionEffect&&V.useInsertionEffect||U.useLayoutEffect,Bh=U.createContext("undefined"!=typeof HTMLElement?wp({key:"css"}):null);Bh.Provider;var Hh=function(e){return U.forwardRef((function(t,n){var r=U.useContext(Bh);return e(t,r,n)}))},Wh=U.createContext({}),Uh=dp((function(e){return dp((function(t){return function(e,t){return"function"==typeof t?t(e):hh({},e,t)}(e,t)}))})),qh=Hh((function(e,t){var n=e.styles,r=Np([n],void 0,U.useContext(Wh)),o=U.useRef();return zh((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),o.current=[n,i],function(){n.flush()}}),[t]),zh((function(){var e=o.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Tp(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Vh(e){if(Array.isArray(e))return e}function Gh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xh(e,t){if(e){if("string"==typeof e)return Gh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gh(e,t):void 0}}function Kh(){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 Yh(e,t){return Vh(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)||Xh(e,t)||Kh()}function Qh(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Jh(e){return function(e){if(Array.isArray(e))return Gh(e)}(e)||Qh(e)||Xh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zh(e){for(var t,n=0,r=0,o=e.length;o>=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 eg(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function tg(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var ng="data-rc-order",rg="data-rc-priority",og="rc-util-key",ig=new Map;function ag(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):og}function lg(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function sg(e){return Array.from((ig.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!eg())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(ng,a),l&&i&&s.setAttribute(rg,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=lg(t),u=c.firstChild;if(r){if(l){var d=(t.styles||sg(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ng)))return!1;var t=Number(e.getAttribute(rg)||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 ug(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=lg(t);return(t.styles||sg(n)).find((function(n){return n.getAttribute(ag(t))===e}))}function dg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ug(e,t);n&&lg(t).removeChild(n)}function fg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=lg(n),o=sg(r),i=Od(Od({},n),{},{styles:o});!function(e,t){var n=ig.get(e);if(!n||!tg(document,n)){var r=cg("",t),o=r.parentNode;ig.set(e,o),e.removeChild(r)}}(r,i);var a=ug(t,i);if(a){var l,s,c;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=cg(e,i);return u.setAttribute(ag(i),t),u}function pg(e,t,n){var r=U.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var hg={};function gg(e,t){}function mg(e,t){}function bg(e,t,n){t||hg[n]||(e(!1,n),hg[n]=!0)}function vg(e,t){bg(gg,e,t)}function yg(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(vg(!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;s<t.length;s++)if(!e(t[s],o[s],l))return!1;return!0}if(t&&o&&"object"===Cd(t)&&"object"===Cd(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],l)}))}return!1}(e,t)}vg.preMessage=function(e){},vg.resetWarned=function(){hg={}},vg.noteOnce=function(e,t){bg(mg,e,t)};var wg="%";function xg(e){return e.join(wg)}var kg=function(){function e(t){nh(this,e),Dd(this,"instanceId",void 0),Dd(this,"cache",new Map),this.instanceId=t}return oh(e,[{key:"get",value:function(e){return this.opGet(xg(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(xg(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),Sg=["children"],Cg="data-token-hash",Eg="data-css-hash",Dg="__cssinjs_instance__";function $g(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Eg,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Dg]=t[Dg]||e,t[Dg]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Eg,"]"))).forEach((function(t){var n,o=t.getAttribute(Eg);r[o]?t[Dg]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new kg(e)}var Og=U.createContext({hashPriority:"low",cache:$g(),defaultCache:!0}),_g=function(e){var t=e.children,n=_d(e,Sg),r=U.useContext(Og),o=pg((function(){var e=Od({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||$g(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!yg(e[0],t[0],!0)||!yg(e[1],t[1],!0)}));return U.createElement(Og.Provider,{value:o},t)};var Ig=function(){function e(){nh(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 oh(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=Yh(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Yh(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Dd(Ig,"MAX_CACHE_SIZE",20),Dd(Ig,"MAX_CACHE_OFFSET",5);var Ng=0,jg=function(){function e(t){nh(this,e),Dd(this,"derivatives",void 0),Dd(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ng,0===t.length&&t.length,Ng+=1}return oh(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Pg=new Ig;function Tg(e){var t=Array.isArray(e)?e:[e];return Pg.has(t)||Pg.set(t,new jg(t)),Pg.get(t)}var Fg=new WeakMap,Rg={};var Ag=new WeakMap;function Mg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ag.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof jg?n+=o.id:o&&"object"===Cd(o)?n+=Mg(o,t):n+=o})),t&&(n=Zh(n)),Ag.set(e,n)),n}function Lg(e,t){return Zh("".concat(t,"_").concat(Mg(e,!0)))}var zg=eg();function Bg(e){return"number"==typeof e?"".concat(e,"px"):e}function Hg(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=Od(Od({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(Dd(r={},Cg,t),Dd(r,Eg,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Wg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Ug=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Yh(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},qg=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=Yh(e,2),l=a[0],s=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var c,u=Wg(l,null==n?void 0:n.prefix);r[u]="number"!=typeof s||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[l]?String(s):"".concat(s,"px"),o[l]="var(".concat(u,")")}})),[o,Ug(r,t,{scope:null==n?void 0:n.scope})]},Vg=eg()?U.useLayoutEffect:U.useEffect,Gg=function(e,t){var n=U.useRef(!0);Vg((function(){return e(n.current)}),t),Vg((function(){return n.current=!1,function(){n.current=!0}}),[])},Xg=function(e,t){Gg((function(t){if(!t)return e()}),t)},Kg=Od({},V).useInsertionEffect,Yg=Kg?function(e,t,n){return Kg((function(){return e(),t()}),n)}:function(e,t,n){U.useMemo(e,n),Gg((function(){return t(!0)}),n)},Qg=void 0!==Od({},V).useInsertionEffect?function(e){var t=[],n=!1;return U.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function Jg(e,t,n,r,o){var i=U.useContext(Og).cache,a=xg([e].concat(Jh(t))),l=Qg([a]),s=function(e){i.opUpdate(a,(function(t){var r=Yh(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};U.useMemo((function(){s()}),[a]);var c=i.opGet(a)[1];return Yg((function(){null==o||o(c)}),(function(e){return s((function(t){var n=Yh(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(c)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=Yh(t||[],2),o=n[0],s=void 0===o?0:o,c=n[1];return 0===s-1?(l((function(){!e&&i.opGet(a)||null==r||r(c,!1)})),null):[s-1,c]}))}}),[a]),c}var Zg={},em="css",tm=new Map;var nm=0;function rm(e,t){tm.set(e,(tm.get(e)||0)-1);var n=Array.from(tm.keys()),r=n.filter((function(e){return(tm.get(e)||0)<=0}));n.length-r.length>nm&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Cg,'="').concat(e,'"]')).forEach((function(e){var n;e[Dg]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),tm.delete(e)}))}var om=function(e,t,n,r){var o=Od(Od({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},im="token";function am(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=U.useContext(Og),o=r.cache.instanceId,i=r.container,a=n.salt,l=void 0===a?"":a,s=n.override,c=void 0===s?Zg:s,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=function(e,t){for(var n=Fg,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Rg)||n.set(Rg,e()),n.get(Rg)}((function(){return Object.assign.apply(Object,[{}].concat(Jh(t)))}),t),h=Mg(p),g=Mg(c),m=f?Mg(f):"";return Jg(im,[l,e.id,h,g,m],(function(){var t,n=d?d(p,c,e):om(p,c,e,u),r=Od({},n),o="";if(f){var i=Yh(qg(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],o=i[1]}var a=Lg(n,l);n._tokenKey=a,r._tokenKey=Lg(r,l);var s=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=s,function(e){tm.set(e,(tm.get(e)||0)+1)}(s);var h="".concat(em,"-").concat(Zh(a));return n._hashId=h,[n,h,r,o,(null==f?void 0:f.key)||""]}),(function(e){rm(e[0]._themeKey,o)}),(function(e){var t=Yh(e,4),n=t[0],r=t[3];if(f&&r){var a=fg(r,Zh("css-variables-".concat(n._themeKey)),{mark:Eg,prepend:"queue",attachTo:i,priority:-999});a[Dg]=o,a.setAttribute(Cg,n._themeKey)}}))}var lm={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sm="comm",cm="rule",um="decl",dm="@import",fm="@keyframes",pm="@layer",hm=Math.abs,gm=String.fromCharCode;function mm(e){return e.trim()}function bm(e,t,n){return e.replace(t,n)}function vm(e,t,n){return e.indexOf(t,n)}function ym(e,t){return 0|e.charCodeAt(t)}function wm(e,t,n){return e.slice(t,n)}function xm(e){return e.length}function km(e,t){return t.push(e),e}var Sm=1,Cm=1,Em=0,Dm=0,$m=0,Om="";function _m(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Sm,column:Cm,length:a,return:"",siblings:l}}function Im(){return $m=Dm<Em?ym(Om,Dm++):0,Cm++,10===$m&&(Cm=1,Sm++),$m}function Nm(){return ym(Om,Dm)}function jm(){return Dm}function Pm(e,t){return wm(Om,e,t)}function Tm(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fm(e){return mm(Pm(Dm-1,Mm(91===e?e+2:40===e?e+1:e)))}function Rm(e){for(;($m=Nm())&&$m<33;)Im();return Tm(e)>2||Tm($m)>3?"":" "}function Am(e,t){for(;--t&&Im()&&!($m<48||$m>102||$m>57&&$m<65||$m>70&&$m<97););return Pm(e,jm()+(t<6&&32==Nm()&&32==Im()))}function Mm(e){for(;Im();)switch($m){case e:return Dm;case 34:case 39:34!==e&&39!==e&&Mm($m);break;case 40:41===e&&Mm(e);break;case 92:Im()}return Dm}function Lm(e,t){for(;Im()&&e+$m!==57&&(e+$m!==84||47!==Nm()););return"/*"+Pm(t,Dm-1)+"*"+gm(47===e?e:Im())}function zm(e){for(;!Tm(Nm());)Im();return Pm(e,Dm)}function Bm(e){return function(e){return Om="",e}(Hm("",null,null,null,[""],e=function(e){return Sm=Cm=1,Em=xm(Om=e),Dm=0,[]}(e),0,[0],e))}function Hm(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,k=r,S=y;m;)switch(h=v,v=Im()){case 40:if(108!=h&&58==ym(S,d-1)){-1!=vm(S+=bm(Fm(v),"&","&\f"),"&\f",hm(c?l[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:S+=Fm(v);break;case 9:case 10:case 13:case 32:S+=Rm(h);break;case 92:S+=Am(jm()-1,7);continue;case 47:switch(Nm()){case 42:case 47:km(Um(Lm(Im(),jm()),t,n,s),s);break;default:S+="/"}break;case 123*g:l[c++]=xm(S)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(S=bm(S,/\f/g,"")),p>0&&xm(S)-d&&km(p>32?qm(S+";",r,n,d-1,s):qm(bm(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(km(k=Wm(S,t,n,c,u,o,l,y,w=[],x=[],d,i),i),123===v)if(0===u)Hm(S,t,k,k,w,i,d,l,x);else switch(99===f&&110===ym(S,3)?100:f){case 100:case 108:case 109:case 115:Hm(e,k,k,r&&km(Wm(e,k,k,0,0,o,l,y,o,w=[],d,x),x),o,x,d,l,r?w:x);break;default:Hm(S,k,k,k,[""],x,0,l,x)}}c=u=p=0,g=b=1,y=S="",d=a;break;case 58:d=1+xm(S),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==($m=Dm>0?ym(Om,--Dm):0,Cm--,10===$m&&(Cm=1,Sm--),$m))continue;switch(S+=gm(v),v*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(xm(S)-1)*b,b=1;break;case 64:45===Nm()&&(S+=Fm(Im())),f=Nm(),u=d=xm(y=S+=zm(jm())),v++;break;case 45:45===h&&2==xm(S)&&(g=0)}}return i}function Wm(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;g<r;++g)for(var v=0,y=wm(e,f+1,f=hm(m=a[g])),w=e;v<h;++v)(w=mm(m>0?p[v]+" "+y:bm(y,/&\f/g,p[v])))&&(s[b++]=w);return _m(e,t,n,0===o?cm:l,s,c,u,d)}function Um(e,t,n,r){return _m(e,t,n,sm,gm($m),wm(e,2,-2),0,r)}function qm(e,t,n,r,o){return _m(e,t,n,um,wm(e,0,r),wm(e,r+1,-1),r,o)}function Vm(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Gm(e,t,n,r){switch(e.type){case pm:if(e.children.length)break;case dm:case um:return e.return=e.return||e.value;case sm:return"";case fm:return e.return=e.value+"{"+Vm(e.children,r)+"}";case cm:if(!xm(e.value=e.props.join(",")))return""}return xm(n=Vm(e.children,r))?e.return=e.value+"{"+n+"}":""}var Xm,Km="data-ant-cssinjs-cache-path",Ym="_FILE_STYLE__",Qm=!0;function Jm(e){return function(){if(!Xm&&(Xm={},eg())){var e=document.createElement("div");e.className=Km,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=Yh(e.split(":"),2),n=t[0],r=t[1];Xm[n]=r}));var n,r=document.querySelector("style[".concat(Km,"]"));r&&(Qm=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Xm[e]}var Zm="_multi_value_";function eb(e){return Vm(Bm(e),Gm).replace(/\{%%%\:[^;];}/g,";")}var tb=function e(t){var n=arguments.length>1&&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=Yh(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]);return 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"!==Cd(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Cd(e)&&e&&("_skip_check_"in e||Zm in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;lm[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"===Cd(r)&&null!=r&&r[Zm]&&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(Jh(n.slice(1))).join(" ")})).join(",")}(t,l,c):!o||l||"&"!==m&&""!==m||(m="",b=!0);var v=Yh(e(r,n,{root:b,injectHash:g,parentSelectors:[].concat(Jh(a),[m])}),2),y=v[0],w=v[1];p=Od(Od({},p),w),f+="".concat(m).concat(y)}}))}})),o?s&&(f="@layer ".concat(s.name," {").concat(f,"}"),s.dependencies&&(p["@layer ".concat(s.name)]=s.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(s.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function nb(e,t){return Zh("".concat(e.join("%")).concat(t))}function rb(){return null}var ob="style";function ib(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=U.useContext(Og),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=u.layer,w=n._tokenKey,x=[w];y&&x.push("layer"),x.push.apply(x,Jh(r));var k=zg,S=Jg(ob,x,(function(){var e=x.join("|");if(Jm(e)){var n=function(e){var t=Xm[e],n=null;if(t&&eg())if(Qm)n=Ym;else{var r=document.querySelector("style[".concat(Eg,'="').concat(Xm[e],'"]'));r?n=r.innerHTML:delete Xm[e]}return[n,t]}(e),a=Yh(n,2),s=a[0],u=a[1];if(s)return[s,w,u,{},l,c]}var d=t(),f=Yh(tb(d,{hashId:o,hashPriority:p,layer:y?i:void 0,path:r.join("-"),transformers:m,linters:b}),2),h=f[0],g=f[1],v=eb(h),k=nb(x,v);return[v,w,k,g,l,c]}),(function(e,t){var n=Yh(e,3)[2];(t||d)&&zg&&dg(n,{mark:Eg})}),(function(e){var t=Yh(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(k&&n!==Ym){var i={mark:Eg,prepend:!y&&"queue",attachTo:h,priority:c},l="function"==typeof a?a():a;l&&(i.csp={nonce:l});var s=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?s.push(e):u.push(e)})),s.forEach((function(e){fg(eb(o[e]),"_layer-".concat(e),Od(Od({},i),{},{prepend:!0}))}));var d=fg(n,r,i);d[Dg]=v.instanceId,d.setAttribute(Cg,w),u.forEach((function(e){fg(eb(o[e]),"_effect-".concat(e),i)}))}})),C=Yh(S,3),E=C[0],D=C[1],$=C[2];return function(e){var t,n;g&&!k&&f?t=U.createElement("style",hh({},(Dd(n={},Cg,D),Dd(n,Eg,$),n),{dangerouslySetInnerHTML:{__html:E}})):t=U.createElement(rb,null);return U.createElement(U.Fragment,null,t,e)}}var ab,lb="cssVar";Dd(ab={},ob,(function(e,t,n){var r=Yh(e,6),o=r[0],i=r[1],a=r[2],l=r[3],s=r[4],c=r[5],u=(n||{}).plain;if(s)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Hg(o,i,a,f,u),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=Hg(eb(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Dd(ab,im,(function(e,t,n){var r=Yh(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,Hg(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),Dd(ab,lb,(function(e,t,n){var r=Yh(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Hg(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));var sb=function(){function e(t,n){nh(this,e),Dd(this,"name",void 0),Dd(this,"style",void 0),Dd(this,"_keyframe",!0),this.name=t,this.style=n}return oh(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 cb(e){return e.notSplit=!0,e}cb(["borderTop","borderBottom"]),cb(["borderTop"]),cb(["borderBottom"]),cb(["borderLeft","borderRight"]),cb(["borderLeft"]),cb(["borderRight"]);var ub,db=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],fb={exports:{}};
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/
|
||
ub=fb,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}ub.exports?(t.default=t,ub.exports=t):window.classNames=t}();const pb=o(fb.exports);var hb,gb={exports:{}},mb={},bb=Symbol.for("react.element"),vb=Symbol.for("react.portal"),yb=Symbol.for("react.fragment"),wb=Symbol.for("react.strict_mode"),xb=Symbol.for("react.profiler"),kb=Symbol.for("react.provider"),Sb=Symbol.for("react.context"),Cb=Symbol.for("react.server_context"),Eb=Symbol.for("react.forward_ref"),Db=Symbol.for("react.suspense"),$b=Symbol.for("react.suspense_list"),Ob=Symbol.for("react.memo"),_b=Symbol.for("react.lazy"),Ib=Symbol.for("react.offscreen");function Nb(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case bb:switch(e=e.type){case yb:case xb:case wb:case Db:case $b:return e;default:switch(e=e&&e.$$typeof){case Cb:case Sb:case Eb:case _b:case Ob:case kb:return e;default:return t}}case vb:return t}}}hb=Symbol.for("react.module.reference"),mb.ContextConsumer=Sb,mb.ContextProvider=kb,mb.Element=bb,mb.ForwardRef=Eb,mb.Fragment=yb,mb.Lazy=_b,mb.Memo=Ob,mb.Portal=vb,mb.Profiler=xb,mb.StrictMode=wb,mb.Suspense=Db,mb.SuspenseList=$b,mb.isAsyncMode=function(){return!1},mb.isConcurrentMode=function(){return!1},mb.isContextConsumer=function(e){return Nb(e)===Sb},mb.isContextProvider=function(e){return Nb(e)===kb},mb.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===bb},mb.isForwardRef=function(e){return Nb(e)===Eb},mb.isFragment=function(e){return Nb(e)===yb},mb.isLazy=function(e){return Nb(e)===_b},mb.isMemo=function(e){return Nb(e)===Ob},mb.isPortal=function(e){return Nb(e)===vb},mb.isProfiler=function(e){return Nb(e)===xb},mb.isStrictMode=function(e){return Nb(e)===wb},mb.isSuspense=function(e){return Nb(e)===Db},mb.isSuspenseList=function(e){return Nb(e)===$b},mb.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===yb||e===xb||e===wb||e===Db||e===$b||e===Ib||"object"==typeof e&&null!==e&&(e.$$typeof===_b||e.$$typeof===Ob||e.$$typeof===kb||e.$$typeof===Sb||e.$$typeof===Eb||e.$$typeof===hb||void 0!==e.getModuleId)},mb.typeOf=Nb,gb.exports=mb;var jb=gb.exports;function Pb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return q.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(Pb(e)):jb.isFragment(e)&&e.props?n=n.concat(Pb(e.props.children,t)):n.push(e))})),n}function Tb(e){return e instanceof HTMLElement||e instanceof SVGElement}function Fb(e){return Tb(e)?e:e instanceof q.Component?wd.findDOMNode(e):null}var Rb=function(e,t){"function"==typeof e?e(t):"object"===Cd(e)&&e&&"current"in e&&(e.current=t)},Ab=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){Rb(t,e)}))}},Mb=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pg((function(){return Ab.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},Lb=function(e){var t,n,r=jb.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===jb.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===jb.ForwardRef)},zb=U.createContext(null);var Bb=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Hb="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Wb="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ub="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Wb):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var qb=["top","right","bottom","left","width","height","size","weight"],Vb="undefined"!=typeof MutationObserver,Gb=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){Ub(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Hb&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vb?(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(){Hb&&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;qb.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}(),Xb=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Kb=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Wb},Yb=nv(0,0,0,0);function Qb(e){return parseFloat(e)||0}function Jb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Qb(e["border-"+n+"-width"])}),0)}function Zb(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Yb;var r=Kb(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=Qb(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=Qb(r.width),s=Qb(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Jb(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Jb(r,"top","bottom")+a)),!function(e){return e===Kb(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return nv(o.left,o.top,l,s)}var ev="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Kb(e).SVGGraphicsElement}:function(e){return e instanceof Kb(e).SVGElement&&"function"==typeof e.getBBox};function tv(e){return Hb?ev(e)?function(e){var t=e.getBBox();return nv(0,0,t.width,t.height)}(e):Zb(e):Yb}function nv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var rv=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=nv(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=tv(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ov=function(){return function(e,t){var n,r,o,i,a,l,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),Xb(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);Xb(this,{target:e,contentRect:c})}}(),iv=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Bb,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Kb(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new rv(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Kb(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ov(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),av="undefined"!=typeof WeakMap?new WeakMap:new Bb,lv=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=Gb.getInstance(),r=new iv(t,n,this);av.set(this,r)}}();["observe","unobserve","disconnect"].forEach((function(e){lv.prototype[e]=function(){var t;return(t=av.get(this))[e].apply(t,arguments)}}));var sv=void 0!==Wb.ResizeObserver?Wb.ResizeObserver:lv,cv=new Map;var uv=new sv((function(e){e.forEach((function(e){var t,n=e.target;null===(t=cv.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function dv(e,t){return(dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fv(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&&dv(e,t)}function pv(e){return(pv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hv=function(){return!!e})()}function gv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mv(e,t){if(t&&("object"===Cd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gv(e)}function bv(e){var t=hv();return function(){var n,r=pv(e);if(t){var o=pv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mv(this,n)}}var vv=function(e){fv(n,U.Component);var t=bv(n);function n(){return nh(this,n),t.apply(this,arguments)}return oh(n,[{key:"render",value:function(){return this.props.children}}]),n}();function yv(e,t){var n=e.children,r=e.disabled,o=U.useRef(null),i=U.useRef(null),a=U.useContext(zb),l="function"==typeof n,s=l?n(o):n,c=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&U.isValidElement(s)&&Lb(s),d=u?s.ref:null,f=Mb(d,o),p=function(){var e;return Fb(o.current)||(o.current&&"object"===Cd(o.current)?Fb(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Fb(i.current)};U.useImperativeHandle(t,(function(){return p()}));var h=U.useRef(e);h.current=e;var g=U.useCallback((function(e){var t=h.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 p={width:d,height:f,offsetWidth:s,offsetHeight:u};c.current=p;var g=s===Math.round(i)?i:s,m=u===Math.round(l)?l:u,b=Od(Od({},p),{},{offsetWidth:g,offsetHeight:m});null==a||a(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return U.useEffect((function(){var e,t,n=p();return n&&!r&&(e=n,t=g,cv.has(e)||(cv.set(e,new Set),uv.observe(e)),cv.get(e).add(t)),function(){return function(e,t){cv.has(e)&&(cv.get(e).delete(t),cv.get(e).size||(uv.unobserve(e),cv.delete(e)))}(n,g)}}),[o.current,r]),U.createElement(vv,{ref:i},u?U.cloneElement(s,{ref:f}):s)}var wv=U.forwardRef(yv);function xv(e,t){var n=e.children;return("function"==typeof n?[n]:Pb(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return U.createElement(wv,hh({},e,{key:o,ref:0===r?t:void 0}),n)}))}var kv=U.forwardRef(xv);function Sv(e,t){var n=Od({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}kv.Collection=function(e){var t=e.children,n=e.onBatchResize,r=U.useRef(0),o=U.useRef([]),i=U.useContext(zb),a=U.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 U.createElement(zb.Provider,{value:a},t)};var Cv=function(e){return+setTimeout(e,16)},Ev=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Cv=function(e){return window.requestAnimationFrame(e)},Ev=function(e){return window.cancelAnimationFrame(e)});var Dv=0,$v=new Map;function Ov(e){$v.delete(e)}var _v=function(e){var t=Dv+=1;return function n(r){if(0===r)Ov(t),e();else{var o=Cv((function(){n(r-1)}));$v.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};_v.cancel=function(e){var t=$v.get(e);return Ov(e),Ev(t)};var Iv=U.createContext({});function Nv(e){return Vh(e)||Qh(e)||Xh(e)||Kh()}function jv(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Pv(e,t,n,r){if(!t.length)return n;var o,i=Nv(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?Jh(e):Od({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=Pv(o[a],l,n,r),o}function Tv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!jv(e,t.slice(0,-1))?e:Pv(e,t,n,r)}function Fv(e){return Array.isArray(e)?[]:{}}var Rv="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Av(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Fv(t[0]);return t.forEach((function(e){!function t(n,o){var i,a=new Set(o),l=jv(e,n),s=Array.isArray(l);if(s||"object"===Cd(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var c=jv(r,n);s?r=Tv(r,n,[]):c&&"object"===Cd(c)||(r=Tv(r,n,Fv(l))),Rv(l).forEach((function(e){t([].concat(Jh(n),[e]),a)}))}}else r=Tv(r,n,l)}([])})),r}function Mv(){}const Lv=U.createContext({}),zv=()=>{const e=()=>{};return e.deprecated=Mv,e},Bv=U.createContext(void 0);const Hv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Wv={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({},Hv)},Uv="${label} is not a valid ${type}",qv={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:Wv,TimePicker:Hv,Calendar:Wv,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",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Uv,method:Uv,array:Uv,object:Uv,number:Uv,date:Uv,boolean:Uv,integer:Uv,float:Uv,regexp:Uv,email:Uv,url:Uv,hex:Uv},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let Vv=Object.assign({},qv.Modal),Gv=[];const Xv=()=>Gv.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),qv.Modal);function Kv(){return Vv}const Yv=U.createContext(void 0),Qv=(e,t)=>{const n=U.useContext(Yv);return[U.useMemo((()=>{var r;const o=t||qv[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]),U.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?qv.locale:e}),[n])]},Jv=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;U.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Gv.push(t),Vv=Xv(),()=>{Gv=Gv.filter((e=>e!==t)),Vv=Xv()}}Vv=Object.assign({},qv.Modal)}(t&&t.Modal);return e}),[t]);const o=U.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return U.createElement(Yv.Provider,{value:o},n)};function Zv(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 ey(e){return Math.min(1,Math.max(0,e))}function ty(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ny(e){return e<=1?"".concat(100*Number(e),"%"):e}function ry(e){return 1===e.length?"0"+e:String(e)}function oy(e,t,n){e=Zv(e,255),t=Zv(t,255),n=Zv(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+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:a,l:l}}function iy(e,t,n){return n<0&&(n+=1),n>1&&(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 ay(e,t,n){e=Zv(e,255),t=Zv(t,255),n=Zv(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<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:s,v:a}}function ly(e,t,n,r){var o=[ry(Math.round(e).toString(16)),ry(Math.round(t).toString(16)),ry(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function sy(e){return cy(e)/255}function cy(e){return parseInt(e,16)}var uy={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function dy(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,l=null,s=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(uy[e])e=uy[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=gy.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=gy.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=gy.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=gy.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=gy.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=gy.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=gy.hex8.exec(e),n)return{r:cy(n[1]),g:cy(n[2]),b:cy(n[3]),a:sy(n[4]),format:t?"name":"hex8"};if(n=gy.hex6.exec(e),n)return{r:cy(n[1]),g:cy(n[2]),b:cy(n[3]),format:t?"name":"hex"};if(n=gy.hex4.exec(e),n)return{r:cy(n[1]+n[1]),g:cy(n[2]+n[2]),b:cy(n[3]+n[3]),a:sy(n[4]+n[4]),format:t?"name":"hex8"};if(n=gy.hex3.exec(e),n)return{r:cy(n[1]+n[1]),g:cy(n[2]+n[2]),b:cy(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(my(e.r)&&my(e.g)&&my(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Zv(t,255),g:255*Zv(n,255),b:255*Zv(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):my(e.h)&&my(e.s)&&my(e.v)?(a=ny(e.s),l=ny(e.v),o=function(e,t,n){e=6*Zv(e,360),t=Zv(t,100),n=Zv(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,l,n][s],g:255*[l,n,n,a,i,i][s],b:255*[i,i,l,n,n,a][s]}}(e.h,a,l),c=!0,u="hsv"):my(e.h)&&my(e.s)&&my(e.l)&&(a=ny(e.s),s=ny(e.l),o=function(e,t,n){var r,o,i;if(e=Zv(e,360),t=Zv(t,100),n=Zv(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=iy(l,a,e+1/3),o=iy(l,a,e),i=iy(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,s),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=ty(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var fy="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),py="[\\s|\\(]+(".concat(fy,")[,|\\s]+(").concat(fy,")[,|\\s]+(").concat(fy,")\\s*\\)?"),hy="[\\s|\\(]+(".concat(fy,")[,|\\s]+(").concat(fy,")[,|\\s]+(").concat(fy,")[,|\\s]+(").concat(fy,")\\s*\\)?"),gy={CSS_UNIT:new RegExp(fy),rgb:new RegExp("rgb"+py),rgba:new RegExp("rgba"+hy),hsl:new RegExp("hsl"+py),hsla:new RegExp("hsla"+hy),hsv:new RegExp("hsv"+py),hsva:new RegExp("hsva"+hy),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function my(e){return Boolean(gy.CSS_UNIT.exec(String(e)))}var by=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=dy(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=ty(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=ay(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=ay(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=oy(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=oy(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),ly(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=[ry(Math.round(e).toString(16)),ry(Math.round(t).toString(16)),ry(Math.round(n).toString(16)),ry((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*Zv(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*Zv(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="#"+ly(this.r,this.g,this.b,!1),t=0,n=Object.entries(uy);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=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=ey(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=ey(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=ey(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=ey(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<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),vy=2,yy=.16,wy=.05,xy=.05,ky=.15,Sy=5,Cy=4,Ey=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Dy(e){var t=ay(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function $y(e){var t=e.r,n=e.g,r=e.b;return"#".concat(ly(t,n,r,!1))}function Oy(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-vy*t:Math.round(e.h)+vy*t:n?Math.round(e.h)+vy*t:Math.round(e.h)-vy*t)<0?r+=360:r>=360&&(r-=360),r}function _y(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-yy*t:t===Cy?e.s+yy:e.s+wy*t)>1&&(r=1),n&&t===Sy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Iy(e,t,n){var r;return(r=n?e.v+xy*t:e.v-ky*t)>1&&(r=1),Number(r.toFixed(2))}function Ny(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=dy(e),o=Sy;o>0;o-=1){var i=Dy(r),a=$y(dy({h:Oy(i,o,!0),s:_y(i,o,!0),v:Iy(i,o,!0)}));n.push(a)}n.push($y(r));for(var l=1;l<=Cy;l+=1){var s=Dy(r),c=$y(dy({h:Oy(s,l),s:_y(s,l),v:Iy(s,l)}));n.push(c)}return"dark"===t.theme?Ey.map((function(e){var r,o,i,a=e.index,l=e.opacity;return $y((r=dy(t.backgroundColor||"#141414"),o=dy(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 jy={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"},Py={},Ty={};Object.keys(jy).forEach((function(e){Py[e]=Ny(jy[e]),Py[e].primary=Py[e][5],Ty[e]=Ny(jy[e],{theme:"dark",backgroundColor:"#141414"}),Ty[e].primary=Ty[e][5]}));var Fy=Py.blue;const Ry={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"},Ay=Object.assign(Object.assign({},Ry),{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 My(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 by("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Ly=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 zy=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function By(e){return(e+8)/e}const Hy=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:By(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Wy=(e,t)=>new by(e).setAlpha(t).toRgbString(),Uy=(e,t)=>new by(e).darken(t).toHexString(),qy=e=>{const t=Ny(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]}},Vy=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Wy(r,.88),colorTextSecondary:Wy(r,.65),colorTextTertiary:Wy(r,.45),colorTextQuaternary:Wy(r,.25),colorFill:Wy(r,.15),colorFillSecondary:Wy(r,.06),colorFillTertiary:Wy(r,.04),colorFillQuaternary:Wy(r,.02),colorBgLayout:Uy(n,4),colorBgContainer:Uy(n,0),colorBgElevated:Uy(n,0),colorBgSpotlight:Wy(r,.85),colorBgBlur:"transparent",colorBorder:Uy(n,15),colorBorderSecondary:Uy(n,6)}};function Gy(e){const t=Object.keys(Ry).map((t=>{const n=Ny(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),My(e,{generateColorPalettes:qy,generateNeutralColorPalettes:Vy})),Hy(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)),zy(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},Ly(r))}(e))}const Xy=Tg(Gy),Ky={token:Ay,override:{override:Ay},hashed:!0},Yy=q.createContext(Ky),Qy="anticon",Jy=U.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Qy}),Zy=`-ant-${Date.now()}-${Math.random()}`;function ew(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 by(e),i=Ny(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 by(t.primaryColor),i=Ny(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 by(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);eg()&&fg(n,`${Zy}-dynamic-theme`)}const tw=U.createContext(!1),nw=e=>{let{children:t,disabled:n}=e;const r=U.useContext(tw);return U.createElement(tw.Provider,{value:null!=n?n:r},t)},rw=U.createContext(void 0),ow=e=>{let{children:t,size:n}=e;const r=U.useContext(rw);return U.createElement(rw.Provider,{value:n||r},t)};const iw=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],aw="5.17.0";function lw(e){return e>=0&&e<=255}function sw(e,t){const{r:n,g:r,b:o,a:i}=new by(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new by(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(lw(e)&&lw(t)&&lw(i))return new by({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new by({r:n,g:r,b:o,a:1}).toRgbString()}var cw=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function uw(e){const{override:t}=e,n=cw(e,["override"]),r=Object.assign({},t);Object.keys(Ay).forEach((e=>{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:sw(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:sw(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:sw(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:sw(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 by("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new by("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new by("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 dw=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fw={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},pw={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},hw={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},gw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=dw(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=uw(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=dw(n,["theme"]);let i=o;r&&(i=gw(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function mw(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=q.useContext(Yy),i=`${aw}-${t||""}`,a=n||Xy,[l,s,c]=am(a,[Ay,e],{salt:i,override:r,getComputedToken:gw,formatToken:uw,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:fw,ignore:pw,preserve:hw}});return[a,c,t?s:"",l,o]}function bw(e,t,n){return t=pv(t),mv(e,hv()?Reflect.construct(t,n||[],pv(e).constructor):t.apply(e,n))}let vw=oh((function e(){nh(this,e)}));const yw="CALC_UNIT",ww=new RegExp(yw,"g");function xw(e){return"number"==typeof e?`${e}${yw}`:e}let kw=function(e){function t(e){var n;return nh(this,t),(n=bw(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=xw(e):"string"==typeof e&&(n.result=e),n}return fv(t,vw),oh(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${xw(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${xw(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{};return this.result=this.result.replace(ww,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(),Sw=function(e){function t(e){var n;return nh(this,t),(n=bw(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return fv(t,vw),oh(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}();function Cw(e){var t=U.useRef();t.current=e;var n=U.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function Ew(e){var t=U.useRef(!1),n=Yh(U.useState(e),2),r=n[0],o=n[1];return U.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Dw(e){return void 0!==e}function $w(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Yh(Ew((function(){return Dw(o)?o:Dw(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=l[0],c=l[1],u=void 0!==o?o:s,d=a?a(u):u,f=Cw(i),p=Yh(Ew([u]),2),h=p[0],g=p[1];return Xg((function(){var e=h[0];s!==e&&f(s,e)}),[h]),Xg((function(){Dw(o)||c(o)}),[o]),[d,Cw((function(e,t){c(e,t),g([u],t)}))]}const Ow={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_w=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}},Iw=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"}}}),Nw=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},jw=e=>({outline:`${Bg(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Pw=e=>({"&:focus-visible":Object.assign({},jw(e))});const Tw="undefined"!=typeof CSSINJS_STATISTIC;let Fw=!0;function Rw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Tw)return Object.assign.apply(Object,[{}].concat(t));Fw=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),Fw=!0,r}const Aw={};function Mw(){}const Lw=(e,t)=>{const[n,r]=mw();return ib({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},(()=>[{[`.${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"}})}]))},zw=(e,t,n)=>{var r;return"function"==typeof n?n(Rw(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},Bw=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};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 function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[l,s,c,u,d]=mw(),{getPrefixCls:f,iconPrefixCls:p,csp:h}=U.useContext(Jy),g=f(),m=d?"css":"js",b=(e=>{const t="css"===e?kw:Sw;return e=>new t(e)})(m),{max:v,min:y}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>Bg(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>Bg(e))).join(",")})`}}}(m),w={theme:l,token:u,hashId:c,nonce:()=>null==h?void 0:h.nonce,clientOnly:r.clientOnly,layer:{name:"antd"},order:r.order||-999};ib(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":Iw(u)}])),Lw(p,h);const x=ib(Object.assign(Object.assign({},w),{path:[a,e,p]}),(()=>{if(!1===r.injectStyle)return[];const{token:a,flush:l}=(e=>{let t,n=e,r=Mw;return Tw&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(Fw&&t.add(n),e[n])}),r=(e,n)=>{var r;Aw[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=Aw[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(u),f=zw(i,s,n),h=`.${e}`,m=Bw(i,s,f,{deprecatedTokens:r.deprecatedTokens});d&&Object.keys(f).forEach((e=>{f[e]=`var(${Wg(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(i,d.prefix))})`}));const w=Rw(a,{componentCls:h,prefixCls:e,iconCls:`.${p}`,antCls:`.${g}`,calc:b,max:v,min:y},d?f:m),x=t(w,{hashId:c,prefixCls:e,rootPrefixCls:g,iconPrefixCls:p});return l(i,m),[!1===r.resetStyle?null:Nw(w,e,o,r.resetFont),x]}));return[x,c]}}const Ww=(e,t,n,r)=>{const o=Hw(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},Uw=(e,t,n)=>{function r(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=null!=n?n:{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach((e=>{a[r(e)]=o[e]}));const l=o=>{let{rootCls:i,cssVar:l}=o;const[,s]=mw();var c,u,d,f,p,h,g,m,b,v,y,w,x,k;return c={path:[e],prefix:l.prefix,key:null==l?void 0:l.key,unitless:Object.assign(Object.assign({},fw),a),ignore:pw,token:s,scope:i},u=()=>{const o=zw(e,s,t),i=Bw(e,s,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((e=>{i[r(e)]=i[e],delete i[e]})),i},d=c.key,f=c.prefix,p=c.unitless,h=c.ignore,g=c.token,m=c.scope,b=void 0===m?"":m,v=U.useContext(Og),y=v.cache.instanceId,w=v.container,x=g._tokenKey,k=[].concat(Jh(c.path),[d,b,x]),Jg(lb,k,(function(){var e=u(),t=Yh(qg(e,d,{prefix:f,unitless:p,ignore:h,scope:b}),2),n=t[0],r=t[1];return[n,r,nb(k,r),d]}),(function(e){var t=Yh(e,3)[2];zg&&dg(t,{mark:Eg})}),(function(e){var t=Yh(e,3),n=t[1],r=t[2];if(n){var o=fg(n,r,{mark:Eg,prepend:"queue",attachTo:w,priority:-999});o[Dg]=y,o.setAttribute(Cg,d)}})),null};return t=>{const[,,,,n]=mw();return[r=>i&&n?q.createElement(q.Fragment,null,q.createElement(l,{rootCls:t,cssVar:n,component:e}),r):r,null==n?void 0:n.key]}},qw=(e,t,n,r)=>{const o=Hw(e,t,n,r),i=Uw(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=o(e,t),[r,a]=i(t);return[r,n,a]}};function Vw(e,t){return iw.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}))}),{})}const Gw=Object.assign({},V),{useId:Xw}=Gw,Kw=void 0===Xw?()=>"":Xw;var Yw=["children"],Qw=U.createContext({});function Jw(e){var t=e.children,n=_d(e,Yw);return U.createElement(Qw.Provider,{value:n},t)}var Zw=function(e){fv(n,U.Component);var t=bv(n);function n(){return nh(this,n),t.apply(this,arguments)}return oh(n,[{key:"render",value:function(){return this.props.children}}]),n}(),ex="none",tx="appear",nx="enter",rx="leave",ox="none",ix="prepare",ax="start",lx="active",sx="end",cx="prepared";function ux(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 dx,fx,px,hx=(dx=eg(),fx="undefined"!=typeof window?window:{},px={animationend:ux("Animation","AnimationEnd"),transitionend:ux("Transition","TransitionEnd")},dx&&("AnimationEvent"in fx||delete px.animationend.animation,"TransitionEvent"in fx||delete px.transitionend.transition),px),gx={};if(eg()){var mx=document.createElement("div");gx=mx.style}var bx={};function vx(e){if(bx[e])return bx[e];var t=hx[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in gx)return bx[e]=t[i],bx[e]}return""}var yx=vx("animationend"),wx=vx("transitionend"),xx=!(!yx||!wx),kx=yx||"animationend",Sx=wx||"transitionend";function Cx(e,t){return e?"object"===Cd(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Ex=function(e){var t=U.useRef(),n=U.useRef(e);n.current=e;var r=U.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(Sx,r),e.removeEventListener(kx,r))}return U.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(Sx,r),e.addEventListener(kx,r),t.current=e)},o]};var Dx=eg()?U.useLayoutEffect:U.useEffect;var $x=[ix,ax,lx,sx],Ox=[ix,cx],_x=!1,Ix=!0;function Nx(e){return e===lx||e===sx}const jx=function(e,t,n){var r=Yh(Ew(ox),2),o=r[0],i=r[1],a=function(){var e=U.useRef(null);function t(){_v.cancel(e.current)}return U.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=_v((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),l=Yh(a,2),s=l[0],c=l[1];var u=t?Ox:$x;return Dx((function(){if(o!==ox&&o!==sx){var e=u.indexOf(o),t=u[e+1],r=n(o);r===_x?i(t,!0):t&&s((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),U.useEffect((function(){return function(){c()}}),[]),[function(){i(ix,!0)},o]};const Px=function(e){var t=e;"object"===Cd(e)&&(t=e.transitionSupport);var n=U.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,U.useContext(Qw).motion),p=U.useRef(),h=U.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,k=r.onEnterEnd,S=r.onLeaveEnd,C=r.onVisibleChanged,E=Yh(Ew(),2),D=E[0],$=E[1],O=Yh(Ew(ex),2),_=O[0],I=O[1],N=Yh(Ew(null),2),j=N[0],P=N[1],T=U.useRef(!1),F=U.useRef(null);function R(){return n()}var A=U.useRef(!1);function M(){I(ex,!0),P(null,!0)}function L(e){var t=R();if(!e||e.deadline||e.target===t){var n,r=A.current;_===tx&&r?n=null==x?void 0:x(t,e):_===nx&&r?n=null==k?void 0:k(t,e):_===rx&&r&&(n=null==S?void 0:S(t,e)),_!==ex&&r&&!1!==n&&M()}}var z=Yh(Ex(L),1)[0],B=function(e){var t,n,r;switch(e){case tx:return Dd(t={},ix,f),Dd(t,ax,g),Dd(t,lx,v),t;case nx:return Dd(n={},ix,p),Dd(n,ax,m),Dd(n,lx,y),n;case rx:return Dd(r={},ix,h),Dd(r,ax,b),Dd(r,lx,w),r;default:return{}}},H=U.useMemo((function(){return B(_)}),[_]),W=Yh(jx(_,!e,(function(e){if(e===ix){var t=H[ix];return t?t(R()):_x}var n;return V in H&&P((null===(n=H[V])||void 0===n?void 0:n.call(H,R(),null))||null),V===lx&&(z(R()),u>0&&(clearTimeout(F.current),F.current=setTimeout((function(){L({deadline:!0})}),u))),V===cx&&M(),Ix})),2),q=W[0],V=W[1],G=Nx(V);A.current=G,Dx((function(){$(t);var n,r=T.current;T.current=!0,!r&&t&&l&&(n=tx),r&&t&&i&&(n=nx),(r&&!t&&c||!r&&d&&!t&&c)&&(n=rx);var o=B(n);n&&(e||o[ix])?(I(n),q()):I(ex)}),[t]),U.useEffect((function(){(_===tx&&!l||_===nx&&!i||_===rx&&!c)&&I(ex)}),[l,i,c]),U.useEffect((function(){return function(){T.current=!1,clearTimeout(F.current)}}),[]);var X=U.useRef(!1);U.useEffect((function(){D&&(X.current=!0),void 0!==D&&_===ex&&((X.current||D)&&(null==C||C(D)),X.current=!0)}),[D,_]);var K=j;return H[ix]&&V===ax&&(K=Od({transition:"none"},K)),[_,V,K,null!=D?D:t]}(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:Fb(h.current)}catch(b6){return null}}),e),m=Yh(g,4),b=m[0],v=m[1],y=m[2],w=m[3],x=U.useRef(w);w&&(x.current=!0);var k,S=U.useCallback((function(e){p.current=e,Rb(n,e)}),[n]),C=Od(Od({},d),{},{visible:o});if(s)if(b===ex)k=w?s(Od({},C),S):!a&&x.current&&u?s(Od(Od({},C),{},{className:u}),S):l||!a&&!u?s(Od(Od({},C),{},{style:{display:"none"}}),S):null;else{var E,D;v===ix?D="prepare":Nx(v)?D="active":v===ax&&(D="start");var $=Cx(c,"".concat(b,"-").concat(D));k=s(Od(Od({},C),{},{className:pb(Cx(c,b),(E={},Dd(E,$,$&&D),Dd(E,c,"string"==typeof c),E)),style:y}),S)}else k=null;U.isValidElement(k)&&Lb(k)&&(k.ref||(k=U.cloneElement(k,{ref:S})));return U.createElement(Zw,{ref:h},k)}));return n.displayName="CSSMotion",n}(xx);var Tx="add",Fx="keep",Rx="remove",Ax="removed";function Mx(e){var t;return Od(Od({},t=e&&"object"===Cd(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Lx(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Mx)}var zx=["component","children","onVisibleChanged","onAllRemoved"],Bx=["status"],Hx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Wx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Px,n=function(e){fv(r,U.Component);var n=bv(r);function r(){var e;nh(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Dd(gv(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),Dd(gv(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Od(Od({},e),{},{status:Ax})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Ax})).length})),e}return oh(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,l=r.onAllRemoved,s=_d(r,zx),c=o||U.Fragment,u={};return Hx.forEach((function(e){u[e]=s[e],delete s[e]})),delete s.keys,U.createElement(c,s,n.map((function(n,r){var o=n.status,s=_d(n,Bx),c=o===Tx||o===Fx;return U.createElement(t,hh({},u,{key:s.key,visible:c,eventProps:s,onVisibleChanged:function(t){(null==a||a(t,{key:s.key}),t)||0===e.removeKey(s.key)&&l&&l()}}),(function(e,t){return i(Od(Od({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Lx(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Lx(e),a=Lx(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map((function(e){return Od(Od({},e),{},{status:Tx})}))),r=i),n.push(Od(Od({},l),{},{status:Fx})),r+=1,t=!0;break}}t||n.push(Od(Od({},e),{},{status:Rx}))})),r<o&&(n=n.concat(a.slice(r).map((function(e){return Od(Od({},e),{},{status:Tx})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).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=Fx)}))})),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!==Ax||e.status!==Rx}))}}}]),r}();return Dd(n,"defaultProps",{component:"div"}),n}(xx);function Ux(e){const{children:t}=e,[,n]=mw(),{motion:r}=n,o=U.useRef(!1);return o.current=o.current||!1===r,o.current?U.createElement(Jw,{motion:r},t):t}const qx=()=>null;const Vx=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Gx,Xx,Kx,Yx;function Qx(){return Gx||"ant"}function Jx(){return Xx||Qy}const Zx=()=>({getPrefixCls:(e,t)=>t||(e?`${Qx()}-${e}`:Qx()),getIconPrefixCls:Jx,getRootPrefixCls:()=>Gx||Qx(),getTheme:()=>Kx,holderRender:Yx}),ek=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:k,calendar:S,carousel:C,cascader:E,collapse:D,typography:$,checkbox:O,descriptions:_,divider:I,drawer:N,skeleton:j,steps:P,image:T,layout:F,list:R,mentions:A,modal:M,progress:L,result:z,slider:B,breadcrumb:H,menu:W,pagination:q,input:V,textArea:G,empty:X,badge:K,radio:Y,rate:Q,switch:J,transfer:Z,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ie,timeline:ae,timePicker:le,upload:se,notification:ce,tree:ue,colorPicker:de,datePicker:fe,rangePicker:pe,flex:he,wave:ge,dropdown:me,warning:be,tour:ve,floatButtonGroup:ye}=e,we=U.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]),xe=b||m.iconPrefixCls||Qy,ke=n||m.csp;Lw(xe,ke);const Se=function(e,t,n){var r;zv();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Ky),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Ky.hashed,cssVar:null==t?void 0:t.cssVar}),a=Kw();return pg((()=>{var r,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:s,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>!yg(e,t[n],!0)))))}(v,m.theme,{prefixCls:we("")}),Ce={csp:ke,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:h,getPrefixCls:we,iconPrefixCls:xe,theme:Se,segmented:w,statistic:x,spin:k,calendar:S,carousel:C,cascader:E,collapse:D,typography:$,checkbox:O,descriptions:_,divider:I,drawer:N,skeleton:j,steps:P,image:T,input:V,textArea:G,layout:F,list:R,mentions:A,modal:M,progress:L,result:z,slider:B,breadcrumb:H,menu:W,pagination:q,empty:X,badge:K,radio:Y,rate:Q,switch:J,transfer:Z,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ie,timeline:ae,timePicker:le,upload:se,notification:ce,tree:ue,colorPicker:de,datePicker:fe,rangePicker:pe,flex:he,wave:ge,dropdown:me,warning:be,tour:ve,floatButtonGroup:ye},Ee=Object.assign({},m);Object.keys(Ce).forEach((e=>{void 0!==Ce[e]&&(Ee[e]=Ce[e])})),Vx.forEach((t=>{const n=e[t];n&&(Ee[t]=n)})),void 0!==r&&(Ee.button=Object.assign({autoInsertSpace:r},Ee.button));const De=pg((()=>Ee),Ee,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),$e=U.useMemo((()=>({prefixCls:xe,csp:ke})),[xe,ke]);let Oe=U.createElement(U.Fragment,null,U.createElement(qx,{dropdownMatchSelectWidth:f}),t);const _e=U.useMemo((()=>{var e,t,n,r;return Av((null===(e=qv.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=De.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=De.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[De,null==a?void 0:a.validateMessages]);Object.keys(_e).length>0&&(Oe=U.createElement(Bv.Provider,{value:_e},Oe)),l&&(Oe=U.createElement(Jv,{locale:l,_ANT_MARK__:"internalMark"},Oe)),(xe||ke)&&(Oe=U.createElement(Iv.Provider,{value:$e},Oe)),s&&(Oe=U.createElement(ow,{size:s},Oe)),Oe=U.createElement(Ux,null,Oe);const Ie=U.useMemo((()=>{const e=Se||{},{algorithm:t,token:n,components:r,cssVar: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Tg(t):Xy,l={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Tg(r.algorithm)),delete r.algorithm),l[t]=r}));const s=Object.assign(Object.assign({},Ay),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})}),[Se]);return v&&(Oe=U.createElement(Yy.Provider,{value:Ie},Oe)),De.warning&&(Oe=U.createElement(Lv.Provider,{value:De.warning},Oe)),void 0!==y&&(Oe=U.createElement(nw,{disabled:y},Oe)),U.createElement(Jy.Provider,{value:De},Oe)},tk=e=>{const t=U.useContext(Jy),n=U.useContext(Yv);return U.createElement(ek,Object.assign({parentContext:t,legacyLocale:n},e))};tk.ConfigContext=Jy,tk.SizeContext=rw,tk.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Gx=t),void 0!==n&&(Xx=n),"holderRender"in e&&(Yx=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?Kx=r:ew(Qx(),r))},tk.useConfig=function(){return{componentDisabled:U.useContext(tw),componentSize:U.useContext(rw)}},Object.defineProperty(tk,"SizeContext",{get:()=>rw});const nk=tk;var rk={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 ok(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function ik(e){return function(e){return ok(e)instanceof ShadowRoot}(e)?ok(e):null}function ak(e){return"object"===Cd(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Cd(e.icon)||"function"==typeof e.icon)}function lk(){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 sk(e,t,n){return n?q.createElement(e.tag,Od(Od({key:t},lk(e.attrs)),n),(e.children||[]).map((function(n,r){return sk(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):q.createElement(e.tag,Od({key:t},lk(e.attrs)),(e.children||[]).map((function(n,r){return sk(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function ck(e){return Ny(e)[0]}function uk(e){return e?Array.isArray(e)?e:[e]:[]}var dk=["icon","className","onClick","style","primaryColor","secondaryColor"],fk={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var pk=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=_d(e,dk),g=U.useRef(),m=fk;if(f&&(m={primaryColor:f,secondaryColor:p||ck(f)}),t=g,n=U.useContext(Iv),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\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)),U.useEffect((function(){var e=ik(t.current);fg(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),a=ak(s),l="icon should be icon definiton, but got ".concat(s),vg(a,"[@ant-design/icons] ".concat(l)),!ak(s))return null;var b=s;return b&&"function"==typeof b.icon&&(b=Od(Od({},b),{},{icon:b.icon(m.primaryColor,m.secondaryColor)})),sk(b.icon,"svg-".concat(b.name),Od(Od({className:c,onClick:u,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:g}))};function hk(e){var t=Yh(uk(e),2),n=t[0],r=t[1];return pk.setTwoToneColors({primaryColor:n,secondaryColor:r})}pk.displayName="IconReact",pk.getTwoToneColors=function(){return Od({},fk)},pk.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;fk.primaryColor=t,fk.secondaryColor=n||ck(t),fk.calculated=!!n};var gk=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];hk(Fy.primary);var mk=U.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=_d(e,gk),u=U.useContext(Iv),d=u.prefixCls,f=void 0===d?"anticon":d,p=u.rootClassName,h=pb(p,f,Dd(Dd({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!o||"loading"===r.name),n),g=a;void 0===g&&l&&(g=-1);var m=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Yh(uk(s),2),v=b[0],y=b[1];return U.createElement("span",hh({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:l,className:h}),U.createElement(pk,{icon:r,primaryColor:v,secondaryColor:y,style:m}))}));mk.displayName="AntdIcon",mk.getTwoToneColor=function(){var e=pk.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},mk.setTwoToneColor=hk;var bk=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:rk}))},vk=U.forwardRef(bk),yk={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"},wk=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:yk}))},xk=U.forwardRef(wk),kk={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"},Sk=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:kk}))},Ck=U.forwardRef(Sk),Ek={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"},Dk=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:Ek}))},$k=U.forwardRef(Dk),Ok={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"},_k=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:Ok}))},Ik=U.forwardRef(_k),Nk="".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]+/),jk="aria-",Pk="data-";function Tk(e,t){return 0===e.indexOf(t)}function Fk(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}:Od({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Tk(n,jk))||t.data&&Tk(n,Pk)||t.attr&&Nk.includes(n))&&(r[n]=e[n])})),r}function Rk(e){return e&&q.isValidElement(e)&&e.type===q.Fragment}const Ak=(e,t,n)=>q.isValidElement(e)?q.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function Mk(e,t){return Ak(e,e,t)}const Lk=(e,t,n,r,o)=>({background:e,border:`${Bg(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),zk=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({},_w(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}}},Bk=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":Lk(o,r,n,e,t),"&-info":Lk(p,f,d,e,t),"&-warning":Lk(l,a,i,e,t),"&-error":Object.assign(Object.assign({},Lk(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Hk=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:Bg(i),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}}}}},Wk=qw("Alert",(e=>[zk(e),Bk(e),Hk(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})));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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qk={success:vk,info:Ik,error:xk,warning:$k},Vk=e=>{const{icon:t,prefixCls:n,type:r}=e,o=qk[r]||null;return t?Ak(t,U.createElement("span",{className:`${n}-icon`},t),(()=>({className:pb(`${n}-icon`,{[t.props.className]:t.props.className})}))):U.createElement(o,{className:`${n}-icon`})},Gk=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=!0===r||void 0===r?U.createElement(Ck,null):r;return t?U.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},Xk=U.forwardRef(((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:l,style:s,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:f,showIcon:p,closable:h,closeText:g,closeIcon:m,action:b,id:v}=e,y=Uk(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,x]=U.useState(!1),k=U.useRef(null);U.useImperativeHandle(t,(()=>({nativeElement:k.current})));const{getPrefixCls:S,direction:C,alert:E}=U.useContext(Jy),D=S("alert",r),[$,O,_]=Wk(D),I=t=>{var n;x(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},N=U.useMemo((()=>void 0!==e.type?e.type:i?"warning":"info"),[e.type,i]),j=U.useMemo((()=>!("object"!=typeof h||!h.closeIcon)||(!!g||("boolean"==typeof h?h:!1!==m&&null!=m||!!(null==E?void 0:E.closable)))),[g,m,h,null==E?void 0:E.closable]),P=!(!i||void 0!==p)||p,T=pb(D,`${D}-${N}`,{[`${D}-with-description`]:!!n,[`${D}-no-icon`]:!P,[`${D}-banner`]:!!i,[`${D}-rtl`]:"rtl"===C},null==E?void 0:E.className,a,l,_,O),F=Fk(y,{aria:!0,data:!0}),R=U.useMemo((()=>{var e,t;return"object"==typeof h&&h.closeIcon?h.closeIcon:g||(void 0!==m?m:"object"==typeof(null==E?void 0:E.closable)&&(null===(e=null==E?void 0:E.closable)||void 0===e?void 0:e.closeIcon)?null===(t=null==E?void 0:E.closable)||void 0===t?void 0:t.closeIcon:null==E?void 0:E.closeIcon)}),[m,h,g,null==E?void 0:E.closeIcon]),A=U.useMemo((()=>{const e=null!=h?h:null==E?void 0:E.closable;if("object"==typeof e){return Uk(e,["closeIcon"])}return{}}),[h,null==E?void 0:E.closable]);return $(U.createElement(Px,{visible:!w,motionName:`${D}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:f},(t=>{let{className:r,style:i}=t;return U.createElement("div",Object.assign({id:v,ref:k,"data-show":!w,className:pb(T,r),style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.style),s),i),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},F),P?U.createElement(Vk,{description:n,icon:e.icon,prefixCls:D,type:N}):null,U.createElement("div",{className:`${D}-content`},o?U.createElement("div",{className:`${D}-message`},o):null,n?U.createElement("div",{className:`${D}-description`},n):null),b?U.createElement("div",{className:`${D}-action`},b):null,U.createElement(Gk,{isClosable:j,prefixCls:D,closeIcon:R,handleClose:I,ariaProps:A}))})))}));let Kk=function(e){function t(){var e;return nh(this,t),(e=bw(this,t,arguments)).state={error:void 0,info:{componentStack:""}},e}return fv(t,U.Component),oh(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:r}=this.props,{error:o,info:i}=this.state,a=i&&i.componentStack?i.componentStack:null,l=void 0===e?(o||"").toString():e,s=void 0===t?a:t;return o?U.createElement(Xk,{id:n,type:"error",message:l,description:U.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):r}}])}();const Yk=Xk;Yk.ErrorBoundary=Kk;const Qk=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Jk=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Zk=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Jk(n.overflowY,t)||Jk(n.overflowX,t)||(e=>{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.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},eS=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,tS=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},nS=(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(!Qk(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Qk(h)&&d(h);){if(h=tS(h),h===f){p.push(h);break}null!=h&&h===document.body&&Zk(h)&&!Zk(document.documentElement)||null!=h&&Zk(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:k,bottom:S,left:C}=e.getBoundingClientRect(),{top:E,right:D,bottom:$,left:O}=(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 _="start"===l||"nearest"===l?x-E:"end"===l?S+$:x+y/2-E+$,I="center"===s?C+w/2-O+D:"end"===s?k+D:C-O;const N=[];for(let j=0;j<p.length;j++){const e=p[j],{height:t,width:n,top:r,right:o,bottom:i,left:c}=e.getBoundingClientRect();if("if-needed"===a&&x>=0&&C>=0&&S<=m&&k<=g&&x>=r&&S<=i&&C>=c&&k<=o)return N;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),D=parseInt(u.borderBottomWidth,10);let $=0,O=0;const P="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-D: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)$="start"===l?_:"end"===l?_-m:"nearest"===l?eS(v,v+m,m,h,D,v+_,v+_+y,y):_-m/2,O="start"===s?I:"center"===s?I-g/2:"end"===s?I-g:eS(b,b+g,g,d,E,b+I,b+I+w,w),$=Math.max(0,$+v),O=Math.max(0,O+b);else{$="start"===l?_-r-h:"end"===l?_-i+D+T:"nearest"===l?eS(r,i,t,h,D+T,_,_+y,y):_-(r+t/2)+T/2,O="start"===s?I-c-d:"center"===s?I-(c+n/2)+P/2:"end"===s?I-o+E+P:eS(c,o,n,d,E+P,I,I+w,w);const{scrollLeft:a,scrollTop:u}=e;$=0===R?0:Math.max(0,Math.min(u+$/R,e.scrollHeight-t/R+T)),O=0===F?0:Math.max(0,Math.min(a+O/F,e.scrollWidth-n/F+P)),_+=u-$,I+=a-O}N.push({el:e,top:$,left:O})}return N},rS=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};const oS=e=>{const[,,,,t]=mw();return t?`${e}-css-var`:""};var iS={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>=iS.F1&&t<=iS.F12)return!1;switch(t){case iS.ALT:case iS.CAPS_LOCK:case iS.CONTEXT_MENU:case iS.CTRL:case iS.DOWN:case iS.END:case iS.ESC:case iS.HOME:case iS.INSERT:case iS.LEFT:case iS.MAC_FF_META:case iS.META:case iS.NUMLOCK:case iS.NUM_CENTER:case iS.PAGE_DOWN:case iS.PAGE_UP:case iS.PAUSE:case iS.PRINT_SCREEN:case iS.RIGHT:case iS.SHIFT:case iS.UP:case iS.WIN_KEY:case iS.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=iS.ZERO&&e<=iS.NINE)return!0;if(e>=iS.NUM_ZERO&&e<=iS.NUM_MULTIPLY)return!0;if(e>=iS.A&&e<=iS.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case iS.SPACE:case iS.QUESTION_MARK:case iS.NUM_PLUS:case iS.NUM_MINUS:case iS.NUM_PERIOD:case iS.NUM_DIVISION:case iS.SEMICOLON:case iS.DASH:case iS.EQUALS:case iS.COMMA:case iS.PERIOD:case iS.SLASH:case iS.APOSTROPHE:case iS.SINGLE_QUOTE:case iS.OPEN_SQUARE_BRACKET:case iS.BACKSLASH:case iS.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},aS=U.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=Yh(U.useState(!1),2),v=b[0],y=b[1],w=m||v,x=function(){h(l)};U.useEffect((function(){if(!w&&a>0){var e=setTimeout((function(){x()}),1e3*a);return function(){clearTimeout(e)}}}),[a,w,g]);var k=U.useMemo((function(){return"object"===Cd(c)&&null!==c?c:c?{closeIcon:d}:{}}),[c,d]),S=Fk(k,!0),C="".concat(n,"-notice");return U.createElement("div",hh({},f,{ref:t,className:pb(C,o,Dd({},"".concat(C,"-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}),U.createElement("div",{className:"".concat(C,"-content")},s),c&&U.createElement("a",hh({tabIndex:0,className:"".concat(C,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==iS.ENTER||x()},"aria-label":"Close"},S,{onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}}),k.closeIcon))})),lS=q.createContext({}),sS=function(e){var t=e.children,n=e.classNames;return q.createElement(lS.Provider,{value:{classNames:n}},t)},cS=["className","style","classNames","styles"],uS=function(e){var t,n,r,o,i,a=e.configList,l=e.placement,s=e.prefixCls,c=e.className,u=e.style,d=e.motion,f=e.onAllNoticeRemoved,p=e.onNoticeClose,h=e.stack,g=U.useContext(lS).classNames,m=U.useRef({}),b=Yh(U.useState(null),2),v=b[0],y=b[1],w=Yh(U.useState([]),2),x=w[0],k=w[1],S=a.map((function(e){return{config:e,key:String(e.key)}})),C=Yh((i={offset:8,threshold:3,gap:16},(t=h)&&"object"===Cd(t)&&(i.offset=null!==(n=t.offset)&&void 0!==n?n:8,i.threshold=null!==(r=t.threshold)&&void 0!==r?r:3,i.gap=null!==(o=t.gap)&&void 0!==o?o:16),[!!t,i]),2),E=C[0],D=C[1],$=D.offset,O=D.threshold,_=D.gap,I=E&&(x.length>0||S.length<=O),N="function"==typeof d?d(l):d;return U.useEffect((function(){E&&x.length>1&&k((function(e){return e.filter((function(e){return S.some((function(t){var n=t.key;return e===n}))}))}))}),[x,S,E]),U.useEffect((function(){var e,t;E&&m.current[null===(e=S[S.length-1])||void 0===e?void 0:e.key]&&y(m.current[null===(t=S[S.length-1])||void 0===t?void 0:t.key])}),[S,E]),q.createElement(Wx,hh({key:l,className:pb(s,"".concat(s,"-").concat(l),null==g?void 0:g.list,c,Dd(Dd({},"".concat(s,"-stack"),!!E),"".concat(s,"-stack-expanded"),I)),style:u,keys:S,motionAppear:!0},N,{onAllRemoved:function(){f(l)}}),(function(e,t){var n=e.config,r=e.className,o=e.style,i=e.index,a=n,c=a.key,u=a.times,d=String(c),f=n,h=f.className,b=f.style,y=f.classNames,w=f.styles,C=_d(f,cS),D=S.findIndex((function(e){return e.key===d})),O={};if(E){var N=S.length-1-(D>-1?D:i-1),j="top"===l||"bottom"===l?"-50%":"0";if(N>0){var P,T,F;O.height=I?null===(P=m.current[d])||void 0===P?void 0:P.offsetHeight:null==v?void 0:v.offsetHeight;for(var R=0,A=0;A<N;A++){var M;R+=(null===(M=m.current[S[S.length-1-A].key])||void 0===M?void 0:M.offsetHeight)+_}var L=(I?R:N*$)*(l.startsWith("top")?1:-1),z=!I&&null!=v&&v.offsetWidth&&null!==(T=m.current[d])&&void 0!==T&&T.offsetWidth?((null==v?void 0:v.offsetWidth)-2*$*(N<3?N:3))/(null===(F=m.current[d])||void 0===F?void 0:F.offsetWidth):1;O.transform="translate3d(".concat(j,", ").concat(L,"px, 0) scaleX(").concat(z,")")}else O.transform="translate3d(".concat(j,", 0, 0)")}return q.createElement("div",{ref:t,className:pb("".concat(s,"-notice-wrapper"),r,null==y?void 0:y.wrapper),style:Od(Od(Od({},o),O),null==w?void 0:w.wrapper),onMouseEnter:function(){return k((function(e){return e.includes(d)?e:[].concat(Jh(e),[d])}))},onMouseLeave:function(){return k((function(e){return e.filter((function(e){return e!==d}))}))}},q.createElement(aS,hh({},C,{ref:function(e){D>-1?m.current[d]=e:delete m.current[d]},prefixCls:s,classNames:y,styles:w,className:pb(h,null==g?void 0:g.notice),style:b,times:u,key:c,eventKey:c,onNoticeClose:p,hovering:E&&x.length>0})))}))},dS=U.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=Yh(U.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}))}))};U.useImperativeHandle(t,(function(){return{open:function(e){h((function(t){var n,r=Jh(t),o=r.findIndex((function(t){return t.key===e.key})),i=Od({},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=Yh(U.useState({}),2),b=m[0],v=m[1];U.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=Od({},t);return(n[e]||[]).length||delete n[e],n}))},w=U.useRef(!1);if(U.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 yd.createPortal(U.createElement(U.Fragment,null,x.map((function(e){var t=b[e],n=U.createElement(uS,{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"],pS=function(){return document.body},hS=0;function gS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?pS: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=_d(e,fS),f=Yh(U.useState(),2),p=f[0],h=f[1],g=U.useRef(),m=U.createElement(dS,{container:p,ref:g,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),b=Yh(U.useState([]),2),v=b[0],y=b[1],w=U.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(hS),hS+=1),y((function(e){return[].concat(Jh(e),[{type:"open",config:t}])}))},close:function(e){y((function(t){return[].concat(Jh(t),[{type:"close",key:e}])}))},destroy:function(){y((function(e){return[].concat(Jh(e),[{type:"destroy"}])}))}}}),[]);return U.useEffect((function(){h(n())})),U.useEffect((function(){g.current&&v.length&&(v.forEach((function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}})),y((function(e){return e.filter((function(e){return!v.includes(e)}))})))}),[v]),[w,m]}var mS={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},bS=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:mS}))},vS=U.forwardRef(bS);const yS=q.createContext(void 0),wS=100,xS=1e3,kS={Modal:wS,Drawer:wS,Popover:wS,Popconfirm:wS,Tooltip:wS,Tour:wS},SS={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function CS(e,t){const[,n]=mw(),r=q.useContext(yS),o=e in kS;if(void 0!==t)return[t,t];let i=null!=r?r:0;return o?(i+=(r?0:n.zIndexPopupBase)+kS[e],i=Math.min(i,n.zIndexPopupBase+xS)):i+=SS[e],[void 0===r?t:i,i]}const ES=e=>{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 sb("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new sb("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({},_w(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"})}]},DS=qw("Message",(e=>{const t=Rw(e,{height:150});return[ES(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+xS+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));const $S={info:U.createElement(Ik,null),success:U.createElement(vk,null),error:U.createElement(xk,null),warning:U.createElement($k,null),loading:U.createElement(vS,null)},OS=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return U.createElement("div",{className:pb(`${t}-custom-content`,`${t}-${n}`)},r||$S[n],U.createElement("span",null,o))};function _S(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var IS=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const NS=3,jS=e=>{let{children:t,prefixCls:n}=e;const r=oS(n),[o,i,a]=DS(n,r);return o(U.createElement(sS,{classNames:{list:pb(i,a,r)}},t))},PS=(e,t)=>{let{prefixCls:n,key:r}=t;return U.createElement(jS,{prefixCls:n,key:r},e)},TS=U.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=NS,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:p}=U.useContext(Jy),h=r||u("message"),g=U.createElement("span",{className:`${h}-close-x`},U.createElement(Ck,{className:`${h}-close-icon`})),[m,b]=gS({prefixCls:h,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>pb({[`${h}-rtl`]:null!=l?l:"rtl"===p}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(h,s),closable:!1,closeIcon:g,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:PS});return U.useImperativeHandle(t,(()=>Object.assign(Object.assign({},m),{prefixCls:h,message:f}))),b}));let FS=0;function RS(e){const t=U.useRef(null);zv();return[U.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=IS(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(FS+=1,g=`antd-message-${FS}`),_S((t=>(r(Object.assign(Object.assign({},h),{key:g,content:U.createElement(OS,{prefixCls:o,type:c,icon:s},l),placement:"top",className:pb(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}),[]),U.createElement(TS,Object.assign({key:"message-holder"},e,{ref:t}))]}function AS(e){return RS(e)}function MS(){MS=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(j){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 I(r||[]);return o(a,"_invoke",{value:D(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,k=x&&x(x(N([])));k&&k!==n&&r.call(k,a)&&(w=k);var S=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"==Cd(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 D(t,n,r){var o=f;return function(i,a){if(o===h)throw 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=$(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 $(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,$(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 O(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,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<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Cd(t)+" is not iterable")}return v.prototype=y,o(S,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(E.prototype),c(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),c(S,s,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=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<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(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;_(n)}return o}}throw 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 LS(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 zS(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){LS(i,r,o,a,l,"next",e)}function l(e){LS(i,r,o,a,l,"throw",e)}a(void 0)}))}}var BS,HS=Od({},xd),WS=HS.version,US=HS.render,qS=HS.unmountComponentAtNode;try{Number((WS||"").split(".")[0])>=18&&(BS=HS.createRoot)}catch(b6){}function VS(e){var t=HS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Cd(t)&&(t.usingClientEntryPoint=e)}var GS="__rc_react_root__";function XS(e,t){BS?function(e,t){VS(!0);var n=t[GS]||BS(t);VS(!1),n.render(e),t[GS]=n}(e,t):function(e,t){US(e,t)}(e,t)}function KS(e){return YS.apply(this,arguments)}function YS(){return(YS=zS(MS().mark((function e(t){return MS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[GS])||void 0===e||e.unmount(),delete t[GS]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function QS(e){qS(e)}function JS(e){return ZS.apply(this,arguments)}function ZS(){return(ZS=zS(MS().mark((function e(t){return MS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===BS){e.next=2;break}return e.abrupt("return",KS(t));case 2:QS(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const eC=()=>({height:0,opacity:0}),tC=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},nC=e=>({height:e?e.offsetHeight:0}),rC=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,oC=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:eC,onEnterStart:eC,onAppearActive:tC,onEnterActive:tC,onLeaveStart:nC,onLeaveActive:eC,onAppearEnd:rC,onEnterEnd:rC,onLeaveEnd:rC,motionDeadline:500}},iC=(e,t,n)=>void 0!==n?n:`${e}-${t}`,aC=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},lC=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 ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},sC=Hw("Wave",(e=>[lC(e)])),cC="ant-wave-target";function uC(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}function dC(e){return Number.isNaN(e)?0:e}const fC=e=>{const{className:t,target:n,component:r}=e,o=U.useRef(null),[i,a]=U.useState(null),[l,s]=U.useState([]),[c,u]=U.useState(0),[d,f]=U.useState(0),[p,h]=U.useState(0),[g,m]=U.useState(0),[b,v]=U.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 uC(t)?t:uC(n)?n:uC(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:dC(-parseFloat(r))),f(t?n.offsetTop:dC(-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=>dC(parseFloat(e)))))}if(i&&(y["--wave-color"]=i),U.useEffect((()=>{if(n){const e=_v((()=>{w(),v(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{_v.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(cC));return U.createElement(Px,{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;JS(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return U.createElement("div",{ref:o,className:pb(t,{"wave-quick":x},n),style:y})}))},pC=(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),XS(U.createElement(fC,Object.assign({},t,{target:e})),o)},hC=(e,t,n)=>{const{wave:r}=U.useContext(Jy),[,o,i]=mw(),a=Cw((a=>{const l=e.current;if((null==r?void 0:r.disabled)||!l)return;const s=l.querySelector(`.${cC}`)||l,{showEffect:c}=r||{};(c||pC)(s,{className:t,token:o,component:n,event:a,hashId:i})})),l=U.useRef();return e=>{_v.cancel(l.current),l.current=_v((()=>{a(e)}))}},gC=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=U.useContext(Jy),i=U.useRef(null),a=o("wave"),[,l]=sC(a),s=hC(i,pb(a,l),r);if(q.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!aC(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]),!q.isValidElement(t))return null!=t?t:null;return Mk(t,{ref:Lb(t)?Ab(t.ref,i):i})},mC=e=>{const t=q.useContext(rw);return q.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},bC=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},vC=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},yC=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}}}},wC=qw("Space",(e=>{const t=Rw(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[vC(t),yC(t),bC(t)]}),(()=>({})),{resetStyle:!1});var xC=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kC=U.createContext(null),SC=(e,t)=>{const n=U.useContext(kC),r=U.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return pb(`${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}},CC=e=>{let{children:t}=e;return U.createElement(kC.Provider,{value:null},t)},EC=e=>{var{children:t}=e,n=xC(e,["children"]);return U.createElement(kC.Provider,{value:n},t)};const DC=U.createContext(void 0),$C=/^[\u4e00-\u9fa5]{2}$/,OC=$C.test.bind($C);function _C(e){return"danger"===e?{danger:!0}:{type:e}}function IC(e){return"string"==typeof e}function NC(e){return"text"===e||"link"===e}function jC(e,t){let n=!1;const r=[];return q.Children.forEach(e,(e=>{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})),q.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&IC(e.type)&&OC(e.props.children)?Mk(e,{children:e.props.children.split("").join(n)}):IC(e)?OC(e)?q.createElement("span",null,e.split("").join(n)):q.createElement("span",null,e):Rk(e)?q.createElement("span",null,e):e}(e,t)))}const PC=U.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=pb(`${i}-icon`,n);return q.createElement("span",{ref:t,className:a,style:r},o)})),TC=U.forwardRef(((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i,iconPosition:a="start"}=e,l=pb(r,{[`${n}-loading-icon-end`]:"end"===a,[`${n}-loading-icon`]:"start"===a});return q.createElement(PC,{prefixCls:n,className:l,style:o,ref:t},q.createElement(vS,{className:i}))})),FC=()=>({width:0,opacity:0,transform:"scale(0)"}),RC=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),AC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,iconPosition:a}=e,l=!!n;return r?q.createElement(TC,{prefixCls:t,className:o,style:i,iconPosition:a}):q.createElement(Px,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:FC,onAppearActive:RC,onEnterStart:FC,onEnterActive:RC,onLeaveStart:RC,onLeaveActive:FC},((e,n)=>{let{className:r,style:l}=e;return q.createElement(TC,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),l),ref:n,iconClassName:r,iconPosition:a})}))},MC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),LC=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:e.calc(r).mul(-1).equal(),[`&, & > ${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}},MC(`${t}-primary`,o),MC(`${t}-danger`,i)]}},zC=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Rw(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},BC=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:By(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:By(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:By(c);return{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,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},HC=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",background:"transparent",border:`${Bg(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0,"&-end":{marginInlineStart:e.marginXS}},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS},[`&${t}-loading-icon-end`]:{marginInlineStart:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Pw(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"}}}},WC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),UC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),qC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),VC=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),GC=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},WC(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),XC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},VC(e))}),KC=e=>Object.assign({},XC(e)),YC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),QC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KC(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),WC(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),GC(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},WC(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),GC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),XC(e))}),JC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KC(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),WC(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),GC(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({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},WC(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),GC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),XC(e))}),ZC=e=>Object.assign(Object.assign({},QC(e)),{borderStyle:"dashed"}),eE=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},WC(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),YC(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},WC(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),YC(e))}),tE=e=>Object.assign(Object.assign(Object.assign({},WC(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),YC(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},YC(e)),WC(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),nE=e=>{const{componentCls:t}=e;return{[`${t}-default`]:QC(e),[`${t}-primary`]:JC(e),[`${t}-dashed`]:ZC(e),[`${t}-link`]:eE(e),[`${t}-text`]:tE(e),[`${t}-ghost`]:GC(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},rE=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${Bg(c)} ${Bg(l)}`,borderRadius:a,[`&${u}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{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}`]:UC(e)},{[`${n}${n}-round${t}`]:qC(e)}]},oE=e=>{const t=Rw(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return rE(t,e.componentCls)},iE=e=>{const t=Rw(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return rE(t,`${e.componentCls}-sm`)},aE=e=>{const t=Rw(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return rE(t,`${e.componentCls}-lg`)},lE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},sE=qw("Button",(e=>{const t=zC(e);return[HC(t),oE(t),iE(t),aE(t),lE(t),nE(t),LC(t)]}),BC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function cE(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.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function uE(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 dE(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({},cE(e,r,t)),uE(n,r,t))}}function fE(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function pE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},fE(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 hE=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Bg(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Bg(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},gE=Ww(["Button","compact"],(e=>{const t=zC(e);return[dE(t),pE(t),hE(t)]}),BC);const mE=q.forwardRef(((e,t)=>{var n,r,o;const{loading:i=!1,prefixCls:a,type:l,danger:s,shape:c="default",size:u,styles:d,disabled:f,className:p,rootClassName:h,children:g,icon:m,iconPosition:b="start",ghost:v=!1,block:y=!1,htmlType:w="button",classNames:x,style:k={},autoInsertSpace: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),E=l||"default",{getPrefixCls:D,direction:$,button:O}=U.useContext(Jy),_=null===(n=null!=S?S:null==O?void 0:O.autoInsertSpace)||void 0===n||n,I=D("btn",a),[N,j,P]=sE(I),T=U.useContext(tw),F=null!=f?f:T,R=U.useContext(DC),A=U.useMemo((()=>function(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}}(i)),[i]),[M,L]=U.useState(A.loading),[z,B]=U.useState(!1),H=Ab(t,U.createRef()),W=1===U.Children.count(g)&&!m&&!NC(E);U.useEffect((()=>{let e=null;return A.delay>0?e=setTimeout((()=>{e=null,L(!0)}),A.delay):L(A.loading),function(){e&&(clearTimeout(e),e=null)}}),[A]),U.useEffect((()=>{if(!H||!H.current||!_)return;const e=H.current.textContent;W&&OC(e)?z||B(!0):z&&B(!1)}),[H]);const V=t=>{const{onClick:n}=e;M||F?t.preventDefault():null==n||n(t)},{compactSize:G,compactItemClassnames:X}=SC(I,$),K=mC((e=>{var t,n;return null!==(n=null!==(t=null!=u?u:G)&&void 0!==t?t:R)&&void 0!==n?n:e})),Y=K&&{large:"lg",small:"sm",middle:void 0}[K]||"",Q=M?"loading":m,J=Sv(C,["navigate"]),Z=pb(I,j,P,{[`${I}-${c}`]:"default"!==c&&c,[`${I}-${E}`]:E,[`${I}-${Y}`]:Y,[`${I}-icon-only`]:!g&&0!==g&&!!Q,[`${I}-background-ghost`]:v&&!NC(E),[`${I}-loading`]:M,[`${I}-two-chinese-chars`]:z&&_&&!M,[`${I}-block`]:y,[`${I}-dangerous`]:!!s,[`${I}-rtl`]:"rtl"===$},X,p,h,null==O?void 0:O.className),ee=Object.assign(Object.assign({},null==O?void 0:O.style),k),te="end"===b&&g&&0!==g&&Q,ne=pb(null==x?void 0:x.icon,null===(r=null==O?void 0:O.classNames)||void 0===r?void 0:r.icon,{[`${I}-icon-end`]:te}),re=Object.assign(Object.assign({},(null==d?void 0:d.icon)||{}),(null===(o=null==O?void 0:O.styles)||void 0===o?void 0:o.icon)||{}),oe=m&&!M?q.createElement(PC,{prefixCls:I,className:ne,style:re},m):q.createElement(AC,{existIcon:!!m,prefixCls:I,loading:!!M,iconPosition:b}),ie=g||0===g?jC(g,W&&_):null,ae=(e,t)=>{const n="rtl"===$,r="start"===b&&!n||"end"===b&&n;return q.createElement(q.Fragment,null,r?e:t,r?t:e)};if(void 0!==J.href)return N(q.createElement("a",Object.assign({},J,{className:pb(Z,{[`${I}-disabled`]:F}),href:F?void 0:J.href,style:ee,onClick:V,ref:H,tabIndex:F?-1:0}),ae(oe,ie)));let le=q.createElement("button",Object.assign({},C,{type:w,className:Z,style:ee,onClick:V,disabled:F,ref:H}),ae(oe,ie),!!X&&q.createElement(gE,{key:"compact",prefixCls:I}));return NC(E)||(le=q.createElement(gC,{component:"Button",disabled:!!M},le)),N(le)})),bE=mE;function vE(e){return!(!e||!e.then)}bE.Group=e=>{const{getPrefixCls:t,direction:n}=U.useContext(Jy),{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=mw();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=pb(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:"rtl"===n},i,s);return U.createElement(DC.Provider,{value:o},U.createElement("div",Object.assign({},a,{className:u})))},bE.__ANT_BUTTON=!0;const yE=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,d=U.useRef(!1),f=U.useRef(null),[p,h]=Ew(!1),g=function(){null==i||i.apply(void 0,arguments)};U.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return U.createElement(bE,Object.assign({},_C(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(l){if(t=u(e),c&&!vE(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=>{vE(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)},wE=q.createContext({}),{Provider:xE}=wE,kE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=U.useContext(wE);return o?q.createElement(yE,{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},SE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=U.useContext(wE);return q.createElement(yE,{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 CE=U.createContext(null),EE=[];function DE(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",d=c?"height: ".concat(l.height,";"):"";fg("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(b6){console.error(b6),r=s,o=c}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),dg(t),{width:f,height:p}}(e):{width:0,height:0}}var $E="rc-util-locker-".concat(Date.now()),OE=0;function _E(e){var t=!!e,n=Yh(U.useState((function(){return OE+=1,"".concat($E,"_").concat(OE)})),1)[0];Gg((function(){if(t){var e=DE(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;fg("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else dg(n);return function(){dg(n)}}),[t,n])}var IE=function(e){return!1!==e&&(eg()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},NE=U.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=Yh(U.useState(n),2),c=s[0],u=s[1],d=c||n;U.useEffect((function(){(a||n)&&u(n)}),[n,a]);var f=Yh(U.useState((function(){return IE(o)})),2),p=f[0],h=f[1];U.useEffect((function(){var e=IE(o);h(null!=e?e:null)}));var g=function(e,t){var n=Yh(U.useState((function(){return eg()?document.createElement("div"):null})),1)[0],r=U.useRef(!1),o=U.useContext(CE),i=Yh(U.useState(EE),2),a=i[0],l=i[1],s=o||(r.current?void 0:function(e){l((function(t){return[e].concat(Jh(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 Gg((function(){return e?o?o(c):c():u(),u}),[e]),Gg((function(){a.length&&(a.forEach((function(e){return e()})),l(EE))}),[a]),[n,s]}(d&&!p),m=Yh(g,2),b=m[0],v=m[1],y=null!=p?p:b;_E(r&&n&&eg()&&(y===b||y===document.body));var w=null;l&&Lb(l)&&t&&(w=l.ref);var x=Mb(w,t);if(!d||!eg()||void 0===p)return null;var k=!1===y||!1,S=l;return t&&(S=U.cloneElement(l,{ref:x})),U.createElement(CE.Provider,{value:v},k?S:yd.createPortal(S,y))})),jE=U.createContext({});var PE=0,TE=Od({},V).useId;const FE=TE?function(e){var t=TE();return e||t}:function(e){var t=Yh(U.useState("ssr-id"),2),n=t[0],r=t[1];return U.useEffect((function(){var e=PE;PE+=1,r("rc_unique_".concat(e))}),[]),e||n};function RE(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function AE(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 ME=U.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var LE={width:0,height:0,overflow:"hidden",outline:"none"},zE={outline:"none"},BE=q.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,k=e.classNames,S=e.styles,C=q.useContext(jE).panel,E=Mb(b,C),D=U.useRef(),$=U.useRef(),O=U.useRef();q.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=O.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===$.current?D.current.focus():e||t!==D.current||$.current.focus()}}}));var _,I,N={};void 0!==w&&(N.width=w),void 0!==x&&(N.height=x),l&&(_=q.createElement("div",{className:pb("".concat(n,"-footer"),null==k?void 0:k.footer),style:Od({},null==S?void 0:S.footer)},l)),i&&(I=q.createElement("div",{className:pb("".concat(n,"-header"),null==k?void 0:k.header),style:Od({},null==S?void 0:S.header)},q.createElement("div",{className:"".concat(n,"-title"),id:a},i)));var j,P=U.useMemo((function(){return"object"===Cd(s)&&null!==s?s:s?{closeIcon:null!=c?c:q.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[s,c]),T=Fk(P,!0);s&&(j=q.createElement("button",hh({type:"button",onClick:u,"aria-label":"Close"},T,{className:"".concat(n,"-close")}),P.closeIcon));var F=q.createElement("div",{className:pb("".concat(n,"-content"),null==k?void 0:k.content),style:null==S?void 0:S.content},j,I,q.createElement("div",hh({className:pb("".concat(n,"-body"),null==k?void 0:k.body),style:Od(Od({},f),null==S?void 0:S.body)},p),d),_);return q.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:E,style:Od(Od({},o),N),className:pb(n,r),onMouseDown:g,onMouseUp:m},q.createElement("div",{tabIndex:0,ref:D,style:LE,"aria-hidden":"true"}),q.createElement("div",{ref:O,tabIndex:-1,style:zE},q.createElement(ME,{shouldUpdate:v||y},h?h(F):F)),q.createElement("div",{tabIndex:0,ref:$,style:LE,"aria-hidden":"true"}))})),HE=U.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=U.useRef(),h=Yh(U.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+=AE(o),n.top+=AE(o,!0),n);m(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}return g&&(b.transformOrigin=g),U.createElement(Px,{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 U.createElement(BE,hh({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:l,style:Od(Od(Od({},c),o),b),className:pb(i,s)}))}))}));function WE(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return U.createElement(Px,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var i=e.className,l=e.style;return U.createElement("div",hh({ref:r,style:Od(Od({},l),n),className:pb("".concat(t,"-mask"),i,a)},o))}))}function UE(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,k=e.maskTransitionName,S=e.maskAnimation,C=e.maskClosable,E=void 0===C||C,D=e.maskStyle,$=e.maskProps,O=e.rootClassName,_=e.classNames,I=e.styles,N=U.useRef(),j=U.useRef(),P=U.useRef(),T=Yh(U.useState(i),2),F=T[0],R=T[1],A=FE();function M(e){null==p||p(e)}var L=U.useRef(!1),z=U.useRef(),B=null;return E&&(B=function(e){L.current?L.current=!1:j.current===e.target&&M(e)}),U.useEffect((function(){i&&(R(!0),tg(j.current,document.activeElement)||(N.current=document.activeElement))}),[i]),U.useEffect((function(){return function(){clearTimeout(z.current)}}),[]),U.createElement("div",hh({className:pb("".concat(n,"-root"),O)},Fk(e,{data:!0})),U.createElement(WE,{prefixCls:n,visible:x&&i,motionName:RE(n,k,S),style:Od(Od({zIndex:r},D),null==I?void 0:I.mask),maskProps:$,className:null==_?void 0:_.mask}),U.createElement("div",hh({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===iS.ESC)return e.stopPropagation(),void M(e);i&&e.keyCode===iS.TAB&&P.current.changeActive(!e.shiftKey)},className:pb("".concat(n,"-wrap"),d,null==_?void 0:_.wrapper),ref:j,onClick:B,style:Od(Od(Od({zIndex:r},u),null==I?void 0:I.wrapper),{},{display:F?null:"none"})},f),U.createElement(HE,hh({},e,{onMouseDown:function(){clearTimeout(z.current),L.current=!0},onMouseUp:function(){z.current=setTimeout((function(){L.current=!1}))},ref:P,closable:y,ariaId:A,prefixCls:n,visible:i&&F,onClose:M,onVisibleChanged:function(e){if(e)tg(j.current,document.activeElement)||null===(t=P.current)||void 0===t||t.focus();else{if(R(!1),x&&N.current&&c){try{N.current.focus({preventScroll:!0})}catch(b6){}N.current=null}F&&(null==g||g())}var t;null==h||h(e)},motionName:RE(n,m,b)}))))}HE.displayName="Content";var qE=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=Yh(U.useState(t),2),c=s[0],u=s[1],d=U.useMemo((function(){return{panel:l}}),[l]);return U.useEffect((function(){t&&u(!0)}),[t]),r||!i||c?U.createElement(jE.Provider,{value:d},U.createElement(NE,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},U.createElement(UE,hh({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null};function VE(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function GE(e){const{closable:t,closeIcon:n}=e||{};return q.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function XE(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((t=>{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}qE.displayName="Dialog";const KE={};function YE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:KE;const r=GE(e),o=GE(t),i=q.useMemo((()=>Object.assign({closeIcon:q.createElement(Ck,null)},n)),[n]),a=q.useMemo((()=>!1!==r&&(r?XE(i,o,r):!1!==o&&(o?XE(i,o):!!i.closable&&i))),[r,o,i]);return q.useMemo((()=>{if(!1===a)return[!1,null];const{closeIconRender:e}=i,{closeIcon:t}=a;let n=t;if(null!=n){e&&(n=e(t));const r=Fk(a,!0);Object.keys(r).length&&(n=q.isValidElement(n)?q.cloneElement(n,r):q.createElement("span",Object.assign({},r),n))}return[!0,n]}),[a,i])}var QE="RC_FORM_INTERNAL_HOOKS",JE=function(){vg(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ZE=U.createContext({getFieldValue:JE,getFieldsValue:JE,getFieldError:JE,getFieldWarning:JE,getFieldsError:JE,isFieldsTouched:JE,isFieldTouched:JE,isFieldValidating:JE,isFieldsValidating:JE,resetFields:JE,setFields:JE,setFieldValue:JE,setFieldsValue:JE,validateFields:JE,submit:JE,getInternalHooks:function(){return JE(),{dispatch:JE,initEntityValue:JE,registerField:JE,useSubscribe:JE,setInitialValues:JE,destroyForm:JE,setCallbacks:JE,registerWatch:JE,getFields:JE,setValidateMessages:JE,setPreserve:JE,getInitialValue:JE}}}),eD=U.createContext(null);function tD(e){return null==e?[]:Array.isArray(e)?e:[e]}function nD(){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 rD=nD();function oD(e){var t="function"==typeof Map?new Map:void 0;return oD=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(b6){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(hv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&dv(o,n.prototype),o}(e,arguments,pv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),dv(n,e)},oD(e)}var iD=/%[sdj%]/g,aD=function(){};function lD(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function sD(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(iD,(function(e){if("%%"===e)return"%";if(o>=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 cD(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 uD(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<o?t(e[l],i):n([])}}([])}var dD=function(e){fv(n,oD(Error));var t=bv(n);function n(e,r){var o;return nh(this,n),Dd(gv(o=t.call(this,"Async Validation Error")),"errors",void 0),Dd(gv(o),"fields",void 0),o.errors=e,o.fields=r,o}return oh(n)}();function fD(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,Jh(e[n]||[]))})),t}(e);uD(a,n,(function(e){return r(e),e.length?i(new dD(e,lD(e))):t(o)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new dD(u,lD(u))):t(o)};l.length||(r(u),t(o)),l.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?uD(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,Jh(e||[])),++o===i&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function pD(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function hD(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===Cd(r)&&"object"===Cd(e[n])?e[n]=Od(Od({},e[n]),r):e[n]=r}return e}var gD,mD="enum",bD=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!cD(t,i||e.type)||r.push(sD(o.messages.required,e.fullField))};var vD=/^(([^<>()\[\]\\.,;:\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,}))$/,yD=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,wD={integer:function(e){return wD.number(e)&&parseInt(e,10)===e},float:function(e){return wD.number(e)&&!wD.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(b6){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"===Cd(e)&&!wD.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(vD)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(gD)return gD;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return gD=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(yD)}};const xD={required:bD,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(sD(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)bD(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?wD[i](t)||r.push(sD(o.messages.types[i],e.fullField,e.type)):i&&Cd(t)!==e.type&&r.push(sD(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(sD(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(sD(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(sD(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(sD(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[mD]=Array.isArray(e[mD])?e[mD]:[],-1===e[mD].indexOf(t)&&r.push(sD(o.messages[mD],e.fullField,e[mD].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(sD(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(sD(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};var kD=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cD(t,i)&&!e.required)return n();xD.required(e,t,r,a,o,i),cD(t,i)||xD.type(e,t,r,a,o)}n(a)};const SD={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(cD(t,"string")&&!e.required)return n();xD.required(e,t,r,i,o,"string"),cD(t,"string")||(xD.type(e,t,r,i,o),xD.range(e,t,r,i,o),xD.pattern(e,t,r,i,o),!0===e.whitespace&&xD.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(cD(t)&&!e.required)return n();xD.required(e,t,r,i,o),void 0!==t&&xD.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),cD(t)&&!e.required)return n();xD.required(e,t,r,i,o),void 0!==t&&(xD.type(e,t,r,i,o),xD.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(cD(t)&&!e.required)return n();xD.required(e,t,r,i,o),void 0!==t&&xD.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(cD(t)&&!e.required)return n();xD.required(e,t,r,i,o),cD(t)||xD.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(cD(t)&&!e.required)return n();xD.required(e,t,r,i,o),void 0!==t&&(xD.type(e,t,r,i,o),xD.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(cD(t)&&!e.required)return n();xD.required(e,t,r,i,o),void 0!==t&&(xD.type(e,t,r,i,o),xD.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();xD.required(e,t,r,i,o,"array"),null!=t&&(xD.type(e,t,r,i,o),xD.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(cD(t)&&!e.required)return n();xD.required(e,t,r,i,o),void 0!==t&&xD.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(cD(t)&&!e.required)return n();xD.required(e,t,r,i,o),void 0!==t&&xD.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(cD(t,"string")&&!e.required)return n();xD.required(e,t,r,i,o),cD(t,"string")||xD.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(cD(t,"date")&&!e.required)return n();var a;if(xD.required(e,t,r,i,o),!cD(t,"date"))a=t instanceof Date?t:new Date(t),xD.type(e,a,r,i,o),a&&xD.range(e,a.getTime(),r,i,o)}n(i)},url:kD,hex:kD,email:kD,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":Cd(t);xD.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(cD(t)&&!e.required)return n();xD.required(e,t,r,i,o)}n(i)}};var CD=function(){function e(t){nh(this,e),Dd(this,"rules",null),Dd(this,"_messages",rD),this.define(t)}return oh(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Cd(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]}))}},{key:"messages",value:function(e){return e&&(this._messages=hD(nD(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===rD&&(a=nD()),hD(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach((function(e){var o=n.rules[e],i=r[e];o.forEach((function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=Od({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":Cd(i)))),(a="function"==typeof a?{validator:a}:Od({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))}))}));var s={};return fD(l,o,(function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==Cd(a.fields)&&"object"!==Cd(a.defaultField));function c(e,t){return Od(Od({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(Jh(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(pD(a,r));if(o.first&&d.length)return s[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(pD(a,r)):o.error&&(d=[o.error(a,sD(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map((function(e){f[e]=a.defaultField})),f=Od(Od({},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(c.bind(null,e))}));var h=new e(p);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,(function(e){var t=[];d&&d.length&&t.push.apply(t,Jh(d)),e&&e.length&&t.push.apply(t,Jh(e)),n(t.length?t:null)}))}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(p){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,p),o.suppressValidatorError||setTimeout((function(){throw p}),0),u(p.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],a={},l=0;l<e.length;l++)t=e[l],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,Jh(t)):o.push(t);o.length?(a=lD(o),i(o,a)):i(null,r)}(e)}),r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!SD.hasOwnProperty(e.type))throw new Error(sD("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?SD.required:SD[this.getType(e)]||void 0}}]),e}();Dd(CD,"register",(function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");SD[e]=t})),Dd(CD,"warning",aD),Dd(CD,"messages",rD),Dd(CD,"validators",SD);var ED="'${name}' is not a valid ${type}",DD={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:ED,method:ED,array:ED,object:ED,number:ED,date:ED,boolean:ED,integer:ED,float:ED,regexp:ED,email:ED,url:ED,hex:ED},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},$D=CD;function OD(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var _D="CODE_LOGIC_ERROR";function ID(e,t,n,r,o){return ND.apply(this,arguments)}function ND(){return ND=zS(MS().mark((function e(t,n,r,o,i){var a,l,s,c,u,d,f,p,h;return MS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=Od({},r)).ruleIndex,$D.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(_D)}}),s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new $D(Dd({},t,[a])),u=Av(DD,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(Dd({},t,n),Od({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,r=n===_D?u.default:n;return U.isValidElement(r)?U.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(d.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return ID("".concat(t,".").concat(n),e,s,o,i)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(Jh(e),Jh(t))}),[]));case 23:return p=Od(Od({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=d.map((function(e){return"string"==typeof e?OD(e,p):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),ND.apply(this,arguments)}function jD(e,t,n,r,o,i){var a,l=e.join("."),s=n.map((function(e,t){var n=e.validator,r=Od(Od({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){vg(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));vg(o=i&&"function"==typeof i.then&&"function"==typeof i.catch,"`callback` is deprecated. Please return a promise instead."),o&&i.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1}));if(!0===o)a=new Promise(function(){var e=zS(MS().mark((function e(n,o){var a,c,u;return MS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,ID(l,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map((function(e){return ID(l,t,e,r,i).then((function(t){return{errors:t,rule:e}}))}));a=(o?function(e){return TD.apply(this,arguments)}(c):function(e){return PD.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function PD(){return(PD=zS(MS().mark((function e(t){return MS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Jh(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function TD(){return(TD=zS(MS().mark((function e(t){var n;return MS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function FD(e){return tD(e)}function RD(e,t){var n={};return t.forEach((function(t){var r=jv(e,t);n=Tv(n,t,r)})),n}function AD(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return MD(t,e,n)}))}function MD(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 LD(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Cd(t.target)&&e in t.target?t.target[e]:t}function zD(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(Jh(e.slice(0,n)),[o],Jh(e.slice(n,t)),Jh(e.slice(t+1,r))):i<0?[].concat(Jh(e.slice(0,t)),Jh(e.slice(t+1,n+1)),[o],Jh(e.slice(n+1,r))):e}var BD=["name"],HD=[];function WD(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var UD=function(e){fv(n,U.Component);var t=bv(n);function n(e){var r;(nh(this,n),Dd(gv(r=t.call(this,e)),"state",{resetCount:0}),Dd(gv(r),"cancelRegisterFunc",null),Dd(gv(r),"mounted",!1),Dd(gv(r),"touched",!1),Dd(gv(r),"dirty",!1),Dd(gv(r),"validatePromise",void 0),Dd(gv(r),"prevValidating",void 0),Dd(gv(r),"errors",HD),Dd(gv(r),"warnings",HD),Dd(gv(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,FD(o)),r.cancelRegisterFunc=null})),Dd(gv(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Jh(void 0===n?[]:n),Jh(t)):[]})),Dd(gv(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}))})),Dd(gv(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Dd(gv(r),"metaCache",null),Dd(gv(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Od(Od({},r.getMeta()),{},{destroy:e});yg(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Dd(gv(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&&AD(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||yg(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=HD,r.warnings=HD,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=HD,r.warnings=HD,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||HD),"warnings"in h&&(r.warnings=h.warnings||HD),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&AD(t,u,!0))return void r.reRender();if(i&&!u.length&&WD(i,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(FD).some((function(e){return AD(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!l.length||u.length||i)&&WD(i,e,c,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),Dd(gv(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(zS(MS().mark((function o(){var a,l,c,u,d,f,p;return MS().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||tD(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=jD(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HD;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?HD:r;t?o.push.apply(o,Jh(i)):n.push.apply(n,Jh(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=HD,r.warnings=HD,r.triggerMetaEvent(),r.reRender()),s})),Dd(gv(r),"isFieldValidating",(function(){return!!r.validatePromise})),Dd(gv(r),"isFieldTouched",(function(){return r.touched})),Dd(gv(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(QE).getInitialValue)(r.getNamePath())})),Dd(gv(r),"getErrors",(function(){return r.errors})),Dd(gv(r),"getWarnings",(function(){return r.warnings})),Dd(gv(r),"isListField",(function(){return r.props.isListField})),Dd(gv(r),"isList",(function(){return r.props.isList})),Dd(gv(r),"isPreserve",(function(){return r.props.preserve})),Dd(gv(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}})),Dd(gv(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Od(Od({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=Pb(e);return 1===n.length&&U.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Dd(gv(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return jv(e||t(!0),n)})),Dd(gv(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,s=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=r.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,g=p(QE).dispatch,m=r.getValue(),b=c||function(e){return Dd({},s,e)},v=e[o],y=void 0!==n?b(m):{},w=Od(Od({},e),y);return w[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):LD.apply(void 0,[s].concat(n)),l&&(e=l(e,m,h(!0))),g({type:"updateValue",namePath:f,value:e}),v&&v.apply(void 0,n)},tD(d||[]).forEach((function(e){var t=w[e];w[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}})),w})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(QE).initEntityValue)(gv(r));return r}return oh(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(QE).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:U.isValidElement(o)?e=U.cloneElement(o,this.getControlled(o.props)):(vg(!o,"`children` of Field is not validate ReactElement."),e=o),U.createElement(U.Fragment,{key:t},e)}}]),n}();function qD(e){var t=e.name,n=_d(e,BD),r=U.useContext(ZE),o=U.useContext(eD),i=void 0!==t?FD(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),U.createElement(UD,hh({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function VD(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=U.useContext(ZE),s=U.useContext(eD),c=U.useRef({keys:[],id:0}).current,u=U.useMemo((function(){var e=FD(l.prefixName)||[];return[].concat(Jh(e),Jh(FD(t)))}),[l.prefixName,t]),d=U.useMemo((function(){return Od(Od({},l),{},{prefixName:u})}),[l,u]),f=U.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}}),[u]);if("function"!=typeof r)return vg(!1,"Form.List only accepts function as children."),null;return U.createElement(eD.Provider,{value:f},U.createElement(ZE.Provider,{value:d},U.createElement(qD,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!s},(function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(u||[])||[]},d={add:function(e,t){var n=s();t>=0&&t<=n.length?(c.keys=[].concat(Jh(c.keys.slice(0,t)),[c.id],Jh(c.keys.slice(t))),i([].concat(Jh(n.slice(0,t)),[e],Jh(n.slice(t))))):(c.keys=[].concat(Jh(c.keys),[c.id]),i([].concat(Jh(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=zD(c.keys,e,t),i(zD(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)}))))}Dd(UD,"contextType",ZE),Dd(UD,"defaultProps",{trigger:"onChange",valuePropName:"value"});var GD="__@field_split__";function XD(e){return e.map((function(e){return"".concat(Cd(e),":").concat(e)})).join(GD)}var KD=function(){function e(){nh(this,e),Dd(this,"kvs",new Map)}return oh(e,[{key:"set",value:function(e,t){this.kvs.set(XD(e),t)}},{key:"get",value:function(e){return this.kvs.get(XD(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(XD(e))}},{key:"map",value:function(e){return Jh(this.kvs.entries()).map((function(t){var n=Yh(t,2),r=n[0],o=n[1],i=r.split(GD);return e({key:i.map((function(e){var t=Yh(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}(),YD=["name"],QD=oh((function e(t){var n=this;nh(this,e),Dd(this,"formHooked",!1),Dd(this,"forceRootUpdate",void 0),Dd(this,"subscribable",!0),Dd(this,"store",{}),Dd(this,"fieldEntities",[]),Dd(this,"initialValues",{}),Dd(this,"callbacks",{}),Dd(this,"validateMessages",null),Dd(this,"preserve",null),Dd(this,"lastValidatePromise",null),Dd(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}})),Dd(this,"getInternalHooks",(function(e){return e===QE?(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}):(vg(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Dd(this,"useSubscribe",(function(e){n.subscribable=e})),Dd(this,"prevWithoutPreserves",null),Dd(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Av(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=Tv(o,n,jv(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Dd(this,"destroyForm",(function(){var e=new KD;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Dd(this,"getInitialValue",(function(e){var t=jv(n.initialValues,e);return e.length?Av(t):t})),Dd(this,"setCallbacks",(function(e){n.callbacks=e})),Dd(this,"setValidateMessages",(function(e){n.validateMessages=e})),Dd(this,"setPreserve",(function(e){n.preserve=e})),Dd(this,"watchList",[]),Dd(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Dd(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)}))}})),Dd(this,"timeoutId",null),Dd(this,"warningUnhooked",(function(){})),Dd(this,"updateStore",(function(e){n.store=e})),Dd(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Dd(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new KD;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Dd(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=FD(e);return t.get(n)||{INVALIDATE_NAME_PATH:FD(e)}}))})),Dd(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Cd(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)})),RD(n.store,l.map(FD))})),Dd(this,"getFieldValue",(function(e){n.warningUnhooked();var t=FD(e);return jv(n.store,t)})),Dd(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:FD(e[n]),errors:[],warnings:[]}}))})),Dd(this,"getFieldError",(function(e){n.warningUnhooked();var t=FD(e);return n.getFieldsError([t])[0].errors})),Dd(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=FD(e);return n.getFieldsError([t])[0].warnings})),Dd(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(FD),l=!1):(o=null,l=i):(o=i.map(FD),l=a);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return l?s.every((function(e){return c(e)||e.isList()})):s.some(c);var u=new KD;o.forEach((function(e){u.set(e,[])})),s.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Jh(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return l?f.every(d):f.some(d)})),Dd(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Dd(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(FD);return t.some((function(e){var t=e.getNamePath();return AD(r,t)&&e.isFieldValidating()}))})),Dd(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Dd(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new KD,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,Jh(Jh(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))vg(!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)vg(!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(Tv(n.store,o,Jh(i)[0].value))}}}}))})),Dd(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Av(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(FD);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Tv(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Dd(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=_d(e,YD),a=FD(o);r.push(a),"value"in i&&n.updateStore(Tv(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Dd(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Od(Od({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Dd(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===jv(n.store,r)&&n.updateStore(Tv(n.store,r,t))}})),Dd(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Dd(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!MD(e.getNamePath(),t)}))){var l=n.store;n.updateStore(Tv(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),Dd(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})}})),Dd(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Od(Od({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Dd(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(Jh(r))}),r})),Dd(this,"updateValue",(function(e,t){var r=FD(e),o=n.store;n.updateStore(Tv(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(RD(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Jh(i)))})),Dd(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Av(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Dd(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Dd(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new KD;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=FD(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})),Dd(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new KD;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 AD(e,n)}));a.length&&r(a,o)}})),Dd(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(FD):[],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||AD(a,t,d)){var r=e.validateRules(Od({validateMessages:Od(Od({},DD),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,Jh(n)):r.push.apply(r,Jh(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})),Dd(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 JD(e){var t=U.useRef(),n=Yh(U.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new QD((function(){n({})}));t.current=r.getForm()}return[t.current]}var ZD=U.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),e$=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=U.useContext(ZD),a=U.useRef({});return U.createElement(ZD.Provider,{value:Od(Od({},i),{},{validateMessages:Od(Od({},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=Od(Od({},a.current),{},Dd({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Od({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},t$=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],n$=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=_d(e,t$),v=U.useContext(ZD),y=Yh(JD(i),1)[0],w=y.getInternalHooks(QE),x=w.useSubscribe,k=w.setInitialValues,S=w.setCallbacks,C=w.setValidateMessages,E=w.setPreserve,D=w.destroyForm;U.useImperativeHandle(t,(function(){return y})),U.useEffect((function(){return v.registerForm(n,y),function(){v.unregisterForm(n)}}),[v,y,n]),C(Od(Od({},v.validateMessages),u)),S({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<t;o++)r[o-1]=arguments[o];h.apply(void 0,[e].concat(r))}},onFinish:function(e){v.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:m}),E(a);var $,O=U.useRef(null);k(r,!O.current),O.current||(O.current=!0),U.useEffect((function(){return D}),[]);var _="function"==typeof l;_?$=l(y.getFieldsValue(!0),y):$=l;x(!_);var I=U.useRef();U.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Cd(e)||"object"!==Cd(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Jh(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(I.current||[],o||[])||y.setFields(o||[]),I.current=o}),[o,y]);var N=U.useMemo((function(){return Od(Od({},y),{},{validateTrigger:f})}),[y,f]),j=U.createElement(eD.Provider,{value:null},U.createElement(ZE.Provider,{value:N},$));return!1===c?j:U.createElement(c,hh({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),y.submit()},onReset:function(e){var t;e.preventDefault(),y.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),j)};function r$(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function o$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,l=a.form,s=Yh(U.useState(),2),c=s[0],u=s[1],d=U.useMemo((function(){return r$(c)}),[c]),f=U.useRef(d);f.current=d;var p=U.useContext(ZE),h=l||p,g=h&&h._init,m=FD(r),b=U.useRef(m);return b.current=m,U.useEffect((function(){if(g){var e=h.getFieldsValue,t=(0,h.getInternalHooks)(QE).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof r?r(n):jv(n,b.current)},o=t((function(e,t){var r=n(e,t),o=r$(r);f.current!==o&&(f.current=o,u(r))})),i=n(e(),e(!0));return c!==i&&u(i),o}}),[g]),c}var i$=U.forwardRef(n$);i$.FormProvider=e$,i$.Field=qD,i$.List=VD,i$.useForm=JD,i$.useWatch=o$;const a$=U.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l$=U.createContext(null),s$=e=>{const t=Sv(e,["prefixCls"]);return U.createElement(e$,Object.assign({},t))},c$=U.createContext({prefixCls:""}),u$=U.createContext({}),d$=e=>{let{children:t,status:n,override:r}=e;const o=U.useContext(u$),i=U.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 U.createElement(u$.Provider,{value:i},t)},f$=U.createContext(void 0);function p$(){}const h$=U.createContext({add:p$,remove:p$});function g$(e){const t=U.useContext(h$),n=U.useRef();return Cw((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const m$=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=U.useContext(wE);return q.createElement(bE,Object.assign({onClick:n},e),t)},b$=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=U.useContext(wE);return q.createElement(bE,Object.assign({},_C(n),{loading:e,onClick:o},t),r)};function v$(e,t){return q.createElement("span",{className:`${e}-close-x`},t||q.createElement(Ck,{className:`${e}-close-icon`}))}const y$=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=Qv("Modal",Kv()),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=q.useMemo((()=>d),Jh(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=q.createElement(q.Fragment,null,q.createElement(m$,null),q.createElement(b$,null)),"function"==typeof c&&(p=c(p,{OkBtn:b$,CancelBtn:m$})),p=q.createElement(xE,{value:f},p)):p=c,q.createElement(nw,{disabled:!1},p)},w$=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`}}}),x$=e=>({animationDuration:e,animationFillMode:"both"}),k$=e=>({animationDuration:e,animationFillMode:"both"}),S$=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({},x$(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},k$(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"}}},C$=new sb("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),E$=new sb("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),D$=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[S$(r,C$,E$,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},$$=new sb("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),O$=new sb("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),_$=new sb("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I$=new sb("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),N$=new sb("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),j$=new sb("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),P$={"move-up":{inKeyframes:new sb("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 sb("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:$$,outKeyframes:O$},"move-left":{inKeyframes:_$,outKeyframes:I$},"move-right":{inKeyframes:N$,outKeyframes:j$}},T$=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=P$[t];return[S$(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},F$=new sb("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),R$=new sb("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A$=new sb("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),M$=new sb("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),L$=new sb("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),z$=new sb("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),B$=new sb("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),H$=new sb("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),W$={"slide-up":{inKeyframes:F$,outKeyframes:R$},"slide-down":{inKeyframes:A$,outKeyframes:M$},"slide-left":{inKeyframes:L$,outKeyframes:z$},"slide-right":{inKeyframes:B$,outKeyframes:H$}},U$=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=W$[t];return[S$(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}}]},q$=new sb("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),V$=new sb("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),G$=new sb("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),X$=new sb("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),K$=new sb("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Y$=new sb("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Q$=new sb("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),J$=new sb("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Z$=new sb("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),eO=new sb("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),tO=new sb("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),nO=new sb("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),rO={zoom:{inKeyframes:q$,outKeyframes:V$},"zoom-big":{inKeyframes:G$,outKeyframes:X$},"zoom-big-fast":{inKeyframes:G$,outKeyframes:X$},"zoom-left":{inKeyframes:Q$,outKeyframes:J$},"zoom-right":{inKeyframes:Z$,outKeyframes:eO},"zoom-up":{inKeyframes:K$,outKeyframes:Y$},"zoom-down":{inKeyframes:tO,outKeyframes:nO}},oO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=rO[t];return[S$(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}}]};function iO(e){return{position:e,inset:0}}const aO=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({},iO("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},iO("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:D$(e)}]},lO=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}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Bg(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},_w(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Bg(e.calc(e.margin).mul(2).equal())})`,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.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${Bg(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Pw(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Bg(e.borderRadiusLG)} ${Bg(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},sO=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},cO=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Rw(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},uO=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Bg(e.paddingMD)} ${Bg(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Bg(e.padding)} ${Bg(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Bg(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Bg(e.paddingXS)} ${Bg(e.padding)}`:0,footerBorderTop:e.wireframe?`${Bg(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Bg(e.borderRadiusLG)} ${Bg(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Bg(2*e.padding)} ${Bg(2*e.padding)} ${Bg(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),dO=qw("Modal",(e=>{const t=cO(e);return[lO(t),sO(t),aO(t),oO(t,"zoom")]}),uO,{unitless:{titleLineHeight:!0}});let fO;const pO=e=>{fO={x:e.pageX,y:e.pageY},setTimeout((()=>{fO=null}),100)};eg()&&window.document.documentElement&&document.documentElement.addEventListener("click",pO,!0);const hO=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=U.useContext(Jy),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:l,className:s,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:p,focusTriggerAfterClose:h=!0,style:g,visible:m,width:b=520,footer:v,classNames:y,styles: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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),k=r("modal",l),S=r(),C=oS(k),[E,D,$]=dO(k,C),O=pb(d,{[`${k}-centered`]:!!f,[`${k}-wrap-rtl`]:"rtl"===o}),_=null!==v&&U.createElement(y$,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[I,N]=YE(VE(e),VE(i),{closable:!0,closeIcon:U.createElement(Ck,{className:`${k}-close-icon`}),closeIconRender:e=>v$(k,e)}),j=g$(`.${k}-content`),[P,T]=CS("Modal",x.zIndex);return E(U.createElement(CC,null,U.createElement(d$,{status:!0,override:!0},U.createElement(yS.Provider,{value:T},U.createElement(qE,Object.assign({width:b},x,{zIndex:P,getContainer:void 0===p?n:p,prefixCls:k,rootClassName:pb(D,c,$,C),footer:_,visible:null!=u?u:m,mousePosition:null!==(t=x.mousePosition)&&void 0!==t?t:fO,onClose:a,closable:I,closeIcon:N,focusTriggerAfterClose:h,transitionName:iC(S,"zoom",e.transitionName),maskTransitionName:iC(S,"fade",e.maskTransitionName),className:pb(D,s,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),g),classNames:Object.assign(Object.assign(Object.assign({},null==i?void 0:i.classNames),y),{wrapper:pb(O,null==y?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},null==i?void 0:i.styles),w),panelRef:j}))))))},gO=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Bg(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},mO=Ww(["Modal","confirm"],(e=>{const t=cO(e);return[gO(t)]}),uO,{order:-1e3});function bO(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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=U.createElement(Ik,null);break;case"success":d=U.createElement(vk,null);break;case"error":d=U.createElement(xk,null);break;default:d=U.createElement($k,null)}const f=null!=l?l:"confirm"===a,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=Qv("Modal"),g=c||h,m=r||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=o||(null==g?void 0:g.cancelText),v=Object.assign({autoFocusButton:p,cancelTextLocale:b,okTextLocale:m,mergedOkCancel:f},u),y=U.useMemo((()=>v),Jh(Object.values(v))),w=U.createElement(U.Fragment,null,U.createElement(kE,null),U.createElement(SE,null)),x=void 0!==e.title&&null!==e.title,k=`${i}-body`;return U.createElement("div",{className:`${i}-body-wrapper`},U.createElement("div",{className:pb(k,{[`${k}-has-title`]:x})},d,U.createElement("div",{className:`${i}-paragraph`},x&&U.createElement("span",{className:`${i}-title`},e.title),U.createElement("div",{className:`${i}-content`},e.content))),void 0===s||"function"==typeof s?U.createElement(xE,{value:y},U.createElement("div",{className:`${i}-btns`},"function"==typeof s?s(w,{OkBtn:SE,CancelBtn:kE}):w)):s,U.createElement(mO,{prefixCls:t}))}const vO=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,k=e.style||{},S=void 0===e.mask||e.mask,C=void 0!==e.maskClosable&&e.maskClosable,E=pb(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===c},e.className),[,D]=mw(),$=U.useMemo((()=>void 0!==n?n:D.zIndexPopupBase+xS),[n,D]);return U.createElement(hO,{prefixCls:u,className:E,wrapClassName:pb({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==v||v(!1)},open:o,title:"",footer:null,transitionName:iC(f||"","zoom",e.transitionName),maskTransitionName:iC(f||"","fade",e.maskTransitionName),mask:S,maskClosable:C,style:k,styles:Object.assign({body:p,mask:s},y),width:x,zIndex:$,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:h,closeIcon:g,modalRender:m,focusTriggerAfterClose:b},U.createElement(bO,Object.assign({},e,{confirmPrefixCls:w})))},yO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return U.createElement(nk,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},U.createElement(vO,Object.assign({},e)))},wO=[];let xO="";function kO(){return xO}const SO=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Kv(),l=U.useContext(Jy),s=kO()||l.getPrefixCls(),c=r||`${s}-modal`;let u=o;return!1===u&&(u=void 0),q.createElement(yO,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!=i?i:l.direction,locale:null!==(n=null===(t=l.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:a,getContainer:u}))};function CO(e){const t=Zx(),n=document.createDocumentFragment();let r,o=Object.assign(Object.assign({},e),{close:l,open:!0});function i(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];const i=r.some((e=>e&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(Jh(r.slice(1))));for(let e=0;e<wO.length;e++){if(wO[e]===l){wO.splice(e,1);break}}JS(n)}function a(e){clearTimeout(r),r=setTimeout((()=>{const r=t.getPrefixCls(void 0,kO()),o=t.getIconPrefixCls(),i=t.getTheme(),a=q.createElement(SO,Object.assign({},e));XS(q.createElement(nk,{prefixCls:r,iconPrefixCls:o,theme:i},t.holderRender?t.holderRender(a):a),n)}))}function l(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];o=Object.assign(Object.assign({},o),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),i.apply(this,n)}}),o.visible&&delete o.visible,a(o)}return a(o),wO.push(l),{destroy:l,update:function(e){o="function"==typeof e?e(o):Object.assign(Object.assign({},o),e),a(o)}}}function EO(e){return Object.assign(Object.assign({},e),{type:"warning"})}function DO(e){return Object.assign(Object.assign({},e),{type:"info"})}function $O(e){return Object.assign(Object.assign({},e),{type:"success"})}function OO(e){return Object.assign(Object.assign({},e),{type:"error"})}function _O(e){return Object.assign(Object.assign({},e),{type:"confirm"})}const IO=(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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["afterClose","config"]);const[a,l]=U.useState(!0),[s,c]=U.useState(o),{direction:u,getPrefixCls:d}=U.useContext(Jy),f=d("modal"),p=d(),h=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.some((e=>e&&e.triggerCancel));s.onCancel&&r&&s.onCancel.apply(s,[()=>{}].concat(Jh(t.slice(1))))};U.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]=Qv("Modal",qv.Modal);return U.createElement(yO,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))},NO=U.forwardRef(IO);let jO=0;const PO=U.memo(U.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=U.useState([]);return[e,U.useCallback((e=>(t((t=>[].concat(Jh(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return U.useImperativeHandle(t,(()=>({patchElement:r})),[]),U.createElement(U.Fragment,null,n)})));function TO(){const e=U.useRef(null),[t,n]=U.useState([]);U.useEffect((()=>{if(t.length){Jh(t).forEach((e=>{e()})),n([])}}),[t]);const r=U.useCallback((t=>function(r){var o;jO+=1;const i=U.createRef();let a;const l=new Promise((e=>{a=e}));let s,c=!1;const u=U.createElement(NO,{key:`modal-${jO}`,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&&wO.push(s);return{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(Jh(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(Jh(e),[t])))},then:e=>(c=!0,l.then(e))}}),[]);return[U.useMemo((()=>({info:r(DO),success:r($O),error:r(OO),warning:r(EO),confirm:r(_O)})),[]),U.createElement(PO,{key:"modal-holder",ref:e})]}const FO=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new sb("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new sb("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new sb("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new sb("antNotificationLeftFadeIn",{"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:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${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:s}}}}},RO=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],AO={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},MO=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${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)},LO=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},zO=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},MO(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},LO(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.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},RO.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[AO[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},BO=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 - ${Bg(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:m,wordWrap:"break-word"},[`${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.calc(e.marginSM).add(v).equal(),fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(v).equal(),fontSize:g},[`${w}-icon`]:{position:"absolute",fontSize:v,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:Object.assign({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.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Pw(e)),[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},HO=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new sb("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},_w(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({},BO(e))}}]},WO=e=>({zIndexPopup:e.zIndexPopupBase+xS+50,width:384}),UO=e=>{const t=e.paddingMD,n=e.paddingLG;return Rw(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Bg(e.paddingMD)} ${Bg(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},qO=qw("Notification",(e=>{const t=UO(e);return[HO(t),FO(t),zO(t)]}),WO),VO=Ww(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=UO(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},BO(n)),{width:n.width,maxWidth:`calc(100vw - ${Bg(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),WO);function GO(e,t){return null===t||!1===t?null:t||U.createElement(Ck,{className:`${e}-close-icon`})}const XO={success:vk,info:Ik,error:xk,warning:$k},KO=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let s=null;return n?s=U.createElement("span",{className:`${t}-icon`},n):r&&(s=U.createElement(XO[r]||null,{className:pb(`${t}-icon`,`${t}-icon-${r}`)})),U.createElement("div",{className:pb({[`${t}-with-icon`]:s}),role:l},s,U.createElement("div",{className:`${t}-message`},o),U.createElement("div",{className:`${t}-description`},i),a&&U.createElement("div",{className:`${t}-btn`},a))};var YO=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const QO="topRight",JO=e=>{let{children:t,prefixCls:n}=e;const r=oS(n),[o,i,a]=qO(n,r);return o(q.createElement(sS,{classNames:{list:pb(i,a,r)}},t))},ZO=(e,t)=>{let{prefixCls:n,key:r}=t;return q.createElement(JO,{prefixCls:n,key:r},e)},e_=q.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:u}=e,{getPrefixCls:d,getPopupContainer:f,notification:p,direction:h}=U.useContext(Jy),[,g]=mw(),m=o||d("notification"),[b,v]=gS({prefixCls:m,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:()=>pb({[`${m}-rtl`]:null!=l?l:"rtl"===h}),motion:()=>function(e){return{motionName:`${e}-fade`}}(m),closable:!0,closeIcon:GO(m),duration:null!=u?u:4.5,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:s,renderNotifications:ZO,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:g.margin}});return q.useImperativeHandle(t,(()=>Object.assign(Object.assign({},b),{prefixCls:m,notification:p}))),v}));function t_(e){const t=q.useRef(null);zv();return[q.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,closable:b}=n,v=YO(n,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),y=GO(l,void 0!==m?m:null==a?void 0:a.closeIcon);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:QO},v),{content:q.createElement(KO,{prefixCls:l,icon:u,type:d,message:s,description:c,btn:f,role:g}),className:pb(d&&`${l}-${d}`,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),closeIcon:y,closable:null!=b?b:!!y}))},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}),[]),q.createElement(e_,Object.assign({key:"notification-holder"},e,{ref:t}))]}function n_(e){return t_(e)}const r_=q.createContext({}),o_=q.createContext({message:{},notification:{},modal:{}}),i_=qw("App",(e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}}),(()=>({}))),a_=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:l,component:s="div"}=e,{getPrefixCls:c}=U.useContext(Jy),u=c("app",t),[d,f,p]=i_(u),h=pb(f,u,r,o,p),g=U.useContext(r_),m=q.useMemo((()=>({message:Object.assign(Object.assign({},g.message),i),notification:Object.assign(Object.assign({},g.notification),a)})),[i,a,g.message,g.notification]),[b,v]=AS(m.message),[y,w]=n_(m.notification),[x,k]=TO(),S=q.useMemo((()=>({message:b,notification:y,modal:x})),[b,y,x]),C=!1===s?q.Fragment:s,E={className:h,style:l};return d(q.createElement(o_.Provider,{value:S},q.createElement(r_.Provider,{value:m},q.createElement(C,Object.assign({},!1===s?void 0:E),k,v,w,n))))};function l_(e){return t=>U.createElement(nk,{theme:{token:{motion:!1,zIndexPopupBase:0}}},U.createElement(e,Object.assign({},t)))}a_.useApp=()=>q.useContext(o_);const s_=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 c_=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,l="function"==typeof n?n(r):n;return U.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:U.createElement("span",{className:pb(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},o))},u_=U.createContext(null);function d_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=U.useRef(null),n=U.useRef(null);return U.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 f_=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p_=void 0;function h_(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=_d(e,f_),v=a&&!p;function y(e){s(c,e)}U.useEffect((function(){return function(){y(null)}}),[]);var w,x=i&&o!==p_?i(o):f;r||(w={opacity:v?0:1,height:v?0:p_,overflowY:v?"hidden":p_,order:a?h:p_,pointerEvents:v?"none":p_,position:v?"absolute":p_});var k={};v&&(k["aria-hidden"]=!0);var S=U.createElement(m,hh({className:pb(!r&&n,u),style:Od(Od({},w),d)},k,b,{ref:t}),x);return a&&(S=U.createElement(kv,{onResize:function(e){y(e.offsetWidth)},disabled:l},S)),S}var g_=U.forwardRef(h_);function m_(){var e=U.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)_v(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){yd.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function b_(e,t){var n=Yh(U.useState(t),2),r=n[0],o=n[1];return[r,Cw((function(t){e((function(){o(t)}))}))]}g_.displayName="Item";var v_=q.createContext(null),y_=["component"],w_=["className"],x_=["className"],k_=function(e,t){var n=U.useContext(v_);if(!n){var r=e.component,o=void 0===r?"div":r,i=_d(e,y_);return U.createElement(o,hh({},i,{ref:t}))}var a=n.className,l=_d(n,w_),s=e.className,c=_d(e,x_);return U.createElement(v_.Provider,{value:null},U.createElement(g_,hh({ref:t,className:pb(a,s)},l,c)))},S_=U.forwardRef(k_);S_.displayName="RawItem";var C_=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],E_="responsive",D_="invalidate";function $_(e){return"+ ".concat(e.length," ...")}function O_(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,k=_d(e,C_),S="full"===d,C=m_(),E=Yh(b_(C,null),2),D=E[0],$=E[1],O=D||0,_=Yh(b_(C,new Map),2),I=_[0],N=_[1],j=Yh(b_(C,0),2),P=j[0],T=j[1],F=Yh(b_(C,0),2),R=F[0],A=F[1],M=Yh(b_(C,0),2),L=M[0],z=M[1],B=Yh(U.useState(null),2),H=B[0],W=B[1],q=Yh(U.useState(null),2),V=q[0],G=q[1],X=U.useMemo((function(){return null===V&&S?Number.MAX_SAFE_INTEGER:V||0}),[V,D]),K=Yh(U.useState(!1),2),Y=K[0],Q=K[1],J="".concat(r,"-item"),Z=Math.max(P,R),ee=h===E_,te=i.length&&ee,ne=h===D_,re=te||"number"==typeof h&&i.length>h,oe=U.useMemo((function(){var e=i;return te?e=null===D&&S?i:i.slice(0,Math.min(i.length,O/u)):"number"==typeof h&&(e=i.slice(0,h)),e}),[i,u,D,h,te]),ie=U.useMemo((function(){return te?i.slice(X+1):i.slice(oe.length)}),[i,oe,te,X]),ae=U.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=U.useCallback(a||function(e){return e},[a]);function se(e,t,n){(V!==e||void 0!==t&&t!==H)&&(G(e),n||(Q(e<i.length-1),null==x||x(e)),void 0!==t&&W(t))}function ce(e,t){N((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ue(e){return I.get(ae(oe[e],e))}Gg((function(){if(O&&"number"==typeof Z&&oe){var e=L,t=oe.length,n=t-1;if(!t)return void se(0,null);for(var r=0;r<t;r+=1){var o=ue(r);if(S&&(o=o||0),void 0===o){se(r-1,void 0,!0);break}if(e+=o,0===n&&e<=O||r===n-1&&e+ue(n)<=O){se(n,null);break}if(e+Z>O){se(r-1,e-o-L+R);break}}b&&ue(0)+L>O&&W(null)}}),[O,I,R,L,ae,oe]);var de=Y&&!!ie.length,fe={};null!==H&&te&&(fe={position:"absolute",left:H,top:0});var pe,he={prefixCls:J,responsive:te,component:w,invalidate:ne},ge=l?function(e,t){var n=ae(e,t);return U.createElement(v_.Provider,{key:n,value:Od(Od({},he),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=X})},l(e,t))}:function(e,t){var n=ae(e,t);return U.createElement(g_,hh({},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=U.createElement(v_.Provider,{value:Od(Od({},he),me)},m(ie)));else{var be=g||$_;pe=U.createElement(g_,hh({},he,me),"function"==typeof be?be(ie):be)}var ve=U.createElement(y,hh({className:pb(!ne&&r,p),style:f,ref:t},k),oe.map(ge),re?pe:null,b&&U.createElement(g_,hh({},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=U.createElement(kv,{onResize:function(e,t){$(t.clientWidth)},disabled:!te},ve)),ve}var __=U.forwardRef(O_);__.displayName="Overflow",__.Item=S_,__.RESPONSIVE=E_,__.INVALIDATE=D_;var I_=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,k=i||U.createElement("input",null),S=k,C=S.ref,E=S.props,D=E.onKeyDown,$=E.onChange,O=E.onMouseDown,_=E.onCompositionStart,I=E.onCompositionEnd,N=E.style;return k.props,k=U.cloneElement(k,Od(Od(Od({type:"search"},E),{},{id:o,ref:Ab(t,C),disabled:a,tabIndex:l,autoComplete:c||"off",autoFocus:s,className:pb("".concat(r,"-selection-search-input"),null===(n=k)||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:Od(Od({},N),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),D&&D(e)},onMouseDown:function(e){g(e),O&&O(e)},onChange:function(e){m(e),$&&$(e)},onCompositionStart:function(e){v(e),_&&_(e)},onCompositionEnd:function(e){y(e),I&&I(e)},onPaste:b}))},N_=U.forwardRef(I_);function j_(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var P_="undefined"!=typeof window&&window.document&&window.document.documentElement;function T_(e){return["string","number"].includes(Cd(e))}function F_(e){var t=void 0;return e&&(T_(e.title)?t=e.title.toString():T_(e.label)&&(t=e.label.toString())),t}function R_(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var A_=function(e){e.preventDefault(),e.stopPropagation()},M_=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,k=void 0===x?function(e){return"+ ".concat(e.length," ...")}:x,S=e.tagRender,C=e.onToggleOpen,E=e.onRemove,D=e.onInputChange,$=e.onInputPaste,O=e.onInputKeyDown,_=e.onInputMouseDown,I=e.onInputCompositionStart,N=e.onInputCompositionEnd,j=U.useRef(null),P=Yh(U.useState(0),2),T=P[0],F=P[1],R=Yh(U.useState(!1),2),A=R[0],M=R[1],L="".concat(o,"-selection"),z=a||"multiple"===f&&!1===s||"tags"===f?l:"",B="tags"===f||"multiple"===f&&!1===s||p&&(a||A);t=function(){F(j.current.scrollWidth)},n=[z],P_?U.useLayoutEffect(t,n):U.useEffect(t,n);var H=function(e,t,n,r,o){return U.createElement("span",{title:F_(e),className:pb("".concat(L,"-item"),Dd({},"".concat(L,"-item-disabled"),n))},U.createElement("span",{className:"".concat(L,"-item-content")},t),r&&U.createElement(c_,{className:"".concat(L,"-item-remove"),onMouseDown:A_,onClick:o,customizeIcon:v},"×"))},W=function(e,t,n,r,o,i){return U.createElement("span",{onMouseDown:function(e){A_(e),C(!a)}},S({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},q=U.createElement("div",{className:"".concat(L,"-search"),style:{width:T},onFocus:function(){M(!0)},onBlur:function(){M(!1)}},U.createElement(N_,{ref:c,open:a,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:B,activeDescendantId:m,value:z,onKeyDown:O,onMouseDown:_,onChange:D,onPaste:$,onCompositionStart:I,onCompositionEnd:N,tabIndex:b,attrs:Fk(e,!0)}),U.createElement("span",{ref:j,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},z," ")),V=U.createElement(__,{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 a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),E(e)};return"function"==typeof S?W(r,i,t,o,l):H(e,i,t,o,l)},renderRest:function(e){var t="function"==typeof k?k(e):k;return"function"==typeof S?W(void 0,t,!1,!1,void 0,!0):H({title:t},t,!1)},suffix:q,itemKey:R_,maxCount:y});return U.createElement(U.Fragment,null,V,!i.length&&!z&&U.createElement("span",{className:"".concat(L,"-placeholder")},u))},L_=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,k=e.onInputCompositionStart,S=e.onInputCompositionEnd,C=e.title,E=Yh(U.useState(!1),2),D=E[0],$=E[1],O="combobox"===c,_=O||h,I=d[0],N=g||"";O&&m&&!D&&(N=m),U.useEffect((function(){O&&$(!1)}),[O,m]);var j=!("combobox"!==c&&!u&&!h)&&!!N,P=void 0===C?F_(I):C,T=U.useMemo((function(){return I?null:U.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},f)}),[I,j,f,n]);return U.createElement(U.Fragment,null,U.createElement("span",{className:"".concat(n,"-selection-search")},U.createElement(N_,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:_,activeDescendantId:s,value:N,onKeyDown:v,onMouseDown:y,onChange:function(e){$(!0),w(e)},onPaste:x,onCompositionStart:k,onCompositionEnd:S,tabIndex:p,attrs:Fk(e,!0),maxLength:O?b:void 0})),!O&&I?U.createElement("span",{className:"".concat(n,"-selection-item"),title:P,style:j?{visibility:"hidden"}:void 0},I.label):null,T)},z_=function(e,t){var n=U.useRef(null),r=U.useRef(!1),o=e.prefixCls,i=e.open,a=e.mode,l=e.showSearch,s=e.tokenWithEnter,c=e.disabled,u=e.autoClearSearchValue,d=e.onSearch,f=e.onSearchSubmit,p=e.onToggleOpen,h=e.onInputKeyDown,g=e.domRef;U.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var m=Yh(d_(0),2),b=m[0],v=m[1],y=U.useRef(null),w=function(e){!1!==d(e,!0,r.current)&&p(!0)},x={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==iS.UP&&n!==iS.DOWN||e.preventDefault(),h&&h(e),n!==iS.ENTER||"tags"!==a||r.current||i||null==f||f(e.target.value),t=n,[iS.ESC,iS.SHIFT,iS.BACKSPACE,iS.TAB,iS.WIN_KEY,iS.ALT,iS.META,iS.WIN_KEY_RIGHT,iS.CTRL,iS.SEMICOLON,iS.EQUALS,iS.CAPS_LOCK,iS.CONTEXT_MENU,iS.F1,iS.F2,iS.F3,iS.F4,iS.F5,iS.F6,iS.F7,iS.F8,iS.F9,iS.F10,iS.F11,iS.F12].includes(t)||p(!0)},onInputMouseDown:function(){v(!0)},onInputChange:function(e){var t=e.target.value;if(s&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");y.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==a&&w(e.target.value)}},k="multiple"===a||"tags"===a?U.createElement(M_,hh({},e,x)):U.createElement(L_,hh({},e,x));return U.createElement("div",{ref:g,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=b();e.target===n.current||t||"combobox"===a&&c||e.preventDefault(),("combobox"===a||l&&t)&&i||(i&&!1!==u&&d("",!0,!1),p())}},k)},B_=U.forwardRef(z_);function H_(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=U.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 U.createElement("div",{ref:f,className:pb("".concat(t,"-arrow"),a),style:p},l)}function W_(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?U.createElement(Px,hh({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return U.createElement("div",{style:{zIndex:r},className:pb("".concat(t,"-mask"),n)})})):null}var U_=U.memo((function(e){return e.children}),(function(e,t){return t.cache})),q_=U.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,k=e.zIndex,S=e.onMouseEnter,C=e.onMouseLeave,E=e.onPointerEnter,D=e.ready,$=e.offsetX,O=e.offsetY,_=e.offsetR,I=e.offsetB,N=e.onAlign,j=e.onPrepare,P=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=Yh(U.useState(!y||!M),2),z=L[0],B=L[1];if(Gg((function(){!z&&M&&a&&B(!0)}),[z,M,a]),!z)return null;var H="auto",W={left:"-1000vw",top:"-1000vh",right:H,bottom:H};if(D||!s){var q,V=g.points,G=g.dynamicInset||(null===(q=g._experimental)||void 0===q?void 0:q.dynamicInset),X=G&&"r"===V[0][1],K=G&&"b"===V[0][0];X?(W.right=_,W.left=H):(W.left=$,W.right=H),K?(W.bottom=I,W.top=H):(W.top=O,W.bottom=H)}var Y={};return P&&(P.includes("height")&&F?Y.height=F:P.includes("minHeight")&&F&&(Y.minHeight=F),P.includes("width")&&T?Y.width=T:P.includes("minWidth")&&T&&(Y.minWidth=T)),s||(Y.pointerEvents="none"),U.createElement(x,{open:v||A,getContainer:y&&function(){return y(a)},autoDestroy:w},U.createElement(W_,{prefixCls:o,open:s,zIndex:k,mask:f,motion:b}),U.createElement(kv,{onResize:N,disabled:!s},(function(e){return U.createElement(Px,hh({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:j,onEnterPrepare:j,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=pb(o,l,r);return U.createElement("div",{ref:Ab(e,t,a),className:f,style:Od(Od(Od(Od({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},W),Y),c),{},{boxSizing:"border-box",zIndex:k},i),onMouseEnter:S,onMouseLeave:C,onPointerEnter:E,onClick:d},p&&U.createElement(H_,{prefixCls:o,arrow:p,arrowPos:h,align:g}),U.createElement(U_,{cache:!s&&!u},R))}))})))})),V_=U.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Lb(n),i=U.useCallback((function(e){Rb(t,r?r(e):e)}),[r]),a=Mb(i,n.ref);return o?U.cloneElement(n,{ref:a}):n})),G_=U.createContext(null);function X_(e){return e?Array.isArray(e)?e:[e]:[]}function K_(){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 Y_(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Q_(e){return e.ownerDocument.defaultView}function J_(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Q_(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 Z_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function eI(e){return Z_(parseFloat(e),0)}function tI(e,t){var n=Od({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Q_(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=eI(i),g=eI(a),m=eI(l),b=eI(s),v=Z_(Math.round(c.width/f*1e3)/1e3),y=Z_(Math.round(c.height/u*1e3)/1e3),w=(f-p-m-b)*v,x=(u-d-h-g)*y,k=h*y,S=g*y,C=m*v,E=b*v,D=0,$=0;if("clip"===r){var O=eI(o);D=O*v,$=O*y}var _=c.x+C-D,I=c.y+k-$,N=_+c.width+2*D-C-E-w,j=I+c.height+2*$-k-S-x;n.left=Math.max(n.left,_),n.top=Math.max(n.top,I),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,j)}})),n}function nI(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 rI(e,t){var n=Yh(t||[],2),r=n[0],o=n[1];return[nI(e.width,r),nI(e.height,o)]}function oI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function iI(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 aI(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 lI=["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 sI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NE,t=U.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,k=t.getPopupContainer,S=t.forceRender,C=t.autoDestroy,E=t.destroyPopupOnHide,D=t.popup,$=t.popupClassName,O=t.popupStyle,_=t.popupPlacement,I=t.builtinPlacements,N=void 0===I?{}:I,j=t.popupAlign,P=t.zIndex,T=t.stretch,F=t.getPopupClassNameFromAlign,R=t.fresh,A=t.alignPoint,M=t.onPopupClick,L=t.onPopupAlign,z=t.arrow,B=t.popupMotion,H=t.maskMotion,W=t.popupTransitionName,q=t.popupAnimation,V=t.maskTransitionName,G=t.maskAnimation,X=t.className,K=t.getTriggerDOMNode,Y=_d(t,lI),Q=C||E||!1,J=Yh(U.useState(!1),2),Z=J[0],ee=J[1];Gg((function(){ee(s_())}),[]);var te=U.useRef({}),ne=U.useContext(G_),re=U.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=FE(),ie=Yh(U.useState(null),2),ae=ie[0],le=ie[1],se=U.useRef(null),ce=Cw((function(e){se.current=e,Tb(e)&&ae!==e&&le(e),null==ne||ne.registerSubPopup(oe,e)})),ue=Yh(U.useState(null),2),de=ue[0],fe=ue[1],pe=U.useRef(null),he=Cw((function(e){Tb(e)&&de!==e&&(fe(e),pe.current=e)})),ge=U.Children.only(i),me=(null==ge?void 0:ge.props)||{},be={},ve=Cw((function(e){var t,n,r=de;return(null==r?void 0:r.contains(e))||(null===(t=ik(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=ik(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}))})),ye=Y_(o,B,q,W),we=Y_(o,H,G,V),xe=Yh(U.useState(d||!1),2),ke=xe[0],Se=xe[1],Ce=null!=u?u:ke,Ee=Cw((function(e){void 0===u&&Se(e)}));Gg((function(){Se(u||!1)}),[u]);var De=U.useRef(Ce);De.current=Ce;var $e=U.useRef([]);$e.current=[];var Oe=Cw((function(e){var t;Ee(e),(null!==(t=$e.current[$e.current.length-1])&&void 0!==t?t:Ce)!==e&&($e.current.push(e),null==f||f(e))})),_e=U.useRef(),Ie=function(){clearTimeout(_e.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ie(),0===t?Oe(e):_e.current=setTimeout((function(){Oe(e)}),1e3*t)};U.useEffect((function(){return Ie}),[]);var je=Yh(U.useState(!1),2),Pe=je[0],Te=je[1];Gg((function(e){e&&!Ce||Te(!0)}),[Ce]);var Fe=Yh(U.useState(null),2),Re=Fe[0],Ae=Fe[1],Me=Yh(U.useState([0,0]),2),Le=Me[0],ze=Me[1],Be=function(e){ze([e.clientX,e.clientY])},He=function(e,t,n,r,o,i,a){var l=Yh(U.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=U.useRef(0),d=U.useMemo((function(){return t?J_(t):[]}),[t]),f=U.useRef({});e||(f.current={});var p=Cw((function(){if(t&&n&&e){let e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G,r=$.x+e,o=$.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=$.y+ve,le=ae+F,se=$.x+be,ce=se+R};var l,s,u,p=t,h=p.ownerDocument,g=Q_(p).getComputedStyle(p),m=g.width,b=g.height,v=g.position,y=p.style.left,w=p.style.top,x=p.style.right,k=p.style.bottom,S=p.style.overflow,C=Od(Od({},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 D=n.getBoundingClientRect();u={x:D.x,y:D.y,width:D.width,height:D.height}}var $=p.getBoundingClientRect(),O=h.documentElement,_=O.clientWidth,I=O.clientHeight,N=O.scrollWidth,j=O.scrollHeight,P=O.scrollTop,T=O.scrollLeft,F=$.height,R=$.width,A=u.height,M=u.width,L={left:0,top:0,right:_,bottom:I},z={left:-T,top:-P,right:N-T,bottom:j-P},B=C.htmlRegion,H="visible",W="visibleFirst";"scroll"!==B&&B!==W&&(B=H);var U=B===W,q=tI(z,d),V=tI(L,d),G=B===H?V:q,X=U?V:G;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=k,p.style.overflow=S,null===(s=p.parentElement)||void 0===s||s.removeChild(E);var Y=Z_(Math.round(R/parseFloat(m)*1e3)/1e3),Q=Z_(Math.round(F/parseFloat(b)*1e3)/1e3);if(0===Y||0===Q||Tb(n)&&!aC(n))return;var J=C.offset,Z=C.targetOffset,ee=Yh(rI($,J),2),te=ee[0],ne=ee[1],re=Yh(rI(u,Z),2),oe=re[0],ie=re[1];u.x-=oe,u.y-=ie;var ae,le,se,ce,ue=Yh(C.points||[],2),de=ue[0],fe=oI(ue[1]),pe=oI(de),he=iI(u,fe),ge=iI($,pe),me=Od({},C),be=he.x-ge.x+te,ve=he.y-ge.y+ne,ye=e(be,ve),we=e(be,ve,V),xe=iI(u,["t","l"]),ke=iI($,["t","l"]),Se=iI(u,["b","r"]),Ce=iI($,["b","r"]),Ee=C.overflow||{},De=Ee.adjustX,$e=Ee.adjustY,Oe=Ee.shiftX,_e=Ee.shiftY,Ie=function(e){return"boolean"==typeof e?e:e>=0};lt();var Ne=Ie($e),je=pe[0]===fe[0];if(Ne&&"t"===pe[0]&&(le>X.bottom||f.current.bt)){var Pe=ve;je?Pe-=F-A:Pe=xe.y-Ce.y-ne;var Te=e(be,Pe),Fe=e(be,Pe,V);Te>ye||Te===ye&&(!U||Fe>=we)?(f.current.bt=!0,ve=Pe,ne=-ne,me.points=[aI(pe,0),aI(fe,0)]):f.current.bt=!1}if(Ne&&"b"===pe[0]&&(ae<X.top||f.current.tb)){var Re=ve;je?Re+=F-A:Re=Se.y-ke.y-ne;var Ae=e(be,Re),Me=e(be,Re,V);Ae>ye||Ae===ye&&(!U||Me>=we)?(f.current.tb=!0,ve=Re,ne=-ne,me.points=[aI(pe,0),aI(fe,0)]):f.current.tb=!1}var Le=Ie(De),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,V);He>ye||He===ye&&(!U||We>=we)?(f.current.rl=!0,be=Be,te=-te,me.points=[aI(pe,1),aI(fe,1)]):f.current.rl=!1}if(Le&&"r"===pe[1]&&(se<X.left||f.current.lr)){var Ue=be;ze?Ue+=R-M:Ue=Se.x-ke.x-te;var qe=e(Ue,ve),Ve=e(Ue,ve,V);qe>ye||qe===ye&&(!U||Ve>=we)?(f.current.lr=!0,be=Ue,te=-te,me.points=[aI(pe,1),aI(fe,1)]):f.current.lr=!1}lt();var Ge=!0===Oe?0:Oe;"number"==typeof Ge&&(se<V.left&&(be-=se-V.left-te,u.x+M<V.left+Ge&&(be+=u.x-V.left+M-Ge)),ce>V.right&&(be-=ce-V.right-te,u.x>V.right-Ge&&(be+=u.x-V.right+Ge)));var Xe=!0===_e?0:_e;"number"==typeof Xe&&(ae<V.top&&(ve-=ae-V.top-ne,u.y+A<V.top+Xe&&(ve+=u.y-V.top+A-Xe)),le>V.bottom&&(ve-=le-V.bottom-ne,u.y>V.bottom-Xe&&(ve+=u.y-V.bottom+Xe)));var Ke=$.x+be,Ye=Ke+R,Qe=$.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-$.x-(be+$.width),at=K.bottom-$.y-(ve+$.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 Od(Od({},e),{},{ready:!1})}))};return Gg(h,[r]),Gg((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()}))}]}(Ce,ae,A?Le:de,_,N,j,L),We=Yh(He,11),Ue=We[0],qe=We[1],Ve=We[2],Ge=We[3],Xe=We[4],Ke=We[5],Ye=We[6],Qe=We[7],Je=We[8],Ze=We[9],et=We[10],tt=function(e,t,n,r){return U.useMemo((function(){var o=X_(null!=n?n:t),i=X_(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),nt=Yh(tt,2),rt=nt[0],ot=nt[1],it=rt.has("click"),at=ot.has("click")||ot.has("contextMenu"),lt=Cw((function(){Pe||et()}));!function(e,t,n,r,o){Gg((function(){if(e&&t&&n){let e=function(){r(),o()};var i=n,a=J_(t),l=J_(i),s=Q_(i),c=new Set([s].concat(Jh(a),Jh(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])}(Ce,de,ae,lt,(function(){De.current&&A&&at&&Ne(!1)})),Gg((function(){lt()}),[Le,_]),Gg((function(){!Ce||null!=N&&N[_]||lt()}),[JSON.stringify(j)]);var st=U.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(K_(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(N,o,Ze,A);return pb(e,null==F?void 0:F(Ze))}),[Ze,F,N,o,A]);U.useImperativeHandle(n,(function(){return{nativeElement:pe.current,popupElement:se.current,forceAlign:lt}}));var ct=Yh(U.useState(0),2),ut=ct[0],dt=ct[1],ft=Yh(U.useState(0),2),pt=ft[0],ht=ft[1],gt=function(){if(T&&de){var e=de.getBoundingClientRect();dt(e.width),ht(e.height)}};function mt(e,t,n,r){be[e]=function(o){var i;null==r||r(o),Ne(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];null===(i=me[e])||void 0===i||i.call.apply(i,[me,o].concat(l))}}Gg((function(){Re&&(et(),Re(),Ae(null))}),[Re]),(it||at)&&(be.onClick=function(e){var t;De.current&&at?Ne(!1):!De.current&&it&&(Be(e),Ne(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=me.onClick)||void 0===t||t.call.apply(t,[me,e].concat(r))}),function(e,t,n,r,o,i,a,l){var s=U.useRef(e);s.current=e,U.useEffect((function(){if(t&&r&&(!o||i)){var e=function(e){var t=e.target;s.current&&!a(t)&&l(!1)},c=Q_(r);c.addEventListener("mousedown",e,!0),c.addEventListener("contextmenu",e,!0);var u=ik(n);return u&&(u.addEventListener("mousedown",e,!0),u.addEventListener("contextmenu",e,!0)),function(){c.removeEventListener("mousedown",e,!0),c.removeEventListener("contextmenu",e,!0),u&&(u.removeEventListener("mousedown",e,!0),u.removeEventListener("contextmenu",e,!0))}}}),[t,n,r,o,i])}(Ce,at,de,ae,y,x,ve,Ne);var bt,vt,yt=rt.has("hover"),wt=ot.has("hover");yt&&(mt("onMouseEnter",!0,h,(function(e){Be(e)})),mt("onPointerEnter",!0,h,(function(e){Be(e)})),bt=function(e){(Ce||Pe)&&null!=ae&&ae.contains(e.target)&&Ne(!0,h)},A&&(be.onMouseMove=function(e){var t;null===(t=me.onMouseMove)||void 0===t||t.call(me,e)})),wt&&(mt("onMouseLeave",!1,m),mt("onPointerLeave",!1,m),vt=function(){Ne(!1,m)}),rt.has("focus")&&mt("onFocus",!0,b),ot.has("focus")&&mt("onBlur",!1,v),rt.has("contextMenu")&&(be.onContextMenu=function(e){var t;De.current&&ot.has("contextMenu")?Ne(!1):(Be(e),Ne(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=me.onContextMenu)||void 0===t||t.call.apply(t,[me,e].concat(r))}),X&&(be.className=pb(me.className,X));var xt=Od(Od({},me),be),kt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(kt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=xt[e])||void 0===t||t.call.apply(t,[xt].concat(r)),Y[e].apply(Y,r)})}));var St=U.cloneElement(ge,Od(Od({},xt),kt)),Ct={x:Ke,y:Ye},Et=z?Od({},!0!==z?z:{}):null;return U.createElement(U.Fragment,null,U.createElement(kv,{disabled:!Ce,ref:he,onResize:function(){gt(),lt()}},U.createElement(V_,{getTriggerDOMNode:K},St)),U.createElement(G_.Provider,{value:re},U.createElement(q_,{portal:e,ref:ce,prefixCls:o,popup:D,className:pb($,st),style:O,target:de,onMouseEnter:bt,onMouseLeave:vt,onPointerEnter:bt,zIndex:P,open:Ce,keepDom:Pe,fresh:R,onClick:M,mask:y,motion:ye,maskMotion:we,onVisibleChanged:function(e){Te(!1),et(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){gt(),Ae((function(){return e}))}))},forceRender:S,autoDestroy:Q,getPopupContainer:k,align:Ze,arrow:Et,arrowPos:Ct,ready:Ue,offsetX:qe,offsetY:Ve,offsetR:Ge,offsetB:Xe,onAlign:lt,stretch:T,targetWidth:ut/Qe,targetHeight:pt/Je})))}));return t}(NE);var cI=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],uI=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,o=e.children,i=e.popupElement,a=e.animation,l=e.transitionName,s=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,f=e.placement,p=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,v=e.empty,y=e.getTriggerDOMNode,w=e.onPopupVisibleChange,x=e.onPopupMouseEnter,k=_d(e,cI),S="".concat(n,"-dropdown"),C=i;g&&(C=g(i));var E=U.useMemo((function(){return p||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(h)}),[p,h]),D=a?"".concat(S,"-").concat(a):l,$="number"==typeof h,O=U.useMemo((function(){return $?null:!1===h?"minWidth":"width"}),[h,$]),_=s;$&&(_=Od(Od({},_),{},{width:h}));var I=U.useRef(null);return U.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=I.current)||void 0===e?void 0:e.popupElement}}})),U.createElement(sI,hh({},k,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:S,popupTransitionName:D,popup:U.createElement("div",{onMouseEnter:x},C),ref:I,stretch:O,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:pb(c,Dd({},"".concat(S,"-empty"),v)),popupStyle:_,getTriggerDOMNode:y,onPopupVisibleChange:w}),o)},dI=U.forwardRef(uI);function fI(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function pI(e){return void 0!==e&&!Number.isNaN(e)}function hI(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function gI(e){var t=Od({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return vg(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var mI=U.createContext(null);function bI(e){var t=e.visible,n=e.values;if(!t)return null;return U.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes(Cd(t))?t:n})).join(", ")),n.length>50?", ...":null)}var vI=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],yI=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],wI=function(e){return"tags"===e||"multiple"===e},xI=U.forwardRef((function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,p=e.notFoundContent,h=void 0===p?"Not Found":p,g=e.onClear,m=e.mode,b=e.disabled,v=e.loading,y=e.getInputElement,w=e.getRawInputElement,x=e.open,k=e.defaultOpen,S=e.onDropdownVisibleChange,C=e.activeValue,E=e.onActiveValueChange,D=e.activeDescendantId,$=e.searchValue,O=e.autoClearSearchValue,_=e.onSearch,I=e.onSearchSplit,N=e.tokenSeparators,j=e.allowClear,P=e.suffixIcon,T=e.clearIcon,F=e.OptionList,R=e.animation,A=e.transitionName,M=e.dropdownStyle,L=e.dropdownClassName,z=e.dropdownMatchSelectWidth,B=e.dropdownRender,H=e.dropdownAlign,W=e.placement,V=e.builtinPlacements,G=e.getPopupContainer,X=e.showAction,K=void 0===X?[]:X,Y=e.onFocus,Q=e.onBlur,J=e.onKeyUp,Z=e.onKeyDown,ee=e.onMouseDown,te=_d(e,vI),ne=wI(m),re=(void 0!==a?a:ne)||"combobox"===m,oe=Od({},te);yI.forEach((function(e){delete oe[e]})),null==c||c.forEach((function(e){delete oe[e]}));var ie=Yh(U.useState(!1),2),ae=ie[0],le=ie[1];U.useEffect((function(){le(s_())}),[]);var se=U.useRef(null),ce=U.useRef(null),ue=U.useRef(null),de=U.useRef(null),fe=U.useRef(null),pe=U.useRef(!1),he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Yh(U.useState(!1),2),n=t[0],r=t[1],o=U.useRef(null),i=function(){window.clearTimeout(o.current)};return U.useEffect((function(){return i}),[]),[n,function(t,n){i(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),ge=Yh(he,3),me=ge[0],be=ge[1],ve=ge[2];U.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=de.current)||void 0===e?void 0:e.focus,blur:null===(t=de.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=fe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var ye=U.useMemo((function(){var e;if("combobox"!==m)return $;var t=null===(e=u[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[$,m,u]),we="combobox"===m&&"function"==typeof y&&y()||null,xe="function"==typeof w&&w(),ke=Mb(ce,null==xe||null===(n=xe.props)||void 0===n?void 0:n.ref),Se=Yh(U.useState(!1),2),Ce=Se[0],Ee=Se[1];Gg((function(){Ee(!0)}),[]);var De=Yh($w(!1,{defaultValue:k,value:x}),2),$e=De[0],Oe=De[1],_e=!!Ce&&$e,Ie=!h&&f;(b||Ie&&_e&&"combobox"===m)&&(_e=!1);var Ne=!Ie&&_e,je=U.useCallback((function(e){var t=void 0!==e?e:!_e;b||(Oe(t),_e!==t&&(null==S||S(t)))}),[b,_e,Oe,S]),Pe=U.useMemo((function(){return(N||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[N]),Te=U.useContext(mI)||{},Fe=Te.maxCount,Re=Te.rawValues,Ae=function(e,t,n){if(!(ne&&pI(Fe)&&(null==Re?void 0:Re.size)>=Fe)){var r=!0,o=e;null==E||E(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Nv(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(Jh(t),Jh(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,N,pI(Fe)?Fe-Re.size:void 0),a=n?null:i;return"combobox"!==m&&a&&(o="",null==I||I(a),je(!1),r=!1),_&&ye!==o&&_(o,{source:t?"typing":"effect"}),r}};U.useEffect((function(){_e||ne||"combobox"===m||Ae("",!1,!1)}),[_e]),U.useEffect((function(){$e&&b&&Oe(!1),b&&!pe.current&&be(!1)}),[b]);var Me=Yh(d_(),2),Le=Me[0],ze=Me[1],Be=U.useRef(!1),He=[];U.useEffect((function(){return function(){He.forEach((function(e){return clearTimeout(e)})),He.splice(0,He.length)}}),[]);var We,Ue=Yh(U.useState({}),2)[1];xe&&(We=function(e){je(e)}),function(e,t,n,r){var o=U.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},U.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[se.current,null===(e=ue.current)||void 0===e?void 0:e.getPopupElement()]}),Ne,je,!!xe);var qe,Ve=U.useMemo((function(){return Od(Od({},e),{},{notFoundContent:h,open:_e,triggerOpen:Ne,id:r,showSearch:re,multiple:ne,toggleOpen:je})}),[e,h,Ne,_e,r,re,ne,je]),Ge=!!P||v;Ge&&(qe=U.createElement(c_,{className:pb("".concat(o,"-arrow"),Dd({},"".concat(o,"-arrow-loading"),v)),customizeIcon:P,customizeIconProps:{loading:v,searchValue:ye,open:_e,focused:me,showSearch:re}}));var Xe,Ke=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=q.useMemo((function(){return"object"===Cd(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:q.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===l&&""===a)}),[r,i,n.length,a,l]),clearIcon:q.createElement(c_,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"×")}}(o,(function(){var e;null==g||g(),null===(e=de.current)||void 0===e||e.focus(),d([],{type:"clear",values:u}),Ae("",!1,!1)}),u,j,T,b,ye,m),Ye=Ke.allowClear,Qe=Ke.clearIcon,Je=U.createElement(F,{ref:fe}),Ze=pb(o,i,Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd({},"".concat(o,"-focused"),me),"".concat(o,"-multiple"),ne),"".concat(o,"-single"),!ne),"".concat(o,"-allow-clear"),j),"".concat(o,"-show-arrow"),Ge),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),v),"".concat(o,"-open"),_e),"".concat(o,"-customize-input"),we),"".concat(o,"-show-search"),re)),et=U.createElement(dI,{ref:ue,disabled:b,prefixCls:o,visible:Ne,popupElement:Je,animation:R,transitionName:A,dropdownStyle:M,dropdownClassName:L,direction:s,dropdownMatchSelectWidth:z,dropdownRender:B,dropdownAlign:H,placement:W,builtinPlacements:V,getPopupContainer:G,empty:f,getTriggerDOMNode:function(){return ce.current},onPopupVisibleChange:We,onPopupMouseEnter:function(){Ue({})}},xe?U.cloneElement(xe,{ref:ke}):U.createElement(B_,hh({},e,{domRef:ce,prefixCls:o,inputElement:we,ref:de,id:r,showSearch:re,autoClearSearchValue:O,mode:m,activeDescendantId:D,tagRender:l,values:u,open:_e,onToggleOpen:je,activeValue:C,searchValue:ye,onSearch:Ae,onSearchSubmit:function(e){e&&e.trim()&&_(e,{source:"submit"})},onRemove:function(e){var t=u.filter((function(t){return t!==e}));d(t,{type:"remove",values:[e]})},tokenWithEnter:Pe})));return Xe=xe?et:U.createElement("div",hh({className:Ze},oe,{ref:se,onMouseDown:function(e){var t,n=e.target,r=null===(t=ue.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=He.indexOf(o);-1!==t&&He.splice(t,1),ve(),ae||r.contains(document.activeElement)||null===(e=de.current)||void 0===e||e.focus()}));He.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==ee||ee.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Le(),r=e.which;if(r===iS.ENTER&&("combobox"!==m&&e.preventDefault(),_e||je(!0)),ze(!!ye),r===iS.BACKSPACE&&!n&&ne&&!ye&&u.length){for(var o=Jh(u),i=null,a=o.length-1;a>=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&d(o,{type:"remove",values:[i]})}for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f<s;f++)c[f-1]=arguments[f];_e&&(null===(t=fe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(c))),null==Z||Z.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;_e&&(null===(o=fe.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),null==J||J.apply(void 0,[e].concat(n))},onFocus:function(){be(!0),b||(Y&&!Be.current&&Y.apply(void 0,arguments),K.includes("focus")&&je(!0)),Be.current=!0},onBlur:function(){pe.current=!0,be(!1,(function(){Be.current=!1,pe.current=!1,je(!1)})),b||(ye&&("tags"===m?_(ye,{source:"submit"}):"multiple"===m&&_("",{source:"blur"})),Q&&Q.apply(void 0,arguments))}}),U.createElement(bI,{visible:me&&!_e,values:u}),et,qe,Ye&&Qe),U.createElement(u_.Provider,{value:Ve},Xe)})),kI=function(){return null};kI.isSelectOptGroup=!0;var SI=function(){return null};SI.isSelectOption=!0;var CI=U.forwardRef((function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:n,position:"relative",overflow:"hidden"},f=Od(Od({},f),{},Dd(Dd(Dd(Dd(Dd({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),U.createElement("div",{style:d},U.createElement(kv,{onResize:function(e){e.offsetHeight&&l&&l()}},U.createElement("div",hh({style:f,className:pb(Dd({},"".concat(a,"-holder-inner"),a)),ref:t},s),i,u)))}));function EI(e){var t=e.children,n=e.setRef,r=U.useCallback((function(e){n(e)}),[]);return U.cloneElement(t,{ref:r})}function DI(e,t,n){var r=Yh(U.useState(e),2),o=r[0],i=r[1],a=Yh(U.useState(null),2),l=a[0],s=a[1];return U.useEffect((function(){var n=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){c=d,u=u||f!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null==n?void 0:n.index)&&s(e[n.index]),i(e)}),[e]),[l]}CI.displayName="Filler";var $I="object"===("undefined"==typeof navigator?"undefined":Cd(navigator))&&/Firefox/i.test(navigator.userAgent);const OI=function(e,t){var n=U.useRef(!1),r=U.useRef(null);var o=U.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&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 _I(e,t,n,r,o){var i=U.useRef(0),a=U.useRef(null),l=U.useRef(null),s=U.useRef(!1),c=OI(t,n);var u=U.useRef(null),d=U.useRef(null);return[function(t){if(e){_v.cancel(d.current),d.current=_v((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){_v.cancel(a.current),i.current+=t,l.current=t,c(t)||($I||e.preventDefault(),a.current=_v((function(){var e=s.current?10:1;o(i.current*e),i.current=0})))}(t,g):function(e,t){o(t,!0),$I||e.preventDefault()}(t,h)}},function(t){e&&(s.current=t.detail===l.current)}]}var II=function(){function e(){nh(this,e),Dd(this,"maps",void 0),Dd(this,"id",0),this.maps=Object.create(null)}return oh(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 NI=14/15;var jI=10;function PI(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var TI=U.forwardRef((function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,p=e.thumbStyle,h=Yh(U.useState(!1),2),g=h[0],m=h[1],b=Yh(U.useState(null),2),v=b[0],y=b[1],w=Yh(U.useState(null),2),x=w[0],k=w[1],S=!r,C=U.useRef(),E=U.useRef(),D=Yh(U.useState(!1),2),$=D[0],O=D[1],_=U.useRef(),I=function(){clearTimeout(_.current),O(!0),_.current=setTimeout((function(){O(!1)}),3e3)},N=i-d||0,j=d-u||0,P=U.useMemo((function(){return 0===o||0===N?0:o/N*j}),[o,N,j]),T=U.useRef({top:P,dragging:g,pageY:v,startTop:x});T.current={top:P,dragging:g,pageY:v,startTop:x};var F=function(e){m(!0),y(PI(e,c)),k(T.current.top),a(),e.stopPropagation(),e.preventDefault()};U.useEffect((function(){var e=function(e){e.preventDefault()},t=C.current,n=E.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",F),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",F)}}),[]);var R=U.useRef();R.current=N;var A=U.useRef();A.current=j,U.useEffect((function(){if(g){var e,t=function(t){var n=T.current,r=n.dragging,o=n.pageY,i=n.startTop;if(_v.cancel(e),r){var a=PI(t,c)-o,l=i;!S&&c?l-=a:l+=a;var u=R.current,d=A.current,f=d?l/d:0,p=Math.ceil(f*u);p=Math.max(p,0),p=Math.min(p,u),e=_v((function(){s(p,c)}))}},n=function(){m(!1),l()};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),_v.cancel(e)}}}),[g]),U.useEffect((function(){I()}),[o]),U.useImperativeHandle(t,(function(){return{delayHidden:I}}));var M="".concat(n,"-scrollbar"),L={position:"absolute",visibility:$?null:"hidden"},z={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(L.height=8,L.left=0,L.right=0,L.bottom=0,z.height="100%",z.width=u,S?z.left=P:z.right=P):(L.width=8,L.top=0,L.bottom=0,S?L.right=0:L.left=0,z.width="100%",z.height=u,z.top=P),U.createElement("div",{ref:C,className:pb(M,Dd(Dd(Dd({},"".concat(M,"-horizontal"),c),"".concat(M,"-vertical"),!c),"".concat(M,"-visible"),$)),style:Od(Od({},L),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:I},U.createElement("div",{ref:E,className:pb("".concat(M,"-thumb"),Dd({},"".concat(M,"-thumb-moving"),g)),style:Od(Od({},z),p),onMouseDown:F}))})),FI=20;function RI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,FI),Math.floor(t)}var AI=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],MI=[],LI={overflowY:"auto",overflowAnchor:"none"};function zI(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,k=e.extraRender,S=e.styles,C=_d(e,AI),E=U.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),D=function(e,t,n){var r=Yh(U.useState(0),2),o=r[0],i=r[1],a=U.useRef(new Map),l=U.useRef(new II),s=U.useRef();function c(){_v.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=Fb(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=_v(t)}return U.useEffect((function(){return c}),[]),[function(t,n){var r=e(t);a.current.get(r),n?(a.current.set(r,n),u()):a.current.delete(r)},u,l.current,o]}(E),$=Yh(D,4),O=$[0],_=$[1],I=$[2],N=$[3],j=!(!1===p||!i||!a),P=U.useMemo((function(){return Object.values(I.maps).reduce((function(e,t){return e+t}),0)}),[I.id,I.maps]),T=j&&u&&(Math.max(a*u.length,P)>i||!!g),F="rtl"===h,R=pb(r,Dd({},"".concat(r,"-rtl"),F),o),A=u||MI,M=U.useRef(),L=U.useRef(),z=Yh(U.useState(0),2),B=z[0],H=z[1],W=Yh(U.useState(0),2),q=W[0],V=W[1],G=Yh(U.useState(!1),2),X=G[0],K=G[1],Y=function(){K(!0)},Q=function(){K(!1)},J={getKey:E};function Z(e){H((function(t){var n=function(e){var t=e;Number.isNaN(me.current)||(t=Math.min(t,me.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return M.current.scrollTop=n,n}))}var ee=U.useRef({start:0,end:A.length}),te=U.useRef(),ne=Yh(DI(A,E),1)[0];te.current=ne;var re=U.useMemo((function(){if(!j)return{scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};var e;if(!T)return{scrollHeight:(null===(e=L.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:A.length-1,offset:void 0};for(var t,n,r,o=0,l=A.length,s=0;s<l;s+=1){var c=A[s],u=E(c),d=I.get(u),f=o+(void 0===d?a:d);f>=B&&void 0===t&&(t=s,n=o),f>B+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=A.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,A.length-1),offset:n}}),[T,j,B,A,N,i]),oe=re.scrollHeight,ie=re.start,ae=re.end,le=re.offset;ee.current.start=ie,ee.current.end=ae;var se=Yh(U.useState({width:0,height:i}),2),ce=se[0],ue=se[1],de=U.useRef(),fe=U.useRef(),pe=U.useMemo((function(){return RI(ce.width,g)}),[ce.width,g]),he=U.useMemo((function(){return RI(ce.height,oe)}),[ce.height,oe]),ge=oe-i,me=U.useRef(ge);me.current=ge;var be=B<=0,ve=B>=ge,ye=OI(be,ve),we=function(){return{x:F?-q:q,y:B}},xe=U.useRef(we()),ke=Cw((function(e){if(y){var t=Od(Od({},we()),e);xe.current.x===t.x&&xe.current.y===t.y||(y(t),xe.current=t)}}));function Se(e,t){var n=e;t?(yd.flushSync((function(){V(n)})),ke()):Z(n)}var Ce=function(e){var t=e,n=g?g-ce.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Ee=Cw((function(e,t){t?(yd.flushSync((function(){V((function(t){return Ce(t+(F?-e:e))}))})),ke()):Z((function(t){return t+e}))})),De=Yh(_I(j,be,ve,!!g,Ee),2),$e=De[0],Oe=De[1];!function(e,t,n){var r,o=U.useRef(!1),i=U.useRef(0),a=U.useRef(null),l=U.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*=NI,!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))},Gg((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])}(j,M,(function(e,t){return!ye(e,t)&&($e({preventDefault:function(){},deltaY:e}),!0)})),Gg((function(){function e(e){j&&e.preventDefault()}var t=M.current;return t.addEventListener("wheel",$e),t.addEventListener("DOMMouseScroll",Oe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",$e),t.removeEventListener("DOMMouseScroll",Oe),t.removeEventListener("MozMousePixelScroll",e)}}),[j]),Gg((function(){if(g){var e=Ce(q);V(e),ke({x:e})}}),[ce.width,g]);var _e=function(){var e,t;null===(e=de.current)||void 0===e||e.delayHidden(),null===(t=fe.current)||void 0===t||t.delayHidden()},Ie=function(e,t,n,r,o,i,a,l){var s=U.useRef(),c=Yh(U.useState(null),2),u=c[0],d=c[1];return Gg((function(){if(u&&u.times<jI){if(!e.current)return void d((function(e){return Od({},e)}));i();var l=u.targetAlign,s=u.originAlign,c=u.index,f=u.offset,p=e.current.clientHeight,h=!1,g=l,m=null;if(p){for(var b=l||s,v=0,y=0,w=0,x=Math.min(t.length-1,c),k=0;k<=x;k+=1){var S=o(t[k]);y=v;var C=n.get(S);v=w=y+(void 0===C?r:C)}for(var E="top"===b?f:p-f,D=x;D>=0;D-=1){var $=o(t[D]),O=n.get($);if(void 0===O){h=!0;break}if((E-=O)<=0)break}switch(b){case"top":m=y-f;break;case"bottom":m=w-p+f;break;default:var _=e.current.scrollTop;y<_?g="top":w>_+p&&(g="bottom")}null!==m&&a(m),m!==u.lastTop&&(h=!0)}h&&d(Od(Od({},u),{},{times:u.times+1,targetAlign:g,lastTop:m}))}}),[u,e.current]),function(e){if(null!=e){if(_v.cancel(s.current),"number"==typeof e)a(e);else if(e&&"object"===Cd(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()}}(M,A,I,a,E,(function(){return _(!0)}),Z,_e);U.useImperativeHandle(t,(function(){return{getScrollInfo:we,scrollTo:function(e){var t;(t=e)&&"object"===Cd(t)&&("left"in t||"top"in t)?(void 0!==e.left&&V(Ce(e.left)),Ie(e.top)):Ie(e)}}})),Gg((function(){if(w){var e=A.slice(ie,ae+1);w(e,A)}}),[ie,ae,A]);var Ne=function(e,t,n,r){var o=Yh(U.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;d<u;d+=1){var f,p=e[d],h=t(p);i.set(h,d);var g=null!==(f=n.get(h))&&void 0!==f?f:r;if(a[d]=(a[d-1]||0)+g,h===o&&(s=d),h===l&&(c=d),void 0!==s&&void 0!==c)break}return{top:a[s-1]||0,bottom:a[c]}}}(A,E,I,a),je=null==k?void 0:k({start:ie,end:ae,virtual:T,offsetX:q,offsetY:le,rtl:F,getSize:Ne}),Pe=function(e,t,n,r,o,i,a){var l=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{style:{width:r}}),s=l(e);return U.createElement(EI,{key:s,setRef:function(t){return o(e,t)}},a)}))}(A,ie,ae,g,O,d,J),Te=null;i&&(Te=Od(Dd({},s?"height":"maxHeight",i),LI),j&&(Te.overflowY="hidden",g&&(Te.overflowX="hidden"),X&&(Te.pointerEvents="none")));var Fe={};return F&&(Fe.dir="rtl"),U.createElement("div",hh({style:Od(Od({},c),{},{position:"relative"}),className:R},Fe,C),U.createElement(kv,{onResize:function(e){ue({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},U.createElement(b,{className:"".concat(r,"-holder"),style:Te,ref:M,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==B&&Z(t),null==v||v(e),ke()},onMouseEnter:_e},U.createElement(CI,{prefixCls:r,height:oe,offsetX:q,offsetY:le,scrollWidth:g,onInnerResize:_,ref:L,innerProps:x,rtl:F,extra:je},Pe))),T&&oe>i&&U.createElement(TI,{ref:de,prefixCls:r,scrollOffset:B,scrollRange:oe,rtl:F,onScroll:Se,onStartMove:Y,onStopMove:Q,spinSize:he,containerSize:ce.height,style:null==S?void 0:S.verticalScrollBar,thumbStyle:null==S?void 0:S.verticalScrollBarThumb}),T&&g>ce.width&&U.createElement(TI,{ref:fe,prefixCls:r,scrollOffset:q,scrollRange:g,rtl:F,onScroll:Se,onStartMove:Y,onStopMove:Q,spinSize:pe,containerSize:ce.width,horizontal:!0,style:null==S?void 0:S.horizontalScrollBar,thumbStyle:null==S?void 0:S.horizontalScrollBarThumb}))}var BI=U.forwardRef(zI);BI.displayName="List";var HI=["disabled","title","children","style","className"];function WI(e){return"string"==typeof e||"number"==typeof e}var UI=function(e,t){var n=U.useContext(u_),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=U.useContext(mI),p=f.maxCount,h=f.flattenOptions,g=f.onActiveValue,m=f.defaultActiveFirstOption,b=f.onSelect,v=f.menuItemSelectedIcon,y=f.rawValues,w=f.fieldNames,x=f.virtual,k=f.direction,S=f.listHeight,C=f.listItemHeight,E=f.optionRender,D="".concat(r,"-item"),$=pg((function(){return h}),[i,h],(function(e,t){return t[0]&&e[1]!==t[1]})),O=U.useRef(null),_=U.useMemo((function(){return a&&pI(p)&&(null==y?void 0:y.size)>=p}),[a,p,null==y?void 0:y.size]),I=function(e){e.preventDefault()},N=function(e){var t;null===(t=O.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},j=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=$.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=$[o]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||_))return o}return-1},P=Yh(U.useState((function(){return j(0)})),2),T=P[0],F=P[1],R=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];F(e);var n={source:t?"keyboard":"mouse"},r=$[e];r?g(r.value,e,n):g(null,-1,n)};U.useEffect((function(){R(!1!==m?j(0):-1)}),[$.length,s]);var A=U.useCallback((function(e){return y.has(e)&&"combobox"!==l}),[l,Jh(y).toString(),y.size]);U.useEffect((function(){var e,t=setTimeout((function(){if(!a&&i&&1===y.size){var e=Array.from(y)[0],t=$.findIndex((function(t){return t.data.value===e}));-1!==t&&(R(t),N(t))}}));i&&(null===(e=O.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[i,s]);var M=function(e){void 0!==e&&b(e,{selected:!y.has(e)}),a||c(!1)};if(U.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case iS.N:case iS.P:case iS.UP:case iS.DOWN:var r=0;if(t===iS.UP?r=-1:t===iS.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===iS.N?r=1:t===iS.P&&(r=-1)),0!==r){var o=j(T+r,r);N(o),R(o,!0)}break;case iS.ENTER:var a,l=$[T];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||_?M(void 0):M(l.value),i&&e.preventDefault();break;case iS.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){N(e)}}})),0===$.length)return U.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(D,"-empty"),onMouseDown:I},u);var L=Object.keys(w).map((function(e){return w[e]})),z=function(e){return e.label};function B(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var H=function(e){var t=$[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=Fk(n,!0),a=z(t);return t?U.createElement("div",hh({"aria-label":"string"!=typeof a||o?null:a},i,{key:e},B(t,e),{"aria-selected":A(r)}),r):null},W={role:"listbox",id:"".concat(o,"_list")};return U.createElement(U.Fragment,null,x&&U.createElement("div",hh({},W,{style:{height:0,width:0,overflow:"hidden"}}),H(T-1),H(T),H(T+1)),U.createElement(BI,{itemKey:"key",ref:O,data:$,height:S,itemHeight:C,fullHeight:!1,onMouseDown:I,onScroll:d,virtual:x,direction:k,innerProps:x?null:W},(function(e,t){var n=e.group,r=e.groupOption,o=e.data,i=e.label,a=e.value,l=o.key;if(n){var s,c=null!==(s=o.title)&&void 0!==s?s:WI(i)?i.toString():void 0;return U.createElement("div",{className:pb(D,"".concat(D,"-group"),o.className),title:c},void 0!==i?i:l)}var u=o.disabled,d=o.title;o.children;var f=o.style,p=o.className,h=Sv(_d(o,HI),L),g=A(a),m=u||!g&&_,b="".concat(D,"-option"),y=pb(D,b,p,Dd(Dd(Dd(Dd({},"".concat(b,"-grouped"),r),"".concat(b,"-active"),T===t&&!m),"".concat(b,"-disabled"),m),"".concat(b,"-selected"),g)),w=z(e),k=!v||"function"==typeof v||g,S="number"==typeof w?w:w||a,C=WI(S)?S.toString():void 0;return void 0!==d&&(C=d),U.createElement("div",hh({},Fk(h),x?{}:B(e,t),{"aria-selected":g,className:y,title:C,onMouseMove:function(){T===t||m||R(t)},onClick:function(){m||M(a)},style:f}),U.createElement("div",{className:"".concat(b,"-content")},"function"==typeof E?E(e,{index:t}):S),U.isValidElement(v)||g,k&&U.createElement(c_,{className:"".concat(D,"-option-state"),customizeIcon:v,customizeIconProps:{value:a,disabled:m,isSelected:g}},g?"✓":null))})))},qI=U.forwardRef(UI);function VI(e,t){return j_(e).join("").toUpperCase().includes(t)}var GI=0,XI=eg();function KI(e){var t=Yh(U.useState(),2),n=t[0],r=t[1];return U.useEffect((function(){var e;r("rc_select_".concat((XI?(e=GI,GI+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var YI=["children","value"],QI=["children"];function JI(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Pb(e).map((function(e,n){if(!U.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,a=r.props,l=a.children,s=_d(a,QI);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return Od({key:n,value:void 0!==i?i:n,children:o},_d(r,YI))}(e):Od(Od({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:JI(l)})})).filter((function(e){return e}))}function ZI(e){var t=U.useRef();t.current=e;var n=U.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var eN=["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","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],tN=["inputValue"];var nN=U.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,k=e.optionRender,S=e.children,C=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,D=e.virtual,$=e.direction,O=e.listHeight,_=void 0===O?200:O,I=e.listItemHeight,N=void 0===I?20:I,j=e.labelRender,P=e.value,T=e.defaultValue,F=e.labelInValue,R=e.onChange,A=e.maxCount,M=_d(e,eN),L=KI(n),z=wI(r),B=!(x||!S),H=U.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),W=U.useMemo((function(){return hI(l,B)}),[JSON.stringify(l),B]),q=Yh($w("",{value:void 0!==c?c:s,postState:function(e){return e||""}}),2),V=q[0],G=q[1],X=function(e,t,n,r,o){return U.useMemo((function(){var i=e;!e&&(i=JI(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;c<t.length;c+=1){var u=t[c];!u[n.options]||i?(a.set(u[n.value],u),s(l,u,n.label),s(l,u,r),s(l,u,o)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}}),[e,t,n,r,o])}(x,S,W,y,w),K=X.valueOptions,Y=X.labelOptions,Q=X.options,J=U.useCallback((function(e){return j_(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==Cd(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,s=K.get(t);s&&(void 0===n&&(n=null==s?void 0:s[w||W.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),o=null==s?void 0:s.disabled,i=null==s?void 0:s.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[W,w,K]),Z=Yh($w(T,{value:P}),2),ee=Z[0],te=Z[1],ne=U.useMemo((function(){var e,t=J(z&&null===ee?[]:ee);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ee,J,r,z]),re=function(e,t){var n=U.useRef({values:new Map,options:new Map});return[U.useMemo((function(){var r=n.current,o=r.values,i=r.options,a=e.map((function(e){var t;return void 0===e.label?Od(Od({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,s=new Map;return a.forEach((function(e){l.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=s,a}),[e,t]),U.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ne,K),oe=Yh(re,2),ie=oe[0],ae=oe[1],le=U.useMemo((function(){if(!r&&1===ie.length){var e=ie[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ie.map((function(e){var t;return Od(Od({},e),{},{label:null!==(t="function"==typeof j?j(e):e.label)&&void 0!==t?t:e.value})}))}),[r,ie,j]),se=U.useMemo((function(){return new Set(ie.map((function(e){return e.value})))}),[ie]);U.useEffect((function(){if("combobox"===r){var e,t=null===(e=ie[0])||void 0===e?void 0:e.value;G(function(e){return null!=e}(t)?String(t):"")}}),[ie]);var ce=ZI((function(e,t){var n=null!=t?t:e;return Dd(Dd({},W.value,e),W.label,n)})),ue=U.useMemo((function(){if("tags"!==r)return Q;var e=Jh(Q);return Jh(ie).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return K.has(e)})(n)||e.push(ce(n,t.label))})),e}),[ce,Q,K,ie,r]),de=function(e,t,n,r,o){return U.useMemo((function(){if(!n||!1===r)return e;var i=t.options,a=t.label,l=t.value,s=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:function(e,t){return o?VI(t[o],u):t[i]?VI(t["children"!==a?a:"label"],u):VI(t[l],u)},f=c?function(e){return gI(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,f(e)))s.push(e);else{var t=e[i].filter((function(e){return d(n,f(e))}));t.length&&s.push(Od(Od({},e),{},Dd({},i,t)))}else d(n,f(e))&&s.push(e)})),s}),[e,r,o,n,t])}(ue,W,V,H,y),fe=U.useMemo((function(){return"tags"!==r||!V||de.some((function(e){return e[y||"value"]===V}))||de.some((function(e){return e[W.value]===V}))?de:[ce(V)].concat(Jh(de))}),[ce,y,r,de,V,W]),pe=U.useMemo((function(){return v?Jh(fe).sort((function(e,t){return v(e,t)})):fe}),[fe,v]),he=U.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=hI(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(s in t)){var i=t[l];o.push({key:fI(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:fI(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),o}(pe,{fieldNames:W,childrenAsData:B})}),[pe,W,B]),ge=function(e){var t=J(e);if(te(t),R&&(t.length!==ie.length||t.some((function(e,t){var n;return(null===(n=ie[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=F?t:t.map((function(e){return e.value})),r=t.map((function(e){return gI(ae(e.value))}));R(z?n:n[0],z?r:r[0])}},me=Yh(U.useState(null),2),be=me[0],ve=me[1],ye=Yh(U.useState(0),2),we=ye[0],xe=ye[1],ke=void 0!==C?C:"combobox"!==r,Se=U.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;xe(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&ve(String(e))}),[a,r]),Ce=function(e,t,n){var r=function(){var t,n=ae(e);return[F?{label:null==n?void 0:n[W.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,gI(n)]};if(t&&p){var o=Yh(r(),2),i=o[0],a=o[1];p(i,a)}else if(!t&&h&&"clear"!==n){var l=Yh(r(),2),s=l[0],c=l[1];h(s,c)}},Ee=ZI((function(e,t){var n,o=!z||t.selected;n=o?z?[].concat(Jh(ie),[e]):[e]:ie.filter((function(t){return t.value!==e})),ge(n),Ce(e,o),"combobox"===r?ve(""):wI&&!f||(G(""),ve(""))})),De=U.useMemo((function(){var e=!1!==D&&!1!==m;return Od(Od({},X),{},{flattenOptions:he,onActiveValue:Se,defaultActiveFirstOption:ke,onSelect:Ee,menuItemSelectedIcon:E,rawValues:se,fieldNames:W,virtual:e,direction:$,listHeight:_,listItemHeight:N,childrenAsData:B,maxCount:A,optionRender:k})}),[A,X,he,Se,ke,Ee,E,se,W,D,m,$,_,N,B,k]);return U.createElement(mI.Provider,{value:De},U.createElement(xI,hh({},M,{id:L,prefixCls:i,ref:t,omitDomProps:tN,mode:r,displayValues:le,onDisplayValuesChange:function(e,t){ge(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Ce(e.value,!1,n)}))},direction:$,searchValue:V,onSearch:function(e,t){if(G(e),ve(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&ge(e),null==u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Jh(se),[n])));ge(o),Ce(n,!0),G("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=Y.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Jh(se),Jh(t))));ge(n),n.forEach((function(e){Ce(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:qI,emptyOptions:!he.length,activeValue:be,activeDescendantId:"".concat(L,"_list_").concat(we)})))})),rN=nN;function oN(e,t,n){return pb({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}rN.Option=SI,rN.OptGroup=kI;const iN=(e,t)=>t||e,aN=()=>{const[,e]=mw(),t=new by(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return U.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},U.createElement("g",{fill:"none",fillRule:"evenodd"},U.createElement("g",{transform:"translate(24 31.67)"},U.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),U.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"}),U.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)"}),U.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"}),U.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"})),U.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"}),U.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},U.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),U.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},lN=()=>{const[,e]=mw(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:l}=U.useMemo((()=>({borderColor:new by(t).onBackground(o).toHexShortString(),shadowColor:new by(n).onBackground(o).toHexShortString(),contentColor:new by(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return U.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},U.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},U.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),U.createElement("g",{fillRule:"nonzero",stroke:i},U.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"}),U.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}))))},sN=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.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},cN=qw("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Rw(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[sN(o)]}));const uN=U.createElement(aN,null),dN=U.createElement(lN,null),fN=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=uN,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=U.useContext(Jy),p=u("empty",r),[h,g,m]=cN(p),[b]=Qv("Empty"),v=void 0!==i?i:null==b?void 0:b.description,y="string"==typeof v?v:"empty";let w=null;return w="string"==typeof o?U.createElement("img",{alt:y,src:o}):o,h(U.createElement("div",Object.assign({className:pb(g,m,p,null==f?void 0:f.className,{[`${p}-normal`]:o===dN,[`${p}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),s)},c),U.createElement("div",{className:`${p}-image`,style:l},w),v&&U.createElement("div",{className:`${p}-description`},v),a&&U.createElement("div",{className:`${p}-footer`},a)))};fN.PRESENTED_IMAGE_DEFAULT=uN,fN.PRESENTED_IMAGE_SIMPLE=dN;const pN=e=>{const{componentName:t}=e,{getPrefixCls:n}=U.useContext(Jy),r=n("empty");switch(t){case"Table":case"List":return q.createElement(fN,{image:fN.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return q.createElement(fN,{image:fN.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return q.createElement(fN,null)}},hN=["outlined","borderless","filled"],gN=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=U.useContext(f$);let r;r=void 0!==e?e:!1===t?"borderless":null!=n?n:"outlined";return[r,hN.includes(r)]};function mN(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 bN=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"}},vN=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({},_w(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:F$},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:A$},[`${a}${l}bottomLeft`]:{animationName:R$},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:M$},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},bN(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"},Ow),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},bN(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},U$(e,"slide-up"),U$(e,"slide-down"),T$(e,"move-up"),T$(e,"move-down")]},yN=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),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:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},wN=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",s=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:Bg(t),itemLineHeight:Bg(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},yN(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Bg(r)} 0`,lineHeight:Bg(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:Bg(s.itemLineHeight)},[`${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.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Bg(i),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}`}})}};function xN(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[wN(e,t),o]}const kN=e=>{const{componentCls:t}=e,n=Rw(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Rw(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[xN(e),xN(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},xN(r,"lg")]};function SN(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},_w(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:Bg(i),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:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${Bg(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:Bg(i)}}},[`&${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 ${Bg(r)}`,"&:after":{display:"none"}}}}}}}function CN(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[SN(e),SN(Rw(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 ${Bg(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},SN(Rw(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const EN=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Bg(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Bg(o)} ${t.activeShadowColor}`,outline:0}}}},DN=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},EN(e,t))}),$N=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},EN(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),DN(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),DN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Bg(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ON=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Bg(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},_N=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ON(e,t))}),IN=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ON(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),_N(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),_N(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),NN=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Bg(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),jN=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},$N(e)),IN(e)),NN(e))}),PN=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},TN=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"}}}},FN=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},_w(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},PN(e)),TN(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ow),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ow),{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.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[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.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},RN=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},FN(e),CN(e),kN(e),vN(e),{[`${t}-rtl`]:{direction:"rtl"}},dE(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},AN=qw("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=Rw(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[RN(r),jN(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:b}=e,v=2*l,y=2*r,w=Math.min(o-v,o-y),x=Math.min(i-v,i-y),k=Math.min(a-v,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:x,multipleItemHeightLG:k,multipleSelectorBgDisabled:m,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var MN={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"},LN=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:MN}))},zN=U.forwardRef(LN),BN={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"},HN=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:BN}))},WN=U.forwardRef(HN),UN={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"},qN=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:UN}))},VN=U.forwardRef(qN);const GN="SECRET_COMBOBOX_MODE_DO_NOT_USE",XN=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:l,popupClassName:s,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f,size:p,disabled:h,notFoundContent:g,status:m,builtinPlacements:b,dropdownMatchSelectWidth:v,popupMatchSelectWidth:y,direction:w,style:x,allowClear:k,variant:S,dropdownStyle:C,transitionName:E,tagRender:D,maxCount:$}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:_,getPrefixCls:I,renderEmpty:N,direction:j,virtual:P,popupMatchSelectWidth:T,popupOverflow:F,select:R}=U.useContext(Jy),[,A]=mw(),M=null!=f?f:null==A?void 0:A.controlHeight,L=I("select",r),z=I(),B=null!=w?w:j,{compactSize:H,compactItemClassnames:W}=SC(L,B),[q,V]=gN(S,o),G=oS(L),[X,K,Y]=AN(L,G),Q=U.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===GN?"combobox":t}),[e.mode]),J="multiple"===Q||"tags"===Q,Z=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ee=null!==(n=null!=y?y:v)&&void 0!==n?n:T,{status:te,hasFeedback:ne,isFormItemInput:re,feedbackIcon:oe}=U.useContext(u$),ie=iN(te,m);let ae;ae=void 0!==g?g:"combobox"===Q?null:(null==N?void 0:N("Select"))||U.createElement(pN,{componentName:"Select"});const{suffixIcon:le,itemIcon:se,removeIcon:ce,clearIcon:ue}=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:U.createElement(xk,null),h=e=>null!==t||l||d?U.createElement(U.Fragment,null,!1!==c&&e,l&&u):null;let g=null;if(void 0!==t)g=h(t);else if(i)g=h(U.createElement(vS,{spin:!0}));else{const e=`${s}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return h(n&&r?U.createElement(VN,{className:e}):U.createElement(WN,{className:e}))}}let m=null;m=void 0!==r?r:a?U.createElement(zN,null):null;let b=null;return b=void 0!==o?o:U.createElement(Ck,null),{clearIcon:p,suffixIcon:g,itemIcon:m,removeIcon:b}}(Object.assign(Object.assign({},O),{multiple:J,hasFeedback:ne,feedbackIcon:oe,showSuffixIcon:Z,prefixCls:L,componentName:"Select"})),de=!0===k?{clearIcon:ue}:k,fe=Sv(O,["suffixIcon","itemIcon"]),pe=pb(s||c,{[`${L}-dropdown-${B}`]:"rtl"===B},a,Y,G,K),he=mC((e=>{var t;return null!==(t=null!=p?p:H)&&void 0!==t?t:e})),ge=U.useContext(tw),me=null!=h?h:ge,be=pb({[`${L}-lg`]:"large"===he,[`${L}-sm`]:"small"===he,[`${L}-rtl`]:"rtl"===B,[`${L}-${q}`]:V,[`${L}-in-form-item`]:re},oN(L,ie,ne),W,null==R?void 0:R.className,i,a,Y,G,K),ve=U.useMemo((()=>void 0!==d?d:"rtl"===B?"bottomRight":"bottomLeft"),[d,B]),[ye]=CS("SelectLike",null==C?void 0:C.zIndex);return X(U.createElement(rN,Object.assign({ref:t,virtual:P,showSearch:null==R?void 0:R.showSearch},fe,{style:Object.assign(Object.assign({},null==R?void 0:R.style),x),dropdownMatchSelectWidth:ee,transitionName:iC(z,"slide-up",E),builtinPlacements:mN(b,F),listHeight:u,listItemHeight:M,mode:Q,prefixCls:L,placement:ve,direction:B,suffixIcon:le,menuItemSelectedIcon:se,removeIcon:ce,allowClear:de,notFoundContent:ae,className:be,getPopupContainer:l||_,dropdownClassName:pe,disabled:me,dropdownStyle:Object.assign(Object.assign({},C),{zIndex:ye}),maxCount:J?$:void 0,tagRender:J?D:void 0})))},KN=U.forwardRef(XN),YN=(QN=KN,l_((e=>{const{prefixCls:t,style:n}=e,r=U.useRef(null),[o,i]=U.useState(0),[a,l]=U.useState(0),[s,c]=$w(!1,{value:e.open}),{getPrefixCls:u}=U.useContext(Jy),d=u("select",t);U.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=`.${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});const p={paddingBottom:o,position:"relative",minWidth:a};return U.createElement("div",{ref:r,style:p},U.createElement(QN,Object.assign({},f)))})));var QN;KN.SECRET_COMBOBOX_MODE_DO_NOT_USE=GN,KN.Option=SI,KN.OptGroup=kI,KN._InternalPanelDoNotUseOrYouWillBeFired=YN;const JN=["xxl","xl","lg","md","sm","xs"],ZN=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)`}),ej=e=>{const t=e,n=[].concat(JN).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<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}})),e};function tj(){const[,e]=mw(),t=ZN(ej(e));return q.useMemo((()=>{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 nj(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=U.useRef({}),n=function(){const[,e]=U.useReducer((e=>e+1),0);return e}(),r=tj();return Gg((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}const rj=U.createContext({}),oj=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,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},_w(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${Bg(g)} ${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"}})}},ij=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}}}},aj=qw("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Rw(e,{avatarBg:n,avatarColor:t});return[oj(r),ij(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 lj=(e,t)=>{const[n,r]=U.useState(1),[o,i]=U.useState(!1),[a,l]=U.useState(!0),s=U.useRef(null),c=U.useRef(null),u=Ab(t,s),{getPrefixCls:d,avatar:f}=U.useContext(Jy),p=U.useContext(rj),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<n&&r(n-2*o<t?(n-2*o)/t:1)}};U.useEffect((()=>{i(!0)}),[]),U.useEffect((()=>{l(!0),r(1)}),[e.src]),U.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:k,rootClassName:S,alt:C,draggable:E,children:D,crossOrigin:$}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),_=mC((e=>{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"})),I=nj(Object.keys("object"==typeof _&&_||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e)))),N=U.useMemo((()=>{if("object"!=typeof _)return{};const e=JN.find((e=>I[e])),t=_[e];return t?{width:t,height:t,fontSize:t&&(x||D)?t/2:18}:{}}),[I,_]),j=d("avatar",m),P=oS(j),[T,F,R]=aj(j,P),A=pb({[`${j}-lg`]:"large"===_,[`${j}-sm`]:"small"===_}),M=U.isValidElement(y),L=b||(null==p?void 0:p.shape)||"circle",z=pb(j,A,null==f?void 0:f.className,`${j}-${L}`,{[`${j}-image`]:M||y&&a,[`${j}-icon`]:!!x},R,P,k,S,F),B="number"==typeof _?{width:_,height:_,fontSize:x?_/2:18}:{};let H;if("string"==typeof y&&a)H=U.createElement("img",{src:y,draggable:E,srcSet:w,onError:g,alt:C,crossOrigin:$});else if(M)H=y;else if(x)H=x;else if(o||1!==n){const e=`scale(${n})`,t={msTransform:e,WebkitTransform:e,transform:e};H=U.createElement(kv,{onResize:h},U.createElement("span",{className:`${j}-string`,ref:c,style:Object.assign({},t)},D))}else H=U.createElement("span",{className:`${j}-string`,style:{opacity:0},ref:c},D);return delete O.onError,delete O.gap,T(U.createElement("span",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign(Object.assign({},B),N),null==f?void 0:f.style),O.style),className:z,ref:u}),H))},sj=U.forwardRef(lj),cj=e=>e?"function"==typeof e?e():e:null;function uj(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return U.createElement("div",{className:pb("".concat(n,"-content"),i),style:a},U.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var dj={shiftX:64,adjustY:1},fj={adjustX:1,shiftY:!0},pj=[0,0],hj={left:{points:["cr","cl"],overflow:fj,offset:[-4,0],targetOffset:pj},right:{points:["cl","cr"],overflow:fj,offset:[4,0],targetOffset:pj},top:{points:["bc","tc"],overflow:dj,offset:[0,-4],targetOffset:pj},bottom:{points:["tc","bc"],overflow:dj,offset:[0,4],targetOffset:pj},topLeft:{points:["bl","tl"],overflow:dj,offset:[0,-4],targetOffset:pj},leftTop:{points:["tr","tl"],overflow:fj,offset:[-4,0],targetOffset:pj},topRight:{points:["br","tr"],overflow:dj,offset:[0,-4],targetOffset:pj},rightTop:{points:["tl","tr"],overflow:fj,offset:[4,0],targetOffset:pj},bottomRight:{points:["tr","br"],overflow:dj,offset:[0,4],targetOffset:pj},rightBottom:{points:["bl","br"],overflow:fj,offset:[4,0],targetOffset:pj},bottomLeft:{points:["tl","bl"],overflow:dj,offset:[0,4],targetOffset:pj},leftBottom:{points:["br","bl"],overflow:fj,offset:[-4,0],targetOffset:pj}},gj=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],mj=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,k=e.destroyTooltipOnHide,S=void 0!==k&&k,C=e.defaultVisible,E=e.getTooltipContainer,D=e.overlayInnerStyle;e.arrowContent;var $=e.overlay,O=e.id,_=e.showArrow,I=void 0===_||_,N=_d(e,gj),j=U.useRef(null);U.useImperativeHandle(t,(function(){return j.current}));var P=Od({},N);"visible"in e&&(P.popupVisible=e.visible);return U.createElement(sI,hh({popupClassName:n,prefixCls:d,popup:function(){return U.createElement(uj,{key:"content",prefixCls:d,id:O,overlayInnerStyle:D},$)},action:o,builtinPlacements:hj,popupPlacement:y,ref:j,popupAlign:x,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:C,autoDestroy:S,mouseLeaveDelay:s,popupStyle:c,mouseEnterDelay:a,arrow:I},P),f)};const bj=U.forwardRef(mj);function vj(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,f=2*o-a,p=l,h=2*o-0,g=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${g} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`}}const yj=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Bg(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},wj=8;function xj(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?wj:r}}function kj(e,t){return e?t:{}}function Sj(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},yj(e,t,o)),{"&:before":{background:t}})]},kj(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),kj(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),kj(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),kj(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Cj={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"]}},Ej={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"]}},Dj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function $j(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(Cj).forEach((e=>{const c=r&&Ej[e]||Cj[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,Dj.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=xj({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+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.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+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 Oj=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_w(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:`${Bg(e.calc(c).div(2).equal())} ${Bg(u)}`,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:e.min(i,wj)}},[`${t}-content`]:{position:"relative"}}),Vw(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Sj(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},_j=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},xj({contentRadius:e.borderRadius,limitVerticalRadius:!0})),vj(Rw(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ij=function(e){return qw("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=Rw(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Oj(o),oO(e,"zoom-big-fast")]}),_j,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]})(e)},Nj=iw.map((e=>`${e}-inverse`)),jj=["success","processing","error","default","warning"];function Pj(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Jh(Nj),Jh(iw)).includes(e):iw.includes(e)}function Tj(e,t){const n=Pj(t),r=pb({[`${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 Fj=U.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]=mw(),{getPopupContainer:k,getPrefixCls:S,direction:C}=U.useContext(Jy),E=zv(),D=U.useRef(null),$=()=>{var e;null===(e=D.current)||void 0===e||e.forceAlign()};U.useImperativeHandle(t,(()=>({forceAlign:$,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),$()}})));const[O,_]=$w(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),I=!g&&!m&&0!==g,N=U.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||$j({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[v,h,b,x]),j=U.useMemo((()=>0===g?g:m||g||""),[m,g]),P=U.createElement(CC,null,"function"==typeof j?j():j),{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),B=S("tooltip",o),H=S(),W=e["data-popover-inject"];let q=O;"open"in e||"visible"in e||!I||(q=!1);const V=U.isValidElement(u)&&!Rk(u)?u:U.createElement("span",null,u),G=V.props,X=G.className&&"string"!=typeof G.className?G.className:pb(G.className,i||`${B}-open`),[K,Y,Q]=Ij(B,!W),J=Tj(B,s),Z=J.arrowStyle,ee=Object.assign(Object.assign({},c),J.overlayStyle),te=pb(l,{[`${B}-rtl`]:"rtl"===C},J.className,L,Y,Q),[ne,re]=CS("Tooltip",z.zIndex),oe=U.createElement(bj,Object.assign({},z,{zIndex:ne,showArrow:w,placement:F,mouseEnterDelay:R,mouseLeaveDelay:A,prefixCls:B,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},Z),M),getTooltipContainer:T||a||k,ref:D,builtinPlacements:N,overlay:P,visible:q,onVisibleChange:t=>{var n,r;_(!I&&t),I||(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:ee,arrowContent:U.createElement("span",{className:`${B}-arrow-content`}),motion:{motionName:iC(H,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),q?Mk(V,{className:X}):V);return K(U.createElement(yS.Provider,{value:re},oe))})),Rj=Fj;Rj._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=U.useContext(Jy),s=l("tooltip",t),[c,u,d]=Ij(s),f=Tj(s,i),p=f.arrowStyle,h=Object.assign(Object.assign({},a),f.overlayStyle),g=pb(u,d,s,`${s}-pure`,`${s}-placement-${r}`,n,f.className);return c(U.createElement("div",{className:g,style:p},U.createElement("div",{className:`${s}-arrow`}),U.createElement(uj,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:h}),o)))};const Aj=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},_w(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,width:"max-content",maxWidth:"100vw","&-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,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},Sj(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Mj=e=>{const{componentCls:t}=e;return{[t]:iw.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},Lj=qw("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=Rw(e,{popoverBg:t,popoverColor:n});return[Aj(r),Mj(r),oO(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},vj(e)),xj({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${p}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const zj=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e;return U.createElement("div",{className:pb(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},U.createElement("div",{className:`${n}-arrow`}),U.createElement(uj,Object.assign({},e,{className:t,prefixCls:n}),s||((e,t,n)=>t||n?U.createElement(U.Fragment,null,t&&U.createElement("div",{className:`${e}-title`},cj(t)),U.createElement("div",{className:`${e}-inner-content`},cj(n))):null)(n,a,l)))},Bj=e=>{const{prefixCls:t,className: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className"]),{getPrefixCls:o}=U.useContext(Jy),i=o("popover",t),[a,l,s]=Lj(i);return a(U.createElement(zj,Object.assign({},r,{prefixCls:i,hashId:l,className:pb(n,s)})))};const Hj=e=>{let{title:t,content:n,prefixCls:r}=e;return U.createElement(U.Fragment,null,t&&U.createElement("div",{className:`${r}-title`},cj(t)),U.createElement("div",{className:`${r}-inner-content`},cj(n)))},Wj=U.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:l,placement:s="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:p,overlayStyle: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:m}=U.useContext(Jy),b=m("popover",o),[v,y,w]=Lj(b),x=m(),k=pb(l,y,w),[S,C]=$w(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),E=(e,t)=>{C(e,!0),null==p||p(e,t)};return v(U.createElement(Rj,Object.assign({placement:s,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:f,overlayStyle:h},g,{prefixCls:b,overlayClassName:k,ref:t,open:S,onOpenChange:e=>{E(e)},overlay:i||a?U.createElement(Hj,{prefixCls:b,title:i,content:a}):null,transitionName:iC(x,"zoom-big",g.transitionName),"data-popover-inject":!0}),Mk(u,{onKeyDown:e=>{var t,n;U.isValidElement(u)&&(null===(n=null==u?void 0:(t=u.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===iS.ESC&&E(!1,e)})(e)}})))})),Uj=Wj;Uj._InternalPanelDoNotUseOrYouWillBeFired=Bj;const qj=e=>{const{size:t,shape:n}=U.useContext(rj),r=U.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return U.createElement(rj.Provider,{value:r},e.children)},Vj=sj;Vj.Group=e=>{const{getPrefixCls:t,direction:n}=U.useContext(Jy),{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=oS(h),[b,v,y]=aj(h,m),w=pb(g,{[`${g}-rtl`]:"rtl"===n},y,m,o,i,v),x=Pb(p).map(((e,t)=>Mk(e,{key:`avatar-key-${t}`}))),k=x.length;if(l&&l<k){const e=x.slice(0,l),t=x.slice(l,k);return e.push(U.createElement(Uj,{key:"avatar-popover-key",content:t,trigger:f,placement:d,overlayClassName:`${g}-popover`,destroyTooltipOnHide:!0},U.createElement(sj,{style:s},"+"+(k-l)))),b(U.createElement(qj,{shape:u,size:c},U.createElement("div",{className:w,style:a},e)))}return b(U.createElement(qj,{shape:u,size:c},U.createElement("div",{className:w,style:a},x)))};var Gj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Xj=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:Gj}))},Kj=U.forwardRef(Xj),Yj=iS.ESC,Qj=iS.TAB;var Jj=U.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=U.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=Ab(t,null==i?void 0:i.ref);return q.createElement(q.Fragment,null,r&&q.createElement("div",{className:"".concat(o,"-arrow")}),q.cloneElement(i,{ref:Lb(i)?a:void 0}))})),Zj={adjustX:1,adjustY:1},eP=[0,0],tP={topLeft:{points:["bl","tl"],overflow:Zj,offset:[0,-4],targetOffset:eP},top:{points:["bc","tc"],overflow:Zj,offset:[0,-4],targetOffset:eP},topRight:{points:["br","tr"],overflow:Zj,offset:[0,-4],targetOffset:eP},bottomLeft:{points:["tl","bl"],overflow:Zj,offset:[0,4],targetOffset:eP},bottom:{points:["tc","bc"],overflow:Zj,offset:[0,4],targetOffset:eP},bottomRight:{points:["tr","br"],overflow:Zj,offset:[0,4],targetOffset:eP}},nP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function rP(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,p=void 0===f?tP:f,h=e.getPopupContainer,g=e.showAction,m=e.hideAction,b=e.overlayClassName,v=e.overlayStyle,y=e.visible,w=e.trigger,x=void 0===w?["hover"]:w,k=e.autoFocus,S=e.overlay,C=e.children,E=e.onVisibleChange,D=_d(e,nP),$=Yh(q.useState(),2),O=$[0],_=$[1],I="visible"in e?y:O,N=q.useRef(null),j=q.useRef(null),P=q.useRef(null);q.useImperativeHandle(t,(function(){return N.current}));var T=function(e){_(e),null==E||E(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=U.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},s=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case Yj:l();break;case Qj:var t=!1;a.current||(t=s()),t?e.preventDefault():l()}};U.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&_v(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:I,triggerRef:P,onVisibleChange:T,autoFocus:k,overlayRef:j});var F,R,A,M=function(){return q.createElement(Jj,{ref:j,overlay:S,prefixCls:a,arrow:o})},L=q.cloneElement(C,{className:pb(null===(n=C.props)||void 0===n?void 0:n.className,I&&(F=e.openClassName,void 0!==F?F:"".concat(a,"-open"))),ref:Lb(C)?Ab(P,C.ref):void 0}),z=m;return z||-1===x.indexOf("contextMenu")||(z=["click"]),q.createElement(sI,hh({builtinPlacements:p},D,{prefixCls:a,ref:N,popupClassName:pb(b,Dd({},"".concat(a,"-show-arrow"),o)),popupStyle:v,action:x,showAction:g,hideAction:z,popupPlacement:d,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:I,stretch:(R=e.minOverlayWidthMatchTrigger,A=e.alignPoint,("minOverlayWidthMatchTrigger"in e?R:!A)?"minWidth":""),popup:"function"==typeof S?M:M(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;_(!1),n&&n(t)},getPopupContainer:h}),L)}const oP=q.forwardRef(rP);var iP=U.createContext(null);function aP(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function lP(e){return aP(U.useContext(iP),e)}var sP=["children","locked"],cP=U.createContext(null);function uP(e){var t=e.children,n=e.locked,r=_d(e,sP),o=U.useContext(cP),i=pg((function(){return e=r,t=Od({},o),Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)})),t;var e,t}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&yg(e[1],t[1],!0))}));return U.createElement(cP.Provider,{value:i},t)}var dP=[],fP=U.createContext(null);function pP(){return U.useContext(fP)}var hP=U.createContext(dP);function gP(e){var t=U.useContext(hP);return U.useMemo((function(){return void 0!==e?[].concat(Jh(t),[e]):t}),[t,e])}var mP=U.createContext(null),bP=U.createContext({});function vP(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(aC(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 yP=iS.LEFT,wP=iS.RIGHT,xP=iS.UP,kP=iS.DOWN,SP=iS.ENTER,CP=iS.ESC,EP=iS.HOME,DP=iS.END,$P=[xP,kP,yP,wP];function OP(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Jh(e.querySelectorAll("*")).filter((function(e){return vP(e,t)}));return vP(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function _P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=OP(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]}var IP=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(aP(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function NP(e,t,n,r,o,i,a,l,s,c){var u=U.useRef(),d=U.useRef();d.current=t;var f=function(){_v.cancel(u.current)};return U.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat($P,[SP,CP,EP,DP]).includes(h)){var g=i(),m=IP(g,r),b=m,v=b.elements,y=b.key2element,w=b.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),v),k=w.get(x),S=function(e,t,n,r){var o,i="prev",a="next",l="children",s="parent";if("inline"===e&&r===SP)return{inlineTrigger:!0};var c=Dd(Dd({},xP,i),kP,a),u=Dd(Dd(Dd(Dd({},yP,n?a:i),wP,n?i:a),kP,l),SP,l),d=Dd(Dd(Dd(Dd(Dd(Dd({},xP,i),kP,a),SP,l),CP,s),yP,n?l:s),wP,n?s:l);switch(null===(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===a(k,!0).length,n,h);if(!S&&h!==EP&&h!==DP)return;($P.includes(h)||[EP,DP].includes(h))&&p.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);l(r),f(),u.current=_v((function(){d.current===r&&t.focus()}))}};if([EP,DP].includes(h)||S.sibling||!x){var E,D,$=OP(E=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):o.current,v);D=h===EP?$[0]:h===DP?$[$.length-1]:_P(E,v,x,S.offset),C(D)}else if(S.inlineTrigger)s(k);else if(S.offset>0)s(k,!0),f(),u.current=_v((function(){m=IP(g,r);var e=x.getAttribute("aria-controls"),t=_P(document.getElementById(e),m.elements);C(t)}),5);else if(S.offset<0){var O=a(k,!0),_=O[O.length-2],I=y.get(_);s(_,!1),C(I)}}null==c||c(p)}}var jP="__RC_UTIL_PATH_SPLIT__",PP=function(e){return e.join(jP)},TP="rc-menu-more";function FP(){var e=Yh(U.useState({}),2)[1],t=U.useRef(new Map),n=U.useRef(new Map),r=Yh(U.useState([]),2),o=r[0],i=r[1],a=U.useRef(0),l=U.useRef(!1),s=U.useCallback((function(r,o){var i=PP(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=U.useCallback((function(e,r){var o=PP(r);n.current.delete(o),t.current.delete(e)}),[]),u=U.useCallback((function(e){i(e)}),[]),d=U.useCallback((function(e,n){var r=t.current.get(e)||"",i=r.split(jP);return n&&o.includes(i[0])&&i.unshift(TP),i}),[o]),f=U.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=U.useCallback((function(e){var r="".concat(t.current.get(e)).concat(jP),o=new Set;return Jh(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return U.useEffect((function(){return function(){l.current=!0}}),[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=Jh(t.current.keys());return o.length&&e.push(TP),e},getSubPathKeys:p}}function RP(e){var t=U.useRef(e);t.current=e;var n=U.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var AP=Math.random().toFixed(5).toString().slice(2),MP=0;function LP(e,t,n,r){var o=U.useContext(cP),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},s.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),l(e)}),s}function zP(e){var t=U.useContext(cP),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function BP(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=U.createElement(n,Od({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var HP=["item"];function WP(e){var t=e.item,n=_d(e,HP);return Object.defineProperty(n,"item",{get:function(){return vg(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var UP=["title","attribute","elementRef"],qP=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],VP=["active"],GP=function(e){fv(n,U.Component);var t=bv(n);function n(){return nh(this,n),t.apply(this,arguments)}return oh(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Sv(_d(e,UP),["eventKey","popupClassName","popupOffset","onTitleClick"]);return vg(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),U.createElement(__.Item,hh({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(),XP=U.forwardRef((function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var i=e.disabled,a=e.itemIcon,l=e.children,s=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,p=e.onFocus,h=_d(e,qP),g=lP(o),m=U.useContext(cP),b=m.prefixCls,v=m.onItemClick,y=m.disabled,w=m.overflowDisabled,x=m.itemIcon,k=m.selectedKeys,S=m.onActive,C=U.useContext(bP)._internalRenderMenuItem,E="".concat(b,"-item"),D=U.useRef(),$=U.useRef(),O=y||i,_=Mb(t,$),I=gP(o),N=function(e){return{key:o,keyPath:Jh(I).reverse(),item:D.current,domEvent:e}},j=a||x,P=LP(o,O,c,u),T=P.active,F=_d(P,VP),R=k.includes(o),A=zP(I.length),M={};"option"===e.role&&(M["aria-selected"]=R);var L=U.createElement(GP,hh({ref:D,elementRef:_,role:null===s?"none":s||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&g?null:g},h,F,M,{component:"li","aria-disabled":i,style:Od(Od({},A),n),className:pb(E,Dd(Dd(Dd({},"".concat(E,"-active"),T),"".concat(E,"-selected"),R),"".concat(E,"-disabled"),O),r),onClick:function(e){if(!O){var t=N(e);null==d||d(WP(t)),v(t)}},onKeyDown:function(e){if(null==f||f(e),e.which===iS.ENTER){var t=N(e);null==d||d(WP(t)),v(t)}},onFocus:function(e){S(o),null==p||p(e)}}),l,U.createElement(BP,{props:Od(Od({},e),{},{isSelected:R}),icon:j}));return C&&(L=C(L,e,{selected:R})),L}));function KP(e,t){var n=e.eventKey,r=pP(),o=gP(n);return U.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:U.createElement(XP,hh({},e,{ref:t}))}const YP=U.forwardRef(KP);var QP=["className","children"],JP=function(e,t){var n=e.className,r=e.children,o=_d(e,QP),i=U.useContext(cP),a=i.prefixCls,l=i.mode,s=i.rtl;return U.createElement("ul",hh({className:pb(a,s&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},ZP=U.forwardRef(JP);function eT(e,t){return Pb(e).map((function(e,n){if(U.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;null==a&&(a="tmp_key-".concat([].concat(Jh(t),[n]).join("-")));var l={key:a,eventKey:a};return U.cloneElement(e,l)}return e}))}ZP.displayName="SubMenuList";var tT={adjustX:1,adjustY:1},nT={topLeft:{points:["bl","tl"],overflow:tT},topRight:{points:["br","tr"],overflow:tT},bottomLeft:{points:["tl","bl"],overflow:tT},bottomRight:{points:["tr","br"],overflow:tT},leftTop:{points:["tr","tl"],overflow:tT},leftBottom:{points:["br","bl"],overflow:tT},rightTop:{points:["tl","tr"],overflow:tT},rightBottom:{points:["bl","br"],overflow:tT}},rT={topLeft:{points:["bl","tl"],overflow:tT},topRight:{points:["br","tr"],overflow:tT},bottomLeft:{points:["tl","bl"],overflow:tT},bottomRight:{points:["tr","br"],overflow:tT},rightTop:{points:["tr","tl"],overflow:tT},rightBottom:{points:["br","bl"],overflow:tT},leftTop:{points:["tl","tr"],overflow:tT},leftBottom:{points:["bl","br"],overflow:tT}};function oT(e,t,n){return t||(n?n[e]||n.other:void 0)}var iT={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aT(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,u=e.onVisibleChange,d=U.useContext(cP),f=d.getPopupContainer,p=d.rtl,h=d.subMenuOpenDelay,g=d.subMenuCloseDelay,m=d.builtinPlacements,b=d.triggerSubMenuAction,v=d.forceSubMenuRender,y=d.rootClassName,w=d.motion,x=d.defaultMotions,k=Yh(U.useState(!1),2),S=k[0],C=k[1],E=Od(Od({},p?rT:nT),m),D=iT[c],$=oT(c,w,x),O=U.useRef($);"inline"!==c&&(O.current=$);var _=Od(Od({},O.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),I=U.useRef();return U.useEffect((function(){return I.current=_v((function(){C(n)})),function(){_v.cancel(I.current)}}),[n]),U.createElement(sI,{prefixCls:t,popupClassName:pb("".concat(t,"-popup"),Dd({},"".concat(t,"-rtl"),p),a,y),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:f,builtinPlacements:E,popupPlacement:D,popupVisible:S,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[b],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:v,popupMotion:_,fresh:!0},r)}function lT(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=U.useContext(cP),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=U.useRef(!1);f.current=d===i;var p=Yh(U.useState(!f.current),2),h=p[0],g=p[1],m=!!f.current&&n;U.useEffect((function(){f.current&&g(!1)}),[d]);var b=Od({},oT(i,c,u));r.length>1&&(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:U.createElement(uP,{mode:i,locked:!f.current},U.createElement(Px,hh({visible:m},b,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),(function(e){var n=e.className,r=e.style;return U.createElement(ZP,{id:t,className:n,style:r},o)})))}var sT=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],cT=["active"],uT=function(e){var t=e.style,n=e.className,r=e.title,o=e.eventKey;e.warnKey;var i=e.disabled,a=e.internalPopupClose,l=e.children,s=e.itemIcon,c=e.expandIcon,u=e.popupClassName,d=e.popupOffset,f=e.popupStyle,p=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,m=e.onTitleClick,b=e.onTitleMouseEnter,v=e.onTitleMouseLeave,y=_d(e,sT),w=lP(o),x=U.useContext(cP),k=x.prefixCls,S=x.mode,C=x.openKeys,E=x.disabled,D=x.overflowDisabled,$=x.activeKey,O=x.selectedKeys,_=x.itemIcon,I=x.expandIcon,N=x.onItemClick,j=x.onOpenChange,P=x.onActive,T=U.useContext(bP)._internalRenderSubMenuItem,F=U.useContext(mP).isSubPathKey,R=gP(),A="".concat(k,"-submenu"),M=E||i,L=U.useRef(),z=U.useRef(),B=null!=s?s:_,H=null!=c?c:I,W=C.includes(o),q=!D&&W,V=F(O,o),G=LP(o,M,b,v),X=G.active,K=_d(G,cT),Y=Yh(U.useState(!1),2),Q=Y[0],J=Y[1],Z=function(e){M||J(e)},ee=U.useMemo((function(){return X||"inline"!==S&&(Q||F([$],o))}),[S,X,$,Q,o,F]),te=zP(R.length),ne=RP((function(e){null==p||p(WP(e)),N(e)})),re=w&&"".concat(w,"-popup"),oe=U.createElement("div",hh({role:"menuitem",style:te,className:"".concat(A,"-title"),tabIndex:M?null:-1,ref:L,title:"string"==typeof r?r:null,"data-menu-id":D&&w?null:w,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":re,"aria-disabled":M,onClick:function(e){M||(null==m||m({key:o,domEvent:e}),"inline"===S&&j(o,!W))},onFocus:function(){P(o)}},K),r,U.createElement(BP,{icon:"horizontal"!==S?H:void 0,props:Od(Od({},e),{},{isOpen:q,isSubMenu:!0})},U.createElement("i",{className:"".concat(A,"-arrow")}))),ie=U.useRef(S);if("inline"!==S&&R.length>1?ie.current="vertical":ie.current=S,!D){var ae=ie.current;oe=U.createElement(aT,{mode:ae,prefixCls:A,visible:!a&&q&&"inline"!==S,popupClassName:u,popupOffset:d,popupStyle:f,popup:U.createElement(uP,{mode:"horizontal"===ae?"vertical":ae},U.createElement(ZP,{id:re,ref:z},l)),disabled:M,onVisibleChange:function(e){"inline"!==S&&j(o,e)}},oe)}var le=U.createElement(__.Item,hh({role:"none"},y,{component:"li",style:t,className:pb(A,"".concat(A,"-").concat(S),n,Dd(Dd(Dd(Dd({},"".concat(A,"-open"),q),"".concat(A,"-active"),ee),"".concat(A,"-selected"),V),"".concat(A,"-disabled"),M)),onMouseEnter:function(e){Z(!0),null==h||h({key:o,domEvent:e})},onMouseLeave:function(e){Z(!1),null==g||g({key:o,domEvent:e})}}),oe,!D&&U.createElement(lT,{id:re,open:q,keyPath:R},l));return T&&(le=T(le,e,{selected:V,active:ee,open:q,disabled:M})),U.createElement(uP,{onItemClick:ne,mode:"horizontal"===S?"vertical":S,itemIcon:B,expandIcon:H},le)};function dT(e){var t,n=e.eventKey,r=e.children,o=gP(n),i=eT(r,o),a=pP();return U.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:U.createElement(uT,e,i),U.createElement(hP.Provider,{value:o},t)}var fT=["className","title","eventKey","children"],pT=["children"],hT=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=_d(e,fT),i=U.useContext(cP).prefixCls,a="".concat(i,"-item-group");return U.createElement("li",hh({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:pb(a,t)}),U.createElement("div",{role:"presentation",className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),U.createElement("ul",{role:"group",className:"".concat(a,"-list")},r))};function gT(e){var t=e.children,n=_d(e,pT),r=eT(t,gP(n.eventKey));return pP()?r:U.createElement(hT,Sv(n,["warnKey"]),r)}function mT(e){var t=e.className,n=e.style,r=U.useContext(cP).prefixCls;return pP()?null:U.createElement("li",{role:"separator",className:pb("".concat(r,"-item-divider"),t),style:n})}var bT=["label","children","key","type"];function vT(e){return(e||[]).map((function(e,t){if(e&&"object"===Cd(e)){var n=e,r=n.label,o=n.children,i=n.key,a=n.type,l=_d(n,bT),s=null!=i?i:"tmp-".concat(t);return o||"group"===a?"group"===a?U.createElement(gT,hh({key:s},l,{title:r}),vT(o)):U.createElement(dT,hh({key:s},l,{title:r}),vT(o)):"divider"===a?U.createElement(mT,hh({key:s},l)):U.createElement(YP,hh({key:s},l),r)}return null})).filter((function(e){return e}))}function yT(e,t,n){var r=e;return t&&(r=vT(t)),eT(r,n)}var wT=["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"],xT=[],kT=U.forwardRef((function(e,t){var n,r=e,o=r.prefixCls,i=void 0===o?"rc-menu":o,a=r.rootClassName,l=r.style,s=r.className,c=r.tabIndex,u=void 0===c?0:c,d=r.items,f=r.children,p=r.direction,h=r.id,g=r.mode,m=void 0===g?"vertical":g,b=r.inlineCollapsed,v=r.disabled,y=r.disabledOverflow,w=r.subMenuOpenDelay,x=void 0===w?.1:w,k=r.subMenuCloseDelay,S=void 0===k?.1:k,C=r.forceSubMenuRender,E=r.defaultOpenKeys,D=r.openKeys,$=r.activeKey,O=r.defaultActiveFirst,_=r.selectable,I=void 0===_||_,N=r.multiple,j=void 0!==N&&N,P=r.defaultSelectedKeys,T=r.selectedKeys,F=r.onSelect,R=r.onDeselect,A=r.inlineIndent,M=void 0===A?24:A,L=r.motion,z=r.defaultMotions,B=r.triggerSubMenuAction,H=void 0===B?"hover":B,W=r.builtinPlacements,q=r.itemIcon,V=r.expandIcon,G=r.overflowedIndicator,X=void 0===G?"...":G,K=r.overflowedIndicatorPopupClassName,Y=r.getPopupContainer,Q=r.onClick,J=r.onOpenChange,Z=r.onKeyDown;r.openAnimation,r.openTransitionName;var ee=r._internalRenderMenuItem,te=r._internalRenderSubMenuItem,ne=_d(r,wT),re=U.useMemo((function(){return yT(f,d,xT)}),[f,d]),oe=Yh(U.useState(!1),2),ie=oe[0],ae=oe[1],le=U.useRef(),se=function(e){var t=Yh($w(e,{value:e}),2),n=t[0],r=t[1];return U.useEffect((function(){MP+=1;var e="".concat(AP,"-").concat(MP);r("rc-menu-uuid-".concat(e))}),[]),n}(h),ce="rtl"===p,ue=Yh($w(E,{value:D,postState:function(e){return e||xT}}),2),de=ue[0],fe=ue[1],pe=function(e){function t(){fe(e),null==J||J(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?yd.flushSync(t):t()},he=Yh(U.useState(de),2),ge=he[0],me=he[1],be=U.useRef(!1),ve=Yh(U.useMemo((function(){return"inline"!==m&&"vertical"!==m||!b?[m,!1]:["vertical",b]}),[m,b]),2),ye=ve[0],we=ve[1],xe="inline"===ye,ke=Yh(U.useState(ye),2),Se=ke[0],Ce=ke[1],Ee=Yh(U.useState(we),2),De=Ee[0],$e=Ee[1];U.useEffect((function(){Ce(ye),$e(we),be.current&&(xe?fe(ge):pe(xT))}),[ye,we]);var Oe=Yh(U.useState(0),2),_e=Oe[0],Ie=Oe[1],Ne=_e>=re.length-1||"horizontal"!==Se||y;U.useEffect((function(){xe&&me(de)}),[de]),U.useEffect((function(){return be.current=!0,function(){be.current=!1}}),[]);var je=FP(),Pe=je.registerPath,Te=je.unregisterPath,Fe=je.refreshOverflowKeys,Re=je.isSubPathKey,Ae=je.getKeyPath,Me=je.getKeys,Le=je.getSubPathKeys,ze=U.useMemo((function(){return{registerPath:Pe,unregisterPath:Te}}),[Pe,Te]),Be=U.useMemo((function(){return{isSubPathKey:Re}}),[Re]);U.useEffect((function(){Fe(Ne?xT:re.slice(_e+1).map((function(e){return e.key})))}),[_e,Ne]);var He=Yh($w($||O&&(null===(n=re[0])||void 0===n?void 0:n.key),{value:$}),2),We=He[0],Ue=He[1],qe=RP((function(e){Ue(e)})),Ve=RP((function(){Ue(void 0)}));U.useImperativeHandle(t,(function(){return{list:le.current,focus:function(e){var t,n,r=Me(),o=IP(r,se),i=o.elements,a=o.key2element,l=o.element2key,s=OP(le.current,i),c=null!=We?We:s[0]?l.get(s[0]):null===(t=re.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Ge=Yh($w(P||[],{value:T,postState:function(e){return Array.isArray(e)?e:null==e?xT:[e]}}),2),Xe=Ge[0],Ke=Ge[1],Ye=RP((function(e){null==Q||Q(WP(e)),function(e){if(I){var t,n=e.key,r=Xe.includes(n);t=j?r?Xe.filter((function(e){return e!==n})):[].concat(Jh(Xe),[n]):[n],Ke(t);var o=Od(Od({},e),{},{selectedKeys:t});r?null==R||R(o):null==F||F(o)}!j&&de.length&&"inline"!==Se&&pe(xT)}(e)})),Qe=RP((function(e,t){var n=de.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Se){var r=Le(e);n=n.filter((function(e){return!r.has(e)}))}yg(de,n,!0)||pe(n,!0)})),Je=NP(Se,We,ce,se,le,Me,Ae,Ue,(function(e,t){var n=null!=t?t:!de.includes(e);Qe(e,n)}),Z);U.useEffect((function(){ae(!0)}),[]);var Ze=U.useMemo((function(){return{_internalRenderMenuItem:ee,_internalRenderSubMenuItem:te}}),[ee,te]),et="horizontal"!==Se||y?re:re.map((function(e,t){return U.createElement(uP,{key:e.key,overflowDisabled:t>_e},e)})),tt=U.createElement(__,hh({id:h,ref:le,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:YP,className:pb(i,"".concat(i,"-root"),"".concat(i,"-").concat(Se),s,Dd(Dd({},"".concat(i,"-inline-collapsed"),De),"".concat(i,"-rtl"),ce),a),dir:p,style:l,role:"menu",tabIndex:u,data:et,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?re.slice(-t):null;return U.createElement(dT,{eventKey:TP,title:X,disabled:Ne,internalPopupClose:0===t,popupClassName:K},n)},maxCount:"horizontal"!==Se||y?__.INVALIDATE:__.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ie(e)},onKeyDown:Je},ne));return U.createElement(bP.Provider,{value:Ze},U.createElement(iP.Provider,{value:se},U.createElement(uP,{prefixCls:i,rootClassName:a,mode:Se,openKeys:de,rtl:ce,disabled:v,motion:ie?L:null,defaultMotions:ie?z:null,activeKey:We,onActive:qe,onInactive:Ve,selectedKeys:Xe,inlineIndent:M,subMenuOpenDelay:x,subMenuCloseDelay:S,forceSubMenuRender:C,builtinPlacements:W,triggerSubMenuAction:H,getPopupContainer:Y,itemIcon:q,expandIcon:V,onItemClick:Ye,onOpenChange:Qe},U.createElement(mP.Provider,{value:Be},tt),U.createElement("div",{style:{display:"none"},"aria-hidden":!0},U.createElement(fP.Provider,{value:ze},re)))))}));kT.Item=YP,kT.SubMenu=dT,kT.ItemGroup=gT,kT.Divider=mT;const ST=U.createContext({});var CT={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"},ET=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:CT}))},DT=U.forwardRef(ET);const $T=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=U.useContext(Jy),a=i("menu",t),l=pb({[`${a}-item-divider-dashed`]:!!r},n);return U.createElement(mT,Object.assign({className:l},o))},OT=U.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),_T=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=U.useContext(OT),{siderCollapsed:f}=U.useContext(ST);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=Pb(r).length;let m=U.createElement(YP,Object.assign({},Sv(e,["title","icon","danger"]),{className:pb({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof i?i:void 0}),Mk(o,{className:pb(U.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),(e=>{const t=U.createElement("span",{className:`${l}-title-content`},r);return(!o||U.isValidElement(r)&&"span"===r.type)&&r&&e&&s&&"string"==typeof r?U.createElement("div",{className:`${l}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(m=U.createElement(Rj,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),m)),m},IT=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=U.useContext(OT),{prefixCls:l,inlineCollapsed:s,theme:c}=a,u=gP();let d;if(r){const e=U.isValidElement(o)&&"span"===o.type;d=U.createElement(U.Fragment,null,Mk(r,{className:pb(U.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${l}-item-icon`)}),e?o:U.createElement("span",{className:`${l}-title-content`},o))}else d=s&&!u.length&&o&&"string"==typeof o?U.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):U.createElement("span",{className:`${l}-title-content`},o);const f=U.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]),[p]=CS("Menu");return U.createElement(OT.Provider,{value:f},U.createElement(dT,Object.assign({},Sv(e,["icon"]),{title:d,popupClassName:pb(l,n,`${l}-${i||c}`),popupStyle:{zIndex:p}})))};var NT=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function jT(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,l=NT(n,["label","children","key","type"]),s=null!=i?i:`tmp-${t}`;return o||"group"===a?"group"===a?U.createElement(gT,Object.assign({key:s},l,{title:r}),jT(o)):U.createElement(IT,Object.assign({key:s},l,{title:r}),jT(o)):"divider"===a?U.createElement($T,Object.assign({key:s},l)):U.createElement(_T,Object.assign({key:s},l),r)}return null})).filter((e=>e))}function PT(e){return U.useMemo((()=>e?jT(e):e),[e])}const TT=U.createContext(null),FT=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:`${Bg(i)} ${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"}}}},RT=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=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(${Bg(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Bg(n)})`}}}}},AT=e=>Object.assign({},jw(e)),MT=(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:k,dangerItemSelectedColor:S,dangerItemActiveBg:C,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:$,itemActiveBg:O,menuSubMenuBg:_,horizontalItemSelectedColor:I,horizontalItemSelectedBg:N,horizontalItemBorderRadius:j,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},AT(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},AT(e))},[`${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:$},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${Bg(c)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Bg(d)} ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Bg(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(",")}}}}}},LT=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s}=e,c=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Bg(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Bg(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:c}}},zT=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:Bg(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},LT(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},LT(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Bg(e.calc(a).mul(2.5).equal())})`,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}`,`padding-inline calc(50% - ${Bg(e.calc(d).div(2).equal())} - ${Bg(u)})`].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% - ${Bg(e.calc(d).div(2).equal())} - ${Bg(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Bg(r),"+ 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({},Ow),{paddingInline:p})}}]},BT=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"}}}},HT=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:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Bg(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Bg(a)})`}}}}},WT=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,groupTitleLineHeight:b,groupTitleFontSize:v}=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({},_w(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:`${Bg(l)} ${Bg(s)}`,fontSize:v,lineHeight:b,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"}}}),BT(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Bg(e.calc(r).mul(2).equal())} ${Bg(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},BT(e)),HT(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\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}}}),HT(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bg(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Bg(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Bg(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Bg(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Bg(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},UT=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:w,padding:x,fontSize:k,controlHeightSM:S,fontSizeLG:C,colorTextLightSolid:E,colorErrorHover:D}=e,$=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,O=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,_=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,I=new by(E).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:O,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:_,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:w,itemPaddingInline:x,horizontalLineHeight:1.15*b+"px",iconSize:k,iconMarginInlineEnd:S-k,collapsedIconSize:C,groupTitleFontSize:k,darkItemDisabledColor:new by(E).setAlpha(.25).toRgbString(),darkItemColor:I,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:I,darkItemHoverColor:E,darkDangerItemHoverColor:D,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:$?`calc(100% + ${O}px)`:`calc(100% - ${2*_}px)`}};function qT(e){return null===e||!1===e}const VT=U.forwardRef(((e,t)=>{var n;const r=U.useContext(TT),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:s}=U.useContext(Jy),c=i(),{prefixCls:u,className:d,style:f,theme:p="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:m,siderCollapsed:b,items:v,children:y,rootClassName:w,mode:x,selectable:k,onClick:S,overflowedIndicatorPopupClassName:C}=e,E=Sv(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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),D=PT(v)||y;null===(n=o.validator)||void 0===n||n.call(o,{mode:x});const $=Cw((function(){var e;null==S||S.apply(void 0,arguments),null===(e=o.onClick)||void 0===e||e.call(o)})),O=o.mode||x,_=null!=k?k:o.selectable,I=U.useMemo((()=>void 0!==b?b:m),[m,b]),N={horizontal:{motionName:`${c}-slide-up`},inline:oC(c),other:{motionName:`${c}-zoom-big`}},j=i("menu",u||o.prefixCls),P=oS(j),[T,F,R]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return qw("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:h,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:b,popupBg:v,darkPopupBg:y}=e,w=e.calc(r).div(7).mul(5).equal(),x=Rw(e,{menuArrowSize:w,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(w).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),k=Rw(x,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:b,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[WT(x),FT(x),zT(x),MT(x,"light"),MT(k,"dark"),RT(x),w$(x),U$(x,"slide-up"),U$(x,"slide-down"),oO(x,"zoom-big")]}),UT,{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"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}})(e,t)}(j,P,!r),A=pb(`${j}-${p}`,null==s?void 0:s.className,d),M=U.useMemo((()=>{var e,t;if("function"==typeof h||qT(h))return h||null;if("function"==typeof o.expandIcon||qT(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||qT(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const n=null!==(e=null!=h?h:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==s?void 0:s.expandIcon;return Mk(n,{className:pb(`${j}-submenu-expand-icon`,U.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[h,null==o?void 0:o.expandIcon,null==s?void 0:s.expandIcon,j]),L=U.useMemo((()=>({prefixCls:j,inlineCollapsed:I||!1,direction:l,firstLevel:!0,theme:p,mode:O,disableMenuItemTitleTooltip:g})),[j,I,l,g,p]);return T(U.createElement(TT.Provider,{value:null},U.createElement(OT.Provider,{value:L},U.createElement(kT,Object.assign({getPopupContainer:a,overflowedIndicator:U.createElement(DT,null),overflowedIndicatorPopupClassName:pb(j,`${j}-${p}`,C),mode:O,selectable:_,onClick:$},E,{inlineCollapsed:I,style:Object.assign(Object.assign({},null==s?void 0:s.style),f),className:A,prefixCls:j,direction:l,defaultMotions:N,expandIcon:M,ref:t,rootClassName:pb(w,F,o.rootClassName,R,P)}),D))))})),GT=U.forwardRef(((e,t)=>{const n=U.useRef(null),r=U.useContext(ST);return U.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),U.createElement(VT,Object.assign({ref:n},e,r))}));GT.Item=_T,GT.SubMenu=IT,GT.Divider=$T,GT.ItemGroup=gT;var XT={exports:{}};XT.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()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:s,d:l,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=m;var x="$isDayjsObject",k=function(e){return e instanceof D||!(!e||!e[x])},S=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>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(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},E=v;E.l=S,E.i=k,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function m(e){this.$L=S(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)<this.startOf(t)},b.isBefore=function(e,t){return this.endOf(t)<C(e)},b.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,m):p(0,m+1);case s:var y=this.$locale().weekStart||0,w=(g<y?g+7:g)-y;return p(r?b-w:b+(6-w),m);case l:case f:return h(v+"Hours",0);case a:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case o:return h(v+"Milliseconds",3);default:return this.clone()}},b.endOf=function(e){return this.startOf(e,!1)},b.$set=function(e,t){var n,s=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[s],h=s===l?this.$D+(t-this.$W):t;if(s===c||s===d){var g=this.clone().set(f,1);g.$d[p](h),g.init(),this.$d=g.set(f,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},b.set=function(e,t){return this.clone().$set(e,t)},b.get=function(e){return this[E.p(e)]()},b.add=function(r,u){var f,p=this;r=Number(r);var h=E.p(u),g=function(e){var t=C(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return g(1);if(h===s)return g(7);var m=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,b=this.$d.getTime()+r*m;return E.w(b,this)},b.subtract=function(e,t){return this.add(-1*e,t)},b.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,l=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return E.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return l+1;case"MM":return E.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,c,3);case"MMMM":return d(c,l);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(r,f,p){var h,g=this,m=E.p(f),b=C(r),v=(b.utcOffset()-this.utcOffset())*t,y=this-b,w=function(){return E.m(g,b)};switch(m){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case s:h=(y-v)/6048e5;break;case l:h=(y-v)/864e5;break;case a:h=y/n;break;case i:h=y/t;break;case o:h=y/e;break;default:h=y}return p?h:E.a(h)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return w[this.$L]},b.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},b.clone=function(){return E.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},m}(),$=D.prototype;return C.prototype=$,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",c],["$y",d],["$D",f]].forEach((function(e){$[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,D,C),e.$i=!0),C},C.locale=S,C.isDayjs=k,C.unix=function(e){return C(1e3*e)},C.en=w[y],C.Ls=w,C.p={},C}();const KT=o(XT.exports);function YT(e){return Rw(e,{inputAffixPadding:e.paddingXXS})}const QT=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,colorBgContainer:y}=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:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},JT=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ZT=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},JT(Rw(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),eF=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),tF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},eF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),nF=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eF(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ZT(e))}),tF(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),tF(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),rF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),oF=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},rF(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),rF(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ZT(e))}})}),iF=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),aF=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),lF=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},aF(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),sF=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aF(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ZT(e))}),lF(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),lF(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),cF=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),uF=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},cF(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),cF(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),dF=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),fF=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Bg(t)} ${Bg(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},pF=e=>({padding:`${Bg(e.paddingBlockSM)} ${Bg(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hF=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Bg(e.paddingBlock)} ${Bg(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},dF(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},fF(e)),"&-sm":Object.assign({},pF(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),gF=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({},fF(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},pF(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 ${Bg(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Bg(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Bg(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Bg(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Bg(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-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.calc(e.lineWidth).mul(-1).equal(),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.calc(e.lineWidth).mul(-1).equal(),[`${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}}}})}},mF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_w(e)),hF(e)),nF(e)),sF(e)),iF(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},bF=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 ${Bg(e.inputAffixPadding)}`}}}},vF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},hF(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),bF(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},yF=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},_w(e)),gF(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},oF(e)),uF(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},wF=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.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,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.calc(e.lineWidth).mul(-1).equal(),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}}}}},xF=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.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),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",background:"transparent","&: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"}}}}}},kF=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},SF=qw("Input",(e=>{const t=Rw(e,YT(e));return[mF(t),xF(t),vF(t),yF(t),wF(t),kF(t),dE(t)]}),QT,{resetFont:!1}),CF=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=pb({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=pb({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=U.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return U.createElement("span",{className:pb(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},EF=new sb("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),DF=e=>({height:e,lineHeight:Bg(e)}),$F=e=>Object.assign({width:e},DF(e)),OF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:EF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),_F=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},DF(e)),IF=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},$F(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},$F(o)),[`${t}${t}-sm`]:Object.assign({},$F(i))}},NF=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},_F(t,l)),[`${r}-lg`]:Object.assign({},_F(o,l)),[`${r}-sm`]:Object.assign({},_F(i,l))}},jF=e=>Object.assign({width:e},DF(e)),PF=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},jF(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},jF(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},TF=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},FF=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},DF(e)),RF=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=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:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},FF(r,l))},TF(e,r,n)),{[`${n}-lg`]:Object.assign({},FF(o,l))}),TF(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},FF(i,l))}),TF(e,i,`${n}-sm`))},AF=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},$F(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},$F(c)),[`${n}-sm`]:Object.assign({},$F(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"},RF(e)),IF(e)),NF(e)),PF(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({},OF(e))}}},MF=qw("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=Rw(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[AF(r)]}),(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"]]});var LF={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"},zF=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:LF}))},BF=U.forwardRef(zF);const HF=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},WF=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Jh(Array(o)).map(((t,n)=>U.createElement("li",{key:n,style:{width:HF(n,e)}})));return U.createElement("ul",{className:pb(t,n),style:r},i)},UF=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return U.createElement("h3",{className:pb(t,n),style:Object.assign({width:r},o)})};function qF(e){return e&&"object"==typeof e?e:{}}const VF=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}=U.useContext(Jy),g=f("skeleton",t),[m,b,v]=MF(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)),qF(l));a=U.createElement("div",{className:`${g}-header`},U.createElement(CF,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)),qF(s));r=U.createElement(UF,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)),qF(c));o=U.createElement(WF,Object.assign({},n))}f=U.createElement("div",{className:`${g}-content`},r,o)}const y=pb(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===p,[`${g}-round`]:d},null==h?void 0:h.className,r,o,b,v);return m(U.createElement("div",{className:y,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,f))}return null!=a?a:null};VF.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=U.useContext(Jy),s=l("skeleton",t),[c,u,d]=MF(s),f=Sv(e,["prefixCls"]),p=pb(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,d);return c(U.createElement("div",{className:p},U.createElement(CF,Object.assign({prefixCls:`${s}-button`,size:a},f))))},VF.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=U.useContext(Jy),s=l("skeleton",t),[c,u,d]=MF(s),f=Sv(e,["prefixCls","className"]),p=pb(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,d);return c(U.createElement("div",{className:p},U.createElement(CF,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},f))))},VF.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=U.useContext(Jy),s=l("skeleton",t),[c,u,d]=MF(s),f=Sv(e,["prefixCls"]),p=pb(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,d);return c(U.createElement("div",{className:p},U.createElement(CF,Object.assign({prefixCls:`${s}-input`,size:a},f))))},VF.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=U.useContext(Jy),l=a("skeleton",t),[s,c,u]=MF(l),d=pb(l,`${l}-element`,{[`${l}-active`]:i},n,r,c,u);return s(U.createElement("div",{className:d},U.createElement("div",{className:pb(`${l}-image`,n),style:o},U.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},U.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`})))))},VF.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=U.useContext(Jy),s=l("skeleton",t),[c,u,d]=MF(s),f=pb(s,`${s}-element`,{[`${s}-active`]:i},u,n,r,d),p=null!=a?a:U.createElement(BF,null);return c(U.createElement("div",{className:f},U.createElement("div",{className:pb(`${s}-image`,n),style:o},p)))};var GF={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"},XF=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:GF}))},KF=U.forwardRef(XF);const YF=U.createContext(null);var QF={width:0,height:0,left:0,top:0};function JF(e,t){var n=U.useRef(e),r=Yh(U.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 ZF=Math.pow(.995,20);function eR(e){var t=Yh(U.useState(0),2),n=t[0],r=t[1],o=U.useRef(0),i=U.useRef();return i.current=e,Xg((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 tR={width:0,height:0,left:0,top:0,right:0};function nR(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function rR(e){return String(e).replace(/"/g,"TABS_DQ")}function oR(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var iR=U.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?U.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})),aR=U.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==Cd(i)||U.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?U.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null})),lR=U.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,s=void 0===l?{}:l,c=e.style,u=e.className,d=e.editable,f=e.tabBarGutter,p=e.rtl,h=e.removeAriaLabel,g=e.onTabClick,m=e.getPopupContainer,b=e.popupClassName,v=Yh(U.useState(!1),2),y=v[0],w=v[1],x=Yh(U.useState(null),2),k=x[0],S=x[1],C=s.icon,E=void 0===C?"More":C,D="".concat(r,"-more-popup"),$="".concat(n,"-dropdown"),O=null!==k?"".concat(D,"-").concat(k):null,_=null==i?void 0:i.dropdownAriaLabel;var I=U.createElement(kT,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),w(!1)},prefixCls:"".concat($,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":O,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=oR(t,o,d,n);return U.createElement(YP,{key:i,id:"".concat(D,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},U.createElement("span",null,a),l&&U.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat($,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),d.onEdit("remove",{key:t,event:e})}(e,i)}},o||d.removeIcon||"×"))})));function N(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;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void S(a.key)}}U.useEffect((function(){var e=document.getElementById(O);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),U.useEffect((function(){y||S(null)}),[y]);var j=Dd({},p?"marginRight":"marginLeft",f);o.length||(j.visibility="hidden",j.order=1);var P=pb(Dd({},"".concat($,"-rtl"),p)),T=a?null:U.createElement(oP,hh({prefixCls:$,overlay:I,visible:!!o.length&&y,onVisibleChange:w,overlayClassName:pb(P,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},s),U.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:j,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":D,id:"".concat(r,"-more"),"aria-expanded":y,onKeyDown:function(e){var t=e.which;if(y)switch(t){case iS.UP:N(-1),e.preventDefault();break;case iS.DOWN:N(1),e.preventDefault();break;case iS.ESC:w(!1);break;case iS.SPACE:case iS.ENTER:null!==k&&g(k,e)}else[iS.DOWN,iS.SPACE,iS.ENTER].includes(t)&&(w(!0),e.preventDefault())}},E));return U.createElement("div",{className:pb("".concat(n,"-nav-operations"),u),style:c,ref:t},T,U.createElement(iR,{prefixCls:n,locale:i,editable:d}))}));const sR=U.memo(lR,(function(e,t){return t.tabMoving}));var cR=function(e){var t=e.prefixCls,n=e.id,r=e.active,o=e.tab,i=o.key,a=o.label,l=o.disabled,s=o.closeIcon,c=o.icon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,p=e.editable,h=e.onClick,g=e.onFocus,m=e.style,b="".concat(t,"-tab"),v=oR(u,s,p,l);function y(e){l||h(e)}var w=U.useMemo((function(){return c&&"string"==typeof a?U.createElement("span",null,a):a}),[a,c]),x=U.createElement("div",{key:i,"data-node-key":rR(i),className:pb(b,Dd(Dd(Dd({},"".concat(b,"-with-remove"),v),"".concat(b,"-active"),r),"".concat(b,"-disabled"),l)),style:m,onClick:y},U.createElement("div",{role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(b,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),y(e)},onKeyDown:function(e){[iS.SPACE,iS.ENTER].includes(e.which)&&(e.preventDefault(),y(e))},onFocus:g},c&&U.createElement("span",{className:"".concat(b,"-icon")},c),a&&w),v&&U.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),p.onEdit("remove",{key:i,event:t})}},s||p.removeIcon||"×"));return d?d(x):x},uR=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,s=a.height;if(Math.abs(l-r)<1)return[l,s]}return[r,i]},dR=function(e,t){return e[t?0:1]},fR=U.forwardRef((function(e,t){var n,r,o,i,a,l=e.className,s=e.style,c=e.id,u=e.animated,d=e.activeKey,f=e.rtl,p=e.extra,h=e.editable,g=e.locale,m=e.tabPosition,b=e.tabBarGutter,v=e.children,y=e.onTabClick,w=e.onTabScroll,x=e.indicator,k=U.useContext(YF),S=k.prefixCls,C=k.tabs,E=U.useRef(null),D=U.useRef(null),$=U.useRef(null),O=U.useRef(null),_=U.useRef(null),I=U.useRef(null),N=U.useRef(null),j="top"===m||"bottom"===m,P=Yh(JF(0,(function(e,t){j&&w&&w({direction:e>t?"left":"right"})})),2),T=P[0],F=P[1],R=Yh(JF(0,(function(e,t){!j&&w&&w({direction:e>t?"top":"bottom"})})),2),A=R[0],M=R[1],L=Yh(U.useState([0,0]),2),z=L[0],B=L[1],H=Yh(U.useState([0,0]),2),W=H[0],V=H[1],G=Yh(U.useState([0,0]),2),X=G[0],K=G[1],Y=Yh(U.useState([0,0]),2),Q=Y[0],J=Y[1],Z=(n=new Map,r=U.useRef([]),o=Yh(U.useState({}),2)[1],i=U.useRef("function"==typeof n?n():n),a=eR((function(){var e=i.current;r.current.forEach((function(t){e=t(e)})),r.current=[],i.current=e,o({})})),[i.current,function(e){r.current.push(e),a()}]),ee=Yh(Z,2),te=ee[0],ne=ee[1],re=function(e,t,n){return U.useMemo((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||QF,i=o.left+o.width,a=0;a<e.length;a+=1){var l,s=e[a].key,c=t.get(s);c||(c=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||QF);var u=r.get(s)||Od({},c);u.right=i-u.left-u.width,r.set(s,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(C,te,W[0]),oe=dR(z,j),ie=dR(W,j),ae=dR(X,j),le=dR(Q,j),se=oe<ie+ae,ce=se?oe-le:oe-ae,ue="".concat(S,"-nav-operations-hidden"),de=0,fe=0;function pe(e){return e<de?de:e>fe?fe:e}j&&f?(de=0,fe=Math.max(0,ie-ce)):(de=Math.min(0,ce-ie),fe=0);var he=U.useRef(null),ge=Yh(U.useState(),2),me=ge[0],be=ge[1];function ve(){be(Date.now())}function ye(){he.current&&clearTimeout(he.current)}!function(e,t){var n=Yh(U.useState(),2),r=n[0],o=n[1],i=Yh(U.useState(0),2),a=i[0],l=i[1],s=Yh(U.useState(0),2),c=s[0],u=s[1],d=Yh(U.useState(),2),f=d[0],p=d[1],h=U.useRef(),g=U.useRef(),m=U.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)<.1)return;var l=e,s=n;h.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(s)<.01?window.clearInterval(h.current):t(20*(l*=ZF),20*(s*=ZF))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===g.current?n:r:i>a?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},U.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)}}),[])}(O,(function(e,t){function n(e,t){e((function(e){return pe(e+t)}))}return!!se&&(j?n(F,e):n(M,t),ye(),ve(),!0)})),U.useEffect((function(){return ye(),me&&(he.current=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),U.useMemo((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;o<n;o+=1){var i=e.get(u[o].key)||tR;if(i[s]+i[l]>c+t){r=o-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||tR)[s]<c){a=d+1;break}return a>=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),f])}(re,ce,j?T:A,ie,ae,le,Od(Od({},e),{},{tabs:C})),xe=Yh(we,2),ke=xe[0],Se=xe[1],Ce=Cw((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(j){var n=T;f?t.right<T?n=t.right:t.right+t.width>T+ce&&(n=t.right+t.width-ce):t.left<-T?n=-t.left:t.left+t.width>-T+ce&&(n=-(t.left+t.width-ce)),M(0),F(pe(n))}else{var r=A;t.top<-A?r=-t.top:t.top+t.height>-A+ce&&(r=-(t.top+t.height-ce)),F(0),M(pe(r))}})),Ee={};"top"===m||"bottom"===m?Ee[f?"marginRight":"marginLeft"]=b:Ee.marginTop=b;var De=C.map((function(e,t){var n=e.key;return U.createElement(cR,{id:c,prefixCls:S,key:n,tab:e,style:0===t?void 0:Ee,closable:e.closable,editable:h,active:n===d,renderWrapper:v,removeAriaLabel:null==g?void 0:g.removeAriaLabel,onClick:function(e){y(n,e)},onFocus:function(){Ce(n),ve(),O.current&&(f||(O.current.scrollLeft=0),O.current.scrollTop=0)}})})),$e=function(){return ne((function(){var e,t=new Map,n=null===(e=_.current)||void 0===e?void 0:e.getBoundingClientRect();return C.forEach((function(e){var r,o=e.key,i=null===(r=_.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(rR(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=Yh(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}))};U.useEffect((function(){$e()}),[C.map((function(e){return e.key})).join("_")]);var Oe=eR((function(){var e=uR(E),t=uR(D),n=uR($);B([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=uR(N);K(r);var o=uR(I);J(o);var i=uR(_);V([i[0]-r[0],i[1]-r[1]]),$e()})),_e=C.slice(0,ke),Ie=C.slice(Se+1),Ne=[].concat(Jh(_e),Jh(Ie)),je=re.get(d),Pe=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,i=void 0===o?{}:o,a=i.size,l=i.align,s=void 0===l?"center":l,c=Yh(U.useState(),2),u=c[0],d=c[1],f=U.useRef(),p=q.useCallback((function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e}),[a]);function h(){_v.cancel(f.current)}return U.useEffect((function(){var e={};if(t)if(n){e.width=p(t.width);var o=r?"right":"left";"start"===s&&(e[o]=t[o]),"center"===s&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),f.current=_v((function(){d(e)})),h}),[t,n,r,s,p]),{style:u}}({activeTabOffset:je,horizontal:j,indicator:x,rtl:f}),Te=Pe.style;U.useEffect((function(){Ce()}),[d,de,fe,nR(je),nR(re),j]),U.useEffect((function(){Oe()}),[f]);var Fe,Re,Ae,Me,Le=!!Ne.length,ze="".concat(S,"-nav-wrap");return j?f?(Re=T>0,Fe=T!==fe):(Fe=T<0,Re=T!==de):(Ae=A<0,Me=A!==de),U.createElement(kv,{onResize:Oe},U.createElement("div",{ref:Mb(t,E),role:"tablist",className:pb("".concat(S,"-nav"),l),style:s,onKeyDown:function(){ve()}},U.createElement(aR,{ref:D,position:"left",extra:p,prefixCls:S}),U.createElement(kv,{onResize:Oe},U.createElement("div",{className:pb(ze,Dd(Dd(Dd(Dd({},"".concat(ze,"-ping-left"),Fe),"".concat(ze,"-ping-right"),Re),"".concat(ze,"-ping-top"),Ae),"".concat(ze,"-ping-bottom"),Me)),ref:O},U.createElement(kv,{onResize:Oe},U.createElement("div",{ref:_,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat(T,"px, ").concat(A,"px)"),transition:me?"none":void 0}},De,U.createElement(iR,{ref:N,prefixCls:S,locale:g,editable:h,style:Od(Od({},0===De.length?void 0:Ee),{},{visibility:Le?"hidden":null})}),U.createElement("div",{className:pb("".concat(S,"-ink-bar"),Dd({},"".concat(S,"-ink-bar-animated"),u.inkBar)),style:Te}))))),U.createElement(sR,hh({},e,{removeAriaLabel:null==g?void 0:g.removeAriaLabel,ref:I,prefixCls:S,tabs:Ne,className:!Le&&ue,tabMoving:!!me})),U.createElement(aR,{ref:$,position:"right",extra:p,prefixCls:S})))})),pR=U.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 U.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:pb(n,a&&"".concat(n,"-active"),r),ref:t},s)})),hR=["renderTabBar"],gR=["label","key"],mR=function(e){var t=e.renderTabBar,n=_d(e,hR),r=U.useContext(YF).tabs;return t?t(Od(Od({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=_d(e,gR);return U.createElement(pR,hh({tab:t,key:n,tabKey:n},r))}))}),fR):U.createElement(fR,n)},bR=["key","forceRender","style","className","destroyInactiveTabPane"],vR=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=U.useContext(YF),l=a.prefixCls,s=a.tabs,c=r.tabPane,u="".concat(l,"-tabpane");return U.createElement("div",{className:pb("".concat(l,"-content-holder"))},U.createElement("div",{className:pb("".concat(l,"-content"),"".concat(l,"-content-").concat(o),Dd({},"".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=_d(e,bR),p=o===n;return U.createElement(Px,hh({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 U.createElement(pR,hh({},f,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Od(Od({},l),r),className:pb(s,i),ref:n}))}))}))))};var yR=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],wR=0,xR=U.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,p=void 0===f?"top":f,h=e.tabBarGutter,g=e.tabBarStyle,m=e.tabBarExtraContent,b=e.locale,v=e.more,y=e.destroyInactiveTabPane,w=e.renderTabBar,x=e.onChange,k=e.onTabClick,S=e.onTabScroll,C=e.getPopupContainer,E=e.popupClassName,D=e.indicator,$=_d(e,yR),O=U.useMemo((function(){return(a||[]).filter((function(e){return e&&"object"===Cd(e)&&"key"in e}))}),[a]),_="rtl"===l,I=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}:Od({inkBar:!0},"object"===Cd(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(d),N=Yh(U.useState(!1),2),j=N[0],P=N[1];U.useEffect((function(){P(s_())}),[]);var T=Yh($w((function(){var e;return null===(e=O[0])||void 0===e?void 0:e.key}),{value:s,defaultValue:c}),2),F=T[0],R=T[1],A=Yh(U.useState((function(){return O.findIndex((function(e){return e.key===F}))})),2),M=A[0],L=A[1];U.useEffect((function(){var e,t=O.findIndex((function(e){return e.key===F}));-1===t&&(t=Math.max(0,Math.min(M,O.length-1)),R(null===(e=O[t])||void 0===e?void 0:e.key));L(t)}),[O.map((function(e){return e.key})).join("_"),F,M]);var z=Yh($w(null,{value:n}),2),B=z[0],H=z[1];U.useEffect((function(){n||(H("rc-tabs-".concat(wR)),wR+=1)}),[]);var W={id:B,activeKey:F,animated:I,tabPosition:p,rtl:_,mobile:j},q=Od(Od({},W),{},{editable:u,locale:b,more:v,tabBarGutter:h,onTabClick:function(e,t){null==k||k(e,t);var n=e!==F;R(e),n&&(null==x||x(e))},onTabScroll:S,extra:m,style:g,panes:null,getPopupContainer:C,popupClassName:E,indicator:D});return U.createElement(YF.Provider,{value:{tabs:O,prefixCls:o}},U.createElement("div",hh({ref:t,id:n,className:pb(o,"".concat(o,"-").concat(p),Dd(Dd(Dd({},"".concat(o,"-mobile"),j),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),_),i)},$),U.createElement(mR,hh({},q,{renderTabBar:w})),U.createElement(vR,hh({destroyInactiveTabPane:y},W,{animated:I}))))}));const kR={motionAppear:!1,motionEnter:!0,motionLeave:!0};function SR(e,t){if(e)return e;return function(e){return e.filter((e=>e))}(Pb(t).map((e=>{if(U.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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}const CR=e=>{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}`}}}}},[U$(e,"slide-up"),U$(e,"slide-down")]]},ER=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:`${Bg(e.lineWidth)} ${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:Bg(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Bg(e.borderRadiusLG)} ${Bg(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Bg(e.borderRadiusLG)} ${Bg(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Bg(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Bg(e.borderRadiusLG)} 0 0 ${Bg(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Bg(e.borderRadiusLG)} ${Bg(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},DR=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},_w(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:`${Bg(r)} 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({},Ow),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Bg(e.paddingXXS)} ${Bg(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.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"}}})}})}},$R=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Bg(e.lineWidth)} ${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,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:l(e.controlHeight).mul(1.25).equal(),[`${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:Bg(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Bg(e.lineWidth)} ${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:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},OR=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 ${Bg(e.borderRadius)} ${Bg(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Bg(e.borderRadius)} ${Bg(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Bg(e.borderRadius)} ${Bg(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Bg(e.borderRadius)} 0 0 ${Bg(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},_R=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}},Pw(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},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}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},IR=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{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:Bg(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Bg(e.marginXS)},marginLeft:{_skip_check_:!0,value:Bg(i(e.marginXXS).mul(-1).equal())},[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"}}}}},NR=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({},_w(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.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${Bg(e.paddingXS)}`,background:"transparent",border:`${Bg(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Bg(e.borderRadiusLG)} ${Bg(e.borderRadiusLG)} 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}},Pw(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),_R(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"}}}}}},jR=qw("Tabs",(e=>{const t=Rw(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Bg(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Bg(e.horizontalItemGutter)}`});return[OR(t),IR(t),$R(t),DR(t),ER(t),NR(t),CR(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,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 PR=e=>{var t,n,r,o,i,a,l,s,c,u,d;const{type:f,className:p,rootClassName:h,size:g,onEdit:m,hideAdd:b,centered:v,addIcon:y,removeIcon:w,moreIcon:x,more:k,popupClassName:S,children:C,items:E,animated:D,style:$,indicatorSize:O,indicator:_}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:N}=I,{direction:j,tabs:P,getPrefixCls:T,getPopupContainer:F}=U.useContext(Jy),R=T("tabs",N),A=oS(R),[M,L,z]=jR(R,A);let B;"editable-card"===f&&(B={onEdit:(e,t)=>{let{key:n,event:r}=t;null==m||m("add"===e?r:n,e)},removeIcon:null!==(t=null!=w?w:null==P?void 0:P.removeIcon)&&void 0!==t?t:U.createElement(Ck,null),addIcon:(null!=y?y:null==P?void 0:P.addIcon)||U.createElement(KF,null),showAdd:!0!==b});const H=T(),W=mC(g),q=SR(E,C),V=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({},kR),{motionName:iC(e,"switch")})),t}(R,D),G=Object.assign(Object.assign({},null==P?void 0:P.style),$),X={align:null!==(n=null==_?void 0:_.align)&&void 0!==n?n:null===(r=null==P?void 0:P.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(i=null!==(o=null==_?void 0:_.size)&&void 0!==o?o:O)&&void 0!==i?i:null===(a=null==P?void 0:P.indicator)||void 0===a?void 0:a.size)&&void 0!==l?l:null==P?void 0:P.indicatorSize};return M(U.createElement(xR,Object.assign({direction:j,getPopupContainer:F},I,{items:q,className:pb({[`${R}-${W}`]:W,[`${R}-card`]:["card","editable-card"].includes(f),[`${R}-editable-card`]:"editable-card"===f,[`${R}-centered`]:v},null==P?void 0:P.className,p,h,L,z,A),popupClassName:pb(S,L,z,A),style:G,editable:B,more:Object.assign({icon:null!==(d=null!==(u=null!==(c=null===(s=null==P?void 0:P.more)||void 0===s?void 0:s.icon)&&void 0!==c?c:null==P?void 0:P.moreIcon)&&void 0!==u?u:x)&&void 0!==d?d:U.createElement(DT,null),transitionName:`${H}-slide-up`},k),prefixCls:R,animated:V,indicator:X})))};function TR(e,t,n){var r={}.atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,f=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,c=Date.now()-f;function h(){f=Date.now(),t.apply(l,o)}function g(){r=void 0}d||(s||!u||r||h(),p(),void 0===u&&c>e?s?(f=Date.now(),a||(r=setTimeout(u?g:h,e))):h():!0!==a&&(r=setTimeout(u?g:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}PR.TabPane=()=>null;const FR=U.createContext({}),RR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},AR=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)0===a?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:a/o*100+"%"}],i[`${r}${t}-push-${a}`]={insetInlineStart:a/o*100+"%"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:a/o*100+"%"},i[`${r}${t}-offset-${a}`]={marginInlineStart:a/o*100+"%"},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),MR=qw("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),LR=qw("Grid",(e=>{const t=Rw(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[RR(t),AR(t,""),AR(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${Bg(t)})`]:Object.assign({},AR(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));function zR(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const BR=["xs","sm","md","lg","xl","xxl"],HR=U.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=U.useContext(Jy),{gutter:o,wrap:i}=U.useContext(FR),{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[v,y,w]=LR(b),x={};let k={};BR.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete m[t],k=Object.assign(Object.assign({},k),{[`${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}-rtl`]:"rtl"===r}),n.flex&&(k[`${b}-${t}-flex`]=!0,x[`--${b}-${t}-flex`]=zR(n.flex))}));const S=pb(b,{[`${b}-${l}`]:void 0!==l,[`${b}-order-${s}`]:s,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},f,k,y,w),C={};if(o&&o[0]>0){const e=o[0]/2;C.paddingLeft=e,C.paddingRight=e}return h&&(C.flex=zR(h),!1!==i||C.minWidth||(C.minWidth=0)),v(U.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign({},C),g),x),className:S,ref:t}),p))}));function WR(e,t){const[n,r]=U.useState("string"==typeof e?e:"");return U.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<JN.length;n++){const o=JN[n];if(!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()}),[JSON.stringify(e),t]),n}const UR=U.forwardRef(((e,t)=>{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=U.useContext(Jy),[p,h]=U.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,m]=U.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=WR(o,g),v=WR(r,g),y=U.useRef(s),w=tj();U.useEffect((()=>{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),[k,S,C]=MR(x),E=(()=>{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;r<JN.length;r++){const o=JN[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),D=pb(x,{[`${x}-no-wrap`]:!1===c,[`${x}-${v}`]:v,[`${x}-${b}`]:b,[`${x}-rtl`]:"rtl"===f},i,S,C),$={},O=null!=E[0]&&E[0]>0?E[0]/-2:void 0;O&&($.marginLeft=O,$.marginRight=O);const[_,I]=E;$.rowGap=I;const N=U.useMemo((()=>({gutter:[_,I],wrap:c})),[_,I,c]);return k(U.createElement(FR.Provider,{value:N},U.createElement("div",Object.assign({},u,{className:D,style:Object.assign(Object.assign({},$),a),ref:t}),l)))}));const qR={useBreakpoint:function(){return nj()}};var VR=q.forwardRef((function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,a=e.children,l=e.isActive,s=e.role,c=Yh(q.useState(l||r),2),u=c[0],d=c[1];return q.useEffect((function(){(r||l)&&d(!0)}),[r,l]),u?q.createElement("div",{ref:t,className:pb("".concat(n,"-content"),Dd(Dd({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),o),style:i,role:s},q.createElement("div",{className:"".concat(n,"-content-box")},a)):null}));VR.displayName="PanelContent";var GR=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],XR=q.forwardRef((function(e,t){var n=e.showArrow,r=void 0===n||n,o=e.headerClass,i=e.isActive,a=e.onItemClick,l=e.forceRender,s=e.className,c=e.prefixCls,u=e.collapsible,d=e.accordion,f=e.panelKey,p=e.extra,h=e.header,g=e.expandIcon,m=e.openMotion,b=e.destroyInactivePanel,v=e.children,y=_d(e,GR),w="disabled"===u,x="header"===u,k="icon"===u,S=null!=p&&"boolean"!=typeof p,C=function(){null==a||a(f)},E="function"==typeof g?g(e):q.createElement("i",{className:"arrow"});E&&(E=q.createElement("div",{className:"".concat(c,"-expand-icon"),onClick:["header","icon"].includes(u)?C:void 0},E));var D=pb(Dd(Dd(Dd({},"".concat(c,"-item"),!0),"".concat(c,"-item-active"),i),"".concat(c,"-item-disabled"),w),s),$={className:pb(o,Dd(Dd(Dd({},"".concat(c,"-header"),!0),"".concat(c,"-header-collapsible-only"),x),"".concat(c,"-icon-collapsible-only"),k)),"aria-expanded":i,"aria-disabled":w,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==iS.ENTER&&e.which!==iS.ENTER||C()}};return x||k||($.onClick=C,$.role=d?"tab":"button",$.tabIndex=w?-1:0),q.createElement("div",hh({},y,{ref:t,className:D}),q.createElement("div",$,r&&E,q.createElement("span",{className:"".concat(c,"-header-text"),onClick:"header"===u?C:void 0},h),S&&q.createElement("div",{className:"".concat(c,"-extra")},p)),q.createElement(Px,hh({visible:i,leavedClassName:"".concat(c,"-content-hidden")},m,{forceRender:l,removeOnLeave:b}),(function(e,t){var n=e.className,r=e.style;return q.createElement(VR,{ref:t,prefixCls:c,className:n,style:r,isActive:i,forceRender:l,role:d?"tabpanel":void 0},v)})))})),KR=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function YR(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=_d(e,KR),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,q.createElement(XR,hh({},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):Pb(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]})),q.cloneElement(e,w))}(e,t,n)}))}function QR(e){var t=e;if(!Array.isArray(t)){var n=Cd(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var JR=q.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=pb(r,s),v=Yh($w([],{value:p,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:QR}),2),y=v[0],w=v[1];vg(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=YR(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(Jh(y),[e])}))},activeKey:y});return q.createElement("div",hh({ref:t,className:b,style:a,role:l?"tablist":void 0},Fk(e,{aria:!0,data:!0})),x)}));const ZR=Object.assign(JR,{Panel:XR});ZR.Panel;const eA=U.forwardRef(((e,t)=>{const{getPrefixCls:n}=U.useContext(Jy),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),l=pb({[`${a}-no-arrow`]:!i},o);return U.createElement(ZR.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))})),tA=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,fontSizeLG:g,lineHeight:m,lineHeightLG:b,marginSM:v,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:k,fontSizeIcon:S,contentPadding:C,fontHeight:E,fontHeightLG:D}=e,$=`${Bg(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},_w(e)),{backgroundColor:o,border:$,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Bg(s)} ${Bg(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:m,cursor:"pointer",transition:`all ${k}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:E,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:S,transition:`transform ${k}`,svg:{transition:`transform ${k}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:C},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:b,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:D,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Bg(s)} ${Bg(s)}`}},[`& ${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}}}}})}},nA=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},rA=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}}}},oA=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}}}}}},iA=qw("Collapse",(e=>{const t=Rw(e,{collapseHeaderPaddingSM:`${Bg(e.paddingXS)} ${Bg(e.paddingSM)}`,collapseHeaderPaddingLG:`${Bg(e.padding)} ${Bg(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[tA(t),rA(t),oA(t),nA(t),w$(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),aA=U.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=U.useContext(Jy),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,g=mC((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",i),b=n(),[v,y,w]=iA(m),x=U.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),k=null!=h?h:null==o?void 0:o.expandIcon,S=U.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"==typeof k?k(e):U.createElement(Kj,{rotate:e.isActive?90:void 0});return Mk(t,(()=>{var e;return{className:pb(null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.className,`${m}-arrow`)}}))}),[k,m]),C=pb(`${m}-icon-position-${x}`,{[`${m}-borderless`]:!c,[`${m}-rtl`]:"rtl"===r,[`${m}-ghost`]:!!u,[`${m}-${g}`]:"middle"!==g},null==o?void 0:o.className,a,l,y,w),E=Object.assign(Object.assign({},oC(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),D=U.useMemo((()=>p?Pb(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 Mk(e,Object.assign(Object.assign({},Sv(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[p]);return v(U.createElement(ZR,Object.assign({ref:t,openMotion:E},Sv(e,["rootClassName"]),{expandIcon:S,prefixCls:m,className:C,style:Object.assign(Object.assign({},null==o?void 0:o.style),s)}),D))})),lA=Object.assign(aA,{Panel:eA}),sA=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},_w(e)),{borderBlockStart:`${Bg(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Bg(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Bg(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Bg(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Bg(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Bg(o)} 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}}})}},cA=qw("Divider",(e=>{const t=Rw(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[sA(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});const uA=e=>{const{getPrefixCls:t,direction:n,divider:r}=U.useContext(Jy),{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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[m,b,v]=cA(g),y=a.length>0?`-${a}`:a,w=!!u,x="left"===a&&null!=l,k="right"===a&&null!=l,S=pb(g,null==r?void 0:r.className,b,v,`${g}-${i}`,{[`${g}-with-text`]:w,[`${g}-with-text${y}`]:w,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!f,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:x,[`${g}-no-default-orientation-margin-right`]:k},s,c),C=U.useMemo((()=>"number"==typeof l?l:/^\d+$/.test(l)?Number(l):l),[l]),E=Object.assign(Object.assign({},x&&{marginLeft:C}),k&&{marginRight:C});return m(U.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==r?void 0:r.style),p)},h,{role:"separator"}),u&&"vertical"!==i&&U.createElement("span",{className:`${g}-inner-text`,style:E},u)))};var dA={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"},fA=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:dA}))},pA=U.forwardRef(fA);function hA(){return"function"==typeof BigInt}function gA(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function mA(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 bA(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function vA(e){var t=String(e);if(bA(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(".")&&wA(t)?t.length-t.indexOf(".")-1:0}function yA(e){var t=String(e);if(bA(e)){if(e>Number.MAX_SAFE_INTEGER)return String(hA()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(hA()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(vA(t))}return mA(t).fullStr}function wA(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var xA=function(){function e(t){if(nh(this,e),Dd(this,"origin",""),Dd(this,"negative",void 0),Dd(this,"integer",void 0),Dd(this,"decimal",void 0),Dd(this,"decimalLen",void 0),Dd(this,"empty",void 0),Dd(this,"nan",void 0),gA(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(bA(n)&&(n=Number(n)),wA(n="string"==typeof n?n:yA(n))){var r=mA(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return oh(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=mA(i),s=l.negativeStr,c=l.trimStr,u="".concat(s).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":mA("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),kA=function(){function e(t){nh(this,e),Dd(this,"origin",""),Dd(this,"number",void 0),Dd(this,"empty",void 0),gA(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return oh(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(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(vA(this.number),vA(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(vA(this.number),vA(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":yA(this.number):this.origin}}]),e}();function SA(e){return hA()?new xA(e):new kA(e)}function CA(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=mA(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?CA(SA(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 EA(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),o}function DA(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=EA(t,e,r)):n(o=EA(t,e,""))}}function $A(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 OA=function(e){var t,n,r=e.inputElement,o=e.children,i=e.prefixCls,a=e.prefix,l=e.suffix,s=e.addonBefore,c=e.addonAfter,u=e.className,d=e.style,f=e.disabled,p=e.readOnly,h=e.focused,g=e.triggerFocus,m=e.allowClear,b=e.value,v=e.handleReset,y=e.hidden,w=e.classes,x=e.classNames,k=e.dataAttrs,S=e.styles,C=e.components,E=null!=o?o:r,D=(null==C?void 0:C.affixWrapper)||"span",$=(null==C?void 0:C.groupWrapper)||"span",O=(null==C?void 0:C.wrapper)||"span",_=(null==C?void 0:C.groupAddon)||"span",I=U.useRef(null),N=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),j=U.cloneElement(E,{value:b,className:pb(E.props.className,!N&&(null==x?void 0:x.variant))||null});if(N){var P,T=null;if(m){var F,R=!f&&!p&&b,A="".concat(i,"-clear-icon"),M="object"===Cd(m)&&null!=m&&m.clearIcon?m.clearIcon:"✖";T=q.createElement("span",{onClick:v,onMouseDown:function(e){return e.preventDefault()},className:pb(A,(F={},Dd(F,"".concat(A,"-hidden"),!R),Dd(F,"".concat(A,"-has-suffix"),!!l),F)),role:"button",tabIndex:-1},M)}var L="".concat(i,"-affix-wrapper"),z=pb(L,(Dd(P={},"".concat(i,"-disabled"),f),Dd(P,"".concat(L,"-disabled"),f),Dd(P,"".concat(L,"-focused"),h),Dd(P,"".concat(L,"-readonly"),p),Dd(P,"".concat(L,"-input-with-clear-btn"),l&&m&&b),P),null==w?void 0:w.affixWrapper,null==x?void 0:x.affixWrapper,null==x?void 0:x.variant),B=(l||m)&&q.createElement("span",{className:pb("".concat(i,"-suffix"),null==x?void 0:x.suffix),style:null==S?void 0:S.suffix},T,l);j=q.createElement(D,hh({className:z,style:null==S?void 0:S.affixWrapper,onClick:function(e){var t;null!==(t=I.current)&&void 0!==t&&t.contains(e.target)&&(null==g||g())}},null==k?void 0:k.affixWrapper,{ref:I}),a&&q.createElement("span",{className:pb("".concat(i,"-prefix"),null==x?void 0:x.prefix),style:null==S?void 0:S.prefix},a),j,B)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var H="".concat(i,"-group"),W="".concat(H,"-addon"),V="".concat(H,"-wrapper"),G=pb("".concat(i,"-wrapper"),H,null==w?void 0:w.wrapper,null==x?void 0:x.wrapper),X=pb(V,Dd({},"".concat(V,"-disabled"),f),null==w?void 0:w.group,null==x?void 0:x.groupWrapper);j=q.createElement($,{className:X},q.createElement(O,{className:G},s&&q.createElement(_,{className:W},s),j,c&&q.createElement(_,{className:W},c)))}return q.cloneElement(j,{className:pb(null===(t=j.props)||void 0===t?void 0:t.className,u)||null,style:Od(Od({},null===(n=j.props)||void 0===n?void 0:n.style),d),hidden:y})},_A=["show"];function IA(e,t){return U.useMemo((function(){var n={};t&&(n.show="object"===Cd(t)&&t.formatter?t.formatter:!!t);var r=n=Od(Od({},n),e),o=r.show,i=_d(r,_A);return Od(Od({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var NA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],jA=U.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,k=e.onCompositionStart,S=e.onCompositionEnd,C=_d(e,NA),E=Yh(U.useState(!1),2),D=E[0],$=E[1],O=U.useRef(!1),_=U.useRef(null),I=function(e){_.current&&$A(_.current,e)},N=Yh($w(e.defaultValue,{value:e.value}),2),j=N[0],P=N[1],T=null==j?"":String(j),F=Yh(U.useState(null),2),R=F[0],A=F[1],M=IA(m,g),L=M.max||p,z=M.strategy(T),B=!!L&&z>L;U.useImperativeHandle(t,(function(){return{focus:I,blur:function(){var e;null===(e=_.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=_.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=_.current)||void 0===e||e.select()},input:_.current}})),U.useEffect((function(){$((function(e){return(!e||!u)&&e}))}),[u]);var H=function(e,t,n){var o,i,a=t;if(!O.current&&M.exceedFormatter&&M.max&&M.strategy(t)>M.max)t!==(a=M.exceedFormatter(t,{max:M.max}))&&A([(null===(o=_.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=_.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;P(a),_.current&&DA(_.current,e,r,a)};U.useEffect((function(){var e;R&&(null===(e=_.current)||void 0===e||e.setSelectionRange.apply(e,Jh(R)))}),[R]);var W,V=function(e){H(e,e.target.value,{source:"change"})},G=function(e){O.current=!1,H(e,e.currentTarget.value,{source:"compositionEnd"}),null==S||S(e)},X=function(e){a&&"Enter"===e.key&&a(e),null==l||l(e)},K=function(e){$(!0),null==o||o(e)},Y=function(e){$(!1),null==i||i(e)},Q=B&&"".concat(c,"-out-of-range");return q.createElement(OA,hh({},C,{prefixCls:c,className:pb(f,Q),handleReset:function(e){P(""),I(),_.current&&DA(_.current,e,r)},value:T,focused:D,triggerFocus:I,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 q.createElement(q.Fragment,null,M.show&&q.createElement("span",{className:pb("".concat(c,"-show-count-suffix"),Dd({},"".concat(c,"-show-count-has-suffix"),!!h),null==w?void 0:w.count),style:Od({},null==x?void 0:x.count)},t),h)}return null}(),disabled:u,classes:y,classNames:w,styles:x}),(W=Sv(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),q.createElement("input",hh({autoComplete:n},W,{onChange:V,onFocus:K,onBlur:Y,onKeyDown:X,className:pb(c,Dd({},"".concat(c,"-disabled"),u),null==w?void 0:w.input),style:null==x?void 0:x.input,ref:_,size:d,type:v,onCompositionStart:function(e){O.current=!0,null==k||k(e)},onCompositionEnd:G}))))}));function PA(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=U.useRef(),s=U.useRef([]),c=U.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(U.useEffect((function(){return function(){p(),s.current.forEach((function(e){return _v.cancel(e)}))}}),[]),u=Yh(U.useState(!1),2),d=u[0],f=u[1],Gg((function(){f(s_())}),[]),d)return null;var g="".concat(t,"-handler"),m=pb(g,"".concat(g,"-up"),Dd({},"".concat(g,"-up-disabled"),o)),b=pb(g,"".concat(g,"-down"),Dd({},"".concat(g,"-down-disabled"),i)),v=function(){return s.current.push(_v(p))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return U.createElement("div",{className:"".concat(g,"-wrap")},U.createElement("span",hh({},y,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||U.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),U.createElement("span",hh({},y,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:b}),r||U.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function TA(e){var t="number"==typeof e?yA(e):mA(e).fullStr;return t.includes(".")?mA(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var FA=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],RA=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],AA=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},MA=function(e){var t=SA(e);return t.isInvalidate()?null:t},LA=U.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.changeOnWheel,y=void 0!==v&&v,w=e.controls,x=void 0===w||w;e.classNames;var k=e.stringMode,S=e.parser,C=e.formatter,E=e.precision,D=e.decimalSeparator,$=e.onChange,O=e.onInput,_=e.onPressEnter,I=e.onStep,N=e.changeOnBlur,j=void 0===N||N,P=_d(e,FA),T="".concat(o,"-input"),F=U.useRef(null),R=Yh(U.useState(!1),2),A=R[0],M=R[1],L=U.useRef(!1),z=U.useRef(!1),B=U.useRef(!1),H=Yh(U.useState((function(){return SA(null!=f?f:d)})),2),W=H[0],q=H[1];var V=U.useCallback((function(e,t){if(!t)return E>=0?E:Math.max(vA(e),vA(u))}),[E,u]),G=U.useCallback((function(e){var t=String(e);if(S)return S(t);var n=t;return D&&(n=n.replace(D,".")),n.replace(/[^\w.-]+/g,"")}),[S,D]),X=U.useRef(""),K=U.useCallback((function(e,t){if(C)return C(e,{userTyping:t,input:String(X.current)});var n="number"==typeof e?yA(e):e;if(!t){var r=V(n,t);if(wA(n)&&(D||r>=0))n=CA(n,D||".",r)}return n}),[C,V,D]),Y=Yh(U.useState((function(){var e=null!=d?d:f;return W.isInvalidate()&&["string","number"].includes(Cd(e))?Number.isNaN(e)?"":e:K(W.toString(),!1)})),2),Q=Y[0],J=Y[1];function Z(e,t){J(K(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}X.current=Q;var ee,te,ne,re,oe,ie=U.useMemo((function(){return MA(s)}),[s,E]),ae=U.useMemo((function(){return MA(l)}),[l,E]),le=U.useMemo((function(){return!(!ie||!W||W.isInvalidate())&&ie.lessEquals(W)}),[ie,W]),se=U.useMemo((function(){return!(!ae||!W||W.isInvalidate())&&W.lessEquals(ae)}),[ae,W]),ce=(ee=F.current,te=A,ne=U.useRef(null),[function(){try{var e=ee.selectionStart,t=ee.selectionEnd,n=ee.value,r=n.substring(0,e),o=n.substring(t);ne.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(b6){}},function(){if(ee&&ne.current&&te)try{var e=ee.value,t=ne.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,i=e.length;if(e.endsWith(r))i=e.length-ne.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)}ee.setSelectionRange(i,i)}catch(b6){vg(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(b6.message))}}]),ue=Yh(ce,2),de=ue[0],fe=ue[1],pe=function(e){return ie&&!e.lessEquals(ie)?ie:ae&&!ae.lessEquals(e)?ae:null},he=function(e){return!pe(e)},ge=function(e,t){var n,r=e,o=he(r)||r.isEmpty();if(r.isEmpty()||t||(r=pe(r)||r,o=!0),!h&&!p&&o){var i=r.toString(),a=V(i,t);return a>=0&&(r=SA(CA(i,".",a)),he(r)||(r=SA(CA(i,".",a,!0)))),r.equals(W)||(n=r,void 0===f&&q(n),null==$||$(r.isEmpty()?null:AA(k,r)),void 0===f&&Z(r,t)),r}return W},me=(re=U.useRef(0),oe=function(){_v.cancel(re.current)},U.useEffect((function(){return oe}),[]),function(e){oe(),re.current=_v((function(){e()}))}),be=function e(t){if(de(),X.current=t,J(t),!z.current){var n=SA(G(t));n.isNaN()||ge(n,!0)}null==O||O(t),me((function(){var n=t;S||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},ve=function(e){var t;if(!(e&&le||!e&&se)){L.current=!1;var n=SA(B.current?TA(u):u);e||(n=n.negate());var r=(W||SA(0)).add(n.toString()),o=ge(r,!1);null==I||I(AA(k,o),{offset:B.current?TA(u):u,type:e?"up":"down"}),null===(t=F.current)||void 0===t||t.focus()}},ye=function(e){var t=SA(G(Q)),n=t;n=t.isNaN()?ge(W,e):ge(t,e),void 0!==f?Z(W,!1):n.isNaN()||Z(n,!1)};U.useEffect((function(){if(y&&A){var e=function(e){ve(e.deltaY<0),e.preventDefault()},t=F.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return Xg((function(){W.isInvalidate()||Z(W,!1)}),[E,C]),Xg((function(){var e=SA(f);q(e);var t=SA(G(Q));e.equals(t)&&L.current&&!C||Z(e,L.current)}),[f]),Xg((function(){C&&fe()}),[Q]),U.createElement("div",{className:pb(o,i,(n={},Dd(n,"".concat(o,"-focused"),A),Dd(n,"".concat(o,"-disabled"),p),Dd(n,"".concat(o,"-readonly"),h),Dd(n,"".concat(o,"-not-a-number"),W.isNaN()),Dd(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!he(W)),n)),style:a,onFocus:function(){M(!0)},onBlur:function(){j&&ye(!1),M(!1),L.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;L.current=!0,B.current=n,"Enter"===t&&(z.current||(L.current=!1),ye(!1),null==_||_(e)),!1!==b&&!z.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(ve("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){L.current=!1,B.current=!1},onCompositionStart:function(){z.current=!0},onCompositionEnd:function(){z.current=!1,be(F.current.value)},onBeforeInput:function(){L.current=!0}},x&&U.createElement(PA,{prefixCls:o,upNode:g,downNode:m,upDisabled:le,downDisabled:se,onStep:ve}),U.createElement("div",{className:"".concat(T,"-wrap")},U.createElement("input",hh({autoComplete:"off",role:"spinbutton","aria-valuemin":l,"aria-valuemax":s,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},P,{ref:Ab(F,t),className:T,value:Q,onChange:function(e){be(e.target.value)},disabled:p,readOnly:h}))))})),zA=U.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.className,d=e.classNames,f=_d(e,RA),p=U.useRef(null);return U.createElement(OA,{className:u,triggerFocus:function(e){p.current&&$A(p.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:l,addonAfter:c,addonBefore:s,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},U.createElement(LA,hh({prefixCls:o,disabled:n,ref:Ab(p,t),className:null==d?void 0:d.input},f)))}));zA.displayName="InputNumber";const BA=(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}}}},HA=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:i,controlHeightLG:a,controlHeightSM:l,colorError:s,paddingInlineSM:c,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:p,motionDurationMid:h,handleHoverColor:g,paddingInline:m,paddingBlock:b,handleBg:v,handleActiveBg:y,colorTextDisabled:w,borderRadiusSM:x,borderRadiusLG:k,controlWidth:S,handleOpacity:C,handleBorderColor:E,filledHandleBg:D,lineHeightLG:$,calc:O}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_w(e)),hF(e)),{display:"inline-block",width:S,margin:0,padding:0,borderRadius:o}),nF(e,{[`${t}-handler-wrap`]:{background:v,[`${t}-handler-down`]:{borderBlockStart:`${Bg(n)} ${r} ${E}`}}})),sF(e,{[`${t}-handler-wrap`]:{background:D,[`${t}-handler-down`]:{borderBlockStart:`${Bg(n)} ${r} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:v}}})),iF(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:$,borderRadius:k,[`input${t}-input`]:{height:O(a).sub(O(n).mul(2)).equal(),padding:`${Bg(d)} ${Bg(f)}`}},"&-sm":{padding:0,borderRadius:x,[`input${t}-input`]:{height:O(l).sub(O(n).mul(2)).equal(),padding:`${Bg(u)} ${Bg(c)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},_w(e)),gF(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},oF(e)),uF(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},_w(e)),{width:"100%",padding:`${Bg(b)} ${Bg(m)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),dF(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%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:C,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${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:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Bg(n)} ${r} ${E}`,transition:`all ${h} linear`,"&:active":{background:y},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:g}},"&-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:p,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},BA(e,"lg")),BA(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:w}})}]},WA=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Bg(n)} 0`}},hF(e)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:s,[`input${t}-input`]:{padding:`${Bg(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Bg(d)} 0`}},[`&:not(${t}-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"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-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}}})}},UA=qw("InputNumber",(e=>{const t=Rw(e,YT(e));return[HA(t),WA(t),dE(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},QT(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new by(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});const qA=U.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=U.useContext(Jy),o=U.useRef(null);U.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:p,readOnly:h,status:g,controls:m,variant:b}=e,v=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),y=n("input-number",c),w=oS(y),[x,k,S]=UA(y,w),{compactSize:C,compactItemClassnames:E}=SC(y,r);let D=U.createElement(pA,{className:`${y}-handler-up-inner`}),$=U.createElement(WN,{className:`${y}-handler-down-inner`});const O="boolean"==typeof m?m:void 0;"object"==typeof m&&(D=void 0===m.upIcon?D:U.createElement("span",{className:`${y}-handler-up-inner`},m.upIcon),$=void 0===m.downIcon?$:U.createElement("span",{className:`${y}-handler-down-inner`},m.downIcon));const{hasFeedback:_,status:I,isFormItemInput:N,feedbackIcon:j}=U.useContext(u$),P=iN(I,g),T=mC((e=>{var t;return null!==(t=null!=l?l:C)&&void 0!==t?t:e})),F=U.useContext(tw),R=null!=s?s:F,[A,M]=gN(b,p),L=_&&U.createElement(U.Fragment,null,j),z=pb({[`${y}-lg`]:"large"===T,[`${y}-sm`]:"small"===T,[`${y}-rtl`]:"rtl"===r,[`${y}-in-form-item`]:N},k),B=`${y}-group`;return x(U.createElement(zA,Object.assign({ref:o,disabled:R,className:pb(S,w,i,a,E),upHandler:D,downHandler:$,prefixCls:y,readOnly:h,controls:O,prefix:f,suffix:L,addonAfter:d&&U.createElement(CC,null,U.createElement(d$,{override:!0,status:!0},d)),addonBefore:u&&U.createElement(CC,null,U.createElement(d$,{override:!0,status:!0},u)),classNames:{input:z,variant:pb({[`${y}-${A}`]:M},oN(y,P,_)),affixWrapper:pb({[`${y}-affix-wrapper-sm`]:"small"===T,[`${y}-affix-wrapper-lg`]:"large"===T,[`${y}-affix-wrapper-rtl`]:"rtl"===r},k),wrapper:pb({[`${B}-rtl`]:"rtl"===r},k),groupWrapper:pb({[`${y}-group-wrapper-sm`]:"small"===T,[`${y}-group-wrapper-lg`]:"large"===T,[`${y}-group-wrapper-rtl`]:"rtl"===r,[`${y}-group-wrapper-${A}`]:M},oN(`${y}-group-wrapper`,P,_),k)}},v)))})),VA=qA;VA._InternalPanelDoNotUseOrYouWillBeFired=e=>U.createElement(nk,{theme:{components:{InputNumber:{handleVisible:!0}}}},U.createElement(qA,Object.assign({},e)));const GA=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:q.createElement(xk,null)}),t};function XA(e,t){const n=U.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 U.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}const KA=U.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,variant: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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:k,direction:S,input:C}=q.useContext(Jy),E=k("input",r),D=U.useRef(null),$=oS(E),[O,_,I]=SF(E,$),{compactSize:N,compactItemClassnames:j}=SC(E,S),P=mC((e=>{var t;return null!==(t=null!=a?a:N)&&void 0!==t?t:e})),T=q.useContext(tw),F=null!=l?l:T,{status:R,hasFeedback:A,feedbackIcon:M}=U.useContext(u$),L=iN(R,i),z=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!A;U.useRef(z);const B=XA(D,!0),H=(A||u)&&q.createElement(q.Fragment,null,u,A&&M),W=GA(null!=d?d:null==C?void 0:C.allowClear),[V,G]=gN(w,o);return O(q.createElement(jA,Object.assign({ref:Ab(t,D),prefixCls:E,autoComplete:null==C?void 0:C.autoComplete},x,{disabled:F,onBlur:e=>{B(),null==s||s(e)},onFocus:e=>{B(),null==c||c(e)},style:Object.assign(Object.assign({},null==C?void 0:C.style),g),styles:Object.assign(Object.assign({},null==C?void 0:C.styles),m),suffix:H,allowClear:W,className:pb(h,b,I,$,j,null==C?void 0:C.className),onChange:e=>{B(),null==v||v(e)},addonAfter:f&&q.createElement(CC,null,q.createElement(d$,{override:!0,status:!0},f)),addonBefore:p&&q.createElement(CC,null,q.createElement(d$,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),null==C?void 0:C.classNames),{input:pb({[`${E}-sm`]:"small"===P,[`${E}-lg`]:"large"===P,[`${E}-rtl`]:"rtl"===S},null==y?void 0:y.input,null===(n=null==C?void 0:C.classNames)||void 0===n?void 0:n.input,_),variant:pb({[`${E}-${V}`]:G},oN(E,L)),affixWrapper:pb({[`${E}-affix-wrapper-sm`]:"small"===P,[`${E}-affix-wrapper-lg`]:"large"===P,[`${E}-affix-wrapper-rtl`]:"rtl"===S},_),wrapper:pb({[`${E}-group-rtl`]:"rtl"===S},_),groupWrapper:pb({[`${E}-group-wrapper-sm`]:"small"===P,[`${E}-group-wrapper-lg`]:"large"===P,[`${E}-group-wrapper-rtl`]:"rtl"===S,[`${E}-group-wrapper-${V}`]:G},oN(`${E}-group-wrapper`,L,A),_)})})))})),YA=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},QA=qw(["Input","OTP"],(e=>{const t=Rw(e,YT(e));return[YA(t)]}),QT);const JA=U.forwardRef(((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["value","onChange","onActiveChange","index","mask"]),s=n&&"string"==typeof a?a:n,c=U.useRef(null);U.useImperativeHandle(t,(()=>c.current));const u=()=>{_v((()=>{var e;const t=null===(e=c.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return U.createElement(KA,Object.assign({},l,{ref:c,value:s,onInput:e=>{r(i,e.target.value)},onFocus:u,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?o(i-1):"ArrowRight"===t&&o(i+1),u()},onKeyUp:e=>{"Backspace"!==e.key||n||o(i-1),u()},onMouseDown:u,onMouseUp:u,type:!0===a?"password":"text"}))}));function ZA(e){return(e||"").split("")}const eM=U.forwardRef(((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,variant:c,disabled:u,status:d,autoFocus:f,mask: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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:g,direction:m}=U.useContext(Jy),b=g("otp",n),v=Fk(h,{aria:!0,data:!0,attr:!0}),y=oS(b),[w,x,k]=QA(b,y),S=mC((e=>null!=o?o:e)),C=U.useContext(u$),E=iN(C.status,d),D=U.useMemo((()=>Object.assign(Object.assign({},C),{status:E,hasFeedback:!1,feedbackIcon:null})),[C,E]),$=U.useRef(null),O=U.useRef({});U.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=O.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=O.current[t])||void 0===e||e.blur()},nativeElement:$.current})));const _=e=>s?s(e):e,[I,N]=U.useState(ZA(_(i||"")));U.useEffect((()=>{void 0!==a&&N(ZA(a))}),[a]);const j=Cw((e=>{N(e),l&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>I[t]!==e))&&l(e.join(""))})),P=Cw(((e,t)=>{let n=Jh(I);for(let r=0;r<e;r+=1)n[r]||(n[r]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(ZA(t)),n=n.slice(0,r);for(let r=n.length-1;r>=0&&!n[r];r-=1)n.pop();const o=_(n.map((e=>e||" ")).join(""));return n=ZA(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),T=(e,t)=>{var n;const o=P(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=O.current[i])||void 0===n||n.focus()),j(o)},F=e=>{var t;null===(t=O.current[e])||void 0===t||t.focus()},R={variant:c,disabled:u,status:E,mask:p};return w(U.createElement("div",Object.assign({},v,{ref:$,className:pb(b,{[`${b}-sm`]:"small"===S,[`${b}-lg`]:"large"===S,[`${b}-rtl`]:"rtl"===m},k,x)}),U.createElement(u$.Provider,{value:D},Array.from({length:r}).map(((e,t)=>{const n=`otp-${t}`,r=I[t]||"";return U.createElement(JA,Object.assign({ref:e=>{O.current[t]=e},key:n,index:t,size:S,htmlSize:1,className:`${b}-input`,onChange:T,value:r,onActiveChange:F,autoFocus:0===t&&f},R))})))))}));var tM={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"},nM=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:tM}))},rM=U.forwardRef(nM),oM={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"},iM=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:oM}))},aM=U.forwardRef(iM);const lM=e=>e?U.createElement(aM,null):U.createElement(rM,null),sM={click:"onClick",hover:"onMouseOver"},cM=U.forwardRef(((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=lM}=e,a="object"==typeof o&&void 0!==o.visible,[l,s]=U.useState((()=>!!a&&o.visible)),c=U.useRef(null);U.useEffect((()=>{a&&s(o.visible)}),[a,o]);const u=XA(c),d=()=>{n||(l&&u(),s((e=>{var t;const n=!e;return"object"==typeof o&&(null===(t=o.onVisibleChange)||void 0===t||t.call(o,n)),n})))},{className:f,prefixCls:p,inputPrefixCls:h,size: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=U.useContext(Jy),v=b("input",h),y=b("input-password",p),w=o&&(e=>{const t=sM[r]||"",n=i(l),o={[t]:d,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return U.cloneElement(U.isValidElement(n)?n:U.createElement("span",null,n),o)})(y),x=pb(y,f,{[`${y}-${g}`]:!!g}),k=Object.assign(Object.assign({},Sv(m,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:x,prefixCls:v,suffix:w});return g&&(k.size=g),U.createElement(KA,Object.assign({ref:Ab(t,c)},k))}));const uM=U.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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:m,direction:b}=U.useContext(Jy),v=U.useRef(!1),y=m("input-search",n),w=m("input",r),{compactSize:x}=SC(y,b),k=mC((e=>{var t;return null!==(t=null!=i?i:x)&&void 0!==t?t:e})),S=U.useRef(null),C=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},D="boolean"==typeof l?U.createElement(VN,null):null,$=`${y}-button`;let O;const _=l||{},I=_.type&&!0===_.type.__ANT_BUTTON;O=I||"button"===_.type?Mk(_,Object.assign({onMouseDown:C,onClick:e=>{var t,n;null===(n=null===(t=null==_?void 0:_.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},I?{className:$,size:k}:{})):U.createElement(bE,{className:$,type:l?"primary":void 0,size:k,disabled:u,key:"enterButton",onMouseDown:C,onClick:E,loading:c,icon:D},l),s&&(O=[O,Mk(s,{key:"addonAfter"})]);const N=pb(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${k}`]:!!k,[`${y}-with-button`]:!!l},o);return U.createElement(KA,Object.assign({ref:Ab(S,t),onPressEnter:e=>{v.current||c||E(e)}},g,{size:k,onCompositionStart:e=>{v.current=!0,null==p||p(e)},onCompositionEnd:e=>{v.current=!1,null==h||h(e)},prefixCls:w,addonAfter:O,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}))}));var dM,fM=["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"],pM={};function hM(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;dM||((dM=document.createElement("textarea")).setAttribute("tab-index","-1"),dM.setAttribute("aria-hidden","true"),document.body.appendChild(dM)),e.getAttribute("wrap")?dM.setAttribute("wrap",e.getAttribute("wrap")):dM.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&&pM[n])return pM[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:fM.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(pM[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;dM.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")),dM.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=dM.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){dM.value=" ";var p=dM.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 gM=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],mM=U.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=_d(n,gM),p=Yh($w(o,{value:i,postState:function(e){return null!=e?e:""}}),2),h=p[0],g=p[1],m=U.useRef();U.useImperativeHandle(t,(function(){return{textArea:m.current}}));var b=Yh(U.useMemo((function(){return a&&"object"===Cd(a)?[a.minRows,a.maxRows]:[]}),[a]),2),v=b[0],y=b[1],w=!!a,x=Yh(U.useState(2),2),k=x[0],S=x[1],C=Yh(U.useState(),2),E=C[0],D=C[1],$=function(){S(0)};Gg((function(){w&&$()}),[i,v,y,w]),Gg((function(){if(0===k)S(1);else if(1===k){var e=hM(m.current,!1,v,y);S(2),D(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(b6){}}()}),[k]);var O=U.useRef(),_=function(){_v.cancel(O.current)};U.useEffect((function(){return _}),[]);var I=w?E:null,N=Od(Od({},c),I);return 0!==k&&1!==k||(N.overflowY="hidden",N.overflowX="hidden"),U.createElement(kv,{onResize:function(e){2===k&&(null==l||l(e),a&&(_(),O.current=_v((function(){$()}))))},disabled:!(a||l)},U.createElement("textarea",hh({},f,{ref:m,style:N,className:pb(r,s,Dd({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){g(e.target.value),null==d||d(e)}})))})),bM=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],vM=q.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.showCount,b=e.count,v=e.className,y=e.style,w=e.disabled,x=e.hidden,k=e.classNames,S=e.styles,C=e.onResize,E=_d(e,bM),D=Yh($w(o,{value:i,defaultValue:o}),2),$=D[0],O=D[1],_=null==$?"":String($),I=Yh(q.useState(!1),2),N=I[0],j=I[1],P=q.useRef(!1),T=Yh(q.useState(null),2),F=T[0],R=T[1],A=U.useRef(null),M=function(){var e;return null===(e=A.current)||void 0===e?void 0:e.textArea},L=function(){M().focus()};U.useImperativeHandle(t,(function(){return{resizableTextArea:A.current,focus:L,blur:function(){M().blur()}}})),U.useEffect((function(){j((function(e){return!w&&e}))}),[w]);var z=Yh(q.useState(null),2),B=z[0],H=z[1];q.useEffect((function(){var e;B&&(e=M()).setSelectionRange.apply(e,Jh(B))}),[B]);var W,V=IA(b,m),G=null!==(n=V.max)&&void 0!==n?n:u,X=Number(G)>0,K=V.strategy(_),Y=!!G&&K>G,Q=function(e,t){var n=t;!P.current&&V.exceedFormatter&&V.max&&V.strategy(t)>V.max&&t!==(n=V.exceedFormatter(t,{max:V.max}))&&H([M().selectionStart||0,M().selectionEnd||0]),O(n),DA(e.currentTarget,e,s,n)},J=p;V.show&&(W=V.showFormatter?V.showFormatter({value:_,count:K,maxLength:G}):"".concat(K).concat(X?" / ".concat(G):""),J=q.createElement(q.Fragment,null,J,q.createElement("span",{className:pb("".concat(g,"-data-count"),null==k?void 0:k.count),style:null==S?void 0:S.count},W)));var Z=!E.autoSize&&!m&&!c;return q.createElement(OA,{value:_,allowClear:c,handleReset:function(e){O(""),L(),DA(M(),e,s)},suffix:J,prefixCls:g,classNames:Od(Od({},k),{},{affixWrapper:pb(null==k?void 0:k.affixWrapper,(r={},Dd(r,"".concat(g,"-show-count"),m),Dd(r,"".concat(g,"-textarea-allow-clear"),c),r))}),disabled:w,focused:N,className:pb(v,Y&&"".concat(g,"-out-of-range")),style:Od(Od({},y),F&&!Z?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof W?W:void 0}},hidden:x},q.createElement(mM,hh({},E,{maxLength:u,onKeyDown:function(e){var t=E.onPressEnter,n=E.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){Q(e,e.target.value)},onFocus:function(e){j(!0),null==a||a(e)},onBlur:function(e){j(!1),null==l||l(e)},onCompositionStart:function(e){P.current=!0,null==d||d(e)},onCompositionEnd:function(e){P.current=!1,Q(e,e.currentTarget.value),null==f||f(e)},className:pb(null==k?void 0:k.textarea),style:Od(Od({},null==S?void 0:S.textarea),{},{resize:null==y?void 0:y.resize}),disabled:w,prefixCls:g,onResize:function(e){var t;null==C||C(e),null!==(t=M())&&void 0!==t&&t.style.height&&R(!0)},ref:A})))}));const yM=U.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:p,styles:h,variant: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:b,direction:v,textArea:y}=U.useContext(Jy),w=mC(a),x=U.useContext(tw),k=null!=l?l:x,{status:S,hasFeedback:C,feedbackIcon:E}=U.useContext(u$),D=iN(S,s),$=U.useRef(null);U.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=$.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=$.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.blur()}}}));const O=b("input",o),_=oS(O),[I,N,j]=SF(O,_),[P,T]=gN(g,i),F=GA(null!=c?c:null==y?void 0:y.allowClear);return I(U.createElement(vM,Object.assign({autoComplete:null==y?void 0:y.autoComplete},m,{style:Object.assign(Object.assign({},null==y?void 0:y.style),p),styles:Object.assign(Object.assign({},null==y?void 0:y.styles),h),disabled:k,allowClear:F,className:pb(j,_,f,d,null==y?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},u),null==y?void 0:y.classNames),{textarea:pb({[`${O}-sm`]:"small"===w,[`${O}-lg`]:"large"===w},N,null==u?void 0:u.textarea,null===(n=null==y?void 0:y.classNames)||void 0===n?void 0:n.textarea),variant:pb({[`${O}-${P}`]:T},oN(O,D)),affixWrapper:pb(`${O}-textarea-affix-wrapper`,{[`${O}-affix-wrapper-rtl`]:"rtl"===v,[`${O}-affix-wrapper-sm`]:"small"===w,[`${O}-affix-wrapper-lg`]:"large"===w,[`${O}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},N)}),prefixCls:O,suffix:C&&U.createElement("span",{className:`${O}-textarea-suffix`},E),ref:$})))})),wM=KA;wM.Group=e=>{const{getPrefixCls:t,direction:n}=U.useContext(Jy),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=SF(a),c=pb(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},s,o),u=U.useContext(u$),d=U.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return l(U.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},U.createElement(u$.Provider,{value:d},e.children)))},wM.Search=uM,wM.TextArea=yM,wM.Password=cM,wM.OTP=eM;var xM=U.createContext(null),kM=U.createContext({}),SM=["prefixCls","className","containerRef"],CM=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,o=_d(e,SM),i=U.useContext(kM).panel,a=Mb(i,r);return U.createElement("div",hh({className:pb("".concat(t,"-content"),n),role:"dialog",ref:a},Fk(e,{aria:!0}),{"aria-modal":"true"},o))};function EM(e){return"string"==typeof e&&String(Number(e))===e?(vg(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var DM={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function $M(e,t){var n,r,o,i=e.prefixCls,a=e.open,l=e.placement,s=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,f=e.keyboard,p=e.classNames,h=e.rootClassName,g=e.rootStyle,m=e.zIndex,b=e.className,v=e.id,y=e.style,w=e.motion,x=e.width,k=e.height,S=e.children,C=e.mask,E=e.maskClosable,D=e.maskMotion,$=e.maskClassName,O=e.maskStyle,_=e.afterOpenChange,I=e.onClose,N=e.onMouseEnter,j=e.onMouseOver,P=e.onMouseLeave,T=e.onClick,F=e.onKeyDown,R=e.onKeyUp,A=e.styles,M=U.useRef(),L=U.useRef(),z=U.useRef();U.useImperativeHandle(t,(function(){return M.current}));U.useEffect((function(){var e;a&&d&&(null===(e=M.current)||void 0===e||e.focus({preventScroll:!0}))}),[a]);var B=Yh(U.useState(!1),2),H=B[0],W=B[1],q=U.useContext(xM),V=null!==(n=null!==(r=null===(o="boolean"==typeof c?c?{}:{distance:0}:c||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==q?void 0:q.pushDistance)&&void 0!==n?n:180,G=U.useMemo((function(){return{pushDistance:V,push:function(){W(!0)},pull:function(){W(!1)}}}),[V]);U.useEffect((function(){var e,t;a?null==q||null===(e=q.push)||void 0===e||e.call(q):null==q||null===(t=q.pull)||void 0===t||t.call(q)}),[a]),U.useEffect((function(){return function(){var e;null==q||null===(e=q.pull)||void 0===e||e.call(q)}}),[]);var X=C&&U.createElement(Px,hh({key:"mask"},D,{visible:a}),(function(e,t){var n=e.className,r=e.style;return U.createElement("div",{className:pb("".concat(i,"-mask"),n,null==p?void 0:p.mask,$),style:Od(Od(Od({},r),O),null==A?void 0:A.mask),onClick:E&&a?I:void 0,ref:t})})),K="function"==typeof w?w(l):w,Y={};if(H&&V)switch(l){case"top":Y.transform="translateY(".concat(V,"px)");break;case"bottom":Y.transform="translateY(".concat(-V,"px)");break;case"left":Y.transform="translateX(".concat(V,"px)");break;default:Y.transform="translateX(".concat(-V,"px)")}"left"===l||"right"===l?Y.width=EM(x):Y.height=EM(k);var Q={onMouseEnter:N,onMouseOver:j,onMouseLeave:P,onClick:T,onKeyDown:F,onKeyUp:R},J=U.createElement(Px,hh({key:"panel"},K,{visible:a,forceRender:u,onVisibleChanged:function(e){null==_||_(e)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return U.createElement("div",hh({className:pb("".concat(i,"-content-wrapper"),null==p?void 0:p.wrapper,r),style:Od(Od(Od({},Y),o),null==A?void 0:A.wrapper)},Fk(e,{data:!0})),U.createElement(CM,hh({id:v,containerRef:n,prefixCls:i,className:pb(b,null==p?void 0:p.content),style:Od(Od({},y),null==A?void 0:A.content)},Fk(e,{aria:!0}),Q),S))})),Z=Od({},g);return m&&(Z.zIndex=m),U.createElement(xM.Provider,{value:G},U.createElement("div",{className:pb(i,"".concat(i,"-").concat(l),h,Dd(Dd({},"".concat(i,"-open"),a),"".concat(i,"-inline"),s)),style:Z,tabIndex:-1,ref:M,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case iS.TAB:var r;if(t===iS.TAB)if(n||document.activeElement!==z.current){if(n&&document.activeElement===L.current){var o;null===(o=z.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=L.current)||void 0===r||r.focus({preventScroll:!0});break;case iS.ESC:I&&f&&(e.stopPropagation(),I(e))}}},X,U.createElement("div",{tabIndex:0,ref:L,style:DM,"aria-hidden":"true","data-sentinel":"start"}),J,U.createElement("div",{tabIndex:0,ref:z,style:DM,"aria-hidden":"true","data-sentinel":"end"})))}var OM=U.forwardRef($M),_M=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,k=e.onMouseOver,S=e.onMouseLeave,C=e.onClick,E=e.onKeyDown,D=e.onKeyUp,$=e.panelRef,O=Yh(U.useState(!1),2),_=O[0],I=O[1],N=Yh(U.useState(!1),2),j=N[0],P=N[1];Gg((function(){P(!0)}),[]);var T=!!j&&n,F=U.useRef(),R=U.useRef();Gg((function(){T&&(R.current=document.activeElement)}),[T]);var A=U.useMemo((function(){return{panel:$}}),[$]);if(!v&&!_&&!T&&w)return null;var M={onMouseEnter:x,onMouseOver:k,onMouseLeave:S,onClick:C,onKeyDown:E,onKeyUp:D},L=Od(Od({},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;(I(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 U.createElement(kM.Provider,{value:A},U.createElement(NE,{open:T||v||_,autoDestroy:!1,getContainer:b,autoLock:h&&(T||_)},U.createElement(OM,L)))};const IM=new sb("antSpinMove",{to:{opacity:1}}),NM=new sb("antRotate",{to:{transform:"rotate(405deg)"}}),jM=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},_w(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:IM,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:NM,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},PM=qw("Spin",(e=>{const t=Rw(e,{spinDotDefault:e.colorTextDescription});return[jM(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));let TM=null;const FM=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:l,wrapperClassName:s,style:c,children:u,fullscreen:d=!1}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:p}=U.useContext(Jy),h=p("spin",t),[g,m,b]=PM(h),[v,y]=U.useState((()=>n&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,r)));U.useEffect((()=>{if(n){const e=TR(r,(()=>{y(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}y(!1)}),[r,n]);const w=U.useMemo((()=>void 0!==u&&!d),[u,d]),{direction:x,spin:k}=U.useContext(Jy),S=pb(h,null==k?void 0:k.className,{[`${h}-sm`]:"small"===a,[`${h}-lg`]:"large"===a,[`${h}-spinning`]:v,[`${h}-show-text`]:!!l,[`${h}-fullscreen`]:d,[`${h}-fullscreen-show`]:d&&v,[`${h}-rtl`]:"rtl"===x},o,i,m,b),C=pb(`${h}-container`,{[`${h}-blur`]:v}),E=Sv(f,["indicator"]),D=Object.assign(Object.assign({},null==k?void 0:k.style),c),$=U.createElement("div",Object.assign({},E,{style:D,className:S,"aria-live":"polite","aria-busy":v}),function(e,t){const{indicator:n}=t,r=`${e}-dot`;return null===n?null:U.isValidElement(n)?Mk(n,{className:pb(n.props.className,r)}):U.isValidElement(TM)?Mk(TM,{className:pb(TM.props.className,r)}):U.createElement("span",{className:pb(r,`${e}-dot-spin`)},U.createElement("i",{className:`${e}-dot-item`,key:1}),U.createElement("i",{className:`${e}-dot-item`,key:2}),U.createElement("i",{className:`${e}-dot-item`,key:3}),U.createElement("i",{className:`${e}-dot-item`,key:4}))}(h,e),l&&(w||d)?U.createElement("div",{className:`${h}-text`},l):null);return g(w?U.createElement("div",Object.assign({},E,{className:pb(`${h}-nested-loading`,s,m,b)}),v&&U.createElement("div",{key:"loading"},$),U.createElement("div",{className:C,key:"container"},u)):$)};FM.setDefaultIndicator=e=>{TM=e};const RM=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,loading:l,onClose:s,headerStyle:c,bodyStyle:u,footerStyle:d,children:f,classNames:p,styles:h}=e,{drawer:g}=U.useContext(Jy),m=U.useCallback((e=>U.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${r}-close`},e)),[s]),[b,v]=YE(VE(e),VE(g),{closable:!0,closeIconRender:m});let y;"boolean"==typeof l?y={spinning:l}:"object"==typeof l&&(y=Object.assign({spinning:!0},l));const w=U.useMemo((()=>{var e,t;return o||b?U.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==g?void 0:g.styles)||void 0===e?void 0:e.header),c),null==h?void 0:h.header),className:pb(`${r}-header`,{[`${r}-header-close-only`]:b&&!o&&!a},null===(t=null==g?void 0:g.classNames)||void 0===t?void 0:t.header,null==p?void 0:p.header)},U.createElement("div",{className:`${r}-header-title`},v,o&&U.createElement("div",{className:`${r}-title`},o)),a&&U.createElement("div",{className:`${r}-extra`},a)):null}),[b,v,a,c,r,o]),x=U.useMemo((()=>{var e,t;if(!i)return null;const n=`${r}-footer`;return U.createElement("div",{className:pb(n,null===(e=null==g?void 0:g.classNames)||void 0===e?void 0:e.footer,null==p?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==g?void 0:g.styles)||void 0===t?void 0:t.footer),d),null==h?void 0:h.footer)},i)}),[i,d,r]);return(null==y?void 0:y.spinning)?U.createElement(FM,Object.assign({spinning:!1,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},y)):U.createElement(U.Fragment,null,w,U.createElement("div",{className:pb(`${r}-body`,null==p?void 0:p.body,null===(t=null==g?void 0:g.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==g?void 0:g.styles)||void 0===n?void 0:n.body),u),null==h?void 0:h.body)},f),x)},AM=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},MM=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),LM=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},MM({opacity:e},{opacity:1})),zM=(e,t)=>[LM(.7,t),MM({transform:AM(e)},{transform:"none"})],BM=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:LM(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce(((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:zM(t,n)})),{})}}},HM=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:s,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:h,colorSplit:g,marginXS:m,colorIcon:b,colorIconHover:v,colorBgTextHover:y,colorBgTextActive:w,colorText:x,fontWeightStrong:k,footerPaddingBlock:S,footerPaddingInline:C,calc:E}=e,D=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[D]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${D}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${D}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${D}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${D}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Bg(c)} ${Bg(u)}`,fontSize:d,lineHeight:f,borderBottom:`${Bg(p)} ${h} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:E(d).add(s).equal(),height:E(d).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:m,color:b,fontWeight:k,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:v,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:w}},Pw(e)),[`${n}-title`]:{flex:1,margin:0,color:x,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto"},[`${n}-footer`]:{flexShrink:0,padding:`${Bg(S)} ${Bg(C)}`,borderTop:`${Bg(p)} ${h} ${g}`},"&-rtl":{direction:"rtl"}}}},WM=qw("Drawer",(e=>{const t=Rw(e,{});return[HM(t),BM(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var UM=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qM={distance:180},VM=e=>{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=qM,open:l,afterOpenChange:s,onClose:c,prefixCls:u,getContainer:d,style:f,className:p,visible:h,afterVisibleChange:g,maskStyle:m,drawerStyle:b,contentWrapperStyle:v}=e,y=UM(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:w,getPrefixCls:x,direction:k,drawer:S}=U.useContext(Jy),C=x("drawer",u),[E,D,$]=WM(C),O=void 0===d&&w?()=>w(document.body):d,_=pb({"no-mask":!i,[`${C}-rtl`]:"rtl"===k},t,D,$),I=U.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),N=U.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),j={motionName:iC(C,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},P=g$(),[T,F]=CS("Drawer",y.zIndex),{classNames:R={},styles:A={}}=y,{classNames:M={},styles:L={}}=S||{};return E(U.createElement(CC,null,U.createElement(d$,{status:!0,override:!0},U.createElement(yS.Provider,{value:F},U.createElement(_M,Object.assign({prefixCls:C,onClose:c,maskMotion:j,motion:e=>({motionName:iC(C,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},y,{classNames:{mask:pb(R.mask,M.mask),content:pb(R.content,M.content),wrapper:pb(R.wrapper,M.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},A.mask),m),L.mask),content:Object.assign(Object.assign(Object.assign({},A.content),b),L.content),wrapper:Object.assign(Object.assign(Object.assign({},A.wrapper),v),L.wrapper)},open:null!=l?l:h,mask:i,push:a,width:I,height:N,style:Object.assign(Object.assign({},null==S?void 0:S.style),f),className:pb(null==S?void 0:S.className,p),rootClassName:_,getContainer:O,afterOpenChange:null!=s?s:g,panelRef:P,zIndex:T}),U.createElement(RM,Object.assign({prefixCls:C},y,{onClose:c})))))))};function GM(e){return["small","middle","large"].includes(e)}function XM(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}VM._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=UM(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=U.useContext(Jy),l=a("drawer",t),[s,c,u]=WM(l),d=pb(l,`${l}-pure`,`${l}-${o}`,c,u,r);return s(U.createElement("div",{className:d,style:n},U.createElement(RM,Object.assign({prefixCls:l},i))))};const KM=q.createContext({latestIndex:0}),YM=KM.Provider,QM=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=U.useContext(KM);return null==r?null:U.createElement(U.Fragment,null,U.createElement("div",{className:t,style:i},r),n<a&&o&&U.createElement("span",{className:`${t}-split`},o))};const JM=U.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=U.useContext(Jy),{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(l)?l:[l,l],k=GM(x),S=GM(w),C=XM(x),E=XM(w),D=Pb(d,{keepEmpty:!0}),$=void 0===s&&"horizontal"===f?"center":s,O=o("space",p),[_,I,N]=wC(O),j=pb(O,null==i?void 0:i.className,I,`${O}-${f}`,{[`${O}-rtl`]:"rtl"===a,[`${O}-align-${$}`]:$,[`${O}-gap-row-${x}`]:k,[`${O}-gap-col-${w}`]:S},c,u,N),P=pb(`${O}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item);let T=0;const F=D.map(((e,t)=>{var n,r;null!=e&&(T=t);const o=e&&e.key||`${P}-${t}`;return U.createElement(QM,{className:P,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)})),R=U.useMemo((()=>({latestIndex:T})),[T]);if(0===D.length)return null;const A={};return m&&(A.flexWrap="wrap"),!S&&E&&(A.columnGap=w),!k&&C&&(A.rowGap=x),_(U.createElement("div",Object.assign({ref:t,className:j,style:Object.assign(Object.assign(Object.assign({},A),null==i?void 0:i.style),g)},y),U.createElement(YM,{value:R},F)))})),ZM=JM;function eL(e){const[t,n]=U.useState(e);return U.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}ZM.Compact=e=>{const{getPrefixCls:t,direction:n}=U.useContext(Jy),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,u=xC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=mC((e=>null!=r?r:e)),f=t("space-compact",a),[p,h]=wC(f),g=pb(f,h,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:i,[`${f}-vertical`]:"vertical"===o},l,s),m=U.useContext(kC),b=Pb(c),v=U.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return U.createElement(EC,{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(U.createElement("div",Object.assign({className:g},u),v))};const tL=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},nL=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'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 ${Bg(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),rL=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},oL=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},_w(e)),nL(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},rL(e,e.controlHeightSM)),"&-large":Object.assign({},rL(e,e.controlHeightLG))})}},iL=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({},_w(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,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:q$,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},aL=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"}}}}},lL=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-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"}}}}},sL=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),cL=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:sL(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},uL=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`]:sL(e),[`@media (max-width: ${Bg(e.screenXSMax)})`]:[cL(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:sL(e)}}],[`@media (max-width: ${Bg(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:sL(e)}},[`@media (max-width: ${Bg(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:sL(e)}},[`@media (max-width: ${Bg(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:sL(e)}}}},dL=(e,t)=>Rw(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),fL=qw("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=dL(e,n);return[oL(r),iL(r),tL(r),aL(r),lL(r),uL(r),w$(r),q$]}),(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,inlineItemMarginBottom:0})),{order:-1e3}),pL=[];function hL(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 gL=e=>{let{help:t,helpStatus:n,errors:r=pL,warnings:o=pL,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=U.useContext(c$),c=`${s}-item-explain`,u=oS(s),[d,f,p]=fL(s,u),h=U.useMemo((()=>oC(s)),[s]),g=eL(r),m=eL(o),b=U.useMemo((()=>null!=t?[hL(t,"help",n)]:[].concat(Jh(g.map(((e,t)=>hL(e,"error","error",t)))),Jh(m.map(((e,t)=>hL(e,"warning","warning",t)))))),[t,n,g,m]),v={};return a&&(v.id=`${a}_help`),d(U.createElement(Px,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:l},(e=>{const{className:t,style:n}=e;return U.createElement("div",Object.assign({},v,{className:pb(c,t,p,u,i,f),style:n,role:"alert"}),U.createElement(Wx,Object.assign({keys:b},oC(s),{motionName:`${s}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return U.createElement("div",{key:t,className:pb(o,{[`${c}-${r}`]:r}),style:i},n)})))})))},mL=["parentNode"],bL="form_item";function vL(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function yL(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return mL.includes(n)?`${bL}_${n}`:n}function wL(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 xL(e){return vL(e).join("_")}function kL(e){const[t]=JD(),n=U.useRef({}),r=U.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=xL(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=function(e,t){const n=t.getFieldInstance(e);if(n instanceof HTMLElement)return n;if((null==n?void 0:n.nativeElement)instanceof HTMLElement)return n.nativeElement;const r=yL(vL(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}(e,r);n&&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(nS(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:a,left:l}of nS(e,rS(t))){const e=a-n.top+n.bottom,t=l-n.left+n.right;i.scroll({top:e,left:t,behavior:o})}}(n,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=xL(e);return n.current[t]}})),[e,t]);return[r]}const SL=(e,t)=>{const n=U.useContext(tw),{getPrefixCls:r,direction:o,form:i}=U.useContext(Jy),{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:k,style:S,feedbackIcons:C,variant:E}=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=mC(c),O=U.useContext(Bv),_=U.useMemo((()=>void 0!==w?w:!b&&(!i||void 0===i.requiredMark||i.requiredMark)),[b,w,i]),I=null!=f?f:null==i?void 0:i.colon,N=r("form",a),j=oS(N),[P,T,F]=fL(N,j),R=pb(N,`${N}-${v}`,{[`${N}-hide-required-mark`]:!1===_,[`${N}-rtl`]:"rtl"===o,[`${N}-${$}`]:$},F,j,T,null==i?void 0:i.className,l,s),[A]=kL(d),{__INTERNAL__:M}=A;M.name=k;const L=U.useMemo((()=>({name:k,labelAlign:p,labelCol:g,labelWrap:h,wrapperCol:m,vertical:"vertical"===v,colon:I,requiredMark:_,itemRef:M.itemRef,form:A,feedbackIcons:C})),[k,p,g,m,v,I,_,A,C]);U.useImperativeHandle(t,(()=>A));const z=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),A.scrollToField(t,n)}};return P(U.createElement(f$.Provider,{value:E},U.createElement(nw,{disabled:u},U.createElement(rw.Provider,{value:$},U.createElement(s$,{validateMessages:O},U.createElement(a$.Provider,{value:L},U.createElement(i$,Object.assign({id:k},D,{name:k,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void z(y,t);i&&void 0!==i.scrollToFirstError&&z(i.scrollToFirstError,t)}},form:A,style:Object.assign(Object.assign({},null==i?void 0:i.style),S),className:R}))))))))},CL=U.forwardRef(SL);const EL=()=>{const{status:e,errors:t=[],warnings:n=[]}=U.useContext(u$);return{status:e,errors:t,warnings:n}};EL.Context=u$;const DL=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},$L=Ww(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=dL(e,n);return[DL(r)]})),OL=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=U.useContext(a$),g=r||h.wrapperCol||{},m=pb(`${p}-control`,g.className),b=U.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const v=U.createElement("div",{className:`${p}-control-input`},U.createElement("div",{className:`${p}-control-input-content`},o)),y=U.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||i.length||a.length?U.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},U.createElement(c$.Provider,{value:y},U.createElement(gL,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&U.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id=`${u}_extra`);const k=s?U.createElement("div",Object.assign({},x,{className:`${p}-extra`}),s):null,S=l&&"pro_table_render"===l.mark&&l.render?l.render(e,{input:v,errorList:w,extra:k}):U.createElement(U.Fragment,null,v,w,k);return U.createElement(a$.Provider,{value:b},U.createElement(HR,Object.assign({},g,{className:m}),S),U.createElement($L,{prefixCls:t}))};var _L={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"},IL=function(e,t){return U.createElement(mk,hh({},e,{ref:t,icon:_L}))},NL=U.forwardRef(IL);const jL=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]=Qv("Form"),{vertical:f,labelAlign:p,labelCol:h,labelWrap:g,colon:m}=U.useContext(a$);if(!n)return null;const b=o||h||{},v=`${t}-item-label`,y=pb(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 k=function(e){return e?"object"!=typeof e||U.isValidElement(e)?{title:e}:e:null}(c);if(k){const{icon:e=U.createElement(NL,null)}=k,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(k,["icon"]),r=U.createElement(Rj,Object.assign({},n),U.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));w=U.createElement(U.Fragment,null,w,r)}const S="optional"===s,C="function"==typeof s;C?w=s(w,{required:!!l}):S&&!l&&(w=U.createElement(U.Fragment,null,w,U.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=qv.Form)||void 0===u?void 0:u.optional))));const E=pb({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:S||C,[`${t}-item-no-colon`]:!x});return U.createElement(HR,Object.assign({},b,{className:y}),U.createElement("label",{htmlFor:r,className:E,title:"string"==typeof n?n:""},w))},PL={success:vk,warning:$k,error:xk,validating:vS};function TL(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const c=`${a}-item`,{feedbackIcons:u}=U.useContext(a$),d=wL(n,r,l,null,!!o,i),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:g}=U.useContext(u$),m=U.useMemo((()=>{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&&PL[d];t=!1!==a&&l?U.createElement("span",{className:pb(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||U.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 U.createElement(u$.Provider,{value:m},t)}var FL=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function RL(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:u,hidden:d,children:f,fieldId:p,required:h,isRequired:g,onSubItemMetaChange:m}=e,b=FL(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),v=`${t}-item`,{requiredMark:y}=U.useContext(a$),w=U.useRef(null),x=eL(a),k=eL(l),S=null!=i,C=!!(S||a.length||l.length),E=!!w.current&&aC(w.current),[D,$]=U.useState(null);Gg((()=>{if(C&&w.current){const e=getComputedStyle(w.current);$(parseInt(e.marginBottom,10))}}),[C,E]);const O=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return wL(e?x:c.errors,e?k:c.warnings,c,"",!!u,s)}(),_=pb(v,n,r,{[`${v}-with-help`]:S||x.length||k.length,[`${v}-has-feedback`]:O&&u,[`${v}-has-success`]:"success"===O,[`${v}-has-warning`]:"warning"===O,[`${v}-has-error`]:"error"===O,[`${v}-is-validating`]:"validating"===O,[`${v}-hidden`]:d});return U.createElement("div",{className:_,style:o,ref:w},U.createElement(UR,Object.assign({className:`${v}-row`},Sv(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"])),U.createElement(jL,Object.assign({htmlFor:p},e,{requiredMark:y,required:null!=h?h:g,prefixCls:t})),U.createElement(OL,Object.assign({},e,c,{errors:x,warnings:k,prefixCls:t,status:O,help:i,marginBottom:D,onErrorVisibleChanged:e=>{e||$(null)}}),U.createElement(l$.Provider,{value:m},U.createElement(TL,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:O},f)))),!!D&&U.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-D}}))}const AL=U.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const ML=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}=U.useContext(Jy),{name:b}=U.useContext(a$),v=function(e){if("function"==typeof e)return e;const t=Pb(e);return t.length<=1?t[0]:t}(s),y="function"==typeof v,w=U.useContext(l$),{validateTrigger:x}=U.useContext(ZE),k=void 0!==p?p:x,S=!(null==t),C=m("form",i),E=oS(C),[D,$,O]=fL(C,E);zv();const _=U.useContext(eD),I=U.useRef(),[N,j]=function(e){const[t,n]=U.useState(e),r=U.useRef(null),o=U.useRef([]),i=U.useRef(!1);return U.useEffect((()=>(i.current=!1,()=>{i.current=!0,_v.cancel(r.current),r.current=null})),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=_v((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[P,T]=Ew((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),F=(e,t)=>{j((n=>{const r=Object.assign({},n),o=[].concat(Jh(e.name.slice(0,-1)),Jh(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[R,A]=U.useMemo((()=>{const e=Jh(P.errors),t=Jh(P.warnings);return Object.values(N).forEach((n=>{e.push.apply(e,Jh(n.errors||[])),t.push.apply(t,Jh(n.warnings||[]))})),[e,t]}),[N,P.errors,P.warnings]),M=function(){const{itemRef:e}=U.useContext(a$),t=U.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=Ab(e(n),o)),t.current.ref}}();function L(t,o,i){return n&&!h?U.createElement(TL,{prefixCls:C,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:R,warnings:A,noStyle:!0},t):U.createElement(RL,Object.assign({key:"row"},e,{className:pb(r,O,E,$),prefixCls:C,fieldId:o,isRequired:i,errors:R,warnings:A,meta:P,onSubItemMetaChange:F}),t)}if(!S&&!y&&!o)return D(L(v));let z={};return"string"==typeof u?z.label=u:t&&(z.label=String(t)),d&&(z=Object.assign(Object.assign({},z),d)),D(U.createElement(qD,Object.assign({},e,{messageVariables:z,trigger:f,validateTrigger:k,onMetaChange:e=>{const t=null==_?void 0:_.getKey(e.name);if(T(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=I.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(Jh(r)),I.current=n}w(e,n)}}}),((n,r,i)=>{const s=vL(t).length&&r?r.name:[],u=yL(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)&&S)h=v;else if(y&&(!a&&!o||S));else if(!o||y||S)if(U.isValidElement(v)){const t=Object.assign(Object.assign({},v.props),p);if(t.id||(t.id=u),g||R.length>0||A.length>0||e.extra){const n=[];(g||R.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}R.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),Lb(v)&&(t.ref=M(s,v));new Set([].concat(Jh(vL(f)),Jh(vL(k)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];null===(r=p[e])||void 0===r||(t=r).call.apply(t,[p].concat(l)),null===(i=(o=v.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(l))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];h=U.createElement(AL,{control:p,update:v,childProps:n},Mk(v,t))}else h=y&&(a||o)&&!S?v(i):v;else;return L(h,u,d)})))};ML.useStatus=EL;const LL=CL;LL.Item=ML,LL.List=e=>{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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","children"]);const{getPrefixCls:o}=U.useContext(Jy),i=o("form",t),a=U.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return U.createElement(VD,Object.assign({},r),((e,t,r)=>U.createElement(c$.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},LL.ErrorList=gL,LL.useForm=kL,LL.useFormInstance=function(){const{form:e}=U.useContext(a$);return e},LL.useWatch=o$,LL.Provider=s$,LL.create=()=>{};let zL=null,BL=e=>e(),HL=[],WL={};function UL(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=WL,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const qL=q.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=U.useContext(Jy),i=WL.prefixCls||o("message"),a=U.useContext(r_),[l,s]=RS(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return q.useImperativeHandle(t,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),l[t].apply(l,arguments)}})),{instance:e,sync:r}})),s})),VL=q.forwardRef(((e,t)=>{const[n,r]=q.useState(UL),o=()=>{r(UL)};q.useEffect(o,[]);const i=Zx(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=q.createElement(qL,{ref:t,sync:o,messageConfig:n});return q.createElement(nk,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)}));function GL(){if(!zL){const e=document.createDocumentFragment(),t={fragment:e};return zL=t,void BL((()=>{XS(q.createElement(VL,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,GL())}))}}),e)}))}zL.instance&&(HL.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":BL((()=>{const t=zL.instance.open(Object.assign(Object.assign({},WL),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":BL((()=>{null==zL||zL.instance.destroy(e.key)}));break;default:BL((()=>{var n;const r=(n=zL.instance)[t].apply(n,Jh(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),HL=[])}const XL={open:function(e){const t=_S((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return HL.push(r),()=>{n?BL((()=>{n()})):r.skipped=!0}}));return GL(),t},destroy:e=>{HL.push({type:"destroy",key:e}),GL()},config:function(e){WL=Object.assign(Object.assign({},WL),e),BL((()=>{var e;null===(e=null==zL?void 0:zL.sync)||void 0===e||e.call(zL)}))},useMessage:AS,_InternalPanelDoNotUseOrYouWillBeFired: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=U.useContext(Jy),s=t||l("message"),c=oS(s),[u,d,f]=DS(s,c);return u(U.createElement(aS,Object.assign({},a,{prefixCls:s,className:pb(n,d,`${s}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:U.createElement(OS,{prefixCls:s,type:r,icon:o},i)})))}},KL=XL;["success","info","warning","error","loading"].forEach((e=>{KL[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){const n=_S((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return HL.push(o),()=>{r?BL((()=>{r()})):o.skipped=!0}}));return GL(),n}(e,n)}}));const YL=l_((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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=U.useContext(Jy),d=u(),f=t||u("modal"),p=oS(d),[h,g,m]=dO(f,p),b=`${f}-confirm`;let v={};return v=i?{closable:null!=o&&o,title:"",footer:"",children:U.createElement(bO,Object.assign({},e,{prefixCls:f,confirmPrefixCls:b,rootPrefixCls:d,content:l}))}:{closable:null==o||o,title:a,footer:null!==s&&U.createElement(y$,Object.assign({},e)),children:l},h(U.createElement(BE,Object.assign({prefixCls:f,className:pb(g,`${f}-pure-panel`,i&&b,i&&`${b}-${i}`,n,m,p)},c,{closeIcon:v$(f,r),closable:o},v)))}));function QL(e){return CO(EO(e))}const JL=hO;JL.useModal=TO,JL.info=function(e){return CO(DO(e))},JL.success=function(e){return CO($O(e))},JL.error=function(e){return CO(OO(e))},JL.warning=QL,JL.warn=QL,JL.confirm=function(e){return CO(_O(e))},JL.destroyAll=function(){for(;wO.length;){const e=wO.pop();e&&e()}},JL.config=function(e){let{rootPrefixCls:t}=e;xO=t},JL._InternalPanelDoNotUseOrYouWillBeFired=YL;let ZL=null,ez=e=>e(),tz=[],nz={};function rz(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=nz,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const oz=q.forwardRef(((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=U.useContext(Jy),i=nz.prefixCls||o("notification"),a=U.useContext(r_),[l,s]=t_(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return q.useEffect(r,[]),q.useImperativeHandle(t,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),l[t].apply(l,arguments)}})),{instance:e,sync:r}})),s})),iz=q.forwardRef(((e,t)=>{const[n,r]=q.useState(rz),o=()=>{r(rz)};q.useEffect(o,[]);const i=Zx(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=q.createElement(oz,{ref:t,sync:o,notificationConfig:n});return q.createElement(nk,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)}));function az(){if(!ZL){const e=document.createDocumentFragment(),t={fragment:e};return ZL=t,void ez((()=>{XS(q.createElement(iz,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,az())}))}}),e)}))}ZL.instance&&(tz.forEach((e=>{switch(e.type){case"open":ez((()=>{ZL.instance.open(Object.assign(Object.assign({},nz),e.config))}));break;case"destroy":ez((()=>{null==ZL||ZL.instance.destroy(e.key)}))}})),tz=[])}function lz(e){tz.push({type:"open",config:e}),az()}const sz={open:lz,destroy:e=>{tz.push({type:"destroy",key:e}),az()},config:function(e){nz=Object.assign(Object.assign({},nz),e),ez((()=>{var e;null===(e=null==ZL?void 0:ZL.sync)||void 0===e||e.call(ZL)}))},useNotification:n_,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:s=!0,closeIcon:c,className: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:f}=U.useContext(Jy),p=t||f("notification"),h=`${p}-notice`,g=oS(p),[m,b,v]=qO(p,g);return m(U.createElement("div",{className:pb(`${h}-pure-panel`,b,n,v,g)},U.createElement(VO,{prefixCls:p}),U.createElement(aS,Object.assign({},d,{prefixCls:p,eventKey:"pure",duration:null,closable:s,className:pb({notificationClassName:u}),closeIcon:GO(p,c),content:U.createElement(KO,{prefixCls:h,icon:r,type:o,message:i,description:a,btn:l})}))))}},cz=sz;["success","info","warning","error"].forEach((e=>{cz[e]=t=>lz(Object.assign(Object.assign({},t),{type:e}))}));const uz=qw("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 dz=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=U.createElement($k,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:h}=e,{getPrefixCls:g}=U.useContext(Jy),[m]=Qv("Popconfirm",qv.Popconfirm),b=cj(o),v=cj(i);return U.createElement("div",{className:`${t}-inner-content`,onClick:h},U.createElement("div",{className:`${t}-message`},c&&U.createElement("span",{className:`${t}-message-icon`},c),U.createElement("div",{className:`${t}-message-text`},b&&U.createElement("div",{className:pb(`${t}-title`)},b),v&&U.createElement("div",{className:`${t}-description`},v))),U.createElement("div",{className:`${t}-buttons`},u&&U.createElement(bE,Object.assign({onClick:p,size:"small"},r),a||(null==m?void 0:m.cancelText)),U.createElement(yE,{buttonProps:Object.assign(Object.assign({size:"small"},_C(s)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(null==m?void 0:m.okText))))};const fz=U.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:l="primary",icon:s=U.createElement($k,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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=U.useContext(Jy),[g,m]=$w(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),b=(e,t)=>{m(e,!0),null==f||f(e),null==d||d(e,t)},v=h("popconfirm",o),y=pb(v,u),[w]=uz(v);return w(U.createElement(Uj,Object.assign({},Sv(p,["title"]),{trigger:a,placement:i,onOpenChange:(t,n)=>{const{disabled:r=!1}=e;r||b(t,n)},open:g,ref:t,overlayClassName:y,content:U.createElement(dz,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}),c))})),pz=fz;pz._InternalPanelDoNotUseOrYouWillBeFired=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=U.useContext(Jy),l=a("popconfirm",t),[s]=uz(l);return s(U.createElement(Bj,{placement:n,className:pb(l,r),style:o,content:U.createElement(dz,Object.assign({prefixCls:l},i))}))};var hz=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},gz=function(e){return void 0!==e?"".concat(e,"px"):void 0};function mz(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=U.useRef(null),u=Yh(U.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=Yh(U.useState(null),2),g=h[0],m=h[1],b=Yh(U.useState(null),2),v=b[0],y=b[1];Gg((function(){if(d!==r){var e=p(d),t=p(r),n=hz(e),o=hz(t);f(r),m(n),y(o),e&&t?a():l()}}),[r]);var w=U.useMemo((function(){return gz("rtl"===s?-(null==g?void 0:g.right):null==g?void 0:g.left)}),[s,g]),x=U.useMemo((function(){return gz("rtl"===s?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[s,v]);return g&&v?U.createElement(Px,{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=Od(Od({},e.style),{},{"--thumb-start-left":w,"--thumb-start-width":gz(null==g?void 0:g.width),"--thumb-active-left":x,"--thumb-active-width":gz(null==v?void 0:v.width)}),i={ref:Ab(c,n),style:o,className:pb("".concat(t,"-thumb"),r)};return U.createElement("div",i)})):null}var bz=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function vz(e){return e.map((function(e){if("object"===Cd(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Cd(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Od(Od({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var yz=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 U.createElement("label",{className:pb(n,Dd({},"".concat(t,"-item-disabled"),r))},U.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:o,onChange:function(e){r||s(e,l)}}),U.createElement("div",{className:"".concat(t,"-item-label"),title:a},i))},wz=U.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,l=e.options,s=void 0===l?[]:l,c=e.disabled,u=e.defaultValue,d=e.value,f=e.onChange,p=e.className,h=void 0===p?"":p,g=e.motionName,m=void 0===g?"thumb-motion":g,b=_d(e,bz),v=U.useRef(null),y=U.useMemo((function(){return Ab(v,t)}),[v,t]),w=U.useMemo((function(){return vz(s)}),[s]),x=Yh($w(null===(n=w[0])||void 0===n?void 0:n.value,{value:d,defaultValue:u}),2),k=x[0],S=x[1],C=Yh(U.useState(!1),2),E=C[0],D=C[1],$=function(e,t){c||(S(t),null==f||f(t))},O=Sv(b,["children"]);return U.createElement("div",hh({},O,{className:pb(i,(r={},Dd(r,"".concat(i,"-rtl"),"rtl"===a),Dd(r,"".concat(i,"-disabled"),c),r),h),ref:y}),U.createElement("div",{className:"".concat(i,"-group")},U.createElement(mz,{prefixCls:i,value:k,containerRef:v,motionName:"".concat(i,"-").concat(m),direction:a,getValueIndex:function(e){return w.findIndex((function(t){return t.value===e}))},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),w.map((function(e){return U.createElement(yz,hh({},e,{key:e.value,prefixCls:i,className:pb(e.className,"".concat(i,"-item"),Dd({},"".concat(i,"-item-selected"),e.value===k&&!E)),checked:e.value===k,onChange:$,disabled:!!c||!!e.disabled}))}))))}));function xz(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function kz(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Sz=Object.assign({overflow:"hidden"},Ow),Cz=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_w(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,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({},kz(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,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:n,lineHeight:Bg(n),padding:`0 ${Bg(e.segmentedPaddingHorizontal)}`},Sz),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},kz(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Bg(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:Bg(r),padding:`0 ${Bg(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:Bg(o),padding:`0 ${Bg(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),xz(`&-disabled ${t}-item`,e)),xz(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Ez=qw("Segmented",(e=>{const{lineWidth:t,calc:n}=e,r=Rw(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Cz(r)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}}));var Dz=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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $z=U.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:l="middle",style:s}=e,c=Dz(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:f}=U.useContext(Jy),p=u("segmented",n),[h,g,m]=Ez(p),b=mC(l),v=U.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=Dz(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:U.createElement(U.Fragment,null,U.createElement("span",{className:`${p}-item-icon`},t),n&&U.createElement("span",null,n))})}return e}))),[a,p]),y=pb(r,o,null==f?void 0:f.className,{[`${p}-block`]:i,[`${p}-sm`]:"small"===b,[`${p}-lg`]:"large"===b},g,m),w=Object.assign(Object.assign({},null==f?void 0:f.style),s);return h(U.createElement(wz,Object.assign({},c,{className:y,style:w,options:v,ref:t,prefixCls:p,direction:d})))}));function Oz(e,t,n){return(e-t)/(n-t)}function _z(e,t,n,r){var o=Oz(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 Iz(e,t){return Array.isArray(e)?e[t]:e}var Nz=U.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),jz=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],Pz=U.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.value,i=e.valueIndex,a=e.onStartMove,l=e.style,s=e.render,c=e.dragging,u=e.onOffsetChange,d=e.onChangeComplete,f=e.onFocus,p=e.onMouseEnter,h=_d(e,jz),g=U.useContext(Nz),m=g.min,b=g.max,v=g.direction,y=g.disabled,w=g.keyboard,x=g.range,k=g.tabIndex,S=g.ariaLabelForHandle,C=g.ariaLabelledByForHandle,E=g.ariaValueTextFormatterForHandle,D=g.styles,$=g.classNames,O="".concat(r,"-handle"),_=function(e){y||a(e,i)},I=_z(v,o,m,b),N={};null!==i&&(N={tabIndex:y?null:Iz(k,i),role:"slider","aria-valuemin":m,"aria-valuemax":b,"aria-valuenow":o,"aria-disabled":y,"aria-label":Iz(S,i),"aria-labelledby":Iz(C,i),"aria-valuetext":null===(n=Iz(E,i))||void 0===n?void 0:n(o),"aria-orientation":"ltr"===v||"rtl"===v?"horizontal":"vertical",onMouseDown:_,onTouchStart:_,onFocus:function(e){null==f||f(e,i)},onMouseEnter:function(e){p(e,i)},onKeyDown:function(e){if(!y&&w){var t=null;switch(e.which||e.keyCode){case iS.LEFT:t="ltr"===v||"btt"===v?-1:1;break;case iS.RIGHT:t="ltr"===v||"btt"===v?1:-1;break;case iS.UP:t="ttb"!==v?1:-1;break;case iS.DOWN:t="ttb"!==v?-1:1;break;case iS.HOME:t="min";break;case iS.END:t="max";break;case iS.PAGE_UP:t=2;break;case iS.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),u(t,i))}},onKeyUp:function(e){switch(e.which||e.keyCode){case iS.LEFT:case iS.RIGHT:case iS.UP:case iS.DOWN:case iS.HOME:case iS.END:case iS.PAGE_UP:case iS.PAGE_DOWN:null==d||d()}}});var j=U.createElement("div",hh({ref:t,className:pb(O,Dd(Dd({},"".concat(O,"-").concat(i+1),null!==i&&x),"".concat(O,"-dragging"),c),$.handle),style:Od(Od(Od({},I),l),D.handle)},N,h));return s&&(j=s(j,{index:i,prefixCls:r,value:o,dragging:c})),j})),Tz=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"],Fz=U.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.activeHandleRender,c=e.draggingIndex,u=e.onFocus,d=_d(e,Tz),f=U.useRef({});U.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=f.current[e])||void 0===t||t.focus()}}}));var p=Yh(U.useState(-1),2),h=p[0],g=p[1],m=Od({prefixCls:n,onStartMove:o,onOffsetChange:i,render:l,onFocus:function(e,t){g(t),null==u||u(e)},onMouseEnter:function(e,t){g(t)}},d);return U.createElement(U.Fragment,null,a.map((function(e,t){return U.createElement(Pz,hh({ref:function(e){e?f.current[t]=e:delete f.current[t]},dragging:c===t,style:Iz(r,t),key:t,value:e,valueIndex:t},m))})),s&&U.createElement(Pz,hh({key:"a11y"},m,{value:a[h],valueIndex:null,dragging:-1!==c,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))})),Rz=function(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,i=e.onClick,a=U.useContext(Nz),l=a.min,s=a.max,c=a.direction,u=a.includedStart,d=a.includedEnd,f=a.included,p="".concat(t,"-text"),h=_z(c,o,l,s);return U.createElement("span",{className:pb(p,Dd({},"".concat(p,"-active"),f&&u<=o&&o<=d)),style:Od(Od({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){i(o)}},r)},Az=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?U.createElement("div",{className:o},n.map((function(e){var t=e.value,n=e.style,i=e.label;return U.createElement(Rz,{key:t,prefixCls:o,style:n,value:t,onClick:r},i)}))):null},Mz=function(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,i=U.useContext(Nz),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=Od(Od({},_z(s,n,a,l)),"function"==typeof r?r(n):r);return p&&(h=Od(Od({},h),"function"==typeof o?o(n):o)),U.createElement("span",{className:pb(f,Dd({},"".concat(f,"-active"),p)),style:h})},Lz=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=U.useContext(Nz),l=a.min,s=a.max,c=a.step,u=U.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 U.createElement("div",{className:"".concat(t,"-step")},u.map((function(e){return U.createElement(Mz,{prefixCls:t,key:e,value:e,style:o,activeStyle:i})})))},zz=function(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,i=e.index,a=e.onStartMove,l=e.replaceCls,s=U.useContext(Nz),c=s.direction,u=s.min,d=s.max,f=s.disabled,p=s.range,h=s.classNames,g="".concat(t,"-track"),m=Oz(r,u,d),b=Oz(o,u,d),v=function(e){!f&&a&&a(e,-1)},y={};switch(c){case"rtl":y.right="".concat(100*m,"%"),y.width="".concat(100*b-100*m,"%");break;case"btt":y.bottom="".concat(100*m,"%"),y.height="".concat(100*b-100*m,"%");break;case"ttb":y.top="".concat(100*m,"%"),y.height="".concat(100*b-100*m,"%");break;default:y.left="".concat(100*m,"%"),y.width="".concat(100*b-100*m,"%")}var w=l||pb(g,Dd(Dd({},"".concat(g,"-").concat(i+1),null!==i&&p),"".concat(t,"-track-draggable"),a),h.track);return U.createElement("div",{className:w,style:Od(Od({},y),n),onMouseDown:v,onTouchStart:v})},Bz=function(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=U.useContext(Nz),l=a.included,s=a.range,c=a.min,u=a.styles,d=a.classNames,f=U.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<r.length-1;i+=1)n.push({start:r[i],end:r[i+1]});return n}),[r,s,o,c]);if(!l)return null;var p=d.tracks||u.tracks?U.createElement(zz,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:pb(d.tracks,"".concat(t,"-tracks")),style:u.tracks}):null;return U.createElement(U.Fragment,null,p,f.map((function(e,r){var o=e.start,a=e.end;return U.createElement(zz,{index:r,prefixCls:t,style:Od(Od({},Iz(n,r)),u.track),start:o,end:a,key:r,onStartMove:i})})))};function Hz(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}var Wz=U.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-slider":n,o=e.className,i=e.style,a=e.classNames,l=e.styles,s=e.disabled,c=void 0!==s&&s,u=e.keyboard,d=void 0===u||u,f=e.autoFocus,p=e.onFocus,h=e.onBlur,g=e.min,m=void 0===g?0:g,b=e.max,v=void 0===b?100:b,y=e.step,w=void 0===y?1:y,x=e.value,k=e.defaultValue,S=e.range,C=e.count,E=e.onChange,D=e.onBeforeChange,$=e.onAfterChange,O=e.onChangeComplete,_=e.allowCross,I=void 0===_||_,N=e.pushable,j=void 0!==N&&N,P=e.draggableTrack,T=e.reverse,F=e.vertical,R=e.included,A=void 0===R||R,M=e.startPoint,L=e.trackStyle,z=e.handleStyle,B=e.railStyle,H=e.dotStyle,W=e.activeDotStyle,q=e.marks,V=e.dots,G=e.handleRender,X=e.activeHandleRender,K=e.tabIndex,Y=void 0===K?0:K,Q=e.ariaLabelForHandle,J=e.ariaLabelledByForHandle,Z=e.ariaValueTextFormatterForHandle,ee=U.useRef(null),te=U.useRef(null),ne=U.useMemo((function(){return F?T?"ttb":"btt":T?"rtl":"ltr"}),[T,F]),re=U.useMemo((function(){return isFinite(m)?m:0}),[m]),oe=U.useMemo((function(){return isFinite(v)?v:100}),[v]),ie=U.useMemo((function(){return null!==w&&w<=0?1:w}),[w]),ae=U.useMemo((function(){return"boolean"==typeof j?!!j&&ie:j>=0&&j}),[j,ie]),le=U.useMemo((function(){return Object.keys(q||{}).map((function(e){var t=q[e],n={value:Number(e)};return t&&"object"===Cd(t)&&!U.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}))}),[q]),se=function(e,t,n,r,o,i){var a=U.useCallback((function(n){return Math.max(e,Math.min(t,n))}),[e,t]),l=U.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=U.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);t<m&&(u=e,m=t)})),void 0===u)return a<0?e:t;if("dist"===c)return u;if(Math.abs(a)>1){var b=Jh(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&&e<i};return[s,function(e,t,n){var r=arguments.length>3&&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)),n<a.length-1&&a[n+1]!==l&&(a[n]=Math.min(a[n],a[n+1]-p))}else if("number"==typeof i||null===i){for(var h=n+1;h<a.length;h+=1)for(var g=!0;d(a[h]-a[h-1])&&g;){var m=u(a,1,h);a[h]=m.value,g=m.changed}for(var b=n;b>0;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 k=u(a,-1,w-1);a[w-1]=k.value,x=k.changed}for(var S=0;S<a.length-1;S+=1)for(var C=!0;d(a[S+1]-a[S])&&C;){var E=u(a,1,S+1);a[S+1]=E.value,C=E.changed}}return{value:a[n],values:a}}]}(re,oe,ie,le,I,ae),ce=Yh(se,2),ue=ce[0],de=ce[1],fe=Yh($w(k,{value:x}),2),pe=fe[0],he=fe[1],ge=U.useMemo((function(){var e=null==pe?[]:Array.isArray(pe)?pe:[pe],t=Yh(e,1)[0],n=null===pe?[]:[void 0===t?re:t];if(S){if(n=Jh(e),C||void 0===pe){var r=C>=0?C+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:re)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ue(e)})),n}),[pe,S,re,C,ue]),me=U.useRef(ge);me.current=ge;var be=function(e){return S?e:e[0]},ve=function(e){var t=Jh(e).sort((function(e,t){return e-t}));E&&!yg(t,me.current,!0)&&E(be(t)),he(t)},ye=function(){var e=be(me.current);null==$||$(e),vg(!$,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==O||O(e)},we=function(e,t,n,r,o,i,a,l,s){var c=Yh(U.useState(null),2),u=c[0],d=c[1],f=Yh(U.useState(-1),2),p=f[0],h=f[1],g=Yh(U.useState(n),2),m=g[0],b=g[1],v=Yh(U.useState(n),2),y=v[0],w=v[1],x=U.useRef(null),k=U.useRef(null);U.useLayoutEffect((function(){-1===p&&b(n)}),[n,p]),U.useEffect((function(){return function(){document.removeEventListener("mousemove",x.current),document.removeEventListener("mouseup",k.current),document.removeEventListener("touchmove",x.current),document.removeEventListener("touchend",k.current)}}),[]);var S=function(e,t){m.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&d(t),b(e),a(e))},C=Cw((function(e,t){if(-1===e){var n=y[0],a=y[y.length-1],l=r-n,c=o-a,u=t*(o-r);u=Math.max(u,l),u=Math.min(u,c);var d=i(n+u);u=d-n;var f=y.map((function(e){return e+u}));S(f)}else{var p=(o-r)*t,h=Jh(m);h[e]=y[e];var g=s(h,p,e,"dist");S(g.values,g.value)}})),E=U.useMemo((function(){var e=Jh(n).sort((function(e,t){return e-t})),t=Jh(m).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?m:n}),[n,m]);return[p,u,E,function(r,o,i){r.stopPropagation();var a=i||n,s=a[o];h(o),d(s),w(a);var c=Hz(r),u=c.pageX,f=c.pageY,p=function(n){n.preventDefault();var r,i=Hz(n),a=i.pageX,l=i.pageY,s=a-u,c=l-f,d=e.current.getBoundingClientRect(),p=d.width,h=d.height;switch(t){case"btt":r=-c/h;break;case"ttb":r=c/h;break;case"rtl":r=-s/p;break;default:r=s/p}C(o,r)},g=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",p),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",p),x.current=null,k.current=null,h(-1),l()};document.addEventListener("mouseup",g),document.addEventListener("mousemove",p),document.addEventListener("touchend",g),document.addEventListener("touchmove",p),x.current=p,k.current=g}]}(te,ne,ge,re,oe,ue,ve,ye,de),xe=Yh(we,4),ke=xe[0],Se=xe[1],Ce=xe[2],Ee=xe[3],De=function(e,t){if(!c){var n=0,r=oe-re;ge.forEach((function(t,o){var i=Math.abs(e-t);i<=r&&(r=i,n=o)}));var o,i,a=Jh(ge);if(a[n]=e,S&&!ge.length&&void 0===C&&a.push(e),null==D||D(be(a)),ve(a),t)null===(o=document.activeElement)||void 0===o||null===(i=o.blur)||void 0===i||i.call(o),ee.current.focus(n),Ee(t,n,a)}},$e=Yh(U.useState(null),2),Oe=$e[0],_e=$e[1];U.useEffect((function(){if(null!==Oe){var e=ge.indexOf(Oe);e>=0&&ee.current.focus(e)}_e(null)}),[Oe]);var Ie=U.useMemo((function(){return(!P||null!==ie)&&P}),[P,ie]),Ne=function(e,t){Ee(e,t),null==D||D(be(me.current))},je=-1!==ke;U.useEffect((function(){if(!je){var e=ge.lastIndexOf(Se);ee.current.focus(e)}}),[je]);var Pe=U.useMemo((function(){return Jh(Ce).sort((function(e,t){return e-t}))}),[Ce]),Te=Yh(U.useMemo((function(){return S?[Pe[0],Pe[Pe.length-1]]:[re,Pe[0]]}),[Pe,S,re]),2),Fe=Te[0],Re=Te[1];U.useImperativeHandle(t,(function(){return{focus:function(){ee.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=te.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}})),U.useEffect((function(){f&&ee.current.focus(0)}),[]);var Ae=U.useMemo((function(){return{min:re,max:oe,direction:ne,disabled:c,keyboard:d,step:ie,included:A,includedStart:Fe,includedEnd:Re,range:S,tabIndex:Y,ariaLabelForHandle:Q,ariaLabelledByForHandle:J,ariaValueTextFormatterForHandle:Z,styles:l||{},classNames:a||{}}}),[re,oe,ne,c,d,ie,A,Fe,Re,S,Y,Q,J,Z,l,a]);return U.createElement(Nz.Provider,{value:Ae},U.createElement("div",{ref:te,className:pb(r,o,Dd(Dd(Dd(Dd({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),F),"".concat(r,"-horizontal"),!F),"".concat(r,"-with-marks"),le.length)),style:i,onMouseDown:function(e){e.preventDefault();var t,n=te.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(ne){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}De(ue(re+t*(oe-re)),e)}},U.createElement("div",{className:pb("".concat(r,"-rail"),null==a?void 0:a.rail),style:Od(Od({},B),null==l?void 0:l.rail)}),U.createElement(Bz,{prefixCls:r,style:L,values:Pe,startPoint:M,onStartMove:Ie?Ne:void 0}),U.createElement(Lz,{prefixCls:r,marks:le,dots:V,style:H,activeStyle:W}),U.createElement(Fz,{ref:ee,prefixCls:r,style:z,values:Ce,draggingIndex:ke,onStartMove:Ne,onOffsetChange:function(e,t){if(!c){var n=de(ge,e,t);null==D||D(be(ge)),ve(n.values),_e(n.value)}},onFocus:p,onBlur:h,handleRender:G,activeHandleRender:X,onChangeComplete:ye}),U.createElement(Az,{prefixCls:r,marks:le,onClick:De})))}));const Uz=U.forwardRef(((e,t)=>{const{open:n}=e,r=U.useRef(null),o=U.useRef(null);function i(){_v.cancel(o.current),o.current=null}return U.useEffect((()=>(n?o.current=_v((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),o.current=null})):i(),i)),[n,e.title]),U.createElement(Rj,Object.assign({ref:Ab(r,t)},e))})),qz=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:s,calc:c}=e;return{[t]:Object.assign(Object.assign({},_w(e)),{position:"relative",height:r,margin:`${Bg(a)} ${Bg(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Bg(i)} ${Bg(a)}`},[`${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 ${Bg(e.handleLineWidth)} ${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:c(e.handleLineWidth).mul(-1).equal(),insetBlockStart:c(e.handleLineWidth).mul(-1).equal(),width:c(e.handleSize).add(c(e.handleLineWidth).mul(2)).equal(),height:c(e.handleSize).add(c(e.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Bg(e.handleLineWidth)} ${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:c(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),insetBlockStart:c(e.handleSizeHover).sub(e.handleSize).div(2).add(e.handleLineWidthHover).mul(-1).equal(),width:c(e.handleSizeHover).add(c(e.handleLineWidthHover).mul(2)).equal(),height:c(e.handleSizeHover).add(c(e.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Bg(e.handleLineWidthHover)} ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal(),insetBlockStart:e.calc(e.handleSize).sub(e.handleSizeHover).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${Bg(e.handleLineWidth)} 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 ${Bg(e.handleLineWidth)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Vz=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:l}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=l(r).mul(3).sub(o).div(2).equal(),h=l(o).sub(r).div(2).equal(),g=t?{borderWidth:`${Bg(h)} 0`,transform:`translateY(${Bg(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${Bg(h)}`,transform:`translateX(${Bg(e.calc(h).mul(-1).equal())})`};return{[s]:r,[u]:l(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:l(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:l(r).sub(i).div(2).equal()}}},Gz=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Vz(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Xz=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Vz(e,!1)),{height:"100%"})}},Kz=qw("Slider",(e=>{const t=Rw(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[qz(t),Gz(t),Xz(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,handleColorDisabled:new by(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));function Yz(){const[e,t]=U.useState(!1),n=U.useRef(),r=()=>{_v.cancel(n.current)};return U.useEffect((()=>r),[]),[e,e=>{r(),e?t(e):n.current=_v((()=>{t(e)}))}]}const Qz=q.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,tooltip:p={},onChangeComplete: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:m}=e,{direction:b,slider:v,getPrefixCls:y,getPopupContainer:w}=q.useContext(Jy),x=q.useContext(tw),k=null!=l?l:x,[S,C]=Yz(),[E,D]=Yz(),$=Object.assign({},p),{open:O,placement:_,getPopupContainer:I,prefixCls:N,formatter:j}=$,P=null!=O?O:u,T=(S||E)&&!1!==P,F=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(j,c),[R,A]=Yz(),M=(e,t)=>e||(t?"rtl"===b?"left":"right":"top"),L=y("slider",n),[z,B,H]=Kz(L),W=pb(o,null==v?void 0:v.className,i,{[`${L}-rtl`]:"rtl"===b,[`${L}-lock`]:R},B,H);"rtl"!==b||g.vertical||(g.reverse=!g.reverse);const[U,V]=q.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]);q.useEffect((()=>{const e=()=>{_v((()=>{D(!1)}),1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]);const G=U&&!P,X=G?(e,t)=>{const n=q.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return q.createElement(Uz,Object.assign({},$,{prefixCls:y("tooltip",null!=N?N:s),title:F?F(t.value):"",open:null!==F&&T,placement:M(null!=_?_:f,m),key:"tooltip",overlayClassName:`${L}-tooltip`,getPopupContainer:I||d||w}),n)}:void 0,K=Object.assign(Object.assign({},null==v?void 0:v.style),a);return z(q.createElement(Wz,Object.assign({},g,{step:g.step,range:U,draggableTrack:V,className:W,style:K,disabled:k,ref:t,prefixCls:L,handleRender:(e,t)=>{const{index:n}=t,r=e.props,o=Object.assign(Object.assign({},r),{onMouseEnter:e=>{var t;C(!0),null===(t=r.onMouseEnter)||void 0===t||t.call(r,e)},onMouseLeave:e=>{var t;C(!1),null===(t=r.onMouseLeave)||void 0===t||t.call(r,e)},onMouseDown:e=>{var t;D(!0),A(!0),null===(t=r.onMouseDown)||void 0===t||t.call(r,e)},onFocus:e=>{var t,n;D(!0),null===(t=g.onFocus)||void 0===t||t.call(g,e),null===(n=r.onFocus)||void 0===n||n.call(r,e)},onBlur:e=>{var t,n;D(!1),null===(t=g.onBlur)||void 0===t||t.call(g,e),null===(n=r.onBlur)||void 0===n||n.call(r,e)}}),i=q.cloneElement(e,o),a=(!!P||T)&&null!==F;return G?i:q.createElement(Uz,Object.assign({},$,{prefixCls:y("tooltip",null!=N?N:s),title:F?F(t.value):"",open:a,placement:M(null!=_?_:f,m),key:n,overlayClassName:`${L}-tooltip`,getPopupContainer:I||d||w}),i)},activeHandleRender:X,onChangeComplete:e=>{null==h||h(e),A(!1)}})))}));var Jz=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Zz=U.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=_d(e,Jz),m=Yh($w(!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=pb(o,i,(Dd(n={},"".concat(o,"-checked"),b),Dd(n,"".concat(o,"-disabled"),s),n));return U.createElement("button",hh({},g,{type:"button",role:"switch","aria-checked":b,disabled:s,className:w,ref:t,onKeyDown:function(e){e.which===iS.LEFT?y(!1,e):e.which===iS.RIGHT&&y(!0,e),null==h||h(e)},onClick:function(e){var t=y(!b,e);null==f||f(t,e)}}),c,U.createElement("span",{className:"".concat(o,"-inner")},U.createElement("span",{className:"".concat(o,"-inner-checked")},u),U.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))}));Zz.displayName="Switch";const eB=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,u=Bg(s(l).add(s(r).mul(2)).equal()),d=Bg(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Bg(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Bg(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},tB=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},nB=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Bg(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},rB=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,c=Bg(l(a).add(l(r).mul(2)).equal()),u=Bg(l(i).mul(2).equal());return{[t]:{[s]:{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`,[`${s}-checked, ${s}-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",minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},oB=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},_w(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${Bg(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Pw(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"}})}},iB=qw("Switch",(e=>{const t=Rw(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[oB(t),rB(t),nB(t),tB(t),eB(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 by("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}}));const aB=U.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s,checked:c,value:u,defaultChecked:d,defaultValue:f,onChange: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);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,m]=$w(!1,{value:null!=c?c:u,defaultValue:null!=d?d:f}),{getPrefixCls:b,direction:v,switch:y}=U.useContext(Jy),w=U.useContext(tw),x=(null!=o?o:w)||i,k=b("switch",n),S=U.createElement("div",{className:`${k}-handle`},i&&U.createElement(vS,{className:`${k}-loading-icon`})),[C,E,D]=iB(k),$=mC(r),O=pb(null==y?void 0:y.className,{[`${k}-small`]:"small"===$,[`${k}-loading`]:i,[`${k}-rtl`]:"rtl"===v},a,l,E,D),_=Object.assign(Object.assign({},null==y?void 0:y.style),s);return C(U.createElement(gC,{component:"Switch"},U.createElement(Zz,Object.assign({},h,{checked:g,onChange:function(){m(arguments.length<=0?void 0:arguments[0]),null==p||p.apply(void 0,arguments)},prefixCls:k,className:O,style:_,disabled:x,ref:t,loadingIcon:S}))))})),lB=aB;function sB(e){if(null==e)throw new TypeError("Cannot destructure "+e)}lB.__ANT_SWITCH=!0;const cB=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Rw(e,{tagFontSize:o,tagLineHeight:Bg(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},uB=e=>({defaultBg:new by(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),dB=qw("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},_w(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Bg(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,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:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(cB(e))),uB);const fB=U.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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=U.useContext(Jy),d=c("tag",n),[f,p,h]=dB(d),g=pb(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},null==u?void 0:u.className,o,p,h);return f(U.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),null==u?void 0:u.style),className:g,onClick:e=>{null==a||a(!i),null==l||l(e)}})))})),pB=Ww(["Tag","preset"],(e=>(e=>Vw(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(cB(e))),uB);const hB=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},gB=Ww(["Tag","status"],(e=>{const t=cB(e);return[hB(t,"success","Success"),hB(t,"processing","Info"),hB(t,"error","Error"),hB(t,"warning","Warning")]}),uB);const mB=U.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,bordered:u=!0,visible: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<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:h,tag:g}=U.useContext(Jy),[m,b]=U.useState(!0),v=Sv(f,["closeIcon","closable"]);U.useEffect((()=>{void 0!==d&&b(d)}),[d]);const y=Pj(s),w=function(e){return jj.includes(e)}(s),x=y||w,k=Object.assign(Object.assign({backgroundColor:s&&!x?s:void 0},null==g?void 0:g.style),i),S=p("tag",n),[C,E,D]=dB(S),$=pb(S,null==g?void 0:g.className,{[`${S}-${s}`]:x,[`${S}-has-color`]:s&&!x,[`${S}-hidden`]:!m,[`${S}-rtl`]:"rtl"===h,[`${S}-borderless`]:!u},r,o,E,D),O=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||b(!1)},[,_]=YE(VE(e),VE(g),{closable:!1,closeIconRender:e=>Ak(e,U.createElement("span",{className:`${S}-close-icon`,onClick:O},e),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),O(t)},className:pb(null==e?void 0:e.className,`${S}-close-icon`)})))}),I="function"==typeof f.onClick||a&&"a"===a.type,N=l||null,j=N?U.createElement(U.Fragment,null,N,a&&U.createElement("span",null,a)):a,P=U.createElement("span",Object.assign({},v,{ref:t,className:$,style:k}),j,_,y&&U.createElement(pB,{key:"preset",prefixCls:S}),w&&U.createElement(gB,{key:"status",prefixCls:S}));return C(I?U.createElement(gC,{component:"Tag"},P):P)})),bB=mB;bB.CheckableTag=fB;const vB=(e,t)=>new by(e).setAlpha(t).toRgbString(),yB=(e,t)=>new by(e).lighten(t).toHexString(),wB=e=>{const t=Ny(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]}},xB=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:vB(r,.85),colorTextSecondary:vB(r,.65),colorTextTertiary:vB(r,.45),colorTextQuaternary:vB(r,.25),colorFill:vB(r,.18),colorFillSecondary:vB(r,.12),colorFillTertiary:vB(r,.08),colorFillQuaternary:vB(r,.04),colorBgElevated:yB(n,12),colorBgContainer:yB(n,8),colorBgLayout:yB(n,0),colorBgSpotlight:yB(n,26),colorBgBlur:vB(r,.04),colorBorder:yB(n,26),colorBorderSecondary:yB(n,19)}};const kB={defaultConfig:Ky,defaultSeed:Ky.token,useToken:function(){const[e,t,n]=mw();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Gy,darkAlgorithm:(e,t)=>{const n=Object.keys(Ry).map((t=>{const n=Ny(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:Gy(e);return Object.assign(Object.assign(Object.assign({},r),n),My(e,{generateColorPalettes:wB,generateNeutralColorPalettes:xB}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:Gy(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)),Hy(r)),{controlHeight:o}),zy(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?Tg(e.algorithm):Tg(Gy),n=Object.assign(Object.assign({},Ay),null==e?void 0:e.token);return om(n,{override:null==e?void 0:e.token},t,uw)}};var SB,CB=function(){return kB.useToken().token},EB=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},DB=U.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(SB=EB("dark"))&&void 0!==SB&&SB.matches?"dark":"light"}),$B=function(){return U.useContext(DB)},OB=function(){var e=CB(),t=$B(),n=t.appearance,r=t.isDarkMode;return U.useMemo((function(){return t=function(e){var t=e.css,n=e.token;return{buttonDefaultHover:t({backgroundColor:n.colorBgContainer,border:"1px solid ".concat(n.colorBorder),cursor:"pointer",":hover":{color:n.colorPrimaryHover,borderColor:n.colorPrimaryHover},":active":{color:n.colorPrimaryActive,borderColor:n.colorPrimaryActive}})}}({token:e,css:ph,appearance:n,isDarkMode:r}),Object.fromEntries(Object.entries(t).map((function(e){var t=Yh(e,2);return[t[0],t[1].styles]})));var t}),[e,n,r])},_B=function(){var e=CB(),t=OB();return U.useMemo((function(){return Od(Od({},e),{},{stylish:t})}),[e,t])},IB=function(e){return Od(Od({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},NB=function(){var e=qR.useBreakpoint();return U.useMemo((function(){return IB(e)}),[e])},jB=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],PB=["prefixCls","iconPrefixCls"],TB=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var i=null==o?void 0:o.__BABEL_FILE_NAME__,a=!!i;return function(l){var s,c,u=n(),d=U.useContext(r).cache,f=fh(d,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),p=f.cx,h=f.css,g=(s=CB(),c={xs:"@media (max-width: ".concat(s.screenXSMax,"px)"),sm:"@media (max-width: ".concat(s.screenSMMax,"px)"),md:"@media (max-width: ".concat(s.screenMDMax,"px)"),lg:"@media (max-width: ".concat(s.screenLGMax,"px)"),xl:"@media (max-width: ".concat(s.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(s.screenXXLMin,"px)")},U.useMemo((function(){return IB(c)}),[s])),m=U.useMemo((function(){var t;if(e instanceof Function){var n=u.stylish,r=u.appearance,o=u.isDarkMode,s=u.prefixCls,c=u.iconPrefixCls,d=_d(u,jB),f=function(e){return t=e,n=g,Object.entries(t).map((function(e){var t=Yh(e,2),r=t[0],o=t[1],i=o;return sh(o)||(i=ph(o)),n[r]?"".concat(n[r]," {").concat(i.styles,"}"):""})).join("");var t,n};Object.assign(f,g),t=e({token:d,stylish:n,appearance:r,isDarkMode:o,prefixCls:s,iconPrefixCls:c,cx:p,css:ph,responsive:f},l)}else t=e;return"object"===Cd(t)&&(t=sh(t)?h(t):Object.fromEntries(Object.entries(t).map((function(e){var t=Yh(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===Cd(r)?a?[n,h(r,"label:".concat(o))]:[n,h(r)]:[n,r]})))),t}),[l,u]);return U.useMemo((function(){var e=u.prefixCls,t=u.iconPrefixCls,n=_d(u,PB);return{styles:m,cx:p,theme:n,prefixCls:e,iconPrefixCls:t}}),[m,u])}}},FB=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return ee.jsx(t.Provider,{value:e.theme,children:e.children})}},RB=function(e){var t=U.useContext(Wh);return e.theme!==t&&(t=Uh(t)(e.theme)),U.createElement(Wh.Provider,{value:t},e.children)},AB=Wh,MB=U.memo((function(e){var t=e.children,n=e.theme,r=e.prefixCls,o=e.getStaticInstance,i=e.staticInstanceConfig,a=$B(),l=a.appearance,s=a.isDarkMode,c=Yh(KL.useMessage(null==i?void 0:i.message),2),u=c[0],d=c[1],f=Yh(cz.useNotification(null==i?void 0:i.notification),2),p=f[0],h=f[1],g=Yh(JL.useModal(),2),m=g[0],b=g[1];U.useEffect((function(){null==o||o({message:u,modal:m,notification:p})}),[]);var v=U.useMemo((function(){var e=s?kB.darkAlgorithm:kB.defaultAlgorithm,t=n;if("function"==typeof n&&(t=n(l)),!t)return{algorithm:e};var r=t.algorithm?t.algorithm instanceof Array?t.algorithm:[t.algorithm]:[];return Od(Od({},t),{},{algorithm:t.algorithm?[e].concat(Jh(r)):e})}),[n,s]);return ee.jsxs(nk,{prefixCls:r,theme:v,children:[d,h,b,t]})}));function LB(e,t){return function(e){if(Array.isArray(e))return e}(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);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)||function(e,t){if(!e)return;if("string"==typeof e)return zB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zB(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BB(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=LB(q.useState((function(){return void 0!==o?o:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),s=l[0],c=l[1],u=void 0!==o?o:s;return a&&(u=a(u)),[u,function(e){c(e),u!==e&&i&&i(e,u)}]}MB.displayName="AntdProvider";var HB,WB=function(e){"function"==typeof U.startTransition?U.startTransition(e):e()},UB=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){WB((function(){EB("dark").matches?n("dark"):n("light")}))},i=function(){WB((function(){EB("dark").matches?r("dark"):r("light")}))};return U.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),HB||(HB=EB("dark")),HB.addEventListener("change",o),function(){HB.removeEventListener("change",o)};WB((function(){n(t)}))}),[t]),U.useLayoutEffect((function(){return HB||(HB=EB("dark")),HB.addEventListener("change",i),function(){HB.removeEventListener("change",i)}}),[]),null},qB=U.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,l=e.defaultThemeMode,s=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,d=c.themeMode,f=Yh(BB("light",{value:a,defaultValue:null!=l?l:d,onChange:function(e){return null==s?void 0:s(e)}}),2),p=f[0],h=f[1],g=Yh(BB("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==i?void 0:i(e)}}),2),m=g[0],b=g[1],v=Yh(U.useState(null!==(t=EB("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=v[0],w=v[1];return ee.jsxs(DB.Provider,{value:{themeMode:p,setThemeMode:h,appearance:m,setAppearance:b,isDarkMode:"dark"===m,browserPrefers:y},children:["undefined"!=typeof window&&ee.jsx(UB,{themeMode:p,setAppearance:b,setBrowserPrefers:w}),n]})}));qB.displayName="ThemeSwitcher";var VB=["stylish"],GB=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,a=e.StyledThemeProvider,l=$B(),s=l.appearance,c=l.isDarkMode,u=_B(),d=u.stylish,f=_d(u,VB),p=U.useMemo((function(){return r?r instanceof Function?r({token:f,appearance:s,isDarkMode:c}):r:{}}),[r,f,s]),h=U.useMemo((function(){return Od(Od({},p),n instanceof Function?n({token:f,appearance:s,isDarkMode:c}):n)}),[p,n,f,s]),g=U.useMemo((function(){return o?o({token:Od(Od({},f),h),stylish:d,appearance:s,isDarkMode:c,css:ph}):{}}),[o,f,h,d,s]),m=U.useMemo((function(){return Od(Od({},g),d)}),[g,d]),b=Od(Od(Od(Od({},f),h),{},{stylish:m},l),{},{prefixCls:i});return ee.jsx(a,{theme:b,children:t})},XB=new ih;"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=XB);var KB,YB,QB,JB,ZB,eH,tH,nH,rH=function(e){var t,n,r,o=Od(Od({},e),{},{key:null!==(t=e.key)&&void 0!==t?t:"zcss",speedy:null!==(n=e.speedy)&&void 0!==n&&n}),i=Ap({key:o.key,speedy:o.speedy,container:o.container}),a=function(e){return U.createContext(e)}(i),l=function(e){return U.memo((function(t){var n=t.children,r=t.prefix,o=t.speedy,i=t.getStyleManager,a=t.container,l=t.nonce,s=t.insertionPoint,c=t.stylisPlugins,u=t.linters,d=_d(t,db),f=U.useContext(e),p=null!=r?r:f.sheet.key,h=null!=a?a:f.sheet.container,g=null!=o?o:f.sheet.isSpeedy,m=U.useMemo((function(){var e=Ap({speedy:null!=g&&g,key:p,container:h,nonce:l,insertionPoint:s,stylisPlugins:c});if("undefined"!=typeof global){var t=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;t&&(e.cache=t.add(e.cache))}return e}),[p,g,h,l,s,c]);U.useEffect((function(){null==i||i(m)}),[m]);var b=ee.jsx(e.Provider,{value:m,children:n});return Boolean(Object.keys(d).length)||h?ee.jsx(_g,Od(Od({linters:u,container:h},d),{},{children:b})):b}))}(a);i.cache=XB.add(i.cache);var s=U.createContext(o.customToken?o.customToken:{}),c=null===(r=o.styled)||void 0===r?void 0:r.ThemeContext,u=U.createContext({CustomThemeContext:s,StyledThemeContext:c,prefixCls:null==o?void 0:o.prefixCls,iconPrefixCls:null==o?void 0:o.iconPrefixCls}),d=function(e){return function(){var t=e.StyleEngineContext,n=U.useContext(t),r=n.StyledThemeContext,o=n.CustomThemeContext,i=n.prefixCls,a=_B(),l=$B(),s=U.useContext(o),c=U.useContext(null!=r?r:AB)||{},u=U.useContext(nk.ConfigContext),d=u.iconPrefixCls,f=(0,u.getPrefixCls)(),p=i&&"ant"!==i?i:f,h=U.useMemo((function(){return Od(Od(Od(Od({},a),l),s),{},{prefixCls:p,iconPrefixCls:d})}),[a,l,s,p,d]);return c&&0!==Object.keys(c).length?Od(Od({},c),{},{prefixCls:p,iconPrefixCls:d}):h}}({StyleEngineContext:u}),f=TB({hashPriority:o.hashPriority,useTheme:d,EmotionContext:a}),p=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return U.memo((function(t){var r=e();return ee.jsx(qh,{styles:Np(n,void 0,Od(Od({},t),{},{theme:r}))})}))}}(d),h=function(e){return function(t){var n=e(t);return function(e){return n(e).styles}}}(f),g=function(e){var t=e.styledConfig?FB(e.styledConfig):void 0,n=e.StyleEngineContext;return U.memo((function(r){var o=r.children,i=r.customToken,a=r.customStylish,l=r.theme,s=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,d=r.appearance,f=r.defaultAppearance,p=r.onAppearanceChange,h=r.themeMode,g=r.defaultThemeMode,m=r.onThemeModeChange,b=r.styled,v=U.useContext(n),y=v.prefixCls,w=v.StyledThemeContext,x=v.CustomThemeContext,k=U.useContext(x),S=b?FB(b):t||RB,C=c||y;return ee.jsx(n.Provider,{value:{prefixCls:C,StyledThemeContext:(null==b?void 0:b.ThemeContext)||w||AB,CustomThemeContext:x},children:ee.jsx(qB,{themeMode:h,defaultThemeMode:g,onThemeModeChange:m,defaultAppearance:f,appearance:d,onAppearanceChange:p,useTheme:e.useTheme,children:ee.jsx(MB,{prefixCls:C,staticInstanceConfig:u,theme:l,getStaticInstance:s,children:ee.jsx(GB,{prefixCls:C,customToken:i,defaultCustomToken:k,customStylish:a,StyledThemeProvider:S,children:o})})})})}))}({styledConfig:o.styled,StyleEngineContext:u,useTheme:d});g.displayName="AntdStyleThemeProvider";var m=fh(i.cache,{hashPriority:o.hashPriority}).cx,b=i.injectGlobal,v=i.keyframes;return{createStyles:f,createGlobalStyle:p,createStylish:h,css:ph,cx:m,keyframes:v,injectGlobal:b,styleManager:i,useTheme:d,StyleProvider:l,ThemeProvider:g}}({key:"acss",speedy:!1}),oH=rH.createStyles,iH=rH.createGlobalStyle,aH=rH.css,lH=rH.cx,sH=rH.keyframes,cH=rH.ThemeProvider,uH=rH.StyleProvider,dH=rH.useTheme,fH=oH((function(e){var t=e.css,n=sH(KB||(KB=hf(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(YB||(YB=hf(["\n animation: "," 1s linear infinite;\n "])),n)}})),pH=["icon","size","color","fill","className","focusable","spin","fillRule","fillOpacity"],hH=["fontSize"],gH=U.forwardRef((function(e,t){var n=e.icon,r=e.size,o=e.color,i=e.fill,a=void 0===i?"transparent":i,l=e.className,s=e.focusable,c=e.spin,u=e.fillRule,d=e.fillOpacity,f=_d(e,pH),p=fH(),h=p.styles,g=p.cx,m=n,b=U.useMemo((function(){return function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}}(r)}),[r]),v=b.fontSize,y=_d(b,hH);return ee.jsx("span",Od(Od({className:g("anticon",c&&h.spin,l),role:"img"},f),{},{children:ee.jsx(m,Od({color:o,fill:a,fillOpacity:d,fillRule:u,focusable:s,height:v,ref:t,size:v,width:v},y))}))})),mH=oH((function(e,t){var n,r,o=e.css,i=e.token,a=e.isDarkMode,l=t.offset,s=t.outside,c=t.size,u=(null!==(n=null==l?void 0:l.x)&&void 0!==n?n:0)+"px",d=(null!==(r=null==l?void 0:l.y)&&void 0!==r?r:0)+"px",f=s?"0":".1",p=c+"px";return o(QB||(QB=hf(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),f,p,u,d,a?i.colorText:"#fff",a?"transparent":i.colorTextQuaternary)})),bH=["className","size"],vH=U.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=_d(e,bH),i=function(){var e=Yh(U.useState(),2),t=e[0],n=e[1],r=Yh(U.useState(!0),2),o=r[0],i=r[1],a=U.useRef();return U.useEffect((function(){if(a.current&&a.current.parentElement){var e=a.current.parentElement,t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),i(!1)},r=function(){i(!0)};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}}),[]),[t,o,a]}(),a=Yh(i,3),l=a[0],s=a[1],c=a[2],u=mH({offset:l,outside:s,size:r}),d=u.styles,f=u.cx;return ee.jsx("div",Od({className:f(d,t),ref:c},o))})),yH=oH((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{tooltip:t(JB||(JB=hf(["\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding-block: 4px;\n padding-inline: 8px;\n\n color: ",";\n word-break: break-all;\n\n background-color: ",";\n border-radius: ","px;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: ",";\n }\n }\n "])),r,n.colorBgLayout,n.colorText,n.borderRadiusSM,r,n.colorText)}})),wH=["className","arrow"],xH=U.memo((function(e){var t=e.className,n=e.arrow,r=void 0!==n&&n,o=_d(e,wH),i=yH(),a=i.styles,l=i.cx;return ee.jsx(Rj,Od({arrow:r,overlayClassName:l(a.tooltip,t)},o))})),kH=oH((function(e,t){var n=e.css,r=e.token,o=e.stylish,i=e.cx,a=t.active;return{block:i(t.glass&&o.blur,n(ZB||(ZB=hf(["\n position: relative;\n\n flex: none;\n\n color: ",";\n\n background: ",";\n\n transition:\n color 600ms ",",\n scale 400ms ",",\n background-color 100ms ",";\n "])),a?r.colorText:r.colorTextTertiary,a?r.colorFillTertiary:"transparent",r.motionEaseOut,r.motionEaseOut,r.motionEaseOut)),disabled:n(eH||(eH=hf(["\n cursor: not-allowed;\n opacity: 0.5;\n "]))),icon:n(tH||(tH=hf(["\n transition: scale 400ms ",";\n\n &:active {\n scale: 0.8;\n }\n "])),r.motionEaseOut),normal:n(nH||(nH=hf(["\n cursor: pointer;\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n "])),r.colorText,r.colorFillSecondary,r.colorText,r.colorFill)}})),SH=["color","fill","className","active","icon","size","style","glass","title","placement","arrow","spotlight","onClick","children","loading","tooltipDelay","fillOpacity","fillRule","focusable","disable","spin"],CH=U.forwardRef((function(e,t){var n=e.color,r=e.fill,o=e.className,i=e.active,a=e.icon,l=e.size,s=void 0===l?"normal":l,c=e.style,u=e.glass,d=e.title,f=e.placement,p=e.arrow,h=void 0!==p&&p,g=e.spotlight,m=e.onClick,b=e.children,v=e.loading,y=e.tooltipDelay,w=void 0===y?.5:y,x=e.fillOpacity,k=e.fillRule,S=e.focusable,C=e.disable,E=e.spin,D=_d(e,SH),$=kH({active:Boolean(i),glass:Boolean(u)}),O=$.styles,_=$.cx,I=U.useMemo((function(){return function(e){var t,n;switch(e){case"large":t=44,n=8;break;case"normal":t=36,n=5;break;case"small":t=24,n=5;break;case"site":t=34,n=5;break;default:t=(null==e?void 0:e.blockSize)||36,n=(null==e?void 0:e.borderRadius)||5}return{blockSize:t,borderRadius:n}}(s)}),[s]),N=I.blockSize,j=I.borderRadius,P={color:n,fill:r,fillOpacity:x,fillRule:k,focusable:S,size:"site"===s?"normal":s},T=a&&ee.jsx(gH,Od(Od({className:O.icon,icon:a},P),{},{spin:E})),F=ee.jsx(gH,Od(Od({icon:Qd},P),{},{spin:!0})),R=ee.jsxs(th,Od(Od({align:"center",className:_(O.block,C?O.disabled:O.normal,o),horizontal:!0,justify:"center",onClick:v||C?void 0:m,ref:t,style:Od({borderRadius:j,height:N,width:N},c)},D),{},{children:[g&&ee.jsx(vH,{}),v?F:T,b]}));return d?ee.jsx(xH,{arrow:h,mouseEnterDelay:w,overlayStyle:{pointerEvents:"none"},placement:f,title:d,children:R}):R})),EH="object"==typeof global&&global&&global.Object===Object&&global,DH="object"==typeof self&&self&&self.Object===Object&&self,$H=(EH||DH||Function("return this")()).Symbol,OH=Object.prototype,_H=OH.hasOwnProperty,IH=OH.toString,NH=$H?$H.toStringTag:void 0;var jH=Object.prototype.toString;var PH="[object Null]",TH="[object Undefined]",FH=$H?$H.toStringTag:void 0;function RH(e){return null==e?void 0===e?TH:PH:FH&&FH in Object(e)?function(e){var t=_H.call(e,NH),n=e[NH];try{e[NH]=void 0;var r=!0}catch(b6){}var o=IH.call(e);return r&&(t?e[NH]=n:delete e[NH]),o}(e):function(e){return jH.call(e)}(e)}function AH(e){return null!=e&&"object"==typeof e}var MH="[object Symbol]";var LH=Array.isArray,zH=1/0,BH=$H?$H.prototype:void 0,HH=BH?BH.toString:void 0;function WH(e){if("string"==typeof e)return e;if(LH(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,WH)+"";if(function(e){return"symbol"==typeof e||AH(e)&&RH(e)==MH}(e))return HH?HH.call(e):"";var t=e+"";return"0"==t&&1/e==-zH?"-0":t}function UH(e){return null==e?"":WH(e)}function qH(e,t,n){var r=e.length;return n=void 0===n?r:n,!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);++r<o;)i[r]=e[r+t];return i}(e,t,n)}var VH=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function GH(e){return VH.test(e)}var XH="\\ud800-\\udfff",KH="["+XH+"]",YH="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",QH="\\ud83c[\\udffb-\\udfff]",JH="[^"+XH+"]",ZH="(?:\\ud83c[\\udde6-\\uddff]){2}",eW="[\\ud800-\\udbff][\\udc00-\\udfff]",tW="(?:"+YH+"|"+QH+")"+"?",nW="[\\ufe0e\\ufe0f]?",rW=nW+tW+("(?:\\u200d(?:"+[JH,ZH,eW].join("|")+")"+nW+tW+")*"),oW="(?:"+[JH+YH+"?",YH,ZH,eW,KH].join("|")+")",iW=RegExp(QH+"(?="+QH+")|"+oW+rW,"g");function aW(e){return GH(e)?function(e){return e.match(iW)||[]}(e):function(e){return e.split("")}(e)}var lW,sW=(lW="toUpperCase",function(e){var t=GH(e=UH(e))?aW(e):void 0,n=t?t[0]:e.charAt(0),r=t?qH(t,1).join(""):e.slice(1);return n[lW]()+r});function cW(e){return sW(UH(e).toLowerCase())}var uW,dW=(uW={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},function(e){return null==uW?void 0:uW[e]}),fW=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pW=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var hW=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var gW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var mW="\\ud800-\\udfff",bW="\\u2700-\\u27bf",vW="a-z\\xdf-\\xf6\\xf8-\\xff",yW="A-Z\\xc0-\\xd6\\xd8-\\xde",wW="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xW="["+wW+"]",kW="\\d+",SW="["+bW+"]",CW="["+vW+"]",EW="[^"+mW+wW+kW+bW+vW+yW+"]",DW="(?:\\ud83c[\\udde6-\\uddff]){2}",$W="[\\ud800-\\udbff][\\udc00-\\udfff]",OW="["+yW+"]",_W="(?:"+CW+"|"+EW+")",IW="(?:"+OW+"|"+EW+")",NW="(?:['’](?:d|ll|m|re|s|t|ve))?",jW="(?:['’](?:D|LL|M|RE|S|T|VE))?",PW="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",TW="[\\ufe0e\\ufe0f]?",FW=TW+PW+("(?:\\u200d(?:"+["[^"+mW+"]",DW,$W].join("|")+")"+TW+PW+")*"),RW="(?:"+[SW,DW,$W].join("|")+")"+FW,AW=RegExp([OW+"?"+CW+"+"+NW+"(?="+[xW,OW,"$"].join("|")+")",IW+"+"+jW+"(?="+[xW,OW+_W,"$"].join("|")+")",OW+"?"+_W+"+"+NW,OW+"+"+jW,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kW,RW].join("|"),"g");function MW(e,t,n){return e=UH(e),void 0===t?function(e){return gW.test(e)}(e)?function(e){return e.match(AW)||[]}(e):function(e){return e.match(hW)||[]}(e):e.match(t)||[]}var LW=RegExp("['’]","g");function zW(e){return function(t){return function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;)n=t(n,e[o],o,e);return n}(MW(function(e){return(e=UH(e))&&e.replace(fW,dW).replace(pW,"")}(t).replace(LW,"")),e,"")}}var BW=zW((function(e,t,n){return t=t.toLowerCase(),e+(n?cW(t):t)}));function HW(e){return"number"==typeof e||AH(e)&&"[object Number]"==RH(e)}var WW,UW,qW,VW,GW,XW,KW,YW,QW,JW,ZW,eU,tU,nU=zW((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),rU=zW((function(e,t,n){return e+(n?" ":"")+sW(t)})),oU=oH((function(e,t){var n=e.cx,r=e.token,o=e.css,i=e.prefixCls,a=t.closable,l=t.hasTitle,s=t.showIcon,c=l?16:8,u=l?16:12;return{banner:o(WW||(WW=hf(["\n border: none;\n border-radius: 0;\n "]))),colorfulText:o(UW||(UW=hf(["\n .","-alert-message,.","-alert-description {\n color: inherit;\n }\n "])),i,i),container:n(o(qW||(qW=hf(["\n position: relative;\n\n display: flex;\n flex-direction: row;\n gap: ","px;\n align-items: flex-start;\n\n max-width: 100%;\n padding-block: ","px;\n padding-inline: ","px\n ","px;\n\n .","-alert-message {\n font-weight: ",";\n line-height: 24px;\n word-break: break-all;\n }\n .","-alert-icon {\n display: flex;\n align-items: center;\n height: 24px;\n margin: 0;\n }\n .","-alert-close-icon {\n display: flex;\n align-items: center;\n height: 24px;\n margin: 0;\n }\n "])),l?12:8,c,s?u:1.5*u,a?u:1.5*u,i,l?600:400,i,i),l&&o(VW||(VW=hf(["\n .","-alert-description {\n line-height: 1.5;\n word-break: break-all;\n opacity: 0.75;\n }\n "])),i)),expandText:o(GW||(GW=hf(["\n &:hover {\n cursor: pointer;\n }\n "]))),extra:o(XW||(XW=hf(["\n position: relative;\n\n overflow: hidden;\n\n max-width: 100%;\n\n border: 1px solid;\n border-block-start: none;\n border-end-start-radius: ","px;\n border-end-end-radius: ","px;\n "])),r.borderRadiusLG,r.borderRadiusLG),extraBody:o(KW||(KW=hf(["\n overflow-x: auto;\n width: 100%;\n padding-block: ","px;\n padding-inline: ","px;\n "])),c,u),extraHeader:o(YW||(YW=hf(["\n padding-block: ","px;\n padding-inline: ","px;\n border-block-start: 1px dashed;\n "])),.75*c,.75*u),hasExtra:o(QW||(QW=hf(["\n border-block-end: none;\n border-end-start-radius: 0;\n border-end-end-radius: 0;\n "]))),variantBlock:o(JW||(JW=hf(["\n border: none;\n "]))),variantGhost:o(ZW||(ZW=hf(["\n background: transparent !important;\n "]))),variantPure:o(eU||(eU=hf(["\n padding: 0 !important;\n background: transparent !important;\n border: none;\n "]))),variantPureExtraHeader:o(tU||(tU=hf(["\n margin-block-start: ","px;\n margin-inline-start: ","px;\n padding-inline: 0;\n "])),c,.25*-u)}})),iU=["closeIcon","closable","description","showIcon","type","variant","icon","colorfulText","style","extra","classNames","text","extraDefaultExpand","extraIsolate","banner"],aU={error:Hd,info:Kd,success:Bd,warning:uf},lU=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e[BW(["color",t].concat(r).join("-"))]},sU=U.memo((function(e){var t=e.closeIcon,n=e.closable,r=void 0!==n&&n,o=e.description,i=e.showIcon,a=void 0===i||i,l=e.type,s=void 0===l?"info":l,c=e.variant,u=e.icon,d=e.colorfulText,f=void 0===d||d,p=e.style,h=e.extra,g=e.classNames,m=e.text,b=e.extraDefaultExpand,v=void 0!==b&&b,y=e.extraIsolate,w=e.banner,x=_d(e,iU),k=Yh(U.useState(v),2),S=k[0],C=k[1],E=oU({closable:!!r,hasTitle:!!o,showIcon:!!a}),D=E.theme,$=E.styles,O=E.cx,_=!y&&!!h,I=ee.jsx(Yk,Od({banner:w,className:O($.container,f&&$.colorfulText,!!_&&$.hasExtra,"block"===c&&$.variantBlock,"ghost"===c&&$.variantGhost,"pure"===c&&$.variantPure,null==g?void 0:g.alert,!_&&$.container),closable:r,closeIcon:t||ee.jsx(CH,{color:lU(D,s),icon:df,size:"small"}),description:o,icon:ee.jsx(gH,{icon:aU[s]||u,size:{fontSize:o?24:18}}),showIcon:a,style:Od({color:f?lU(D,s):void 0},p),type:s},x));return h?y?ee.jsxs(th,{className:null==g?void 0:g.container,gap:8,children:[I,h]}):ee.jsxs(th,{className:null==g?void 0:g.container,children:[I,ee.jsxs(th,{className:O($.extra,w&&$.banner,"block"===c&&$.variantBlock,"ghost"===c&&$.variantGhost,"pure"===c&&$.variantPure),style:{background:lU(D,s,"bg"),borderColor:lU(D,s,"border"),color:lU(D,s),fontSize:o?14:12},children:[ee.jsxs(th,{align:"center",className:O($.extraHeader,"pure"===c&&$.variantPureExtraHeader),gap:KL?6:10,horizontal:!0,style:{borderColor:lU(D,s,"border")},children:[ee.jsx(CH,{color:f?lU(D,s):void 0,icon:S?Ad:Ld,onClick:function(){return C(!S)},size:{blockSize:24,fontSize:18}}),ee.jsx("div",{className:O($.expandText),onClick:function(){return C(!S)},children:(null==m?void 0:m.detail)||"Show Details"})]}),S&&ee.jsx("div",{className:O($.extraBody,"pure"===c&&$.variantPure),children:h})]})]}):I}));function cU(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){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;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=r<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var i=t.join("/"),a=(i=i.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}var uU=function(e){var t=e.pkg,n=e.version,r=void 0===n?"latest":n,o=e.path;return"unpkg"===e.proxy?cU("https://unpkg.com","".concat(t,"@").concat(r),o):cU("https://registry.npmmirror.com",t,r,"files",o)},dU=U.createContext(null),fU=function(e){var t=e.pkg,n=e.version,r=e.path;return uU({path:r,pkg:t,proxy:"aliyun",version:n})},pU=function(){var e=U.useContext(dU);return e?"custom"!==(null==e?void 0:e.proxy)?function(t){var n=t.pkg,r=t.version,o=t.path;return uU({path:o,pkg:n,proxy:e.proxy,version:r})}:(null==e?void 0:e.customCdnFn)||fU:fU},hU=["unoptimized"],gU=U.forwardRef((function(e,t){var n=e.unoptimized,r=_d(e,hU),o=U.useContext(dU),i=(null==o?void 0:o.imgAs)||"img",a=U.useMemo((function(){return e=i,U.forwardRef((function(t,n){return U.createElement(e,Od(Od({},t),{},{ref:n}))}));var e}),[i]);return ee.jsx(a,Od({ref:t,unoptimized:void 0===n?null==o?void 0:o.imgUnoptimized:n},r))}));const mU={"😀":"grinning-face","😃":"grinning-face-with-big-eyes","😄":"grinning-face-with-smiling-eyes","😁":"beaming-face-with-smiling-eyes","😆":"grinning-squinting-face","😅":"grinning-face-with-sweat","🤣":"rolling-on-the-floor-laughing","😂":"face-with-tears-of-joy","🙂":"slightly-smiling-face","🙃":"upside-down-face","🫠":"melting-face","😉":"winking-face","😊":"smiling-face-with-smiling-eyes","😇":"smiling-face-with-halo","🥰":"smiling-face-with-hearts","😍":"smiling-face-with-heart-eyes","🤩":"star-struck","😘":"face-blowing-a-kiss","😗":"kissing-face","☺️":"smiling-face","😚":"kissing-face-with-closed-eyes","😙":"kissing-face-with-smiling-eyes","🥲":"smiling-face-with-tear","😋":"face-savoring-food","😛":"face-with-tongue","😜":"winking-face-with-tongue","🤪":"zany-face","😝":"squinting-face-with-tongue","🤑":"money-mouth-face","🤗":"smiling-face-with-open-hands","🤭":"face-with-hand-over-mouth","🫢":"face-with-open-eyes-and-hand-over-mouth","🫣":"face-with-peeking-eye","🤫":"shushing-face","🤔":"thinking-face","🫡":"saluting-face","🤐":"zipper-mouth-face","🤨":"face-with-raised-eyebrow","😐":"neutral-face","😑":"expressionless-face","😶":"face-without-mouth","🫥":"dotted-line-face","😶🌫️":"face-in-clouds","😏":"smirking-face","😒":"unamused-face","🙄":"face-with-rolling-eyes","😬":"grimacing-face","😮💨":"face-exhaling","🤥":"lying-face","🫨":"shaking-face","😌":"relieved-face","😔":"pensive-face","😪":"sleepy-face","🤤":"drooling-face","😴":"sleeping-face","😷":"face-with-medical-mask","🤒":"face-with-thermometer","🤕":"face-with-head-bandage","🤢":"nauseated-face","🤮":"face-vomiting","🤧":"sneezing-face","🥵":"hot-face","🥶":"cold-face","🥴":"woozy-face","😵":"face-with-crossed-out-eyes","😵💫":"face-with-spiral-eyes","🤯":"exploding-head","🤠":"cowboy-hat-face","🥳":"partying-face","🥸":"disguised-face","😎":"smiling-face-with-sunglasses","🤓":"nerd-face","🧐":"face-with-monocle","😕":"confused-face","🫤":"face-with-diagonal-mouth","😟":"worried-face","🙁":"slightly-frowning-face","☹️":"frowning-face","😮":"face-with-open-mouth","😯":"hushed-face","😲":"astonished-face","😳":"flushed-face","🥺":"pleading-face","🥹":"face-holding-back-tears","😦":"frowning-face-with-open-mouth","😧":"anguished-face","😨":"fearful-face","😰":"anxious-face-with-sweat","😥":"sad-but-relieved-face","😢":"crying-face","😭":"loudly-crying-face","😱":"face-screaming-in-fear","😖":"confounded-face","😣":"persevering-face","😞":"disappointed-face","😓":"downcast-face-with-sweat","😩":"weary-face","😫":"tired-face","🥱":"yawning-face","😤":"face-with-steam-from-nose","😡":"enraged-face","😠":"angry-face","🤬":"face-with-symbols-on-mouth","😈":"smiling-face-with-horns","👿":"angry-face-with-horns","💀":"skull","☠️":"skull-and-crossbones","💩":"pile-of-poo","🤡":"clown-face","👹":"ogre","👺":"goblin","👻":"ghost","👽":"alien","👾":"alien-monster","🤖":"robot","😺":"grinning-cat","😸":"grinning-cat-with-smiling-eyes","😹":"cat-with-tears-of-joy","😻":"smiling-cat-with-heart-eyes","😼":"cat-with-wry-smile","😽":"kissing-cat","🙀":"weary-cat","😿":"crying-cat","😾":"pouting-cat","🙈":"see-no-evil-monkey","🙉":"hear-no-evil-monkey","🙊":"speak-no-evil-monkey","💌":"love-letter","💘":"heart-with-arrow","💝":"heart-with-ribbon","💖":"sparkling-heart","💗":"growing-heart","💓":"beating-heart","💞":"revolving-hearts","💕":"two-hearts","💟":"heart-decoration","❣️":"heart-exclamation","💔":"broken-heart","❤️🔥":"heart-on-fire","❤️🩹":"mending-heart","❤️":"red-heart","🩷":"pink-heart","🧡":"orange-heart","💛":"yellow-heart","💚":"green-heart","💙":"blue-heart","🩵":"light-blue-heart","💜":"purple-heart","🤎":"brown-heart","🖤":"black-heart","🩶":"grey-heart","🤍":"white-heart","💋":"kiss-mark","💯":"hundred-points","💢":"anger-symbol","💥":"collision","💫":"dizzy","💦":"sweat-droplets","💨":"dashing-away","🕳️":"hole","💬":"speech-balloon","👁️🗨️":"eye-in-speech-bubble","🗨️":"left-speech-bubble","🗯️":"right-anger-bubble","💭":"thought-balloon","💤":"zzz","👋":"waving-hand","🤚":"raised-back-of-hand","🖐️":"hand-with-fingers-splayed","✋":"raised-hand","🖖":"vulcan-salute","🫱":"rightwards-hand","🫲":"leftwards-hand","🫳":"palm-down-hand","🫴":"palm-up-hand","🫷":"leftwards-pushing-hand","🫸":"rightwards-pushing-hand","👌":"ok-hand","🤌":"pinched-fingers","🤏":"pinching-hand","✌️":"victory-hand","🤞":"crossed-fingers","🫰":"hand-with-index-finger-and-thumb-crossed","🤟":"love-you-gesture","🤘":"sign-of-the-horns","🤙":"call-me-hand","👈":"backhand-index-pointing-left","👉":"backhand-index-pointing-right","👆":"backhand-index-pointing-up","🖕":"middle-finger","👇":"backhand-index-pointing-down","☝️":"index-pointing-up","🫵":"index-pointing-at-the-viewer","👍":"thumbs-up","👎":"thumbs-down","✊":"raised-fist","👊":"oncoming-fist","🤛":"left-facing-fist","🤜":"right-facing-fist","👏":"clapping-hands","🙌":"raising-hands","🫶":"heart-hands","👐":"open-hands","🤲":"palms-up-together","🤝":"handshake","🙏":"folded-hands","✍️":"writing-hand","💅":"nail-polish","🤳":"selfie","💪":"flexed-biceps","🦾":"mechanical-arm","🦿":"mechanical-leg","🦵":"leg","🦶":"foot","👂":"ear","🦻":"ear-with-hearing-aid","👃":"nose","🧠":"brain","🫀":"anatomical-heart","🫁":"lungs","🦷":"tooth","🦴":"bone","👀":"eyes","👁️":"eye","👅":"tongue","👄":"mouth","🫦":"biting-lip","👶":"baby","🧒":"child","👦":"boy","👧":"girl","🧑":"person","👱":"person-blond-hair","👨":"man","🧔":"person-beard","🧔♂️":"man-beard","🧔♀️":"woman-beard","👨🦰":"man-red-hair","👨🦱":"man-curly-hair","👨🦳":"man-white-hair","👨🦲":"man-bald","👩":"woman","👩🦰":"woman-red-hair","🧑🦰":"person-red-hair","👩🦱":"woman-curly-hair","🧑🦱":"person-curly-hair","👩🦳":"woman-white-hair","🧑🦳":"person-white-hair","👩🦲":"woman-bald","🧑🦲":"person-bald","👱♀️":"woman-blond-hair","👱♂️":"man-blond-hair","🧓":"older-person","👴":"old-man","👵":"old-woman","🙍":"person-frowning","🙍♂️":"man-frowning","🙍♀️":"woman-frowning","🙎":"person-pouting","🙎♂️":"man-pouting","🙎♀️":"woman-pouting","🙅":"person-gesturing-no","🙅♂️":"man-gesturing-no","🙅♀️":"woman-gesturing-no","🙆":"person-gesturing-ok","🙆♂️":"man-gesturing-ok","🙆♀️":"woman-gesturing-ok","💁":"person-tipping-hand","💁♂️":"man-tipping-hand","💁♀️":"woman-tipping-hand","🙋":"person-raising-hand","🙋♂️":"man-raising-hand","🙋♀️":"woman-raising-hand","🧏":"deaf-person","🧏♂️":"deaf-man","🧏♀️":"deaf-woman","🙇":"person-bowing","🙇♂️":"man-bowing","🙇♀️":"woman-bowing","🤦":"person-facepalming","🤦♂️":"man-facepalming","🤦♀️":"woman-facepalming","🤷":"person-shrugging","🤷♂️":"man-shrugging","🤷♀️":"woman-shrugging","🧑⚕️":"health-worker","👨⚕️":"man-health-worker","👩⚕️":"woman-health-worker","🧑🎓":"student","👨🎓":"man-student","👩🎓":"woman-student","🧑🏫":"teacher","👨🏫":"man-teacher","👩🏫":"woman-teacher","🧑⚖️":"judge","👨⚖️":"man-judge","👩⚖️":"woman-judge","🧑🌾":"farmer","👨🌾":"man-farmer","👩🌾":"woman-farmer","🧑🍳":"cook","👨🍳":"man-cook","👩🍳":"woman-cook","🧑🔧":"mechanic","👨🔧":"man-mechanic","👩🔧":"woman-mechanic","🧑🏭":"factory-worker","👨🏭":"man-factory-worker","👩🏭":"woman-factory-worker","🧑💼":"office-worker","👨💼":"man-office-worker","👩💼":"woman-office-worker","🧑🔬":"scientist","👨🔬":"man-scientist","👩🔬":"woman-scientist","🧑💻":"technologist","👨💻":"man-technologist","👩💻":"woman-technologist","🧑🎤":"singer","👨🎤":"man-singer","👩🎤":"woman-singer","🧑🎨":"artist","👨🎨":"man-artist","👩🎨":"woman-artist","🧑✈️":"pilot","👨✈️":"man-pilot","👩✈️":"woman-pilot","🧑🚀":"astronaut","👨🚀":"man-astronaut","👩🚀":"woman-astronaut","🧑🚒":"firefighter","👨🚒":"man-firefighter","👩🚒":"woman-firefighter","👮":"police-officer","👮♂️":"man-police-officer","👮♀️":"woman-police-officer","🕵️":"detective","🕵️♂️":"man-detective","🕵️♀️":"woman-detective","💂":"guard","💂♂️":"man-guard","💂♀️":"woman-guard","🥷":"ninja","👷":"construction-worker","👷♂️":"man-construction-worker","👷♀️":"woman-construction-worker","🫅":"person-with-crown","🤴":"prince","👸":"princess","👳":"person-wearing-turban","👳♂️":"man-wearing-turban","👳♀️":"woman-wearing-turban","👲":"person-with-skullcap","🧕":"woman-with-headscarf","🤵":"person-in-tuxedo","🤵♂️":"man-in-tuxedo","🤵♀️":"woman-in-tuxedo","👰":"person-with-veil","👰♂️":"man-with-veil","👰♀️":"woman-with-veil","🤰":"pregnant-woman","🫃":"pregnant-man","🫄":"pregnant-person","🤱":"breast-feeding","👩🍼":"woman-feeding-baby","👨🍼":"man-feeding-baby","🧑🍼":"person-feeding-baby","👼":"baby-angel","🎅":"santa-claus","🤶":"mrs-claus","🧑🎄":"mx-claus","🦸":"superhero","🦸♂️":"man-superhero","🦸♀️":"woman-superhero","🦹":"supervillain","🦹♂️":"man-supervillain","🦹♀️":"woman-supervillain","🧙":"mage","🧙♂️":"man-mage","🧙♀️":"woman-mage","🧚":"fairy","🧚♂️":"man-fairy","🧚♀️":"woman-fairy","🧛":"vampire","🧛♂️":"man-vampire","🧛♀️":"woman-vampire","🧜":"merperson","🧜♂️":"merman","🧜♀️":"mermaid","🧝":"elf","🧝♂️":"man-elf","🧝♀️":"woman-elf","🧞":"genie","🧞♂️":"man-genie","🧞♀️":"woman-genie","🧟":"zombie","🧟♂️":"man-zombie","🧟♀️":"woman-zombie","🧌":"troll","💆":"person-getting-massage","💆♂️":"man-getting-massage","💆♀️":"woman-getting-massage","💇":"person-getting-haircut","💇♂️":"man-getting-haircut","💇♀️":"woman-getting-haircut","🚶":"person-walking","🚶♂️":"man-walking","🚶♀️":"woman-walking","🧍":"person-standing","🧍♂️":"man-standing","🧍♀️":"woman-standing","🧎":"person-kneeling","🧎♂️":"man-kneeling","🧎♀️":"woman-kneeling","🧑🦯":"person-with-white-cane","👨🦯":"man-with-white-cane","👩🦯":"woman-with-white-cane","🧑🦼":"person-in-motorized-wheelchair","👨🦼":"man-in-motorized-wheelchair","👩🦼":"woman-in-motorized-wheelchair","🧑🦽":"person-in-manual-wheelchair","👨🦽":"man-in-manual-wheelchair","👩🦽":"woman-in-manual-wheelchair","🏃":"person-running","🏃♂️":"man-running","🏃♀️":"woman-running","💃":"woman-dancing","🕺":"man-dancing","🕴️":"person-in-suit-levitating","👯":"people-with-bunny-ears","👯♂️":"men-with-bunny-ears","👯♀️":"women-with-bunny-ears","🧖":"person-in-steamy-room","🧖♂️":"man-in-steamy-room","🧖♀️":"woman-in-steamy-room","🧗":"person-climbing","🧗♂️":"man-climbing","🧗♀️":"woman-climbing","🤺":"person-fencing","🏇":"horse-racing","⛷️":"skier","🏂":"snowboarder","🏌️":"person-golfing","🏌️♂️":"man-golfing","🏌️♀️":"woman-golfing","🏄":"person-surfing","🏄♂️":"man-surfing","🏄♀️":"woman-surfing","🚣":"person-rowing-boat","🚣♂️":"man-rowing-boat","🚣♀️":"woman-rowing-boat","🏊":"person-swimming","🏊♂️":"man-swimming","🏊♀️":"woman-swimming","⛹️":"person-bouncing-ball","⛹️♂️":"man-bouncing-ball","⛹️♀️":"woman-bouncing-ball","🏋️":"person-lifting-weights","🏋️♂️":"man-lifting-weights","🏋️♀️":"woman-lifting-weights","🚴":"person-biking","🚴♂️":"man-biking","🚴♀️":"woman-biking","🚵":"person-mountain-biking","🚵♂️":"man-mountain-biking","🚵♀️":"woman-mountain-biking","🤸":"person-cartwheeling","🤸♂️":"man-cartwheeling","🤸♀️":"woman-cartwheeling","🤼":"people-wrestling","🤼♂️":"men-wrestling","🤼♀️":"women-wrestling","🤽":"person-playing-water-polo","🤽♂️":"man-playing-water-polo","🤽♀️":"woman-playing-water-polo","🤾":"person-playing-handball","🤾♂️":"man-playing-handball","🤾♀️":"woman-playing-handball","🤹":"person-juggling","🤹♂️":"man-juggling","🤹♀️":"woman-juggling","🧘":"person-in-lotus-position","🧘♂️":"man-in-lotus-position","🧘♀️":"woman-in-lotus-position","🛀":"person-taking-bath","🛌":"person-in-bed","🧑🤝🧑":"people-holding-hands","👭":"women-holding-hands","👫":"woman-and-man-holding-hands","👬":"men-holding-hands","💏":"kiss","👩❤️💋👨":"kiss-woman-man","👨❤️💋👨":"kiss-man-man","👩❤️💋👩":"kiss-woman-woman","💑":"couple-with-heart","👩❤️👨":"couple-with-heart-woman-man","👨❤️👨":"couple-with-heart-man-man","👩❤️👩":"couple-with-heart-woman-woman","👪":"family","👨👩👦":"family-man-woman-boy","👨👩👧":"family-man-woman-girl","👨👩👧👦":"family-man-woman-girl-boy","👨👩👦👦":"family-man-woman-boy-boy","👨👩👧👧":"family-man-woman-girl-girl","👨👨👦":"family-man-man-boy","👨👨👧":"family-man-man-girl","👨👨👧👦":"family-man-man-girl-boy","👨👨👦👦":"family-man-man-boy-boy","👨👨👧👧":"family-man-man-girl-girl","👩👩👦":"family-woman-woman-boy","👩👩👧":"family-woman-woman-girl","👩👩👧👦":"family-woman-woman-girl-boy","👩👩👦👦":"family-woman-woman-boy-boy","👩👩👧👧":"family-woman-woman-girl-girl","👨👦":"family-man-boy","👨👦👦":"family-man-boy-boy","👨👧":"family-man-girl","👨👧👦":"family-man-girl-boy","👨👧👧":"family-man-girl-girl","👩👦":"family-woman-boy","👩👦👦":"family-woman-boy-boy","👩👧":"family-woman-girl","👩👧👦":"family-woman-girl-boy","👩👧👧":"family-woman-girl-girl","🗣️":"speaking-head","👤":"bust-in-silhouette","👥":"busts-in-silhouette","🫂":"people-hugging","👣":"footprints","🐵":"monkey-face","🐒":"monkey","🦍":"gorilla","🦧":"orangutan","🐶":"dog-face","🐕":"dog","🦮":"guide-dog","🐕🦺":"service-dog","🐩":"poodle","🐺":"wolf","🦊":"fox","🦝":"raccoon","🐱":"cat-face","🐈":"cat","🐈⬛":"black-cat","🦁":"lion","🐯":"tiger-face","🐅":"tiger","🐆":"leopard","🐴":"horse-face","🫎":"moose","🫏":"donkey","🐎":"horse","🦄":"unicorn","🦓":"zebra","🦌":"deer","🦬":"bison","🐮":"cow-face","🐂":"ox","🐃":"water-buffalo","🐄":"cow","🐷":"pig-face","🐖":"pig","🐗":"boar","🐽":"pig-nose","🐏":"ram","🐑":"ewe","🐐":"goat","🐪":"camel","🐫":"two-hump-camel","🦙":"llama","🦒":"giraffe","🐘":"elephant","🦣":"mammoth","🦏":"rhinoceros","🦛":"hippopotamus","🐭":"mouse-face","🐁":"mouse","🐀":"rat","🐹":"hamster","🐰":"rabbit-face","🐇":"rabbit","🐿️":"chipmunk","🦫":"beaver","🦔":"hedgehog","🦇":"bat","🐻":"bear","🐻❄️":"polar-bear","🐨":"koala","🐼":"panda","🦥":"sloth","🦦":"otter","🦨":"skunk","🦘":"kangaroo","🦡":"badger","🐾":"paw-prints","🦃":"turkey","🐔":"chicken","🐓":"rooster","🐣":"hatching-chick","🐤":"baby-chick","🐥":"front-facing-baby-chick","🐦":"bird","🐧":"penguin","🕊️":"dove","🦅":"eagle","🦆":"duck","🦢":"swan","🦉":"owl","🦤":"dodo","🪶":"feather","🦩":"flamingo","🦚":"peacock","🦜":"parrot","🪽":"wing","🐦⬛":"black-bird","🪿":"goose","🐸":"frog","🐊":"crocodile","🐢":"turtle","🦎":"lizard","🐍":"snake","🐲":"dragon-face","🐉":"dragon","🦕":"sauropod","🦖":"t-rex","🐳":"spouting-whale","🐋":"whale","🐬":"dolphin","🦭":"seal","🐟":"fish","🐠":"tropical-fish","🐡":"blowfish","🦈":"shark","🐙":"octopus","🐚":"spiral-shell","🪸":"coral","🪼":"jellyfish","🐌":"snail","🦋":"butterfly","🐛":"bug","🐜":"ant","🐝":"honeybee","🪲":"beetle","🐞":"lady-beetle","🦗":"cricket","🪳":"cockroach","🕷️":"spider","🕸️":"spider-web","🦂":"scorpion","🦟":"mosquito","🪰":"fly","🪱":"worm","🦠":"microbe","💐":"bouquet","🌸":"cherry-blossom","💮":"white-flower","🪷":"lotus","🏵️":"rosette","🌹":"rose","🥀":"wilted-flower","🌺":"hibiscus","🌻":"sunflower","🌼":"blossom","🌷":"tulip","🪻":"hyacinth","🌱":"seedling","🪴":"potted-plant","🌲":"evergreen-tree","🌳":"deciduous-tree","🌴":"palm-tree","🌵":"cactus","🌾":"sheaf-of-rice","🌿":"herb","☘️":"shamrock","🍀":"four-leaf-clover","🍁":"maple-leaf","🍂":"fallen-leaf","🍃":"leaf-fluttering-in-wind","🪹":"empty-nest","🪺":"nest-with-eggs","🍄":"mushroom","🍇":"grapes","🍈":"melon","🍉":"watermelon","🍊":"tangerine","🍋":"lemon","🍌":"banana","🍍":"pineapple","🥭":"mango","🍎":"red-apple","🍏":"green-apple","🍐":"pear","🍑":"peach","🍒":"cherries","🍓":"strawberry","🫐":"blueberries","🥝":"kiwi-fruit","🍅":"tomato","🫒":"olive","🥥":"coconut","🥑":"avocado","🍆":"eggplant","🥔":"potato","🥕":"carrot","🌽":"ear-of-corn","🌶️":"hot-pepper","🫑":"bell-pepper","🥒":"cucumber","🥬":"leafy-green","🥦":"broccoli","🧄":"garlic","🧅":"onion","🥜":"peanuts","🫘":"beans","🌰":"chestnut","🫚":"ginger-root","🫛":"pea-pod","🍞":"bread","🥐":"croissant","🥖":"baguette-bread","🫓":"flatbread","🥨":"pretzel","🥯":"bagel","🥞":"pancakes","🧇":"waffle","🧀":"cheese-wedge","🍖":"meat-on-bone","🍗":"poultry-leg","🥩":"cut-of-meat","🥓":"bacon","🍔":"hamburger","🍟":"french-fries","🍕":"pizza","🌭":"hot-dog","🥪":"sandwich","🌮":"taco","🌯":"burrito","🫔":"tamale","🥙":"stuffed-flatbread","🧆":"falafel","🥚":"egg","🍳":"cooking","🥘":"shallow-pan-of-food","🍲":"pot-of-food","🫕":"fondue","🥣":"bowl-with-spoon","🥗":"green-salad","🍿":"popcorn","🧈":"butter","🧂":"salt","🥫":"canned-food","🍱":"bento-box","🍘":"rice-cracker","🍙":"rice-ball","🍚":"cooked-rice","🍛":"curry-rice","🍜":"steaming-bowl","🍝":"spaghetti","🍠":"roasted-sweet-potato","🍢":"oden","🍣":"sushi","🍤":"fried-shrimp","🍥":"fish-cake-with-swirl","🥮":"moon-cake","🍡":"dango","🥟":"dumpling","🥠":"fortune-cookie","🥡":"takeout-box","🦀":"crab","🦞":"lobster","🦐":"shrimp","🦑":"squid","🦪":"oyster","🍦":"soft-ice-cream","🍧":"shaved-ice","🍨":"ice-cream","🍩":"doughnut","🍪":"cookie","🎂":"birthday-cake","🍰":"shortcake","🧁":"cupcake","🥧":"pie","🍫":"chocolate-bar","🍬":"candy","🍭":"lollipop","🍮":"custard","🍯":"honey-pot","🍼":"baby-bottle","🥛":"glass-of-milk","☕":"hot-beverage","🫖":"teapot","🍵":"teacup-without-handle","🍶":"sake","🍾":"bottle-with-popping-cork","🍷":"wine-glass","🍸":"cocktail-glass","🍹":"tropical-drink","🍺":"beer-mug","🍻":"clinking-beer-mugs","🥂":"clinking-glasses","🥃":"tumbler-glass","🫗":"pouring-liquid","🥤":"cup-with-straw","🧋":"bubble-tea","🧃":"beverage-box","🧉":"mate","🧊":"ice","🥢":"chopsticks","🍽️":"fork-and-knife-with-plate","🍴":"fork-and-knife","🥄":"spoon","🔪":"kitchen-knife","🫙":"jar","🏺":"amphora","🌍":"globe-showing-europe-africa","🌎":"globe-showing-americas","🌏":"globe-showing-asia-australia","🌐":"globe-with-meridians","🗺️":"world-map","🗾":"map-of-japan","🧭":"compass","🏔️":"snow-capped-mountain","⛰️":"mountain","🌋":"volcano","🗻":"mount-fuji","🏕️":"camping","🏖️":"beach-with-umbrella","🏜️":"desert","🏝️":"desert-island","🏞️":"national-park","🏟️":"stadium","🏛️":"classical-building","🏗️":"building-construction","🧱":"brick","🪨":"rock","🪵":"wood","🛖":"hut","🏘️":"houses","🏚️":"derelict-house","🏠":"house","🏡":"house-with-garden","🏢":"office-building","🏣":"japanese-post-office","🏤":"post-office","🏥":"hospital","🏦":"bank","🏨":"hotel","🏩":"love-hotel","🏪":"convenience-store","🏫":"school","🏬":"department-store","🏭":"factory","🏯":"japanese-castle","🏰":"castle","💒":"wedding","🗼":"tokyo-tower","🗽":"statue-of-liberty","⛪":"church","🕌":"mosque","🛕":"hindu-temple","🕍":"synagogue","⛩️":"shinto-shrine","🕋":"kaaba","⛲":"fountain","⛺":"tent","🌁":"foggy","🌃":"night-with-stars","🏙️":"cityscape","🌄":"sunrise-over-mountains","🌅":"sunrise","🌆":"cityscape-at-dusk","🌇":"sunset","🌉":"bridge-at-night","♨️":"hot-springs","🎠":"carousel-horse","🛝":"playground-slide","🎡":"ferris-wheel","🎢":"roller-coaster","💈":"barber-pole","🎪":"circus-tent","🚂":"locomotive","🚃":"railway-car","🚄":"high-speed-train","🚅":"bullet-train","🚆":"train","🚇":"metro","🚈":"light-rail","🚉":"station","🚊":"tram","🚝":"monorail","🚞":"mountain-railway","🚋":"tram-car","🚌":"bus","🚍":"oncoming-bus","🚎":"trolleybus","🚐":"minibus","🚑":"ambulance","🚒":"fire-engine","🚓":"police-car","🚔":"oncoming-police-car","🚕":"taxi","🚖":"oncoming-taxi","🚗":"automobile","🚘":"oncoming-automobile","🚙":"sport-utility-vehicle","🛻":"pickup-truck","🚚":"delivery-truck","🚛":"articulated-lorry","🚜":"tractor","🏎️":"racing-car","🏍️":"motorcycle","🛵":"motor-scooter","🦽":"manual-wheelchair","🦼":"motorized-wheelchair","🛺":"auto-rickshaw","🚲":"bicycle","🛴":"kick-scooter","🛹":"skateboard","🛼":"roller-skate","🚏":"bus-stop","🛣️":"motorway","🛤️":"railway-track","🛢️":"oil-drum","⛽":"fuel-pump","🛞":"wheel","🚨":"police-car-light","🚥":"horizontal-traffic-light","🚦":"vertical-traffic-light","🛑":"stop-sign","🚧":"construction","⚓":"anchor","🛟":"ring-buoy","⛵":"sailboat","🛶":"canoe","🚤":"speedboat","🛳️":"passenger-ship","⛴️":"ferry","🛥️":"motor-boat","🚢":"ship","✈️":"airplane","🛩️":"small-airplane","🛫":"airplane-departure","🛬":"airplane-arrival","🪂":"parachute","💺":"seat","🚁":"helicopter","🚟":"suspension-railway","🚠":"mountain-cableway","🚡":"aerial-tramway","🛰️":"satellite","🚀":"rocket","🛸":"flying-saucer","🛎️":"bellhop-bell","🧳":"luggage","⌛":"hourglass-done","⏳":"hourglass-not-done","⌚":"watch","⏰":"alarm-clock","⏱️":"stopwatch","⏲️":"timer-clock","🕰️":"mantelpiece-clock","🕛":"twelve-o-clock","🕧":"twelve-thirty","🕐":"one-o-clock","🕜":"one-thirty","🕑":"two-o-clock","🕝":"two-thirty","🕒":"three-o-clock","🕞":"three-thirty","🕓":"four-o-clock","🕟":"four-thirty","🕔":"five-o-clock","🕠":"five-thirty","🕕":"six-o-clock","🕡":"six-thirty","🕖":"seven-o-clock","🕢":"seven-thirty","🕗":"eight-o-clock","🕣":"eight-thirty","🕘":"nine-o-clock","🕤":"nine-thirty","🕙":"ten-o-clock","🕥":"ten-thirty","🕚":"eleven-o-clock","🕦":"eleven-thirty","🌑":"new-moon","🌒":"waxing-crescent-moon","🌓":"first-quarter-moon","🌔":"waxing-gibbous-moon","🌕":"full-moon","🌖":"waning-gibbous-moon","🌗":"last-quarter-moon","🌘":"waning-crescent-moon","🌙":"crescent-moon","🌚":"new-moon-face","🌛":"first-quarter-moon-face","🌜":"last-quarter-moon-face","🌡️":"thermometer","☀️":"sun","🌝":"full-moon-face","🌞":"sun-with-face","🪐":"ringed-planet","⭐":"star","🌟":"glowing-star","🌠":"shooting-star","🌌":"milky-way","☁️":"cloud","⛅":"sun-behind-cloud","⛈️":"cloud-with-lightning-and-rain","🌤️":"sun-behind-small-cloud","🌥️":"sun-behind-large-cloud","🌦️":"sun-behind-rain-cloud","🌧️":"cloud-with-rain","🌨️":"cloud-with-snow","🌩️":"cloud-with-lightning","🌪️":"tornado","🌫️":"fog","🌬️":"wind-face","🌀":"cyclone","🌈":"rainbow","🌂":"closed-umbrella","☂️":"umbrella","☔":"umbrella-with-rain-drops","⛱️":"umbrella-on-ground","⚡":"high-voltage","❄️":"snowflake","☃️":"snowman","⛄":"snowman-without-snow","☄️":"comet","🔥":"fire","💧":"droplet","🌊":"water-wave","🎃":"jack-o-lantern","🎄":"christmas-tree","🎆":"fireworks","🎇":"sparkler","🧨":"firecracker","✨":"sparkles","🎈":"balloon","🎉":"party-popper","🎊":"confetti-ball","🎋":"tanabata-tree","🎍":"pine-decoration","🎎":"japanese-dolls","🎏":"carp-streamer","🎐":"wind-chime","🎑":"moon-viewing-ceremony","🧧":"red-envelope","🎀":"ribbon","🎁":"wrapped-gift","🎗️":"reminder-ribbon","🎟️":"admission-tickets","🎫":"ticket","🎖️":"military-medal","🏆":"trophy","🏅":"sports-medal","🥇":"1st-place-medal","🥈":"2nd-place-medal","🥉":"3rd-place-medal","⚽":"soccer-ball","⚾":"baseball","🥎":"softball","🏀":"basketball","🏐":"volleyball","🏈":"american-football","🏉":"rugby-football","🎾":"tennis","🥏":"flying-disc","🎳":"bowling","🏏":"cricket-game","🏑":"field-hockey","🏒":"ice-hockey","🥍":"lacrosse","🏓":"ping-pong","🏸":"badminton","🥊":"boxing-glove","🥋":"martial-arts-uniform","🥅":"goal-net","⛳":"flag-in-hole","⛸️":"ice-skate","🎣":"fishing-pole","🤿":"diving-mask","🎽":"running-shirt","🎿":"skis","🛷":"sled","🥌":"curling-stone","🎯":"bullseye","🪀":"yo-yo","🪁":"kite","🔫":"water-pistol","🎱":"pool-8-ball","🔮":"crystal-ball","🪄":"magic-wand","🎮":"video-game","🕹️":"joystick","🎰":"slot-machine","🎲":"game-die","🧩":"puzzle-piece","🧸":"teddy-bear","🪅":"pinata","🪩":"mirror-ball","🪆":"nesting-dolls","♠️":"spade-suit","♥️":"heart-suit","♦️":"diamond-suit","♣️":"club-suit","♟️":"chess-pawn","🃏":"joker","🀄":"mahjong-red-dragon","🎴":"flower-playing-cards","🎭":"performing-arts","🖼️":"framed-picture","🎨":"artist-palette","🧵":"thread","🪡":"sewing-needle","🧶":"yarn","🪢":"knot","👓":"glasses","🕶️":"sunglasses","🥽":"goggles","🥼":"lab-coat","🦺":"safety-vest","👔":"necktie","👕":"t-shirt","👖":"jeans","🧣":"scarf","🧤":"gloves","🧥":"coat","🧦":"socks","👗":"dress","👘":"kimono","🥻":"sari","🩱":"one-piece-swimsuit","🩲":"briefs","🩳":"shorts","👙":"bikini","👚":"woman-s-clothes","🪭":"folding-hand-fan","👛":"purse","👜":"handbag","👝":"clutch-bag","🛍️":"shopping-bags","🎒":"backpack","🩴":"thong-sandal","👞":"man-s-shoe","👟":"running-shoe","🥾":"hiking-boot","🥿":"flat-shoe","👠":"high-heeled-shoe","👡":"woman-s-sandal","🩰":"ballet-shoes","👢":"woman-s-boot","🪮":"hair-pick","👑":"crown","👒":"woman-s-hat","🎩":"top-hat","🎓":"graduation-cap","🧢":"billed-cap","🪖":"military-helmet","⛑️":"rescue-worker-s-helmet","📿":"prayer-beads","💄":"lipstick","💍":"ring","💎":"gem-stone","🔇":"muted-speaker","🔈":"speaker-low-volume","🔉":"speaker-medium-volume","🔊":"speaker-high-volume","📢":"loudspeaker","📣":"megaphone","📯":"postal-horn","🔔":"bell","🔕":"bell-with-slash","🎼":"musical-score","🎵":"musical-note","🎶":"musical-notes","🎙️":"studio-microphone","🎚️":"level-slider","🎛️":"control-knobs","🎤":"microphone","🎧":"headphone","📻":"radio","🎷":"saxophone","🪗":"accordion","🎸":"guitar","🎹":"musical-keyboard","🎺":"trumpet","🎻":"violin","🪕":"banjo","🥁":"drum","🪘":"long-drum","🪇":"maracas","🪈":"flute","📱":"mobile-phone","📲":"mobile-phone-with-arrow","☎️":"telephone","📞":"telephone-receiver","📟":"pager","📠":"fax-machine","🔋":"battery","🪫":"low-battery","🔌":"electric-plug","💻":"laptop","🖥️":"desktop-computer","🖨️":"printer","⌨️":"keyboard","🖱️":"computer-mouse","🖲️":"trackball","💽":"computer-disk","💾":"floppy-disk","💿":"optical-disk","📀":"dvd","🧮":"abacus","🎥":"movie-camera","🎞️":"film-frames","📽️":"film-projector","🎬":"clapper-board","📺":"television","📷":"camera","📸":"camera-with-flash","📹":"video-camera","📼":"videocassette","🔍":"magnifying-glass-tilted-left","🔎":"magnifying-glass-tilted-right","🕯️":"candle","💡":"light-bulb","🔦":"flashlight","🏮":"red-paper-lantern","🪔":"diya-lamp","📔":"notebook-with-decorative-cover","📕":"closed-book","📖":"open-book","📗":"green-book","📘":"blue-book","📙":"orange-book","📚":"books","📓":"notebook","📒":"ledger","📃":"page-with-curl","📜":"scroll","📄":"page-facing-up","📰":"newspaper","🗞️":"rolled-up-newspaper","📑":"bookmark-tabs","🔖":"bookmark","🏷️":"label","💰":"money-bag","🪙":"coin","💴":"yen-banknote","💵":"dollar-banknote","💶":"euro-banknote","💷":"pound-banknote","💸":"money-with-wings","💳":"credit-card","🧾":"receipt","💹":"chart-increasing-with-yen","✉️":"envelope","📧":"e-mail","📨":"incoming-envelope","📩":"envelope-with-arrow","📤":"outbox-tray","📥":"inbox-tray","📦":"package","📫":"closed-mailbox-with-raised-flag","📪":"closed-mailbox-with-lowered-flag","📬":"open-mailbox-with-raised-flag","📭":"open-mailbox-with-lowered-flag","📮":"postbox","🗳️":"ballot-box-with-ballot","✏️":"pencil","✒️":"black-nib","🖋️":"fountain-pen","🖊️":"pen","🖌️":"paintbrush","🖍️":"crayon","📝":"memo","💼":"briefcase","📁":"file-folder","📂":"open-file-folder","🗂️":"card-index-dividers","📅":"calendar","📆":"tear-off-calendar","🗒️":"spiral-notepad","🗓️":"spiral-calendar","📇":"card-index","📈":"chart-increasing","📉":"chart-decreasing","📊":"bar-chart","📋":"clipboard","📌":"pushpin","📍":"round-pushpin","📎":"paperclip","🖇️":"linked-paperclips","📏":"straight-ruler","📐":"triangular-ruler","✂️":"scissors","🗃️":"card-file-box","🗄️":"file-cabinet","🗑️":"wastebasket","🔒":"locked","🔓":"unlocked","🔏":"locked-with-pen","🔐":"locked-with-key","🔑":"key","🗝️":"old-key","🔨":"hammer","🪓":"axe","⛏️":"pick","⚒️":"hammer-and-pick","🛠️":"hammer-and-wrench","🗡️":"dagger","⚔️":"crossed-swords","💣":"bomb","🪃":"boomerang","🏹":"bow-and-arrow","🛡️":"shield","🪚":"carpentry-saw","🔧":"wrench","🪛":"screwdriver","🔩":"nut-and-bolt","⚙️":"gear","🗜️":"clamp","⚖️":"balance-scale","🦯":"white-cane","🔗":"link","⛓️":"chains","🪝":"hook","🧰":"toolbox","🧲":"magnet","🪜":"ladder","⚗️":"alembic","🧪":"test-tube","🧫":"petri-dish","🧬":"dna","🔬":"microscope","🔭":"telescope","📡":"satellite-antenna","💉":"syringe","🩸":"drop-of-blood","💊":"pill","🩹":"adhesive-bandage","🩼":"crutch","🩺":"stethoscope","🩻":"x-ray","🚪":"door","🛗":"elevator","🪞":"mirror","🪟":"window","🛏️":"bed","🛋️":"couch-and-lamp","🪑":"chair","🚽":"toilet","🪠":"plunger","🚿":"shower","🛁":"bathtub","🪤":"mouse-trap","🪒":"razor","🧴":"lotion-bottle","🧷":"safety-pin","🧹":"broom","🧺":"basket","🧻":"roll-of-paper","🪣":"bucket","🧼":"soap","🫧":"bubbles","🪥":"toothbrush","🧽":"sponge","🧯":"fire-extinguisher","🛒":"shopping-cart","🚬":"cigarette","⚰️":"coffin","🪦":"headstone","⚱️":"funeral-urn","🧿":"nazar-amulet","🪬":"hamsa","🗿":"moai","🪧":"placard","🪪":"identification-card","🏧":"atm-sign","🚮":"litter-in-bin-sign","🚰":"potable-water","♿":"wheelchair-symbol","🚹":"men-s-room","🚺":"women-s-room","🚻":"restroom","🚼":"baby-symbol","🚾":"water-closet","🛂":"passport-control","🛃":"customs","🛄":"baggage-claim","🛅":"left-luggage","⚠️":"warning","🚸":"children-crossing","⛔":"no-entry","🚫":"prohibited","🚳":"no-bicycles","🚭":"no-smoking","🚯":"no-littering","🚱":"non-potable-water","🚷":"no-pedestrians","📵":"no-mobile-phones","🔞":"no-one-under-eighteen","☢️":"radioactive","☣️":"biohazard","⬆️":"up-arrow","↗️":"up-right-arrow","➡️":"right-arrow","↘️":"down-right-arrow","⬇️":"down-arrow","↙️":"down-left-arrow","⬅️":"left-arrow","↖️":"up-left-arrow","↕️":"up-down-arrow","↔️":"left-right-arrow","↩️":"right-arrow-curving-left","↪️":"left-arrow-curving-right","⤴️":"right-arrow-curving-up","⤵️":"right-arrow-curving-down","🔃":"clockwise-vertical-arrows","🔄":"counterclockwise-arrows-button","🔙":"back-arrow","🔚":"end-arrow","🔛":"on-arrow","🔜":"soon-arrow","🔝":"top-arrow","🛐":"place-of-worship","⚛️":"atom-symbol","🕉️":"om","✡️":"star-of-david","☸️":"wheel-of-dharma","☯️":"yin-yang","✝️":"latin-cross","☦️":"orthodox-cross","☪️":"star-and-crescent","☮️":"peace-symbol","🕎":"menorah","🔯":"dotted-six-pointed-star","🪯":"khanda","♈":"aries","♉":"taurus","♊":"gemini","♋":"cancer","♌":"leo","♍":"virgo","♎":"libra","♏":"scorpio","♐":"sagittarius","♑":"capricorn","♒":"aquarius","♓":"pisces","⛎":"ophiuchus","🔀":"shuffle-tracks-button","🔁":"repeat-button","🔂":"repeat-single-button","▶️":"play-button","⏩":"fast-forward-button","⏭️":"next-track-button","⏯️":"play-or-pause-button","◀️":"reverse-button","⏪":"fast-reverse-button","⏮️":"last-track-button","🔼":"upwards-button","⏫":"fast-up-button","🔽":"downwards-button","⏬":"fast-down-button","⏸️":"pause-button","⏹️":"stop-button","⏺️":"record-button","⏏️":"eject-button","🎦":"cinema","🔅":"dim-button","🔆":"bright-button","📶":"antenna-bars","🛜":"wireless","📳":"vibration-mode","📴":"mobile-phone-off","♀️":"female-sign","♂️":"male-sign","⚧️":"transgender-symbol","✖️":"multiply","➕":"plus","➖":"minus","➗":"divide","🟰":"heavy-equals-sign","♾️":"infinity","‼️":"double-exclamation-mark","⁉️":"exclamation-question-mark","❓":"red-question-mark","❔":"white-question-mark","❕":"white-exclamation-mark","❗":"red-exclamation-mark","〰️":"wavy-dash","💱":"currency-exchange","💲":"heavy-dollar-sign","⚕️":"medical-symbol","♻️":"recycling-symbol","⚜️":"fleur-de-lis","🔱":"trident-emblem","📛":"name-badge","🔰":"japanese-symbol-for-beginner","⭕":"hollow-red-circle","✅":"check-mark-button","☑️":"check-box-with-check","✔️":"check-mark","❌":"cross-mark","❎":"cross-mark-button","➰":"curly-loop","➿":"double-curly-loop","〽️":"part-alternation-mark","✳️":"eight-spoked-asterisk","✴️":"eight-pointed-star","❇️":"sparkle","©️":"copyright","®️":"registered","™️":"trade-mark","#️⃣":"keycap-number-sign","*️⃣":"keycap-asterisk","0️⃣":"keycap-0","1️⃣":"keycap-1","2️⃣":"keycap-2","3️⃣":"keycap-3","4️⃣":"keycap-4","5️⃣":"keycap-5","6️⃣":"keycap-6","7️⃣":"keycap-7","8️⃣":"keycap-8","9️⃣":"keycap-9","🔟":"keycap-10","🔠":"input-latin-uppercase","🔡":"input-latin-lowercase","🔢":"input-numbers","🔣":"input-symbols","🔤":"input-latin-letters","🅰️":"a-button","🆎":"ab-button","🅱️":"b-button","🆑":"cl-button","🆒":"cool-button","🆓":"free-button","ℹ️":"information","🆔":"id-button","Ⓜ️":"circled-m","🆕":"new-button","🆖":"ng-button","🅾️":"o-button","🆗":"ok-button","🅿️":"p-button","🆘":"sos-button","🆙":"up-button","🆚":"vs-button","🈁":"japanese-here-button","🈂️":"japanese-service-charge-button","🈷️":"japanese-monthly-amount-button","🈶":"japanese-not-free-of-charge-button","🈯":"japanese-reserved-button","🉐":"japanese-bargain-button","🈹":"japanese-discount-button","🈚":"japanese-free-of-charge-button","🈲":"japanese-prohibited-button","🉑":"japanese-acceptable-button","🈸":"japanese-application-button","🈴":"japanese-passing-grade-button","🈳":"japanese-vacancy-button","㊗️":"japanese-congratulations-button","㊙️":"japanese-secret-button","🈺":"japanese-open-for-business-button","🈵":"japanese-no-vacancy-button","🔴":"red-circle","🟠":"orange-circle","🟡":"yellow-circle","🟢":"green-circle","🔵":"blue-circle","🟣":"purple-circle","🟤":"brown-circle","⚫":"black-circle","⚪":"white-circle","🟥":"red-square","🟧":"orange-square","🟨":"yellow-square","🟩":"green-square","🟦":"blue-square","🟪":"purple-square","🟫":"brown-square","⬛":"black-large-square","⬜":"white-large-square","◼️":"black-medium-square","◻️":"white-medium-square","◾":"black-medium-small-square","◽":"white-medium-small-square","▪️":"black-small-square","▫️":"white-small-square","🔶":"large-orange-diamond","🔷":"large-blue-diamond","🔸":"small-orange-diamond","🔹":"small-blue-diamond","🔺":"red-triangle-pointed-up","🔻":"red-triangle-pointed-down","💠":"diamond-with-a-dot","🔘":"radio-button","🔳":"white-square-button","🔲":"black-square-button","🏁":"chequered-flag","🚩":"triangular-flag","🎌":"crossed-flags","🏴":"black-flag","🏳️":"white-flag","🏳️🌈":"rainbow-flag","🏳️⚧️":"transgender-flag","🏴☠️":"pirate-flag","🇦🇨":"flag-ascension-island","🇦🇩":"flag-andorra","🇦🇪":"flag-united-arab-emirates","🇦🇫":"flag-afghanistan","🇦🇬":"flag-antigua-barbuda","🇦🇮":"flag-anguilla","🇦🇱":"flag-albania","🇦🇲":"flag-armenia","🇦🇴":"flag-angola","🇦🇶":"flag-antarctica","🇦🇷":"flag-argentina","🇦🇸":"flag-american-samoa","🇦🇹":"flag-austria","🇦🇺":"flag-australia","🇦🇼":"flag-aruba","🇦🇽":"flag-aland-islands","🇦🇿":"flag-azerbaijan","🇧🇦":"flag-bosnia-herzegovina","🇧🇧":"flag-barbados","🇧🇩":"flag-bangladesh","🇧🇪":"flag-belgium","🇧🇫":"flag-burkina-faso","🇧🇬":"flag-bulgaria","🇧🇭":"flag-bahrain","🇧🇮":"flag-burundi","🇧🇯":"flag-benin","🇧🇱":"flag-st-barthelemy","🇧🇲":"flag-bermuda","🇧🇳":"flag-brunei","🇧🇴":"flag-bolivia","🇧🇶":"flag-caribbean-netherlands","🇧🇷":"flag-brazil","🇧🇸":"flag-bahamas","🇧🇹":"flag-bhutan","🇧🇻":"flag-bouvet-island","🇧🇼":"flag-botswana","🇧🇾":"flag-belarus","🇧🇿":"flag-belize","🇨🇦":"flag-canada","🇨🇨":"flag-cocos-islands","🇨🇩":"flag-congo-kinshasa","🇨🇫":"flag-central-african-republic","🇨🇬":"flag-congo-brazzaville","🇨🇭":"flag-switzerland","🇨🇮":"flag-cote-d-ivoire","🇨🇰":"flag-cook-islands","🇨🇱":"flag-chile","🇨🇲":"flag-cameroon","🇨🇳":"flag-china","🇨🇴":"flag-colombia","🇨🇵":"flag-clipperton-island","🇨🇷":"flag-costa-rica","🇨🇺":"flag-cuba","🇨🇻":"flag-cape-verde","🇨🇼":"flag-curacao","🇨🇽":"flag-christmas-island","🇨🇾":"flag-cyprus","🇨🇿":"flag-czechia","🇩🇪":"flag-germany","🇩🇬":"flag-diego-garcia","🇩🇯":"flag-djibouti","🇩🇰":"flag-denmark","🇩🇲":"flag-dominica","🇩🇴":"flag-dominican-republic","🇩🇿":"flag-algeria","🇪🇦":"flag-ceuta-melilla","🇪🇨":"flag-ecuador","🇪🇪":"flag-estonia","🇪🇬":"flag-egypt","🇪🇭":"flag-western-sahara","🇪🇷":"flag-eritrea","🇪🇸":"flag-spain","🇪🇹":"flag-ethiopia","🇪🇺":"flag-european-union","🇫🇮":"flag-finland","🇫🇯":"flag-fiji","🇫🇰":"flag-falkland-islands","🇫🇲":"flag-micronesia","🇫🇴":"flag-faroe-islands","🇫🇷":"flag-france","🇬🇦":"flag-gabon","🇬🇧":"flag-united-kingdom","🇬🇩":"flag-grenada","🇬🇪":"flag-georgia","🇬🇫":"flag-french-guiana","🇬🇬":"flag-guernsey","🇬🇭":"flag-ghana","🇬🇮":"flag-gibraltar","🇬🇱":"flag-greenland","🇬🇲":"flag-gambia","🇬🇳":"flag-guinea","🇬🇵":"flag-guadeloupe","🇬🇶":"flag-equatorial-guinea","🇬🇷":"flag-greece","🇬🇸":"flag-south-georgia-south-sandwich-islands","🇬🇹":"flag-guatemala","🇬🇺":"flag-guam","🇬🇼":"flag-guinea-bissau","🇬🇾":"flag-guyana","🇭🇰":"flag-hong-kong-sar-china","🇭🇲":"flag-heard-mcdonald-islands","🇭🇳":"flag-honduras","🇭🇷":"flag-croatia","🇭🇹":"flag-haiti","🇭🇺":"flag-hungary","🇮🇨":"flag-canary-islands","🇮🇩":"flag-indonesia","🇮🇪":"flag-ireland","🇮🇱":"flag-israel","🇮🇲":"flag-isle-of-man","🇮🇳":"flag-india","🇮🇴":"flag-british-indian-ocean-territory","🇮🇶":"flag-iraq","🇮🇷":"flag-iran","🇮🇸":"flag-iceland","🇮🇹":"flag-italy","🇯🇪":"flag-jersey","🇯🇲":"flag-jamaica","🇯🇴":"flag-jordan","🇯🇵":"flag-japan","🇰🇪":"flag-kenya","🇰🇬":"flag-kyrgyzstan","🇰🇭":"flag-cambodia","🇰🇮":"flag-kiribati","🇰🇲":"flag-comoros","🇰🇳":"flag-st-kitts-nevis","🇰🇵":"flag-north-korea","🇰🇷":"flag-south-korea","🇰🇼":"flag-kuwait","🇰🇾":"flag-cayman-islands","🇰🇿":"flag-kazakhstan","🇱🇦":"flag-laos","🇱🇧":"flag-lebanon","🇱🇨":"flag-st-lucia","🇱🇮":"flag-liechtenstein","🇱🇰":"flag-sri-lanka","🇱🇷":"flag-liberia","🇱🇸":"flag-lesotho","🇱🇹":"flag-lithuania","🇱🇺":"flag-luxembourg","🇱🇻":"flag-latvia","🇱🇾":"flag-libya","🇲🇦":"flag-morocco","🇲🇨":"flag-monaco","🇲🇩":"flag-moldova","🇲🇪":"flag-montenegro","🇲🇫":"flag-st-martin","🇲🇬":"flag-madagascar","🇲🇭":"flag-marshall-islands","🇲🇰":"flag-north-macedonia","🇲🇱":"flag-mali","🇲🇲":"flag-myanmar","🇲🇳":"flag-mongolia","🇲🇴":"flag-macao-sar-china","🇲🇵":"flag-northern-mariana-islands","🇲🇶":"flag-martinique","🇲🇷":"flag-mauritania","🇲🇸":"flag-montserrat","🇲🇹":"flag-malta","🇲🇺":"flag-mauritius","🇲🇻":"flag-maldives","🇲🇼":"flag-malawi","🇲🇽":"flag-mexico","🇲🇾":"flag-malaysia","🇲🇿":"flag-mozambique","🇳🇦":"flag-namibia","🇳🇨":"flag-new-caledonia","🇳🇪":"flag-niger","🇳🇫":"flag-norfolk-island","🇳🇬":"flag-nigeria","🇳🇮":"flag-nicaragua","🇳🇱":"flag-netherlands","🇳🇴":"flag-norway","🇳🇵":"flag-nepal","🇳🇷":"flag-nauru","🇳🇺":"flag-niue","🇳🇿":"flag-new-zealand","🇴🇲":"flag-oman","🇵🇦":"flag-panama","🇵🇪":"flag-peru","🇵🇫":"flag-french-polynesia","🇵🇬":"flag-papua-new-guinea","🇵🇭":"flag-philippines","🇵🇰":"flag-pakistan","🇵🇱":"flag-poland","🇵🇲":"flag-st-pierre-miquelon","🇵🇳":"flag-pitcairn-islands","🇵🇷":"flag-puerto-rico","🇵🇸":"flag-palestinian-territories","🇵🇹":"flag-portugal","🇵🇼":"flag-palau","🇵🇾":"flag-paraguay","🇶🇦":"flag-qatar","🇷🇪":"flag-reunion","🇷🇴":"flag-romania","🇷🇸":"flag-serbia","🇷🇺":"flag-russia","🇷🇼":"flag-rwanda","🇸🇦":"flag-saudi-arabia","🇸🇧":"flag-solomon-islands","🇸🇨":"flag-seychelles","🇸🇩":"flag-sudan","🇸🇪":"flag-sweden","🇸🇬":"flag-singapore","🇸🇭":"flag-st-helena","🇸🇮":"flag-slovenia","🇸🇯":"flag-svalbard-jan-mayen","🇸🇰":"flag-slovakia","🇸🇱":"flag-sierra-leone","🇸🇲":"flag-san-marino","🇸🇳":"flag-senegal","🇸🇴":"flag-somalia","🇸🇷":"flag-suriname","🇸🇸":"flag-south-sudan","🇸🇹":"flag-sao-tome-principe","🇸🇻":"flag-el-salvador","🇸🇽":"flag-sint-maarten","🇸🇾":"flag-syria","🇸🇿":"flag-eswatini","🇹🇦":"flag-tristan-da-cunha","🇹🇨":"flag-turks-caicos-islands","🇹🇩":"flag-chad","🇹🇫":"flag-french-southern-territories","🇹🇬":"flag-togo","🇹🇭":"flag-thailand","🇹🇯":"flag-tajikistan","🇹🇰":"flag-tokelau","🇹🇱":"flag-timor-leste","🇹🇲":"flag-turkmenistan","🇹🇳":"flag-tunisia","🇹🇴":"flag-tonga","🇹🇷":"flag-turkey","🇹🇹":"flag-trinidad-tobago","🇹🇻":"flag-tuvalu","🇹🇼":"flag-taiwan","🇹🇿":"flag-tanzania","🇺🇦":"flag-ukraine","🇺🇬":"flag-uganda","🇺🇲":"flag-u-s-outlying-islands","🇺🇳":"flag-united-nations","🇺🇸":"flag-united-states","🇺🇾":"flag-uruguay","🇺🇿":"flag-uzbekistan","🇻🇦":"flag-vatican-city","🇻🇨":"flag-st-vincent-grenadines","🇻🇪":"flag-venezuela","🇻🇬":"flag-british-virgin-islands","🇻🇮":"flag-u-s-virgin-islands","🇻🇳":"flag-vietnam","🇻🇺":"flag-vanuatu","🇼🇫":"flag-wallis-futuna","🇼🇸":"flag-samoa","🇽🇰":"flag-kosovo","🇾🇪":"flag-yemen","🇾🇹":"flag-mayotte","🇿🇦":"flag-south-africa","🇿🇲":"flag-zambia","🇿🇼":"flag-zimbabwe","🏴":"flag-england","🏴":"flag-scotland","🏴":"flag-wales"};var bU,vU=function(e){var t,n=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;return null===(t=e.match(n))||void 0===t?void 0:t[0]},yU=oH((function(e){return{container:(0,e.css)(bU||(bU=hf(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "])))}})),wU=U.memo((function(e){var t=e.emoji,n=e.className,r=e.style,o=e.type,i=void 0===o?"3d":o,a=e.size,l=void 0===a?40:a,s=e.unoptimized,c=pU(),u=Yh(U.useState(!1),2),d=u[0],f=u[1],p=yU(),h=p.cx,g=p.styles,m=U.useMemo((function(){if("pure"!==i){var e=function(e){var t=vU(e);if(t)return null==mU?void 0:mU[t]}(t);if(e)switch(i){case"modern":case"flat":case"high-contrast":return c({path:"icons/".concat(i,"/").concat(nU(e),".svg"),pkg:"fluentui-emoji",version:"0.0.8"});case"anim":return c({path:"assets/".concat(e,".webp"),pkg:"@lobehub/assets-emoji-anim",version:"1.0.0"});case"3d":return c({path:"assets/".concat(e,".webp"),pkg:"@lobehub/assets-emoji",version:"1.3.0"})}}}),[i,t]);return"pure"===i||!m||d?ee.jsx("div",{className:h(g.container,n),style:Od({fontSize:.9*l,height:l,width:l},r),children:t}):ee.jsx("div",{className:h(g.container,n),style:Od({height:l,width:l},r),children:ee.jsx(gU,{alt:t,height:l,loading:"lazy",onError:function(){return f(!0)},src:m,unoptimized:s,width:l})})}));var xU=function(e){var t,n;function r(t){return gv(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,dv(t,n),r}(oD(Error));function kU(e){return Math.round(255*e)}function SU(e,t,n){return kU(e)+","+kU(t)+","+kU(n)}function CU(e,t,n,r){if(void 0===r&&(r=SU),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,c=0;o>=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 EU={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 DU=/^#[a-fA-F0-9]{6}$/,$U=/^#[a-fA-F0-9]{8}$/,OU=/^#[a-fA-F0-9]{3}$/,_U=/^#[a-fA-F0-9]{4}$/,IU=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,NU=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,jU=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,PU=/^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 TU(e){if("string"!=typeof e)throw new xU(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return EU[t]?"#"+EU[t]:e}(e);if(t.match(DU))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($U)){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(OU))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(_U)){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=IU.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=NU.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=jU.exec(t);if(a){var l="rgb("+CU(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=IU.exec(l);if(!s)throw new xU(4,t,l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=PU.exec(t.substring(0,50));if(c){var u="rgb("+CU(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=IU.exec(u);if(!d)throw new xU(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 xU(5)}function FU(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<o?6:0);break;case r:t=(o-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:l,alpha:e.alpha}:{hue:t,saturation:c,lightness:l}}(TU(e))}var RU=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function AU(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function MU(e){return AU(Math.round(255*e))}function LU(e,t,n){return RU("#"+MU(e)+MU(t)+MU(n))}function zU(e,t,n){return CU(e,t,n,LU)}function BU(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return RU("#"+AU(e)+AU(t)+AU(n));if("object"==typeof e&&void 0===t&&void 0===n)return RU("#"+AU(e.red)+AU(e.green)+AU(e.blue));throw new xU(6)}function HU(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=TU(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?BU(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new xU(7)}var WU=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},UU=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},qU=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},VU=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function GU(e){if("object"!=typeof e)throw new xU(8);if(UU(e))return HU(e);if(WU(e))return BU(e);if(VU(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?zU(e,t,n):"rgba("+CU(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?zU(e.hue,e.saturation,e.lightness):"rgba("+CU(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new xU(2)}(e);if(qU(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return zU(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return zU(e.hue,e.saturation,e.lightness);throw new xU(1)}(e);throw new xU(8)}function XU(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):XU(e,t,r)}}function KU(e){return XU(e,e.length,[])}var YU=KU((function(e,t){if("transparent"===t)return t;var n=FU(t);return GU(hh({},n,{hue:n.hue+parseFloat(e)}))}));function QU(e,t,n){return Math.max(e,Math.min(t,n))}function JU(e){if("transparent"===e)return 0;var t=TU(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))}KU((function(e,t){if("transparent"===t)return t;var n=FU(t);return GU(hh({},n,{lightness:QU(0,1,n.lightness-parseFloat(e))}))})),KU((function(e,t){if("transparent"===t)return t;var n=FU(t);return GU(hh({},n,{saturation:QU(0,1,n.saturation-parseFloat(e))}))}));var ZU=KU((function(e,t){if("transparent"===t)return t;var n=FU(t);return GU(hh({},n,{lightness:QU(0,1,n.lightness+parseFloat(e))}))}));var eq=KU((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=TU(t),o=hh({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=TU(n),a=hh({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),l=o.alpha-a.alpha,s=2*parseFloat(e)-1,c=((s*l==-1?s:s+l)/(1+s*l)+1)/2,u=1-c;return HU({red:Math.floor(o.red*c+a.red*u),green:Math.floor(o.green*c+a.green*u),blue:Math.floor(o.blue*c+a.blue*u),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})}));KU((function(e,t){if("transparent"===t)return t;var n=TU(t);return HU(hh({},n,{alpha:QU(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}));var tq,nq="#000",rq="#fff";function oq(e,t,n,r){void 0===t&&(t=nq),void 0===n&&(n=rq),void 0===r&&(r=!0);var o,i,a,l=JU(e)>.179,s=l?t:n;return!r||(o=s,i=JU(e),a=JU(o),parseFloat((i>a?(i+.05)/(a+.05):(a+.05)/(i+.05)).toFixed(2))>=4.5)?s:l?nq:rq}KU((function(e,t){if("transparent"===t)return t;var n=FU(t);return GU(hh({},n,{saturation:QU(0,1,n.saturation+parseFloat(e))}))})),KU((function(e,t){return"transparent"===t?t:GU(hh({},FU(t),{hue:parseFloat(e)}))})),KU((function(e,t){return"transparent"===t?t:GU(hh({},FU(t),{lightness:parseFloat(e)}))})),KU((function(e,t){return"transparent"===t?t:GU(hh({},FU(t),{saturation:parseFloat(e)}))})),KU((function(e,t){return"transparent"===t?t:eq(parseFloat(e),"rgb(0, 0, 0)",t)})),KU((function(e,t){return"transparent"===t?t:eq(parseFloat(e),"rgb(255, 255, 255)",t)})),KU((function(e,t){if("transparent"===t)return t;var n=TU(t);return HU(hh({},n,{alpha:QU(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}));var iq=oH((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=oq(s);return{avatar:n(tq||(tq=hf(["\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)}})),aq=["className","avatar","title","animation","size","shape","background","style","unoptimized"],lq=U.memo((function(e){var t=e.className,n=e.avatar,r=e.title,o=e.animation,i=e.size,a=void 0===i?40:i,l=e.shape,s=void 0===l?"circle":l,c=e.background,u=void 0===c?"rgba(0,0,0,0)":c,d=e.style,f=e.unoptimized,p=_d(e,aq),h="string"==typeof n,g=Boolean(n&&(["/","http","data:"].some((function(e){return h&&n.startsWith(e)}))||U.isValidElement(n))),m=U.useMemo((function(){return n&&!g&&h&&vU(n)}),[n]),b=iq({background:u,isEmoji:Boolean(m),size:a}),v=b.styles,y=b.cx,w=String(g?r:n),x=Od({className:y(v.avatar,t),shape:s,size:a,style:null!=p&&p.onClick?d:Od({cursor:"default"},d)},p);return g?ee.jsx(Vj,Od({src:"string"==typeof n?ee.jsx(gU,{alt:x.alt||r,height:a,loading:"lazy",src:n,width:a}):n},x)):ee.jsx(Vj,Od(Od({},x),{},{children:m?ee.jsx(wU,{emoji:m,size:.8*a,type:o?"anim":"3d",unoptimized:f}):null==w?void 0:w.toUpperCase().slice(0,2)}))}));function sq(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(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 cq=function(e){return"function"==typeof e};function uq(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function dq(e){var t=U.useRef(e);return t.current=e,t}var fq=function(e){var t=dq(e);U.useEffect((function(){return function(){t.current()}}),[])};var pq=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},hq="object"==typeof r&&r&&r.Object===Object&&r,gq=hq,mq="object"==typeof self&&self&&self.Object===Object&&self,bq=gq||mq||Function("return this")(),vq=bq.Symbol,yq=vq,wq=Object.prototype,xq=wq.hasOwnProperty,kq=wq.toString,Sq=yq?yq.toStringTag:void 0;var Cq=function(e){var t=xq.call(e,Sq),n=e[Sq];try{e[Sq]=void 0;var r=!0}catch(b6){}var o=kq.call(e);return r&&(t?e[Sq]=n:delete e[Sq]),o},Eq=Object.prototype.toString;var Dq=Cq,$q=function(e){return Eq.call(e)},Oq=vq?vq.toStringTag:void 0;var _q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Oq&&Oq in Object(e)?Dq(e):$q(e)};var Iq=function(e){return null!=e&&"object"==typeof e},Nq=_q,jq=Iq;var Pq=function(e){return"symbol"==typeof e||jq(e)&&"[object Symbol]"==Nq(e)},Tq=!("undefined"==typeof window||!window.document||!window.document.createElement);function Fq(e){var t=sq(function(e,t){var n=sq(U.useState(e),2),r=n[0],o=n[1];return[r,U.useMemo((function(){var t=!e;return{toggle:function(){return o((function(n){return n===e?t:e}))},set:function(e){return o(e)},setLeft:function(){return o(e)},setRight:function(){return o(t)}}}),[])]}(!!e),2),n=t[0],r=t[1],o=r.toggle,i=r.set;return[n,U.useMemo((function(){return{toggle:o,set:function(e){return i(!!e)},setTrue:function(){return i(!0)},setFalse:function(){return i(!1)}}}),[])]}function Rq(e,t){if(Tq)return e?cq(e)?e():"current"in e?e.current:e:t}var Aq=function(e){return function(t,n,r){var o=U.useRef(!1),i=U.useRef([]),a=U.useRef([]),l=U.useRef();e((function(){var e,s=(Array.isArray(r)?r:[r]).map((function(e){return Rq(e)}));if(!o.current)return o.current=!0,i.current=s,a.current=n,void(l.current=t());s.length===i.current.length&&uq(i.current,s)&&uq(a.current,n)||(null===(e=l.current)||void 0===e||e.call(l),i.current=s,a.current=n,l.current=t())})),fq((function(){var e;null===(e=l.current)||void 0===e||e.call(l),o.current=!1}))}},Mq=Aq(U.useEffect),Lq="undefined"!=typeof Element,zq="function"==typeof Map,Bq="function"==typeof Set,Hq="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Wq(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Wq(e[r],t[r]))return!1;return!0}if(zq&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Wq(r.value[1],t.get(r.value[0])))return!1;return!0}if(Bq&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Hq&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Lq&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Wq(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Uq=function(e,t){try{return Wq(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const qq=o(Uq);function Vq(e,t,n){void 0===n&&(n={});var r=dq(t);Mq((function(){var t=Rq(n.target,window);if(null==t?void 0:t.addEventListener){var o=function(e){return r.current(e)};return t.addEventListener(e,o,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(e,o,{capture:n.capture})}}}),[e,n.capture,n.once,n.passive],n.target)}function Gq(e){var t=U.useRef(0),n=sq(U.useState(e),2),r=n[0],o=n[1],i=U.useCallback((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){o(e)}))}),[]);return fq((function(){cancelAnimationFrame(t.current)})),[r,i]}var Xq=function(e,t){return function(n){return e(t(n))}};var Kq,Yq,Qq,Jq,Zq,eV=Aq(U.useLayoutEffect),tV=Tq?eV:Mq;var nV,rV,oV,iV,aV,lV,sV,cV,uV,dV,fV,pV,hV,gV,mV,bV,vV,yV,wV,xV,kV=oH((function(e,t){var n=e.token,r=e.css,o=e.stylish,i=e.prefixCls,a=t.fullscreen,l=t.headerHeight;return{container:r(Kq||(Kq=hf(["\n cursor: pointer;\n width: ","px;\n height: ","px;\n border-radius: ","px;\n "])),n.controlHeight,n.controlHeight,n.borderRadius),drawer:r(Yq||(Yq=hf(["\n &.","-drawer-content {\n background: transparent;\n }\n\n .","-drawer-body {\n display: flex;\n flex-direction: column;\n }\n "])),i,i),drawerRoot:r(Qq||(Qq=hf(["\n inset-block-start: ","px;\n\n :focus-visible {\n outline: none;\n }\n\n .","-drawer {\n &-mask {\n ",";\n background-color: ",";\n }\n\n &-content-wrapper {\n box-shadow: none;\n }\n }\n "])),a?0:l+1,i,o.blur,HU(n.colorBgLayout,.5)),fillRect:r(Jq||(Jq=hf(["\n flex: 1;\n width: 100%;\n border-block-start: none;\n "]))),menu:r(Zq||(Zq=hf(["\n padding-block-start: ","px;\n background: transparent;\n border-inline-end: transparent !important;\n\n > .","-menu-item-only-child, .","-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-block-start: 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-block-start: 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-block: 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 "])),a?l:0,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)}})),SV=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight","onClick","iconProps","rootClassName","fullscreen","drawerProps"],CV=U.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,i=e.setOpened,a=e.className,l=e.headerHeight,s=void 0===l?64:l,c=e.onClick,u=e.iconProps,d=e.rootClassName,f=e.fullscreen,p=e.drawerProps,h=_d(e,SV),g=kV({fullscreen:f,headerHeight:s}),m=g.cx,b=g.styles;return ee.jsxs(Qp,Od(Od({className:m(b.container,a),onClick:function(){i(!o)}},h),{},{children:[ee.jsx(CH,Od({icon:o?df:Zd,size:"site"},u)),ee.jsxs(VM,Od(Od({closeIcon:void 0,open:o,placement:"left",width:"100vw"},p),{},{className:b.drawer,rootClassName:m(b.drawerRoot,d),styles:{body:{padding:0},header:{display:"none"}},children:[ee.jsx(GT,{className:b.menu,items:t,mode:"inline",onClick:c,openKeys:n,selectedKeys:r}),ee.jsx("div",{className:b.fillRect})]}))]}))})),EV=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DV=function(){return DV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},DV.apply(this,arguments)},$V={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},OV={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},_V={width:"20px",height:"20px",position:"absolute"},IV={top:DV(DV({},$V),{top:"-5px"}),right:DV(DV({},OV),{left:void 0,right:"-5px"}),bottom:DV(DV({},$V),{top:void 0,bottom:"-5px"}),left:DV(DV({},OV),{left:"-5px"}),topRight:DV(DV({},_V),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:DV(DV({},_V),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:DV(DV({},_V),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:DV(DV({},_V),{left:"-10px",top:"-10px",cursor:"nw-resize"})},NV=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return EV(t,e),t.prototype.render=function(){return U.createElement("div",{className:this.props.className||"",style:DV(DV({position:"absolute",userSelect:"none"},IV[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(U.PureComponent),jV=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PV=function(){return PV=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PV.apply(this,arguments)},TV={width:"auto",height:"auto"},FV=function(e,t,n){return Math.max(Math.min(e,n),t)},RV=function(e,t){return Math.round(e/t)*t},AV=function(e,t){return new RegExp(e,"i").test(t)},MV=function(e){return Boolean(e.touches&&e.touches.length)},LV=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},zV=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},BV=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},HV=["as","ref","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],WV="__resizable_base__",UV=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(WV):t.className+=WV,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return jV(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||TV},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return zV(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?zV(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?zV(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&AV("left",i),l=o&&AV("top",i);if("parent"===this.props.bounds){var s=this.parentNode;s&&(n=a?this.resizableRight-this.parentLeft:s.offsetWidth+(this.parentLeft-this.resizableLeft),r=l?this.resizableBottom-this.parentTop:s.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n,r=this.props.scale||1,o=(n=this.props.resizeRatio||1,Array.isArray(n)?n:[n,n]),i=o[0],a=o[1],l=this.state,s=l.direction,c=l.original,u=this.props,d=u.lockAspectRatio,f=u.lockAspectRatioExtraHeight,p=u.lockAspectRatioExtraWidth,h=c.width,g=c.height,m=f||0,b=p||0;return AV("right",s)&&(h=c.width+(e-c.x)*i/r,d&&(g=(h-b)/this.ratio+m)),AV("left",s)&&(h=c.width-(e-c.x)*i/r,d&&(g=(h-b)/this.ratio+m)),AV("bottom",s)&&(g=c.height+(t-c.y)*a/r,d&&(h=(g-m)*this.ratio+b)),AV("top",s)&&(g=c.height-(t-c.y)*a/r,d&&(h=(g-m)*this.ratio+b)),{newWidth:h,newHeight:g}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,l=o.lockAspectRatioExtraWidth,s=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=l||0;if(i){var h=(u-f)*this.ratio+p,g=(d-f)*this.ratio+p,m=(s-p)/this.ratio+f,b=(c-p)/this.ratio+f,v=Math.max(s,h),y=Math.min(c,g),w=Math.max(u,m),x=Math.min(d,b);e=FV(e,v,y),t=FV(t,w,x)}else e=FV(e,s,c),t=FV(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,l=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=l}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&MV(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var l=this.window.getComputedStyle(a).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var s={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:PV(PV({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(s)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&MV(e))try{e.preventDefault(),e.stopPropagation()}catch(b6){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,l=MV(e)?e.touches[0].clientX:e.clientX,s=MV(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,p=c.height,h=this.getParentSize(),g=function(e,t,n,r,o,i,a){return r=BV(r,e.width,t,n),o=BV(o,e.height,t,n),i=BV(i,e.width,t,n),a=BV(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(h,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=g.maxWidth,o=g.maxHeight,i=g.minWidth,a=g.minHeight;var m=this.calculateNewSizeFromDirection(l,s),b=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(v=LV(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(b=LV(b,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(v,b,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(v=w.newWidth,b=w.newHeight,this.props.grid){var x=RV(v,this.props.grid[0]),k=RV(b,this.props.grid[1]),S=this.props.snapGap||0;v=0===S||Math.abs(x-v)<=S?x:v,b=0===S||Math.abs(k-b)<=S?k:b}var C={width:v-d.width,height:b-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))v=v/h.width*100+"%";else if(f.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(p.endsWith("%"))b=b/h.height*100+"%";else if(p.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}var E={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(b,"height")};"row"===this.flexDir?E.flexBasis=E.width:"column"===this.flexDir&&(E.flexBasis=E.height);var D=this.state.width!==E.width,$=this.state.height!==E.height,O=this.state.flexBasis!==E.flexBasis,_=D||$||O;_&&yd.flushSync((function(){t.setState(E)})),this.props.onResize&&_&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:PV(PV({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,l=t.handleComponent;if(!n)return null;var s=Object.keys(n).map((function(t){return!1!==n[t]?U.createElement(NV,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},l&&l[t]?l[t]:null):null}));return U.createElement("div",{className:a,style:i},s)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==HV.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=PV(PV(PV({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return U.createElement(r,PV({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&U.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(U.PureComponent),qV=16,VV="draggable-panel",GV=oH((function(e,t){var n=e.token,r=t.headerHeight,o=t.showHandlerWideArea,i=aH(nV||(nV=hf(["\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n z-index: 50;\n transition: all 0.2s ",";\n }\n\n &:hover,\n &:active {\n &::before {\n background: "," !important;\n }\n }\n "])),n.motionEaseOut,n.colorPrimary),a=aH(rV||(rV=hf(["\n pointer-events: ",";\n\n position: absolute;\n z-index: 101;\n\n opacity: 0;\n\n transition: all 0.2s ",";\n\n &:hover {\n opacity: 1 !important;\n }\n\n &:active {\n opacity: 1 !important;\n }\n\n > div {\n pointer-events: all;\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),o?"all":"none",n.motionEaseOut,n.colorTextTertiary,n.colorFillTertiary,n.colorBorderSecondary,n.motionEaseOut,n.colorTextSecondary,n.colorFillSecondary,n.colorText,n.colorFill),l=aH(oV||(oV=hf(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:lH(l,aH(iV||(iV=hf(["\n inset-block-end: 0;\n inset-inline: 0 0;\n width: 100%;\n "])))),bottomHandle:lH("".concat(VV,"-bottom-handle"),aH(aV||(aV=hf(["\n ",";\n\n &::before {\n inset-block-end: 50%;\n width: 100%;\n height: 2px;\n }\n "])),i)),container:lH(VV,aH(lV||(lV=hf(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,VV)),fixed:aH(sV||(sV=hf(["\n position: relative;\n "]))),fullscreen:aH(cV||(cV=hf(["\n position: absolute;\n inset-block: ","px 0;\n inset-inline: 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),r,r,n.colorBgLayout),handlerIcon:aH(uV||(uV=hf(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:lH(l,aH(dV||(dV=hf(["\n inset-block: ","px 0;\n inset-inline-start: 0;\n height: calc(100% - ","px);\n "])),r,r)),leftHandle:lH(aH(fV||(fV=hf(["\n ",";\n\n &::before {\n inset-inline-start: 50%;\n width: 2px;\n height: 100%;\n }\n "])),i),"".concat(VV,"-left-handle")),panel:lH("".concat(VV,"-fixed"),aH(pV||(pV=hf(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:lH(l,aH(hV||(hV=hf(["\n inset-block: ","px 0;\n inset-inline-end: 0;\n height: calc(100% - ","px);\n "])),r,r)),rightHandle:lH(aH(gV||(gV=hf(["\n ",";\n &::before {\n inset-inline-end: 50%;\n width: 2px;\n height: 100%;\n }\n "])),i),"".concat(VV,"-right-handle")),toggleBottom:lH("".concat(VV,"-toggle"),"".concat(VV,"-toggle-bottom"),a,aH(mV||(mV=hf(["\n inset-block-end: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n inset-inline-start: 50%;\n\n width: ","px;\n height: 16px;\n margin-inline-start: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,qV,40)),toggleLeft:lH("".concat(VV,"-toggle"),"".concat(VV,"-toggle-left"),a,aH(bV||(bV=hf(["\n inset-inline-start: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n inset-block-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-block-start: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,qV,qV,40)),toggleRight:lH("".concat(VV,"-toggle"),"".concat(VV,"-toggle-right"),a,aH(vV||(vV=hf(["\n inset-inline-end: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n inset-block-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-block-start: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,qV,qV,40)),toggleTop:lH("".concat(VV,"-toggle"),"".concat(VV,"-toggle-top"),a,aH(yV||(yV=hf(["\n inset-block-start: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n inset-inline-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-inline-start: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,qV,40,qV)),topFloat:lH(l,aH(wV||(wV=hf(["\n inset-block-start: ","px;\n inset-inline: 0 0;\n width: 100%;\n "])),r)),topHandle:lH("".concat(VV,"-top-handle"),aH(xV||(xV=hf(["\n ",";\n\n &::before {\n inset-block-start: 50%;\n width: 100%;\n height: 2px;\n }\n "])),i))}})),XV=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}},KV=U.memo((function(e){var t,n,r,o,i,a,l,s,c,u,d=e.headerHeight,f=void 0===d?0:d,p=e.fullscreen,h=e.maxHeight,g=e.pin,m=void 0===g||g,b=e.mode,v=void 0===b?"fixed":b,y=e.children,w=e.placement,x=void 0===w?"right":w,k=e.resize,S=e.style,C=e.showHandlerWideArea,E=void 0===C||C,D=e.size,$=e.defaultSize,O=e.minWidth,_=e.minHeight,I=e.maxWidth,N=e.onSizeChange,j=e.onSizeDragging,P=e.expandable,T=void 0===P||P,F=e.expand,R=e.defaultExpand,A=void 0===R||R,M=e.onExpandChange,L=e.className,z=e.showHandlerWhenUnexpand,B=e.destroyOnClose,H=e.hanlderStyle,W=e.classNames,q=void 0===W?{}:W,V=e.dir,G=U.useRef(),X=(t=G,r=(n={}).onEnter,o=n.onLeave,i=n.onChange,a=sq(Fq(!1),2),l=a[0],s=a[1],c=s.setTrue,u=s.setFalse,Vq("mouseenter",(function(){null==r||r(),c(),null==i||i(!0)}),{target:t}),Vq("mouseleave",(function(){null==o||o(),u(),null==i||i(!1)}),{target:t}),l),K="top"===x||"bottom"===x,Y=U.useContext(nk.ConfigContext).direction,Q=x;"rtl"===(null!=V?V:Y)&&["left","right"].includes(x)&&(Q="left"===Q?"right":"left");var J=GV({headerHeight:f,showHandlerWideArea:E}),Z=J.styles,te=J.cx,ne=Yh(BB(A,{onChange:M,value:F}),2),re=ne[0],oe=ne[1];U.useEffect((function(){m||(X&&!re?oe(!0):!X&&re&&oe(!1))}),[m,X,re]);var ie=Yh(U.useState(!0),2),ae=ie[0],le=ie[1],se=Yh(U.useState(!1),2),ce=se[0],ue=se[1],de=!1!==k&&re,fe=U.useMemo((function(){return de?Dd({},XV(Q),Z["".concat(XV(Q),"Handle")]):{}}),[de,Q]),pe=Od(Dd({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},XV(Q),!0),k),he=U.useMemo((function(){return Od(K?{height:180,width:"100%"}:{height:"100%",width:280},$)}),[K]),ge=re?{defaultSize:he,maxHeight:"number"==typeof h?Math.max(h,0):h,maxWidth:"number"==typeof I?Math.max(I,0):I,minHeight:"number"==typeof _?Math.max(_,0):_,minWidth:"number"==typeof O?Math.max(O,0):O,size:D}:K?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},me=U.useMemo((function(){switch(Q){case"top":return{Arrow:Ad,className:"Bottom"};case"bottom":return{Arrow:zd,className:"Top"};case"right":return{Arrow:Md,className:"Left"};case"left":return{Arrow:Ld,className:"Right"}}}),[Z,Q]),be=me.Arrow,ve=me.className,ye=ee.jsx(Qp,{className:te(Z["toggle".concat(ve)],q.handle),style:{opacity:re?m?void 0:0:z?1:0},children:ee.jsx(Qp,{onClick:function(){oe(!re)},style:H,children:ee.jsx("div",{className:Z.handlerIcon,style:{transform:"rotate(".concat(re?180:0,"deg)")},children:ee.jsx(be,{size:16,strokeWidth:1.5})})})}),we=ee.jsx(UV,Od(Od({},ge),{},{className:te(Z.panel,q.content),enable:de?pe:void 0,handleClasses:fe,onResize:function(e,t,n,r){null==j||j(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){ue(!0),le(!1)},onResizeStop:function(e,t,n,r){ue(!1),le(!0),null==N||N(r,{height:n.style.height,width:n.style.width})},style:Od({transition:ce?"unset":void 0},S),children:y}));return p?ee.jsx("div",{className:te(Z.fullscreen,L),children:y}):ee.jsxs("aside",{className:te(Z.container,Z["fixed"===v?"fixed":"".concat(Q,"Float")],L),dir:V,ref:G,style:re?Dd({},"border".concat(ve,"Width"),1):{},children:[T&&ae&&ye,B?re&&we:we]})})),YV={exports:{}};function QV(){}function JV(){}JV.resetWarningCache=QV;YV.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:JV,resetWarningCache:QV};return n.PropTypes=n,n}();var ZV=YV.exports;const eG=o(ZV),tG={},nG=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),n=(null==e?void 0:e.nonce)||(null==e?void 0:e.getAttribute("nonce"));r=Promise.all(t.map((e=>{if((e=function(e){return"/dev/"+e}(e))in tG)return;tG[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script",o.crossOrigin=""),o.href=e,n&&o.setAttribute("nonce",n),document.head.appendChild(o),t?new Promise(((t,n)=>{o.addEventListener("load",t),o.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0})))}return r.then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))};var rG={exports:{}},oG={},iG=U;var aG="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lG=iG.useState,sG=iG.useEffect,cG=iG.useLayoutEffect,uG=iG.useDebugValue;function dG(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!aG(e,n)}catch(r){return!0}}var fG="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=lG({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return cG((function(){o.value=n,o.getSnapshot=t,dG(o)&&i({inst:o})}),[e,n,t]),sG((function(){return dG(o)&&i({inst:o}),e((function(){dG(o)&&i({inst:o})}))}),[e]),uG(n),n};oG.useSyncExternalStore=void 0!==iG.useSyncExternalStore?iG.useSyncExternalStore:fG,rG.exports=oG;var pG=rG.exports;const hG=()=>{},gG=hG(),mG=Object,bG=e=>e===gG,vG=e=>"function"==typeof e,yG=(e,t)=>({...e,...t}),wG=new WeakMap;let xG=0;const kG=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(mG(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=wG.get(e),o)return o;if(o=++xG+"~",wG.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=kG(e[i])+",";wG.set(e,o)}if(n==mG){o="#";const t=mG.keys(e).sort();for(;!bG(i=t.pop());)bG(e[i])||(o+=i+":"+kG(e[i])+",");wG.set(e,o)}}return o},SG=new WeakMap,CG={},EG={},DG="undefined",$G=typeof window!=DG,OG=typeof document!=DG,_G=(e,t)=>{const n=SG.get(e);return[()=>!bG(t)&&e.get(t)||CG,r=>{if(!bG(t)){const o=e.get(t);t in EG||(EG[t]=o),n[5](t,yG(o,r),o||CG)}},n[6],()=>!bG(t)&&t in EG?EG[t]:!bG(t)&&e.get(t)||CG]};let IG=!0;const[NG,jG]=$G&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[hG,hG],PG={isOnline:()=>IG,isVisible:()=>{const e=OG&&document.visibilityState;return bG(e)||"hidden"!==e}},TG={initFocus:e=>(OG&&document.addEventListener("visibilitychange",e),NG("focus",e),()=>{OG&&document.removeEventListener("visibilitychange",e),jG("focus",e)}),initReconnect:e=>{const t=()=>{IG=!0,e()},n=()=>{IG=!1};return NG("online",t),NG("offline",n),()=>{jG("online",t),jG("offline",n)}}},FG=!q.useId,RG=!$G||"Deno"in window,AG=e=>$G&&typeof window.requestAnimationFrame!=DG?window.requestAnimationFrame(e):setTimeout(e,1),MG=RG?U.useEffect:U.useLayoutEffect,LG="undefined"!=typeof navigator&&navigator.connection,zG=!RG&&LG&&(["slow-2g","2g"].includes(LG.effectiveType)||LG.saveData),BG=e=>{if(vG(e))try{e=e()}catch(n){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?kG(e):"",t]};let HG=0;const WG=()=>++HG;var UG=3,qG=0,VG=2,GG=1;async function XG(...e){const[t,n,r,o]=e,i=yG({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let a=i.populateCache;const l=i.rollbackOnError;let s=i.optimisticData;const c=i.throwOnError;if(vG(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(u))}return u(n);async function u(n){const[o]=BG(n);if(!o)return;const[u,d]=_G(t,o),[f,p,h,g]=SG.get(t),m=()=>{const e=f[o];return(vG(i.revalidate)?i.revalidate(u().data,n):!1!==i.revalidate)&&(delete h[o],delete g[o],e&&e[0])?e[0](2).then((()=>u().data)):u().data};if(e.length<3)return m();let b,v=r;const y=WG();p[o]=[y,0];const w=!bG(s),x=u(),k=x.data,S=x._c,C=bG(S)?k:S;if(w&&(s=vG(s)?s(C,k):s,d({data:s,_c:C})),vG(v))try{v=v(C)}catch(E){b=E}if(v&&vG(v.then)){if(v=await v.catch((e=>{b=e})),y!==p[o][0]){if(b)throw b;return v}b&&w&&(e=>"function"==typeof l?l(e):!1!==l)(b)&&(a=!0,d({data:C,_c:gG}))}if(a&&!b)if(vG(a)){const e=a(v,C);d({data:e,error:gG,_c:gG})}else d({data:v,error:gG,_c:gG});if(p[o][1]=WG(),Promise.resolve(m()).then((()=>{d({_c:gG})})),!b)return v;if(c)throw b}}const KG=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},[YG,QG]=((e,t)=>{if(!SG.has(e)){const n=yG(TG,t),r={},o=XG.bind(gG,e);let i=hG;const a={},l=(e,t)=>{const n=a[e]||[];return a[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},s=(t,n,r)=>{e.set(t,n);const o=a[t];if(o)for(const e of o)e(n,r)},c=()=>{if(!SG.has(e)&&(SG.set(e,[r,{},{},{},o,s,l]),!RG)){const t=n.initFocus(setTimeout.bind(gG,KG.bind(gG,r,0))),o=n.initReconnect(setTimeout.bind(gG,KG.bind(gG,r,1)));i=()=>{t&&t(),o&&o(),SG.delete(e)}}};return c(),[e,o,c,i]}return[e,SG.get(e)[4]]})(new Map),JG=yG({onLoadingSlow:hG,onSuccess:hG,onError:hG,onErrorRetry:(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!bG(i)&&a>i||setTimeout(r,l,o)},onDiscarded:hG,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:zG?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:zG?5e3:3e3,compare:(e,t)=>kG(e)==kG(t),isPaused:()=>!1,cache:YG,mutate:QG,fallback:{}},PG),ZG=U.createContext({}),eX=$G&&window.__SWR_DEVTOOLS_USE__,tX=eX?window.__SWR_DEVTOOLS_USE__:[],nX=tX.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=BG(t),[,,,o]=SG.get(YG);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return bG(i)?n(...e):(delete o[r],i)}),r)));eX&&(window.__SWR_DEVTOOLS_REACT__=q);const rX=q.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),oX={dedupe:!0},iX=(aX=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:l,revalidateIfStale:s,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f}=n,[p,h,g,m]=SG.get(r),[b,v]=BG(e),y=U.useRef(!1),w=U.useRef(!1),x=U.useRef(b),k=U.useRef(t),S=U.useRef(n),C=()=>S.current,E=()=>C().isVisible()&&C().isOnline(),[D,$,O,_]=_G(r,b),I=U.useRef({}).current,N=bG(a)?n.fallback[b]:a,j=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!bG(e[r]))return!1;if(!o(B,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},P=U.useMemo((()=>{const e=!!b&&!!t&&(bG(l)?!C().isPaused()&&!i&&(!!bG(s)||s):l),n=t=>{const n=yG(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=D(),o=_(),a=n(r),c=r===o?a:n(o);let u=a;return[()=>{const e=n(D());return j(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>c]}),[r,b]),T=pG.useSyncExternalStore(U.useCallback((e=>O(b,((t,n)=>{j(n,t)||e()}))),[r,b]),P[0],P[1]),F=!y.current,R=p[b]&&p[b].length>0,A=T.data,M=bG(A)?N:A,L=T.error,z=U.useRef(M),B=f?bG(A)?z.current:A:M,H=!(R&&!bG(L))&&(F&&!bG(l)?l:!C().isPaused()&&(i?!bG(M)&&s:bG(M)||s)),W=!!(b&&t&&F&&H),q=bG(T.isValidating)?W:T.isValidating,V=bG(T.isLoading)?W:T.isLoading,G=U.useCallback((async e=>{const t=k.current;if(!b||!t||w.current||C().isPaused())return!1;let r,i,a=!0;const l=e||{},s=!g[b]||!l.dedupe,c=()=>FG?!w.current&&b===x.current&&y.current:b===x.current,u={isValidating:!1,isLoading:!1},d=()=>{$(u)},f=()=>{const e=g[b];e&&e[1]===i&&delete g[b]},m={isValidating:!0};bG(D().data)&&(m.isLoading=!0);try{if(s&&($(m),n.loadingTimeout&&bG(D().data)&&setTimeout((()=>{a&&c()&&C().onLoadingSlow(b,n)}),n.loadingTimeout),g[b]=[t(v),WG()]),[r,i]=g[b],r=await r,s&&setTimeout(f,n.dedupingInterval),!g[b]||g[b][1]!==i)return s&&c()&&C().onDiscarded(b),!1;u.error=gG;const e=h[b];if(!bG(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),s&&c()&&C().onDiscarded(b),!1;const l=D().data;u.data=o(l,r)?l:r,s&&c()&&C().onSuccess(r,b,n)}catch(S){f();const e=C(),{shouldRetryOnError:t}=e;e.isPaused()||(u.error=S,s&&c()&&(e.onError(S,b,e),(!0===t||vG(t)&&t(S))&&(C().revalidateOnFocus&&C().revalidateOnReconnect&&!E()||e.onErrorRetry(S,b,e,(e=>{const t=p[b];t&&t[0]&&t[0](UG,e)}),{retryCount:(l.retryCount||0)+1,dedupe:!0}))))}return a=!1,d(),!0}),[b,r]),X=U.useCallback(((...e)=>XG(r,x.current,...e)),[]);if(MG((()=>{k.current=t,S.current=n,bG(A)||(z.current=A)})),MG((()=>{if(!b)return;const e=G.bind(gG,oX);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(b,p,((n,r={})=>{if(n==qG){const n=Date.now();C().revalidateOnFocus&&n>t&&E()&&(t=n+C().focusThrottleInterval,e())}else if(n==GG)C().revalidateOnReconnect&&E()&&e();else{if(n==VG)return G();if(n==UG)return G(r)}}));return w.current=!1,x.current=b,y.current=!0,$({_k:v}),H&&(bG(M)||RG?e():AG(e)),()=>{w.current=!0,n()}}),[b]),MG((()=>{let e;function t(){const t=vG(c)?c(D().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){D().error||!u&&!C().isVisible()||!d&&!C().isOnline()?t():G(oX).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,u,d,b]),U.useDebugValue(B),i&&bG(M)&&b){if(!FG&&RG)throw new Error("Fallback data is required when using suspense in SSR.");k.current=t,S.current=n,w.current=!1;const e=m[b];if(!bG(e)){const t=X(e);rX(t)}if(!bG(L))throw L;{const e=G(oX);bG(B)||(e.status="fulfilled",e.value=!0),rX(e)}}return{mutate:X,get data(){return I.data=!0,B},get error(){return I.error=!0,L},get isValidating(){return I.isValidating=!0,q},get isLoading(){return I.isLoading=!0,V}}},function(...e){const t=yG(JG,U.useContext(ZG)),[n,r,o]=(e=>vG(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(e),i=((e,t)=>{const n=yG(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=yG(o,a))}return n})(t,o);let a=aX;const{use:l}=i,s=(l||[]).concat(nX);for(let c=s.length;c--;)a=s[c](a);return a(n,r||i.fetcher||null,i)});var aX,lX,sX,cX,uX,dX,fX,pX,hX,gX,mX,bX={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},vX=function(){var e=zS(MS().mark((function e(t){var n;return MS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.writeText(t);case 3:e.next=14;break;case 5:e.prev=5,e.t0=e.catch(0),(n=document.createElement("textarea")).value=t,document.body.append(n),n.focus(),n.select(),document.execCommand("copy"),n.remove();case 14:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),yX=["content","placement","size","icon","glass","onClick"],wX=U.memo((function(e){var t=e.content,n=e.placement,r=void 0===n?"right":n,o=e.size,i=void 0===o?"site":o,a=e.icon,l=e.glass,s=void 0===l||l,c=e.onClick,u=_d(e,yX),d=function(){var e=Yh(U.useState(!1),2),t=e[0],n=e[1];U.useEffect((function(){if(t){var e=setTimeout((function(){n(!1)}),2e3);return function(){clearTimeout(e)}}}),[t]);var r=U.useCallback((function(){return n(!0)}),[]);return U.useMemo((function(){return{copied:t,setCopied:r}}),[t])}(),f=d.copied,p=d.setCopied,h=a||Wd;return ee.jsx(CH,Od(Od({glass:s},u),{},{active:f,icon:f?Rd:h,onClick:function(){var e=zS(MS().mark((function e(n){return MS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vX(t);case 2:p(),null==c||c(n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placement:r,size:i,title:"Copy"}))})),xX=["icon","children","size"],kX=oH((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(lX||(lX=hf(["\n padding-block: 2px;\n padding-inline: 6px;\n line-height: 1;\n "]))),tag:t(n(sX||(sX=hf(["\n user-select: none;\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),r.colorTextSecondary,r.colorFillSecondary,r.borderRadius,r.colorText,r.colorFill))}})),SX=U.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,i=_d(e,xX),a=kX(),l=a.styles,s=a.cx;return ee.jsx(bB,Od(Od({bordered:!1,className:s(l.tag,"small"===o&&l.small)},i),{},{children:ee.jsxs(th,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))})),CX=["allowFullscreen","children","title","className","wrapClassName","width","onCancel","open","destroyOnClose","paddings","maxHeight","footer","styles"],EX=["body"],DX=oH((function(e,t){var n=e.cx,r=e.css,o=e.token,i=e.prefixCls,a=t.maxHeight;return{content:n(a&&r(cX||(cX=hf(["\n .","-modal-body {\n overflow: auto;\n max-height: ",";\n }\n "])),i,a),r(uX||(uX=hf(["\n .","-modal-footer {\n margin: 0;\n padding: 16px;\n }\n .","-modal-header {\n display: flex;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n height: 56px;\n margin-block-end: 0;\n padding: 16px;\n }\n .","-modal-content {\n overflow: hidden;\n padding: 0;\n border: 1px solid ",";\n border-radius: ","px;\n }\n "])),i,i,i,o.colorSplit,o.borderRadiusLG)),drawerContent:r(dX||(dX=hf(["\n .","-drawer-close {\n padding: 0;\n }\n .","-drawer-wrapper-body {\n background: linear-gradient(to bottom, ",", ",");\n }\n .","-drawer-header {\n padding: 8px;\n }\n\n .","-drawer-footer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n padding: 16px;\n\n border: none;\n }\n "])),i,i,o.colorBgContainer,o.colorBgLayout,i,i),wrap:r(fX||(fX=hf(["\n overflow: hidden auto;\n backdrop-filter: blur(2px);\n "])))}})),$X=U.memo((function(e){var t,n,r=e.allowFullscreen,o=e.children,i=e.title,a=void 0===i?" ":i,l=e.className,s=e.wrapClassName,c=e.width,u=void 0===c?700:c,d=e.onCancel,f=e.open,p=e.destroyOnClose,h=e.paddings,g=e.maxHeight,m=void 0===g?"75dvh":g,b=e.footer,v=e.styles,y=void 0===v?{}:v,w=_d(e,CX),x=Yh(U.useState(!1),2),k=x[0],S=x[1],C=NB().mobile,E=DX({maxHeight:m?"calc(".concat(HW(m)?"".concat(m,"px"):m," - ").concat(56+(b?68:0),"px)"):void 0}),D=E.styles,$=E.cx,O=E.theme,_=y.body,I=_d(y,EX);return C?ee.jsx(VM,{className:$(D.drawerContent,l),closeIcon:ee.jsx(CH,{icon:df}),destroyOnClose:p,extra:r&&ee.jsx(CH,{icon:k?ef:Jd,onClick:function(){return S(!k)}}),footer:b,height:k?"calc(100% - env(safe-area-inset-top))":m||"75vh",maskClassName:$(D.wrap,s),onClose:d,open:f,placement:"bottom",styles:Od({body:Od({paddingBlock:"16px ".concat(b?0:"16px"),paddingInline:null!==(t=null==h?void 0:h.desktop)&&void 0!==t?t:16},_)},I),title:a,children:o}):ee.jsx(nk,{theme:{token:{colorBgElevated:ZU(.005,O.colorBgContainer)}},children:ee.jsx(JL,Od(Od({className:$(D.content,l),closable:!0,closeIcon:ee.jsx(gH,{icon:df,size:{fontSize:20}}),destroyOnClose:p,footer:b,maskClosable:!0,onCancel:d,open:f,styles:Od({body:Od({paddingBlock:"0 ".concat(null===b?"16px":0),paddingInline:null!==(n=null==h?void 0:h.desktop)&&void 0!==n?n:16},_)},I),title:a,width:u,wrapClassName:$(D.wrap,s)},w),{},{children:o}))})})),OX=oH((function(e){var t=e.css,n=e.token;return{body:t(pX||(pX=hf(["\n overflow: hidden auto;\n padding: 16px;\n "]))),container:t(hX||(hX=hf(["\n position: relative;\n overflow: hidden;\n "]))),footer:t(gX||(gX=hf(["\n padding-block: 8px;\n padding-inline: 16px;\n border-block-start: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(mX||(mX=hf(["\n padding-block: 8px;\n padding-inline: 16px;\n font-weight: 500;\n border-block-end: 1px solid ",";\n "])),n.colorBorderSecondary)}})),_X=["className"],IX=U.memo((function(e){var t=e.className,n=_d(e,_X),r=OX(),o=r.cx,i=r.styles;return ee.jsx(th,Od({className:o(i.body,t),flex:1},n))})),NX=["className"],jX=U.memo((function(e){var t=e.className,n=_d(e,NX),r=OX(),o=r.cx,i=r.styles;return ee.jsx(th,Od({className:o(i.container,t)},n))})),PX=["className"],TX=U.memo((function(e){var t=e.className,n=_d(e,PX),r=OX(),o=r.cx,i=r.styles;return ee.jsx(th,Od({align:"center",className:o(i.footer,t),flex:"none",gap:8,horizontal:!0,justify:"flex-start"},n))})),FX=["pin","setPin","className","setExpand","title","position"],RX=U.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,i=e.title,a=e.position,l=void 0===a?"left":a,s=_d(e,FX),c=OX(),u=c.cx,d=c.styles,f=Yh(BB(!1,{onChange:n,value:t}),2),p=f[0],h=f[1],g=ee.jsx(CH,{icon:nf,onClick:function(){return null==o?void 0:o(!1)},size:{blockSize:24,fontSize:14}}),m=ee.jsx(CH,{active:t,icon:t?lf:af,onClick:function(){return h(!p)},size:{blockSize:24,fontSize:14}});return ee.jsxs(th,Od(Od({align:"center",className:u(d.header,r),flex:"none",gap:8,horizontal:!0,justify:"space-between"},s),{},{children:["left"===l?g:m,i,"left"===l?m:g]}))})),AX=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};const MX=o(AX);function LX(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Xh(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var zX,BX,HX,WX,UX,qX,VX,GX,XX,KX,YX,QX,JX,ZX,eK,tK,nK,rK,oK,iK,aK,lK,sK=U.memo((function(e){var t=e.url,n=U.useRef(!1);return U.useEffect((function(){if(!n.current){n.current=!0;var e=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}(t);document.head.append(e)}}),[]),null})),cK=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,i=void 0===o?[]:o,a=e.style,l=e.className;return q.createElement("div",{className:pb("".concat(t,"-column"),l),style:a},(r||n)&&q.createElement("h2",null,n&&q.createElement("span",{className:"".concat(t,"-column-icon")},n),r),i.map((function(e,n){var r=e.LinkComponent||"a";return q.createElement("div",{className:pb("".concat(t,"-item"),e.className),style:e.style,key:n},q.createElement(r,{href:e.url,to:"string"!=typeof r?e.url:void 0,target:e.openExternal?"_blank":void 0,rel:e.openExternal?"noopener noreferrer":void 0},e.icon&&q.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&q.createElement(q.Fragment,null,q.createElement("span",{className:"".concat(t,"-item-separator")},"-"),q.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},uK=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],dK=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,i=e.bottom,a=e.columns,l=e.maxColumnsPerRow,s=e.backgroundColor,c=e.columnLayout,u=e.theme,d=void 0===u?"dark":u,f=_d(e,uK),p=pb("".concat(n),r,Dd({},"".concat(n,"-").concat(d),!!d)),h="number"==typeof l&&l>0;return q.createElement("footer",Od(Od({},f),{},{className:p,style:Od(Od({},o),{},{backgroundColor:s})}),q.createElement("section",{className:"".concat(n,"-container")},a&&a.length>0&&q.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:h?"wrap":void 0}},a.map((function(e,t){var r=e.title,o=e.icon,i=e.style,a=e.className,s=e.items,c=void 0===s?[]:s,u=Od({},i);return h&&(u.flex="0 0 ".concat(100/(l+1)+.1,"%")),q.createElement(cK,{key:t,prefixCls:n,title:r,icon:o,items:c,style:u,className:a})})))),i&&q.createElement("section",{className:"".concat(n,"-bottom")},q.createElement("div",{className:"".concat(n,"-bottom-container")},i)))},fK=oH((function(e,t){var n=e.css,r=e.responsive,o=e.token,i=t.isEmpty,a=t.contentMaxWidth,l="rc-footer";return{container:n(zX||(zX=hf(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-block-start: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(BX||(BX=hf(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: start;\n\n h2 {\n position: relative;\n\n margin-block: 0;\n margin-inline: auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n inset-block-start: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin-block: 12px;\n margin-inline: 0;\n\n &-icon {\n position: relative;\n inset-block-start: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin-block: 0;\n margin-inline: 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin-block: 0;\n margin-inline: auto;\n padding-block: 16px;\n padding-inline: 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-block-start-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding-block: 40px;\n padding-inline: 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-block-end: 40px;\n text-align: center;\n\n &:last-child {\n margin-block-end: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,l,o.colorTextTertiary,o.colorLinkHover,l,a,i?"0":"60px 0 20px",o.colorText,o.colorTextDescription,a,r.mobile,l)}})),pK=U.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,i=void 0===o?960:o,a=!t||0===(null==t?void 0:t.length),l=fK({contentMaxWidth:i,isEmpty:a}).styles;return ee.jsx("section",{className:l.container,children:ee.jsx(dK,{bottom:n,className:l.footer,columns:t,theme:r})})})),hK=["className","children"],gK=U.memo((function(e){var t=e.className,n=e.children,r=_d(e,hK);return ee.jsx(th,Od(Od({className:t,gap:8,justify:"flex-end"},r),{},{horizontal:!0,children:n}))})),mK=["className","icon","title","children","extra","itemsType","variant","defaultActive"],bK=oH((function(e){var t=e.css,n=e.cx,r=e.token,o=e.isDarkMode,i=e.responsive,a=e.prefixCls,l=t(HX||(HX=hf(["\n background: transparent;\n border: none;\n border-radius: 0;\n\n .","-collapse-header {\n padding-block: 0 20px !important;\n padding-inline: 2px !important;\n background: transparent !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content {\n background: transparent;\n border-color: ",";\n }\n\n .","-collapse-content-box {\n padding-inline: 2px !important;\n background: transparent;\n border-radius: 0;\n }\n "])),a,a,r.colorFillSecondary,a),s=t(WX||(WX=hf(["\n background: ",";\n border: none;\n border-radius: ","px;\n\n .","-collapse-content {\n border: none !important;\n }\n "])),r.colorFillQuaternary,r.borderRadiusLG,a),c=t(UX||(UX=hf(["\n background: transparent;\n border: 1px solid ",";\n .","-collapse-header {\n background: transparent !important;\n }\n\n .","-collapse-content-box {\n background: transparent;\n }\n "])),r.colorBorderSecondary,a,a);return{blockStyle:s,defaultStyle:t(qX||(qX=hf(["\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n "])),r.colorFillQuaternary,r.colorBorderSecondary,r.borderRadiusLG),flatGroup:t(VX||(VX=hf(["\n overflow: hidden;\n padding-inline: 16px;\n "]))),ghostStyle:c,group:n(o&&t(GX||(GX=hf(["\n .","-collapse-content {\n background: transparent;\n border-color: ",";\n }\n\n .","-collapse-header {\n background: ",";\n }\n "])),a,r.colorBorderSecondary,a,r.colorFillTertiary),t(XX||(XX=hf(["\n overflow: hidden;\n flex: none;\n\n .","-collapse-item {\n border: none;\n }\n\n .","-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content-box {\n padding-block: 0 !important;\n }\n\n .","-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])),a,a,a,a)),icon:t(KX||(KX=hf(["\n transition: all 100ms ",";\n "])),r.motionEaseOut),mobileFlatGroup:t(YX||(YX=hf(["\n border-radius: ","px;\n "])),r.borderRadiusLG),mobileGroupBody:t(QX||(QX=hf(["\n padding-block: 0;\n padding-inline: 16px;\n background: ",";\n "])),r.colorBgContainer),mobileGroupHeader:t(JX||(JX=hf(["\n padding: 16px;\n background: ",";\n "])),r.colorBgLayout),pureStyle:l,pureTitle:t(ZX||(ZX=hf(["\n font-size: 18px;\n font-weight: 700;\n line-height: 24px;\n "]))),title:t(eK||(eK=hf(["\n align-items: center;\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n\n "," {\n font-size: 14px;\n font-weight: 400;\n opacity: 0.5;\n }\n "])),r.colorPrimary,i.mobile)}})),vK=U.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,i=e.extra,a=e.itemsType,l=e.variant,s=void 0===l?"default":l,c=e.defaultActive,u=void 0===c||c,d=_d(e,mK),f=NB().mobile,p=bK(s),h=p.cx,g=p.styles,m=h("default"===s&&g.defaultStyle,"block"===s&&g.blockStyle,"ghost"===s&&g.ghostStyle,"pure"===s&&g.pureStyle),b=ee.jsxs(th,{className:h(g.title,"pure"===s&&g.pureTitle),gap:8,horizontal:!0,children:[n&&ee.jsx(gH,{icon:n}),r]});return"flat"===a?f?ee.jsx(th,{className:h(g.mobileFlatGroup,g.mobileGroupBody,t),children:o}):ee.jsx(th,{className:h(g.flatGroup,m,t),children:o}):f?ee.jsxs(th,{className:t,children:[ee.jsxs(th,{className:g.mobileGroupHeader,horizontal:!0,justify:"space-between",children:[b,i]}),ee.jsx("div",{className:g.mobileGroupBody,children:o})]}):ee.jsx(lA,Od({className:h(g.group,m,t),defaultActiveKey:u?[1]:void 0,expandIcon:function(e){var t=e.isActive;return"pure"===s?null:ee.jsx(gH,{className:g.icon,icon:Ad,size:{fontSize:16},style:t?{}:{rotate:"-90deg"}})},items:[{children:o,extra:i,key:1,label:b}]},d),1)})),yK=["style"],wK=U.memo((function(e){var t=e.style,n=_d(e,yK);return ee.jsx(uA,Od({style:Od({margin:0,opacity:.66},t)},n))})),xK=oH((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{formTitle:t(tK||(tK=hf(["\n position: relative;\n text-align: start;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1.2;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .","-tag {\n font-family: ",";\n }\n "])),n.colorTextDescription,r,n.fontFamilyCode)}})),kK=U.memo((function(e){var t=e.className,n=e.tag,r=e.title,o=e.desc,i=e.avatar,a=xK(),l=a.cx,s=a.styles,c=ee.jsxs(th,{className:l(s.formTitle,t),gap:6,children:[ee.jsxs(th,{align:"center",direction:"horizontal",gap:8,children:[r,n&&ee.jsx(SX,{children:n})]}),o&&ee.jsx("small",{children:o})]});return i?ee.jsxs(th,{align:"center",gap:8,horizontal:!0,children:[i,c]}):c})),SK=["desc","tag","minWidth","avatar","className","label","children","divider"],CK=LL.Item,EK=oH((function(e,t){var n=e.css,r=e.responsive,o=e.prefixCls;return{item:n(nK||(nK=hf(["\n &.","-form-item {\n padding-block: 16px;\n padding-inline: 0;\n\n .","-row {\n gap: 12px;\n justify-content: space-between;\n\n > div {\n flex: unset;\n flex-grow: unset;\n }\n }\n\n .","-form-item-required::before {\n align-self: flex-start;\n }\n\n "," {\n .","-row {\n flex-direction: column;\n align-items: stretch;\n\n > div {\n width: 100%;\n }\n }\n }\n\n "," {\n padding-block: 16px;\n padding-inline: 0;\n\n .","-row {\n flex-wrap: wrap;\n gap: 4px;\n }\n }\n }\n "])),o,o,o,r.md,o,r.mobile,o),itemMinWidth:n(rK||(rK=hf(["\n .","-form-item-control {\n width: ",";\n }\n "," {\n .","-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .","-form-item-control {\n flex: 1;\n width: 100%;\n }\n }\n "])),o,HW(t)?"".concat(t,"px"):t,r.mobile,o,o),itemNoDivider:n(oK||(oK=hf(["\n &:not(:first-child) {\n padding-block-start: 0;\n }\n "])))}})),DK=U.memo((function(e){var t=e.desc,n=e.tag,r=e.minWidth,o=e.avatar,i=e.className,a=e.label,l=e.children,s=e.divider,c=_d(e,SK),u=EK(r),d=u.cx,f=u.styles;return ee.jsxs(ee.Fragment,{children:[s&&ee.jsx(wK,{}),ee.jsx(CK,Od(Od({className:d(f.item,Boolean(r)&&f.itemMinWidth,!s&&f.itemNoDivider,i),label:ee.jsx(kK,{avatar:o,desc:t,tag:n,title:a})},c),{},{children:l}))]})})),$K=oH((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=e.responsive;return{form:t(iK||(iK=hf(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n width: 100%;\n\n "," {\n gap: 0;\n }\n\n .","-form-item {\n margin: 0 !important;\n }\n\n .","-form-item .","-form-item-label > label {\n height: unset;\n }\n\n .","-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .","-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .","-form-item-row {\n align-items: center;\n "," {\n align-items: stretch;\n }\n }\n\n .","-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .","-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),o.mobile,r,r,r,r,r,r,o.mobile,r,r,n.borderRadius),pure:t(aK||(aK=hf(["\n gap: 64px;\n "])))}})),OK=["className","itemMinWidth","footer","form","items","children","itemsType","variant"],_K=U.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,i=e.form,a=e.items,l=void 0===a?[]:a,s=e.children,c=e.itemsType,u=void 0===c?"group":c,d=e.variant,f=void 0===d?"default":d,p=_d(e,OK),h=$K(),g=h.cx,m=h.styles,b=function(e,t){return ee.jsx(DK,Od({divider:0!==t,minWidth:r},e),t)};return ee.jsxs(LL,Od(Od({className:g(m.form,"pure"===f&&m.pure,n),colon:!1,form:i,layout:"horizontal",ref:t},p),{},{children:[(null==l?void 0:l.length)>0?"group"===u?null==l?void 0:l.map((function(e,t){return n=e,r=t,ee.jsx(vK,{defaultActive:null==n?void 0:n.defaultActive,extra:null==n?void 0:n.extra,icon:null==n?void 0:n.icon,title:n.title,variant:f,children:Array.isArray(n.children)?n.children.filter((function(e){return!e.hidden})).map((function(e,t){return b(e,t)})):n.children},r);var n,r})):ee.jsx(vK,{itemsType:"flat",variant:f,children:null==l?void 0:l.filter((function(e){return!e.hidden})).map((function(e,t){return b(e,t)}))}):null,s,o&&ee.jsx(gK,{children:o})]}))}));function IK({id:e,host:t,repo:n,repoId:r,category:o,categoryId:i,mapping:a,term:l,strict:s,reactionsEnabled:c,emitMetadata:u,inputPosition:d,theme:f,lang:p,loading:h}){const[g,m]=U.useState(!1);return U.useEffect((()=>{g||(nG((()=>import("./giscus-BNK3dBIH.js")),[]),m(!0))}),[]),g?ee.jsx("giscus-widget",{id:e,host:t,repo:n,repoid:r,category:o,categoryid:i,mapping:a,term:l,strict:s,reactionsenabled:c,emitmetadata:u,inputposition:d,theme:f,lang:p,loading:h}):null}_K.Item=DK,_K.Group=vK,_K.useForm=LL.useForm;var NK,jK,PK,TK,FK,RK,AK,MK,LK,zK,BK,HK,WK,UK,qK,VK,GK,XK,KK,YK,QK,JK,ZK,eY,tY,nY,rY,oY,iY,aY,lY=function(e){return["zh_CN","zh_TW"].includes(e)?e.replace("_","-"):"zh_HK"===e?"zh-TW":e.split("_")[0]},sY=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"],cY=U.memo((function(e){var t=e.style,n=e.className,r=e.reactionsEnabled,o=void 0===r?"1":r,i=e.mapping,a=void 0===i?"title":i,l=e.lang,s=void 0===l?"en_US":l,c=e.inputPosition,u=void 0===c?"top":c,d=e.id,f=void 0===d?"giscus":d,p=e.loading,h=void 0===p?"lazy":p,g=e.emitMetadata,m=void 0===g?"0":g,b=_d(e,sY),v=dH(),y=$B().isDarkMode,w=U.useMemo((function(){return btoa(function(e,t){var n=t?"dark":"light",r=bX.gray[n][11],o=bX.gray[n][10],i=bX.gray[n][7],a=t?bX.red[n][9]:bX.volcano[n][9],l=t?bX.gold[n][9]:bX.orange[n][9],s=t?bX.lime[n][9]:bX.green[n][9],c=t?bX.blue[n][9]:bX.geekblue[n][9],u=t?"https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg":"https://github.com/images/modules/pulls/progressive-disclosure-line.svg",d=t?"https://github.githubassets.com/images/mona-loading-dark.gif":"https://github.githubassets.com/images/mona-loading-default.gif";return aH(lK||(lK=hf(["\n main {\n --color-prettylights-syntax-comment: ",";\n --color-prettylights-syntax-constant: ",";\n --color-prettylights-syntax-entity: ",";\n --color-prettylights-syntax-storage-modifier-import: ",";\n --color-prettylights-syntax-entity-tag: ",";\n --color-prettylights-syntax-keyword: ",";\n --color-prettylights-syntax-string: ",";\n --color-prettylights-syntax-variable: ",";\n --color-prettylights-syntax-brackethighlighter-unmatched: ",";\n --color-prettylights-syntax-invalid-illegal-text: ",";\n --color-prettylights-syntax-invalid-illegal-bg: ",";\n --color-prettylights-syntax-carriage-return-text: ",";\n --color-prettylights-syntax-carriage-return-bg: ",";\n --color-prettylights-syntax-string-regexp: ",";\n --color-prettylights-syntax-markup-list: ",";\n --color-prettylights-syntax-markup-heading: ",";\n --color-prettylights-syntax-markup-italic: ",";\n --color-prettylights-syntax-markup-bold: ",";\n --color-prettylights-syntax-markup-deleted-text: ",";\n --color-prettylights-syntax-markup-deleted-bg: ",";\n --color-prettylights-syntax-markup-inserted-text: ",";\n --color-prettylights-syntax-markup-inserted-bg: ",";\n --color-prettylights-syntax-markup-changed-text: ",";\n --color-prettylights-syntax-markup-changed-bg: ",";\n --color-prettylights-syntax-markup-ignored-text: ",";\n --color-prettylights-syntax-markup-ignored-bg: ",";\n --color-prettylights-syntax-meta-diff-range: ",";\n --color-prettylights-syntax-brackethighlighter-angle: ",";\n --color-prettylights-syntax-sublimelinter-gutter-mark: ",";\n --color-prettylights-syntax-constant-other-reference-link: ",";\n --color-btn-text: ",";\n --color-btn-bg: ",";\n --color-btn-border: ",";\n --color-btn-shadow: 0 0 transparent;\n --color-btn-inset-shadow: 0 0 transparent;\n --color-btn-hover-bg: ",";\n --color-btn-hover-border: ",";\n --color-btn-active-bg: ",";\n --color-btn-active-border: ",";\n --color-btn-selected-bg: ",";\n --color-btn-primary-text: ",";\n --color-btn-primary-bg: ",";\n --color-btn-primary-border: ",";\n --color-btn-primary-shadow: 0 0 transparent;\n --color-btn-primary-inset-shadow: 0 0 transparent;\n --color-btn-primary-hover-bg: ",";\n --color-btn-primary-hover-border: ",";\n --color-btn-primary-selected-bg: ",";\n --color-btn-primary-selected-shadow: 0 0 transparent;\n --color-btn-primary-disabled-text: ",";\n --color-btn-primary-disabled-bg: ",";\n --color-btn-primary-disabled-border: ",";\n --color-action-list-item-default-hover-bg: ",";\n --color-segmented-control-bg: ",";\n --color-segmented-control-button-bg: transparent;\n --color-segmented-control-button-selected-border: ",";\n --color-fg-default: ",";\n --color-fg-muted: ",";\n --color-fg-subtle: ",";\n --color-canvas-default: transparent;\n --color-canvas-overlay: ",";\n --color-canvas-inset: transparent;\n --color-canvas-subtle: ",";\n --color-border-default: ",";\n --color-border-muted: ",";\n --color-neutral-muted: ",";\n --color-neutral-subtle: ",";\n --color-accent-fg: ",";\n --color-accent-emphasis: ",";\n --color-accent-muted: ",";\n --color-accent-subtle: ",";\n --color-success-fg: ",";\n --color-attention-fg: ",";\n --color-attention-muted: ",";\n --color-attention-subtle: ",";\n --color-danger-fg: ",";\n --color-danger-muted: ",";\n --color-danger-subtle: ",";\n --color-primer-shadow-inset: 0 0 transparent;\n --color-scale-gray-7: ",";\n --color-scale-blue-8: ",";\n --color-social-reaction-bg-hover: ",";\n --color-social-reaction-bg-reacted-hover: ",";\n\n .markdown pre {\n color: ",";\n }\n\n .pagination-loader-container {\n background-image: url(",");\n }\n\n .gsc-pagination-button {\n background-color: var(--color-btn-bg);\n }\n\n .gsc-reactions-popover {\n width: 170px;\n\n > .m-2 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n }\n\n .gsc-emoji-button.has-reacted {\n border-color: ",";\n border-radius: ","px;\n }\n\n .gsc-loading-image {\n background-image: url(",");\n }\n }\n "])),i,s,l,a,c,c,s,a,a,o,HU(a,.4),o,HU(a,.6),s,l,c,o,o,o,HU(a,.2),s,HU(s,.2),l,HU(a,.2),o,HU(c,.2),l,o,i,c,e.colorText,e.colorFillTertiary,e.colorBorderSecondary,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,oq(e.colorPrimary),e.colorPrimary,e.colorPrimaryBorder,e.colorPrimaryHover,e.colorPrimaryBorderHover,e.colorPrimaryActive,HU(oq(e.colorPrimary),.5),HU(e.colorPrimary,.5),HU(e.colorPrimaryBorder,.5),e.colorFillQuaternary,e.colorFillTertiary,e.colorBorder,e.colorText,e.colorTextSecondary,e.colorTextQuaternary,e.colorBgElevated,e.colorFillQuaternary,e.colorBorder,e.colorBorderSecondary,e.colorFillQuaternary,e.colorFillTertiary,e.colorInfo,e.colorInfoBorderHover,e.colorInfoBorder,e.colorInfoBg,e.colorSuccess,e.colorWarning,e.colorWarningBorder,e.colorWarningBg,e.colorError,e.colorErrorBorder,e.colorErrorBg,e.colorBgContainer,e.colorInfoBg,e.colorFillSecondary,e.colorInfoBgHover,r,u,e.colorInfoBorderHover,e.borderRadius,d)}(v,y).styles)}),[y,v]);return ee.jsx("div",{className:n,style:t,children:ee.jsx(IK,Od({emitMetadata:m,id:f,inputPosition:u,lang:lY(s),loading:h,mapping:a,reactionsEnabled:o,theme:"data:text/css;base64,".concat(w)},b))})})),uY=oH((function(e,t){var n,r=e.cx,o=e.css,i=e.token,a=e.isDarkMode,l=e.stylish;switch(t){case"large":n=i.borderRadiusLG;break;case"middle":default:n=i.borderRadius;break;case"small":n=i.borderRadiusSM}return{button:r(l.gradientAnimation,o(NK||(NK=hf(["\n position: relative;\n z-index: 1;\n border: none;\n border-radius: ","px !important;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: -1;\n inset-block-start: 1px;\n inset-inline-start: 1px;\n\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n\n background: ",";\n border-radius: ","px;\n }\n\n &:hover {\n background: "," !important;\n }\n "])),n,i.colorBgLayout,n-1,i.colorPrimary)),glow:o(jK||(jK=hf(["\n ","\n position: absolute;\n z-index: -2;\n inset-block-start: 0;\n inset-inline-start: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: ",";\n filter: blur(","em);\n border-radius: inherit;\n "])),l.gradientAnimation,a?.5:.3,a?1.5:1)}})),dY=["glow","children","className","size"],fY=U.memo((function(e){var t=e.glow,n=void 0===t||t,r=e.children,o=e.className,i=e.size,a=void 0===i?"large":i,l=_d(e,dY),s=uY(a),c=s.styles,u=s.cx;return ee.jsxs(bE,Od(Od({className:u(c.button,o),size:a},l),{},{children:[n&&ee.jsx("div",{className:c.glow}),r]}))})),pY=oH((function(e){var t=e.css,n=e.responsive,r=e.token,o=e.cx;return{content:t(PK||(PK=hf(["\n height: 64px;\n padding-block: 0;\n padding-inline: 24px;\n\n background-color: ",";\n border-block-end: 1px solid ",";\n\n "," {\n padding-block: 0;\n padding-inline: 12px;\n }\n "])),HU(r.colorBgLayout,.4),r.colorSplit,n.mobile),header:o(t(TK||(TK=hf(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:t(FK||(FK=hf(["\n z-index: 10;\n "]))),right:t(RK||(RK=hf(["\n z-index: 10;\n\n &-aside {\n display: flex;\n align-items: center;\n\n "," {\n justify-content: center;\n\n margin-block: 8px;\n margin-inline: 16px;\n padding-block-start: 24px;\n\n border-block-start: 1px solid ",";\n }\n }\n "])),n.mobile,r.colorBorder)}})),hY=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"],gY=U.memo((function(e){var t=e.actionsClassName,n=e.navClassName,r=e.logoClassName,o=e.nav,i=e.logo,a=e.actions,l=e.actionsStyle,s=e.logoStyle,c=e.navStyle,u=e.className,d=_d(e,hY),f=NB().mobile,p=pY(),h=p.cx,g=p.styles;return ee.jsx("section",Od(Od({className:h(g.header,u)},d),{},{children:ee.jsx(th,{align:"center",className:g.content,distribution:"space-between",horizontal:!0,width:"auto",children:f?ee.jsxs(ee.Fragment,{children:[ee.jsx(th,{className:t,style:Od({flex:0},c),children:o}),ee.jsx(th,{className:h(g.left,r),horizontal:!0,style:Od({flex:1,overflow:"hidden"},s),children:i}),ee.jsx(th,{className:t,style:Od({flex:0},l),children:a})]}):ee.jsxs(ee.Fragment,{children:[ee.jsx(th,{className:h(g.left,r),horizontal:!0,style:Od({flex:0},s),children:i}),ee.jsx(th,{className:n,style:Od({flex:1,marginLeft:48,overflow:"hidden"},c),children:o}),ee.jsxs(th,{className:h(g.right,t),flex:1,horizontal:!0,justify:"space-between",style:l,children:[ee.jsx("div",{}),ee.jsx(th,{align:"center",gap:8,horizontal:!0,children:a})]})]})})}))})),mY=Pd("Discord",[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",key:"18tl5t"}]]),bY=function(e){return ee.jsx(mY,Od({style:{overflow:"visible"}},e))},vY=oH((function(e,t){var n=e.css,r=e.stylish,o=e.responsive,i=n(AK||(AK=hf(["\n pointer-events: none;\n content: '';\n user-select: none;\n\n position: absolute;\n z-index: -1;\n inset-block: -1px ",";\n inset-inline: 0;\n "])),o.mobile?"-25%":"-50%");return{app:n(MK||(MK=hf(["\n overflow: hidden auto;\n height: 100dvh;\n "]))),aside:n(LK||(LK=hf(["\n position: sticky;\n z-index: 2;\n height: 100%;\n "]))),asideInner:n(zK||(zK=hf(["\n overflow: hidden auto;\n width: 100%;\n height: calc(100dvh - ","px);\n "])),t),content:n(BK||(BK=hf(["\n position: relative;\n flex: 1;\n max-width: 100%;\n "]))),footer:n(HK||(HK=hf(["\n position: relative;\n max-width: 100%;\n "]))),glass:n(WK||(WK=hf(["\n z-index: 0;\n\n &::before {\n ",";\n ",";\n mask-image: linear-gradient(to bottom, black ","px, transparent);\n }\n\n &::after {\n ",";\n }\n "])),r.blur,i,t,i),header:n(UK||(UK=hf(["\n position: sticky;\n z-index: 999;\n inset-block-start: 0;\n max-width: 100%;\n "]))),main:n(qK||(qK=hf(["\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n "]))),toc:n(VK||(VK=hf([""])))}})),yY=["headerHeight","children","className","style"],wY=["children","className"],xY=["headerHeight","children","className","style"],kY=["headerHeight","children","className"],SY=U.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,i=_d(e,yY),a=vY(t),l=a.cx,s=a.styles;return ee.jsxs("header",Od(Od({className:l(s.header,r),style:Od({height:t},o)},i),{},{children:[ee.jsx("div",{className:s.glass}),n]}))})),CY=U.memo((function(e){var t=e.children,n=e.className,r=_d(e,wY),o=vY(),i=o.cx,a=o.styles;return ee.jsx("main",Od(Od({className:i(a.main,n)},r),{},{children:t}))})),EY=U.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,i=_d(e,xY),a=vY(t),l=a.cx,s=a.styles;return ee.jsx("aside",Od(Od({className:l(s.aside,r),style:Od({top:t},o)},i),{},{children:n}))})),DY=U.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=_d(e,kY),i=vY(t),a=i.cx,l=i.styles;return ee.jsx("div",Od(Od({className:a(l.asideInner,r)},o),{},{children:n}))})),$Y=U.memo((function(e){var t=Object.assign({},(sB(e),e));return ee.jsx("svg",Od(Od({fill:"none",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},t),{},{children:ee.jsx("path",{d:"M16.88 3.549L7.12 20.451"})}))})),OY=U.memo((function(e){var t=Object.assign({},(sB(e),e));return ee.jsxs("svg",Od(Od({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 320 320"},t),{},{children:[ee.jsx("path",{d:"M25.401 140.14c3.71-5.453 8.81-9.628 15.313-12.838A23.89 23.89 0 0055 132.015a23.91 23.91 0 0016.053-6.159 48.924 48.924 0 0010.603-.294 56.54 56.54 0 006.809 6.555c-8.655 1.087-18.202 2.821-29.05 5.494-11.996 2.956-17.707 7.005-20.785 11.53-3.227 4.743-4.63 11.518-4.63 22.374 0 70.838 55.45 121.5 126 121.5 70.564 0 125.889-49.642 126-120.286-.751-13.724-2.613-20.518-5.764-24.763-3.023-4.073-8.262-7.153-19.898-10.42-9.615-2.7-20.317-4.252-31.506-5.103a48.977 48.977 0 006.306-6.763c2.995-1.106 6.948-.684 12.998.332l.321.054c2.498.421 5.641.95 8.543.95 5.214 0 10.234-.927 14.879-2.626 8.925 3.124 16.138 7.213 21.205 14.041 6.227 8.389 8.147 19.524 8.905 33.656l.011.214v.214c0 80.552-63.518 136.5-142 136.5-78.567 0-142-57.028-142-137.5 0-11.644 1.368-22.506 7.401-31.375z"}),ee.jsx("path",{d:"M195.5 145.016a50.53 50.53 0 0018.014-3.295C238.551 143.519 255 146.556 255 150c0 4.335-26.066 8.026-62.517 9.413-.201-5.525-.323-10.211-.316-14.505 1.102.071 2.214.108 3.333.108zM125 145.016a58.278 58.278 0 01-19.063-3.182C81.773 143.646 66 146.628 66 150c0 4.295 25.591 7.958 61.52 9.374.238-5.823.186-10.311-.246-14.402a59.24 59.24 0 01-2.274.044zM122.87 228c9.79-4.353 16.63-14.277 16.63-25.823 0-15.562-12.424-28.177-27.75-28.177S84 186.615 84 202.177c0 10.646 5.815 19.913 14.396 24.705 2.902-.349 5.839-.554 8.729-.554 5.259 0 10.673.678 15.745 1.672zM236 202.177c0 10.646-5.815 19.913-14.396 24.705-2.902-.349-5.839-.554-8.729-.554-5.259 0-10.673.678-15.745 1.672-9.79-4.353-16.63-14.277-16.63-25.823 0-15.562 12.424-28.177 27.75-28.177S236 186.615 236 202.177zM127 248.787S133.923 245 160 245c26.077 0 33 3.787 33 3.787S189.769 278 160 278s-33-29.213-33-29.213z"}),ee.jsx("path",{clipRule:"evenodd",d:"M173 19.016c-6.188 0-10.711-2.238-15.68-4.697-6.295-3.114-13.305-6.583-25.32-6.303-20.261 0-30.93 9.751-40.896 18.86-1.54 1.408-3.064 2.8-4.604 4.14-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 3.789.584 7.447 1.672 10.895A23.93 23.93 0 0155 84.016c13.255 0 24 10.745 24 24 0 3.552-.772 6.925-2.157 9.959a40.472 40.472 0 008.042-1.174c8.866 12.225 23.528 20.215 40.115 20.215 3.041 0 6.018-.269 8.906-.783 1.675 7.287 2.007 14.011 1.594 23.782h49c-.359-9.741-.486-17.161-.085-24.451a42.76 42.76 0 0011.085 1.452c14.294 0 26.9-7.006 34.364-17.668 6.059-3.498 13.291-2.284 19.597-1.225 2.746.461 5.317.893 7.539.893 18.778 0 34-14.551 34-32.5 0-8.333-3.281-15.934-8.675-21.686-4.31 5.012-10.697 8.186-17.825 8.186-12.979 0-23.5-10.522-23.5-23.5 0-12.98-30.137-31.5-45-31.5-5.31 0-10.313.325-14.617.604-3.249.21-6.099.396-8.383.396zM234.307 82.5c1.181 3.012-2.694 4.293-4.517 1.62l-.021-.03-.032-.047-.031-.043c-7.483-10.536-20.012-17.444-34.206-17.444a42.498 42.498 0 00-16.163 3.166c-6.41 2.63-14.55 1.24-19.499-3.61-8.882-8.704-21.21-14.096-34.838-14.096-17.152 0-32.245 8.542-41 21.478-1.966 2.365-5.65 1.323-4.535-1.543.06-.155.12-.305.182-.451C86.968 54.2 104.516 42.016 125 42.016c13.628 0 25.956 5.392 34.838 14.097 4.949 4.85 13.089 6.24 19.499 3.609a42.498 42.498 0 0116.163-3.166c17.73 0 32.863 10.778 38.807 25.944z"}),ee.jsx("path",{d:"M83 20.516a9.5 9.5 0 11-19 0 9.5 9.5 0 0119 0zM264.5 65.016c8.56 0 15.5-6.94 15.5-15.5 0-8.56-6.94-15.5-15.5-15.5-8.56 0-15.5 6.94-15.5 15.5 0 8.56 6.94 15.5 15.5 15.5zM55 124.016c8.837 0 16-7.164 16-16 0-8.837-7.163-16-16-16s-16 7.163-16 16c0 8.836 7.163 16 16 16z"})]}))})),_Y=U.memo((function(e){var t=Object.assign({},(sB(e),e));return ee.jsx("svg",Od(Od({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 940 320",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:ee.jsx("path",{d:"M15 240.035V87.172h39.24V205.75h66.192v34.285H15zM183.731 242c-11.759 0-22.196-2.621-31.313-7.862-9.116-5.241-16.317-12.447-21.601-21.619-5.153-9.317-7.729-19.945-7.729-31.883 0-11.937 2.576-22.492 7.729-31.664 5.164-8.963 12.159-15.98 20.982-21.05l.619-.351c9.117-5.241 19.554-7.861 31.313-7.861s22.196 2.62 31.313 7.861c9.248 5.096 16.449 12.229 21.601 21.401 5.153 9.172 7.729 19.727 7.729 31.664 0 11.938-2.576 22.566-7.729 31.883-5.152 9.172-12.353 16.378-21.601 21.619-9.117 5.241-19.554 7.862-31.313 7.862zm0-32.975c4.36 0 8.191-1.092 11.494-3.275 3.436-2.184 6.144-5.387 8.126-9.609 1.982-4.367 2.973-9.536 2.973-15.505 0-5.968-.991-10.991-2.973-15.067-1.906-4.06-4.483-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.134-3.276-11.494-3.276-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275zM295.508 78l-.001 54.042a34.071 34.071 0 016.541-5.781c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.557 7.424 7.872 4.835 14.105 11.684 18.7 20.546l.325.637c4.756 9.026 7.135 19.799 7.135 32.319 0 12.666-2.379 23.585-7.135 32.757-4.624 9.026-10.966 16.087-19.025 21.182-7.928 4.95-16.78 7.425-26.557 7.425-9.644 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.355-7.532-7.226l.001 11.812h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.494 3.276-3.303 2.184-6.012 5.387-8.126 9.609-1.982 4.076-2.972 9.099-2.972 15.067 0 5.969.99 11.138 2.972 15.505 2.114 4.222 4.823 7.425 8.126 9.609 3.435 2.183 7.266 3.275 11.494 3.275s7.994-1.092 11.297-3.275c3.435-2.184 6.143-5.387 8.125-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.483-7.177-7.732-9.352l-.393-.257c-3.303-2.184-7.069-3.276-11.297-3.276zm105.335 38.653l.084.337a27.857 27.857 0 002.057 5.559c2.246 4.222 5.417 7.498 9.513 9.827 4.096 2.184 8.984 3.276 14.665 3.276 5.285 0 9.777-.801 13.477-2.403 3.579-1.632 7.1-4.025 10.564-7.182l.732-.679 19.818 22.711c-5.153 6.26-11.494 11.064-19.025 14.413-7.531 3.203-16.449 4.804-26.755 4.804-12.683 0-23.782-2.621-33.294-7.862-9.381-5.386-16.713-12.665-21.998-21.837-5.153-9.317-7.729-19.872-7.729-31.665 0-11.792 2.51-22.274 7.53-31.446 5.036-9.105 11.902-16.195 20.596-21.268l.61-.351c8.984-5.241 19.091-7.861 30.322-7.861 10.311 0 19.743 2.286 28.294 6.859l.64.347c8.72 4.659 15.656 11.574 20.809 20.746 5.153 9.172 7.729 20.309 7.729 33.411 0 1.294-.052 2.761-.156 4.4l-.042.623-.17 2.353c-.075 1.01-.151 1.973-.227 2.888h-78.044zm21.365-42.147c-4.492 0-8.456 1.092-11.891 3.276-3.303 2.184-5.879 5.314-7.729 9.39a26.04 26.04 0 00-1.117 2.79 30.164 30.164 0 00-1.121 4.499l-.058.354h43.96l-.015-.106c-.401-2.638-1.122-5.055-2.163-7.252l-.246-.503c-1.776-3.774-4.282-6.742-7.519-8.906l-.409-.266c-3.303-2.184-7.2-3.276-11.692-3.276zm111.695-62.018l-.001 57.432h53.51V87.172h39.24v152.863h-39.24v-59.617H555.9l.001 59.617h-39.24V87.172h39.24zM715.766 242c-8.72 0-16.581-1.893-23.583-5.678-6.87-3.785-12.287-9.681-16.251-17.688-3.832-8.153-5.747-18.417-5.747-30.791v-66.168h37.654v59.398c0 9.172 1.519 15.723 4.558 19.654 3.171 3.931 7.597 5.896 13.278 5.896 3.7 0 7.069-.946 10.108-2.839 3.038-1.892 5.483-4.877 7.332-8.953 1.85-4.222 2.775-9.609 2.775-16.16v-56.996h37.654v118.36h-35.871l.004-12.38c-2.642 3.197-5.682 5.868-9.12 8.012-7.002 4.222-14.599 6.333-22.791 6.333zM841.489 78l-.001 54.041a34.1 34.1 0 016.541-5.78c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.556 7.424 7.873 4.835 14.106 11.684 18.701 20.546l.325.637c4.756 9.026 7.134 19.799 7.134 32.319 0 12.666-2.378 23.585-7.134 32.757-4.624 9.026-10.966 16.087-19.026 21.182-7.927 4.95-16.779 7.425-26.556 7.425-9.645 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.354-7.531-7.224v11.81h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275 4.228 0 7.993-1.092 11.296-3.275 3.435-2.184 6.144-5.387 8.126-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.484-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.068-3.276-11.296-3.276z"})}))})),IY={path:"assets/logo-3d.webp",pkg:"@lobehub/assets-logo",version:"1.2.0"},NY={path:"assets/logo-flat.svg",pkg:"@lobehub/assets-logo",version:"1.2.0"},jY=oH((function(e){return{extraTitle:(0,e.css)(GK||(GK=hf(["\n font-weight: 300;\n white-space: nowrap;\n "])))}})),PY=["type","size","style","extra","className"],TY=U.memo((function(e){var t,n=e.type,r=void 0===n?"3d":n,o=e.size,i=void 0===o?32:o,a=e.style,l=e.extra,s=e.className,c=_d(e,PY),u=pU(),d=dH(),f=jY().styles;switch(r){case"3d":t=ee.jsx(gU,Od({alt:"lobehub",height:i,src:u(IY),style:a,width:i},c));break;case"flat":t=ee.jsx(gU,{alt:"lobehub",height:i,src:u(NY),style:a,width:i});break;case"high-contrast":t=ee.jsx(OY,Od({height:i,style:a,width:i},c));break;case"text":t=ee.jsx(_Y,Od({className:s,height:i,style:a,width:2.9375*i},c));break;case"combine":t=ee.jsxs(ee.Fragment,{children:[ee.jsx(gU,{alt:"lobehub",height:i,src:u(IY),width:i}),ee.jsx(_Y,{style:{height:i,marginLeft:Math.round(i/4),width:"auto"}})]})}if(!l)return t;var p=Math.round(i/3*1.9);return ee.jsxs(th,Od(Od({align:"center",className:s,horizontal:!0,style:a},c),{},{children:[t,ee.jsx($Y,{style:{color:d.colorFill,height:p,width:p}}),ee.jsx("div",{className:f.extraTitle,style:{fontSize:p},children:l})]}))})),FY=function(e){var t=e.type,n=e.scale,r=e.appearance,o=cW(t),i="dark"===r;return Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd({},"color".concat(o,"Bg"),n[r][1]),"color".concat(o,"BgHover"),n[r][2]),"color".concat(o,"Border"),n[r][4]),"color".concat(o,"BorderHover"),n[r][i?5:3]),"color".concat(o,"Hover"),n[r][i?10:8]),"color".concat(o),n[r][9]),"color".concat(o,"Active"),n[r][i?7:10]),"color".concat(o,"TextHover"),n[r][i?10:8]),"color".concat(o,"Text"),n[r][9]),"color".concat(o,"TextActive"),n[r][i?7:10])},RY=function(e){var t=e.scale,n=e.appearance;return{colorBgContainer:"dark"===n?t[n][1]:t[n][0],colorBgElevated:"dark"===n?t[n][2]:t[n][0],colorBgLayout:"dark"===n?t[n][0]:t[n][1],colorBgMask:t.lightA[8],colorBgSpotlight:t[n][5],colorBorder:t[n][4],colorBorderSecondary:t[n][3],colorFill:t["".concat(n,"A")][3],colorFillQuaternary:t["".concat(n,"A")][0],colorFillSecondary:t["".concat(n,"A")][2],colorFillTertiary:t["".concat(n,"A")][1],colorText:t[n][12],colorTextQuaternary:t[n][6],colorTextSecondary:t[n][10],colorTextTertiary:t[n][8]}},AY={mauve:{dark:["#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#fcf8fb","#ffffff"],darkA:["rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","rgba(255, 251, 254, 0.99)","#ffffff"],light:["#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#1c1b1e","#111"],lightA:["rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)","#111"]},olive:{dark:["#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#faf9f4","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","rgba(255, 254, 249, 0.98)","#ffffff"],light:["#faf9f4","#ecebe6","#ddddd7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#1a1c1b","#111"],lightA:["rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)","#111"]},sage:{dark:["#1a1c1b","#232625","#2d302f","#373a39","#424543","#4d504e","#585c59","#636765","#6f7370","#7a7f7c","#b8bab7","#f9f9f7","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 247, 0.15)","rgba(237, 253, 247, 0.19)","rgba(239, 252, 248, 0.23)","rgba(236, 246, 239, 0.28)","rgba(241, 250, 244, 0.32)","rgba(238, 249, 241, 0.37)","rgba(241, 251, 246, 0.41)","rgba(241, 250, 243, 0.46)","rgba(244, 254, 248, 0.5)","rgba(252, 255, 251, 0.73)","rgba(254, 254, 252, 0.98)","#ffffff"],light:["#f9f9f7","#eaebe8","#dcddda","#cdcfcc","#bfc1be","#b1b4b0","#a3a6a3","#959996","#888c89","#7a7f7c","#474b49","#1a1c1b","#111"],lightA:["rgba(105, 105, 55, 0.04)","rgba(45, 55, 25, 0.1)","rgba(22, 28, 8, 0.15)","rgba(5, 15, 0, 0.2)","rgba(9, 17, 5, 0.26)","rgba(3, 13, 0, 0.31)","rgba(6, 14, 6, 0.37)","rgba(3, 12, 5, 0.42)","rgba(2, 10, 4, 0.47)","rgba(4, 13, 8, 0.53)","rgba(3, 8, 6, 0.73)","rgba(1, 3, 2, 0.9)","#111"]},sand:{dark:["#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#fcf9f3","#ffffff"],darkA:["rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)","#ffffff"],light:["#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#1c1c18","#111"],lightA:["rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)","#111"]},slate:{dark:["#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#f9f9fa","#ffffff"],darkA:["rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","rgba(254, 254, 255, 0.98)","#ffffff"],light:["#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#1b1c1d","#111"],lightA:["rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)","#111"]}},MY={blue:bX.blue.dark[9],cyan:bX.cyan.dark[9],geekblue:bX.geekblue.dark[9],gold:bX.gold.dark[9],green:bX.green.dark[9],lime:bX.lime.dark[9],magenta:bX.magenta.dark[9],orange:bX.orange.dark[9],purple:bX.purple.dark[9],red:bX.red.dark[9],volcano:bX.volcano.dark[9],yellow:bX.yellow.dark[9]},LY=[MY.red,MY.orange,MY.gold,MY.yellow,MY.lime,MY.green,MY.cyan,MY.blue,MY.geekblue,MY.purple,MY.magenta,MY.volcano],zY={mauve:AY.mauve.dark[9],olive:AY.olive.dark[9],sage:AY.sage.dark[9],sand:AY.sand.dark[9],slate:AY.slate.dark[9]},BY=[zY.mauve,zY.slate,zY.sage,zY.olive,zY.sand],HY=function(e){var t,n=e.name,r=e.scale,o=e.appearance,i={},a=LX(r[o].entries());try{for(a.s();!(t=a.n()).done;){var l=Yh(t.value,2),s=l[0],c=l[1];0!==s&&12!==s&&(i["".concat(n).concat(s)]=c)}}catch(g){a.e(g)}finally{a.f()}var u,d=LX(r["".concat(o,"A")].entries());try{for(d.s();!(u=d.n()).done;){var f=Yh(u.value,2),p=f[0],h=f[1];0!==p&&12!==p&&(i["".concat(n).concat(p,"A")]=h)}}catch(g){d.e(g)}finally{d.f()}return Od(Od({},i),function(e){var t,n=e.name,r=e.scale,o=e.appearance;return Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd(Dd(t={},"".concat(n,"Bg"),r["".concat(o,"A")][1]),"".concat(n,"BgHover"),r["".concat(o,"A")][2]),"".concat(n,"Border"),r[o][4]),"".concat(n,"BorderSecondary"),r[o][3]),"".concat(n,"BorderHover"),r[o][5]),"".concat(n,"Hover"),r[o][10]),"".concat(n),r[o][9]),"".concat(n,"Active"),r[o][7]),"".concat(n,"TextHover"),r["".concat(o,"A")][10]),"".concat(n,"Text"),r["".concat(o,"A")][9]),Dd(t,"".concat(n,"TextActive"),r["".concat(o,"A")][7])}({appearance:o,name:n,scale:r}))},WY=oH((function(e,t){var n=e.css,r=e.token;return{active:n(nY||(nY=hf(["\n box-shadow: 0 0 0 2px ",";\n "])),r.colorTextTertiary),container:n(rY||(rY=hf(["\n cursor: pointer;\n\n width: ","px;\n height: ","px;\n\n background: ",";\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px ",";\n\n transition:\n scale 400ms ",",\n box-shadow 100ms ",";\n\n &:hover {\n box-shadow: 0 0 0 3px ",";\n }\n\n &:active {\n scale: 0.8;\n }\n "])),t,t,r.colorBgContainer,r.colorSplit,r.motionEaseOut,r.motionEaseOut,r.colorText)}})),UY=U.memo((function(e){var t=e.colors,n=e.activeColor,r=e.onSelect,o=e.size,i=void 0===o?24:o,a=dH(),l=WY(i),s=l.cx,c=l.styles;return ee.jsxs(th,{gap:8,horizontal:!0,style:{flexWrap:"wrap"},children:[ee.jsx(th,{className:s(c.container,!n&&c.active),onClick:function(){null==r||r()},style:{background:a.colorBgContainer}}),t.map((function(e){var t=e===n;return ee.jsx(th,{className:s(c.container,t&&c.active),onClick:function(){null==r||r(e)},style:{background:e}},e)}))]})})),qY=oH((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=".".concat(r,"-tabs");return{compact:t(oY||(oY=hf(["\n .","-tabs-tab {\n margin: 4px !important;\n\n + .","-tabs-tab {\n margin: 4px !important;\n }\n }\n "])),r,r),tabs:t(iY||(iY=hf(["\n ","-tab + ","-tab {\n margin-block: ","px !important;\n margin-inline: 4px !important;\n padding-block: 0 !important;\n padding-inline: 12px !important;\n }\n\n ","-tab {\n color: ",";\n transition: background-color 100ms ease-out;\n\n &:first-child {\n margin-block: ","px;\n margin-inline: 0 4px;\n padding-block: ","px !important;\n padding-inline: 12px !important;\n }\n\n &:hover {\n color: "," !important;\n background: ",";\n border-radius: ","px;\n }\n }\n\n ","-nav {\n margin-block-end: 0;\n\n &::before {\n display: none;\n }\n }\n "])),o,o,16,o,n.colorTextSecondary,16,6,n.colorText,n.colorFillTertiary,n.borderRadius,o)}})),VY=["className","variant"],GY=U.memo((function(e){var t=e.className,n=e.variant,r=_d(e,VY),o=qY(),i=o.styles,a=o.cx;return ee.jsx(PR,Od({className:a(i.tabs,"compact"===n&&i.compact,t)},r))})),XY=FY({appearance:"dark",scale:bX.bnw,type:"Primary"}),KY=RY({appearance:"dark",scale:bX.gray}),YY=FY({appearance:"dark",scale:bX.lime,type:"Success"}),QY=FY({appearance:"dark",scale:bX.gold,type:"Warning"}),JY=FY({appearance:"dark",scale:bX.red,type:"Error"}),ZY=FY({appearance:"dark",scale:bX.blue,type:"Info"}),eQ=Od(Od(Od(Od(Od(Od(Od({},XY),KY),YY),QY),JY),ZY),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:ZY.colorInfoText,colorLinkActive:ZY.colorInfoTextActive,colorLinkHover:ZY.colorInfoTextHover,colorTextLightSolid:KY.colorBgLayout}),tQ=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},i={},a=bX[n];a&&(o=FY({appearance:"dark",scale:a,type:"Primary"}));var l=AY[r];return l&&(i=RY({appearance:"dark",scale:l})),Od(Od(Od(Od({},t),eQ),o),i)},nQ=FY({appearance:"light",scale:bX.bnw,type:"Primary"}),rQ=RY({appearance:"light",scale:bX.gray}),oQ=FY({appearance:"light",scale:bX.green,type:"Success"}),iQ=FY({appearance:"light",scale:bX.orange,type:"Warning"}),aQ=FY({appearance:"light",scale:bX.volcano,type:"Error"}),lQ=FY({appearance:"light",scale:bX.geekblue,type:"Info"}),sQ=Od(Od(Od(Od(Od(Od(Od({},nQ),rQ),oQ),iQ),aQ),lQ),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:lQ.colorInfoText,colorLinkActive:lQ.colorInfoTextActive,colorLinkHover:lQ.colorInfoTextHover,colorTextLightSolid:rQ.colorBgLayout}),cQ=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},i={},a=bX[n];a&&(o=FY({appearance:"light",scale:a,type:"Primary"}));var l=AY[r];return l&&(i=RY({appearance:"light",scale:l})),Od(Od(Od(Od({},t),sQ),o),i)},uQ='"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',dQ='"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif',fQ={borderRadius:5,borderRadiusLG:8,borderRadiusSM:3,borderRadiusXS:3,controlHeight:36,fontFamily:['"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',dQ,uQ].join(","),fontFamilyCode:["Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",dQ,uQ].join(",")};const pQ=function(e){return aH(aY||(aY=hf(["\n .","-checkbox-inner:after {\n border-color: "," !important;\n }\n\n .","-btn {\n box-shadow: none;\n }\n\n .","-btn-primary:not(:disabled) {\n color: "," !important;\n\n &:hover {\n color: "," !important;\n }\n\n &:active {\n color: "," !important;\n }\n }\n\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding-block: 4px;\n padding-inline: 8px;\n\n color: "," !important;\n\n background-color: "," !important;\n border-radius: ","px !important;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: "," !important;\n }\n }\n\n .","-switch-handle::before {\n background: "," !important;\n }\n\n .","-image-preview-close,\n .","-image-preview-switch-right,.","-image-preview-switch-left {\n ",";\n border-radius: ","px;\n background: ",";\n\n width: 32px;\n height: 32px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: 0;\n }\n\n .","-popover-inner {\n border: 1px solid ",";\n box-shadow: ",";\n }\n\n ul.","-dropdown-menu {\n border: 1px solid ",";\n border-radius: ","px !important;\n box-shadow: ",";\n }\n\n @media (max-width: 575px) {\n .","-tooltip {\n display: none !important;\n }\n }\n"])),e.prefixCls,oq(e.colorPrimary),e.prefixCls,e.prefixCls,oq(e.colorPrimary),oq(e.colorPrimary),oq(e.colorPrimaryActive),e.prefixCls,e.colorBgLayout,e.colorText,e.borderRadiusSM,e.prefixCls,e.colorText,e.prefixCls,e.colorBgContainer,e.prefixCls,e.prefixCls,e.prefixCls,e.stylish.blur,e.borderRadiusLG,HU(e.colorBgMask,.1),e.prefixCls,e.colorBorderSecondary,e.boxShadowSecondary,e.prefixCls,e.colorBorderSecondary,e.borderRadius,e.boxShadowSecondary,e.prefixCls)};var hQ;var gQ=iH((function(e){var t,n=e.theme;return[(t=n,aH(hQ||(hQ=hf(["\n :root {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n }\n\n html {\n overscroll-behavior: none;\n color-scheme: ",";\n }\n\n body {\n overflow: hidden auto;\n\n min-height: 100vh;\n margin: 0;\n padding: 0;\n\n font-family: ",";\n font-size: ","px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1;\n color: ",";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n word-wrap: break-word;\n vertical-align: baseline;\n\n background-color: ",";\n\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n code {\n font-family: "," !important;\n\n span {\n font-family: "," !important;\n }\n }\n\n ::selection {\n color: #000;\n background: ",";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n scrollbar-color: "," transparent;\n scrollbar-width: thin;\n box-sizing: border-box;\n vertical-align: baseline;\n }\n"])),t.isDarkMode?"dark":"light",t.fontFamily,t.fontSize,t.colorTextBase,t.colorBgLayout,t.fontFamilyCode,t.fontFamilyCode,t.yellow9,t.colorFill)),pQ(n)]})),mQ=["children","customStylish","customToken","enableWebfonts","enableGlobalStyle","webfonts","customTheme","className","style"],bQ=U.memo((function(e){var t=e.children,n=e.customStylish,r=e.customToken,o=e.enableWebfonts,i=void 0===o||o,a=e.enableGlobalStyle,l=void 0===a||a,s=e.webfonts,c=e.customTheme,u=void 0===c?{}:c,d=e.className,f=e.style,p=_d(e,mQ),h=pU(),g=s||[h({path:"css/index.css",pkg:"@lobehub/webfont-mono",version:"1.0.0"}),h({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans",version:"1.0.0"}),h({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans-sc",version:"1.0.0"}),h({path:"dist/katex.min.css",pkg:"katex",version:"0.16.8"})],m=U.useCallback((function(e){return Od(Od({},function(e){var t=e.css,n=e.token,r=e.isDarkMode,o=sH(XK||(XK=hf(["\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n "])));return{blur:t(KK||(KK=hf(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),blurStrong:t(YK||(YK=hf(["\n backdrop-filter: blur(36px);\n "]))),bottomScrollbar:t(QK||(QK=hf(["\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n background-color: ",";\n border-radius: 4px;\n transition: background-color 500ms ",";\n }\n\n &-corner {\n display: none;\n width: 0;\n height: 0;\n }\n }\n "])),n.colorFill,n.motionEaseOut),gradientAnimation:t(JK||(JK=hf(["\n background-image: linear-gradient(\n -45deg,\n ",",\n ",",\n ",",\n ","\n );\n background-size: 400% 400%;\n border-radius: inherit;\n animation: 5s "," 5s ease infinite;\n "])),n.gold,n.magenta,n.geekblue,n.cyan,o),markdown:t(ZK||(ZK=hf(["\n --lobe-markdown-font-size: 16px;\n --lobe-markdown-header-multiple: 1;\n --lobe-markdown-margin-multiple: 1.5;\n\n position: relative;\n\n width: 100%;\n\n font-size: var(--lobe-markdown-font-size);\n line-height: 1.6;\n word-break: break-word;\n\n p {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n line-height: 1.6;\n letter-spacing: 0.02em;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5 {\n margin-block: max(\n calc(var(--lobe-markdown-header-multiple) * var(--lobe-markdown-margin-multiple) * 0.5em),\n var(--lobe-markdown-font-size)\n );\n font-weight: 600;\n }\n\n h1 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 1.5 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h2 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + var(--lobe-markdown-header-multiple))\n );\n }\n\n h3 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 0.5 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h4 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 0.25 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h5 {\n font-size: calc(var(--lobe-markdown-font-size) * 1);\n }\n\n li {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 0.5em);\n }\n\n ul,\n ol {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n margin-inline-start: 1em;\n list-style-position: outside;\n\n li {\n margin-inline-start: 1em;\n }\n }\n\n ol {\n li {\n &::marker {\n color: ",";\n }\n }\n }\n\n ul {\n list-style-type: none;\n\n li {\n &::before {\n content: '-';\n display: inline-block;\n margin-inline: -1em 0.5em;\n color: ",";\n }\n }\n }\n\n strong {\n font-weight: 600;\n }\n\n code:not(:has(span)) {\n display: inline-block;\n\n padding-block: 0.2em;\n padding-inline: 0.4em;\n\n font-family: ",";\n font-size: 0.875em;\n line-height: 1;\n word-break: break-word;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n }\n\n kbd {\n cursor: default;\n user-select: none;\n\n transform: translateY(-0.2em);\n\n display: inline-block;\n\n min-width: 1em;\n margin-inline: 0.25em;\n padding-block: 0.2em;\n padding-inline: 0.4em;\n\n font-family: ",";\n font-size: 0.875em;\n font-weight: 500;\n line-height: 1;\n color: ",";\n text-align: center;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 0.25em;\n box-shadow: 0 2px 0 1px ",";\n\n &:hover {\n transform: translateY(0);\n box-shadow: none;\n }\n }\n\n blockquote {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n margin-inline: 0;\n padding-block: 0;\n padding-inline: 1em;\n\n color: ",";\n\n border-inline-start: solid 4px ",";\n }\n\n hr {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1.5em);\n\n border-color: ",";\n border-style: dashed;\n border-width: 1px;\n border-block-start: none;\n border-inline-start: none;\n border-inline-end: none;\n }\n\n details {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n padding-block: 0.75em;\n padding-inline: 1em;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n\n summary {\n cursor: pointer;\n display: flex;\n align-items: center;\n list-style: none;\n\n &::before {\n content: '';\n\n position: absolute;\n inset-inline-end: 1.25em;\n transform: rotateZ(-45deg);\n\n display: block;\n\n width: 0.4em;\n height: 0.4em;\n\n font-family: ",";\n\n border-block-end: 1.5px solid ",";\n border-inline-end: 1.5px solid ",";\n\n transition: transform 200ms ",";\n }\n }\n\n &[open] {\n padding-block-end: 0;\n\n summary {\n padding-block-end: 12px;\n border-block-end: 1px dashed ",";\n\n &::before {\n transform: rotateZ(45deg);\n }\n }\n }\n }\n\n img,\n video {\n max-width: 100%;\n }\n\n table {\n overflow: hidden;\n display: table;\n border-spacing: 0;\n border-collapse: collapse;\n\n box-sizing: border-box;\n width: 100%;\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n\n text-align: start;\n overflow-wrap: break-word;\n\n background: ",";\n border-radius: ","px;\n box-shadow: inset 0 0 0 1px ",";\n }\n\n thead {\n background: ",";\n }\n\n tr {\n box-shadow: inset 0 -1px 0 ",";\n }\n\n th,\n td {\n padding-block: 0.75em;\n padding-inline: 1em;\n text-align: start;\n vertical-align: top;\n }\n\n pre,\n [data-code-type='highlighter'] {\n border: none;\n\n > code {\n padding: 0 !important;\n\n font-family: ",";\n font-size: 0.875em;\n line-height: 1.6;\n\n border: none !important;\n }\n }\n "])),n.colorTextSecondary,n.colorTextDescription,n.fontFamilyCode,n.colorFillSecondary,n.colorBorderSecondary,n.borderRadius,n.fontFamily,n.colorBgLayout,r?n.colorText:"#333",r?n.colorTextSecondary:"#000",r?n.colorTextSecondary:"#000",n.colorTextSecondary,n.colorBorder,n.colorBorderSecondary,n.colorFillTertiary,n.colorBorderSecondary,n.borderRadius,n.fontFamily,n.colorTextSecondary,n.colorTextSecondary,n.motionEaseOut,n.colorBorder,n.colorFillTertiary,n.borderRadius,n.colorBorderSecondary,n.colorFillQuaternary,n.colorBorderSecondary,n.fontFamilyCode),noScrollbar:t(eY||(eY=hf(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:t(tY||(tY=hf(["\n cursor: pointer;\n color: ",";\n\n &:hover {\n color: ",";\n }\n "])),n.colorTextSecondary,n.colorText)}}(e)),null==n?void 0:n(e))}),[n]),b=U.useCallback((function(e){return Od(Od({},function(e){for(var t=e.isDarkMode,n={},r=0,o=Object.entries(bX);r<o.length;r++){var i=Yh(o[r],2),a=i[0],l=i[1];n=Od(Od({},n),HY({appearance:t?"dark":"light",name:BW(a),scale:l}))}return n}(e)),null==r?void 0:r(e))}),[r]),v=U.useCallback((function(e){return function(e){var t=e.neutralColor,n=e.appearance,r=e.primaryColor;return{algorithm:"dark"===n?tQ:cQ,token:Od(Od({},fQ),{},{neutralColor:t,primaryColor:r})}}({appearance:e,neutralColor:u.neutralColor,primaryColor:u.primaryColor})}),[u.primaryColor,u.neutralColor]);return ee.jsxs(ee.Fragment,{children:[i&&(null==g?void 0:g.length)>0&&g.map((function(e){return ee.jsx(sK,{url:e},e)})),ee.jsx(uH,{speedy:!0,children:ee.jsxs(cH,Od(Od({customStylish:m,customToken:b},p),{},{theme:v,children:[l&&ee.jsx(gQ,{}),ee.jsx(a_,{className:d,style:Od({minHeight:"inherit",width:"inherit"},f),children:t})]}))})]})}));bQ.displayName="LobeThemeProvider";const vQ="3.4.10",yQ="LobeThem: The Modern Theme for Stable Diffusion WebUI, Exquisite interface design, Highly customizable UI, and Efficiency boosting features.",wQ="https://github.com/lobehub/sd-webui-lobe-theme",xQ=wQ.replace("https://github.com/",""),kQ="https://lobehub.com/",SQ=location.origin,CQ=(new Date).toISOString(),EQ={arvinxx:{avatar:"https://avatars.githubusercontent.com/u/28616219?v=4",desc:"Founder, Design Engineer",name:"Arvin Xu",url:"https://github.com/arvinxx"},canisminor:{avatar:"https://avatars.githubusercontent.com/u/17870709?v=4",desc:"Founder, Design Engineer",name:"CanisMinor",url:"https://github.com/arvinxx"},lobehub:{avatar:"https://avatars.githubusercontent.com/u/131470832?v=4",desc:"Official Account",name:"LobeHub",url:"https://github.com/lobehub"}};const DQ=new class{generate({image:e="/og/cover.png",url:t,title:n,description:r,date:o,webpage:i={enable:!0}}){return{"@context":"https://schema.org","@graph":[this.genWebSite(),(null==i?void 0:i.enable)&&this.genWebPage({...i,date:o,description:r,image:e,title:n,url:t}),e&&this.genImageObject({image:e,url:t}),this.genOrganization()].filter(Boolean)}}genOrganization(){return{"@id":this.getId(SQ,"#organization"),"@type":"Organization",alternateName:"LobeTheme",contactPoint:{"@type":"ContactPoint",contactType:"customer support",email:"support@lobehub.com"},description:"We are a group of e/acc design-engineers, hoping to provide modern design components and tools for AIGC, and creating a technology-driven forum, fostering knowledge interaction and the exchange of ideas that may culminate in mutual inspiration and collaborative innovation.",email:"hello@lobehub.com",founders:[this.getAuthors(["arvinxx"]),this.getAuthors(["canisminor"])],image:cU(kQ,"/icon-512x512.png"),logo:{"@type":"ImageObject",height:512,url:cU(kQ,"/icon-512x512.png"),width:512},name:"LobeHub",sameAs:["https://x.com/lobehub","https://github.com/lobehub","https://medium.com/@lobehub","https://www.youtube.com/@lobehub"],url:kQ}}getAuthors(e=[]){const t={"@id":this.getId(SQ,"#organization"),"@type":"Organization"};if(!e||0===e.length)return t;if(1===e.length&&"lobehub"===e[0])return t;const n=e.find((e=>"lobehub"!==e));if(!n)return t;const r=null==EQ?void 0:EQ[n];return r?{"@type":"Person",name:r.name,url:r.url}:t}genWebPage({date:e,image:t,search:n,description:r,title:o,url:i}){const a=this.fixUrl(i),l=e?new Date(e).toISOString():CQ,s=e?new Date(e).toISOString():CQ,c={"@id":a,"@type":"WebPage",about:{"@id":this.getId(SQ,"#organization")},breadcrumbs:{"@id":this.getId(a,"#breadcrumb")},dateModified:s,datePublished:l,description:r,image:{"@id":this.getId(a,"#primaryimage")},inLanguage:"en-US",isPartOf:{"@id":this.getId(SQ,"#website")},name:this.fixTitle(o),primaryImageOfPage:{"@id":this.getId(a,"#primaryimage")},thumbnailUrl:t};return n&&(c.potentialAction={"@type":"SearchAction","query-input":"required name=search_term_string",target:`${a}?q={search_term_string}`}),c}genImageObject({image:e,url:t}){const n=this.fixUrl(t);return{"@id":this.getId(n,"#primaryimage"),"@type":"ImageObject",contentUrl:e,inLanguage:"en-US",url:e}}genWebSite(){return{"@id":this.getId(SQ,"#website"),"@type":"WebSite",description:yQ,inLanguage:"en-US",name:"LobeTheme",publisher:{"@id":this.getId(SQ,"#organization")},url:SQ}}getId(e,t){return[e,t].join("/")}fixTitle(e){return e.includes("LobeTheme")?e:`${e} · LobeTheme`}fixUrl(e){return cU(SQ,e)}},$Q=yQ,OQ=()=>{const e=DQ.generate({description:$Q,image:"https://repository-images.githubusercontent.com/606329910/7fd79db5-fd91-450c-9e95-8ccce8ffdc0b",title:"Stable Diffusion · LobeHub",url:"/"});return ee.jsx("script",{dangerouslySetInnerHTML:{__html:JSON.stringify(e)},id:"structured-data",type:"application/ld+json"})},_Q=(e,t,{onSuccess:n,onError:r,debug:o,id:i,onStart:a,parent:l,inverse:s}={})=>{const[c,u]=U.useState(!0),[d,f]=U.useState(),p=U.useRef(!1);return U.useEffect((()=>{var c;if(!p.current)try{const r=(l?gradioApp().querySelector(l):gradioApp()).querySelector(t);r?(i&&(r.id=i),null==a||a(r),s&&e.current?r.append(e.current):null==(c=e.current)||c.append(r),f(r),null==n||n(r),p.current=!0,u(!1),o&&fe.success(`🤯 ${o}`)):o&&fe.error(`🤯 ${o}`,`Element not found for selector: ${t}`)}catch(d){console.error(d),null==r||r(d),u(!1),o&&fe.error(`🤯 ${o}`,d)}}),[]),{element:d,isLoaded:!c,isLoading:c}},IQ={convert(e){const t=/\{|\[|\}|\]|[^{}[\]]+/gmu;let n=IQ.convertStr(e);const r=IQ.convertStr2Array(n);n=IQ.convertArray2Str(r);let o=[];const i={"[":{multiplier:1/1.05,stack:[]},"{":{multiplier:1.05,stack:[]}};function a(e,t){for(let n=e;n<o.length;n++)o[n][1]=IQ.round(o[n][1]*t)}for(const c of n.matchAll(t)){let e=c[0];if(e in i)i[e].stack.push(o.length);else if("}"===e||"]"===e){const t=i["}"===e?"{":"["];t.stack.length>0&&a(t.stack.pop(),t.multiplier)}else o.push([e,1])}for(const c of Object.keys(i))for(const e of i[c].stack)a(e,i[c].multiplier);0===o.length&&(o=[["",1]]);let l=0;for(;l+1<o.length;)o[l][1]===o[l+1][1]?(o[l][0]+=o[l+1][0],o.splice(l+1,1)):l+=1;let s="";for(const[c,u]of o)s+=1===u?c:`(${c}:${u.toString()})`;return s.trim().replaceAll(/\s+/g," ")},convertArray2Str:e=>e.map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/,|\.\|。/g,",").replaceAll(/“|‘|”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return IQ.convertStr2Array(t).join(", ")})).join(", "),convertStr:e=>e.replaceAll(":",":").replaceAll("(","(").replaceAll(")",")"),convertStr2Array(e){const t=/([()<>[\]])/g;return(e=>{let n=(e=>{const n=[];let r,o=0,i=0;for(;null!==(r=t.exec(e));)0===i&&r.index>o&&(n.push(e.slice(o,r.index)),o=r.index),"("===r[0]||"<"===r[0]||"["===r[0]?i++:")"!==r[0]&&">"!==r[0]&&"]"!==r[0]||i--,0===i&&(n.push(e.slice(o,r.index+1)),o=r.index+1);return o<e.length&&n.push(e.slice(Math.max(0,o))),n})(e);return n=n.flatMap((e=>(e=>{const n=[];let r=0,o=!1;for(let i=0;i<e.length;i++)","!==e[i]||o?t.test(e[i])&&(o=!o):(n.push(e.slice(r,i)),r=i+1);return n.push(e.slice(Math.max(0,r))),n})(e))),n.filter((e=>""!==e))})(e).filter((e=>!/^[\s,,]+$/.test(e))).filter(Boolean).sort(((e,t)=>e.includes("<")&&!t.includes("<")?1:t.includes("<")&&!e.includes("<")?-1:0))},dispatchInputEvent(e){let t=new Event("input");Object.defineProperty(t,"target",{value:e}),e.dispatchEvent(t)},onClickConvert(e){const t=gradioApp().querySelector(`#${e}2img_prompt > label > textarea`),n=IQ.convert(t.value);t.value=null===n.match(/^masterpiece, best quality,/)?""+n:n,IQ.dispatchInputEvent(t);const r=gradioApp().querySelector(`#${e}2img_neg_prompt > label > textarea`),o=IQ.convert(r.value);r.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,IQ.dispatchInputEvent(r)},round:e=>Math.round(1e4*e)/1e4},NQ=e=>{const t=U.useRef((e=>{const t=document.createElement("button");return t.id=`${e}2img_formatconvert`,t.type="button",t.innerHTML="🪄",t.title="Format prompt~🪄",t.className="lg secondary gradio-button tool svelte-cmf5ev",t.addEventListener("click",(()=>IQ.onClickConvert(e))),t})(e));_Q(t,`#${e}2img_tools > div.form`,{inverse:!0})},jQ=U.memo((()=>(NQ("txt"),NQ("img"),null))),PQ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class TQ{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||PQ,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new TQ(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new TQ(this.logger,e)}}var FQ=new TQ;class RQ{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let o=0;o<r;o++)t(...n)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[r,o]=t;for(let i=0;i<o;i++)r.apply(r,[e,...n])}))}}}function AQ(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function MQ(e){return null==e?"":""+e}const LQ=/###/g;function zQ(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(LQ,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?t:t.split(".");let a=0;for(;a<i.length-1;){if(o())return{};const t=r(i[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return o()?{}:{obj:e,k:r(i[a])}}function BQ(e,t,n){const{obj:r,k:o}=zQ(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),l=zQ(e,a,Object);for(;void 0===l.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),l=zQ(e,a,Object),l&&l.obj&&void 0!==l.obj[`${l.k}.${i}`]&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=n}function HQ(e,t){const{obj:n,k:r}=zQ(e,t);if(n)return n[r]}function WQ(e,t,n){for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):WQ(e[r],t[r],n):e[r]=t[r]);return e}function UQ(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var qQ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function VQ(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>qQ[e])):e}const GQ=[" ",",","?","!",";"],XQ=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function KQ(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||"object"!=typeof o)return;let e,t="";for(let a=i;a<r.length;++a)if(a!==i&&(t+=n),t+=r[a],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&a<r.length-1)continue;i+=a-i+1;break}o=e}return o}function YQ(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class QQ extends RQ{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&o?a.push(...n.split(o)):a.push(n)));const l=HQ(this.data,a);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),l||!i||"string"!=typeof n?l:KQ(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),BQ(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=HQ(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?WQ(l,n,o):l={...l,...n},BQ(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var JQ={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const ZQ={};class eJ extends RQ{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=FQ.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=GQ.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=XQ.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?p:f;for(const i in d)if(Object.prototype.hasOwnProperty.call(d,i)){const e=`${r}${o}${i}`;n[i]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[i]===e&&(n[i]=d[i])}d=n}}else if(m&&"string"==typeof g&&"[object Array]"===h)d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,f=eJ.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=i);const b=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,v=f&&m!==d&&this.options.updateMissing;if(a||r||v){if(this.logger.log(v?"updateKey":"missingKey",s,l,i,v?m:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const o=f&&r!==d?r:b;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,v,t),this.emit("missingKey",e,l,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||m)}))})):r(e,i,m))}d=this.extendTranslation(d,e,t,u,n),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):i.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l="string"==typeof a?[a]:a;return null!=e&&l&&l.length&&!1!==n.applyPostProcessor&&(e=JQ.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!ZQ[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(ZQ[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;o=n;const i=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(s+e),a.ordinal&&0===e.indexOf(r)&&i.push(s+e.replace(r,this.options.pluralSeparator)),d&&i.push(s+t)),f){const n=`${s}${this.options.contextSeparator}${a.context}`;i.push(n),u&&(i.push(n+e),a.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let l;for(;l=i.pop();)this.isValidLookup(t)||(r=l,t=this.getResource(n,e,l,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function tJ(e){return e.charAt(0).toUpperCase()+e.slice(1)}class nJ{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=FQ.create("languageUtils")}getScriptPartFromCode(e){if(!(e=YQ(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=YQ(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=tJ(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=tJ(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=tJ(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let rJ=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],oJ={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const iJ=["v1","v2","v3"],aJ=["v4"],lJ={zero:0,one:1,two:2,few:3,many:4,other:5};class sJ{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=FQ.create("pluralResolver"),this.options.compatibilityJSON&&!aJ.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return rJ.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:oJ[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(YQ("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>lJ[e]-lJ[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!iJ.includes(this.options.compatibilityJSON)}}function cJ(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){const r=HQ(e,n);return void 0!==r?r:HQ(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&(i=KQ(e,n,r),void 0===i&&(i=KQ(t,n,r))),i}class uJ{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=FQ.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:l,formatSeparator:s,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:VQ,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?UQ(o):i||"{{",this.suffix=a?UQ(a):l||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?UQ(d):f||UQ("$t("),this.nestingSuffix=p?UQ(p):h||UQ(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=cJ(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(cJ(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>s(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?s(this.escape(e)):s(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(d){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=MQ(i));const l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(b6){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,b6),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),l=e,s=!0}if(r=t(a.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=MQ(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),s&&(r=l.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function dJ(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(YQ(r),o),t[i]=a),a(n)}}class fJ{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=FQ.create("formatter"),this.options=e,this.formats={number:dJ(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:dJ(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:dJ(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:dJ(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:dJ(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=dJ(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}}class pJ extends RQ{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=FQ.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},a={},l={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:i}=zQ(e,t,Object);o[i]=o[i]||[],o[i].push(n)}(n.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&l&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*o,i)}),o):i(a,l)},l=this.backend[n].bind(this.backend);if(2!==l.length)return l(e,t,a);try{const n=l(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(s){a(s)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)}))}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...i,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;o=5===c.length?c(e,t,n,r,s):c(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(l){a(l)}else c(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function hJ(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function gJ(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function mJ(){}class bJ extends RQ{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=gJ(e),this.services={},this.logger=FQ,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=hJ();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...gJ(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?FQ.init(o(this.modules.logger),this.options):FQ.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=fJ);const n=new nJ(this.options);this.store=new QQ(this.options.resources,this.options);const i=this.services;i.logger=FQ,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new sJ(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new uJ(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new pJ(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.languageDetector&&(i.languageDetector=o(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=o(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new eJ(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=mJ),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const i=AQ(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mJ;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=AQ();return e||(e=this.languages),t||(t=this.options.ns),n||(n=mJ),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&JQ.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=AQ();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{i(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([e,t].concat(l))}else i={...t};i.lng=i.lng||o.lng,i.lngs=i.lngs||o.lngs,i.ns=i.ns||o.ns,i.keyPrefix=i.keyPrefix||n||o.keyPrefix;const c=r.options.keySeparator||".";let u;return u=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=AQ();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=AQ();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new nJ(hJ());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new bJ(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mJ;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new bJ(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new QQ(this.store.data,r),o.services.resourceStore=o.store),o.translator=new eJ(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit(e,...n)})),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const vJ=bJ.createInstance();function yJ(e){return(yJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wJ(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":yJ(XMLHttpRequest))}function xJ(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}vJ.createInstance=bJ.createInstance,vJ.createInstance,vJ.dir,vJ.init,vJ.loadResources,vJ.reloadResources,vJ.use,vJ.changeLanguage,vJ.getFixedT,vJ.t,vJ.exists,vJ.setDefaultNamespace,vJ.hasLoadedNamespace,vJ.loadNamespaces,vJ.loadLanguages;var kJ,SJ={exports:{}},CJ={exports:{}};function EJ(){return kJ||(kJ=1,function(e,t){var n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();n=i,function(e){var t=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==t&&t,r="URLSearchParams"in t,o="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(b6){return!1}}(),a="FormData"in t,l="ArrayBuffer"in t;if(l)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=d(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},o&&(p.prototype[Symbol.iterator]=p.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),y.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},v.call(w.prototype),v.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];k.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(E){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function C(n,r){return new Promise((function(o,a){var s=new w(n,r);if(s.signal&&s.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}c.onload=function(){var e,t,n={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){o(new k(r,n))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},c.open(s.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(b6){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(i?c.responseType="blob":l&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof p?s.headers.forEach((function(e,t){c.setRequestHeader(t,e)})):Object.getOwnPropertyNames(r.headers).forEach((function(e){c.setRequestHeader(e,d(r.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",u)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}C.polyfill=!0,t.fetch||(t.fetch=C,t.Headers=p,t.Request=w,t.Response=k),e.Headers=p,e.Request=w,e.Response=k,e.fetch=C}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var a=o.fetch?o:i;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(CJ,CJ.exports)),CJ.exports}!function(e,t){var n;if("function"==typeof fetch&&(n=void 0!==r&&r.fetch?r.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),void 0!==xJ&&"undefined"==typeof window){var o=n||EJ();o.default&&(o=o.default),t.default=o,e.exports=t.default}}(SJ,SJ.exports);var DJ=SJ.exports;const $J=o(DJ),OJ=n({__proto__:null,default:$J},[DJ]);function _J(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 IJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_J(Object(n),!0).forEach((function(t){NJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NJ(e,t,n){var r;return r=function(e,t){if("object"!=jJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=jJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==jJ(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jJ(e){return(jJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var PJ,TJ,FJ;"function"==typeof fetch&&(PJ="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),wJ()&&("undefined"!=typeof global&&global.XMLHttpRequest?TJ=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(TJ=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?FJ=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(FJ=window.ActiveXObject)),PJ||!OJ||TJ||FJ||(PJ=$J||OJ),"function"!=typeof PJ&&(PJ=void 0);var RJ=function(e,t){if(t&&"object"===jJ(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},AJ=function(e,t,n,r){var o=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then((function(t){n(null,{status:e.status,data:t})})).catch(n)};if(r){var i=r(e,t);if(i instanceof Promise)return void i.then(o).catch(n)}"function"==typeof fetch?fetch(e,t).then(o).catch(n):PJ(e,t).then(o).catch(n)},MJ=!1,LJ=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},PJ&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=RJ(t,e.queryStringParams));var o=IJ({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var i="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=IJ({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},MJ?{}:i),l="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{AJ(t,a,r,l)}catch(b6){if(!i||0===Object.keys(i).length||!b6.message||b6.message.indexOf("not implemented")<0)return r(b6);try{Object.keys(i).forEach((function(e){delete a[e]})),AJ(t,a,r,l),MJ=!0}catch(s){r(s)}}}(e,t,n,r):wJ()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===jJ(n)&&(n=RJ("",n).slice(1)),e.queryStringParams&&(t=RJ(t,e.queryStringParams));try{var o;(o=TJ?new TJ:new FJ("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=e.customHeaders;if(i="function"==typeof i?i():i)for(var a in i)o.setRequestHeader(a,i[a]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(b6){console&&console.log(b6)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function zJ(e){return(zJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function BJ(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 HJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BJ(Object(n),!0).forEach((function(t){UJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WJ(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qJ(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UJ(e,t,n){return(t=qJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qJ(e){var t=function(e,t){if("object"!=zJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zJ(t)?t:String(t)}var VJ=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return WJ(e,[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=HJ(HJ(HJ({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return UJ({},t,n||"")},parseLoadPayload:function(e,t){},request:LJ,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var i,a=this,l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(e,n)),(l=function(e){return!!e&&"function"==typeof e.then}(i=l)?i:Promise.resolve(i)).then((function(i){if(!i)return o(null,{});var l=a.services.interpolator.interpolate(i,{lng:e.join("+"),ns:n.join("+")});a.loadUrl(l,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this,i="string"==typeof n?[n]:n,a="string"==typeof r?[r]:r,l=this.options.parseLoadPayload(i,a);this.options.request(this.options,e,l,(function(i,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&i&&i.message&&i.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+i.message,!0);if(i)return t(i,!1);var l,s;try{l="string"==typeof a.data?o.options.parse(a.data,n,r):a.data}catch(b6){s="failed parsing "+e+" to json"}if(s)return t(s,!1);t(null,l)}))}},{key:"create",value:function(e,t,n,r,o){var i=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),l=0,s=[],c=[];e.forEach((function(n){var r=i.options.addPath;"function"==typeof i.options.addPath&&(r=i.options.addPath(n,t));var u=i.services.interpolator.interpolate(r,{lng:n,ns:t});i.options.request(i.options,u,a,(function(t,n){l+=1,s.push(t),c.push(n),l===e.length&&"function"==typeof o&&o(s,c)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,i=n.language;if(!i||"cimode"!==i.toLowerCase()){var a=[],l=function(e){r.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};l(i),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return l(e)})),a.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)}))}))}))}}}]),e}();VJ.type="backend";const GJ={};function XJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&GJ[t[0]]||("string"==typeof t[0]&&(GJ[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}const KJ=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function YJ(e,t,n){e.loadNamespaces(t,KJ(e,n))}function QJ(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,KJ(e,r))}const JJ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ZJ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},eZ=e=>ZJ[e];let tZ,nZ={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(JJ,eZ)};const rZ={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nZ={...nZ,...e}}(e.options.react),function(e){tZ=e}(e)}},oZ=U.createContext();class iZ{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function aZ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=U.useContext(oZ)||{},i=n||r||tZ;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new iZ),!i){XJ("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react&&void 0!==i.options.react.wait&&XJ("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...nZ,...i.options.react,...t},{useSuspense:l,keyPrefix:s}=a;let c=o||i.options&&i.options.defaultNS;c="string"==typeof c?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}(e,t,n):(XJ("i18n.languages were undefined or empty",t.languages),!0)}(e,i,a)));function d(){return i.getFixedT(t.lng||null,"fallback"===a.nsMode?c:c[0],s)}const[f,p]=U.useState(d);let h=c.join();t.lng&&(h=`${t.lng}${h}`);const g=((e,t)=>{const n=U.useRef();return U.useEffect((()=>{n.current=e}),[e,t]),n.current})(h),m=U.useRef(!0);U.useEffect((()=>{const{bindI18n:e,bindI18nStore:n}=a;function r(){m.current&&p(d)}return m.current=!0,u||l||(t.lng?QJ(i,t.lng,c,(()=>{m.current&&p(d)})):YJ(i,c,(()=>{m.current&&p(d)}))),u&&g&&g!==h&&m.current&&p(d),e&&i&&i.on(e,r),n&&i&&i.store.on(n,r),()=>{m.current=!1,e&&i&&e.split(" ").forEach((e=>i.off(e,r))),n&&i&&n.split(" ").forEach((e=>i.store.off(e,r)))}}),[i,h]);const b=U.useRef(!0);U.useEffect((()=>{m.current&&!b.current&&p(d),b.current=!1}),[i,s]);const v=[f,i,u];if(v.t=f,v.i18n=i,v.ready=u,u)return v;if(!u&&!l)return v;throw new Promise((e=>{t.lng?QJ(i,t.lng,c,(()=>e())):YJ(i,c,(()=>e()))}))}var lZ={BASE_URL:"/dev",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const sZ=new Map,cZ=e=>{const t=sZ.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},uZ=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:l,...s}=t;let c;try{c=(null!=i?i:"production"!==(lZ?"production":void 0))&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(b6){}if(!c)return"production"!==(lZ?"production":void 0)&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=sZ.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return sZ.set(n.name,o),{type:"tracked",store:e,...o}})(l,c,s);let f=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!f)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===l?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${l}/${d.type}`},{...cZ(s.name),[l]:o.getState()}),c)};const p=(...e)=>{const t=f;f=!1,n(...e),f=t},h=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(h):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?h:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"production"===(lZ?"production":void 0)||"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):dZ(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===l)return void p(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[l];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(h),void 0===l?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(cZ(s.name));case"COMMIT":return void 0===l?void(null==u||u.init(o.getState())):null==u?void 0:u.init(cZ(s.name));case"ROLLBACK":return dZ(e.state,(e=>{if(void 0===l)return p(e),void(null==u||u.init(o.getState()));p(e[l]),null==u||u.init(cZ(s.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return dZ(e.state,(e=>{void 0!==l?JSON.stringify(o.getState())!==JSON.stringify(e[l])&&p(e[l]):p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(void 0===l?r:r[l]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return f=!f}return}})),h},dZ=(e,t)=>{let n;try{n=JSON.parse(e)}catch(b6){console.error("[zustand devtools middleware] Could not parse the received json",b6)}void 0!==n&&t(n)};var fZ={exports:{}},pZ={},hZ={exports:{}},gZ={},mZ=U;var bZ="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},vZ=mZ.useState,yZ=mZ.useEffect,wZ=mZ.useLayoutEffect,xZ=mZ.useDebugValue;function kZ(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bZ(e,n)}catch(r){return!0}}var SZ="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=vZ({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return wZ((function(){o.value=n,o.getSnapshot=t,kZ(o)&&i({inst:o})}),[e,n,t]),yZ((function(){return kZ(o)&&i({inst:o}),e((function(){kZ(o)&&i({inst:o})}))}),[e]),xZ(n),n};gZ.useSyncExternalStore=void 0!==mZ.useSyncExternalStore?mZ.useSyncExternalStore:SZ,hZ.exports=gZ;var CZ=hZ.exports,EZ=U,DZ=CZ;
|
||
/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var $Z="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},OZ=DZ.useSyncExternalStore,_Z=EZ.useRef,IZ=EZ.useEffect,NZ=EZ.useMemo,jZ=EZ.useDebugValue;pZ.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=_Z(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=NZ((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return l=t}return l=e}if(t=l,$Z(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,l=n)}var i,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var l=OZ(e,i[0],i[1]);return IZ((function(){a.hasValue=!0,a.value=l}),[l]),jZ(l),l},fZ.exports=pZ;const PZ=o(fZ.exports);var TZ={BASE_URL:"/dev",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const FZ=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{"production"!==(TZ?"production":void 0)&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},{useDebugValue:RZ}=q,{useSyncExternalStoreWithSelector:AZ}=PZ,MZ=e=>e;const LZ=(e,t)=>{const n=(e=>e?FZ(e):FZ)(e),r=(e,r=t)=>function(e,t=MZ,n){const r=AZ(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return RZ(r),r}(n,e,r);return Object.assign(r,n),r};var zZ={exports:{}};var BZ={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},HZ={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\i\\AppData\\Roaming",ChocolateyInstall:"C:\\ProgramData\\chocolatey",ChocolateyLastPathUpdate:'"133236781557883687"',CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"CANISMINOR-PRO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",CONDA_PROMPT_MODIFIER:"False",CUDA_PATH:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",CUDA_PATH_V11_8:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8",CUDA_PATH_V12_1:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",HOME:"C:\\Users\\i",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\i",IDEA_INITIAL_DIRECTORY:"C:\\WINDOWS\\system32",INIT_CWD:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",INTEL_DEV_REDIST:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",LOCALAPPDATA:"C:\\Users\\i\\AppData\\Local",LOGONSERVER:"\\\\CANISMINOR-PRO",MIC_LD_LIBRARY_PATH:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",NDI_RUNTIME_DIR_V2:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V3:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V4:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V5:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_PATH:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules\\vite\\bin\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules\\vite\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\bin\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\node_modules",npm_command:"run-script",npm_config_frozen_lockfile:"",npm_config_lockfile:"",npm_config_node_gyp:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_registry:"https://registry.npmmirror.com",npm_config_resolution_mode:"highest",npm_config_user_agent:"pnpm/9.0.6 npm/? node/v20.10.0 win32 x64",npm_execpath:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build",npm_lifecycle_script:"vite build",npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_author:"LobeHub <i@lobehub.com>",npm_package_bugs_url:"https://github.com/lobehub/sd-webui-lobe-theme/issues/new",npm_package_dependencies_ahooks:"^3.7.11",npm_package_dependencies_antd:"5.17.0",npm_package_dependencies_antd_style:"^3.6.2",npm_package_dependencies_consola:"^3.2.3",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_i18next:"^23.11.4",npm_package_dependencies_i18next_http_backend:"^2.5.1",npm_package_dependencies_lodash_es:"^4.17.21",npm_package_dependencies_lucide_react:"latest",npm_package_dependencies_lucide_static:"latest",npm_package_dependencies_modern_screenshot:"^4.4.39",npm_package_dependencies_polished:"^4.3.1",npm_package_dependencies_react:"^18.3.1",npm_package_dependencies_react_dnd:"^16.0.1",npm_package_dependencies_react_dnd_html5_backend:"^16.0.1",npm_package_dependencies_react_dom:"^18.3.1",npm_package_dependencies_react_helmet:"^6.1.0",npm_package_dependencies_react_i18next:"^13.5.0",npm_package_dependencies_react_layout_kit:"^1.9.0",npm_package_dependencies_react_rnd:"^10.4.10",npm_package_dependencies_react_tag_input:"^6.9.0",npm_package_dependencies_semver:"^7.6.2",npm_package_dependencies_shikiji:"^0.9.19",npm_package_dependencies_swr:"^2.2.5",npm_package_dependencies_url_join:"^5.0.0",npm_package_dependencies_zustand:"^4.5.2",npm_package_dependencies_zustand_utils:"^1.3.2",npm_package_dependencies__bluelovers_auto1111_pnginfo:"^2.0.2",npm_package_dependencies__lobehub_ui:"^1.138.24",npm_package_dependencies__rollup_rollup_win32_x64_msvc:"^4.17.2",npm_package_description:"LobeThem: The Modern Theme for Stable Diffusion WebUI, Exquisite interface design, Highly customizable UI, and Efficiency boosting features.",npm_package_devDependencies_commitlint:"^18.6.1",npm_package_devDependencies_dotenv:"^16.4.5",npm_package_devDependencies_eslint:"^8.57.0",npm_package_devDependencies_fast_deep_equal:"^3.1.3",npm_package_devDependencies_husky:"^8.0.3",npm_package_devDependencies_jsdom:"^23.2.0",npm_package_devDependencies_lint_staged:"^15.2.2",npm_package_devDependencies_prettier:"^3.2.5",npm_package_devDependencies_query_string:"^8.2.0",npm_package_devDependencies_remark:"^14.0.3",npm_package_devDependencies_remark_cli:"^11.0.0",npm_package_devDependencies_semantic_release:"^21.1.2",npm_package_devDependencies_stylelint:"^15.11.0",npm_package_devDependencies_terser:"^5.31.0",npm_package_devDependencies_typescript:"^5.4.5",npm_package_devDependencies_vite:"^5.2.11",npm_package_devDependencies_vitest:"~1.2.2",npm_package_devDependencies__commitlint_cli:"^18.6.1",npm_package_devDependencies__lobehub_lint:"^1.23.4",npm_package_devDependencies__testing_library_jest_dom:"^6.4.5",npm_package_devDependencies__testing_library_react:"^14.3.1",npm_package_devDependencies__types_lodash_es:"^4.17.12",npm_package_devDependencies__types_node:"^20.12.12",npm_package_devDependencies__types_react:"^18.3.2",npm_package_devDependencies__types_react_dom:"^18.3.0",npm_package_devDependencies__types_react_helmet:"^6.1.11",npm_package_devDependencies__types_react_tag_input:"^6.6.6",npm_package_devDependencies__types_semver:"^7.5.8",npm_package_devDependencies__vitejs_plugin_react_swc:"^3.6.0",npm_package_devDependencies__vitest_coverage_v8:"^1.6.0",npm_package_files_0:"javascript",npm_package_homepage:"https://github.com/lobehub/sd-webui-lobe-theme",npm_package_keywords_0:"lobehub",npm_package_keywords_1:"stable-diffusion-webui",npm_package_keywords_2:"sd-webui-kitchen-theme",npm_package_keywords_3:"kitchen-theme",npm_package_keywords_4:"extensions",npm_package_license:"AGPL3",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_lint_staged____js_jsx__1:"stylelint --fix",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_main:"javascript/main.js",npm_package_name:"sd-webui-lobe-theme",npm_package_private:"true",npm_package_publishConfig_access:"public",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_repository_type:"git",npm_package_repository_url:"https://github.com/lobehub/sd-webui-lobe-theme.git",npm_package_scripts_build:"vite build",npm_package_scripts_ci:"npm run lint && npm run type-check",npm_package_scripts_dev:"vite",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",npm_package_scripts_i18n:"lobe-i18n",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_lint_md:"remark . --quiet --output",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',npm_package_scripts_prepare:"husky install",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_scripts_release:"semantic-release",npm_package_scripts_start:"npm run dev",npm_package_scripts_test:"vitest --passWithNoTests",npm_package_scripts_test_coverage:"vitest run --coverage --passWithNoTests",npm_package_scripts_test_update:"vitest -u",npm_package_scripts_type_check:"tsc --noEmit",npm_package_sideEffects:"false",npm_package_version:"3.4.10",NUMBER_OF_PROCESSORS:"32",NVAFX_SDK_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Audio Effects SDK",NVTOOLSEXT_PATH:"C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\",NVVFX_MODEL_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Video Effects\\models",OneDrive:"C:\\Users\\i\\OneDrive",OneDriveConsumer:"C:\\Users\\i\\OneDrive",OS:"Windows_NT",Path:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\dist\\node-gyp-bin;C:\\Users\\i\\AppData\\Local\\oh-my-posh;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\cudnn\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\cudnn\\bin;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.3.0\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\starship\\bin\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\i\\AppData\\Local\\pnpm;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\;c:\\users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\jetbrains\\toolbox\\scripts;c:\\users\\i\\appdata\\local\\programs\\oh-my-posh\\bin;C:\\Users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\microsoft\\winget\\links;C:\\Users\\i\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\i\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\i\\AppData\\Roaming\\npm;C:\\Users\\i\\.bun\\bin;C:\\Users\\i\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i\\.dotnet\\tools;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\i\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",POSH_AZURE_ENABLED:"False",POSH_CURSOR_COLUMN:"1",POSH_CURSOR_LINE:"6",POSH_GIT_ENABLED:"True",POSH_INSTALLER:"winget",POSH_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh",POSH_PID:"29160",POSH_SHELL_VERSION:"7.4.2",POSH_THEME:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes\\mytheme.omp.json",POSH_THEMES_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes",POWERLINE_COMMAND:"oh-my-posh",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Pro",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 183 Stepping 1, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"b701",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"D:\\本地资源库\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\i\\AppData\\Local\\Temp",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"4fc91318-ffb6-4789-beb0-f455f7999bd7",TMP:"C:\\Users\\i\\AppData\\Local\\Temp",USERDOMAIN:"CANISMINOR-PRO",USERDOMAIN_ROAMINGPROFILE:"CANISMINOR-PRO",USERNAME:"i",USERPROFILE:"C:\\Users\\i",windir:"C:\\WINDOWS",__COMPAT_LAYER:"RunAsAdmin"};var WZ="object"==typeof process&&HZ&&HZ.NODE_DEBUG&&/\bsemver\b/i.test(HZ.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=BZ,i=WZ,a=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=u++;i(e,o,t),c[e]=o,s[o]=t,a[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${s[c.NUMERICIDENTIFIER]}|${s[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NUMERICIDENTIFIERLOOSE]}|${s[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),p("FULL",`^${s[c.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),p("LOOSE",`^${s[c.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),p("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",s[c.COERCE],!0),p("COERCERTLFULL",s[c.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(zZ,zZ.exports);var UZ=zZ.exports;const qZ=Object.freeze({loose:!0}),VZ=Object.freeze({});var GZ=e=>e?"object"!=typeof e?qZ:e:VZ;const XZ=/^[0-9]+$/,KZ=(e,t)=>{const n=XZ.test(e),r=XZ.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var YZ={compareIdentifiers:KZ,rcompareIdentifiers:(e,t)=>KZ(t,e)};const QZ=WZ,{MAX_LENGTH:JZ,MAX_SAFE_INTEGER:ZZ}=BZ,{safeRe:e0,t:t0}=UZ,n0=GZ,{compareIdentifiers:r0}=YZ;var o0=class e{constructor(t,n){if(n=n0(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>JZ)throw new TypeError(`version is longer than ${JZ} characters`);QZ("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?e0[t0.LOOSE]:e0[t0.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>ZZ||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ZZ||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ZZ||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<ZZ)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(QZ("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),r0(this.major,t.major)||r0(this.minor,t.minor)||r0(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(QZ("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return r0(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(QZ("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return r0(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===r0(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const i0=o0;var a0=(e,t,n=!1)=>{if(e instanceof i0)return e;try{return new i0(e,t)}catch(r){if(!n)return null;throw r}};const l0=a0;var s0=(e,t)=>{const n=l0(e,t);return n?n.version:null};const c0=a0;var u0=(e,t)=>{const n=c0(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const d0=o0;var f0=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new d0(e instanceof d0?e.version:e,n).inc(t,r,o).version}catch(i){return null}};const p0=a0;var h0=(e,t)=>{const n=p0(e,null,!0),r=p0(t,null,!0),o=n.compare(r);if(0===o)return null;const i=o>0,a=i?n:r,l=i?r:n,s=!!a.prerelease.length;if(!!l.prerelease.length&&!s)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=s?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const g0=o0;var m0=(e,t)=>new g0(e,t).major;const b0=o0;var v0=(e,t)=>new b0(e,t).minor;const y0=o0;var w0=(e,t)=>new y0(e,t).patch;const x0=a0;var k0=(e,t)=>{const n=x0(e,t);return n&&n.prerelease.length?n.prerelease:null};const S0=o0;var C0=(e,t,n)=>new S0(e,n).compare(new S0(t,n));const E0=C0;var D0=(e,t,n)=>E0(t,e,n);const $0=C0;var O0=(e,t)=>$0(e,t,!0);const _0=o0;var I0=(e,t,n)=>{const r=new _0(e,n),o=new _0(t,n);return r.compare(o)||r.compareBuild(o)};const N0=I0;var j0=(e,t)=>e.sort(((e,n)=>N0(e,n,t)));const P0=I0;var T0=(e,t)=>e.sort(((e,n)=>P0(n,e,t)));const F0=C0;var R0=(e,t,n)=>F0(e,t,n)>0;const A0=C0;var M0=(e,t,n)=>A0(e,t,n)<0;const L0=C0;var z0=(e,t,n)=>0===L0(e,t,n);const B0=C0;var H0=(e,t,n)=>0!==B0(e,t,n);const W0=C0;var U0=(e,t,n)=>W0(e,t,n)>=0;const q0=C0;var V0=(e,t,n)=>q0(e,t,n)<=0;const G0=z0,X0=H0,K0=R0,Y0=U0,Q0=M0,J0=V0;var Z0=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return G0(e,n,r);case"!=":return X0(e,n,r);case">":return K0(e,n,r);case">=":return Y0(e,n,r);case"<":return Q0(e,n,r);case"<=":return J0(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const e1=o0,t1=a0,{safeRe:n1,t:r1}=UZ;var o1=(e,t)=>{if(e instanceof e1)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?n1[r1.COERCERTLFULL]:n1[r1.COERCERTL];let o;for(;(o=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&o.index+o[0].length===n.index+n[0].length||(n=o),r.lastIndex=o.index+o[1].length+o[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?n1[r1.COERCEFULL]:n1[r1.COERCE]);if(null===n)return null;const r=n[2],o=n[3]||"0",i=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",l=t.includePrerelease&&n[6]?`+${n[6]}`:"";return t1(`${r}.${o}.${i}${a}${l}`,t)};var i1,a1,l1,s1,c1=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};function u1(){if(a1)return i1;a1=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&h(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&f))+":"+e,i=t.get(n);if(i)return i;const h=this.options.loose,g=h?a[l.HYPHENRANGELOOSE]:a[l.HYPHENRANGE];e=e.replace(g,D(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[l.COMPARATORTRIM],s),o("comparator trim",e),e=e.replace(a[l.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[l.CARETTRIM],u),o("caret trim",e);let b=e.split(" ").map((e=>m(e,this.options))).join(" ").split(/\s+/).map((e=>E(e,this.options)));h&&(b=b.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[l.COMPARATORLOOSE]))))),o("range list",b);const v=new Map,y=b.map((e=>new r(e,this.options)));for(const t of y){if(p(t))return[t];v.set(t.value,t)}v.size>1&&v.has("")&&v.delete("");const w=[...v.values()];return t.set(n,w),w}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(t){return!1}for(let n=0;n<this.set.length;n++)if($(this.set[n],e,this.options))return!0;return!1}}i1=e;const t=new c1,n=GZ,r=d1(),o=WZ,i=o0,{safeRe:a,t:l,comparatorTrimReplace:s,tildeTrimReplace:c,caretTrimReplace:u}=UZ,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:f}=BZ,p=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},m=(e,t)=>(o("comp",e,t),e=w(e,t),o("caret",e),e=v(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?a[l.TILDELOOSE]:a[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let l;return o("tilde",e,t,n,r,i,a),b(n)?l="":b(r)?l=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?l=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),l=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):l=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",l),l}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{o("caret",e,t);const n=t.loose?a[l.CARETLOOSE]:a[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,l)=>{let s;return o("caret",e,t,n,i,a,l),b(n)?s="":b(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(a)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:l?(o("replaceCaret pr",l),s="0"===n?"0"===i?`>=${n}.${i}.${a}-${l} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${l} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${l} <${+n+1}.0.0-0`):(o("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",s),s}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const n=t.loose?a[l.XRANGELOOSE]:a[l.XRANGE];return e.replace(n,((n,r,i,a,l,s)=>{o("xRange",e,n,r,i,a,l,s);const c=b(i),u=c||b(a),d=u||b(l),f=d;return"="===r&&f&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),l=0,">"===r?(r=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(s="-0"),n=`${r+i}.${a}.${l}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[l.STAR],"")),E=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),D=e=>(t,n,r,o,i,a,l,s,c,u,d,f)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${s=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${d}-${f}`:e?`<${c}.${u}.${+d+1}-0`:`<=${s}`}`.trim(),$=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return i1}function d1(){if(s1)return l1;s1=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new l(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(n){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}l1=t;const n=GZ,{safeRe:r,t:o}=UZ,i=Z0,a=WZ,l=o0,s=u1();return l1}const f1=u1();var p1=(e,t,n)=>{try{t=new f1(t,n)}catch(r){return!1}return t.test(e)};const h1=u1();var g1=(e,t)=>new h1(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const m1=o0,b1=u1();var v1=(e,t,n)=>{let r=null,o=null,i=null;try{i=new b1(t,n)}catch(a){return null}return e.forEach((e=>{i.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new m1(r,n)))})),r};const y1=o0,w1=u1();var x1=(e,t,n)=>{let r=null,o=null,i=null;try{i=new w1(t,n)}catch(a){return null}return e.forEach((e=>{i.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new y1(r,n)))})),r};const k1=o0,S1=u1(),C1=R0;var E1=(e,t)=>{e=new S1(e,t);let n=new k1("0.0.0");if(e.test(n))return n;if(n=new k1("0.0.0-0"),e.test(n))return n;n=null;for(let r=0;r<e.set.length;++r){const t=e.set[r];let o=null;t.forEach((e=>{const t=new k1(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!C1(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!C1(n,o)||(n=o)}return n&&e.test(n)?n:null};const D1=u1();var $1=(e,t)=>{try{return new D1(e,t).range||"*"}catch(n){return null}};const O1=o0,_1=d1(),{ANY:I1}=_1,N1=u1(),j1=p1,P1=R0,T1=M0,F1=V0,R1=U0;var A1=(e,t,n,r)=>{let o,i,a,l,s;switch(e=new O1(e,r),t=new N1(t,r),n){case">":o=P1,i=F1,a=T1,l=">",s=">=";break;case"<":o=T1,i=R1,a=P1,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(j1(e,t,r))return!1;for(let c=0;c<t.set.length;++c){const n=t.set[c];let u=null,d=null;if(n.forEach((e=>{e.semver===I1&&(e=new _1(">=0.0.0")),u=u||e,d=d||e,o(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===l||u.operator===s)return!1;if((!d.operator||d.operator===l)&&i(e,d.semver))return!1;if(d.operator===s&&a(e,d.semver))return!1}return!0};const M1=A1;var L1=(e,t,n)=>M1(e,t,">",n);const z1=A1;var B1=(e,t,n)=>z1(e,t,"<",n);const H1=u1();var W1=(e,t,n)=>(e=new H1(e,n),t=new H1(t,n),e.intersects(t,n));const U1=p1,q1=C0;const V1=u1(),G1=d1(),{ANY:X1}=G1,K1=p1,Y1=C0,Q1=[new G1(">=0.0.0-0")],J1=[new G1(">=0.0.0")],Z1=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===X1){if(1===t.length&&t[0].semver===X1)return!0;e=n.includePrerelease?Q1:J1}if(1===t.length&&t[0].semver===X1){if(n.includePrerelease)return!0;t=J1}const r=new Set;let o,i,a,l,s,c,u;for(const p of e)">"===p.operator||">="===p.operator?o=e2(o,p,n):"<"===p.operator||"<="===p.operator?i=t2(i,p,n):r.add(p.semver);if(r.size>1)return null;if(o&&i){if(a=Y1(o.semver,i.semver,n),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const p of r){if(o&&!K1(p,String(o),n))return null;if(i&&!K1(p,String(i),n))return null;for(const e of t)if(!K1(p,String(e),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,f=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===i.operator&&0===d.prerelease[0]&&(d=!1);for(const p of t){if(u=u||">"===p.operator||">="===p.operator,c=c||"<"===p.operator||"<="===p.operator,o)if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),">"===p.operator||">="===p.operator){if(l=e2(o,p,n),l===p&&l!==o)return!1}else if(">="===o.operator&&!K1(o.semver,String(p),n))return!1;if(i)if(d&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===d.major&&p.semver.minor===d.minor&&p.semver.patch===d.patch&&(d=!1),"<"===p.operator||"<="===p.operator){if(s=t2(i,p,n),s===p&&s!==i)return!1}else if("<="===i.operator&&!K1(i.semver,String(p),n))return!1;if(!p.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a)&&(!(i&&u&&!o&&0!==a)&&(!f&&!d))},e2=(e,t,n)=>{if(!e)return t;const r=Y1(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},t2=(e,t,n)=>{if(!e)return t;const r=Y1(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var n2=(e,t,n={})=>{if(e===t)return!0;e=new V1(e,n),t=new V1(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=Z1(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const r2=UZ,o2=BZ,i2=o0,a2=YZ,l2=(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort(((e,t)=>q1(e,t,n)));for(const u of a){U1(u,t,n)?(i=u,o||(o=u)):(i&&r.push([o,i]),i=null,o=null)}o&&r.push([o,null]);const l=[];for(const[u,d]of r)u===d?l.push(u):d||u!==a[0]?d?u===a[0]?l.push(`<=${d}`):l.push(`${u} - ${d}`):l.push(`>=${u}`):l.push("*");const s=l.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return s.length<c.length?s:t};const s2=o({parse:a0,valid:s0,clean:u0,inc:f0,diff:h0,major:m0,minor:v0,patch:w0,prerelease:k0,compare:C0,rcompare:D0,compareLoose:O0,compareBuild:I0,sort:j0,rsort:T0,gt:R0,lt:M0,eq:z0,neq:H0,gte:U0,lte:V0,cmp:Z0,coerce:o1,Comparator:d1(),Range:u1(),satisfies:p1,toComparators:g1,maxSatisfying:v1,minSatisfying:x1,minVersion:E1,validRange:$1,outside:A1,gtr:L1,ltr:B1,intersects:W1,simplifyRange:l2,subset:n2,SemVer:i2,re:r2.re,src:r2.src,tokens:r2.t,SEMVER_SPEC_VERSION:o2.SEMVER_SPEC_VERSION,RELEASE_TYPES:o2.RELEASE_TYPES,compareIdentifiers:a2.compareIdentifiers,rcompareIdentifiers:a2.rcompareIdentifiers}),c2=vQ,u2=[{label:"English",value:"en_US"},{label:"简体中文",value:"zh_CN"},{label:"繁體中文",value:"zh_HK"},{label:"日本語",value:"ja_JP"},{label:"한국어",value:"ko_KR"},{label:"Deutsch",value:"de_DE"},{label:"Español",value:"es_ES"},{label:"Français",value:"fr_FR"},{label:"Português",value:"pt_BR"},{label:"Русский",value:"ru_RU"},{label:"Turkish",value:"tr_TR"}],d2=async e=>{await fetch("/lobe/config",{body:JSON.stringify(e),headers:{"Content-Type":"application/json"},method:"POST"})},f2=async()=>{const e=await fetch("/lobe/prompt");return await e.json()},p2={confirmPageUnload:!1,enableExtraNetworkSidebar:!0,enableHighlight:!1,enableImageInfo:!0,enableSidebar:!0,enableWebFont:!0,extraNetworkCardSize:86,extraNetworkFixedMode:"fixed",extraNetworkSidebarExpand:!0,extraNetworkSidebarWidth:340,i18n:"en_US",layoutHideFooter:!1,layoutSplitPreview:!1,liteAnimation:!1,logoCustomTitle:"",logoCustomUrl:"",logoType:"lobe",neutralColor:void 0,primaryColor:void 0,promptEditor:!1,promptTextareaType:"resizable",sidebarExpand:!0,sidebarFixedMode:"fixed",sidebarWidth:280,svgIcon:!0},h2={currentTab:"tab_txt2img",latestVersion:c2,loading:!0,localeOptions:u2,setting:p2,themeMode:"dark",version:c2},g2="SD-LOBE-SETTING",m2=(e,t)=>({onInit:async()=>{e((()=>({loading:!0})),!1,"onInit");const{onLoadSetting:n,onLoadVersion:r,onLoadLatestVersion:o,onLoadLocalOptions:i}=t();await i(),await r(),await o(),await n(),e((()=>({loading:!1})),!1,"onInit")},onLoadLatestVersion:async()=>{const t=await(async()=>{const e=await fetch(`https://api.github.com/repos/${wQ.replace("https://github.com/","")}/releases/latest`),t=await e.json();return t&&t.tag_name&&s2.clean(t.tag_name)||c2})();e((()=>({latestVersion:t})),!1,"onLoadLatestVersion")},onLoadLocalOptions:async()=>{const t=await(async()=>{const e=await fetch("/lobe/locales/options"),t=await e.json();return t&&0!==(null==t?void 0:t.length)?t:u2})();e((()=>({localeOptions:t})),!1,"onLoadLocalOptions")},onLoadSetting:async()=>{let t;const n=await(async()=>{const e=await fetch("/lobe/config"),t=await e.json();if(t&&!(null==t?void 0:t.empty))return t})();if(n&&(fe.start("🤯 [setting] loaded webui setting"),t=n),!t){const e=localStorage.getItem(g2);e&&(fe.info("🤯 [setting] loaded local setting"),t=JSON.parse(e))}if(!t){const e=localStorage.getItem("SD-KITCHEN-SETTING");e&&(fe.info("🤯 [setting] loaded fallback local setting"),t=JSON.parse(e))}t||(fe.info("🤯 [setting] loaded default setting"),t=p2);const r={...p2,...t};await d2(r),e((()=>({setting:r})),!1,"onLoadSetting"),fe.success("🤯 [setting] loaded"),console.table(r)},onLoadVersion:async()=>{const t=await(async()=>{const e=await fetch("/lobe/package"),t=await e.json();return t&&!t.empty&&t.version?t.version:c2})();e((()=>({version:t})),!1,"onLoadVersion")},onSetSetting:async n=>{const r={...t().setting,...n};localStorage.setItem(g2,JSON.stringify(r)),await d2(r),e((()=>({setting:r})),!1,"onSetSetting")},onSetThemeMode:t=>{e((()=>({themeMode:t})),!1,"onSetThemeMode")},setCurrentTab:()=>{var n;const r=null==(n=get_uiCurrentTabContent())?void 0:n.id;fe.info("🤯 [tab] onChange",r),r&&r!==t().currentTab&&e({currentTab:r},!1,"setCurrentTab")}}),b2=e=>({...p2,...e.setting}),v2=e=>b2(e).i18n,y2=b2,w2=e=>e.currentTab,x2=e=>e.themeMode,k2=LZ(uZ(((...e)=>({...h2,...m2(...e)}))),(function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0})),S2=JSON.parse(localStorage.getItem(g2));vJ.use(rZ).use(VJ).init({backend:{loadPath:"/lobe/locales/{{lng}}"},debug:!1,fallbackLng:"en_US",lng:(null==S2?void 0:S2.i18n)||"en_US"});const C2={attributes:!0,characterData:!0,childList:!0,subtree:!0},E2=(e,{subSelector:t,valueProp:n="innerHTML"}={})=>{const[r,o]=U.useState("");return U.useEffect((()=>{const r=new MutationObserver((e=>{var r;for(const i of e)if("childList"===i.type||"characterData"===i.type)if(t){const e=i.target.querySelector(t);o(String(e[n]))}else o(String(null==(r=i.target)?void 0:r.innerHTML))})),i=gradioApp().querySelector(e);if(i){r.observe(i,C2);const e=t?i.querySelector(t):i;o(String(null==e?void 0:e[n]))}return()=>{r.disconnect()}}),[e,t,n]),String(r)},D2=e=>{U.useEffect((()=>{const t=gradioApp().querySelector(e);t&&(t.style.display="none")}),[])},$2=oH((({css:e,token:t,isDarkMode:n})=>{const r=n?"dark":"light",o=n?bX.lime[r][9]:bX.green[r][10];return{configTitle:e`
|
||
color: ${t.colorTextSecondary};
|
||
`,configValue:e`
|
||
color: ${t.colorInfoText};
|
||
text-align: right;
|
||
word-break: break-word;
|
||
`,container:e`
|
||
padding: 16px 10px 16px 24px;
|
||
|
||
font-family: ${t.fontFamilyCode};
|
||
font-size: 13px;
|
||
|
||
background: ${t.colorFillTertiary};
|
||
border-radius: ${t.borderRadius}px;
|
||
`,highlight:e`
|
||
pre {
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
font-size: 13px !important;
|
||
line-height: 1.5 !important;
|
||
word-wrap: break-word !important;
|
||
white-space: pre-wrap !important;
|
||
vertical-align: bottom !important;
|
||
}
|
||
`,negative:e`
|
||
span[style='color:${o.toUpperCase()}'] {
|
||
color: ${t.colorErrorTextHover} !important;
|
||
}
|
||
`}}));var O2,_2,I2,N2;function j2(e,t){const n=[],r=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 o=r.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=r.next()}let t=a();if(n.push({matcher:t,priority:e}),","!==o)break;o=r.next()}return n;function i(){if("-"===o){o=r.next();const e=i();return t=>!!e&&!e(t)}if("("===o){o=r.next();const e=function(){const e=[];let t=a();for(;t&&(e.push(t),"|"===o||","===o);){do{o=r.next()}while("|"===o||","===o);t=a()}return t=>e.some((e=>e(t)))}();return")"===o&&(o=r.next()),e}if(P2(o)){const e=[];do{e.push(o),o=r.next()}while(P2(o));return n=>t(e,n)}return null}function a(){const e=[];let t=i();for(;t;)e.push(t),t=i();return t=>e.every((e=>e(t)))}}function P2(e){return!!e&&!!e.match(/[\w\.:]+/)}function T2(e){"function"==typeof e.dispose&&e.dispose()}function F2(e){return Array.isArray(e)?function(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=F2(e[n]);return t}(e):"object"==typeof e?function(e){let t={};for(let n in e)t[n]=F2(e[n]);return t}(e):e}function R2(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e}function A2(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?A2(e.substring(0,e.length-1)):e.substr(1+~t)}(_2=O2||(O2={}))[_2.NotSet=-1]="NotSet",_2[_2.None=0]="None",_2[_2.Italic=1]="Italic",_2[_2.Bold=2]="Bold",_2[_2.Underline=4]="Underline",(N2=I2||(I2={})).toBinaryStr=function(e){return e.toString(2).padStart(32,"0")},N2.print=function(e){const t=N2.getLanguageId(e),n=N2.getTokenType(e),r=N2.getFontStyle(e),o=N2.getForeground(e),i=N2.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:r,foreground:o,background:i})},N2.getLanguageId=function(e){return(255&e)>>>0},N2.getTokenType=function(e){return(768&e)>>>8},N2.containsBalancedBrackets=function(e){return!!(1024&e)},N2.getFontStyle=function(e){return(30720&e)>>>11},N2.getForeground=function(e){return(16744448&e)>>>15},N2.getBackground=function(e){return(4278190080&e)>>>24},N2.set=function(e,t,n,r,o,i,a){let l=N2.getLanguageId(e),s=N2.getTokenType(e),c=N2.containsBalancedBrackets(e)?1:0,u=N2.getFontStyle(e),d=N2.getForeground(e),f=N2.getBackground(e);return 0!==t&&(l=t),8!==n&&(s=n),null!==r&&(c=r?1:0),-1!==o&&(u=o),0!==i&&(d=i),0!==a&&(f=a),(l|s<<8|c<<10|u<<11|d<<15|f<<24)>>>0};let M2=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class L2{static hasCaptures(e){return null!==e&&(M2.lastIndex=0,M2.test(e))}static replaceCaptures(e,t,n){return e.replace(M2,((e,r,o,i)=>{let a=n[parseInt(r||o,10)];if(!a)return e;{let e=t.substring(a.start,a.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}}function z2(e,t){return e<t?-1:e>t?1:0}function B2(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=z2(e[r],t[r]);if(0!==n)return n}return 0}return n-r}function H2(e){return!!/^#[0-9a-f]{6}$/i.test(e)||(!!/^#[0-9a-f]{8}$/i.test(e)||(!!/^#[0-9a-f]{3}$/i.test(e)||!!/^#[0-9a-f]{4}$/i.test(e)))}function W2(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class U2{constructor(e){t(this,"fn"),t(this,"cache",new Map),this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}}class q2{constructor(e){t(this,"scopeName"),this.scopeName=e}toKey(){return this.scopeName}}class V2{constructor(e,n){t(this,"scopeName"),t(this,"ruleName"),this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}}class G2{constructor(){t(this,"_references",[]),t(this,"_seenReferenceKeys",new Set),t(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))}}class X2{constructor(e,n){t(this,"repo"),t(this,"initialScopeName"),t(this,"seenFullScopeRequests",new Set),t(this,"seenPartialScopeRequests",new Set),t(this,"Q"),this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new q2(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new G2;for(const n of e)K2(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof q2){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)}}}function K2(e,t,n,r){const o=n.lookup(e.scopeName);if(!o){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const i=n.lookup(t);e instanceof q2?Q2({baseGrammar:i,selfGrammar:o},r):Y2(e.ruleName,{baseGrammar:i,selfGrammar:o,repository:o.repository},r);const a=n.injections(e.scopeName);if(a)for(const l of a)r.add(new q2(l))}function Y2(e,t,n){if(t.repository&&t.repository[e]){J2([t.repository[e]],t,n)}}function Q2(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&J2(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&J2(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function J2(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?R2({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&J2(r.patterns,{...t,repository:e},n);const o=r.include;if(!o)continue;const i=o5(o);switch(i.kind){case 0:Q2({...t,selfGrammar:t.baseGrammar},n);break;case 1:Q2(t,n);break;case 2:Y2(i.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const o={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===i.kind?Y2(i.ruleName,o,n):Q2(o,n)}else 4===i.kind?n.add(new V2(i.scopeName,i.ruleName)):n.add(new q2(i.scopeName))}}}class Z2{constructor(){t(this,"kind",0)}}class e5{constructor(){t(this,"kind",1)}}class t5{constructor(e){t(this,"ruleName"),t(this,"kind",2),this.ruleName=e}}class n5{constructor(e){t(this,"scopeName"),t(this,"kind",3),this.scopeName=e}}class r5{constructor(e,n){t(this,"scopeName"),t(this,"ruleName"),t(this,"kind",4),this.scopeName=e,this.ruleName=n}}function o5(e){if("$base"===e)return new Z2;if("$self"===e)return new e5;const t=e.indexOf("#");if(-1===t)return new n5(e);if(0===t)return new t5(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new r5(n,r)}}const i5=/\\(\d+)/,a5=/\\(\d+)/g,l5=-1,s5=-2;class c5{constructor(e,n,r,o){t(this,"$location"),t(this,"id"),t(this,"_nameIsCapturing"),t(this,"_name"),t(this,"_contentNameIsCapturing"),t(this,"_contentName"),this.$location=e,this.id=n,this._name=r||null,this._nameIsCapturing=L2.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=L2.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${A2(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?L2.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?L2.replaceCaptures(this._contentName,e,t):this._contentName}}class u5 extends c5{constructor(e,n,r,o,i){super(e,n,r,o),t(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}}class d5 extends c5{constructor(e,n,r,o,i){super(e,n,r,null),t(this,"_match"),t(this,"captures"),t(this,"_cachedCompiledPatterns"),this._match=new m5(o,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new b5,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class f5 extends c5{constructor(e,n,r,o,i){super(e,n,r,o),t(this,"hasMissingPatterns"),t(this,"patterns"),t(this,"_cachedCompiledPatterns"),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns){e.getRule(n).collectPatterns(e,t)}}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new b5,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class p5 extends c5{constructor(e,n,r,o,i,a,l,s,c,u){super(e,n,r,o),t(this,"_begin"),t(this,"beginCaptures"),t(this,"_end"),t(this,"endHasBackReferences"),t(this,"endCaptures"),t(this,"applyEndPatternLast"),t(this,"hasMissingPatterns"),t(this,"patterns"),t(this,"_cachedCompiledPatterns"),this._begin=new m5(i,this.id),this.beginCaptures=a,this._end=new m5(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new b5;for(const t of this.patterns){e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}class h5 extends c5{constructor(e,n,r,o,i,a,l,s,c){super(e,n,r,o),t(this,"_begin"),t(this,"beginCaptures"),t(this,"whileCaptures"),t(this,"_while"),t(this,"whileHasBackReferences"),t(this,"hasMissingPatterns"),t(this,"patterns"),t(this,"_cachedCompiledPatterns"),t(this,"_cachedCompiledWhilePatterns"),this._begin=new m5(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new m5(l,s5),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new b5;for(const t of this.patterns){e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new b5,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}}class g5{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new u5(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((r=>{if(e.id=r,e.match)return new d5(e.$vscodeTextmateLocation,e.id,e.name,e.match,g5._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=R2({},n,e.repository));let r=e.patterns;return void 0===r&&e.include&&(r=[{include:e.include}]),new f5(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,g5._compilePatterns(r,t,n))}return e.while?new h5(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,g5._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,g5._compileCaptures(e.whileCaptures||e.captures,t,n),g5._compilePatterns(e.patterns,t,n)):new p5(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,g5._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,g5._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,g5._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let o=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>o&&(o=e)}for(let e=0;e<=o;e++)r[e]=null;for(const i in e){if("$vscodeTextmateLocation"===i)continue;const o=parseInt(i,10);let a=0;e[i].patterns&&(a=g5.getCompiledRuleId(e[i],t,n)),r[o]=g5.createCaptureRule(t,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,a)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let o=0,i=e.length;o<i;o++){const i=e[o];let a=-1;if(i.include){const e=o5(i.include);switch(e.kind){case 0:case 1:a=g5.getCompiledRuleId(n[i.include],t,n);break;case 2:let r=n[e.ruleName];r&&(a=g5.getCompiledRuleId(r,t,n));break;case 3:case 4:const o=e.scopeName,l=4===e.kind?e.ruleName:null,s=t.getExternalGrammar(o,n);if(s)if(l){let e=s.repository[l];e&&(a=g5.getCompiledRuleId(e,t,s.repository))}else a=g5.getCompiledRuleId(s.repository.$self,t,s.repository)}}else a=g5.getCompiledRuleId(i,t,n);if(-1!==a){const e=t.getRule(a);let n=!1;if((e instanceof f5||e instanceof p5||e instanceof h5)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;r.push(a)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}}class m5{constructor(e,n){if(t(this,"source"),t(this,"ruleId"),t(this,"hasAnchor"),t(this,"hasBackReferences"),t(this,"_anchorCache"),e){const t=e.length;let n=0,r=[],o=!1;for(let i=0;i<t;i++){if("\\"===e.charAt(i)&&i+1<t){const t=e.charAt(i+1);"z"===t?(r.push(e.substring(n,i)),r.push("$(?!\\n)(?<!\\n)"),n=i+2):"A"!==t&&"G"!==t||(o=!0),i++}}this.hasAnchor=o,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,this.hasBackReferences=i5.test(this.source)}clone(){return new m5(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return a5.lastIndex=0,this.source.replace(a5,((e,t)=>W2(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],i=[],a=[],l=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),o[e]=n,i[e]=n,a[e]=n,l[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(o[e+1]="",i[e+1]="",a[e+1]="A",l[e+1]="A"):"G"===r?(o[e+1]="",i[e+1]="G",a[e+1]="",l[e+1]="G"):(o[e+1]=r,i[e+1]=r,a[e+1]=r,l[e+1]=r),e++);return{A0_G0:o.join(""),A0_G1:i.join(""),A1_G0:a.join(""),A1_G1:l.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}class b5{constructor(){t(this,"_items"),t(this,"_hasAnchors"),t(this,"_cached"),t(this,"_anchorCache"),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new v5(e,t,this._items.map((e=>e.ruleId)))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map((e=>e.resolveAnchors(t,n)));return new v5(e,r,this._items.map((e=>e.ruleId)))}}class v5{constructor(e,n,r){t(this,"regExps"),t(this,"rules"),t(this,"scanner"),this.regExps=n,this.rules=r,this.scanner=e.createOnigScanner(n)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}class y5{constructor(e,n,r){t(this,"_colorMap"),t(this,"_defaults"),t(this,"_root"),t(this,"_cachedMatchRoot",new U2((e=>this._root.match(e)))),this._colorMap=e,this._defaults=n,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,i=t.length;o<i;o++){let e,i=t[o];if(!i.settings)continue;if("string"==typeof i.scope){let t=i.scope;t=t.replace(/^[,]+/,""),t=t.replace(/[,]+$/,""),e=t.split(",")}else e=Array.isArray(i.scope)?i.scope:[""];let a=-1;if("string"==typeof i.settings.fontStyle){a=0;let e=i.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++){switch(e[t]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4;break;case"strikethrough":a|=8}}}let l=null;"string"==typeof i.settings.foreground&&H2(i.settings.foreground)&&(l=i.settings.foreground);let s=null;"string"==typeof i.settings.background&&H2(i.settings.background)&&(s=i.settings.background);for(let t=0,c=e.length;t<c;t++){let i=e[t].trim().split(" "),c=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new S5(c,u,o,a,l,s)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=z2(e.scope,t.scope);return 0!==n?n:(n=B2(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,r="#000000",o="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(o=t.background)}let i=new C5(t),a=new k5(n,i.getId(r),i.getId(o)),l=new D5(new E5(0,null,-1,0,0),[]);for(let s=0,c=e.length;s<c;s++){let t=e[s];l.insert(0,t.scope,t.parentScopes,t.fontStyle,i.getId(t.foreground),i.getId(t.background))}return new y5(i,a,l)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,r=t[n];for(;e;){if(x5(e.scopeName,r)){if(n++,n===t.length)return!0;r=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new k5(n.fontStyle,n.foreground,n.background):null}}class w5{constructor(e,n){t(this,"parent"),t(this,"scopeName"),this.parent=e,this.scopeName=n}static push(e,t){for(const n of t)e=new w5(e,n);return e}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new w5(t,e[n]);return t}push(e){return new w5(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}}function x5(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}class k5{constructor(e,n,r){t(this,"fontStyle"),t(this,"foregroundId"),t(this,"backgroundId"),this.fontStyle=e,this.foregroundId=n,this.backgroundId=r}}class S5{constructor(e,n,r,o,i,a){t(this,"scope"),t(this,"parentScopes"),t(this,"index"),t(this,"fontStyle"),t(this,"foreground"),t(this,"background"),this.scope=e,this.parentScopes=n,this.index=r,this.fontStyle=o,this.foreground=i,this.background=a}}class C5{constructor(e){if(t(this,"_isFrozen"),t(this,"_lastColorId"),t(this,"_id2color"),t(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}class E5{constructor(e,n,r,o,i){t(this,"scopeDepth"),t(this,"parentScopes"),t(this,"fontStyle"),t(this,"foreground"),t(this,"background"),this.scopeDepth=e,this.parentScopes=n,this.fontStyle=r,this.foreground=o,this.background=i}clone(){return new E5(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}class D5{constructor(e,n=[],r={}){t(this,"_mainRule"),t(this,"_children"),t(this,"_rulesWithParentScopes"),this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let o=null===n?0:n.length,i=null===r?0:r.length;if(o===i)for(let e=0;e<o;e++){const t=n[e].length,o=r[e].length;if(t!==o)return o-t}return i-o}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return D5._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,r=e.indexOf(".");return-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):D5._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,r,o,i){if(""===t)return void this._doInsertHere(e,n,r,o,i);let a,l,s,c=t.indexOf(".");-1===c?(a=t,l=""):(a=t.substring(0,c),l=t.substring(c+1)),this._children.hasOwnProperty(a)?s=this._children[a]:(s=new D5(this._mainRule.clone(),E5.cloneArr(this._rulesWithParentScopes)),this._children[a]=s),s.insert(e+1,l,n,r,o,i)}_doInsertHere(e,t,n,r,o){if(null!==t){for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let a=this._rulesWithParentScopes[i];if(0===B2(a.parentScopes,t))return void a.acceptOverwrite(e,n,r,o)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===o&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new E5(e,t,n,r,o))}else this._mainRule.acceptOverwrite(e,n,r,o)}}class $5{constructor(e,n){t(this,"languageId"),t(this,"tokenType"),this.languageId=e,this.tokenType=n}}const O5=class e{constructor(e,n){t(this,"_defaultAttributes"),t(this,"_embeddedLanguagesMatcher"),t(this,"_getBasicScopeAttributes",new U2((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new $5(t,n)}))),this._defaultAttributes=new $5(e,8),this._embeddedLanguagesMatcher=new I5(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){const n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[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(O5,"_NULL_SCOPE_METADATA",new $5(0,0)),t(O5,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);let _5=O5;class I5{constructor(e){if(t(this,"values"),t(this,"scopesRegExp"),0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>W2(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}}class N5{constructor(e,n){t(this,"stack"),t(this,"stoppedEarly"),this.stack=e,this.stoppedEarly=n}}function j5(e,t,n,r,o,i,a,l){const s=t.content.length;let c=!1,u=-1;if(a){const a=function(e,t,n,r,o,i){let a=o.beginRuleCapturedEOL?0:-1;const l=[];for(let s=o;s;s=s.pop()){const t=s.getRule(e);t instanceof h5&&l.push({rule:t,stack:s})}for(let s=l.pop();s;s=l.pop()){const{ruleScanner:l,findOptions:c}=T5(s.rule,e,s.stack.endRule,n,r===a),u=l.findNextMatchSync(t,r,c);if(!u){o=s.stack.pop();break}if(u.ruleId!==s5){o=s.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(i.produce(s.stack,u.captureIndices[0].start),F5(e,t,n,s.stack,i,s.rule.whileCaptures,u.captureIndices),i.produce(s.stack,u.captureIndices[0].end),a=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:a,isFirstLine:n}}(e,t,n,r,o,i);o=a.stack,r=a.linePos,n=a.isFirstLine,u=a.anchorPosition}const d=Date.now();for(;!c;){if(0!==l){if(Date.now()-d>l)return new N5(o,!0)}f()}return new N5(o,!1);function f(){const a=function(e,t,n,r,o,i){const a=function(e,t,n,r,o,i){const a=o.getRule(e),{ruleScanner:l,findOptions:s}=P5(a,e,o.endRule,n,r===i),c=l.findNextMatchSync(t,r,s);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null}(e,t,n,r,o,i),l=e.getInjections();if(0===l.length)return a;const s=function(e,t,n,r,o,i,a){let l,s=Number.MAX_VALUE,c=null,u=0;const d=i.contentNameScopesList.getScopeNames();for(let f=0,p=e.length;f<p;f++){const i=e[f];if(!i.matcher(d))continue;const p=t.getRule(i.ruleId),{ruleScanner:h,findOptions:g}=P5(p,t,null,r,o===a),m=h.findNextMatchSync(n,o,g);if(!m)continue;const b=m.captureIndices[0].start;if(!(b>=s)&&(s=b,c=m.captureIndices,l=m.ruleId,u=i.priority,s===o))break}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null}(l,e,t,n,r,o,i);if(!s)return a;if(!a)return s;const c=a.captureIndices[0].start,u=s.captureIndices[0].start;if(u<c||s.priorityMatch&&u===c)return s;return a}(e,t,n,r,o,u);if(!a)return i.produce(o,s),void(c=!0);const l=a.captureIndices,d=a.matchedRuleId,f=!!(l&&l.length>0)&&l[0].end>r;if(d===l5){const a=o.getRule(e);i.produce(o,l[0].start),o=o.withContentNameScopesList(o.nameScopesList),F5(e,t,n,o,i,a.endCaptures,l),i.produce(o,l[0].end);const d=o;if(o=o.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r)return o=d,i.produce(o,s),void(c=!0)}else{const a=e.getRule(d);i.produce(o,l[0].start);const p=o,h=a.getName(t.content,l),g=o.contentNameScopesList.pushAttributed(h,e);if(o=o.push(d,r,u,l[0].end===s,null,g,g),a instanceof p5){const r=a;F5(e,t,n,o,i,r.beginCaptures,l),i.produce(o,l[0].end),u=l[0].end;const d=r.getContentName(t.content,l),h=g.pushAttributed(d,e);if(o=o.withContentNameScopesList(h),r.endHasBackReferences&&(o=o.withEndRule(r.getEndWithResolvedBackReferences(t.content,l))),!f&&p.hasSameRuleAs(o))return o=o.pop(),i.produce(o,s),void(c=!0)}else if(a instanceof h5){const r=a;F5(e,t,n,o,i,r.beginCaptures,l),i.produce(o,l[0].end),u=l[0].end;const d=r.getContentName(t.content,l),h=g.pushAttributed(d,e);if(o=o.withContentNameScopesList(h),r.whileHasBackReferences&&(o=o.withEndRule(r.getWhileWithResolvedBackReferences(t.content,l))),!f&&p.hasSameRuleAs(o))return o=o.pop(),i.produce(o,s),void(c=!0)}else{if(F5(e,t,n,o,i,a.captures,l),i.produce(o,l[0].end),o=o.pop(),!f)return o=o.safePop(),i.produce(o,s),void(c=!0)}}l[0].end>r&&(r=l[0].end,n=!1)}}function P5(e,t,n,r,o){return{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function T5(e,t,n,r,o){return{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function F5(e,t,n,r,o,i,a){if(0===i.length)return;const l=t.content,s=Math.min(i.length,a.length),c=[],u=a[0].end;for(let d=0;d<s;d++){const t=i[d];if(null===t)continue;const s=a[d];if(0===s.length)continue;if(s.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=s.start;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?o.produceFromScopes(c[c.length-1].scopes,s.start):o.produce(r,s.start),t.retokenizeCapturedWithRuleId){const i=t.getName(l,a),c=r.contentNameScopesList.pushAttributed(i,e),u=t.getContentName(l,a),d=c.pushAttributed(u,e),f=r.push(t.retokenizeCapturedWithRuleId,s.start,-1,!1,null,c,d),p=e.createOnigString(l.substring(0,s.end));j5(e,p,n&&0===s.start,s.start,f,o,!1,0),T2(p);continue}const f=t.getName(l,a);if(null!==f){const t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);c.push(new R5(t,s.end))}}for(;c.length>0;)o.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}class R5{constructor(e,n){t(this,"scopes"),t(this,"endPos"),this.scopes=e,this.endPos=n}}function A5(e,t,n,r,o){const i=j2(t,M5),a=g5.getCompiledRuleId(n,r,o.repository);for(const l of i)e.push({debugSelector:t,matcher:l.matcher,ruleId:a,grammar:o,priority:l.priority})}function M5(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let r=n;r<t.length;r++)if(L5(t[r],e))return n=r+1,!0;return!1}))}function L5(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}class z5{constructor(e,n,r,o,i,a,l,s){if(t(this,"_rootScopeName"),t(this,"balancedBracketSelectors"),t(this,"_onigLib"),t(this,"_rootId"),t(this,"_lastRuleId"),t(this,"_ruleId2desc"),t(this,"_includedGrammars"),t(this,"_grammarRepository"),t(this,"_grammar"),t(this,"_injections"),t(this,"_basicScopeAttributesProvider"),t(this,"_tokenTypeMatchers"),this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new _5(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=B5(n,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const t of Object.keys(i)){const e=j2(t,M5);for(const n of e)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[t]})}}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=e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),t=[],n=this._rootScopeName,r=e(n);if(r){const e=r.injections;if(e)for(let n in e)A5(t,n,e[n],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach((e=>{const n=this.getExternalGrammar(e);if(n){const e=n.injectionSelector;e&&A5(t,e,n,this,n)}}))}return t.sort(((e,t)=>e.priority-t.priority)),t}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[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]=B5(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 o;if(-1===this._rootId&&(this._rootId=g5.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==U5.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=I2.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),i=this.getRule(this._rootId).getName(null,null);let a;a=i?H5.createRootAndLookUpScopeName(i,r,this):H5.createRoot("unknown",r),t=new U5(null,this._rootId,-1,-1,!1,null,a,a)}e+="\n";const i=this.createOnigString(e),a=i.content.length,l=new V5(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),s=j5(this,i,o,0,t,l,!0,r);return T2(i),{lineLength:a,lineTokens:l,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}}function B5(e,t){return(e=F2(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}class H5{constructor(e,n,r){t(this,"parent"),t(this,"scopePath"),t(this,"tokenAttributes"),this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,t){let n=e,r=(null==e?void 0:e.scopePath)??null;for(const o of t)r=w5.push(r,o.scopeNames),n=new H5(n,r,o.encodedTokenAttributes);return n}static createRoot(e,t){return new H5(null,new w5(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new w5(null,e),i=n.themeProvider.themeMatch(o),a=H5.mergeAttributes(t,r,i);return new H5(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return H5.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,o=0,i=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,i=n.backgroundId),I2.set(e,t.languageId,t.tokenType,null,r,o,i)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return H5._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const o of n)r=H5._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=H5.mergeAttributes(e.tokenAttributes,r,i);return new H5(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}}const W5=class e{constructor(e,n,r,o,i,a,l,s){t(this,"parent"),t(this,"ruleId"),t(this,"beginRuleCapturedEOL"),t(this,"endRule"),t(this,"nameScopesList"),t(this,"contentNameScopesList"),t(this,"_stackElementBrand"),t(this,"_enterPos"),t(this,"_anchorPos"),t(this,"depth"),this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=l,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=o}equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&H5.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(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,o,i,a,l){return new e(this,t,n,r,o,i,a,l)}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(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,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: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(t,n){const r=H5.fromExtension((null==t?void 0:t.nameScopesList)??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,H5.fromExtension(r,n.contentNameScopesList))}};t(W5,"NULL",new W5(null,0,0,0,!1,null,null,null));let U5=W5;class q5{constructor(e,n){t(this,"balancedBracketScopes"),t(this,"unbalancedBracketScopes"),t(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):j2(e,M5).map((e=>e.matcher)))),this.unbalancedBracketScopes=n.flatMap((e=>j2(e,M5).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 V5{constructor(e,n,r,o){t(this,"balancedBracketSelectors"),t(this,"_emitBinaryTokens"),t(this,"_lineText"),t(this,"_tokens"),t(this,"_binaryTokens"),t(this,"_lastTokenEndIndex"),t(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,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 r=(null==e?void 0:e.tokenAttributes)??0,o=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(o=!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)&&(r=I2.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}return o&&(r=I2.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r?void(this._lastTokenEndIndex=t):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),void(this._lastTokenEndIndex=t))}const r=(null==e?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&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<o;r++)n[r]=this._binaryTokens[r];return n}}class G5{constructor(e,n){t(this,"_onigLibPromise"),t(this,"_grammars",new Map),t(this,"_rawGrammars",new Map),t(this,"_injectionGrammars",new Map),t(this,"_theme"),this._onigLibPromise=n,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}async grammarForScopeName(e,t,n,r,o){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,function(e,t,n,r,o,i,a,l){return new z5(e,t,n,r,o,i,a,l)}(e,i,t,n,r,o,this,await this._onigLibPromise))}return this._grammars.get(e)}}let X5=class{constructor(e){t(this,"_options"),t(this,"_syncRegistry"),t(this,"_ensureGrammarCache"),this._options=e,this._syncRegistry=new G5(y5.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(y5.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 q5(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const i=new X2(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)}};const K5=U5.NULL,Y5=255,Q5=768,J5=1024,Z5=14336,e4=8372224,t4=4286578688,n4=0,r4=8,o4=10,i4=11,a4=15,l4=24;class s4{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t=`0${t}`;return t}static getLanguageId(e){return(e&Y5)>>>n4}static getTokenType(e){return(e&Q5)>>>r4}static getFontStyle(e){return(e&Z5)>>>i4}static getForeground(e){return(e&e4)>>>a4}static getBackground(e){return(e&t4)>>>l4}static containsBalancedBrackets(e){return!!(e&J5)}static set(e,t,n,r,o,i){let a=s4.getLanguageId(e),l=s4.getTokenType(e),s=s4.getFontStyle(e),c=s4.getForeground(e),u=s4.getBackground(e);const d=s4.containsBalancedBrackets(e)?1:0;return 0!==t&&(a=t),0!==n&&(l=8===n?0:n),r!==O2.NotSet&&(s=r),0!==o&&(c=o),0!==i&&(u=i),(a<<n4|l<<r4|s<<i4|d<<o4|c<<a4|u<<l4)>>>0}}const c4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class u4{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function d4(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new u4(n,r,t)}function f4(e){return e.toLowerCase()}u4.prototype.property={},u4.prototype.normal={},u4.prototype.space=null;class p4{constructor(e,t){this.property=e,this.attribute=t}}p4.prototype.space=null,p4.prototype.boolean=!1,p4.prototype.booleanish=!1,p4.prototype.overloadedBoolean=!1,p4.prototype.number=!1,p4.prototype.commaSeparated=!1,p4.prototype.spaceSeparated=!1,p4.prototype.commaOrSpaceSeparated=!1,p4.prototype.mustUseProperty=!1,p4.prototype.defined=!1;let h4=0;const g4=k4(),m4=k4(),b4=k4(),v4=k4(),y4=k4(),w4=k4(),x4=k4();function k4(){return 2**++h4}var S4=Object.freeze({__proto__:null,boolean:g4,booleanish:m4,commaOrSpaceSeparated:x4,commaSeparated:w4,number:v4,overloadedBoolean:b4,spaceSeparated:y4});const C4=Object.keys(S4);class E4 extends p4{constructor(e,t,n,r){let o=-1;if(super(e,t),D4(this,"space",r),"number"==typeof n)for(;++o<C4.length;){const e=C4[o];D4(this,C4[o],(n&S4[e])===S4[e])}}}function D4(e,t,n){n&&(e[t]=n)}E4.prototype.defined=!0;const $4={}.hasOwnProperty;function O4(e){const t={},n={};let r;for(r in e.properties)if($4.call(e.properties,r)){const o=e.properties[r],i=new E4(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[f4(r)]=r,n[f4(i.attribute)]=r}return new u4(t,n,e.space)}const _4=O4({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),I4=O4({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N4(e,t){return t in e?e[t]:t}function j4(e,t){return N4(e,t.toLowerCase())}const P4=O4({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:j4,properties:{xmlns:null,xmlnsXLink:null}}),T4=O4({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:m4,ariaAutoComplete:null,ariaBusy:m4,ariaChecked:m4,ariaColCount:v4,ariaColIndex:v4,ariaColSpan:v4,ariaControls:y4,ariaCurrent:null,ariaDescribedBy:y4,ariaDetails:null,ariaDisabled:m4,ariaDropEffect:y4,ariaErrorMessage:null,ariaExpanded:m4,ariaFlowTo:y4,ariaGrabbed:m4,ariaHasPopup:null,ariaHidden:m4,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:y4,ariaLevel:v4,ariaLive:null,ariaModal:m4,ariaMultiLine:m4,ariaMultiSelectable:m4,ariaOrientation:null,ariaOwns:y4,ariaPlaceholder:null,ariaPosInSet:v4,ariaPressed:m4,ariaReadOnly:m4,ariaRelevant:null,ariaRequired:m4,ariaRoleDescription:y4,ariaRowCount:v4,ariaRowIndex:v4,ariaRowSpan:v4,ariaSelected:m4,ariaSetSize:v4,ariaSort:null,ariaValueMax:v4,ariaValueMin:v4,ariaValueNow:v4,ariaValueText:null,role:null}}),F4=O4({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:j4,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w4,acceptCharset:y4,accessKey:y4,action:null,allow:null,allowFullScreen:g4,allowPaymentRequest:g4,allowUserMedia:g4,alt:null,as:null,async:g4,autoCapitalize:null,autoComplete:y4,autoFocus:g4,autoPlay:g4,capture:g4,charSet:null,checked:g4,cite:null,className:y4,cols:v4,colSpan:null,content:null,contentEditable:m4,controls:g4,controlsList:y4,coords:v4|w4,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g4,defer:g4,dir:null,dirName:null,disabled:g4,download:b4,draggable:m4,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g4,formTarget:null,headers:y4,height:v4,hidden:g4,high:v4,href:null,hrefLang:null,htmlFor:y4,httpEquiv:y4,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:g4,itemId:null,itemProp:y4,itemRef:y4,itemScope:g4,itemType:y4,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g4,low:v4,manifest:null,max:null,maxLength:v4,media:null,method:null,min:null,minLength:v4,multiple:g4,muted:g4,name:null,nonce:null,noModule:g4,noValidate:g4,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g4,optimum:v4,pattern:null,ping:y4,placeholder:null,playsInline:g4,poster:null,preload:null,readOnly:g4,referrerPolicy:null,rel:y4,required:g4,reversed:g4,rows:v4,rowSpan:v4,sandbox:y4,scope:null,scoped:g4,seamless:g4,selected:g4,shape:null,size:v4,sizes:null,slot:null,span:v4,spellCheck:m4,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v4,step:null,style:null,tabIndex:v4,target:null,title:null,translate:null,type:null,typeMustMatch:g4,useMap:null,value:m4,width:v4,wrap:null,align:null,aLink:null,archive:y4,axis:null,background:null,bgColor:null,border:v4,borderColor:null,bottomMargin:v4,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g4,declare:g4,event:null,face:null,frame:null,frameBorder:null,hSpace:v4,leftMargin:v4,link:null,longDesc:null,lowSrc:null,marginHeight:v4,marginWidth:v4,noResize:g4,noHref:g4,noShade:g4,noWrap:g4,object:null,profile:null,prompt:null,rev:null,rightMargin:v4,rules:null,scheme:null,scrolling:m4,standby:null,summary:null,text:null,topMargin:v4,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v4,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g4,disableRemotePlayback:g4,prefix:null,property:null,results:v4,security:null,unselectable:null}}),R4=O4({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N4,properties:{about:x4,accentHeight:v4,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v4,amplitude:v4,arabicForm:null,ascent:v4,attributeName:null,attributeType:null,azimuth:v4,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v4,by:null,calcMode:null,capHeight:v4,className:y4,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:v4,diffuseConstant:v4,direction:null,display:null,dur:null,divisor:v4,dominantBaseline:null,download:g4,dx:null,dy:null,edgeMode:null,editable:null,elevation:v4,enableBackground:null,end:null,event:null,exponent:v4,externalResourcesRequired:null,fill:null,fillOpacity:v4,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w4,g2:w4,glyphName:w4,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v4,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v4,horizOriginX:v4,horizOriginY:v4,id:null,ideographic:v4,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v4,k:v4,k1:v4,k2:v4,k3:v4,k4:v4,kernelMatrix:x4,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v4,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:v4,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:v4,overlineThickness:v4,paintOrder:null,panose1:null,path:null,pathLength:v4,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:y4,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v4,pointsAtY:v4,pointsAtZ:v4,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:x4,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:x4,rev:x4,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:x4,requiredFeatures:x4,requiredFonts:x4,requiredFormats:x4,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:v4,specularExponent:v4,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v4,strikethroughThickness:v4,string:null,stroke:null,strokeDashArray:x4,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v4,strokeOpacity:v4,strokeWidth:null,style:null,surfaceScale:v4,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:x4,tabIndex:v4,tableValues:null,target:null,targetX:v4,targetY:v4,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:x4,to:null,transform:null,u1:null,u2:null,underlinePosition:v4,underlineThickness:v4,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v4,values:null,vAlphabetic:v4,vMathematical:v4,vectorEffect:null,vHanging:v4,vIdeographic:v4,version:null,vertAdvY:v4,vertOriginX:v4,vertOriginY:v4,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v4,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),A4=/^data[-\w.:]+$/i,M4=/-[a-z]/g,L4=/[A-Z]/g;function z4(e){return"-"+e.toLowerCase()}function B4(e){return e.charAt(1).toUpperCase()}const H4=d4([I4,_4,P4,T4,F4],"html"),W4=d4([I4,_4,P4,T4,R4],"svg"),U4={}.hasOwnProperty;function q4(e,t){return e=e.replace(t.subset?function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,r){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const V4=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],G4={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},X4=["cent","copy","divide","gt","lt","not","para","times"],K4={}.hasOwnProperty,Y4={};let Q4;for(Q4 in G4)K4.call(G4,Q4)&&(Y4[G4[Q4]]=Q4);function J4(e,t,n){let r,o=function(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){const o=String.fromCharCode(e);if(K4.call(Y4,o)){const e=Y4[o],i="&"+e;return n&&V4.includes(e)&&!X4.includes(e)&&(!r||t&&61!==t&&/[^\da-z]/i.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const r=function(e,t,n){const r="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}return r&&(!n.useShortestReferences||r.length<o.length)?r:o}function Z4(e,t){return q4(e,Object.assign({format:J4},t))}function e3(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function t3(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function n3(e){return e.join(" ").trim()}const r3=/[ \t\n\f\r]/g;function o3(e){return"object"==typeof e?"text"===e.type&&i3(e.value):i3(e)}function i3(e){return""===e.replace(r3,"")}const a3=c3(1),l3=c3(-1),s3=[];function c3(e){return function(t,n,r){const o=t?t.children:s3;let i=(n||0)+e,a=o[i];if(!r)for(;a&&o3(a);)i+=e,a=o[i];return a}}const u3={}.hasOwnProperty;function d3(e){return function(t,n,r){return u3.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const f3=d3({body:function(e,t,n){const r=a3(n,t);return!r||"comment"!==r.type},caption:p3,colgroup:p3,dd:function(e,t,n){const r=a3(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){const r=a3(n,t);return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:p3,html:function(e,t,n){const r=a3(n,t);return!r||"comment"!==r.type},li:function(e,t,n){const r=a3(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){const r=a3(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){const r=a3(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){const r=a3(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:h3,rt:h3,tbody:function(e,t,n){const r=a3(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:g3,tfoot:function(e,t,n){return!a3(n,t)},th:g3,thead:function(e,t,n){const r=a3(n,t);return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){const r=a3(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function p3(e,t,n){const r=a3(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&o3(r.value.charAt(0)))}function h3(e,t,n){const r=a3(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function g3(e,t,n){const r=a3(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}const m3=d3({body:function(e){const t=a3(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&o3(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const r=l3(n,t),o=a3(e,-1,!0);if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&f3(r,n.children.indexOf(r),n))return!1;return Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(e){const t=e.children,n=[];let r=-1;for(;++r<t.length;){const e=t[r];if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(n.includes(e.tagName))return!1;n.push(e.tagName)}}return t.length>0},html:function(e){const t=a3(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const r=l3(n,t),o=a3(e,-1);if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&f3(r,n.children.indexOf(r),n))return!1;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const b3={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function v3(e,t,n){const r=function(e,t){const n=f4(t);let r=t,o=p4;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&A4.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(M4,B4);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!M4.test(e)){let n=e.replace(L4,z4);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=E4}return new o(r,t)}(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=e.settings.allowDangerousCharacters?0:1;let a,l=e.quote;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const s=Z4(r.attribute,Object.assign({},e.settings.characterReferences,{subset:b3.name[o][i]}));return!0===n?s:(n=Array.isArray(n)?(r.commaSeparated?t3:n3)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?s:(e.settings.preferUnquoted&&(a=Z4(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:b3.unquoted[o][i]}))),a!==n&&(e.settings.quoteSmart&&e3(n,l)>e3(n,e.alternative)&&(l=e.alternative),a=l+Z4(n,Object.assign({},e.settings.characterReferences,{subset:("'"===l?b3.single:b3.double)[o][i],attribute:!0}))+l),s+(a?"="+a:a)))}function y3(e,t,n,r){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?Z4(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]})):e.value}const w3=function(e,t){const n=t||{};function r(t,...n){let o=r.invalid;const i=r.handlers;if(t&&U4.call(t,e)){const n=String(t[e]);o=U4.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+Z4(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,(function(e){return Z4(e,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}))+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){const o=r.schema,i="svg"!==o.space&&r.settings.omitOptionalTags;let a="svg"===o.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const l=[];let s;"html"===o.space&&"svg"===e.tagName&&(r.schema=W4);const c=function(e,t){const n=[];let r,o=-1;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const o=v3(e,r,t[r]);o&&n.push(o)}for(;++o<n.length;){const t=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0;o!==n.length-1&&'"'!==t&&"'"!==t&&(n[o]+=" ")}return n.join("")}(r,e.properties),u=r.all("html"===o.space&&"template"===e.tagName?e.content:e);return r.schema=o,u&&(a=!1),!c&&i&&m3(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),a&&("svg"===o.space||r.settings.closeSelfClosing)&&(s=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===s||s&&'"'!==s&&"'"!==s)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),a||i&&f3(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:y3(e,0,n,r)},root:function(e,t,n,r){return r.all(e)},text:y3}});const x3={},k3={},S3=[];function C3(e,t,n){return w3(e,t,n,this)}function E3(e){const t=[],n=e&&e.children||S3;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}var D3=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],$3={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function O3(e,t){const n=e.indexOf("[",t);if(-1!==n){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function _3(e,t){let n=1;const r=e[t+n++];let o;if("2"===r){const r=[e[t+n++],e[t+n++],e[t+n]].map((e=>Number.parseInt(e)));3!==r.length||r.some((e=>Number.isNaN(e)))||(o={type:"rgb",rgb:r})}else if("5"===r){const r=Number.parseInt(e[t+n]);Number.isNaN(r)||(o={type:"table",index:Number(r)})}return[n,o]}function I3(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],o=Number.parseInt(r);if(!Number.isNaN(o))if(0===o)t.push({type:"resetAll"});else if(o<=9){$3[o]&&t.push({type:"setDecoration",value:$3[o]})}else if(o<=29){const e=$3[o-20];e&&t.push({type:"resetDecoration",value:e})}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:D3[o-30]}});else if(38===o){const[r,o]=_3(e,n);o&&t.push({type:"setForegroundColor",value:o}),n+=r}else if(39===o)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:D3[o-40]}});else if(48===o){const[r,o]=_3(e,n);o&&t.push({type:"setBackgroundColor",value:o}),n+=r}else 49===o?t.push({type:"resetBackgroundColor"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:D3[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:D3[o-100+8]}})}return t}var N3={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function j3(e=N3){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;function o(e){return function(){if(r)return r;r=[];for(let n=0;n<D3.length;n++)r.push(t(D3[n]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let o=0;o<6;o++)for(let i=0;i<6;i++)r.push(n([e[t],e[o],e[i]]));let o=8;for(let t=0;t<24;t++,o+=10)r.push(n([o,o,o]));return r}()[e]}return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return o(e.index)}}}}function P3(e,t,n){const r={...e.colorReplacements,...null==n?void 0:n.colorReplacements},o=t.split(/\r?\n/),i=j3(Object.fromEntries(D3.map((t=>{var n;return[t,null==(n=e.colors)?void 0:n[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]]})))),a=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=O3(r,i),l=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(l.length>0&&o.push({value:l,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const r=I3(a.sequence);for(const o of r)"resetAll"===o.type?(e=null,t=null,n.clear()):"resetForegroundColor"===o.type?e=null:"resetBackgroundColor"===o.type?t=null:"resetDecoration"===o.type&&n.delete(o.value);for(const o of r)"setForegroundColor"===o.type?e=o.value:"setBackgroundColor"===o.type?t=o.value:"setDecoration"===o.type&&n.add(o.value)}i=a.position}while(i<r.length);return o}}}();return o.map((t=>a.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?i.value(t.background):e.bg:t.foreground?i.value(t.foreground):e.fg,n=L3(n,r),t.decorations.has("dim")&&(n=function(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t){if(t[3]){const e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map((e=>`${e}${e}`)).join("")}80`}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let o=O2.None;return t.decorations.has("bold")&&(o|=O2.Bold),t.decorations.has("italic")&&(o|=O2.Italic),t.decorations.has("underline")&&(o|=O2.Underline),{content:t.value,color:n,fontStyle:o}}))))}function T3(e,t,n={}){const{lang:r="text",theme:o=e.getLoadedThemes()[0]}=n;if(function(e){return!e||["plaintext","txt","text","plain"].includes(e)}(r)){return[...t.split(/\r\n|\r|\n/).map((e=>[{content:e}]))]}const{theme:i,colorMap:a}=e.setTheme(o);if("ansi"===r)return P3(i,t,n);return function(e,t,n,r,o){const i={...n.colorReplacements,...null==o?void 0:o.colorReplacements},a=e.split(/\r\n|\r|\n/);let l=K5,s=[];const c=[];for(let u=0,d=a.length;u<d;u++){const e=a[u];if(""===e){s=[],c.push([]);continue}let d,f,p;o.includeExplanation&&(d=t.tokenizeLine(e,l),f=d.tokens,p=0);const h=t.tokenizeLine2(e,l),g=h.tokens.length/2;for(let t=0;t<g;t++){const a=h.tokens[2*t],l=t+1<g?h.tokens[2*t+2]:e.length;if(a===l)continue;const c=h.tokens[2*t+1],u=L3(r[s4.getForeground(c)],i),d=s4.getFontStyle(c),m={content:e.substring(a,l),color:u,fontStyle:d};if(o.includeExplanation){m.explanation=[];let t=0;for(;a+t<l;){const r=f[p],o=e.substring(r.startIndex,r.endIndex);t+=o.length,m.explanation.push({content:o,scopes:F3(n,r.scopes)}),p+=1}}s.push(m)}c.push(s),s=[],l=h.ruleStack}return c}(t,e.getLangGrammar(r),i,a,n)}function F3(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const o=t.slice(0,r),i=t[r];n[r]={scopeName:i,themeMatches:M3(e,i,o)}}return n}function R3(e,t){const n=`${e}.`;return e===t||t.substring(0,n.length)===n}function A3(e,t,n,r){if(!R3(e,n))return!1;let o=t.length-1,i=r.length-1;for(;o>=0&&i>=0;)R3(t[o],r[i])&&(o-=1),i-=1;return-1===o}function M3(e,t,n){const r=[];let o=0;for(let i=0,a=e.settings.length;i<a;i++){const a=e.settings[i];let l;if("string"==typeof a.scope)l=a.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(a.scope))continue;l=a.scope}for(let e=0,i=l.length;e<i;e++){const s=l[e].split(/ /);A3(s[s.length-1],s.slice(0,s.length-1),t,n)&&(r[o++]=a,e=i)}}return r}function L3(e,t){return(null==t?void 0:t[e.toLowerCase()])||e}function z3(e,t,n){const r=Object.entries(n.themes).filter((e=>e[1])).map((e=>({color:e[0],theme:e[1]}))),o=function(...e){const t=e.map((()=>[])),n=e.length;for(let r=0;r<e[0].length;r++){const o=e.map((e=>e[r])),i=t.map((()=>[]));t.forEach(((e,t)=>e.push(i[t])));const a=o.map((()=>0)),l=o.map((e=>e[0]));for(;l.every((e=>e));){const e=Math.min(...l.map((e=>e.content.length)));for(let t=0;t<n;t++){const n=l[t];n.content.length===e?(i[t].push(n),a[t]+=1,l[t]=o[t][a[t]]):(i[t].push({...n,content:n.content.slice(0,e)}),l[t]={...n,content:n.content.slice(e)})}}}return t}(...r.map((r=>T3(e,t,{...n,theme:r.theme,includeExplanation:!1}))));return o[0].map(((e,t)=>e.map(((e,n)=>{const i={content:e.content,variants:{}};return o.forEach(((e,o)=>{const{content:a,explanation:l,...s}=e[t][n];i.variants[r[o].color]=s})),i}))))}function B3(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>B3(e,t,n)}){var o;let i,a,l,s,c,u=t;for(const d of n.transformers||[])u=(null==(o=d.preprocess)?void 0:o.call(r,u,n))||u;if("themes"in n){const{defaultColor:t="light",cssVariablePrefix:r="--shiki-"}=n,o=Object.entries(n.themes).filter((e=>e[1])).map((e=>({color:e[0],theme:e[1]}))).sort(((e,n)=>e.color===t?-1:n.color===t?1:0));if(0===o.length)throw new Error("[shikiji] `themes` option must not be empty");const d=z3(e,u,n);if(t&&!o.find((e=>e.color===t)))throw new Error(`[shikiji] \`themes\` option must contain the defaultColor key \`${t}\``);const f=o.map((t=>e.getTheme(t.theme))),p=o.map((e=>e.color));l=d.map((e=>e.map((e=>function(e,t,n,r){const o={content:e.content,explanation:e.explanation},i=t.map((t=>H3(e.variants[t]))),a=new Set(i.flatMap((e=>Object.keys(e)))),l=i.reduce(((e,o,i)=>{for(const l of a){const a=o[l]||"inherit";if(0===i&&r)e[l]=a;else{const r=n+t[i]+("color"===l?"":`-${l}`);e[l]?e[l]+=`;${r}:${a}`:e[l]=`${r}:${a}`}}return e}),{});return o.htmlStyle=r?W3(l):Object.values(l).join(";"),o}(e,p,r,t))))),a=o.map(((e,n)=>(0===n&&t?"":`${r+e.color}:`)+f[n].fg)).join(";"),i=o.map(((e,n)=>(0===n&&t?"":`${r+e.color}-bg:`)+f[n].bg)).join(";"),s=`shiki-themes ${f.map((e=>e.name)).join(" ")}`,c=t?void 0:[a,i].join(";")}else{if(!("theme"in n))throw new Error("[shikiji] Invalid options, either `theme` or `themes` must be provided");{l=T3(e,u,{...n,includeExplanation:!1});const t=e.getTheme(n.theme);i=t.bg,a=t.fg,s=t.name}}return function(e,t,n){var r,o,i;const{mergeWhitespaces:a=!0,transformers:l=[]}=t;t.transforms&&(l.push(t.transforms),console.warn("[shikiji] `transforms` option is deprecated, use `transformers` instead"));!0===a?e=function(e){return e.map((e=>{const t=[];let n="";return e.forEach(((r,o)=>{const i=!(r.fontStyle&&r.fontStyle&O2.Underline);i&&r.content.match(/^\s+$/)&&e[o+1]?n+=r.content:n?(i?t.push({...r,content:n+r.content}):t.push({content:n},r),n=""):t.push(r)})),t}))}(e):"never"===a&&(e=function(e){return e.map((e=>e.flatMap((e=>{if(e.content.match(/^\s+$/))return e;const t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;const[,n,r,o]=t;if(!n&&!o)return e;const i=[{...e,content:r}];return n&&i.unshift({content:n}),o&&i.push({content:o}),i}))))}(e));const s=[],c={type:"root",children:[]};let u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter((([e])=>!e.startsWith("_"))))},children:[]},d={type:"element",tagName:"code",properties:{},children:s};const f=[],p={...n,get tokens(){return e},get options(){return t},get root(){return c},get pre(){return u},get code(){return d},get lines(){return f}};e.forEach(((e,t)=>{var n,r;t&&s.push({type:"text",value:"\n"});let o={type:"element",tagName:"span",properties:{class:"line"},children:[]},i=0;for(const a of e){let e={type:"element",tagName:"span",properties:{},children:[{type:"text",value:a.content}]};const r=a.htmlStyle||W3(H3(a));r&&(e.properties.style=r);for(const a of l)e=(null==(n=null==a?void 0:a.token)?void 0:n.call(p,e,t+1,i,o))||e;o.children.push(e),i+=a.content.length}for(const a of l)o=(null==(r=null==a?void 0:a.line)?void 0:r.call(p,o,t+1))||o;f.push(o),s.push(o)}));for(const g of l)d=(null==(r=null==g?void 0:g.code)?void 0:r.call(p,d))||d;u.children.push(d);for(const g of l)u=(null==(o=null==g?void 0:g.pre)?void 0:o.call(p,u))||u;c.children.push(u);let h=c;for(const g of l)h=(null==(i=null==g?void 0:g.root)?void 0:i.call(p,h))||h;return h}(l,{...n,fg:a,bg:i,themeName:s,rootStyle:c},r)}function H3(e){const t={};return e.color&&(t.color=e.color),e.fontStyle&&(e.fontStyle&O2.Italic&&(t["font-style"]="italic"),e.fontStyle&O2.Bold&&(t["font-weight"]="bold"),e.fontStyle&O2.Underline&&(t["text-decoration"]="underline")),t}function W3(e){return Object.entries(e).map((([e,t])=>`${e}:${t}`)).join(";")}function U3(e,t,n){var r;const o={meta:{},options:n,codeToHast:(t,n)=>B3(e,t,n)};let i=function(e,t){const n=x3,r=n.quote||'"',o='"'===r?"'":'"';if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:C3,all:E3,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||c4,characterReferences:n.characterReferences||k3,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?W4:H4,quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(B3(e,t,n,o));for(const a of n.transformers||[])i=(null==(r=a.postprocess)?void 0:r.call(o,i,n))||i;return i}let q3=null;class V3{constructor(e){t(this,"utf16Length"),t(this,"utf8Length"),t(this,"utf16Value"),t(this,"utf8Value"),t(this,"utf16OffsetToUtf8"),t(this,"utf8OffsetToUtf16");const n=e.length,r=V3._utf8ByteLength(e),o=r!==n,i=o?new Uint32Array(n+1):null;o&&(i[n]=r);const a=o?new Uint32Array(r+1):null;o&&(a[r]=n);const l=new Uint8Array(r);let s=0;for(let t=0;t<n;t++){const r=e.charCodeAt(t);let c=r,u=!1;if(r>=55296&&r<=56319&&t+1<n){const n=e.charCodeAt(t+1);n>=56320&&n<=57343&&(c=65536+(r-55296<<10)|n-56320,u=!0)}o&&(i[t]=s,u&&(i[t+1]=s),c<=127?a[s+0]=t:c<=2047?(a[s+0]=t,a[s+1]=t):c<=65535?(a[s+0]=t,a[s+1]=t,a[s+2]=t):(a[s+0]=t,a[s+1]=t,a[s+2]=t,a[s+3]=t)),c<=127?l[s++]=c:c<=2047?(l[s++]=192|(1984&c)>>>6,l[s++]=128|(63&c)>>>0):c<=65535?(l[s++]=224|(61440&c)>>>12,l[s++]=128|(4032&c)>>>6,l[s++]=128|(63&c)>>>0):(l[s++]=240|(1835008&c)>>>18,l[s++]=128|(258048&c)>>>12,l[s++]=128|(4032&c)>>>6,l[s++]=128|(63&c)>>>0),u&&t++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const o=e.charCodeAt(n);let i=o,a=!1;if(o>=55296&&o<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=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 G3=class e{constructor(n){if(t(this,"id",++e.LAST_ID),t(this,"_onigBinding"),t(this,"content"),t(this,"utf16Length"),t(this,"utf8Length"),t(this,"utf16OffsetToUtf8"),t(this,"utf8OffsetToUtf16"),t(this,"ptr"),!q3)throw new Error("Must invoke loadWasm first.");this._onigBinding=q3,this.content=n;const r=new V3(n);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=q3.omalloc(1e4)),e._sharedPtrInUse=!0,q3.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(q3)}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)}};t(G3,"LAST_ID",0),t(G3,"_sharedPtr",0),t(G3,"_sharedPtrInUse",!1);let X3,K3=G3;class Y3{constructor(e){if(t(this,"_onigBinding"),t(this,"_ptr"),!q3)throw new Error("Must invoke loadWasm first.");const n=[],r=[];for(let t=0,l=e.length;t<l;t++){const o=new V3(e[t]);n[t]=o.createString(q3),r[t]=o.utf8Length}const o=q3.omalloc(4*e.length);q3.HEAPU32.set(n,o/4);const i=q3.omalloc(4*e.length);q3.HEAPU32.set(r,i/4);const a=q3.createOnigScanner(o,i,e.length);for(let t=0,l=e.length;t<l;t++)q3.ofree(n[t]);q3.ofree(i),q3.ofree(o),0===a&&function(e){throw new Error(e.UTF8ToString(e.getLastOnigError()))}(q3),this._onigBinding=q3,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=false,o=0;if("number"==typeof n?(8&n&&(r=!0),o=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new K3(e);const n=this._findNextMatchSync(e,t,r,o);return e.dispose(),n}return this._findNextMatchSync(e,t,r,o)}_findNextMatchSync(e,t,n,r){const o=this._onigBinding;let i;if(i=n?o.findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r),0===i)return null;const a=o.HEAPU32;let l=i/4;const s=a[l++],c=a[l++],u=[];for(let d=0;d<c;d++){const t=e.convertUtf8OffsetToUtf16(a[l++]),n=e.convertUtf8OffsetToUtf16(a[l++]);u[d]={start:t,end:n,length:n-t}}return{index:s,captureIndices:u}}}function Q3(e){if(X3)return X3;return X3=async function(){q3=await async function(e){let t,n;const r={};function o(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function i(e){try{return t.grow(e-n.byteLength+65535>>>16),o(t.buffer),1}catch(b6){}}const a={emscripten_get_now:function(){return"undefined"!=typeof performance?performance.now():Date.now()},emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){const t=r.HEAPU8.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},i=await e(n);t=i.memory,o(t.buffer),Object.assign(r,i)}(),r}((async t=>{let n=e;var r;return n=await n,"function"==typeof n&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator?n=await n.instantiator(t):!function(e){return"function"==typeof e.default}(n)?(function(e){return void 0!==e.data}(n)&&(n=n.data),!function(e){return"undefined"!=typeof Response&&e instanceof Response}(n)?function(e){return"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||"undefined"!=typeof Buffer&&Buffer.isBuffer(e)||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&e instanceof Uint32Array}(n)&&(n=await function(e){return t=>WebAssembly.instantiate(e,t)}(n)(t)):n="function"==typeof WebAssembly.instantiateStreaming?await(r=n,e=>WebAssembly.instantiateStreaming(r,e))(t):await function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(n)(t)):n=await n.default(t),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n}))}(),X3}const J3={light:"#333333",dark:"#bbbbbb"},Z3={light:"#fffffe",dark:"#1e1e1e"},e6="__shiki_resolved";function t6(e){var t,n,r,o,i;if(null==e?void 0:e[e6])return e;const a={...e};a.tokenColors&&!a.settings&&(a.settings=a.tokenColors,delete a.tokenColors),a.type||(a.type="dark"),a.colorReplacements={...a.colorReplacements},a.settings||(a.settings=[]);let{bg:l,fg:s}=a;if(!l||!s){const e=a.settings?a.settings.find((e=>!e.name&&!e.scope)):void 0;(null==(t=null==e?void 0:e.settings)?void 0:t.foreground)&&(s=e.settings.foreground),(null==(n=null==e?void 0:e.settings)?void 0:n.background)&&(l=e.settings.background),!s&&(null==(r=null==a?void 0:a.colors)?void 0:r["editor.foreground"])&&(s=a.colors["editor.foreground"]),!l&&(null==(o=null==a?void 0:a.colors)?void 0:o["editor.background"])&&(l=a.colors["editor.background"]),s||(s="light"===a.type?J3.light:J3.dark),l||(l="light"===a.type?Z3.light:Z3.dark),a.fg=s,a.bg=l}a.settings[0]&&a.settings[0].settings&&!a.settings[0].scope||a.settings.unshift({settings:{foreground:a.fg,background:a.bg}});let c=0;const u=new Map;function d(e){var t;if(u.has(e))return u.get(e);c+=1;const n=`#${c.toString(16).padStart(8,"0").toLowerCase()}`;return(null==(t=a.colorReplacements)?void 0:t[`#${n}`])?d(e):(u.set(e,n),n)}a.settings=a.settings.map((e=>{var t,n;const r=(null==(t=e.settings)?void 0:t.foreground)&&!e.settings.foreground.startsWith("#"),o=(null==(n=e.settings)?void 0:n.background)&&!e.settings.background.startsWith("#");if(!r&&!o)return e;const i={...e,settings:{...e.settings}};if(r){const t=d(e.settings.foreground);a.colorReplacements[t]=e.settings.foreground,i.settings.foreground=t}if(o){const t=d(e.settings.background);a.colorReplacements[t]=e.settings.background,i.settings.background=t}return i}));for(const f of Object.keys(a.colors||{}))if(("editor.foreground"===f||"editor.background"===f||f.startsWith("terminal.ansi"))&&!(null==(i=a.colors[f])?void 0:i.startsWith("#"))){const e=d(a.colors[f]);a.colorReplacements[e]=a.colors[f],a.colors[f]=e}return Object.defineProperty(a,e6,{enumerable:!1,writable:!1,value:!0}),a}class n6 extends X5{constructor(e,n,r){super(e),t(this,"_resolver"),t(this,"_themes"),t(this,"_langs"),t(this,"_resolvedThemes",{}),t(this,"_resolvedGrammars",{}),t(this,"_langMap",{}),t(this,"_langGraph",new Map),t(this,"alias",{}),this._resolver=e,this._themes=n,this._langs=r,n.forEach((e=>this.loadTheme(e))),r.forEach((e=>this.loadLanguage(e)))}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:this.loadTheme(e)}loadTheme(e){const t=t6(e);return t.name&&(this._resolvedThemes[t.name]=t),t}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){if(this.alias[e]){const t=new Set([e]);for(;this.alias[e];){if(e=this.alias[e],t.has(e))throw new Error(`[shikiji] Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars[e]}async loadLanguage(e){var t,n,r,o;if(this.getGrammar(e.name))return;const i=new Set(Object.values(this._langMap).filter((t=>{var n;return null==(n=t.embeddedLangsLazy)?void 0:n.includes(e.name)})));this._resolver.addLanguage(e);const a={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const l=await this.loadGrammarWithConfiguration(e.scopeName,1,a);if(this._resolvedGrammars[e.name]=l,e.aliases&&e.aliases.forEach((t=>{this.alias[t]=e.name})),i.size)for(const s of i)delete this._resolvedGrammars[s.name],null==(n=null==(t=this._syncRegistry)?void 0:t._injectionGrammars)||n.delete(s.scopeName),null==(o=null==(r=this._syncRegistry)?void 0:r._grammars)||o.delete(s.scopeName),await this.loadLanguage(this._langMap[s.name])}async init(){this._themes.map((e=>this.loadTheme(e))),await this.loadLanguages(this._langs)}async loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const t=Array.from(this._langGraph.entries()),n=t.filter((([e,t])=>!t));if(n.length){const e=t.filter((([e,t])=>{var r;return t&&(null==(r=t.embeddedLangs)?void 0:r.some((e=>n.map((([e])=>e)).includes(e))))})).filter((e=>!n.includes(e)));throw new Error(`[shikiji] Missing languages ${n.map((([e])=>`\`${e}\``)).join(", ")}, required by ${e.map((([e])=>`\`${e}\``)).join(", ")}`)}for(const[r,o]of t)this._resolver.addLanguage(o);for(const[r,o]of t)await this.loadLanguage(o)}getLoadedLanguages(){return Object.keys({...this._resolvedGrammars,...this.alias})}resolveEmbeddedLanguages(e){if(this._langMap[e.name]=e,this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}class r6{constructor(e,n){t(this,"_langs",new Map),t(this,"_scopeToLang",new Map),t(this,"_injections",new Map),t(this,"_onigLibPromise"),this._onigLibPromise=e,n.forEach((e=>this.addLanguage(e)))}get onigLib(){return this._onigLibPromise}getLangRegistration(e){return this._langs.get(e)}async loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach((t=>{this._langs.set(t,e)})),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach((t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)}))}getInjections(e){const t=e.split(".");let n=[];for(let r=1;r<=t.length;r++){const e=t.slice(0,r).join(".");n=[...n,...this._injections.get(e)||[]]}return n}}async function o6(e={}){async function t(e){return Promise.resolve("function"==typeof e?e():e).then((e=>e.default||e))}async function n(e){return Array.from(new Set((await Promise.all(e.map((async e=>await t(e).then((e=>Array.isArray(e)?e:[e])))))).flat()))}const[r,o]=await Promise.all([Promise.all((e.themes||[]).map(t)).then((e=>e.map(t6))),n(e.langs||[]),e.loadWasm?Q3(e.loadWasm):void 0]),i=new r6(Promise.resolve({createOnigScanner:e=>function(e){return new Y3(e)}(e),createOnigString:e=>new K3(e)}),o),a=new n6(i,r,o);let l;function s(e){const t=a.getTheme(e);if(!t)throw new Error(`[shikiji] Theme \`${e}\` not found, you may need to load it first`);return t}return Object.assign(a.alias,e.langAlias),await a.init(),{setTheme:function(e){const t=s(e);return l!==e&&(a.setTheme(t),l=e),{theme:t,colorMap:a.getColorMap()}},getTheme:s,getLangGrammar:function(e){const t=a.getGrammar(e);if(!t)throw new Error(`[shikiji] Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return a.getLoadedThemes()},getLoadedLanguages:function(){return a.getLoadedLanguages()},getAlias:function(){return a.alias},updateAlias:function(e){Object.assign(a.alias,e)},loadLanguage:async function(...e){await a.loadLanguages(await n(e))},loadTheme:async function(...e){await Promise.all(e.map((async e=>a.loadTheme(await t(e)))))}}}let i6=null;async function a6(){return i6||(i6=nG((()=>import("./onig.js")),[]).then((e=>({data:e.default})))),i6}const l6=[{$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",fileTypes:["prompt"],name:"prompt",patterns:[{match:"[,]",name:"comma"},{match:"AND",name:"and"},{match:"BREAK",name:"break"},{captures:{0:{name:"model-bracket"},1:{name:"model-type"},2:{name:"model-name"},3:{name:"number"}},match:"<([^:]+):([^:]+):([^>]+)>"},{match:"[<|>]",name:"model-bracket"},{match:"[(|)|\\[|\\]|{|}\\\\]",name:"bracket"},{match:":\\d*\\.?\\d+|:\\.\\d+",name:"number"},{match:"[:|]",name:"func"},{match:"__.*__",name:"wildcards"}],scopeName:"source.prompt"}],s6=e=>{const t=e?"dark":"light",n=e?bX.yellow[t][9]:bX.gold[t][10],r=e?bX.gold[t][9]:bX.orange[t][10],o=e?bX.volcano[t][10]:bX.volcano[t][8],i=e?bX.lime[t][9]:bX.green[t][10],a=e?bX.blue[t][9]:bX.geekblue[t][9],l=e?bX.purple[t][11]:bX.purple[t][8];return{colors:{"editor.foreground":i},name:t,tokenColors:[{scope:"comma",settings:{foreground:bX.gray[t][11]}},{scope:["and","break"],settings:{foreground:a}},{scope:"bracket",settings:{foreground:l}},{scope:"model-type",settings:{fontStyle:"italic",foreground:o}},{scope:"model-name",settings:{foreground:r}},{scope:"model-bracket",settings:{foreground:l}},{scope:"number",settings:{foreground:l}},{scope:"func",settings:{foreground:l}},{scope:"wildcards",settings:{foreground:n}}],type:t}};let c6;const u6=async()=>{let e=c6;return e||(e=await async function(e={}){const t=await o6(e);return{codeToThemedTokens:(e,n)=>T3(t,e,n),codeToTokensWithThemes:(e,n)=>z3(t,e,n),codeToHast:(e,n)=>B3(t,e,n),codeToHtml:(e,n)=>U3(t,e,n),loadLanguage:t.loadLanguage,loadTheme:t.loadTheme,getTheme:t.getTheme,getLangGrammar:t.getLangGrammar,setTheme:t.setTheme,getLoadedThemes:t.getLoadedThemes,getLoadedLanguages:t.getLoadedLanguages,getInternalContext:()=>t}}({langs:[l6],loadWasm:a6,themes:[s6(!0),s6(!1)]}),c6=e,e)},d6=oH((({css:e,token:t,cx:n,stylish:r,prefixCls:o})=>{const i=`${o}-highlighter`;return{container:e`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
overflow: hidden auto;
|
||
padding: calc(8px + var(--input-border-width));
|
||
|
||
pre {
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
font-size: 13px !important;
|
||
line-height: 1.5 !important;
|
||
word-wrap: break-word !important;
|
||
white-space: pre-wrap !important;
|
||
vertical-align: bottom !important;
|
||
}
|
||
`,loading:n(r.blur,e`
|
||
position: absolute;
|
||
z-index: 10;
|
||
top: 0;
|
||
right: 0;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
height: 34px;
|
||
padding: 0 8px;
|
||
|
||
font-family: ${t.fontFamilyCode};
|
||
color: ${t.colorTextTertiary};
|
||
|
||
border-radius: ${t.borderRadius};
|
||
`),shiki:n(`${i}-shiki`,e`
|
||
margin: 0;
|
||
|
||
.shiki {
|
||
overflow-x: auto;
|
||
padding: 0;
|
||
background: none !important;
|
||
|
||
code,
|
||
code span {
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
}
|
||
}
|
||
`)}})),f6=U.memo((({children:e})=>{const{styles:t}=d6(),{isDarkMode:n}=$B(),{data:r,isLoading:o}=((e,t)=>iX([t?"dark":"light",e].join("-"),(async()=>{try{const n=await u6();return null==n?void 0:n.codeToHtml(e,{lang:"prompt",theme:t?"dark":"light",transformers:[{code(e){e.properties.id="lobe_highlighter"}}]})}catch{return e}})))(e,n);return ee.jsxs(ee.Fragment,{children:[o?ee.jsx("code",{children:e}):ee.jsx("div",{className:t.shiki,dangerouslySetInnerHTML:{__html:r}}),o&&ee.jsxs(Qp,{className:t.loading,gap:8,horizontal:!0,children:[ee.jsx(gH,{icon:Qd,spin:!0}),"Highlighting..."]})]})})),p6=oH((({token:e,css:t,cx:n,prefixCls:r},o)=>{const i=`${r}-highlighter`,a=`${i}-hover-btn`,l=`${i}-hover-lang`,s=t`
|
||
background-color: ${"block"===o?e.colorFillTertiary:"transparent"};
|
||
border: 1px solid ${"block"===o?"transparent":e.colorBorder};
|
||
|
||
&:hover {
|
||
background-color: ${"block"===o?e.colorFillTertiary:e.colorFillQuaternary};
|
||
}
|
||
`;return{container:n(i,"pure"!==o&&s,t`
|
||
position: relative;
|
||
overflow: auto;
|
||
border-radius: ${e.borderRadius}px;
|
||
transition: background-color 100ms ${e.motionEaseOut};
|
||
|
||
&:hover {
|
||
.${a} {
|
||
opacity: 1;
|
||
}
|
||
|
||
.${l} {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
.prism-code {
|
||
background: none !important;
|
||
}
|
||
|
||
pre {
|
||
margin: 0 !important;
|
||
padding: ${"pure"===o?0:"16px 24px"} !important;
|
||
background: none !important;
|
||
}
|
||
|
||
code {
|
||
background: transparent !important;
|
||
}
|
||
`),header:t`
|
||
padding: 4px 8px;
|
||
background: ${e.colorFillQuaternary};
|
||
`,select:t`
|
||
.${r}-select-selection-item {
|
||
min-width: 100px;
|
||
padding-inline-end: 0 !important;
|
||
color: ${e.colorTextDescription};
|
||
text-align: center;
|
||
}
|
||
`}})),h6=U.memo((({children:e,title:t="Prompt",className:n,style:r,showCopy:o=!0,...i})=>{const[a,l]=U.useState(!0),{styles:s,cx:c}=p6("block"),u=c(s.container,n);return ee.jsxs("div",{className:u,"data-code-type":"highlighter",style:r,...i,children:[ee.jsxs(th,{align:"center",className:s.header,horizontal:!0,justify:"space-between",children:[ee.jsx(CH,{icon:a?Ad:Ld,onClick:()=>l(!a),size:{blockSize:24,fontSize:14,strokeWidth:3}}),ee.jsx(CH,{size:{blockSize:24},style:{width:"unset"},children:t}),o?ee.jsx(wX,{content:e,placement:"left",size:{blockSize:24,fontSize:14,strokeWidth:2}}):ee.jsx("div",{})]}),ee.jsx("div",{style:a?{}:{height:0,overflow:"hidden"},children:ee.jsx(f6,{children:e})})]})}));var g6,m6,b6;(b6=g6||(g6={})).CR="\r",b6.CRLF="\r\n",b6.LF="\n",function(e){e[e.CR=13]="CR",e[e.LF=10]="LF"}(m6||(m6={}));const v6=/\r\n|\r(?!\n)|\n/g;var y6,w6,x6;(x6=y6||(y6={})).INCLUDE_SEPARATOR_NONE="NONE",x6.INCLUDE_SEPARATOR_SEPARATELY="SEPARATELY",x6.INCLUDE_SEPARATOR_LEFT="LEFT",x6.INCLUDE_SEPARATOR_RIGHT="RIGHT",x6.INCLUDE_SEPARATOR_ONLY="ONLY",function(e){e[e.ACTION_CLOSE=1]="ACTION_CLOSE",e[e.ACTION_OPEN=2]="ACTION_OPEN",e[e.ACTION_ADD_FRAGMENT=3]="ACTION_ADD_FRAGMENT",e[e.ACTION_NULL=4]="ACTION_NULL"}(w6||(w6={}));const k6=e=>{let t,n;return function(...r){return n||(t=e(...r),n=!0),t}},S6=e=>{if(!e)return!0;if(Array.isArray(e)){if(0===e.length)return!0}else if("object"==typeof e&&0===Object.keys(e).length)return!0;return!1},C6=e=>e[0];function E6(e){const t=[e].flat().filter(Boolean);return!S6(t)&&{values:new Set(t),max:Math.max(...t),count:0,hasIndex(){return-1/0===this.max||this.values.has(this.count++)},isOverMax(){return-1/0!==this.max&&this.count>this.max}}}class D6{constructor(e,t){this.string=e,this.searchSettings=t,this.prepareSearch()}prepareSearch(){for(const e of[this.searchSettings.separatorSearch,this.searchSettings.bracketsSearch])e.lastIndex=0;Object.assign(this,{brackets:[],pipe:[],currentMentions:[],position:0,isDone:!1,freeArea:{start:0,end:void 0},lastSeparator:void 0,searchString:this.searchSettings.ignoreCase&&!this.searchSettings.separatorSearch.ignoreCase?this.string.toUpperCase():this.string,indexes:E6(this.searchSettings.indexes)})}get pipeIsEmpty(){return S6(this.pipe)}getMentions(e,t){const n=[],r=[];for(const o of this.currentMentions)o.index>=e&&o.index<t?n.push(o.mention):r.push(o);return[n.length&&n,r]}trimResultText(e){return this.searchSettings.trimResult?e.trim():e}trimSeparatorText(e){return this.searchSettings.trimSeparators?e.trim():e}checkSeparator(e){const{string:t}=this,{check:n,includePositions:r,mentions:o}=this.searchSettings;let{0:i="",index:a=t.length,searchWithinData:l}=null!=e?e:{};const s=i.length,c=l?l.openPosition:this.position;let u=t.substring(c,a);i||(this.isDone=!0),u=this.trimResultText(u),i=this.trimSeparatorText(i);let d,f=l?[l.open,l.close]:i;if(r&&(u={text:u,position:c},f={text:f,position:a,isSeparator:!0}),o){u="string"==typeof u?{text:u}:u;const[e,t]=this.getMentions(c,a);e&&(u.mentions=e,d=t)}if(n&&i){const e=isNaN(this.tempPosition)?c:this.tempPosition;this.tempPosition=a+i.length;const r=this;if(!n({getString:k6((()=>r.trimResultText(t.substring(e,a)))),getTextAfter:k6((()=>t.substring(a+i.length))),getMentions:k6((()=>r.getMentions(e,a)[0])),getSeparator:k6((()=>i)),get string(){return this.getString()},get textAfter(){return this.getTextAfter()},get mentions(){return this.getMentions()},get separator(){return this.getSeparator()}}))return[];delete this.tempPosition}return d&&(this.currentMentions=d),this.position=a+s,[u,f,!0]}pushToPipe(e){if(this.indexes){if(!this.indexes.hasIndex())return;this.indexes.isOverMax()&&(this.isDone=!0)}this.pipe.push(e)}addToPipe(e){let[t,n,r]=this.checkSeparator(e);if(!r)return!1;switch(this.searchSettings.includeSeparatorMode){case"SEPARATELY":this.pushToPipe(t),n&&this.pushToPipe(n);break;case"LEFT":this.pushToPipe([t,n]);break;case"RIGHT":!("object"==typeof t?t.text:t)&&!this.lastSeparator||this.pushToPipe([this.lastSeparator,t]),this.lastSeparator=n;break;case"ONLY":n&&this.pushToPipe(n);break;default:this.pushToPipe(t)}return!this.pipeIsEmpty}findBrackets(){const{searchString:e,brackets:t,freeArea:n,searchSettings:r}=this,{bracketsSearch:o,separatorSearch:i,searchWithin:a}=r,l=a?()=>this.pipeIsEmpty:()=>("number"!=typeof n.start||n.start!==n.end)&&!n.end;for(;l();){var s;const l=o.exec(e);if(!l){if(a||isNaN(n.start))return!1;n.end=e.length-1;continue}const u=l[0],{close:d,ignoreMode:f,searchLevels:p}=(c=t)[c.length-1]||{};let h;switch((u===d?1:f&&4)||(h=r.bracketsMap[u])&&2||(null===(s=r.mentions)||void 0===s?void 0:s[u])&&3){case 1:const e=t.pop();a?(!0===p||p.includes(t.length+1))&&this.addToPipe(Object.assign(l,{searchWithinData:e})):S6(t)&&(n.start=l.index,i&&i.lastIndex<n.start&&(i.lastIndex=n.start));break;case 2:t.push({...h,openPosition:l.index+u.length}),1!==t.length||a||(n.end=l.index);break;case 3:this.currentMentions.push({mention:r.mentions[u],index:l.index})}}var c;return!0}findSeparator(e){const{searchString:t,freeArea:n}=this,{separatorSearch:r}=this.searchSettings;let o;for(;!o;){if(e=e||r.exec(t))if(e.index<=n.end){const t=e.index>=n.start&&this.addToPipe(e);if(e=null,!t)continue}else n.start=n.end=void 0;else this.addToPipe();o=!0}return e}getNext(){let e;for(;this.pipeIsEmpty&&!this.isDone;)this.findBrackets()?this.searchSettings.searchWithin||(e=this.findSeparator(e)):this.isDone=!0;return this.pipeIsEmpty?null:this.pipe.shift()}getAll(){return[...this]}getRest(){const e=[];let t;for(;null!==(t=this.getNext());)e.push(t);return e}*[Symbol.iterator](){this.prepareSearch();const e=this;let t;do{t=e.getNext(),null!==t&&(yield t)}while(null!==t)}}function $6(e,t){const n=this.merge(t);let r=new D6(e,n);return"number"==typeof n.indexes?r.getNext():n.returnIterator?r:r.getAll()}function O6(e){const t=$6.bind(e);return Object.assign(t,{getOne(e,n,r={}){if(isNaN(n))throw new TypeError("second parameter of `getOne` function should be index");return t(e,{...r,indexes:n})},getFirst:(e,n={})=>t(e,{...n,indexes:0}),getIndexes(e,n,r={}){if(!Array.isArray(n))throw new TypeError("second parameter of `getOne` function should be array of indexes");return t(e,{...r,indexes:n})},getIterator:(e,n={})=>t(e,{...n,returnIterator:!0})})}let _6;function I6(e,t){const n=function(e,t){const n={brackets:[],mentions:[],ignoreInsideQuotes:!0,includeSeparatorMode:"NONE",ignoreCase:!0,trimResult:!0,trimSeparators:!1,defaultBrackets:[["(",")"],["[","]"],["{","}"]],...t,separators:e,init(){return function(e){if(Array.isArray(e.mentions)||"string"==typeof e.mentions){const t=[e.mentions].flat().filter(Boolean).reduce(((t,n)=>(t[e.ignoreCase?n.toUpperCase():n]=n,t)),{});e.mentions=!S6(t)&&t}return e.createBracketsMap().createBracketsSearch().createSeparatorsSearch()}(this)},merge(e){return t=this,(n=e)?(n={...t,...n},["brackets","mentions"].some((e=>e in n))&&n.init(),n):t;var t,n},arrayToPattern:e=>{return t=e,null!==(n=_6)&&void 0!==n||(_6=new Set(".{}[]^()+*?\\/$|".split(""))),t.map((e=>e instanceof RegExp?e.source:e.split("").map((e=>_6.has(e)?"\\"+e:e)).join(""))).join("|");var t,n},createRegExp:e=>RegExp(e,"g"),createBracketsMap(){return function(e){let t=e.brackets=(n=e.brackets,r=e.defaultBrackets,!0===n?n=r.slice():"object"!=typeof n||Array.isArray(n)?"string"==typeof n&&(n=n.split(",").map((e=>{let t=e.trim().split(" ");if(2!==t.length){if(2!==C6(t).length)throw new TypeError("open and close parts of brackets should be separated by space symbol");t=C6(t).split("")}return t}))):n=Object.entries(n),null!==(o=n)&&void 0!==o?o:[]);var n,r,o;return t=function(e,t){return t.ignoreInsideQuotes&&e.unshift(["'",,,!0],['"',,,!0]),e}(t,e),e.bracketsMap=function(e,t){return e.reduce(((e,[n,r,...o])=>{1!==o.length||t||o.unshift(void 0);let[i=t&&1,a]=o;return"number"==typeof i&&(i=[i]),e[n]={open:n,ignoreMode:a,searchLevels:i,close:r||n},e}),{})}(t,e.searchWithin),e}(this)},createBracketsSearch(){return function(e){const t=Object.entries(e.bracketsMap).flatMap((([,{close:e,open:t}])=>e!==t?[t,e]:t)).concat(Object.keys(e.mentions||{})).filter(Boolean),n=e.arrayToPattern(t);return e.bracketsSearch=e.createRegExp(n),e}(this)},createSeparatorsSearch(){return function(e){const{separators:t}=e;if("string"==typeof t||Array.isArray(t)){const n=e.arrayToPattern([t].flat().filter(Boolean));e.separatorSearch=e.createRegExp(n)}else t?(e.separatorSearch=t,e.ignoreCase=t.ignoreCase):e.separatorSearch=/empty/;return e}(this)}};return n.init()}(e,t);return{splitSettings:n,splitFn:O6(n)}}function N6(...e){let[t,n,r]=function(e,t){if(null==e||!e.length)throw new RangeError("empty arguments");if(3===e.length)return e;if(1===e.length){const t=C6(e);"string"==typeof t?e.push(",",{}):Array.isArray(t)?(e.unshift(null),e.push({})):"object"==typeof t&&e.unshift(null,",")}else if(2===e.length)"string"==typeof e[0]&&e[1]instanceof RegExp||"string"==typeof e[1]||Array.isArray(e[1])?e.push({}):e.unshift(null);else if(e.length>3)throw new RangeError("Too many arguments passed to splitSmartly function!!!");return e}(e);const{splitFn:o}=I6(n,r);return null!==t?o(t):o}function j6(e){return function(e,t="\n"){return e.replace(v6,t)}(e).replace(/[ \t\xa0]+(?=\n)/g,"").replace(/\n{3,}/g,"\n\n").replace(/^[\r\n]+|[\s\r\n]+$/g,"")}const P6=/\r?\n/,T6=/\x00\x00\x00\r?\n/;function F6(e){return T6.test(e)}function R6(e){const t=F6(e=j6(e));let n=function(e){return e.split(F6(e)?T6:P6)}(e),r="",o="",i="";const a=n.slice();if(n.length){if(t){var l,s;if(n.length>3)throw new TypeError;let e=n.pop();if(e.startsWith("Steps: ")&&(i=e,e=void 0),null!==(l=e)&&void 0!==l||(e=n.pop()),e.startsWith("Negative prompt: ")&&(o=e.slice(17),e=void 0),null!==(s=e)&&void 0!==s||(e=n.pop()),r=e,n.length)throw new TypeError}else{let e=n[n.length-1];if(e.startsWith("Steps: ")&&(i=n.pop(),e=void 0),n.length){let t=-1;for(let r=n.length-1;r>=0;r--)if(e=n[r],e.startsWith("Negative prompt: ")){t=r,n[r]=e.slice(17);break}-1!==t&&(o=n.splice(t).join("\n")),r=n.join("\n")}}r=r.replace(/\x00\x00\x00/g,""),o=o.replace(/\x00\x00\x00/g,"")}return{prompt:r,negative_prompt:o,infoline:i,infoline_extra:[],lines_raw:a}}function A6(e,t){let n=[];if(null!=t&&t.isIncludePrompts){const{prompt:t,negative_prompt:r,infoline:o}=R6(e);n.push(["prompt",t]),n.push(["negative_prompt",r]),e=o}return Object.fromEntries(n.concat(function(e,t){const n=null==t?void 0:t.cast_to_snake,r=/^0\d/;return e.map((([e,t])=>{const o=parseFloat(t),i=r.test(t)||isNaN(o)||t-o!=0;return n&&(e=e.toLowerCase().replace(/ /g,"_")),[e,i?t:o]}))}(function(e){return N6(e=j6(e),[","],{brackets:!0,trimSeparators:!0}).reduce(((e,t)=>{if(null!=t&&t.length){const n=function(e){const[,t,n]=e.match(/^([^:]+)\s*:\s*(.*)$/);return[t,n]}(t);e.push(n)}return e}),[])}(e),t)))}const M6=e=>{let t=e.replaceAll("<","<").replaceAll(">",">");return IQ.convert(t)},L6=U.memo((({value:e,className:t,style:n,showCopy:r=!0,showConfig:o=!0,showNegative:i=!0})=>{const{styles:a,cx:l}=$2(),s=U.useMemo((()=>(e=>{if(!e||"undefined"===e)return;if(!e.includes("<br>"))return;let{prompt:t,negative_prompt:n,...r}=A6(e,{isIncludePrompts:!0});return t=t.trim().replaceAll("<br>","\n").replaceAll(/\s+$/g,""),n=n.trim().replaceAll("<br>","\n").replaceAll(/\s+$/g,""),t=t?M6(t):"",n=n?M6(n):"",{config:r,negative:n,positive:t}})(e)),[e]);return e&&"undefined"!==e&&s?ee.jsxs(th,{className:t,gap:4,style:n,children:[(null==s?void 0:s.positive)&&ee.jsx(h6,{className:a.highlight,showCopy:r,title:"Positive Prompt",children:s.positive}),i&&(null==s?void 0:s.negative)&&ee.jsx(h6,{className:l(a.highlight,a.negative),showCopy:r,title:"Negative Prompt",children:s.negative}),o&&(null==s?void 0:s.config)&&ee.jsx(th,{className:a.container,style:r?{}:{paddingRight:24},children:Object.entries(s.config).map((([e,t])=>ee.jsxs(th,{gap:4,horizontal:!0,justify:"space-between",children:[ee.jsxs(th,{align:"center",className:a.configTitle,horizontal:!0,children:[e,":"]}),ee.jsxs(th,{align:"center",className:a.configValue,gap:4,horizontal:!0,children:[t,r&&ee.jsx(wX,{content:t,size:"small"})]})]},e)))})]}):null})),z6=U.memo((({parentId:e})=>{const t=E2(`${e} .infotext`,{subSelector:"p"});return D2(`${e} .infotext`),ee.jsx(L6,{value:t})})),B6="%[a-f0-9]{2}",H6=new RegExp("("+B6+")|([^%]+?)","gi"),W6=new RegExp("("+B6+")+","gi");function U6(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],U6(n),U6(r))}function q6(e){try{return decodeURIComponent(e)}catch{let t=e.match(H6)||[];for(let n=1;n<t.length;n++)t=(e=U6(t,n).join("")).match(H6)||[];return e}}function V6(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"<22><>","%FF%FE":"<22><>"};let n=W6.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=q6(n[0]);e!==n[0]&&(t[n[0]]=e)}n=W6.exec(e)}t["%C2"]="<22>";const r=Object.keys(t);for(const o of r)e=e.replace(new RegExp(o,"g"),t[o]);return e}(e)}}function G6(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function X6(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);(null==t?void 0:t.enumerable)&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);if(o.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,o)}}return n}const K6=e=>null==e,Y6=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),Q6=Symbol("encodeFragmentIdentifier");function J6(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function Z6(e,t){return t.encode?t.strict?Y6(e):encodeURIComponent(e):e}function e8(e,t){return t.decode?V6(e):e}function t8(e){return Array.isArray(e)?e.sort():"object"==typeof e?t8(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function n8(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function r8(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function o8(e){const t=(e=n8(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function i8(e,t){J6((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&e8(n,e).includes(e.arrayFormatSeparator);n=i?e8(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>e8(t,e))):null===n?n:e8(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?e8(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>e8(t,e)));void 0!==r[t]?r[t]=[...r[t],...i]:r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[i,a]=G6(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:e8(a,t),n(e8(i,t),a,r)}for(const[o,i]of Object.entries(r))if("object"==typeof i&&null!==i)for(const[e,n]of Object.entries(i))i[e]=r8(n,t);else r[o]=r8(i,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t8(n):n,e}),Object.create(null))}function a8(e,t){if(!e)return"";J6((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&K6(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Z6(t,e),"[",o,"]"].join("")]:[...n,[Z6(t,e),"[",Z6(o,e),"]=",Z6(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Z6(t,e),"[]"].join("")]:[...n,[Z6(t,e),"[]=",Z6(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[Z6(t,e),":list="].join("")]:[...n,[Z6(t,e),":list=",Z6(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[Z6(n,e),t,Z6(o,e)].join("")]:[[r,Z6(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,Z6(t,e)]:[...n,[Z6(t,e),"=",Z6(r,e)].join("")]}}(t),o={};for(const[a,l]of Object.entries(e))n(a)||(o[a]=l);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?Z6(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?Z6(n,t)+"[]":o.reduce(r(n),[]).join("&"):Z6(n,t)+"="+Z6(o,t)})).filter((e=>e.length>0)).join("&")}function l8(e,t){var n;t={decode:!0,...t};let[r,o]=G6(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:i8(o8(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:e8(o,t)}:{}}}function s8(e,t){t={encode:!0,strict:!0,[Q6]:!0,...t};const n=n8(e.url).split("?")[0]||"";let r=a8({...i8(o8(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[Q6]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function c8(e,t,n){n={parseFragmentIdentifier:!0,[Q6]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=l8(e,n);return s8({url:r,query:X6(o,t),fragmentIdentifier:i},n)}const u8=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(e,t,n){return c8(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:o8,parse:i8,parseUrl:l8,pick:c8,stringify:a8,stringifyUrl:s8},Symbol.toStringTag,{value:"Module"})),d8=()=>{const[e,t]=U.useState((()=>{try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}})());return U.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),n=e=>{t(e.matches)};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}),[]),e},f8={dark:{colorPrimary:"#007AFF",colorPrimaryActive:"#1554ad",colorPrimaryBg:"#111a2c",colorPrimaryBgHover:"#112545",colorPrimaryBorder:"#15325b",colorPrimaryBorderHover:"#15417e",colorPrimaryHover:"#3c89e8",colorPrimaryText:"#1668dc",colorPrimaryTextActive:"#1554ad",colorPrimaryTextHover:"#3c89e8"},light:{colorPrimary:"#007AFF",colorPrimaryActive:"#0958d9",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorPrimaryTextHover:"#4096ff"}},p8={dark:{colorBgContainer:"#1f1f1f",colorBgElevated:"#222",colorBgLayout:"#181818",colorBgSpotlight:"#444",colorBorder:"#444",colorBorderSecondary:"#333",colorFill:"rgb(255 255 255 / 18%)",colorFillQuaternary:"rgb(255 255 255 / 4%)",colorFillSecondary:"rgb(255 255 255 / 12%)",colorFillTertiary:"rgb(255 255 255 / 8%)",colorNeutral:"#666",colorText:"rgb(255 255 255 / 85%)",colorTextQuaternary:"rgb(255 255 255 / 25%)",colorTextSecondary:"rgb(255 255 255 / 65%)",colorTextTertiary:"rgb(255 255 255 / 45%)"},light:{colorBgContainer:"#fff",colorBgElevated:"#fff",colorBgLayout:"#f7f7f7",colorBgSpotlight:"rgb(0 0 0 / 85%)",colorBorder:"#ddd",colorBorderSecondary:"#eee",colorFill:"rgb(0 0 0 / 15%)",colorFillQuaternary:"rgb(0 0 0 / 2%)",colorFillSecondary:"rgb(0 0 0 / 6%)",colorFillTertiary:"rgb(0 0 0 / 4%)",colorNeutral:"#666",colorText:"rgb(0 0 0 / 88%)",colorTextQuaternary:"rgb(0 0 0 / 25%)",colorTextSecondary:"rgb(0 0 0 / 65%)",colorTextTertiary:"rgb(0 0 0 / 45%)"}},h8=U.memo((({children:e})=>{const{onSetThemeMode:t,themeMode:n}=k2((e=>({onInit:e.onInit,onSetThemeMode:e.onSetThemeMode,themeMode:e.themeMode}))),r=k2(y2,MX),o=d8();U.useEffect((()=>{const e=String(u8.parseUrl(window.location.href).query.__theme||"");e?(document.body.classList.add(e),t(e)):(document.body.classList.add(o?"dark":"light"),t(o?"dark":"light"))}),[o]);const i=U.useCallback((()=>{let e={},t={};if(r.primaryColor)if("kitchen"===r.primaryColor)e=f8[n];else{const t=bX[r.primaryColor];e=FY({appearance:n,scale:t,type:"Primary"})}if(r.neutralColor)if("kitchen"===r.neutralColor)t=p8[n];else{const e=AY[r.neutralColor];t=RY({appearance:n,scale:e})}return{...e,...t}}),[r.primaryColor,r.neutralColor,n]);return r&&ee.jsx(bQ,{customToken:i,enableWebfonts:r.enableWebFont,themeMode:n,children:e})})),g8=U.memo((({children:e})=>{const t=k2((e=>e.loading));return ee.jsx(h8,{children:!1===t&&e})})),m8=(e,t)=>{if(document.querySelector(t))return;const n=document.createElement("div");n.id=t.replace("#",""),gradioApp().querySelector(e).append(n),kd(n).render(ee.jsx(U.StrictMode,{children:ee.jsx(U.Suspense,{fallback:"loading...",children:ee.jsx(g8,{children:ee.jsx(z6,{parentId:e})})})}))},b8=U.memo((({parentId:e})=>{const t=U.useRef(null),[n,r]=U.useState(""),{styles:o,theme:i}=d6(),a=(e=>{const[t,n]=U.useState("");return U.useEffect((()=>{const t={attributes:!0,characterData:!0,childList:!0,subtree:!0},r=new MutationObserver((t=>{for(const r of t)if("attributes"===r.type){const t=document.querySelector(e);n(t.value)}})),o=document.querySelector(e);return o&&(r.observe(o,t),n(o.value)),()=>{r.disconnect()}}),[e]),t})(`${e} label textarea`),l=U.useMemo((()=>gradioApp().querySelector(`${e} label textarea`)),[e]),s=(c=l,u=sq(Gq((function(){var e=Rq(c);return e?{width:e.clientWidth,height:e.clientHeight}:void 0})),2),d=u[0],f=u[1],tV((function(){var e=Rq(c);if(e){var t=new sv((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;f({width:n,height:r})}))}));return t.observe(e),function(){t.disconnect()}}}),[],c),d);var c,u,d,f;const p=function(e,t){void 0===t&&(t=function(){return!0});var n=sq(Gq(),2),r=n[0],o=n[1],i=dq(t);return Mq((function(){var t=Rq(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},i.current(e)&&o(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),r}(l),h=U.useCallback((e=>{r(e.target.value)}),[]),g=U.useCallback((()=>l.clientHeight<l.scrollHeight?void 0===(null==s?void 0:s.width)?"":(null==s?void 0:s.width)+6:void 0===(null==s?void 0:s.width)?"":(null==s?void 0:s.width)+2),[l.clientWidth]);return U.useEffect((()=>{t.current.scroll(0,(null==p?void 0:p.top)||0)}),[null==p?void 0:p.top]),U.useEffect((()=>(l.addEventListener("change",h),()=>{l.removeEventListener("change",h)})),[]),U.useEffect((()=>{i&&(l.style.color="transparent",l.style.caretColor=i.colorSuccess)}),[i]),U.useEffect((()=>{r(a)}),[a]),ee.jsx("div",{className:o.container,"data-code-type":"highlighter",ref:t,style:{height:null==s?void 0:s.height,width:g()},children:ee.jsx(f6,{children:n})})})),v8=U.memo((({children:e})=>{const t=k2((e=>e.loading));return ee.jsx(h8,{children:!1===t&&e})})),y8=(e,t)=>{if(document.querySelector(t))return;const n=document.createElement("div");n.id=t.replace("#",""),gradioApp().querySelector(e).insertBefore(n,gradioApp().querySelector(e).firstChild),kd(n).render(ee.jsx(U.StrictMode,{children:ee.jsx(U.Suspense,{fallback:"loading...",children:ee.jsx(v8,{children:ee.jsx(b8,{parentId:e})})})}))},w8='\n<svg\n class="lucide lucide-arrow-right"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M5 12h14" />\n <path d="m12 5 7 7-7 7" />\n</svg>\n',x8=(e,t,n,r)=>{var o;if((null==e?void 0:e.textContent)&&n)for(const i of t)(null==(o=null==e?void 0:e.textContent)?void 0:o.includes(i))&&(e.innerHTML=n.replace('width="24"',`width="${r}"`).replace('height="24"',`height="${r}"`))},k8=()=>{for(const e of document.querySelectorAll("button"))x8(e,["🖌️"],'\n<svg\n class="lucide lucide-square-pen"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />\n <path d="M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z" />\n</svg>\n',16),x8(e,["🗃️"],'\n<svg\n class="lucide lucide-file-archive"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v18" />\n <path d="M14 2v4a2 2 0 0 0 2 2h4" />\n <circle cx="10" cy="20" r="2" />\n <path d="M10 7V6" />\n <path d="M10 12v-1" />\n <path d="M10 18v-2" />\n</svg>\n',16),x8(e,["🖼️"],'\n<svg\n class="lucide lucide-image"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />\n <circle cx="9" cy="9" r="2" />\n <path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />\n</svg>\n',16),x8(e,["🎨️"],'\n<svg\n class="lucide lucide-brush"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08" />\n <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" />\n</svg>\n',16),x8(e,["📂"],'\n<svg\n class="lucide lucide-folder-closed"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" />\n <path d="M2 10h20" />\n</svg>\n',16),x8(e,["🔄","🔁","♻️"],'\n<svg\n class="lucide lucide-refresh-ccw"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />\n <path d="M3 3v5h5" />\n <path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16" />\n <path d="M16 16h5v5" />\n</svg>\n',16),x8(e,["↙️"],'\n<svg\n class="lucide lucide-arrow-down-left"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M17 7 7 17" />\n <path d="M17 17H7V7" />\n</svg>\n',16),x8(e,["⤴"],'\n<svg\n class="lucide lucide-corner-right-up"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <polyline points="10 9 15 4 20 9" />\n <path d="M4 20h7a4 4 0 0 0 4-4V4" />\n</svg>\n',16),x8(e,["↕️"],'\n<svg\n class="lucide lucide-arrow-down-wide-narrow"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m3 16 4 4 4-4" />\n <path d="M7 20V4" />\n <path d="M11 4h10" />\n <path d="M11 8h7" />\n <path d="M11 12h4" />\n</svg>\n',16),x8(e,["🗑️"],'\n<svg\n class="lucide lucide-trash"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M3 6h18" />\n <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" />\n <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" />\n</svg>\n',16),x8(e,["📋"],'\n<svg\n class="lucide lucide-clipboard-list"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="8" height="4" x="8" y="2" rx="1" ry="1" />\n <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />\n <path d="M12 11h4" />\n <path d="M12 16h4" />\n <path d="M8 11h.01" />\n <path d="M8 16h.01" />\n</svg>\n',16),x8(e,["💾"],'\n<svg\n class="lucide lucide-save"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" />\n <path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" />\n <path d="M7 3v4a1 1 0 0 0 1 1h7" />\n</svg>\n',16),x8(e,["🎲️"],'\n<svg\n class="lucide lucide-dices"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="12" height="12" x="2" y="10" rx="2" ry="2" />\n <path d="m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6" />\n <path d="M6 18h.01" />\n <path d="M10 14h.01" />\n <path d="M15 6h.01" />\n <path d="M18 9h.01" />\n</svg>\n',16),x8(e,["🪄"],'\n<svg\n class="lucide lucide-wand-sparkles"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72" />\n <path d="m14 7 3 3" />\n <path d="M5 6v4" />\n <path d="M19 14v4" />\n <path d="M10 2v2" />\n <path d="M7 8H3" />\n <path d="M21 16h-4" />\n <path d="M11 3H9" />\n</svg>\n',16),x8(e,["⚙️"],'\n<svg\n class="lucide lucide-settings"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <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" />\n <circle cx="12" cy="12" r="3" />\n</svg>\n',16),x8(e,["➡️"],w8,16),x8(e,["⇅"],'\n<svg\n class="lucide lucide-arrow-up-down"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21 16-4 4-4-4" />\n <path d="M17 20V4" />\n <path d="m3 8 4-4 4 4" />\n <path d="M7 4v16" />\n</svg>\n',16),x8(e,["⇄"],'\n<svg\n class="lucide lucide-arrow-right-left"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m16 3 4 4-4 4" />\n <path d="M20 7H4" />\n <path d="m8 21-4-4 4-4" />\n <path d="M4 17h16" />\n</svg>\n',16),x8(e,["🎴"],'\n<svg\n class="lucide lucide-panel-right"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" />\n <path d="M15 3v18" />\n</svg>\n',16),x8(e,["🌀"],'\n<svg\n class="lucide lucide-archive-restore"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="20" height="5" x="2" y="3" rx="1" />\n <path d="M4 8v11a2 2 0 0 0 2 2h2" />\n <path d="M20 8v11a2 2 0 0 1-2 2h-2" />\n <path d="m9 15 3-3 3 3" />\n <path d="M12 12v9" />\n</svg>\n',16),x8(e,["💥"],'\n<svg\n class="lucide lucide-play"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <polygon points="6 3 20 12 6 21 6 3" />\n</svg>\n',16),x8(e,["📷"],'\n<svg\n class="lucide lucide-webcam"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <circle cx="12" cy="10" r="8" />\n <circle cx="12" cy="10" r="3" />\n <path d="M7 22h10" />\n <path d="M12 22v-4" />\n</svg>\n',16),x8(e,["📝"],'\n<svg\n class="lucide lucide-laptop-minimal"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="12" x="3" y="4" rx="2" ry="2" />\n <line x1="2" x2="22" y1="20" y2="20" />\n</svg>\n',16),x8(e,["📐"],'\n<svg\n class="lucide lucide-pencil-ruler"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m15 5 4 4" />\n <path d="M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13" />\n <path d="m8 6 2-2" />\n <path d="m2 22 5.5-1.5L21.17 6.83a2.82 2.82 0 0 0-4-4L3.5 16.5Z" />\n <path d="m18 16 2-2" />\n <path d="m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17" />\n</svg>\n',16),x8(e,["⬇️"],'\n<svg\n class="lucide lucide-arrow-down"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M12 5v14" />\n <path d="m19 12-7 7-7-7" />\n</svg>\n',16),x8(e,["↩"],'\n<svg\n class="lucide lucide-undo"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M3 7v6h6" />\n <path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" />\n</svg>\n',16),x8(e,["📒"],'\n<svg\n class="lucide lucide-book"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20" />\n</svg>\n',16),x8(e,["📎"],'\n<svg\n class="lucide lucide-paperclip"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48" />\n</svg>\n',16),x8(e,["📦"],'\n<svg\n class="lucide lucide-box"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" />\n <path d="m3.3 7 8.7 5 8.7-5" />\n <path d="M12 22V12" />\n</svg>\n',16),x8(e,["💞"],'\n<svg\n class="lucide lucide-share-2"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <circle cx="18" cy="5" r="3" />\n <circle cx="6" cy="12" r="3" />\n <circle cx="18" cy="19" r="3" />\n <line x1="8.59" x2="15.42" y1="13.51" y2="17.49" />\n <line x1="15.41" x2="8.59" y1="6.51" y2="10.49" />\n</svg>\n',16),x8(e,["✨"],'\n<svg\n class="lucide lucide-scaling"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />\n <path d="M14 15H9v-5" />\n <path d="M16 3h5v5" />\n <path d="M21 3 9 15" />\n</svg>\n',16);for(const e of document.querySelectorAll("span"))x8(e,["⤡"],'\n<svg\n class="lucide lucide-maximize"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M8 3H5a2 2 0 0 0-2 2v3" />\n <path d="M21 8V5a2 2 0 0 0-2-2h-3" />\n <path d="M3 16v3a2 2 0 0 0 2 2h3" />\n <path d="M16 21h3a2 2 0 0 0 2-2v-3" />\n</svg>\n',36),x8(e,["⊞"],'\n<svg\n class="lucide lucide-grid-2x2"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" />\n <path d="M3 12h18" />\n <path d="M12 3v18" />\n</svg>\n',36),x8(e,["🖫"],'\n<svg\n class="lucide lucide-download"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />\n <polyline points="7 10 12 15 17 10" />\n <line x1="12" x2="12" y1="15" y2="3" />\n</svg>\n',36),x8(e,["×"],'\n<svg\n class="lucide lucide-x"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M18 6 6 18" />\n <path d="m6 6 12 12" />\n</svg>\n',36);for(const e of document.querySelectorAll("a"))x8(e,["❮"],'\n<svg\n class="lucide lucide-arrow-left"\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m12 19-7-7 7-7" />\n <path d="M19 12H5" />\n</svg>\n',36),x8(e,["❯"],w8,36);fe.success("🤯 [svgIcon] replace")},S8=e=>aH`
|
||
html,
|
||
body,
|
||
#__next,
|
||
.ant-app {
|
||
position: relative;
|
||
overscroll-behavior: none;
|
||
|
||
::-webkit-scrollbar {
|
||
display: none;
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
}
|
||
|
||
.ant-slider-track,
|
||
.ant-tabs-ink-bar,
|
||
.ant-switch-checked {
|
||
background: ${e.colorPrimary} !important;
|
||
}
|
||
|
||
.ant-btn-primary:not(.ant-btn-dangerous) {
|
||
color: ${oq(e.colorPrimary)};
|
||
background: ${e.colorPrimary};
|
||
|
||
&:hover {
|
||
color: ${oq(e.colorPrimary)} !important;
|
||
background: ${e.colorPrimaryHover} !important;
|
||
}
|
||
|
||
&:active {
|
||
color: ${oq(e.colorPrimaryActive)} !important;
|
||
background: ${e.colorPrimaryActive} !important;
|
||
}
|
||
}
|
||
`,C8=e=>aH`
|
||
button {
|
||
cursor: pointer;
|
||
min-width: fit-content !important;
|
||
|
||
&.gradio-button {
|
||
&.tool:not(.hidden) {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 36px;
|
||
min-width: 36px !important;
|
||
max-width: 36px !important;
|
||
height: var(--button-lg-tool-height);
|
||
min-height: var(--button-lg-tool-height) !important;
|
||
max-height: var(--button-lg-tool-height);
|
||
padding: 0;
|
||
|
||
font-size: var(--text-md);
|
||
line-height: 1;
|
||
|
||
background: ${e.colorFillSecondary};
|
||
border: 1px solid ${e.colorBorderSecondary};
|
||
border-radius: ${e.borderRadius}px;
|
||
|
||
&:hover {
|
||
background: ${e.colorFill};
|
||
}
|
||
|
||
&.secondary,
|
||
&.primary {
|
||
overflow: hidden;
|
||
flex: 1;
|
||
|
||
font-size: var(--text-md);
|
||
line-height: 1;
|
||
text-overflow: ellipsis;
|
||
|
||
&:active {
|
||
box-shadow: ${e.boxShadowSecondary};
|
||
}
|
||
}
|
||
}
|
||
|
||
&.secondary {
|
||
font-weight: 500;
|
||
background: ${e.colorFillTertiary};
|
||
border: 1px solid ${e.colorBorderSecondary};
|
||
border-radius: ${e.borderRadius}px !important;
|
||
|
||
&:hover {
|
||
color: ${e.colorText};
|
||
background: ${e.colorFill};
|
||
border-color: ${e.colorBorder};
|
||
}
|
||
}
|
||
|
||
&:not(.tool, .svelte-1p4r00v) {
|
||
&.primary,
|
||
&.secondary {
|
||
&.lg {
|
||
height: var(--button-lg-height) !important;
|
||
min-height: var(--button-lg-height) !important;
|
||
max-height: var(--button-lg-height) !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
&[id$='_generate'] {
|
||
height: var(--button-lg-height) !important;
|
||
min-height: var(--button-lg-height) !important;
|
||
max-height: var(--button-lg-height) !important;
|
||
}
|
||
|
||
&[id$='_interrupt'] {
|
||
min-width: 0;
|
||
|
||
color: var(--button-cancel-text-color) !important;
|
||
|
||
background: ${e.colorError} !important;
|
||
border: 1px solid ${e.colorError};
|
||
border-right: none !important;
|
||
border-radius: ${e.borderRadius}px 0 0 ${e.borderRadius}px !important;
|
||
|
||
&:hover,
|
||
&:active {
|
||
background: ${e.colorErrorHover} !important;
|
||
border: 1px solid ${e.colorErrorHover};
|
||
}
|
||
}
|
||
|
||
&[id$='_skip'] {
|
||
min-width: 0;
|
||
background: ${e.colorBorderSecondary} !important;
|
||
border-radius: 0 ${e.borderRadius}px ${e.borderRadius}px 0 !important;
|
||
|
||
&:hover,
|
||
&:active {
|
||
background: ${e.colorBorder} !important;
|
||
}
|
||
}
|
||
|
||
&#interrogate,
|
||
&#deepbooru {
|
||
height: auto !important;
|
||
max-height: fit-content !important;
|
||
|
||
font-size: 14px;
|
||
line-height: inherit;
|
||
white-space: break-spaces;
|
||
}
|
||
}
|
||
}
|
||
|
||
div[id^='image_buttons_'] {
|
||
flex-wrap: wrap;
|
||
|
||
button.gradio-button.tool {
|
||
flex: 1;
|
||
max-width: max(36px, 100%) !important;
|
||
font-size: var(--text-md) !important;
|
||
}
|
||
}
|
||
`,E8=e=>aH`
|
||
.label-wrap {
|
||
transition: padding 400ms ${e.motionEaseOut};
|
||
|
||
> span:not(.icon) {
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
|
||
font-size: var(--text-md);
|
||
font-weight: 600;
|
||
line-height: 1;
|
||
|
||
transition: color 400ms ${e.motionEaseOut};
|
||
|
||
&::before {
|
||
content: '';
|
||
|
||
display: block;
|
||
|
||
width: 8px;
|
||
height: 8px;
|
||
|
||
background: ${e.colorPrimary};
|
||
border-radius: 4px;
|
||
}
|
||
}
|
||
|
||
&.open {
|
||
padding-bottom: 16px;
|
||
border-bottom: 1px dashed ${e.colorBorderSecondary};
|
||
|
||
span {
|
||
color: ${e.colorText};
|
||
}
|
||
}
|
||
}
|
||
`,D8=e=>aH`
|
||
.gradio-group,
|
||
.gradio-row {
|
||
gap: 12px !important;
|
||
}
|
||
|
||
&.gradio-box,
|
||
&.gradio-accordion {
|
||
&:not(.hidden):has(div) {
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
border: 1px solid ${e.colorBorderSecondary} !important;
|
||
}
|
||
}
|
||
|
||
.block.padded {
|
||
&.gradio-box:not(.gradio-accordion) {
|
||
padding: 16px !important;
|
||
}
|
||
}
|
||
|
||
.panel {
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
}
|
||
|
||
.compact,
|
||
.wrap {
|
||
gap: 12px !important;
|
||
}
|
||
|
||
#tabs > div {
|
||
padding: unset;
|
||
border: none;
|
||
}
|
||
|
||
#system_info {
|
||
align-items: flex-start;
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
#img2img_results,
|
||
#txt2img_results,
|
||
#extras_results {
|
||
position: sticky;
|
||
top: 80px !important;
|
||
}
|
||
|
||
#context-menu {
|
||
overflow: hidden;
|
||
|
||
color: ${e.colorText};
|
||
|
||
background: ${e.colorBgElevated} !important;
|
||
border: 1px solid ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadiusLG}px !important;
|
||
box-shadow: ${e.boxShadow} !important;
|
||
|
||
a {
|
||
padding: 8px;
|
||
font-weight: 400;
|
||
color: ${e.colorText};
|
||
|
||
&:hover {
|
||
font-weight: 600;
|
||
color: ${oq(e.colorPrimary)};
|
||
background: ${e.colorPrimary};
|
||
}
|
||
}
|
||
}
|
||
|
||
#tabs_extensions > .tabitem > .gap > .gradio-row {
|
||
overflow: auto;
|
||
}
|
||
|
||
gradio-app #imageARPreview {
|
||
background: ${e.colorError}4d;
|
||
backdrop-filter: brightness(1.2);
|
||
border-color: ${e.colorError};
|
||
border-style: solid;
|
||
border-width: 2px;
|
||
}
|
||
`,$8=e=>aH`
|
||
#root {
|
||
/* sd-webui-prompt-all-in-one */
|
||
.physton-highlight-prompt {
|
||
color: ${e.colorPrimary} !important;
|
||
|
||
-webkit-text-fill-color: ${e.colorPrimary} !important;
|
||
}
|
||
|
||
/* openOutpaint */
|
||
#tab_openOutpaint {
|
||
position: relative;
|
||
height: 100vh;
|
||
padding: 0 !important;
|
||
|
||
#openoutpaint-iframe {
|
||
width: 100% !important;
|
||
}
|
||
}
|
||
|
||
/* autocomplete */
|
||
.autocompleteResults {
|
||
min-width: 400px;
|
||
|
||
font-family: ${e.fontFamilyCode};
|
||
font-size: 12px;
|
||
|
||
background: ${e.colorBgElevated} !important;
|
||
border-color: ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
box-shadow: ${e.boxShadow};
|
||
|
||
ul {
|
||
padding: 0 !important;
|
||
}
|
||
|
||
li {
|
||
border-bottom: 1px solid ${e.colorBorder};
|
||
|
||
&:hover {
|
||
background: ${e.colorFillSecondary} !important;
|
||
}
|
||
|
||
&:nth-of-type(odd) {
|
||
background: transparent !important;
|
||
|
||
&:hover {
|
||
background: ${e.colorFillSecondary} !important;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
/* ADetailer */
|
||
[id*='img_adetailer_ad_toprow_prompt'] {
|
||
margin-bottom: var(--spacing-lg);
|
||
}
|
||
|
||
[id*='_adetailer_ad_detection_accordion'].block.padded.gradio-accordion,
|
||
[id*='_adetailer_ad_mask_preprocessing_accordion'].block.padded.gradio-accordion,
|
||
[id*='_adetailer_ad_inpainting_accordion'].block.padded.gradio-accordion {
|
||
margin: var(--spacing-lg) 0 !important;
|
||
|
||
.label-wrap.open {
|
||
margin-bottom: 0;
|
||
padding-bottom: 8px;
|
||
}
|
||
}
|
||
|
||
/* ControlNet */
|
||
[id$='img_controlnet'] {
|
||
.cnet-badge.primary {
|
||
font-size: var(--text-xs);
|
||
line-height: 1.3;
|
||
color: var(--body-background-fill);
|
||
background-color: ${e.colorSuccess};
|
||
}
|
||
|
||
.tab-nav button {
|
||
&.cnet-unit-active,
|
||
&.selected.cnet-unit-active {
|
||
color: ${e.colorSuccess} !important;
|
||
}
|
||
}
|
||
|
||
.tabitem {
|
||
.controlnet_image_controls {
|
||
margin-top: 8px;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Aspect Ratio selector */
|
||
[id$='2img_container_aspect_ratio'] {
|
||
padding: 16px;
|
||
background-color: ${e.colorBgContainer};
|
||
border: 1px solid var(--block-border-color);
|
||
border-radius: ${e.borderRadius}px;
|
||
|
||
#arc_empty_space {
|
||
display: none;
|
||
}
|
||
|
||
button[id$='_calculator_button'] {
|
||
max-width: fit-content !important;
|
||
height: var(--button-lg-tool-height) !important;
|
||
min-height: var(--button-lg-tool-height) !important;
|
||
max-height: var(--button-lg-tool-height) !important;
|
||
padding: 0 1.25em !important;
|
||
|
||
font-size: var(--text-md);
|
||
font-weight: 500;
|
||
|
||
border: none;
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
#arc_panel {
|
||
padding: 8px 0 0 !important;
|
||
|
||
.block.gradio-markdown.padded.hide-container {
|
||
.hide,
|
||
.pending {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.gradio-column:has([id$='_arc_tool_buttons']) {
|
||
justify-content: space-between;
|
||
}
|
||
}
|
||
}
|
||
|
||
[id$='2img_container_aspect_ratio'],
|
||
[id$='2img_row_resolutions'] {
|
||
gap: 0.5em !important;
|
||
}
|
||
|
||
/* Inpaint Anything */
|
||
#padding_btn {
|
||
margin-top: auto;
|
||
}
|
||
|
||
/* Model Toolkit */
|
||
#tab_checkpoint_toolkit {
|
||
button {
|
||
align-self: end;
|
||
}
|
||
}
|
||
|
||
/* WebUI txt2img/img2img Extra options */
|
||
.gr-group:has([id^='extra_options_'].gradio-accordion) {
|
||
padding: 4px 0 !important;
|
||
}
|
||
|
||
.gr-group:has([id^='extra_options_'].gradio-group) {
|
||
padding: 0 0 4px !important;
|
||
}
|
||
|
||
.gr-group:has([id^='extra_options_']) {
|
||
background: transparent;
|
||
|
||
[id^='extra_options_'] {
|
||
&.gradio-accordion {
|
||
background-color: ${e.colorBgContainer};
|
||
}
|
||
|
||
&.gradio-group {
|
||
padding: 16px;
|
||
}
|
||
|
||
.styler,
|
||
.gap,
|
||
.form {
|
||
gap: 16px;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* WebUI Soft inpainting */
|
||
.gr-group:has(#soft_inpainting_enabled) {
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
|
||
#soft_inpainting_enabled {
|
||
&.gradio-accordion {
|
||
background-color: ${e.colorBgContainer};
|
||
}
|
||
|
||
.styler {
|
||
gap: 16px;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* ComfyUI */
|
||
#comfyui_webui_container {
|
||
height: calc(100% - ${sse}px) !important;
|
||
}
|
||
}
|
||
`,O8=e=>{const t=aH`
|
||
background-color: ${e.colorBgContainer};
|
||
background-image: linear-gradient(45deg, ${e.colorFillTertiary} 25%, transparent 25%),
|
||
linear-gradient(-45deg, ${e.colorFillTertiary} 25%, transparent 25%),
|
||
linear-gradient(45deg, transparent 75%, ${e.colorFillTertiary} 75%),
|
||
linear-gradient(-45deg, transparent 75%, ${e.colorFillTertiary} 75%);
|
||
background-position:
|
||
0 0,
|
||
0 10px,
|
||
10px -10px,
|
||
-10px 0;
|
||
background-size: 20px 20px;
|
||
border: 2px solid ${e.colorBorderSecondary} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
`;return aH`
|
||
.livePreview,
|
||
.gradio-gallery,
|
||
.gradio-image,
|
||
.gradio-video,
|
||
.gradio-file {
|
||
${t}
|
||
}
|
||
|
||
div.block {
|
||
&.livePreview,
|
||
&.gradio-gallery,
|
||
&.gradio-image,
|
||
&.gradio-video,
|
||
&.gradio-file {
|
||
${t}
|
||
}
|
||
}
|
||
|
||
div.svelte-awbtu4 {
|
||
.livePreview,
|
||
.gradio-gallery,
|
||
.gradio-image,
|
||
.gradio-video,
|
||
.gradio-file {
|
||
${t}
|
||
}
|
||
}
|
||
|
||
.block.gradio-gallery {
|
||
.thumbnail-item {
|
||
position: unset;
|
||
background: ${e.colorBgContainer} !important;
|
||
box-shadow: none;
|
||
|
||
&.thumbnail-small {
|
||
transform: none;
|
||
border-radius: 4px;
|
||
transition: var(--button-transition);
|
||
}
|
||
|
||
&.thumbnail-lg {
|
||
border-radius: 5px;
|
||
transition: var(--button-transition);
|
||
}
|
||
|
||
&:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow:
|
||
0 0 0 1px ${e.colorBorder},
|
||
var(--thumbnail-shadow);
|
||
}
|
||
|
||
&.thumbnail-small:hover {
|
||
transform: none;
|
||
box-shadow: 0 0 0 1px ${e.colorBorder};
|
||
}
|
||
}
|
||
|
||
> .grid-wrap {
|
||
margin: -52px;
|
||
padding: 60px;
|
||
}
|
||
}
|
||
|
||
[id$='_gallery_container'] {
|
||
min-height: 470px;
|
||
|
||
> div:not([id$='_generate_box']) {
|
||
flex-grow: 1;
|
||
|
||
[id$='_gallery'] {
|
||
flex-grow: 1;
|
||
}
|
||
}
|
||
}
|
||
`},_8=e=>aH`
|
||
.block.gradio-checkbox {
|
||
margin: 0 !important;
|
||
}
|
||
|
||
.block.gradio-slider {
|
||
input[type='number'] {
|
||
margin-left: 12px;
|
||
}
|
||
}
|
||
|
||
label:has(input[type='radio']),
|
||
label:has(input[type='checkbox']) {
|
||
border-radius: ${e.borderRadius}px !important;
|
||
}
|
||
|
||
input {
|
||
&:not([type='range'], [type='checkbox'], [type='number'], [type='radio'], .border-none) {
|
||
resize: none;
|
||
|
||
overflow: hidden;
|
||
|
||
width: 100%;
|
||
height: var(--button-lg-tool-height) !important;
|
||
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
&[type='checkbox'],
|
||
&[type='radio'] {
|
||
cursor: pointer;
|
||
|
||
flex: 0;
|
||
|
||
width: ${e.fontSize}px;
|
||
min-width: ${e.fontSize}px;
|
||
max-width: ${e.fontSize}px;
|
||
height: ${e.fontSize}px;
|
||
min-height: ${e.fontSize}px;
|
||
max-height: ${e.fontSize}px;
|
||
|
||
appearance: none !important;
|
||
}
|
||
|
||
&[type='checkbox'] {
|
||
--ring-color: transparent;
|
||
|
||
position: relative;
|
||
|
||
line-height: var(--line-sm);
|
||
|
||
background-color: ${e.colorFillTertiary} !important;
|
||
border: 1px solid ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadiusSM}px !important;
|
||
|
||
&:checked {
|
||
background-color: ${e.colorPrimary} !important;
|
||
background-image: var(--checkbox-check) !important;
|
||
border-color: ${e.colorPrimaryBorder} !important;
|
||
}
|
||
}
|
||
|
||
&[type='number'] {
|
||
height: var(--button-lg-tool-height) !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
}
|
||
`,I8=e=>aH`
|
||
#lightboxModal {
|
||
background-color: var(--popup-overlay) !important;
|
||
backdrop-filter: saturate(120%) blur(80px);
|
||
outline: none;
|
||
|
||
> img:not(.modalImageFullscreen) {
|
||
box-shadow: var(--lightbox-img-shadow);
|
||
}
|
||
}
|
||
|
||
.modalControls {
|
||
transition: var(--button-transition) !important;
|
||
|
||
&:hover {
|
||
background-color: transparent !important;
|
||
}
|
||
|
||
.cursor {
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
justify-content: center !important;
|
||
|
||
width: 32px !important;
|
||
height: 32px !important;
|
||
|
||
background-color: ${e.colorFillTertiary};
|
||
backdrop-filter: saturate(120%) blur(80px);
|
||
border-radius: ${e.borderRadius}px;
|
||
|
||
> svg {
|
||
width: 20px !important;
|
||
height: 20px !important;
|
||
}
|
||
|
||
&:hover {
|
||
color: ${e.colorPrimary} !important;
|
||
background-color: ${e.colorFillSecondary} !important;
|
||
}
|
||
}
|
||
|
||
span {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 32px !important;
|
||
|
||
font-size: 35px !important;
|
||
color: ${e.colorTextDescription} !important;
|
||
text-align: center;
|
||
text-shadow: none !important;
|
||
|
||
transition: var(--button-transition);
|
||
|
||
&:hover,
|
||
&:focus {
|
||
color: ${e.colorPrimary} !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
.modalPrev,
|
||
.modalNext {
|
||
top: 0 !important;
|
||
transform: translate(0, calc(50% + 63px)) !important;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
width: 44px !important;
|
||
height: 50%;
|
||
padding: 8px !important;
|
||
|
||
font-size: 20px !important;
|
||
font-weight: 600 !important;
|
||
color: ${e.colorTextDescription} !important;
|
||
|
||
background-color: ${e.colorFillTertiary};
|
||
border-radius: 0 ${e.borderRadius}px ${e.borderRadius}px 0 !important;
|
||
|
||
transition: var(--button-transition) !important;
|
||
|
||
svg {
|
||
width: 20px !important;
|
||
height: 20px !important;
|
||
}
|
||
}
|
||
|
||
.modalNext {
|
||
border-radius: ${e.borderRadius}px 0 0 ${e.borderRadius}px !important;
|
||
}
|
||
|
||
.modalPrev:hover,
|
||
.modalNext:hover {
|
||
color: ${e.colorPrimary} !important;
|
||
background-color: ${e.colorFillSecondary} !important;
|
||
}
|
||
`,N8=e=>aH`
|
||
.gradio-dropdown {
|
||
.wrap,
|
||
input {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.container .wrap {
|
||
.wrap-inner input {
|
||
font-size: var(--text-sm);
|
||
line-height: 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
.dropdown-arrow {
|
||
margin: 0 !important;
|
||
}
|
||
|
||
ul.options {
|
||
display: block !important;
|
||
|
||
margin: 0 !important;
|
||
padding: 4px !important;
|
||
|
||
background: ${e.colorBgElevated} !important;
|
||
border: 1px solid ${e.colorBorder} !important;
|
||
border-radius: ${e.borderRadius}px !important;
|
||
box-shadow: ${e.boxShadow};
|
||
|
||
li {
|
||
overflow: hidden;
|
||
display: block !important;
|
||
|
||
padding: 4px 8px !important;
|
||
|
||
line-height: 1 !important;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
border-radius: ${e.borderRadiusSM}px !important;
|
||
|
||
&.selected {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFill} !important;
|
||
}
|
||
|
||
&.active:not(.selected) {
|
||
color: black !important;
|
||
background: ${e.yellow} !important;
|
||
}
|
||
|
||
&:hover {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFillSecondary} !important;
|
||
}
|
||
}
|
||
}
|
||
`,j8=e=>aH`
|
||
.global-popup {
|
||
.global-popup-close {
|
||
background-color: ${e.colorBgMask} !important;
|
||
backdrop-filter: blur(4px);
|
||
|
||
&::before {
|
||
font-size: 24px !important;
|
||
line-height: 24px !important;
|
||
}
|
||
}
|
||
|
||
.global-popup-inner {
|
||
max-height: unset;
|
||
|
||
> div {
|
||
border-radius: ${e.borderRadiusLG}px !important;
|
||
box-shadow: ${e.boxShadow} !important;
|
||
}
|
||
|
||
.popup-metadata {
|
||
overflow: auto;
|
||
|
||
width: 75vw;
|
||
max-height: 85vh;
|
||
padding: 32px;
|
||
|
||
font-family: ${e.fontFamilyCode};
|
||
color: ${e.colorText};
|
||
word-break: break-word;
|
||
|
||
background: ${e.colorBgLayout};
|
||
border-radius: ${e.borderRadiusLG}px !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
box-shadow: ${e.boxShadow} !important;
|
||
}
|
||
|
||
.edit-user-metadata {
|
||
> div:not(.edit-user-metadata-buttons):not(:last-child) {
|
||
margin: 0 0 8px;
|
||
}
|
||
|
||
.standalone-card-preview {
|
||
cursor: default;
|
||
display: contents;
|
||
width: 100%;
|
||
height: auto;
|
||
|
||
> img {
|
||
position: relative;
|
||
}
|
||
}
|
||
}
|
||
|
||
.popup-dialog,
|
||
.edit-user-metadata {
|
||
width: 50vw !important;
|
||
}
|
||
}
|
||
}
|
||
`,P8=sH`
|
||
0% {
|
||
background-position: 0 0;
|
||
}
|
||
100% {
|
||
background-position: 24px 24px;
|
||
}
|
||
`,T8=e=>aH`
|
||
.progress-container {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.eta-bar {
|
||
overflow: hidden;
|
||
|
||
opacity: 1 !important;
|
||
background: ${e.colorFillQuaternary} !important;
|
||
backdrop-filter: saturate(180%) blur(10px);
|
||
border: 1px solid ${e.colorBorder};
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
.wrap.svelte-j1gjts:has(div) {
|
||
overflow: hidden;
|
||
|
||
min-height: 36px;
|
||
|
||
background: ${e.colorBgContainer} !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
box-shadow: 0 0 0 2px ${e.colorBgContainer};
|
||
|
||
.meta-text,
|
||
.meta-text-center {
|
||
font-size: 12px;
|
||
color: ${e.colorTextDescription};
|
||
}
|
||
}
|
||
|
||
.progressDiv {
|
||
position: relative !important;
|
||
top: 0 !important;
|
||
overflow: hidden;
|
||
background: ${e.colorFillSecondary} !important;
|
||
|
||
> .progress {
|
||
position: relative;
|
||
|
||
overflow: hidden;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
|
||
font-family: var(--font-mono);
|
||
font-size: var(--text-md);
|
||
font-weight: 600 !important;
|
||
text-shadow: 0 1px 4px rgb(0 0 0 / 80%);
|
||
|
||
&::before {
|
||
content: '';
|
||
|
||
position: absolute;
|
||
z-index: 1;
|
||
inset: 0;
|
||
|
||
overflow: hidden;
|
||
|
||
background-image: linear-gradient(
|
||
-45deg,
|
||
rgba(255, 255, 255, 20%) 25%,
|
||
transparent 25%,
|
||
transparent 50%,
|
||
rgba(255, 255, 255, 20%) 50%,
|
||
rgba(255, 255, 255, 20%) 75%,
|
||
transparent 75%,
|
||
transparent
|
||
);
|
||
background-size: 24px 24px;
|
||
|
||
animation: ${P8} 2s linear infinite;
|
||
}
|
||
|
||
&::after {
|
||
content: '';
|
||
|
||
position: absolute;
|
||
z-index: 1;
|
||
inset: 0;
|
||
|
||
overflow: hidden;
|
||
|
||
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 40%), transparent 50%);
|
||
}
|
||
}
|
||
}
|
||
`,F8=e=>aH`
|
||
input[type='range'] {
|
||
cursor: pointer;
|
||
|
||
height: 3px;
|
||
margin-top: 8px;
|
||
|
||
appearance: none;
|
||
background: ${e.colorTextQuaternary};
|
||
border-radius: ${e.borderRadiusXS}px;
|
||
outline: none;
|
||
|
||
transition: var(--button-transition);
|
||
|
||
&::-webkit-slider-thumb {
|
||
width: 12px;
|
||
height: 16px;
|
||
|
||
appearance: none;
|
||
background: ${e.colorPrimary};
|
||
border: 1px solid ${e.colorPrimary};
|
||
border-radius: ${e.borderRadiusSM}px;
|
||
|
||
transition: var(--button-transition);
|
||
|
||
&:hover,
|
||
&:active {
|
||
background: ${e.colorPrimaryHover};
|
||
border-color: ${e.colorPrimaryHover};
|
||
}
|
||
}
|
||
|
||
&:hover {
|
||
background: ${e.colorPrimaryHover};
|
||
}
|
||
|
||
&:active {
|
||
background: ${e.colorPrimaryHover};
|
||
}
|
||
}
|
||
`,R8=e=>aH`
|
||
table {
|
||
overflow: auto;
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
}
|
||
|
||
th,
|
||
td {
|
||
padding: 12px !important;
|
||
border: 1px solid ${e.colorBorderSecondary} !important;
|
||
}
|
||
|
||
th {
|
||
background: ${e.colorFillQuaternary};
|
||
border-bottom: 4px solid var(--color-border) !important;
|
||
}
|
||
|
||
tr {
|
||
&:nth-of-type(odd) td {
|
||
background: ${e.colorFillQuaternary};
|
||
}
|
||
|
||
&:hover td,
|
||
&:nth-of-type(odd):hover td {
|
||
background: ${e.colorFillSecondary};
|
||
}
|
||
}
|
||
`,A8=e=>aH`
|
||
.tabitem,
|
||
.gradio-tabitem {
|
||
padding: 16px !important;
|
||
background: ${e.colorBgContainer};
|
||
border: none !important;
|
||
border-radius: ${e.borderRadius}px;
|
||
}
|
||
|
||
#tabs {
|
||
> .tabitem.gradio-tabitem {
|
||
background: transparent !important;
|
||
}
|
||
}
|
||
|
||
.tab-nav {
|
||
gap: 8px;
|
||
margin-bottom: 8px;
|
||
border: none !important;
|
||
|
||
button {
|
||
cursor: pointer;
|
||
|
||
display: block;
|
||
flex: 1 !important;
|
||
|
||
min-width: 100px;
|
||
padding: 8px !important;
|
||
|
||
font-size: var(--text-md);
|
||
color: ${e.colorTextTertiary} !important;
|
||
|
||
background: ${e.colorFillTertiary} !important;
|
||
border: none !important;
|
||
border-radius: 4px !important;
|
||
|
||
transition: var(--button-transition);
|
||
|
||
&:hover {
|
||
color: ${e.colorText} !important;
|
||
background: ${e.colorFill} !important;
|
||
border: none !important;
|
||
}
|
||
|
||
&.selected {
|
||
font-weight: 600;
|
||
color: ${e.colorText} !important;
|
||
|
||
background: ${e.colorFillSecondary} !important;
|
||
border: none !important;
|
||
border-bottom: 2px solid ${e.colorPrimary} !important;
|
||
border-bottom-right-radius: 0 !important;
|
||
border-bottom-left-radius: 0 !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
#tab_settings {
|
||
#settings .tab-nav {
|
||
width: 15%;
|
||
|
||
button {
|
||
width: 100%;
|
||
background: transparent !important;
|
||
|
||
&.selected {
|
||
color: ${e.colorPrimary} !important;
|
||
background: transparent !important;
|
||
border: none !important;
|
||
border-radius: 0 !important;
|
||
}
|
||
}
|
||
|
||
.settings-category {
|
||
text-decoration: none;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
#settings_show_all_pages {
|
||
width: auto;
|
||
background: ${e.colorFillTertiary} !important;
|
||
border: 1px solid ${e.colorBorderSecondary};
|
||
border-radius: ${e.borderRadius}px !important;
|
||
|
||
&:hover {
|
||
background: ${e.colorFill} !important;
|
||
border-color: ${e.colorBorder} !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
.tabitem {
|
||
margin-left: 15%;
|
||
}
|
||
|
||
#settings_search {
|
||
margin: 0 0 var(--spacing-xl);
|
||
}
|
||
}
|
||
`,M8=iH((({theme:e})=>{return[(t=e,aH`
|
||
:root,
|
||
.dark {
|
||
--primary-50: ${t.geekblue1};
|
||
--primary-100: ${t.geekblue2};
|
||
--primary-200: ${t.geekblue3};
|
||
--primary-300: ${t.geekblue4};
|
||
--primary-400: ${t.geekblue5};
|
||
--primary-500: ${t.geekblue6};
|
||
--primary-600: ${t.geekblue7};
|
||
--primary-700: ${t.geekblue8};
|
||
--primary-800: ${t.geekblue9};
|
||
--primary-900: ${t.geekblue10};
|
||
--primary-950: ${t.geekblue11};
|
||
--secondary-50: ${t.geekblue1};
|
||
--secondary-100: ${t.geekblue2};
|
||
--secondary-200: ${t.geekblue3};
|
||
--secondary-300: ${t.geekblue4};
|
||
--secondary-400: ${t.geekblue5};
|
||
--secondary-500: ${t.geekblue6};
|
||
--secondary-600: ${t.geekblue7};
|
||
--secondary-700: ${t.geekblue8};
|
||
--secondary-800: ${t.geekblue9};
|
||
--secondary-900: ${t.geekblue10};
|
||
--secondary-950: ${t.geekblue11};
|
||
--neutral-50: ${t.colorText};
|
||
--neutral-100: ${t.colorText};
|
||
--neutral-200: ${t.colorTextSecondary};
|
||
--neutral-300: ${t.colorTextTertiary};
|
||
--neutral-400: ${t.colorTextQuaternary};
|
||
--neutral-500: ${t.colorFill};
|
||
--neutral-600: ${t.colorFillSecondary};
|
||
--neutral-700: ${t.colorFillTertiary};
|
||
--neutral-800: ${t.colorFillQuaternary};
|
||
--neutral-900: ${t.colorBgElevated};
|
||
--neutral-950: ${t.colorBgContainer};
|
||
--spacing-xxs: ${t.paddingXXS/4}px;
|
||
--spacing-xs: ${t.paddingXS/4}px;
|
||
--spacing-sm: ${t.paddingSM/4}px;
|
||
--spacing-md: ${t.paddingMD/4}px;
|
||
--spacing-lg: ${t.paddingLG/4}px;
|
||
--spacing-xl: ${t.paddingXL/4}px;
|
||
--spacing-xxl: ${t.paddingXL/4}px;
|
||
--radius-xxs: ${t.borderRadiusXS}px;
|
||
--radius-xs: ${t.borderRadiusXS}px;
|
||
--radius-sm: ${t.borderRadiusSM}px;
|
||
--radius-md: ${t.borderRadius}px;
|
||
--radius-lg: ${t.borderRadius}px;
|
||
--radius-xl: ${t.borderRadiusLG}px;
|
||
--radius-xxl: ${t.borderRadiusLG}px;
|
||
--text-xxs: ${t.fontSizeSM}px;
|
||
--text-xs: ${t.fontSizeSM}px;
|
||
--text-sm: ${t.fontSize}px;
|
||
--text-md: ${t.fontSize}px;
|
||
--text-lg: ${t.fontSizeLG}px;
|
||
--text-xl: ${t.fontSizeXL}px;
|
||
--text-xxl: ${t.fontSizeXL}px;
|
||
--font: ${t.fontFamily};
|
||
--font-mono: ${t.fontFamilyCode};
|
||
--body-background-fill: ${t.colorBgLayout};
|
||
--body-text-color: ${t.colorText};
|
||
--body-text-size: var(--text-md);
|
||
--body-text-weight: 400;
|
||
--embed-radius: ${t.borderRadius}px;
|
||
--color-accent: ${t.colorPrimary};
|
||
--color-accent-soft: ${t.colorPrimaryHover};
|
||
--background-fill-primary: ${t.colorBgLayout};
|
||
--background-fill-secondary: ${t.colorBgContainer};
|
||
--border-color-accent: ${t.colorBorder};
|
||
--border-color-primary: ${t.colorBorderSecondary};
|
||
--link-text-color: ${t.colorInfoText};
|
||
--link-text-color-active: ${t.colorInfoTextActive};
|
||
--link-text-color-hover: ${t.colorInfoTextHover};
|
||
--link-text-color-visited: ${t.colorInfoText};
|
||
--body-text-color-subdued: ${t.colorTextDescription};
|
||
--shadow-drop: ${t.boxShadowSecondary};
|
||
--shadow-drop-lg: ${t.boxShadow};
|
||
--shadow-inset: ${t.boxShadowSecondary} inset;
|
||
--shadow-spread: 3px;
|
||
--block-background-fill: ${t.colorBgContainer};
|
||
--block-border-color: ${t.colorBorderSecondary};
|
||
--block-border-width: 1px;
|
||
--block-info-text-color: ${t.colorTextSecondary};
|
||
--block-info-text-size: var(--text-sm);
|
||
--block-info-text-weight: 400;
|
||
--block-label-background-fill: ${t.colorFillSecondary};
|
||
--block-label-border-color: ${t.colorBorderSecondary};
|
||
--block-label-border-width: 1px;
|
||
--block-label-shadow: ${t.boxShadowTertiary};
|
||
--block-label-text-color: ${t.colorText} --block-label-margin: 0;
|
||
--block-label-padding: var(--spacing-sm) var(--spacing-lg);
|
||
--block-label-radius: ${t.borderRadius}px;
|
||
--block-label-right-radius: ${t.borderRadius}px;
|
||
--block-label-text-size: var(--text-sm);
|
||
--block-label-text-weight: 400;
|
||
--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);
|
||
--block-radius: ${t.borderRadius}px;
|
||
--block-shadow: none;
|
||
--block-title-background-fill: none;
|
||
--block-title-border-color: none;
|
||
--block-title-border-width: 0;
|
||
--block-title-text-color: ${t.colorText};
|
||
--block-title-padding: 0;
|
||
--block-title-radius: none;
|
||
--block-title-text-size: var(--text-md);
|
||
--block-title-text-weight: 400;
|
||
--container-radius: ${t.borderRadiusLG}px;
|
||
--form-gap-width: 1px;
|
||
--layout-gap: var(--spacing-xxl);
|
||
--panel-background-fill: ${t.colorBgContainer};
|
||
--panel-border-color: ${t.colorBorderSecondary};
|
||
--panel-border-width: 0;
|
||
--section-header-text-size: var(--text-md);
|
||
--section-header-text-weight: 400;
|
||
--chatbot-code-background-color: ${t.colorBgContainer};
|
||
--checkbox-background-color: ${t.colorFillTertiary};
|
||
--checkbox-background-color-focus: ${t.colorFillSecondary};
|
||
--checkbox-background-color-hover: ${t.colorFillSecondary};
|
||
--checkbox-background-color-selected: ${t.colorPrimary};
|
||
--checkbox-border-color: ${t.colorBorderSecondary};
|
||
--checkbox-border-color-focus: ${t.colorBorder};
|
||
--checkbox-border-color-hover: ${t.colorBorder};
|
||
--checkbox-border-color-selected: ${t.colorPrimary};
|
||
--checkbox-border-radius: ${t.borderRadiusXS}px;
|
||
--checkbox-border-width: 1px;
|
||
--checkbox-label-background-fill: ${t.colorFillTertiary};
|
||
--checkbox-label-background-fill-hover: ${t.colorFillSecondary};
|
||
--checkbox-label-background-fill-selected: ${t.colorFillSecondary};
|
||
--checkbox-label-border-color: ${t.colorBorderSecondary};
|
||
--checkbox-label-border-color-hover: ${t.colorBorder};
|
||
--checkbox-label-border-width: 1px;
|
||
--checkbox-label-gap: var(--spacing-lg);
|
||
--checkbox-label-padding: var(--spacing-md) calc(2 * var(--spacing-md));
|
||
--checkbox-label-shadow: none;
|
||
--checkbox-label-text-size: var(--text-md);
|
||
--checkbox-label-text-weight: 400;
|
||
--checkbox-shadow: none;
|
||
--checkbox-label-text-color: ${t.colorText};
|
||
--checkbox-label-text-color-selected: ${t.colorText};
|
||
--error-background-fill: ${t.colorErrorBg};
|
||
--error-border-color: ${t.colorErrorBorder};
|
||
--error-border-width: 1px;
|
||
--error-text-color: ${t.colorErrorText};
|
||
--input-background-fill: ${t.colorFillTertiary};
|
||
--input-background-fill-focus: ${t.colorFillSecondary};
|
||
--input-background-fill-hover: ${t.colorFillSecondary};
|
||
--input-border-color: ${t.colorBorderSecondary};
|
||
--input-border-color-focus: ${t.colorBorder};
|
||
--input-border-color-hover: ${t.colorBorder};
|
||
--input-border-width: 1px;
|
||
--input-padding: var(--spacing-xl);
|
||
--input-placeholder-color: ${t.colorTextQuaternary};
|
||
--input-radius: ${t.borderRadius}px;
|
||
--input-shadow: none;
|
||
--input-shadow-focus: none;
|
||
--input-text-size: var(--text-md);
|
||
--input-text-weight: 400;
|
||
--loader-color: ${t.colorPrimary};
|
||
--prose-text-size: var(--text-md);
|
||
--prose-text-weight: 400;
|
||
--prose-header-text-weight: 600;
|
||
--slider-color: ${t.colorPrimary};
|
||
--stat-background-fill: ${t.geekblue4};
|
||
--table-border-color: ${t.colorBorderSecondary};
|
||
--table-even-background-fill: transparent;
|
||
--table-odd-background-fill: ${t.colorFillTertiary};
|
||
--table-radius: var(--radius-lg);
|
||
--table-row-focus: ${t.colorFillSecondary};
|
||
--button-border-width: 1px;
|
||
--button-cancel-background-fill: ${t.colorError};
|
||
--button-cancel-background-fill-hover: ${t.colorErrorHover};
|
||
--button-cancel-border-color: ${t.colorErrorBorder};
|
||
--button-cancel-border-color-hover: ${t.colorErrorBorderHover};
|
||
--button-cancel-text-color: ${oq(t.colorError)};
|
||
--button-cancel-text-color-hover: ${oq(t.colorError)};
|
||
--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));
|
||
--button-large-radius: ${t.borderRadius}px;
|
||
--button-large-text-size: var(--text-lg);
|
||
--button-large-text-weight: 600;
|
||
--button-primary-background-fill: ${t.colorPrimary};
|
||
--button-primary-background-fill-hover: ${t.colorPrimaryHover};
|
||
--button-primary-border-color: ${t.colorPrimaryBorder};
|
||
--button-primary-border-color-hover: ${t.colorPrimaryBorderHover};
|
||
--button-primary-text-color: ${oq(t.colorPrimary)};
|
||
--button-primary-text-color-hover: ${oq(t.colorPrimary)};
|
||
--button-secondary-background-fill: ${t.colorFillSecondary};
|
||
--button-secondary-background-fill-hover: ${t.colorFill};
|
||
--button-secondary-border-color: ${t.colorBorderSecondary};
|
||
--button-secondary-border-color-hover: ${t.colorBorder};
|
||
--button-secondary-text-color: ${t.colorTextSecondary};
|
||
--button-secondary-text-color-hover: ${t.colorText};
|
||
--button-shadow: none;
|
||
--button-shadow-active: none;
|
||
--button-shadow-hover: none;
|
||
--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));
|
||
--button-small-radius: ${t.borderRadiusSM}px;
|
||
--button-small-text-size: var(--text-md);
|
||
--button-small-text-weight: 400;
|
||
--button-transition: all 0.12s ${t.motionEaseInOut};
|
||
--button-lg-height: 44px;
|
||
--button-lg-tool-height: 36px;
|
||
--popup-overlay: ${t.colorBgMask};
|
||
--thumbnail-shadow: ${t.boxShadow};
|
||
--lightbox-img-shadow: ${t.boxShadowSecondary};
|
||
}
|
||
|
||
.dark {
|
||
--checkbox-check: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
||
--radio-circle: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
||
}
|
||
`),S8(e),C8(e),D8(e),O8(e),_8(e),aH`
|
||
[id$='_settings'] {
|
||
label.svelte-1ojmf70 {
|
||
overflow: hidden;
|
||
display: block !important;
|
||
}
|
||
}
|
||
|
||
label {
|
||
position: relative;
|
||
min-width: 64px;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
|
||
&.svelte-1pie7s6 {
|
||
display: unset !important;
|
||
}
|
||
|
||
> span.svelte-1gfkn6j {
|
||
overflow: hidden;
|
||
width: 100%;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
`,E8(e),N8(e),T8(e),F8(e),R8(e),A8(e),j8(e),$8(e),I8(e),aH`
|
||
@media (max-width: 575px) {
|
||
#quicksettings {
|
||
> div,
|
||
> fieldset {
|
||
flex: 1 !important;
|
||
max-width: unset !important;
|
||
}
|
||
}
|
||
|
||
.tabs {
|
||
.tabitem,
|
||
.gradio-tabitem {
|
||
padding: 8px !important;
|
||
}
|
||
|
||
#img2img_results,
|
||
#txt2img_results,
|
||
#extras_results {
|
||
position: relative;
|
||
top: 0 !important;
|
||
width: 100%;
|
||
|
||
&.mobile {
|
||
margin-top: 8px;
|
||
}
|
||
}
|
||
|
||
[id$='_settings'] {
|
||
width: 100%;
|
||
}
|
||
}
|
||
|
||
#tab_settings {
|
||
#settings .tab-nav {
|
||
width: 35%;
|
||
}
|
||
|
||
.tabitem {
|
||
margin-left: 35%;
|
||
}
|
||
}
|
||
}
|
||
`];var t})),L8=U.memo((()=>(U.useEffect((()=>{try{const e=gradioApp().querySelector("#txt2img_toprow"),t=gradioApp().querySelector("#txt2img_settings"),n=gradioApp().querySelector("#txt2img_generate_box"),r=gradioApp().querySelector("#txt2img_gallery_container");e&&t&&n&&r&&(t.prepend(e),r.prepend(n));const o=gradioApp().querySelector("#img2img_toprow"),i=gradioApp().querySelector("#img2img_settings"),a=gradioApp().querySelector("#img2img_generate_box"),l=gradioApp().querySelector("#img2img_gallery_container");i&&o&&a&&l&&(i.prepend(o),l.prepend(a));const s=gradioApp().querySelector("#extras_generate"),c=gradioApp().querySelector("#extras_results");s&&c&&((null==c?void 0:c.parentNode).id="#extras_gallery_container",c.prepend(s)),fe.success("🤯 [layout] inject - Split Previewer")}catch(e){fe.error("🤯 [layout] inject - Split Previewer",e)}}),[]),null))),z8=oH((({css:e,token:t,stylish:n,isDarkMode:r,responsive:o},{isPromptResizable:i,layoutSplitPreview:a})=>({container:e`
|
||
position: relative;
|
||
flex: 1;
|
||
min-width: ${a?"200px":"0"};
|
||
|
||
.app {
|
||
padding: 0 !important;
|
||
}
|
||
|
||
.gap:has(#quicksettings):first-child {
|
||
gap: 0;
|
||
}
|
||
|
||
.float {
|
||
${n.blur};
|
||
border: none;
|
||
border-top-left-radius: 0;
|
||
border-top-right-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
[id^='html_info_']:has(div.prose) {
|
||
p {
|
||
color: ${t.colorTextDescription} !important;
|
||
}
|
||
}
|
||
|
||
[id^='html_info_']:has(div.prose),
|
||
[id^='html_log_']:has(div.prose) {
|
||
.pending {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
#extras_generate {
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
|
||
[id$='img_styles_dialog'] {
|
||
label {
|
||
white-space: normal;
|
||
}
|
||
|
||
.gradio-row:not(:first-child) {
|
||
margin-top: 1em;
|
||
}
|
||
}
|
||
|
||
.block.border_focus {
|
||
border-color: ${t.colorPrimary} !important;
|
||
}
|
||
|
||
#txt2img_results,
|
||
#img2img_results,
|
||
#extras_results {
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
}
|
||
|
||
#txt2img_render,
|
||
#img2img_render {
|
||
display: block !important;
|
||
margin-top: 16px;
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
|
||
.block.gradio-html:has(div.prose) {
|
||
display: block;
|
||
|
||
p {
|
||
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
|
||
|
||
b {
|
||
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
|
||
}
|
||
}
|
||
}
|
||
|
||
#tab_pnginfo {
|
||
#pnginfo_image {
|
||
height: auto !important;
|
||
}
|
||
|
||
.block.gradio-html:has(div.prose) p {
|
||
color: ${t.colorText};
|
||
}
|
||
}
|
||
|
||
[id$='_override_settings_row']:has(div.hidden) {
|
||
display: none;
|
||
}
|
||
|
||
.gradio-group:has(.gradio-group:has(div:empty)) {
|
||
display: none;
|
||
}
|
||
|
||
${o.mobile} {
|
||
.gradio-row:has([id$='2img_results'], [id$='2img_results']) {
|
||
flex-direction: column-reverse;
|
||
}
|
||
}
|
||
|
||
.extra-networks {
|
||
.tab-nav [id*='_extra_'] {
|
||
margin: 0;
|
||
}
|
||
|
||
.gradio-button {
|
||
&[id$='_extra_sortorder'],
|
||
&[id$='_extra_refresh'] {
|
||
align-self: center;
|
||
}
|
||
|
||
&.secondary.lg[id$='_extra_refresh'] {
|
||
max-width: fit-content;
|
||
height: var(--button-lg-tool-height) !important;
|
||
min-height: var(--button-lg-tool-height) !important;
|
||
max-height: var(--button-lg-tool-height) !important;
|
||
|
||
font-size: var(--text-md);
|
||
}
|
||
}
|
||
}
|
||
|
||
.extra-network-cards .card {
|
||
box-shadow: 0 0 0 3px ${t.colorFillSecondary};
|
||
transition: var(--button-transition);
|
||
|
||
&:hover {
|
||
box-shadow: 0 0 0 3px ${t.colorPrimary};
|
||
}
|
||
|
||
.actions {
|
||
background: rgb(0 0 0 / 30%);
|
||
backdrop-filter: saturate(120%) blur(4px);
|
||
box-shadow: none;
|
||
|
||
.name {
|
||
font-size: var(--text-lg);
|
||
word-break: break-word;
|
||
line-break: auto;
|
||
}
|
||
|
||
&:hover {
|
||
.description {
|
||
max-height: none;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
`,splitView:e`
|
||
#txt2img_toprow,
|
||
#img2img_toprow {
|
||
flex-direction: column !important;
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
}
|
||
`,textares:e`
|
||
[id$='2img_prompt'],
|
||
[id$='2img_neg_prompt'] {
|
||
textarea {
|
||
resize: ${i?"vertical":"none"};
|
||
|
||
overflow-y: auto;
|
||
|
||
padding: 8px !important;
|
||
|
||
font-family: ${t.fontFamilyCode} !important;
|
||
font-size: 13px !important;
|
||
line-height: 1.5 !important;
|
||
word-wrap: break-word !important;
|
||
white-space: pre-wrap !important;
|
||
|
||
transition:
|
||
all 0.3s,
|
||
height 0s;
|
||
}
|
||
}
|
||
|
||
[id$='2img_prompt'] > label > textarea {
|
||
color: ${t.colorSuccessTextHover};
|
||
|
||
&:focus {
|
||
color: ${t.colorSuccessText};
|
||
}
|
||
}
|
||
|
||
[id$='2img_neg_prompt'] > label > textarea {
|
||
color: ${t.colorErrorTextHover};
|
||
|
||
&:focus {
|
||
color: ${t.colorError};
|
||
}
|
||
}
|
||
|
||
.block.token-counter {
|
||
z-index: 10 !important;
|
||
top: -14px;
|
||
right: 4px;
|
||
scale: 0.8;
|
||
|
||
background: ${t.colorBgContainer} !important;
|
||
border-radius: 0.4em !important;
|
||
|
||
> .translucent {
|
||
display: none;
|
||
}
|
||
|
||
span {
|
||
display: inline-block;
|
||
font-family: var(--font-mono);
|
||
border: 2px solid ${t.colorFillSecondary} !important;
|
||
}
|
||
|
||
span,
|
||
&.error span {
|
||
box-shadow: none;
|
||
}
|
||
}
|
||
|
||
#lobe_txt2img_prompt .prompt_editor {
|
||
min-height: ${74}px;
|
||
max-height: ${i?"unset":"74px"};
|
||
}
|
||
|
||
#lobe_img2img_prompt .prompt_editor {
|
||
min-height: ${98}px;
|
||
max-height: ${i?"unset":"98px"};
|
||
}
|
||
|
||
#txt2img_prompt,
|
||
#txt2img_neg_prompt {
|
||
textarea {
|
||
min-height: ${74}px;
|
||
max-height: ${i?"unset":"74px"};
|
||
}
|
||
}
|
||
|
||
#img2img_prompt,
|
||
#img2img_neg_prompt {
|
||
textarea {
|
||
min-height: ${98}px;
|
||
max-height: ${i?"unset":"98px"};
|
||
}
|
||
}
|
||
`,txt2img:e`
|
||
button[id$='_generate'] {
|
||
height: var(--button-lg-height) !important;
|
||
min-height: var(--button-lg-height) !important;
|
||
max-height: var(--button-lg-height) !important;
|
||
}
|
||
|
||
[id$='img_settings'],
|
||
.gradio-column.compact {
|
||
display: flex !important;
|
||
flex-direction: column !important;
|
||
gap: 12px !important;
|
||
|
||
.gradio-column:has(#img2img_res_switch_btn, #txt2img_res_switch_btn) {
|
||
min-width: min(36px, 100%) !important;
|
||
}
|
||
|
||
> div:not([id$='_script_container'], .gradio-tabs):has(div),
|
||
> fieldset {
|
||
gap: 12px;
|
||
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
|
||
background-color: ${t.colorBgContainer};
|
||
border-radius: ${t.borderRadius}px;
|
||
}
|
||
|
||
.gradio-tabitem:has(.gradio-image) {
|
||
background: ${t.colorFillQuaternary};
|
||
}
|
||
|
||
[id$='_script_container'] {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
|
||
* {
|
||
--layout-gap: 12px !important;
|
||
}
|
||
|
||
> div {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
|
||
> div.gr-group.gradio-group:has(.label-wrap) {
|
||
gap: 12px !important;
|
||
|
||
margin: 0 !important;
|
||
padding: 16px !important;
|
||
|
||
background-color: ${t.colorBgContainer}!important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
}
|
||
|
||
.gradio-accordion:not(.hidden):has(div) {
|
||
padding: 0 !important;
|
||
border: none !important;
|
||
}
|
||
|
||
#script_list,
|
||
> .gradio-group:not(.hidden):has(div) {
|
||
display: flex;
|
||
flex-direction: column;
|
||
|
||
margin: 0;
|
||
padding: 16px;
|
||
|
||
background-color: ${t.colorBgContainer} !important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
box-shadow: none;
|
||
|
||
> .gradio-accordion {
|
||
padding: 0 !important;
|
||
border: none !important;
|
||
}
|
||
}
|
||
|
||
#script_list {
|
||
padding: 8px 16px 12px !important;
|
||
}
|
||
|
||
#axis_options {
|
||
margin: 16px 0;
|
||
}
|
||
}
|
||
}
|
||
|
||
#txt2img_accordions,
|
||
#img2img_accordions {
|
||
flex-direction: column;
|
||
padding: 0 !important;
|
||
background: transparent !important;
|
||
|
||
> div {
|
||
background-color: ${t.colorBgContainer};
|
||
border-radius: ${t.borderRadius}px !important;
|
||
}
|
||
|
||
span.icon {
|
||
margin-right: 0;
|
||
}
|
||
}
|
||
|
||
#img2img_toprow .interrogate-col {
|
||
flex-direction: row !important;
|
||
min-width: 100% !important;
|
||
}
|
||
|
||
#img2img_column_batch {
|
||
min-width: 100% !important;
|
||
}
|
||
|
||
#tab_txt2img,
|
||
#tab_img2img {
|
||
[id$='_settings'] {
|
||
min-width: 0 !important;
|
||
|
||
[id^='img2img_tab_resize_'].tabitem.gradio-tabitem {
|
||
padding: 16px 0 !important;
|
||
}
|
||
|
||
[id$='img_seed_extras'],
|
||
#inpaint_controls {
|
||
div {
|
||
flex: 1;
|
||
}
|
||
}
|
||
}
|
||
|
||
#txt2img_gallery {
|
||
overflow: hidden !important;
|
||
border-radius: var(--border-radius) !important;
|
||
}
|
||
|
||
[id$='2img_tools'] > div {
|
||
display: flex;
|
||
justify-content: center;
|
||
|
||
button {
|
||
max-width: unset !important;
|
||
}
|
||
}
|
||
|
||
.gradio-html[id^='img2img_label_copy_to'] {
|
||
display: none;
|
||
}
|
||
|
||
.gradio-row[id^='img2img_copy_to'],
|
||
.gap.compact,
|
||
.image-buttons,
|
||
.image_buttons_extras {
|
||
gap: 8px !important;
|
||
}
|
||
}
|
||
|
||
#npw {
|
||
padding: 16px !important;
|
||
|
||
background-color: ${t.colorBgContainer} !important;
|
||
border: 1px solid ${t.colorBorderSecondary} !important;
|
||
border-radius: ${t.borderRadius}px !important;
|
||
box-shadow: none;
|
||
}
|
||
`}))),B8=U.memo((({className:e,...t})=>{const n=U.useRef(null),{mobile:r}=NB(),o=k2(y2,MX),{cx:i,styles:a}=z8({isPromptResizable:"resizable"===o.promptTextareaType,layoutSplitPreview:o.layoutSplitPreview});return _Q(n,".app",{debug:"[layout] inject - Content",onSuccess:()=>{(()=>{const e=gradioApp().querySelectorAll('[id$="_prompt_container"] textarea');if(e)for(const t of e)t.classList.remove("scroll-hide"),t.style.height="auto"})()}}),ee.jsxs(ee.Fragment,{children:[ee.jsx("div",{className:i(a.container,a.textares,a.txt2img,o.layoutSplitPreview&&a.splitView,e),ref:n,...t}),o.layoutSplitPreview&&!1===r&&ee.jsx(L8,{})]})})),H8=oH((({css:e,token:t},{headerHeight:n=64,size:r=86})=>({body:e`
|
||
.hide {
|
||
display: none;
|
||
}
|
||
|
||
#txt2img_extra_search,
|
||
#img2img_extra_search {
|
||
width: 100% !important;
|
||
max-width: unset !important;
|
||
|
||
textarea {
|
||
height: unset !important;
|
||
}
|
||
}
|
||
|
||
#txt2img-extra-network-sidebar,
|
||
#img2img-extra-network-sidebar {
|
||
button.lg.secondary.gradio-button,
|
||
#txt2img_extra_sort,
|
||
#img2img_extra_sort {
|
||
height: 34px !important;
|
||
min-height: 34px !important;
|
||
}
|
||
|
||
.tabitem {
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
}
|
||
|
||
.extra-network-cards {
|
||
overflow: unset;
|
||
flex: none !important;
|
||
border: unset !important;
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(${r}px, 1fr));
|
||
gap: 8px;
|
||
|
||
height: unset;
|
||
min-height: unset;
|
||
|
||
.name {
|
||
background: unset !important;
|
||
}
|
||
|
||
.additional {
|
||
position: relative !important;
|
||
}
|
||
|
||
&:has(.nocards) {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
.extra-network-dirs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
margin-bottom: 12px;
|
||
> button.lg.secondary.gradio-button {
|
||
font-size: 12px;
|
||
padding: 4px 8px;
|
||
line-height: 1;
|
||
}
|
||
}
|
||
|
||
.extra-networks {
|
||
.pending {
|
||
opacity: 1 !important;
|
||
}
|
||
|
||
.wrap.center.full.translucent {
|
||
display: none !important;
|
||
}
|
||
|
||
.tab-nav {
|
||
align-items: center;
|
||
|
||
> * {
|
||
height: 40px !important;
|
||
margin: 0 !important;
|
||
font-size: var(--text-md) !important;
|
||
}
|
||
|
||
> button {
|
||
&:first-child {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.extra-networks-controls-div {
|
||
height: unset !important;
|
||
}
|
||
|
||
.extra-network-control {
|
||
flex-wrap: wrap;
|
||
flex: none;
|
||
position: relative;
|
||
gap: 8px;
|
||
.extra-network-control--search {
|
||
width: 100%;
|
||
}
|
||
small {
|
||
display: none;
|
||
}
|
||
> div:has(i) {
|
||
position: relative;
|
||
display: flex;
|
||
flex: none;
|
||
height: 32px;
|
||
background: ${t.colorFillTertiary};
|
||
border-radius: ${t.borderRadius}px;
|
||
}
|
||
}
|
||
}
|
||
|
||
.extra-network-subdirs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
align-items: center;
|
||
|
||
margin-bottom: 12px;
|
||
padding: 0 !important;
|
||
|
||
> button {
|
||
cursor: pointer;
|
||
|
||
zoom: 0.8;
|
||
|
||
flex: 1;
|
||
|
||
min-width: 100px;
|
||
margin: 0;
|
||
}
|
||
}
|
||
|
||
.actions {
|
||
background: rgb(0 0 0 / 30%);
|
||
backdrop-filter: saturate(120%) blur(4px);
|
||
box-shadow: none !important;
|
||
|
||
.name {
|
||
overflow: hidden;
|
||
display: block;
|
||
|
||
font-weight: bold;
|
||
text-overflow: ellipsis;
|
||
text-shadow: 0 1px 1px rgb(0 0 0 / 90%);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.additional {
|
||
position: absolute;
|
||
display: none;
|
||
|
||
> ul {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
|
||
margin: 0;
|
||
padding: 0;
|
||
|
||
a {
|
||
margin: 0 !important;
|
||
padding: 0 !important;
|
||
|
||
font-size: var(--text-md) !important;
|
||
color: #fff;
|
||
text-overflow: ellipsis;
|
||
text-shadow: 1px 1px black;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
}
|
||
|
||
.description {
|
||
a:hover {
|
||
color: var(--link-text-color-hover);
|
||
}
|
||
}
|
||
}
|
||
|
||
.card {
|
||
overflow: hidden;
|
||
|
||
width: 100% !important;
|
||
height: ${1.5*r}px !important;
|
||
margin: 0 !important;
|
||
|
||
background-size: cover;
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadiusSM}px;
|
||
outline: none;
|
||
|
||
transition:
|
||
box-shadow 200ms ${t.motionEaseOut},
|
||
scale 400ms ${t.motionEaseOut};
|
||
|
||
.name {
|
||
font-size: var(--text-sm) !important;
|
||
}
|
||
|
||
&:hover {
|
||
border-color: ${t.colorPrimary};
|
||
box-shadow: 0 0 0 1px ${t.colorPrimary};
|
||
|
||
.additional {
|
||
display: flex !important;
|
||
}
|
||
|
||
.name {
|
||
word-break: break-word;
|
||
line-break: auto;
|
||
white-space: unset;
|
||
}
|
||
}
|
||
|
||
&:active {
|
||
scale: 0.9;
|
||
}
|
||
}
|
||
|
||
.button-row {
|
||
padding: 0 4px;
|
||
background: rgba(0, 0, 0, 50%);
|
||
border-bottom-left-radius: ${t.borderRadius}px;
|
||
|
||
> div {
|
||
font-size: var(--text-md) !important;
|
||
text-shadow: none !important;
|
||
}
|
||
}
|
||
|
||
.metadata-button {
|
||
&::before {
|
||
content: 'ℹ️' !important;
|
||
}
|
||
}
|
||
}
|
||
|
||
div#txt2img_extra_networks,
|
||
div#img2img_extra_networks {
|
||
display: block !important;
|
||
|
||
.tabitem.gradio-tabitem.svelte-19hvt5v {
|
||
padding: 0 !important;
|
||
background: transparent;
|
||
}
|
||
|
||
.search {
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
max-height: var(--button-lg-tool-height) !important;
|
||
padding: 8px;
|
||
}
|
||
|
||
button {
|
||
height: 32px !important;
|
||
}
|
||
}
|
||
|
||
textarea {
|
||
resize: none;
|
||
overflow-y: hidden !important;
|
||
font-family: ${t.fontFamily};
|
||
}
|
||
`,container:e`
|
||
height: calc(100vh - ${n}px);
|
||
`}))),W8=["txt2img","img2img"],U8=["textual_inversion","hypernetworks","checkpoints","lora","lycoris"],q8={checkpoints:"ckp",hypernetworks:"hyper",lora:"lora",lycoris:"lycoris",textual_inversion:"ti"},V8=new Set(["🌐","💡","🏷️"]),G8="lobeDone",X8=(e,t)=>{t?(e.style.display="inline",e.style.fontSize="100%",e.style.position="static",e.style.backgroundImage="none"):(e.style.fontSize="15px",e.style.margin="0")};function K8(e){return null==e}const Y8=()=>{let e,t=0;const n=()=>{const r=()=>setTimeout(n,500);let o=0;const i=setInterval((()=>{var n;fe.info("🤯 [civitai helper] update card for civitai");const a=document.querySelector("#txt2img_lora_cards");if(a||o>5){if(e!==a){t=0,e=a;for(const e of W8){const t=document.querySelectorAll(`#${e}_extra_tabs .tab-nav button`);if(t)for(const e of t)e.removeEventListener("click",r),e.addEventListener("click",r)}}const l=null==(n=(()=>{var e;if(!document.querySelector("#tab_civitai_helper"))return;const t=getTranslation("replace preview")||"replace preview",n=document.querySelector("#ch_always_display_ckb input"),r=document.querySelector("#ch_show_btn_on_thumb_ckb input"),o=(null==n?void 0:n.checked)||!1,i=(null==r?void 0:r.checked)||!1;let a,l,s,c,u,d,f,p,h,g="",m=!1,b=!1;const v=[];for(const y of W8)for(const n of U8){if(p=q8[n],a=`${y}_${n}_cards`,l=document.querySelector(`#${a}`),K8(l))continue;b=l.classList.contains("extra-network-thumbs"),h=l.querySelectorAll(".card");const r=!!document.querySelector(`#${a}_html .pending`);if((null==h?void 0:h.length)&&!r){v.push(n);for(const n of h){if("1"===n.dataset[G8])break;if(n.dataset[G8]="1",n.querySelectorAll(".actions .additional a").length>2)continue;if(s=n.querySelector(".metadata-button"),c=n.querySelector(".actions .additional"),d=n.querySelector(".actions .additional ul"),K8(d)&&(d=document.createElement("ul"),c.append(d)),u=n.querySelector(".actions .additional a"),K8(u)&&(u=document.createElement("a"),c.append(u)),null==(e=d.querySelector("br"))||e.remove(),b&&c){if(c.style.display=void 0,!i){d.style.background=void 0;const e=d.querySelectorAll("a");if(!(null==e?void 0:e.length))continue;for(const n of e)n.style.display=void 0,V8.has(n.innerHTML)?n.remove():(n.innerHTML=t,n.style.display=void 0,n.style.fontSize=void 0,n.style.position=void 0,n.style.backgroundImage=void 0);continue}d.style.background="rgba(0, 0, 0, 0.8)"}else c.style.display=o?"block":void 0;if("🖼️"!==u.innerHTML&&(m=!0,u.innerHTML="🖼️",X8(u,b)),!m)continue;if(f=n.querySelector(".actions .additional .search_term"),!f)return;if(g=f.innerHTML,!g)continue;const r=document.createElement("a");r.href="#",r.innerHTML="🌐",X8(r,b),r.title="Open this model's civitai url",r.setAttribute("onclick",`open_model_url(event, '${p}', '${g}')`);const a=document.createElement("a");a.href="#",a.innerHTML="💡",X8(a,b),a.title="Add trigger words to prompt",a.setAttribute("onclick",`add_trigger_words(event, '${p}', '${g}')`);const l=document.createElement("a");l.href="#",l.innerHTML="🏷️",X8(l,b),l.title="Use prompt from preview image",l.setAttribute("onclick",`use_preview_prompt(event, '${p}', '${g}')`),d.append(r),b&&s&&d.append(document.createElement("br")),d.append(a),d.append(l)}}else!r&&l.querySelector(".nocards")&&v.push(n)}return v})())?void 0:n.length;HW(l)&&l<t&&(t=l),(o>5||!a||l>=U8.length||l>t)&&(clearInterval(i),t=l??t)}o++}),500)};return n()},Q8=e=>{var t;document.querySelector(`#${e}2img_extra_refresh`).click();const n=null==(t=document.querySelector(`#${e}2img_extra_refresh`))?void 0:t.nextSibling;n&&(n.onclick=Y8)},J8=e=>{const t=(n=`div#tab_${e}2img`,U.useRef(gradioApp().querySelector(n)));var n;const r=U.useRef(null);return _Q(r,`div#${e}2img_extra_tabs`),_Q(t,"div.tabitem.gradio-tabitem",{id:`${e}2img_render`,onSuccess:()=>{(e=>{const t=document.querySelectorAll(`#${e}2img_extra_tabs > .tab-nav > button`)[1];null==t||t.click();const n=Array.from(document.querySelectorAll(`#${e}2img_extra_tabs button.search-all`));for(const r of n)r.click()})(e)},parent:`div#${e}2img_extra_tabs`}),r},Z8=U.memo((()=>{const e=J8("txt"),t=J8("img"),n=k2(y2,MX),r=k2(w2),[o,i]=U.useState(n.extraNetworkCardSize||86),{styles:a}=H8({size:o}),{isLoading:l}=(({onStart:e,onSuccess:t,debug:n,timeout:r=500}={})=>{const[o,i]=U.useState(!0),a=U.useRef(!1);return U.useEffect((()=>{if(a.current)return;let o;if(null==e||e(),document.querySelector("#tab_civitai_helper")&&document.querySelector("#txt2img_extra_refresh"))try{o=setTimeout((()=>{Q8("txt"),Q8("img"),Y8()}),r)}catch(l){i(!1),n&&fe.success(`🤯 ${n}`,l)}return null==t||t(),a.current=!0,i(!1),n&&fe.success(`🤯 ${n}`),()=>{o&&clearTimeout(o)}}),[]),{isLoading:o}})({debug:"[layout] inject - ExtraNetworkSidebar"});return ee.jsxs(ee.Fragment,{children:[ee.jsxs(IX,{className:a.body,children:[l&&ee.jsx(VF,{active:!0}),ee.jsxs("div",{style:l?{display:"none"}:{},children:[ee.jsx("div",{id:"txt2img-extra-network-sidebar",ref:e,style:"tab_img2img"===r?{display:"none"}:{}}),ee.jsx("div",{id:"img2img-extra-network-sidebar",ref:t,style:"tab_img2img"===r?{}:{display:"none"}})]})]}),ee.jsxs(TX,{children:[ee.jsx(CH,{icon:n.extraNetworkCardSize<o?pf:ff,onClick:()=>i(n.extraNetworkCardSize),size:{blockSize:24,fontSize:16}}),ee.jsx(Qz,{defaultValue:o,max:256,min:64,onChange:i,step:8,style:{flex:1},value:o})]})]})})),e7=U.memo((({headerHeight:e})=>{const{mobile:t}=NB(),n=k2(y2,MX),[r,o]=U.useState(!t&&n.extraNetworkSidebarExpand),[i,a]=U.useState("fixed"===n.extraNetworkFixedMode),{styles:l,theme:s}=H8({headerHeight:e}),{t:c}=aZ();U.useEffect((()=>{t&&o(!1)}),[t]);const u=t||i?"fixed":"float";return ee.jsx(KV,{defaultSize:{width:n.extraNetworkSidebarWidth},expand:r,minWidth:n.extraNetworkSidebarWidth,mode:u,onExpandChange:o,pin:i,placement:"right",children:ee.jsx(DY,{children:ee.jsxs(jX,{className:l.container,style:"float"===u?{background:s.colorBgContainer,minWidth:n.extraNetworkSidebarWidth}:{minWidth:n.extraNetworkSidebarWidth},children:[ee.jsx(RX,{pin:i,position:"right",setExpand:o,setPin:a,title:c("sidebar.extraNetwork")}),ee.jsx(Z8,{})]})})})})),t7=[{description:"AUTOMATIC111",openExternal:!0,title:"Stable Diffusion Webui",url:"https://github.com/AUTOMATIC1111/stable-diffusion-webui"},{description:"WebUI extension",openExternal:!0,title:"Controlnet",url:"https://github.com/Mikubill/sd-webui-controlnet"},{description:"Art models",openExternal:!0,title:"Civitai",url:"https://civitai.com/"},{description:"Artist Inspired Styles",openExternal:!0,title:"Cheat Sheet",url:"https://supagruen.github.io/StableDiffusion-CheatSheet"},{description:"Image Resizing",openExternal:!0,title:"Birme",url:"https://www.birme.net/?target_width=512&target_height=512"}],n7=[{icon:ee.jsx(gH,{icon:Xd,size:"small"}),openExternal:!0,title:"Sponsor",url:"https://opencollective.com/lobehub"},{icon:ee.jsx(gH,{icon:Fd,size:"small"}),openExternal:!0,title:"Report Bug",url:`${wQ}/issues/new/choose`},{icon:ee.jsx(gH,{icon:Vd,size:"small"}),openExternal:!0,title:"Request Feature",url:`${wQ}/issues/new/choose`}],r7=[{icon:ee.jsx(gH,{icon:Gd,size:"small"}),openExternal:!0,title:"GitHub",url:wQ},{icon:ee.jsx(gH,{icon:Ud,size:"small"}),openExternal:!0,title:"Changelog",url:`${wQ}/blob/main/CHANGELOG.md`}],o7=[{description:"Stable Diffusion Extension",openExternal:!0,title:"🤯 Lobe Theme",url:"https://github.com/lobehub/sd-webui-lobe-theme"},{description:"Minifier ExtraNetwrok Covers",openExternal:!0,title:"✂️ Cover Minifier",url:"https://github.com/canisminor1990/sd-webui-cover-minifier"},{description:"OpenAI Chat Bot",openExternal:!0,title:"🤖 Lobe Chat",url:"https://chat.lobehub.com"},{description:"AIGC Components",openExternal:!0,title:"🍭 Lobe UI",url:"https://ui.lobehub.com"},{description:"I18n AI Workflow",openExternal:!0,title:"🌐 Lobe i18n",url:"https://github.com/lobehub/lobe-cli-toolbox"}],i7=oH((({css:e})=>({footer:e`
|
||
footer {
|
||
display: block !important;
|
||
}
|
||
`}))),a7=U.memo((({className:e,...t})=>{const n=k2(y2,MX),{cx:r,styles:o}=i7(),{t:i}=aZ(),a=U.useRef(null);return _Q(a,"#footer",{debug:"[layout] inject - Footer",onSuccess:e=>{n.confirmPageUnload&&window.addEventListener("beforeunload",(t=>{if(null==e?void 0:e.isConnected)return t.preventDefault(),t.returnValue=""}))}}),ee.jsx("div",{className:r(o.footer,e),...t,children:ee.jsx(pK,{bottom:ee.jsx("div",{ref:a}),columns:n.layoutHideFooter?[]:[{items:t7,title:i("footer.resources")},{items:n7,title:i("footer.community")},{items:r7,title:i("footer.help")},{items:o7,title:i("footer.moreProducts")}]})})})),l7=U.memo((e=>{const{version:t,latestVersion:n}=k2((e=>({latestVersion:e.latestVersion,version:e.version}))),r=s2.gte(t,n);return ee.jsx("a",{href:wQ,rel:"noreferrer",target:"_blank",children:r?ee.jsxs(bB,{color:"success",...e,children:["v",t]}):ee.jsxs(bB,{color:"warning",...e,children:["v",t," / latest v",n]})})})),s7=U.memo((({open:e,onCancel:t})=>{const n=k2(y2,MX),r=dH(),{t:o}=aZ();return ee.jsx($X,{footer:null,onCancel:t,open:e,title:ee.jsxs(th,{align:"center",gap:4,horizontal:!0,children:[o("modal.themeFeedback.title"),ee.jsx(l7,{})]}),children:ee.jsxs(th,{gap:32,children:[ee.jsx(Qp,{gap:16,style:{background:r.colorBgLayout,border:`1px solid ${r.colorBorderSecondary}`,borderRadius:r.borderRadiusLG,padding:"16px 0"},children:ee.jsxs(th,{gap:16,horizontal:!0,children:[ee.jsx("a",{href:"https://discord.gg/AYFPHvv2jT",rel:"noreferrer",target:"_blank",children:ee.jsx(bE,{icon:ee.jsx(gH,{icon:bY}),size:"large",children:"Join Discover"})}),ee.jsx("a",{href:wQ,rel:"noreferrer",target:"_blank",children:ee.jsx(bE,{icon:ee.jsx(gH,{icon:Gd}),size:"large",children:"Github"})}),ee.jsx("a",{href:"https://opencollective.com/lobehub",rel:"noreferrer",target:"_blank",children:ee.jsx(fY,{icon:ee.jsx(gH,{icon:Xd}),children:"Sponsor"})})]})}),ee.jsx(cY,{lang:n.i18n,mapping:"number",repo:xQ,repoId:"R_kgDOJCPcNg",term:"53"})]})})})),c7=U.memo((()=>{const{t:e}=aZ();return ee.jsx(th,{height:"100vh",width:"100%",children:ee.jsxs(Qp,{flex:1,gap:12,width:"100%",children:[ee.jsx(TY,{extra:"SD",size:48,type:"combine"}),ee.jsxs(Qp,{gap:16,horizontal:!0,children:[ee.jsx(gH,{icon:Qd,spin:!0}),e("custom.initializing")]})]})})})),u7=U.memo((({size:e=32,style:t,logoCustomUrl:n,logoCustomTitle:r})=>{let o=ee.jsx(TY,{size:e,style:t});if(n)if(n.includes("http")||n.includes("data"))o=ee.jsx("img",{alt:"logo",src:n,style:{height:e,...t}});else{const r=vU(n);r&&(o=ee.jsx(wU,{emoji:r,size:e,style:t}))}return ee.jsxs(ZM,{align:"center",size:.3*e,children:[o,ee.jsx("b",{style:{fontSize:.6*e,whiteSpace:"nowrap"},children:r})]})})),d7=U.memo((({size:e=32,style:t,themeMode:n})=>ee.jsx("img",{alt:"logo",src:"dark"===n?"https://gw.alipayobjects.com/zos/bmw-prod/9ecb2822-1592-4cb0-a087-ce0097fef2ca.svg":"https://gw.alipayobjects.com/zos/bmw-prod/e146116d-c65a-4306-a3d2-bb8d05e1c49b.svg",style:{height:e,...t}}))),f7=U.memo((({size:e=32,style:t})=>{const n=k2(y2,MX),r=k2(x2);return"kitchen"===n.logoType?ee.jsx(d7,{size:.75*e,style:t,themeMode:r}):"custom"===n.logoType?ee.jsx(u7,{logoCustomTitle:n.logoCustomTitle,logoCustomUrl:n.logoCustomUrl,size:e,style:t}):ee.jsx(TY,{extra:"SD",size:e,style:t,type:"combine"})})),p7=e=>{const t=e;return t.text.includes("<lora")?t.className="ReactTags__lora":t.text.includes("<hypernet")?t.className="ReactTags__hypernet":t.text.includes("<embedding")?t.className="ReactTags__embedding":t.className=void 0,t},h7=e=>{const t=IQ.convertStr(e);return IQ.convertStr2Array(t).map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/,|\.\|。/g,",").replaceAll(/“|‘|”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return IQ.convertStr2Array(t).join(", ")})).map((e=>p7({id:e.trim(),text:e.trim()})))},g7="[id$='2img_prompt'] textarea",m7=U.memo((()=>{const{data:e,isLoading:t}=iX("prompt",f2),[n,r]=U.useState([]),[o,i]=U.useState(),[a,l]=U.useState(),s=k2(v2),{t:c}=aZ(),u="zh_CN"===s||"zh_HK"===s,d=U.useCallback((()=>{try{const e=get_uiCurrentTabContent().querySelector(g7),t=h7(e.value);return e&&r(t),t}catch(e){fe.error("🤯 [prompt]",e)}}),[]),f=U.useCallback((e=>{try{const t=e.map((e=>e.text)).join(", "),n=get_uiCurrentTabContent().querySelector(g7);n&&(n.value=t),updateInput(n)}catch(t){fe.error("🤯 [prompt]",t)}}),[]),p=U.useCallback((e=>{let t=d()||[];console.log(t);const n=t.some((t=>t.text.toLowerCase()===e.text.toLowerCase()||t.id===e.id));t=n?t.filter((t=>t.text.toLowerCase()!==e.text.toLowerCase()&&t.id!==e.id)):[...t,e].filter(Boolean),r(t),f(t)}),[]);return U.useEffect((()=>{if(d(),!e||o||a)return;const t=Object.keys(e)[0];i(t);const n=Object.keys(e[t].children)[0];l(n)}),[e,o,a]),t||!e?ee.jsx(VF,{active:!0}):ee.jsxs(ee.Fragment,{children:[ee.jsx("span",{style:{marginBottom:-10},children:c("prompt.area.object")}),ee.jsx(th,{gap:4,horizontal:!0,style:{flexWrap:"wrap"},children:Object.entries(e).map((([t,n],r)=>{const a=u?n.langName:n.name,s=o?o===t:0===r;return ee.jsx(bE,{onClick:()=>{i(t),l(Object.keys(e[t].children)[0])},size:"small",style:{flex:1},type:s?"primary":"default",children:a},t)}))}),ee.jsx("span",{style:{marginBottom:-10},children:c("prompt.area.attribute")}),ee.jsx(th,{gap:4,horizontal:!0,style:{flexWrap:"wrap"},children:o&&Object.entries(e[o].children).map((([e,t],n)=>{const r=u?t.langName:t.name,o=a?a===e:0===n;return ee.jsx(bE,{onClick:()=>l(e),size:"small",style:{flex:1},type:o?"primary":"default",children:r},e)}))}),ee.jsx("span",{style:{marginBottom:-10},children:c("prompt.area.tag")}),ee.jsx(th,{gap:4,horizontal:!0,style:{flexWrap:"wrap"},children:o&&a&&Object.entries(e[o].children[a].children).map((([e,t])=>{const r=n.some((e=>e.text.toLowerCase()===t.name.toLowerCase()));return ee.jsx(bE,{onClick:()=>p({id:e,text:t.name}),size:"small",style:u?{flex:1,height:36}:{flex:1},type:r?"primary":"dashed",children:u?ee.jsxs(th,{gap:2,children:[ee.jsx("div",{style:{fontSize:12,fontWeight:600,lineHeight:1},children:t.langName}),ee.jsx("div",{style:{fontSize:12,lineHeight:1,opacity:.75},children:t.name})]}):t.name},e)}))})]})}));var b7={};const v7=U.createContext({dragDropManager:void 0});function y7(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var w7="function"==typeof Symbol&&Symbol.observable||"@@observable",x7=function(){return Math.random().toString(36).substring(7).split("").join(".")},k7={INIT:"@@redux/INIT"+x7(),REPLACE:"@@redux/REPLACE"+x7(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+x7()}};function S7(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(y7(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(y7(1));return n(S7)(e,t)}if("function"!=typeof e)throw new Error(y7(2));var o=e,i=t,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function u(){if(s)throw new Error(y7(3));return i}function d(e){if("function"!=typeof e)throw new Error(y7(4));if(s)throw new Error(y7(5));var t=!0;return c(),l.push(e),function(){if(t){if(s)throw new Error(y7(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(y7(7));if(void 0===e.type)throw new Error(y7(8));if(s)throw new Error(y7(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:k7.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(y7(10));o=e,f({type:k7.REPLACE})}})[w7]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(y7(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[w7]=function(){return this},e},r}function C7(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function E7(e){return"object"==typeof e}const D7="dnd-core/INIT_COORDS",$7="dnd-core/BEGIN_DRAG",O7="dnd-core/PUBLISH_DRAG_SOURCE",_7="dnd-core/HOVER",I7="dnd-core/DROP",N7="dnd-core/END_DRAG";function j7(e,t){return{type:D7,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const P7={type:D7,payload:{clientOffset:null,sourceClientOffset:null}};function T7(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),l=e.getRegistry();e.dispatch(j7(o)),function(e,t,n){C7(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){C7(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,l);const s=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==s)return void e.dispatch(P7);let c=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){C7("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(s)}e.dispatch(j7(o,c));const u=l.getSource(s).beginDrag(a,s);if(null==u)return;!function(e){C7(E7(e),"Item must be an object.")}(u),l.pinSource(s);const d=l.getSourceType(s);return{type:$7,payload:{itemType:d,item:u,sourceId:s,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function F7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F7(e,t,n[t])}))}return e}function A7(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){C7(e.isDragging(),"Cannot call drop while not dragging."),C7(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;(function(e){C7(void 0===e||E7(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),l={type:I7,payload:{dropResult:R7({},t,a)}};e.dispatch(l)}))}}function M7(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){C7(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:N7}}}function L7(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function z7(e){return function(t,{clientOffset:n}={}){!function(e){C7(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];L7(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){C7(t.isDragging(),"Cannot call hover while not dragging."),C7(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];C7(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");C7(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:_7,payload:{targetIds:r,clientOffset:n||null}}}}function B7(e){return function(){if(e.getMonitor().isDragging())return{type:O7}}}class H7{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:T7(e),publishDragSource:B7(e),hover:z7(e),drop:A7(e),endDrag:M7(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function W7(e,t){return{x:e.x-t.x,y:e.y-t.y}}const U7=[],q7=[];U7.__IS_NONE__=!0,q7.__IS_ALL__=!0;class V7{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;C7("function"==typeof e,"listener must be a function."),C7(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){if(e===U7)return!1;if(e===q7||void 0===t)return!0;const n=(r=e,t.filter((e=>r.indexOf(e)>-1)));var r;return n.length>0}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){C7("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return C7(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(C7(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return L7(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(C7(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!L7(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?W7(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?W7(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const G7="undefined"!=typeof global?global:self,X7=G7.MutationObserver||G7.WebKitMutationObserver;function K7(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const Y7="function"==typeof X7?function(e){let t=1;const n=new X7(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:K7;class Q7{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const J7=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Y7(this.flush),this.requestErrorThrow=K7((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},Z7=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Q7(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(J7.registerPendingError);const e9="dnd-core/ADD_SOURCE",t9="dnd-core/ADD_TARGET",n9="dnd-core/REMOVE_SOURCE",r9="dnd-core/REMOVE_TARGET";function o9(e,t){t&&Array.isArray(e)?e.forEach((e=>o9(e,!1))):C7("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var i9,a9;(a9=i9||(i9={})).SOURCE="SOURCE",a9.TARGET="TARGET";let l9=0;function s9(e){const t=(l9++).toString();switch(e){case i9.SOURCE:return`S${t}`;case i9.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function c9(e){switch(e[0]){case"S":return i9.SOURCE;case"T":return i9.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function u9(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class d9{addSource(e,t){o9(e),function(e){C7("function"==typeof e.canDrag,"Expected canDrag to be a function."),C7("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),C7("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(i9.SOURCE,e,t);return this.store.dispatch(function(e){return{type:e9,payload:{sourceId:e}}}(n)),n}addTarget(e,t){o9(e,!0),function(e){C7("function"==typeof e.canDrop,"Expected canDrop to be a function."),C7("function"==typeof e.hover,"Expected hover to be a function."),C7("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(i9.TARGET,e,t);return this.store.dispatch(function(e){return{type:t9,payload:{targetId:e}}}(n)),n}containsHandler(e){return u9(this.dragSources,e)||u9(this.dropTargets,e)}getSource(e,t=!1){C7(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return C7(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return C7(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return C7(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return c9(e)===i9.SOURCE}isTargetId(e){return c9(e)===i9.TARGET}removeSource(e){var t;C7(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:n9,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},J7.enqueueTask(Z7.create(t))}removeTarget(e){C7(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:r9,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);C7(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){C7(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=s9(e);return this.types.set(r,t),e===i9.SOURCE?this.dragSources.set(r,n):e===i9.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const f9=(e,t)=>e===t;function p9(e=U7,t){switch(t.type){case _7:break;case e9:case t9:case r9:case n9:return U7;default:return q7}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(n,r),i=o.length>0||!function(e,t,n=f9){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!i)return U7;const a=r[r.length-1],l=n[n.length-1];return a!==l&&(a&&o.push(a),l&&o.push(l)),o}function h9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g9={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function m9(e=g9,t){const{payload:n}=t;switch(t.type){case D7:case $7:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case _7:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h9(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case N7:case I7:return g9;default:return e}var r,o}function b9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){b9(e,t,n[t])}))}return e}const y9={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function w9(e=y9,t){const{payload:n}=t;switch(t.type){case $7:return v9({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case O7:return v9({},e,{isSourcePublic:!0});case _7:return v9({},e,{targetIds:n.targetIds});case r9:return-1===e.targetIds.indexOf(n.targetId)?e:v9({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case I7:return v9({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case N7:return v9({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function x9(e=0,t){switch(t.type){case e9:case t9:return e+1;case n9:case r9:return e-1;default:return e}}function k9(e=0){return e+1}function S9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){S9(e,t,n[t])}))}return e}function E9(e={},t){return{dirtyHandlerIds:p9(e.dirtyHandlerIds,{type:t.type,payload:C9({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:m9(e.dragOffset,t),refCount:x9(e.refCount,t),dragOperation:w9(e.dragOperation,t),stateId:k9(e.stateId)};var n,r,o}function D9(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return S7(E9,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new V7(o,new d9(o)),a=new H7(o,i),l=e(a,t,n);return a.receiveBackend(l),a}function $9(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let O9=0;const _9=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var I9=U.memo((function(e){var{children:t}=e,n=$9(e,["children"]);const[r,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=N9(),n,r){const o=t;o[_9]||(o[_9]={dragDropManager:D9(e,t,n,r)});return o[_9]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return U.useEffect((()=>{if(o){const e=N9();return++O9,()=>{0==--O9&&(e[_9]=null)}}}),[]),ee.jsx(v7.Provider,{value:r,children:t})}));function N9(){return"undefined"!=typeof global?global:window}const j9=U.memo((function({connect:e,src:t}){return U.useEffect((()=>{if("undefined"==typeof Image)return;let n=!1;const r=new Image;return r.src=t,r.onload=()=>{e(r),n=!0},()=>{n&&e(null)}})),null})),P9="undefined"!=typeof window?U.useLayoutEffect:U.useEffect;function T9(e,t,n){const[r,o]=U.useState((()=>t(e))),i=U.useCallback((()=>{const i=t(e);MX(r,i)||(o(i),n&&n())}),[r,e,n]);return P9(i),[r,i]}function F9(e,t,n){return function(e,t,n){const[r,o]=T9(e,t,n);return P9((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function R9(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),U.useMemo((()=>"function"==typeof e?e():e),n)}function A9(e){return U.useMemo((()=>e.hooks.dragSource()),[e])}function M9(e){return U.useMemo((()=>e.hooks.dragPreview()),[e])}let L9=!1,z9=!1;class B9{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){C7(!L9,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return L9=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{L9=!1}}isDragging(){if(!this.sourceId)return!1;C7(!z9,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return z9=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{z9=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let H9=!1;class W9{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;C7(!H9,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return H9=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{H9=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function U9(e,t,n,r){let o;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s<i.length;s++){const n=i[s];if(!l(n))return!1;const r=e[n],a=t[n];if(o=void 0,!1===o||void 0===o&&r!==a)return!1}return!0}function q9(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function V9(e){return(t=null,n=null)=>{if(!U.isValidElement(t)){const r=t;return e(r,n),r}const r=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(r);return function(e,t){const n=e.ref;return C7("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?U.cloneElement(e,{ref:e=>{X9(n,e),X9(t,e)}}):U.cloneElement(e,{ref:t})}(r,n?t=>e(t,n):e)}}function G9(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=V9(r);t[n]=()=>e}})),t}function X9(e,t){"function"==typeof e?e(t):e.current=t}class K9{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!U9(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!U9(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=G9({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,q9(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,q9(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Y9{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!U9(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=G9({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,q9(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Q9(){const{dragDropManager:e}=U.useContext(v7);return C7(null!=e,"Expected drag drop context"),e}class J9{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function Z9(e,t,n){const r=Q9(),o=function(e,t,n){const r=U.useMemo((()=>new J9(e,t,n)),[t,n]);return U.useEffect((()=>{r.spec=e}),[e]),r}(e,t,n),i=function(e){return U.useMemo((()=>{const t=e.type;return C7(null!=t,"spec.type must be defined"),t}),[e])}(e);P9((function(){if(null!=i){const[e,a]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(i,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}}),[r,t,n,o,i])}function eee(e){return U.useMemo((()=>e.hooks.dropTarget()),[e])}class tee{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function nee(e,t,n){const r=Q9(),o=function(e,t){const n=U.useMemo((()=>new tee(e,t)),[t]);return U.useEffect((()=>{n.spec=e}),[e]),n}(e,t),i=function(e){const{accept:t}=e;return U.useMemo((()=>(C7(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);P9((function(){const[e,a]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(i,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}),[r,t,o,n,i.map((e=>e.toString())).join("|")])}const ree=i(Object.freeze(Object.defineProperty({__proto__:null,DndContext:v7,DndProvider:I9,DragPreviewImage:j9,useDrag:function(e,t){const n=R9(e,t);C7(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=Q9();return U.useMemo((()=>new B9(e)),[e])}(),o=function(e,t){const n=Q9(),r=U.useMemo((()=>new K9(n.getBackend())),[n]);return P9((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),P9((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return Z9(n,r,o),[F9(n.collect,r,o),A9(o),M9(o)]},useDragDropManager:Q9,useDragLayer:function(e){const t=Q9().getMonitor(),[n,r]=T9(t,e);return U.useEffect((()=>t.subscribeToOffsetChange(r))),U.useEffect((()=>t.subscribeToStateChange(r))),n},useDrop:function(e,t){const n=R9(e,t),r=function(){const e=Q9();return U.useMemo((()=>new W9(e)),[e])}(),o=function(e){const t=Q9(),n=U.useMemo((()=>new Y9(t.getBackend())),[t]);return P9((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return nee(n,r,o),[F9(n.collect,r,o),eee(o)]}},Symbol.toStringTag,{value:"Module"})));function oee(e){let t=null;return()=>(null==t&&(t=e()),t)}class iee{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach((e=>o.push(e))),o}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class aee{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const lee="__NATIVE_FILE__",see="__NATIVE_URL__",cee="__NATIVE_TEXT__",uee="__NATIVE_HTML__",dee=Object.freeze(Object.defineProperty({__proto__:null,FILE:lee,HTML:uee,TEXT:cee,URL:see},Symbol.toStringTag,{value:"Module"}));function fee(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const pee={[lee]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[uee]:{exposeProperties:{html:(e,t)=>fee(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[see]:{exposeProperties:{urls:(e,t)=>fee(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[cee]:{exposeProperties:{text:(e,t)=>fee(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function hee(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(pee).filter((e=>{const n=pee[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const gee=oee((()=>/firefox/i.test(navigator.userAgent))),mee=oee((()=>Boolean(window.safari)));class bee{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let l,s=0,c=i.length-1;for(;s<=c;){l=Math.floor(.5*(s+c));const r=t[l];if(r<e)s=l+1;else{if(!(r>e))return n[l];c=l-1}}a=Math.max(0,c);const u=e-t[a],d=u*u;return n[a]+r[a]*u+o[a]*d+i[a]*u*d}constructor(e,t){const{length:n}=e,r=[];for(let f=0;f<n;f++)r.push(f);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],i=[];let a,l;for(let f=0;f<n-1;f++)a=e[f+1]-e[f],l=t[f+1]-t[f],o.push(a),i.push(l/a);const s=[i[0]];for(let f=0;f<o.length-1;f++){const e=i[f],t=i[f+1];if(e*t<=0)s.push(0);else{a=o[f];const n=o[f+1],r=a+n;s.push(3*r/((r+n)/e+(r+a)/t))}}s.push(i[i.length-1]);const c=[],u=[];let d;for(let f=0;f<s.length-1;f++){d=i[f];const e=s[f],t=1/o[f],n=e+s[f+1]-d-d;c.push((d-e-n)*t),u.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=s,this.c2s=c,this.c3s=u}}const vee=1;function yee(e){const t=e.nodeType===vee?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function wee(e){return{x:e.clientX,y:e.clientY}}function xee(e,t,n,r,o){const i="IMG"===(a=t).nodeName&&(gee()||!(null===(l=document.documentElement)||void 0===l?void 0:l.contains(a)));var a,l;const s=yee(i?e:t),c={x:n.x-s.x,y:n.y-s.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:f,anchorY:p}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return mee()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,u,d),{offsetX:m,offsetY:b}=o,v=0===b||b;return{x:0===m||m?m:new bee([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(f),y:v?b:(()=>{let e=new bee([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(p);return mee()&&i&&(e+=(window.devicePixelRatio-1)*g),e})()}}class kee{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function See(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){See(e,t,n[t])}))}return e}class Eee{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Cee({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Cee({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(dee).some((t=>dee[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=pee[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new aee(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&yee(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=wee(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=hee(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:l}=this.getCurrentSourcePreviewNodeOptions(),s=xee(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:l});r.setDragImage(o,s.x,s.y)}}try{null==r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=hee(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:wee(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=wee(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):hee(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:wee(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new kee(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new iee(this.isNodeInDocument)}}let Dee;const $ee=i(Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:function(e,t,n){return new Eee(e,t,n)},NativeTypes:dee,getEmptyImage:function(){return Dee||(Dee=new Image,Dee.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Dee}},Symbol.toStringTag,{value:"Module"})));var Oee=function(){this.__data__=[],this.size=0};var _ee=function(e,t){return e===t||e!=e&&t!=t},Iee=_ee;var Nee=function(e,t){for(var n=e.length;n--;)if(Iee(e[n][0],t))return n;return-1},jee=Nee,Pee=Array.prototype.splice;var Tee=Nee;var Fee=Nee;var Ree=Nee;var Aee=Oee,Mee=function(e){var t=this.__data__,n=jee(t,e);return!(n<0)&&(n==t.length-1?t.pop():Pee.call(t,n,1),--this.size,!0)},Lee=function(e){var t=this.__data__,n=Tee(t,e);return n<0?void 0:t[n][1]},zee=function(e){return Fee(this.__data__,e)>-1},Bee=function(e,t){var n=this.__data__,r=Ree(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Hee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hee.prototype.clear=Aee,Hee.prototype.delete=Mee,Hee.prototype.get=Lee,Hee.prototype.has=zee,Hee.prototype.set=Bee;var Wee=Hee,Uee=Wee;var qee=function(){this.__data__=new Uee,this.size=0};var Vee=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Gee=function(e){return this.__data__.get(e)};var Xee=function(e){return this.__data__.has(e)},Kee=_q,Yee=pq;var Qee,Jee=function(e){if(!Yee(e))return!1;var t=Kee(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Zee=bq["__core-js_shared__"],ete=(Qee=/[^.]+$/.exec(Zee&&Zee.keys&&Zee.keys.IE_PROTO||""))?"Symbol(src)_1."+Qee:"";var tte=function(e){return!!ete&&ete in e},nte=Function.prototype.toString;var rte=function(e){if(null!=e){try{return nte.call(e)}catch(b6){}try{return e+""}catch(b6){}}return""},ote=Jee,ite=tte,ate=pq,lte=rte,ste=/^\[object .+?Constructor\]$/,cte=Function.prototype,ute=Object.prototype,dte=cte.toString,fte=ute.hasOwnProperty,pte=RegExp("^"+dte.call(fte).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var hte=function(e,t){return null==e?void 0:e[t]},gte=function(e){return!(!ate(e)||ite(e))&&(ote(e)?pte:ste).test(lte(e))},mte=hte;var bte=function(e,t){var n=mte(e,t);return gte(n)?n:void 0},vte=bte(bq,"Map"),yte=bte(Object,"create"),wte=yte;var xte=function(){this.__data__=wte?wte(null):{},this.size=0};var kte=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ste=yte,Cte=Object.prototype.hasOwnProperty;var Ete=function(e){var t=this.__data__;if(Ste){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Cte.call(t,e)?t[e]:void 0},Dte=yte,$te=Object.prototype.hasOwnProperty;var Ote=yte;var _te=xte,Ite=kte,Nte=Ete,jte=function(e){var t=this.__data__;return Dte?void 0!==t[e]:$te.call(t,e)},Pte=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ote&&void 0===t?"__lodash_hash_undefined__":t,this};function Tte(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tte.prototype.clear=_te,Tte.prototype.delete=Ite,Tte.prototype.get=Nte,Tte.prototype.has=jte,Tte.prototype.set=Pte;var Fte=Tte,Rte=Wee,Ate=vte;var Mte=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Lte=function(e,t){var n=e.__data__;return Mte(t)?n["string"==typeof t?"string":"hash"]:n.map},zte=Lte;var Bte=Lte;var Hte=Lte;var Wte=Lte;var Ute=function(){this.size=0,this.__data__={hash:new Fte,map:new(Ate||Rte),string:new Fte}},qte=function(e){var t=zte(this,e).delete(e);return this.size-=t?1:0,t},Vte=function(e){return Bte(this,e).get(e)},Gte=function(e){return Hte(this,e).has(e)},Xte=function(e,t){var n=Wte(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Kte(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kte.prototype.clear=Ute,Kte.prototype.delete=qte,Kte.prototype.get=Vte,Kte.prototype.has=Gte,Kte.prototype.set=Xte;var Yte=Kte,Qte=Wee,Jte=vte,Zte=Yte;var ene=Wee,tne=qee,nne=Vee,rne=Gee,one=Xee,ine=function(e,t){var n=this.__data__;if(n instanceof Qte){var r=n.__data__;if(!Jte||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zte(r)}return n.set(e,t),this.size=n.size,this};function ane(e){var t=this.__data__=new ene(e);this.size=t.size}ane.prototype.clear=tne,ane.prototype.delete=nne,ane.prototype.get=rne,ane.prototype.has=one,ane.prototype.set=ine;var lne=ane;var sne=Yte,cne=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},une=function(e){return this.__data__.has(e)};function dne(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new sne;++t<n;)this.add(e[t])}dne.prototype.add=dne.prototype.push=cne,dne.prototype.has=une;var fne=dne;var pne=function(e,t){return e.has(t)},hne=fne,gne=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},mne=pne;var bne=function(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))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 hne:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!gne(t,(function(e,t){if(!mne(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var vne=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},yne=bq.Uint8Array,wne=_ee,xne=bne,kne=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Sne=vne,Cne=vq?vq.prototype:void 0,Ene=Cne?Cne.valueOf:void 0;var Dne=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new yne(e),new yne(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wne(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=kne;case"[object Set]":var s=1&r;if(l||(l=Sne),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=xne(l(e),l(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(Ene)return Ene.call(e)==Ene.call(t)}return!1};var $ne=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},One=Array.isArray,_ne=$ne,Ine=One;var Nne=function(e,t,n){var r=t(e);return Ine(e)?r:_ne(r,n(e))};var jne=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i},Pne=function(){return[]},Tne=Object.prototype.propertyIsEnumerable,Fne=Object.getOwnPropertySymbols,Rne=Fne?function(e){return null==e?[]:(e=Object(e),jne(Fne(e),(function(t){return Tne.call(e,t)})))}:Pne,Ane=Rne;var Mne=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Lne=_q,zne=Iq;var Bne=function(e){return zne(e)&&"[object Arguments]"==Lne(e)},Hne=Iq,Wne=Object.prototype,Une=Wne.hasOwnProperty,qne=Wne.propertyIsEnumerable,Vne=Bne(function(){return arguments}())?Bne:function(e){return Hne(e)&&Une.call(e,"callee")&&!qne.call(e,"callee")},Gne={exports:{}};var Xne=function(){return!1};!function(e,t){var n=bq,r=Xne,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(Gne,Gne.exports);var Kne=Gne.exports,Yne=/^(?:0|[1-9]\d*)$/;var Qne=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Yne.test(e))&&e>-1&&e%1==0&&e<t};var Jne=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Zne=_q,ere=Jne,tre=Iq,nre={};nre["[object Float32Array]"]=nre["[object Float64Array]"]=nre["[object Int8Array]"]=nre["[object Int16Array]"]=nre["[object Int32Array]"]=nre["[object Uint8Array]"]=nre["[object Uint8ClampedArray]"]=nre["[object Uint16Array]"]=nre["[object Uint32Array]"]=!0,nre["[object Arguments]"]=nre["[object Array]"]=nre["[object ArrayBuffer]"]=nre["[object Boolean]"]=nre["[object DataView]"]=nre["[object Date]"]=nre["[object Error]"]=nre["[object Function]"]=nre["[object Map]"]=nre["[object Number]"]=nre["[object Object]"]=nre["[object RegExp]"]=nre["[object Set]"]=nre["[object String]"]=nre["[object WeakMap]"]=!1;var rre=function(e){return tre(e)&&ere(e.length)&&!!nre[Zne(e)]};var ore=function(e){return function(t){return e(t)}},ire={exports:{}};!function(e,t){var n=hq,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(b6){}}();e.exports=a}(ire,ire.exports);var are=ire.exports,lre=rre,sre=ore,cre=are&&are.isTypedArray,ure=cre?sre(cre):lre,dre=Mne,fre=Vne,pre=One,hre=Kne,gre=Qne,mre=ure,bre=Object.prototype.hasOwnProperty;var vre=function(e,t){var n=pre(e),r=!n&&fre(e),o=!n&&!r&&hre(e),i=!n&&!r&&!o&&mre(e),a=n||r||o||i,l=a?dre(e.length,String):[],s=l.length;for(var c in e)!t&&!bre.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gre(c,s))||l.push(c);return l},yre=Object.prototype;var wre=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yre)},xre=Xq(Object.keys,Object),kre=wre,Sre=xre,Cre=Object.prototype.hasOwnProperty;var Ere=function(e){if(!kre(e))return Sre(e);var t=[];for(var n in Object(e))Cre.call(e,n)&&"constructor"!=n&&t.push(n);return t},Dre=Jee,$re=Jne;var Ore=vre,_re=Ere,Ire=function(e){return null!=e&&$re(e.length)&&!Dre(e)};var Nre=function(e){return Ire(e)?Ore(e):_re(e)},jre=Nne,Pre=Ane,Tre=Nre;var Fre=function(e){return jre(e,Tre,Pre)},Rre=Fre,Are=Object.prototype.hasOwnProperty;var Mre=function(e,t,n,r,o,i){var a=1&n,l=Rre(e),s=l.length;if(s!=Rre(t).length&&!a)return!1;for(var c=s;c--;){var u=l[c];if(!(a?u in t:Are.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<s;){var g=e[u=l[c]],m=t[u];if(r)var b=a?r(m,g,u,t,e,i):r(g,m,u,e,t,i);if(!(void 0===b?g===m||o(g,m,n,r,i):b)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return i.delete(e),i.delete(t),p},Lre=bte(bq,"DataView"),zre=bte(bq,"Promise"),Bre=bte(bq,"Set"),Hre=Lre,Wre=vte,Ure=zre,qre=Bre,Vre=bte(bq,"WeakMap"),Gre=_q,Xre=rte,Kre="[object Map]",Yre="[object Promise]",Qre="[object Set]",Jre="[object WeakMap]",Zre="[object DataView]",eoe=Xre(Hre),toe=Xre(Wre),noe=Xre(Ure),roe=Xre(qre),ooe=Xre(Vre),ioe=Gre;(Hre&&ioe(new Hre(new ArrayBuffer(1)))!=Zre||Wre&&ioe(new Wre)!=Kre||Ure&&ioe(Ure.resolve())!=Yre||qre&&ioe(new qre)!=Qre||Vre&&ioe(new Vre)!=Jre)&&(ioe=function(e){var t=Gre(e),n="[object Object]"==t?e.constructor:void 0,r=n?Xre(n):"";if(r)switch(r){case eoe:return Zre;case toe:return Kre;case noe:return Yre;case roe:return Qre;case ooe:return Jre}return t});var aoe=lne,loe=bne,soe=Dne,coe=Mre,uoe=ioe,doe=One,foe=Kne,poe=ure,hoe="[object Arguments]",goe="[object Array]",moe="[object Object]",boe=Object.prototype.hasOwnProperty;var voe=function(e,t,n,r,o,i){var a=doe(e),l=doe(t),s=a?goe:uoe(e),c=l?goe:uoe(t),u=(s=s==hoe?moe:s)==moe,d=(c=c==hoe?moe:c)==moe,f=s==c;if(f&&foe(e)){if(!foe(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new aoe),a||poe(e)?loe(e,t,n,r,o,i):soe(e,t,s,n,r,o,i);if(!(1&n)){var p=u&&boe.call(e,"__wrapped__"),h=d&&boe.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new aoe),o(g,m,n,r,i)}}return!!f&&(i||(i=new aoe),coe(e,t,n,r,o,i))},yoe=voe,woe=Iq;var xoe=function e(t,n,r,o,i){return t===n||(null==t||null==n||!woe(t)&&!woe(n)?t!=t&&n!=n:yoe(t,n,r,o,e,i))},koe=xoe;var Soe=function(e,t){return koe(e,t)};var Coe=function(){};var Eoe=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1},Doe=function(e){return e!=e},$oe=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var Ooe=function(e,t,n){return t==t?$oe(e,t,n):Eoe(e,Doe,n)};var _oe=function(e,t){return!!(null==e?0:e.length)&&Ooe(e,t,0)>-1};var Ioe=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},Noe=Bre,joe=Coe,Poe=Noe&&1/vne(new Noe([,-0]))[1]==1/0?function(e){return new Noe(e)}:joe,Toe=fne,Foe=_oe,Roe=Ioe,Aoe=pne,Moe=Poe,Loe=vne;var zoe=function(e,t,n){var r=-1,o=Foe,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=Roe;else if(i>=200){var c=t?null:Moe(e);if(c)return Loe(c);a=!1,o=Aoe,s=new Toe}else s=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(u)}else o(s,d,n)||(s!==l&&s.push(d),l.push(u))}return l};var Boe=function(e){return e&&e.length?zoe(e):[]},Hoe={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(U),n=r(ZV);function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e){return t.default.createElement("button",{className:e.classNames.clearAll,onClick:e.onClick},"Clear all")};o.propTypes={classNames:n.default.object,onClick:n.default.func},e.default=o}(Hoe);var Woe={};var Uoe=function(e){return function(t){return null==e?void 0:e[t]}},qoe=Uoe({"&":"&","<":"<",">":">",'"':""","'":"'"});var Voe=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Goe=One,Xoe=Pq,Koe=vq?vq.prototype:void 0,Yoe=Koe?Koe.toString:void 0;var Qoe=function e(t){if("string"==typeof t)return t;if(Goe(t))return Voe(t,e)+"";if(Xoe(t))return Yoe?Yoe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Joe=Qoe;var Zoe=function(e){return null==e?"":Joe(e)},eie=qoe,tie=Zoe,nie=/[&<>"']/g,rie=RegExp(nie.source);var oie=function(e){return(e=tie(e))&&rie.test(e)?e.replace(nie,eie):e};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=l(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(U),n=i(ZV),r=i(Soe),o=i(oie);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){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(b6){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,n)}}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}var g=function(e){!function(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&&c(e,t)}(i,e);var n=u(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return p(d(e=n.call.apply(n,[this].concat(a))),"markIt",(function(t,n){var r=n.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:t[e.props.labelField].replace(RegExp(r,"gi"),(function(e){return"<mark>".concat((0,o.default)(e),"</mark>")}))}})),p(d(e),"shouldRenderSuggestions",(function(t){var n=e.props,r=n.minQueryLength,o=n.isFocused;return t.length>=r&&o})),p(d(e),"renderSuggestion",(function(n,r){var o=e.props.renderSuggestion;return"function"==typeof o?o(n,r):t.default.createElement("span",{dangerouslySetInnerHTML:e.markIt(n,r)})})),e}return s(i,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,r.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,l=a.selectedIndex,s=a.classNames;if(this.suggestionsContainer&&e.selectedIndex!==l){var c=this.suggestionsContainer.querySelector(".".concat(s.activeSuggestion));c&&(t=c,n=this.suggestionsContainer,r=n.offsetHeight,o=t.offsetHeight,(i=t.offsetTop-n.scrollTop)+o>=r?n.scrollTop+=i-r+o:i<0&&(n.scrollTop+=i))}}},{key:"render",value:function(){var e=this,n=this.props,r=n.suggestions.map(function(e,r){return t.default.createElement("li",{key:r,onMouseDown:n.handleClick.bind(null,r),onTouchStart:n.handleClick.bind(null,r),onMouseOver:n.handleHover.bind(null,r),className:r===n.selectedIndex?n.classNames.activeSuggestion:""},this.renderSuggestion(e,n.query))}.bind(this)),o=n.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==r.length&&o(n.query)?t.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},t.default.createElement("ul",null," ",r," ")):null}}]),i}(t.Component);p(g,"propTypes",{query:n.default.string.isRequired,selectedIndex:n.default.number.isRequired,suggestions:n.default.array.isRequired,handleClick:n.default.func.isRequired,handleHover:n.default.func.isRequired,minQueryLength:n.default.number,shouldRenderSuggestions:n.default.func,isFocused:n.default.bool.isRequired,classNames:n.default.object,labelField:n.default.string.isRequired,renderSuggestion:n.default.func}),p(g,"defaultProps",{minQueryLength:2}),e.default=g}(Woe);var iie={exports:{}};
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(iie);var aie=iie.exports,lie={},sie={},cie=Zoe,uie=/[\\^$.*+?()[\]{}|]/g,die=RegExp(uie.source);var fie=function(e){return(e=cie(e))&&die.test(e)?e.replace(uie,"\\$&"):e};Object.defineProperty(sie,"__esModule",{value:!0}),sie.buildRegExpFromDelimiters=function(e){var t=e.map((function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)})).join(""),n=(0,hie.default)(t);return new RegExp("[".concat(n,"]+"))},sie.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},sie.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var pie,hie=(pie=fie)&&pie.__esModule?pie:{default:pie};var gie={},mie={};Object.defineProperty(mie,"__esModule",{value:!0}),mie.KEYS=mie.INPUT_FIELD_POSITIONS=mie.ERRORS=mie.DEFAULT_PLACEHOLDER=mie.DEFAULT_LABEL_FIELD=mie.DEFAULT_CLASSNAMES=void 0,mie.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},mie.DEFAULT_PLACEHOLDER="Press enter to add new tag",mie.DEFAULT_LABEL_FIELD="text",mie.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},mie.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"},mie.ERRORS={TAG_LIMIT:"Tag limit reached!"},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(U),n=o(ZV),r=mie;function o(e){return e&&e.__esModule?e:{default:e}}var i=String.fromCharCode(215),a=function(e){var n=e.readOnly,o=e.removeComponent,a=e.onRemove,l=e.className,s=e.tag,c=e.index,u=function(e){if(r.KEYS.ENTER.includes(e.keyCode)||e.keyCode===r.KEYS.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===r.KEYS.BACKSPACE&&a(e)};if(n)return t.default.createElement("span",null);var d="Tag at index ".concat(c," with value ").concat(s.id," focussed. Press backspace to remove");if(o){var f=o;return t.default.createElement(f,{onRemove:a,onKeyDown:u,className:l,"aria-label":d,tag:s,index:c})}return t.default.createElement("button",{onClick:a,onKeyDown:u,className:l,type:"button","aria-label":d},i)};a.propTypes={className:n.default.string,onRemove:n.default.func.isRequired,readOnly:n.default.bool,removeComponent:n.default.func,tag:n.default.shape({id:n.default.string.isRequired,className:n.default.string,key:n.default.string}),index:n.default.number.isRequired},e.default=a}(gie),function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var r=c(n);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(U),r=ree,o=s(ZV),i=s(aie),a=sie,l=s(gie);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(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);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)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f="tag",p=function(e){var t=(0,n.useRef)(null),o=e.readOnly,s=e.tag,c=e.classNames,d=e.index,p=u((0,r.useDrag)((function(){return{type:f,collect:function(e){return{isDragging:!!e.isDragging()}},item:e,canDrag:function(){return(0,a.canDrag)(e)}}})),2),h=p[0].isDragging;(0,p[1])((0,u((0,r.useDrop)((function(){return{accept:f,drop:function(t,n){var r=t.index,o=d;r!==o&&e.moveTag(r,o)},canDrop:function(e){return(0,a.canDrop)(e)}}})),2)[1])(t));var g=e.tag[e.labelField],m=s.className,b=void 0===m?"":m,v=h?0:1;return n.default.createElement("span",{ref:t,className:(0,i.default)("tag-wrapper",c.tag,b),style:{opacity:v,cursor:(0,a.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},g,n.default.createElement(l.default,{tag:e.tag,className:c.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:o,index:d}))};p.propTypes={labelField:o.default.string,onDelete:o.default.func.isRequired,tag:o.default.shape({id:o.default.string.isRequired,className:o.default.string,key:o.default.string}),moveTag:o.default.func,removeComponent:o.default.func,onTagClicked:o.default.func,classNames:o.default.object,readOnly:o.default.bool,index:o.default.number.isRequired},p.defaultProps={labelField:"text",readOnly:!1},e.default=p}(lie),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"KEYS",{enumerable:!0,get:function(){return p.KEYS}}),e.WithOutContext=e.WithContext=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=b(e)&&"function"!=typeof e)return{default:e};var n=g(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(U),n=ree,r=$ee,o=h(Soe),i=h(Coe),a=h(Boe),l=h(Hoe),s=h(Woe),c=h(ZV),u=h(aie),d=h(lie),f=sie,p=mie;function h(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(g=function(e){return e?n:t})(e)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function y(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){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(b6){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}(this,n)}}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t,n){return(t=$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}var O,_=e.WithOutContext=function(e){!function(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&&k(e,t)}(r,e);var n=S(r);function r(e){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),D(C(o=n.call(this,e)),"filteredSuggestions",(function(e){var t=o.props.suggestions;if(o.props.allowUnique){var n=o.props.tags.map((function(e){return e.id.trim().toLowerCase()}));t=t.filter((function(e){return!n.includes(e.id.toLowerCase())}))}if(o.props.handleFilterSuggestions)return o.props.handleFilterSuggestions(e,t);var r=t.filter((function(t){return 0===o.getQueryIndex(e,t)})),i=t.filter((function(t){return o.getQueryIndex(e,t)>0}));return r.concat(i)})),D(C(o),"getQueryIndex",(function(e,t){return t[o.props.labelField].toLowerCase().indexOf(e.toLowerCase())})),D(C(o),"resetAndFocusInput",(function(){o.setState({query:""}),o.textInput&&(o.textInput.value="",o.textInput.focus())})),D(C(o),"updateSuggestions",(function(){var e=o.state,t=e.query,n=e.selectedIndex,r=o.filteredSuggestions(t);o.setState({suggestions:r,selectedIndex:n>=r.length?r.length-1:n})})),D(C(o),"addTag",(function(e){var t=o.props,n=t.tags,r=t.labelField,i=t.allowUnique,a=o.state.currentEditIndex;if(e.id&&e[r]){if(-1===a){if(o.tagLimitReached())return o.setState({error:p.ERRORS.TAG_LIMIT}),void o.resetAndFocusInput();o.setState({error:""})}var l=n.map((function(e){return e.id.toLowerCase()}));if(!(i&&l.indexOf(e.id.trim().toLowerCase())>=0)){if(o.props.autocomplete){var s=o.filteredSuggestions(e[r]);(1===o.props.autocomplete&&1===s.length||!0===o.props.autocomplete&&s.length)&&(e=s[0])}-1!==a&&o.props.onTagUpdate?o.props.onTagUpdate(a,e):o.props.handleAddition(e),o.setState({query:"",selectionMode:!1,selectedIndex:-1,currentEditIndex:-1}),o.resetAndFocusInput()}}})),D(C(o),"clearAll",(function(){o.props.onClearAll&&o.props.onClearAll(),o.setState({error:""})})),D(C(o),"getTagItems",(function(){var e=o.props,n=e.tags,r=e.labelField,i=e.removeComponent,a=e.readOnly,l=e.allowDragDrop,s=w(w({},p.DEFAULT_CLASSNAMES),o.props.classNames),c=o.state,u=c.currentEditIndex,f=c.query,h=l?o.moveTag:null;return n.map((function(e,n){return t.default.createElement(t.default.Fragment,{key:n},u===n?t.default.createElement("div",{className:s.editTagInput},t.default.createElement("input",{ref:function(e){o.tagInput=e},onFocus:o.handleFocus,value:f,onChange:o.handleChange,onKeyDown:o.handleKeyDown,onBlur:o.handleBlur,className:s.editTagInputField,onPaste:o.handlePaste,"data-testid":"tag-edit"})):t.default.createElement(d.default,{index:n,tag:e,labelField:r,onDelete:o.handleDelete.bind(C(o),n),moveTag:h,removeComponent:i,onTagClicked:o.handleTagClick.bind(C(o),n,e),readOnly:a,classNames:s,allowDragDrop:l}))}))})),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var i=e.suggestions;return o.state={suggestions:i,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1,ariaLiveStatus:"",currentEditIndex:-1,error:""},o.reactTagsRef=(0,t.createRef)(),o.handleFocus=o.handleFocus.bind(C(o)),o.handleBlur=o.handleBlur.bind(C(o)),o.handleKeyDown=o.handleKeyDown.bind(C(o)),o.handleChange=o.handleChange.bind(C(o)),o.moveTag=o.moveTag.bind(C(o)),o.handlePaste=o.handlePaste.bind(C(o)),o.handleSuggestionHover=o.handleSuggestionHover.bind(C(o)),o.handleSuggestionClick=o.handleSuggestionClick.bind(C(o)),o}return x(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,o.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"handleDelete",value:function(e,t){t.preventDefault(),t.stopPropagation();var n=this.props.tags.slice();if(0!==n.length){this.setState({error:""});var r="Tag at index ".concat(e," with value ").concat(n[e].id," deleted.");this.props.handleDelete(e,t);var o,i,a,l=this.reactTagsRef.current.querySelectorAll(".ReactTags__remove");0===e&&n.length>1?(o=l[0],i=0,a=n[1]):(o=l[e-1],a=n[i=e-1]),o||(i=-1,o=this.textInput),r+=i>=0?" Tag at index ".concat(i," with value ").concat(a.id," focussed. Press backspace to remove"):"Input focussed. Press enter to add a new tag",o.focus(),this.setState({ariaLiveStatus:r})}}},{key:"handleTagClick",value:function(e,t,n){var r=this,o=this.props,i=o.editable,a=o.handleTagClick,l=o.labelField;i&&this.setState({currentEditIndex:e,query:t[l]},(function(){r.tagInput.focus()})),a&&a(e,n)}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value,e);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t,e),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t,e),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1,currentEditIndex:-1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=t.selectedIndex,o=t.suggestions,i=t.selectionMode;if(e.keyCode===p.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[],currentEditIndex:-1})),-1!==this.props.delimiters.indexOf(e.keyCode)&&!e.shiftKey){e.keyCode===p.KEYS.TAB&&""===n||e.preventDefault();var a=i&&-1!==r?o[r]:D({id:n.trim()},this.props.labelField,n.trim());Object.keys(a)&&this.addTag(a)}e.keyCode===p.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===p.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===p.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===o.length?-1:(r+1)%o.length,selectionMode:!0}))}},{key:"tagLimitReached",value:function(){var e=this.props,t=e.tags,n=e.maxTags;return n&&t.length>=n}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){if(this.tagLimitReached())return this.setState({error:p.ERRORS.TAG_LIMIT}),void this.resetAndFocusInput();this.setState({error:""}),e.preventDefault();var n=e.clipboardData||window.clipboardData,r=n.getData("text"),o=this.props.maxLength,i=void 0===o?r.length:o,l=Math.min(i,r.length),s=n.getData("text").substr(0,l),c=(0,f.buildRegExpFromDelimiters)(this.props.delimiters),u=s.split(c).map((function(e){return e.trim()}));(0,a.default)(u).forEach((function(e){return t.addTag(D({id:e.trim()},t.props.labelField,e.trim()))}))}}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var n=this.props.tags[e];this.props.handleDrag(n,e,t)}},{key:"render",value:function(){var e=this,n=this.getTagItems(),r=w(w({},p.DEFAULT_CLASSNAMES),this.props.classNames),o=this.state.query.trim(),i=this.state.selectedIndex,a=this.state.suggestions,c=this.state.error,d=this.props,f=d.placeholder,h=d.name,g=d.id,m=d.maxLength,b=d.inline,y=d.inputFieldPosition,x=d.inputValue,k=d.inputProps,S=d.clearAll,C=d.tags,E=b?y:p.INPUT_FIELD_POSITIONS.BOTTOM,D=this.props.readOnly?null:t.default.createElement("div",{className:r.tagInput},t.default.createElement("input",v({},k,{ref:function(t){e.textInput=t},className:r.tagInputField,type:"text",placeholder:f,"aria-label":f,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:h,id:g,maxLength:m,value:x,"data-automation":"input","data-testid":"input"})),t.default.createElement(s.default,{query:o,suggestions:a,labelField:this.props.labelField,selectedIndex:i,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:r,renderSuggestion:this.props.renderSuggestion}),S&&C.length>0&&t.default.createElement(l.default,{classNames:r,onClick:this.clearAll}),c&&t.default.createElement("div",{"data-testid":"error",className:"ReactTags__error"},t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"24",width:"24",fill:"#e03131"},t.default.createElement("path",{d:"M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"})),c));return t.default.createElement("div",{className:(0,u.default)(r.tags,"react-tags-wrapper"),ref:this.reactTagsRef},t.default.createElement("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0}},this.state.ariaLiveStatus),E===p.INPUT_FIELD_POSITIONS.TOP&&D,t.default.createElement("div",{className:r.selected},n,E===p.INPUT_FIELD_POSITIONS.INLINE&&D),E===p.INPUT_FIELD_POSITIONS.BOTTOM&&D)}}]),r}(t.Component);D(_,"propTypes",{placeholder:c.default.string,labelField:c.default.string,suggestions:c.default.arrayOf(c.default.shape({id:c.default.string.isRequired})),delimiters:c.default.arrayOf(c.default.number),autofocus:c.default.bool,inline:c.default.bool,inputFieldPosition:c.default.oneOf([p.INPUT_FIELD_POSITIONS.INLINE,p.INPUT_FIELD_POSITIONS.TOP,p.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:c.default.func,handleAddition:c.default.func,onTagUpdate:c.default.func,handleDrag:c.default.func,handleFilterSuggestions:c.default.func,handleTagClick:c.default.func,allowDeleteFromEmptyInput:c.default.bool,allowAdditionFromPaste:c.default.bool,allowDragDrop:c.default.bool,handleInputChange:c.default.func,handleInputFocus:c.default.func,handleInputBlur:c.default.func,minQueryLength:c.default.number,shouldRenderSuggestions:c.default.func,removeComponent:c.default.func,autocomplete:c.default.oneOfType([c.default.bool,c.default.number]),readOnly:c.default.bool,classNames:c.default.object,name:c.default.string,id:c.default.string,maxLength:c.default.number,inputValue:c.default.string,maxTags:c.default.number,tags:c.default.arrayOf(c.default.shape({id:c.default.string.isRequired,className:c.default.string})),allowUnique:c.default.bool,renderSuggestion:c.default.func,inputProps:c.default.object,editable:c.default.bool,clearAll:c.default.bool,onClearAll:c.default.func}),D(_,"defaultProps",{placeholder:p.DEFAULT_PLACEHOLDER,labelField:p.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[].concat((O=p.KEYS.ENTER,function(e){if(Array.isArray(e))return m(e)}(O)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(O)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(O)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[p.KEYS.TAB]),autofocus:!0,inline:!0,inputFieldPosition:p.INPUT_FIELD_POSITIONS.INLINE,handleDelete:i.default,handleAddition:i.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[],inputProps:{},onTagUpdate:i.default,editable:!1,clearAll:!1,handleClearAll:i.default}),e.WithContext=function(e){var o=v({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return t.default.createElement(n.DndProvider,{backend:r.HTML5Backend},t.default.createElement(_,o))}}(b7);const bie=oH((({css:e,token:t},n)=>e`
|
||
.autocompleteResults {
|
||
left: 16px !important;
|
||
min-width: 200px !important;
|
||
padding: 0 !important;
|
||
}
|
||
|
||
/* Styles for the input */
|
||
.ReactTags__editTagInput,
|
||
.ReactTags__tagInput {
|
||
display: inline-block;
|
||
width: 100%;
|
||
margin: 0;
|
||
|
||
input {
|
||
position: relative;
|
||
|
||
display: block;
|
||
|
||
width: 100%;
|
||
margin: 0;
|
||
padding: var(--input-padding);
|
||
|
||
color: ${"positive"===n?t.colorSuccessTextHover:t.colorErrorTextHover};
|
||
|
||
background: ${t.colorFillTertiary};
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadius}px;
|
||
|
||
&:focus {
|
||
color: ${"positive"===n?t.colorSuccessText:t.colorErrorText};
|
||
background: ${t.colorFillSecondary};
|
||
border: 1px solid ${t.colorBorder};
|
||
outline: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
/* Styles for selected tags */
|
||
.ReactTags__tags.react-tags-wrapper {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.ReactTags__selected {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
|
||
span.ReactTags__tag {
|
||
position: relative;
|
||
|
||
display: flex;
|
||
align-items: center;
|
||
|
||
padding: 6px 6px 6px 8px;
|
||
|
||
font-size: 13px;
|
||
color: ${"positive"===n?t.colorSuccessTextHover:t.colorErrorTextHover};
|
||
|
||
background: ${t.colorFillSecondary};
|
||
border: 1px solid ${t.colorBorderSecondary};
|
||
border-radius: ${t.borderRadius}px;
|
||
|
||
&:hover {
|
||
color: ${"positive"===n?t.colorSuccessText:t.colorErrorText};
|
||
background: ${t.colorFill};
|
||
border: 1px solid ${t.colorBorder};
|
||
}
|
||
}
|
||
|
||
a.ReactTags__remove {
|
||
cursor: pointer;
|
||
margin-left: 5px;
|
||
color: #aaa;
|
||
}
|
||
}
|
||
|
||
.ReactTags__remove {
|
||
cursor: pointer;
|
||
color: ${t.colorTextDescription};
|
||
background: none;
|
||
border: none;
|
||
|
||
&:hover {
|
||
color: ${t.colorText};
|
||
}
|
||
}
|
||
`)),vie=b7.WithContext,yie=[188,13],wie=U.memo((({tags:e,setTags:t,type:n,setValue:r})=>{const o=`${n}_tag_editor`,[i,a]=U.useState(!1),{styles:l}=bie(n),s=U.useCallback((n=>{const o=e.filter(((e,t)=>t!==n));t(o),r(o)}),[e]),c=U.useCallback((n=>{const o=[...e,p7(n)];t(o),r(o)}),[e]),u=U.useCallback(((n,o,i)=>{const a=[...e];a.splice(o,1),a.splice(i,0,p7(n)),t(a),r(a)}),[e]),d=U.useCallback(((n,o)=>{const i=[...e];i[n]=p7(o),t(i),r(i)}),[e]);return U.useEffect((()=>{try{if(!addAutocompleteToArea||i)return;let e=0;const t=setInterval((()=>{if(i||e>10){const e=document.querySelector(`#${o}`);e&&(a(!0),addAutocompleteToArea(e),clearInterval(t),fe.success("🤯 [promptTagEditor] inject"))}e++}),1e3)}catch(e){fe.error("🤯 [promptTagEditor]",e)}}),[i]),ee.jsx("div",{className:l,children:ee.jsx(vie,{delimiters:yie,editable:!0,handleAddition:c,handleDelete:s,handleDrag:u,id:o,inline:!0,inputFieldPosition:"bottom",onTagUpdate:d,tags:e})})})),xie=oH((({css:e})=>({promptView:e`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
`}))),kie=U.memo((({type:e})=>{const[t,n]=U.useState([]),{styles:r}=xie(),{t:o}=aZ(),i="positive"===e?"[id$='2img_prompt'] textarea":"[id$='2img_neg_prompt'] textarea",a=U.useCallback((()=>{try{const e=get_uiCurrentTabContent().querySelector(i);e&&n(h7(e.value))}catch(e){fe.error("🤯 [prompt]",e)}}),[]),l=U.useCallback((()=>{try{const e=t.map((e=>e.text)).join(", "),n=get_uiCurrentTabContent().querySelector(i);n&&(n.value=e),updateInput(n)}catch(e){fe.error("🤯 [prompt]",e)}}),[t,e]),s=U.useCallback((e=>{try{const t=get_uiCurrentTabContent().querySelector(i);t&&(t.value=e.map((e=>e.text)).join(", ")),updateInput(t)}catch(t){fe.error("🤯 [prompt]",t)}}),[]);return ee.jsxs("div",{className:r.promptView,children:[ee.jsx(wie,{setTags:n,setValue:s,tags:t,type:e}),ee.jsxs(th,{gap:8,horizontal:!0,children:[ee.jsx("button",{className:"secondary gradio-button",onClick:a,style:{flex:1,height:36},title:o("prompt.load"),type:"button",children:"🔄"}),ee.jsx("button",{className:"secondary gradio-button",onClick:l,style:{flex:1,height:36},title:o("prompt.set"),type:"button",children:"➡️"})]})]})})),Sie=U.memo((()=>{const e=k2(y2,MX),{t:t}=aZ();return U.useEffect((()=>{e.svgIcon&&k8()}),[]),ee.jsxs(th,{gap:16,children:[e.promptEditor&&ee.jsxs(ee.Fragment,{children:[ee.jsx("span",{style:{marginBottom:-10},children:t("prompt.positive")}),ee.jsx(kie,{type:"positive"}),ee.jsx("span",{style:{marginBottom:-10},children:t("prompt.negative")}),ee.jsx(kie,{type:"negative"})]}),ee.jsx(m7,{})]})})),Cie={kitchen:f8.dark.colorPrimary,...MY},Eie=[Cie.kitchen,...LY],Die={kitchen:p8.dark.colorNeutral,...zY},$ie=[Die.kitchen,...BY],Oie=(e,t)=>{if(!t)return"";let n="primary"===e?Cie:Die,r=Object.entries(n).find((e=>e[1]===t));return null==r?void 0:r[0]},_ie=U.memo((()=>{const e=k2(y2,MX),{onSetSetting:t,localeOptions:n}=k2((e=>({localeOptions:e.localeOptions,onSetSetting:e.onSetSetting}))),[r,o]=U.useState(e),[i,a]=U.useState(e.primaryColor||void 0),[l,s]=U.useState(e.neutralColor||void 0),{t:c}=aZ(),u=U.useCallback((e=>{t({...e,neutralColor:l,primaryColor:i}),location.reload()}),[i,l]),d=U.useMemo((()=>({children:[{children:ee.jsx(KN,{options:n}),desc:c("setting.language.desc"),label:c("setting.language.title"),name:"i18n"},{children:ee.jsx(lB,{}),desc:c("setting.reduceAnimation.desc"),label:c("setting.reduceAnimation.title"),name:"liteAnimation",valuePropName:"checked"},{children:ee.jsx(UY,{activeColor:i?Cie[i]:void 0,colors:Eie,onSelect:e=>a(Oie("primary",e))}),desc:c("setting.primaryColor.desc"),label:c("setting.primaryColor.title")},{children:ee.jsx(UY,{activeColor:l?Die[l]:void 0,colors:$ie,onSelect:e=>s(Oie("neutral",e))}),desc:c("setting.neutralColor.desc"),label:c("setting.neutralColor.title")},{children:ee.jsx($z,{options:[{label:c("brand.lobe"),value:"lobe"},{label:c("brand.kitchen"),value:"kitchen"},{label:c("brand.custom"),value:"custom"}]}),desc:c("setting.logoType.desc"),label:c("setting.logoType.title"),name:"logoType"},{children:ee.jsx(wM,{}),desc:c("setting.customLogo.desc"),divider:!1,hidden:"custom"!==r.logoType,label:c("setting.customLogo.title"),name:"logoCustomUrl"},{children:ee.jsx(wM,{}),desc:c("setting.customTitle.desc"),divider:!1,hidden:"custom"!==r.logoType,label:c("setting.customTitle.title"),name:"logoCustomTitle"},{children:ee.jsx(u7,{logoCustomTitle:r.logoCustomTitle,logoCustomUrl:r.logoCustomUrl}),divider:!1,hidden:"custom"!==r.logoType,label:c("setting.logoType.preview")},{children:ee.jsx(lB,{}),desc:c("setting.svgIcons.desc"),label:c("setting.svgIcons.title"),name:"svgIcon",valuePropName:"checked"},{children:ee.jsx(lB,{}),desc:c("setting.customFont.desc"),label:c("setting.customFont.title"),name:"enableWebFont",valuePropName:"checked"},{children:ee.jsx(lB,{}),desc:c("setting.confirmPageUnload.desc"),label:c("setting.confirmPageUnload.title"),name:"confirmPageUnload",valuePropName:"checked"}],title:c("setting.group.theme")})),[i,l,r.logoType,r.logoCustomTitle,r.logoCustomUrl]);return ee.jsx(_K,{id:"theme_settings",initialValues:e,items:[d],onFinish:u,onValuesChange:(e,t)=>o(t),style:{flex:1},variant:"pure"})})),Iie=U.memo((()=>{const e=k2(y2,MX),t=k2((e=>e.onSetSetting)),{t:n}=aZ(),r=U.useCallback((e=>{t(e),location.reload()}),[]),o=U.useMemo((()=>({children:[{children:ee.jsx(lB,{}),desc:n("setting.imageInfo.desc"),label:n("setting.imageInfo.title"),name:"enableImageInfo",valuePropName:"checked"}],title:n("setting.group.experimental")})),[]),i=U.useMemo((()=>({children:[{children:ee.jsx(lB,{}),desc:n("setting.promptHighlight.desc"),label:n("setting.promptHighlight.title"),name:"enableHighlight",valuePropName:"checked"},{children:ee.jsx(lB,{}),desc:n("setting.promptEditor.desc"),label:n("setting.promptEditor.title"),name:"promptEditor",valuePropName:"checked"}],title:n("setting.group.promptTextarea")})),[]);return ee.jsx(_K,{id:"theme_settings",initialValues:e,items:[o,i],onFinish:r,style:{flex:1},variant:"pure"})})),Nie=U.memo((()=>{const{t:e}=aZ(),{mobile:t}=NB(),n=k2((e=>e.onSetSetting)),r=U.useCallback((()=>{n(p2),location.reload()}),[]),o=t?{flex:1}:{margin:0};return ee.jsxs(th,{flex:1,gap:12,horizontal:!0,justify:"flex-end",children:[ee.jsx(pz,{cancelText:e("cancel"),okText:e("confirm"),okType:"danger",onConfirm:r,title:e("setting.button.reset"),children:ee.jsx(bE,{danger:!0,style:o,children:e("setting.button.reset")})}),ee.jsx(bE,{form:"theme_settings",htmlType:"submit",style:o,type:"primary",children:e("setting.button.submit")})]})})),jie=U.memo((()=>{const e=k2(y2,MX),t=k2((e=>e.onSetSetting)),{t:n}=aZ(),r=U.useCallback((e=>{t(e),location.reload()}),[]),o=U.useMemo((()=>({children:[{children:ee.jsx(lB,{}),desc:n("setting.splitPreviewer.desc"),label:n("setting.splitPreviewer.title"),name:"layoutSplitPreview",valuePropName:"checked"},{children:ee.jsx(lB,{}),desc:n("setting.hideFooter.desc"),label:n("setting.hideFooter.title"),name:"layoutHideFooter",valuePropName:"checked"}],title:n("setting.group.layout")})),[]),i=U.useMemo((()=>({children:[{children:ee.jsx($z,{options:[{label:n("setting.promptDisplayMode.scroll"),value:"scroll"},{label:n("setting.promptDisplayMode.resizable"),value:"resizable"}]}),desc:n("setting.promptDisplayMode.desc"),label:n("setting.promptDisplayMode.title"),name:"promptTextareaType"}],title:n("setting.group.promptTextarea")})),[]);return ee.jsx(_K,{id:"theme_settings",initialValues:e,items:[o,i],onFinish:r,style:{flex:1},variant:"pure"})})),Pie=U.memo((()=>{const e=k2(y2,MX),t=k2((e=>e.onSetSetting)),[n,r]=U.useState(e),{t:o}=aZ(),i=U.useCallback((e=>{t(e),location.reload()}),[]),a=U.useMemo((()=>({children:[{children:ee.jsx(lB,{}),desc:o("setting.quickSettingSidebar.enable.desc"),label:o("setting.quickSettingSidebar.enable.title"),name:"enableSidebar",valuePropName:"checked"},{children:ee.jsx(lB,{}),desc:o("setting.quickSettingSidebar.defaultExpand.desc"),hidden:!n.enableSidebar,label:o("setting.quickSettingSidebar.defaultExpand.title"),name:"sidebarExpand",valuePropName:"checked"},{children:ee.jsx($z,{options:[{label:o("sidebar.mode.fixed"),value:"fixed"},{label:o("sidebar.mode.float"),value:"float"}]}),desc:o("setting.quickSettingSidebar.displayMode.desc"),hidden:!n.enableSidebar,label:o("setting.quickSettingSidebar.displayMode.title"),name:"sidebarFixedMode"},{children:ee.jsx(VA,{}),desc:o("setting.quickSettingSidebar.defaultWidth.desc"),hidden:!n.enableSidebar,label:o("setting.quickSettingSidebar.defaultWidth.title"),name:"sidebarWidth"}],title:o("setting.group.quickSettingSidebar")})),[n.enableSidebar]),l=U.useMemo((()=>({children:[{children:ee.jsx(lB,{}),desc:o("setting.extraNetworkSidebar.enable.desc"),label:o("setting.extraNetworkSidebar.enable.title"),name:"enableExtraNetworkSidebar",valuePropName:"checked"},{children:ee.jsx($z,{options:[{label:o("sidebar.mode.fixed"),value:"fixed"},{label:o("sidebar.mode.float"),value:"float"}]}),desc:o("setting.extraNetworkSidebar.displayMode.desc"),hidden:!n.enableExtraNetworkSidebar,label:o("setting.extraNetworkSidebar.displayMode.title"),name:"extraNetworkFixedMode"},{children:ee.jsx(lB,{}),desc:o("setting.extraNetworkSidebar.defaultExpand.desc"),hidden:!n.enableExtraNetworkSidebar,label:o("setting.extraNetworkSidebar.defaultExpand.title"),name:"extraNetworkSidebarExpand",valuePropName:"checked"},{children:ee.jsx(VA,{}),desc:o("setting.extraNetworkSidebar.defaultWidth.desc"),hidden:!n.enableExtraNetworkSidebar,label:o("setting.extraNetworkSidebar.defaultWidth.title"),name:"extraNetworkSidebarWidth"},{children:ee.jsx(VA,{}),desc:o("setting.extraNetworkSidebar.defaultCardSize.desc"),hidden:!n.enableExtraNetworkSidebar,label:o("setting.extraNetworkSidebar.defaultCardSize.title"),name:"extraNetworkCardSize"}],title:o("setting.group.extraNetworkSidebar")})),[n.enableExtraNetworkSidebar]);return ee.jsx(_K,{id:"theme_settings",initialValues:e,items:[a,l],onFinish:i,onValuesChange:(e,t)=>r(t),style:{flex:1},variant:"pure"})})),Tie=oH((({css:e,token:t,prefixCls:n})=>({compact:e`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.125rem;
|
||
`,menu:e`
|
||
flex: 1;
|
||
background: transparent;
|
||
border: none !important;
|
||
|
||
.${n}-menu-item-divider {
|
||
margin-block: 0.125rem;
|
||
border-color: ${t.colorFillTertiary};
|
||
|
||
&:first-child {
|
||
margin-top: 0;
|
||
}
|
||
|
||
&:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
}
|
||
|
||
.${n}-menu-item, .${n}-menu-submenu-title {
|
||
display: flex;
|
||
gap: 0.75rem;
|
||
align-items: center;
|
||
|
||
height: unset;
|
||
min-height: 2rem;
|
||
padding: 0.375rem 0.75rem;
|
||
|
||
line-height: 2;
|
||
|
||
.anticon + .${n}-menu-title-content {
|
||
margin-inline-start: 0;
|
||
}
|
||
}
|
||
|
||
.${n}-menu-item-selected {
|
||
.${n}-menu-item-icon svg {
|
||
color: ${t.colorText};
|
||
}
|
||
}
|
||
|
||
.${n}-menu-item-icon svg {
|
||
color: ${t.colorTextSecondary};
|
||
}
|
||
|
||
.${n}-menu-title-content {
|
||
flex: 1;
|
||
}
|
||
`}))),Fie=U.memo((({className:e,selectable:t=!1,variant:n,...r})=>{const o="compact"===n,{cx:i,styles:a,theme:l}=Tie();return ee.jsx(nk,{theme:{components:{Menu:{controlHeightLG:36,iconMarginInlineEnd:8,iconSize:16,itemBorderRadius:l.borderRadius,itemColor:t?l.colorTextSecondary:l.colorText,itemHoverBg:l.colorFillTertiary,itemMarginBlock:o?0:4,itemMarginInline:o?0:4,itemSelectedBg:l.colorFillSecondary,paddingXS:-8}}},children:ee.jsx(GT,{className:i(a.menu,o&&a.compact,e),mode:"vertical",selectable:t,...r})})})),Rie=oH((({token:e,css:t})=>({logoLink:t`
|
||
height: 20px;
|
||
color: inherit;
|
||
|
||
&:hover {
|
||
color: ${e.colorLink};
|
||
}
|
||
`}))),Aie=U.memo((({style:e,...t})=>{const{styles:n,theme:r}=Rie();return ee.jsxs(th,{align:"center",flex:"none",gap:4,horizontal:!0,style:{color:r.colorTextDescription,fontSize:12,...e},...t,children:[ee.jsx("span",{children:"Powered by"}),ee.jsx("a",{className:n.logoLink,href:"https://lobehub.com",rel:"noreferrer",target:"_blank",children:ee.jsx(TY,{size:20,type:"text"})})]})})),Mie=oH((({token:e,css:t})=>({container:t`
|
||
padding: 24px 12px 16px;
|
||
background: ${e.colorBgContainer};
|
||
border-inline-end: 1px solid ${e.colorBorder};
|
||
`,desc:t`
|
||
line-height: 1.4;
|
||
color: ${e.colorTextDescription};
|
||
`,header:t`
|
||
padding: 0 0.75rem;
|
||
`,logo:t`
|
||
fill: ${e.colorText};
|
||
`,title:t`
|
||
margin: 0;
|
||
font-size: 26px;
|
||
font-weight: 600;
|
||
line-height: 1.3;
|
||
`}))),Lie=({children:e,className:t,title:n,desc:r,...o})=>{const{cx:i,styles:a}=Mie();return ee.jsxs(th,{className:i(a.container,t),flex:"none",gap:20,width:280,...o,children:[ee.jsxs(th,{className:a.header,gap:4,children:[ee.jsx("h1",{className:a.title,children:n}),r&&ee.jsx("p",{className:a.desc,children:r})]}),e,ee.jsx(Aie,{paddingInline:12})]})},zie=()=>{const{t:e}=aZ();return[{icon:ee.jsx(gH,{icon:Td}),key:Hie.Appearance,label:e("setting.tab.appearance")},{icon:ee.jsx(gH,{icon:of}),key:Hie.Layout,label:e("setting.tab.layout")},{icon:ee.jsx(gH,{icon:rf}),key:Hie.Sidebar,label:e("setting.tab.sidebar")},{icon:ee.jsx(gH,{icon:qd}),key:Hie.Experimental,label:e("setting.tab.experimental")}]},Bie=U.memo((({tab:e,setTab:t})=>{const n=zie();return ee.jsx($z,{block:!0,onChange:t,options:n.map((({key:e,label:t})=>({label:t,value:e}))),value:e})}));var Hie=(e=>(e.Appearance="appearance",e.Experimental="experimental",e.Layout="layout",e.Sidebar="sidebar",e))(Hie||{});const Wie=U.memo((({tab:e,setTab:t})=>{const n=zie(),{t:r}=aZ();return ee.jsx(Lie,{desc:ee.jsxs(th,{align:"center",gap:4,horizontal:!0,children:[r("modal.themeSetting.desc"),ee.jsx(l7,{})]}),title:r("modal.themeSetting.title"),children:ee.jsx(Fie,{items:n,onClick:({key:e})=>t(e),selectable:!0,selectedKeys:[e]})})})),Uie=Wie,qie=U.memo((({open:e,onCancel:t})=>{const[n,r]=U.useState(Hie.Appearance),{mobile:o}=NB(),i=dH();aZ();const a=ee.jsxs(ee.Fragment,{children:[n===Hie.Appearance&&ee.jsx(_ie,{}),n===Hie.Layout&&ee.jsx(jie,{}),n===Hie.Sidebar&&ee.jsx(Pie,{}),n===Hie.Experimental&&ee.jsx(Iie,{})]});return ee.jsx($X,{allowFullscreen:!0,footer:o?ee.jsx(Nie,{}):null,onCancel:t,open:e,styles:{body:{display:"flex",minHeight:"min(75vh, 750px)",overflow:"hidden",padding:0,paddingBlock:0},content:{background:o?i.colorBgContainer:void 0,border:"none",boxShadow:`0 0 0 1px ${i.colorBorderSecondary}`}},title:!1,width:1024,children:o?ee.jsxs(th,{height:"100%",style:{overflow:"hidden",position:"relative"},width:"100%",children:[ee.jsx("div",{style:{padding:16},children:ee.jsx(Bie,{setTab:r,tab:n})}),ee.jsx(th,{height:"100%",style:{overflowX:"hidden",overflowY:"auto",position:"relative"},width:"100%",children:a})]}):ee.jsxs(th,{horizontal:!0,width:"100%",children:[ee.jsx(Uie,{setTab:r,tab:n}),ee.jsxs(th,{align:"center",gap:64,style:{background:i.isDarkMode?i.colorFillQuaternary:i.colorBgElevated,minHeight:"100%",overflowX:"hidden",overflowY:"auto",paddingBlock:40,paddingInline:56},width:"100%",children:[a,ee.jsx(th,{width:"100%",children:ee.jsx(Nie,{})})]})]})})})),Vie=({size:e})=>ee.jsx("svg",{fill:"currentColor",height:e,viewBox:"0 0 16 16",width:e,children:ee.jsx("path",{d:"M2 4.5L8 1l6 3.5v7L8 15l-6-3.5v-7zm6-1.194L3.976 5.653v4.694L8 12.694l4.024-2.347V5.653L8 3.306zm0 1.589l2.662 1.552v.824H9.25L8 6.54l-1.25.73v1.458L8 9.46l1.25-.73h1.412v.824L8 11.105 5.338 9.553V6.447L8 4.895z"})}),Gie=U.memo((()=>{const[e,t]=U.useState(!1),[n,r]=U.useState(!1),o=k2(x2),{mobile:i}=NB(),{t:a}=aZ(),l=U.useCallback((()=>{const e="light"===o?"dark":"light",t=u8.parseUrl(window.location.href);t.query.__theme=e,window.location.replace(u8.stringifyUrl(t))}),[o]);return ee.jsxs(ee.Fragment,{children:[ee.jsxs(ZM.Compact,{children:[!i&&ee.jsxs(ee.Fragment,{children:[ee.jsx("a",{href:"https://civitai.com/",rel:"noreferrer",target:"_blank",children:ee.jsx(CH,{icon:Vie,title:"Civitai"})}),ee.jsx("a",{href:"https://supagruen.github.io/StableDiffusion-CheatSheet/",rel:"noreferrer",target:"_blank",children:ee.jsx(CH,{icon:Yd,title:"Cheat Sheet"})}),ee.jsx(CH,{icon:Gd,onClick:()=>r(!0),title:a("header.feedback")})]}),ee.jsx(CH,{icon:"light"===o?cf:tf,onClick:l,title:a("header.switchTheme")}),ee.jsx(CH,{icon:sf,onClick:()=>t(!0),title:a("header.setting")})]}),ee.jsx(qie,{onCancel:()=>t(!1),open:e}),ee.jsx(s7,{onCancel:()=>r(!1),open:n})]})})),Xie=()=>Array.prototype.slice.call(gradioApp().querySelectorAll("#tabs > .tab-nav:first-of-type button")),Kie=()=>{const e=Array.prototype.slice.call(gradioApp().querySelectorAll('#tabs > [id^="tab_"]')),t=Xie();return fe.debug("🤯 [nav] generate nav list"),t.map(((t,n)=>({id:e[n].id,index:n,label:rU(String(t.textContent))})))},Yie=U.memo((()=>{const e=k2(w2),{mobile:t}=NB(),{items:n,onChange:r}=(e=>{const[t,n]=U.useState([]),r=U.useMemo((()=>Kie()),[]),o=U.useCallback((e=>{var t;fe.debug("🤯 [nav] onClick",e);const n=(null==(t=r.find((t=>t.id===e)))?void 0:t.index)||0;Xie()[n].click()}),[r]);return D2("#tabs > .tab-nav:first-of-type"),U.useEffect((()=>{try{const t=r.map((t=>({key:t.id,label:e?ee.jsx("div",{onClick:()=>o(t.id),children:t.label}):t.label})));n(t.filter(Boolean)),fe.success("🤯 [layout] inject - Header")}catch(t){fe.error("🤯 [layout] inject - Header",t)}}),[e]),{items:t,onChange:o}})(t),[o,i]=U.useState(!1);return t?ee.jsx(CV,{items:n,opened:o,setOpened:i}):ee.jsx(GY,{activeKey:e,items:n,onChange:r})})),Qie=U.memo((({children:e})=>{const{themeMode:t,version:n}=k2((e=>({themeMode:e.themeMode,version:e.version}))),r=dH();return ee.jsx(gY,{actions:ee.jsx(Gie,{themeMode:t}),actionsStyle:{flex:0},logo:ee.jsx("a",{href:`${wQ}/releases`,rel:"noreferrer",style:{alignItems:"center",color:r.colorText,display:"flex"},target:"_blank",children:ee.jsx(xH,{title:`LobeTheme v${n}`,children:ee.jsx(f7,{})})}),nav:ee.jsxs(ee.Fragment,{children:[ee.jsx(Yie,{}),e]})})})),Jie=U.memo((()=>{const e=dH(),[t,n]=U.useState("setting"),r=U.useRef(null),{t:o}=aZ();return _Q(r,"#quicksettings",{debug:"[layout] inject - QuickSettingSidebar"}),ee.jsx(IX,{children:ee.jsxs(th,{gap:16,children:[ee.jsx($z,{block:!0,onChange:e=>n(e),options:[{label:o("sidebar.quickSetting"),value:"setting"},{label:o("setting.promptEditor.title"),value:"prompt"}],style:{background:e.colorBgContainer,width:"100%"},value:t}),ee.jsx("div",{ref:r,style:"setting"===t?{}:{display:"none"}}),"prompt"===t&&ee.jsx(Sie,{})]})})})),Zie=oH((({css:e},{headerHeight:t=64,width:n})=>({container:e`
|
||
height: calc(100vh - ${t}px);
|
||
|
||
ul.options {
|
||
> li {
|
||
max-width: ${n-48}px;
|
||
}
|
||
}
|
||
|
||
#quicksettings {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
justify-content: stretch;
|
||
|
||
width: 100%;
|
||
|
||
> * {
|
||
flex: 1;
|
||
|
||
width: 100% !important;
|
||
min-width: unset !important;
|
||
max-width: unset !important;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.head > label {
|
||
min-width: unset;
|
||
max-width: 60%;
|
||
margin-right: 12px;
|
||
}
|
||
|
||
input[type='color'] {
|
||
width: 100%;
|
||
}
|
||
|
||
input[type='number'],
|
||
textarea {
|
||
resize: none;
|
||
box-sizing: border-box;
|
||
height: 28px !important;
|
||
padding: 4px !important;
|
||
}
|
||
|
||
textarea {
|
||
width: 100%;
|
||
}
|
||
|
||
span {
|
||
overflow: hidden;
|
||
width: 100%;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.dropdown-arrow {
|
||
min-width: 16px;
|
||
min-height: 16px;
|
||
}
|
||
|
||
div.gradio-dropdown {
|
||
min-width: unset !important;
|
||
}
|
||
}
|
||
`}))),eae=U.memo((({headerHeight:e})=>{const{mobile:t}=NB(),n=k2(y2,MX),[r,o]=U.useState(!t&&n.sidebarExpand),[i,a]=U.useState("fixed"===n.sidebarFixedMode),[l,s]=U.useState(n.sidebarWidth),{styles:c,theme:u}=Zie({headerHeight:e,width:l}),{t:d}=aZ();U.useEffect((()=>{t&&o(!1)}),[t]);const f=t||i?"fixed":"float";return ee.jsx(KV,{defaultSize:{width:n.sidebarWidth},expand:r,minWidth:n.sidebarWidth,mode:f,onExpandChange:o,onSizeChange:(e,t)=>(null==t?void 0:t.width)&&s(Number.parseInt(String(t.width))),pin:i,placement:"left",style:{display:"flex",flexDirection:"column"},children:ee.jsx(DY,{children:ee.jsxs(jX,{className:c.container,style:"float"===f?{background:u.colorBgContainer,minWidth:n.sidebarWidth}:{minWidth:n.sidebarWidth},children:[ee.jsx(RX,{pin:i,position:"left",setExpand:o,setPin:a,title:d("sidebar.quickSetting")}),ee.jsx(Jie,{})]})})})})),tae=oH((({css:e,token:t,stylish:n,cx:r},o)=>({background:e`
|
||
padding: 24px;
|
||
|
||
background-color: ${t.colorBgLayout};
|
||
background-image: url('https://gw.alipayobjects.com/zos/kitchen/o1ccl9hjoX/screenshot_background.webp');
|
||
background-position: center;
|
||
background-size: 120% 120%;
|
||
`,container:r(o&&e`
|
||
overflow: hidden;
|
||
border: 2px solid ${t.colorBorder};
|
||
border-radius: ${t.borderRadiusLG}px;
|
||
`,e`
|
||
background: ${t.colorBgLayout};
|
||
`),desc:e`
|
||
font-size: 12px;
|
||
color: ${t.colorTextDescription};
|
||
`,footer:e`
|
||
padding: 16px;
|
||
border-top: 1px solid ${t.colorBorder};
|
||
`,img:e`
|
||
border-radius: ${t.borderRadiusSM}px;
|
||
`,preview:r(n.noScrollbar,e`
|
||
overflow: hidden scroll;
|
||
|
||
width: 100%;
|
||
max-height: 40vh;
|
||
|
||
background: ${t.colorBgLayout};
|
||
border: 1px solid ${t.colorBorder};
|
||
border-radius: ${t.borderRadiusLG}px;
|
||
|
||
* {
|
||
pointer-events: none !important;
|
||
overflow: hidden !important;
|
||
|
||
${n.noScrollbar}
|
||
::-webkit-scrollbar {
|
||
width: 0 !important;
|
||
height: 0 !important;
|
||
}
|
||
}
|
||
`),title:e`
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
`,url:e`
|
||
color: ${t.colorTextDescription};
|
||
`}))),nae=U.memo((({withBackground:e,withFooter:t,children:n})=>{const{styles:r}=tae(e);return ee.jsx("div",{className:r.preview,children:ee.jsx("div",{className:e?r.background:void 0,id:"preview",children:ee.jsxs(th,{className:r.container,gap:16,children:[n,t?ee.jsxs(th,{align:"center",className:r.footer,gap:4,children:[ee.jsx(TY,{extra:"SD",type:"combine"}),ee.jsx("div",{className:r.url,children:wQ})]}):ee.jsx("div",{})]})})})})),rae={attributes:!0,characterData:!0,childList:!0,subtree:!0},oae=U.memo((({type:e,showConfig:t,showNegative:n,title:r,showAllImages:o})=>{const{image:i,images:a}=(e=>{const[t,n]=U.useState(""),[r,o]=U.useState([]);return U.useEffect((()=>{const t=new MutationObserver((e=>{for(const t of e)if("childList"===t.type||"characterData"===t.type){const e=t.target.querySelector('img[data-testid="detailed-image"]'),r=t.target.querySelectorAll(".thumbnails button img"),i=Array.from(r).filter(Boolean).map((e=>e.src));n(String(e.src)),o(i)}})),r=gradioApp().querySelector(e);if(r){t.observe(r,rae);const e=r.querySelector('img[data-testid="detailed-image"]'),i=r.querySelectorAll(".thumbnails button img"),a=Array.from(i).filter(Boolean).map((e=>e.src));n(null==e?void 0:e.src),o(a)}return()=>{t.disconnect()}}),[e]),{image:t,images:r}})(`#${e}2img_gallery`),l=E2(`#html_info_${e}2img .infotext`,{subSelector:"p"}),{styles:s}=tae(),{t:c}=aZ();return i&&"undefined"!==i?ee.jsxs(th,{gap:16,style:{padding:16},children:[r&&ee.jsxs(th,{align:"center",gap:12,horizontal:!0,children:[ee.jsx(lq,{avatar:i}),ee.jsxs(th,{children:[ee.jsx("div",{className:s.title,children:r}),ee.jsx("div",{className:s.desc,children:KT().format("YYYY-MM-DD")})]})]}),o?null==a?void 0:a.map(((e,t)=>ee.jsx("img",{alt:"screenshot",className:s.img,src:e,width:"100%"},t))):ee.jsx("img",{alt:"screenshot",className:s.img,src:i,width:"100%"}),ee.jsx(L6,{showConfig:t,showCopy:!1,showNegative:n,value:l})]}):ee.jsx("div",{style:{padding:16},children:ee.jsx(sU,{message:c("shareModal.warn"),type:"warning"})})}));var iae=(e=>(e.JPG="jpg",e.PNG="png",e.SVG="svg",e.WEBP="webp",e))(iae||{});const aae=[{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"SVG",value:"svg"},{label:"WEBP",value:"webp"}];var lae=Object.defineProperty,sae=Object.defineProperties,cae=Object.getOwnPropertyDescriptors,uae=Object.getOwnPropertySymbols,dae=Object.prototype.hasOwnProperty,fae=Object.prototype.propertyIsEnumerable,pae=Math.pow,hae=(e,t,n)=>t in e?lae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gae=(e,t)=>{for(var n in t||(t={}))dae.call(t,n)&&hae(e,n,t[n]);if(uae)for(var n of uae(t))fae.call(t,n)&&hae(e,n,t[n]);return e},mae=(e,t)=>sae(e,cae(t)),bae=(e,t)=>{var n={};for(var r in e)dae.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&uae)for(var r of uae(e))t.indexOf(r)<0&&fae.call(e,r)&&(n[r]=e[r]);return n},vae=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{l(n.next(e))}catch(t){o(t)}},a=e=>{try{l(n.throw(e))}catch(t){o(t)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);l((n=n.apply(e,t)).next())}));const yae="p".charCodeAt(0),wae="H".charCodeAt(0),xae="Y".charCodeAt(0),kae="s".charCodeAt(0);let Sae;function Cae(e){let t=-1;Sae||(Sae=function(){const e=new Int32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}());for(let n=0;n<e.length;n++)t=Sae[255&(t^e[n])]^t>>>8;return~t}function Eae(e,t,n=!1){const r=new Uint8Array(13);t*=39.3701,r[0]=yae,r[1]=wae,r[2]=xae,r[3]=kae,r[4]=t>>>24,r[5]=t>>>16,r[6]=t>>>8,r[7]=255&t,r[8]=r[4],r[9]=r[5],r[10]=r[6],r[11]=r[7],r[12]=1;const o=Cae(r),i=new Uint8Array(4);if(i[0]=o>>>24,i[1]=o>>>16,i[2]=o>>>8,i[3]=255&o,n){const t=function(e){for(let t=e.length-1;t>=4;t--)if(9===e[t-4]&&e[t-3]===yae&&e[t-2]===wae&&e[t-1]===xae&&e[t]===kae)return t-3;return 0}(e);return e.set(r,t),e.set(i,t+13),e}{const t=new Uint8Array(4);t[0]=0,t[1]=0,t[2]=0,t[3]=9;const n=new Uint8Array(54);return n.set(e,0),n.set(t,33),n.set(r,37),n.set(i,50),n}}const Dae="AAlwSFlz",$ae="AAAJcEhZ",Oae="AAAACXBI";const _ae="[modern-screenshot]",Iae="undefined"!=typeof window,Nae=Iae&&"Worker"in window,jae=Iae&&"atob"in window,Pae=Iae&&"btoa"in window;var Tae;const Fae=Iae?null==(Tae=window.navigator)?void 0:Tae.userAgent:"",Rae=Fae.includes("Chrome"),Aae=Fae.includes("AppleWebKit")&&!Rae,Mae=Fae.includes("Firefox"),Lae=e=>e&&"__CONTEXT__"in e,zae=e=>"CSSFontFaceRule"===e.constructor.name,Bae=e=>"CSSImportRule"===e.constructor.name,Hae=e=>1===e.nodeType,Wae=e=>"object"==typeof e.className,Uae=e=>"image"===e.tagName,qae=e=>"use"===e.tagName,Vae=e=>Hae(e)&&void 0!==e.style&&!Wae(e),Gae=e=>8===e.nodeType,Xae=e=>3===e.nodeType,Kae=e=>"IMG"===e.tagName,Yae=e=>"VIDEO"===e.tagName,Qae=e=>"CANVAS"===e.tagName,Jae=e=>"TEXTAREA"===e.tagName,Zae=e=>"INPUT"===e.tagName,ele=e=>"STYLE"===e.tagName,tle=e=>"SCRIPT"===e.tagName,nle=e=>"SELECT"===e.tagName,rle=e=>"SLOT"===e.tagName,ole=e=>"IFRAME"===e.tagName,ile=(...e)=>console.warn(_ae,...e),ale=e=>console.time(`${_ae} ${e}`),lle=e=>console.timeEnd(`${_ae} ${e}`),sle=e=>{var t;const n=null==(t=null==e?void 0:e.createElement)?void 0:t.call(e,"canvas");return n&&(n.height=n.width=1),n&&"toDataURL"in n&&Boolean(n.toDataURL("image/webp").includes("image/webp"))},cle=e=>e.startsWith("data:");function ule(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(Iae&&e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i)||!Iae)return e;const n=dle().implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}function dle(e){var t;return null!=(t=e&&Hae(e)?null==e?void 0:e.ownerDocument:e)?t:window.document}const fle="http://www.w3.org/2000/svg";function ple(e,t,n){const r=dle(n).createElementNS(fle,"svg");return r.setAttributeNS(null,"width",e.toString()),r.setAttributeNS(null,"height",t.toString()),r.setAttributeNS(null,"viewBox",`0 0 ${e} ${t}`),r}function hle(e,t){let n=(new XMLSerializer).serializeToString(e);return t&&(n=n.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}const gle=e=>function(e,t){return new Promise(((n,r)=>{const o=new FileReader;o.onload=()=>n(o.result),o.onerror=()=>r(o.error),o.onabort=()=>r(new Error(`Failed read blob to ${t}`)),o.readAsDataURL(e)}))}(e,"dataUrl");function mle(e,t){const n=dle(t).createElement("img");return n.decoding="sync",n.loading="eager",n.src=e,n}function ble(e,t){return new Promise((n=>{const{timeout:r,ownerDocument:o,onError:i}=null!=t?t:{},a="string"==typeof e?mle(e,dle(o)):e;let l=null,s=null;function c(){n(a),l&&clearTimeout(l),null==s||s()}if(r&&(l=setTimeout(c,r)),Yae(a)){const e=a.currentSrc||a.src;if(!e)return a.poster?ble(a.poster,t).then(n):c();if(a.readyState>=2)return c();const r=c,o=t=>{ile("Failed video load",e,t),null==i||i(t),c()};s=()=>{a.removeEventListener("loadeddata",r),a.removeEventListener("error",o)},a.addEventListener("loadeddata",r,{once:!0}),a.addEventListener("error",o,{once:!0})}else{const e=Uae(a)?a.href.baseVal:a.currentSrc||a.src;if(!e)return c();const t=()=>vae(this,null,(function*(){if(Kae(a)&&"decode"in a)try{yield a.decode()}catch(t){ile("Failed to decode image, trying to render anyway",a.dataset.originalSrc||e,t)}c()})),n=t=>{ile("Failed image load",a.dataset.originalSrc||e,t),c()};if(Kae(a)&&a.complete)return t();s=()=>{a.removeEventListener("load",t),a.removeEventListener("error",n)},a.addEventListener("load",t,{once:!0}),a.addEventListener("error",n,{once:!0})}}))}const vle=function(){let e=0;return()=>(e+=1,`u${`0000${(Math.random()*pae(36,4)|0).toString(36)}`.slice(-4)}${e}`)}();function yle(e){return null==e?void 0:e.split(",").map((e=>e.trim().replace(/"|'/g,"").toLowerCase())).filter(Boolean)}function wle(e){return{time:t=>e&&ale(t),timeEnd:t=>e&&lle(t),warn:(...t)=>e&&ile(...t)}}function xle(e){return{cache:e?"no-cache":"force-cache"}}function kle(e,t){return vae(this,null,(function*(){return Lae(e)?e:function(e,t){return vae(this,null,(function*(){var n,r,o,i,a;const{scale:l=1,workerUrl:s,workerNumber:c=1}=t||{},u=Boolean(null==t?void 0:t.debug),d=null==(n=null==t?void 0:t.features)||n,f=null!=(r=e.ownerDocument)?r:Iae?window.document:void 0,p=null!=(i=null==(o=e.ownerDocument)?void 0:o.defaultView)?i:Iae?window:void 0,h=new Map,g=mae(gae({width:0,height:0,quality:1,type:"image/png",scale:l,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:u,fetch:gae({requestInit:xle(null==(a=null==t?void 0:t.fetch)?void 0:a.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},null==t?void 0:t.fetch),fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:c,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1},t),{__CONTEXT__:!0,log:wle(u),node:e,ownerDocument:f,ownerWindow:p,dpi:1===l?null:96*l,svgStyleElement:Sle(f),svgDefsElement:null==f?void 0:f.createElementNS(fle,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...new Array(Nae&&s&&c?c:0)].map((()=>{try{const e=new Worker(s);return e.onmessage=e=>vae(this,null,(function*(){var t,n,r,o;const{url:i,result:a}=e.data;a?null==(n=null==(t=h.get(i))?void 0:t.resolve)||n.call(t,a):null==(o=null==(r=h.get(i))?void 0:r.reject)||o.call(r,new Error(`Error receiving message from worker: ${i}`))})),e.onmessageerror=e=>{var t,n;const{url:r}=e.data;null==(n=null==(t=h.get(r))?void 0:t.reject)||n.call(t,new Error(`Error receiving message from worker: ${r}`))},e}catch(e){return ile("Failed to new Worker",e),null}})).filter(Boolean),fontFamilies:new Set,fontCssTexts:new Map,acceptOfImage:`${[sle(f)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:h,drawImageCount:0,tasks:[],features:d,isEnable:e=>{var t,n;return"restoreScrollPosition"===e?"boolean"!=typeof d&&(null!=(t=d[e])&&t):"boolean"==typeof d?d:null==(n=d[e])||n}});g.log.time("wait until load"),yield function(e,t){return vae(this,null,(function*(){Vae(e)&&(Kae(e)||Yae(e)?yield ble(e,{timeout:t}):yield Promise.all(["img","video"].flatMap((n=>Array.from(e.querySelectorAll(n)).map((e=>ble(e,{timeout:t})))))))}))}(e,g.timeout),g.log.timeEnd("wait until load");const{width:m,height:b}=function(e,t){let{width:n,height:r}=t;if(Hae(e)&&(!n||!r)){const t=e.getBoundingClientRect();n=n||t.width||Number(e.getAttribute("width"))||0,r=r||t.height||Number(e.getAttribute("height"))||0}return{width:n,height:r}}(e,g);return g.width=m,g.height=b,g}))}(e,mae(gae({},t),{autoDestruct:!0}))}))}function Sle(e){if(!e)return;const t=e.createElement("style"),n=t.ownerDocument.createTextNode("\n.______background-clip--text {\n background-clip: text;\n -webkit-background-clip: text;\n}\n");return t.appendChild(n),t}function Cle(e,t){return vae(this,null,(function*(){const{log:n,timeout:r,drawImageCount:o,drawImageInterval:i}=t;n.time("image to canvas");const a=yield ble(e,{timeout:r}),{canvas:l,context2d:s}=function(e,t){const{width:n,height:r,scale:o,backgroundColor:i,maximumCanvasSize:a}=t,l=e.createElement("canvas");l.width=Math.floor(n*o),l.height=Math.floor(r*o),l.style.width=`${n}px`,l.style.height=`${r}px`,a&&(l.width>a||l.height>a)&&(l.width>a&&l.height>a?l.width>l.height?(l.height*=a/l.width,l.width=a):(l.width*=a/l.height,l.height=a):l.width>a?(l.height*=a/l.width,l.width=a):(l.width*=a/l.height,l.height=a));const s=l.getContext("2d");return s&&i&&(s.fillStyle=i,s.fillRect(0,0,l.width,l.height)),{canvas:l,context2d:s}}(e.ownerDocument,t),c=()=>{try{null==s||s.drawImage(a,0,0,l.width,l.height)}catch(e){ile("Failed to drawImage",e)}};if(c(),t.isEnable("fixSvgXmlDecode"))for(let e=0;e<o;e++)yield new Promise((t=>{setTimeout((()=>{c(),t()}),e+i)}));return t.drawImageCount=0,n.timeEnd("image to canvas"),l}))}const Ele=["width","height","-webkit-text-fill-color"],Dle=["stroke","fill"];function $le(e,t,n){var r;const{defaultComputedStyles:o,ownerDocument:i}=n,a=e.nodeName.toLowerCase(),l=Wae(e)&&"svg"!==a,s=l?Dle.map((t=>[t,e.getAttribute(t)])).filter((([,e])=>null!==e)):[],c=[l&&"svg",a,s.map(((e,t)=>`${e}=${t}`)).join(","),t].filter(Boolean).join(":");if(o.has(c))return o.get(c);let u=n.sandbox;if(!u)try{i&&(u=i.createElement("iframe"),u.id=`__SANDBOX__-${vle()}`,u.width="0",u.height="0",u.style.visibility="hidden",u.style.position="fixed",i.body.appendChild(u),null==(r=u.contentWindow)||r.document.write('<!DOCTYPE html><meta charset="UTF-8"><title></title><body>'),n.sandbox=u)}catch(b){ile("Failed to create iframe sandbox",b)}if(!u)return new Map;const d=u.contentWindow;if(!d)return new Map;const f=d.document;let p,h;l?(p=f.createElementNS(fle,"svg"),h=p.ownerDocument.createElementNS(p.namespaceURI,a),s.forEach((([e,t])=>{h.setAttributeNS(null,e,t)})),p.appendChild(h)):p=h=f.createElement(a),h.textContent=" ",f.body.appendChild(p);const g=d.getComputedStyle(h,t),m=new Map;for(let v=g.length,y=0;y<v;y++){const e=g.item(y);Ele.includes(e)||m.set(e,g.getPropertyValue(e))}return f.body.removeChild(p),o.set(c,m),m}function Ole(e,t,n){var r;const o=new Map,i=[],a=new Map;if(n)for(const s of n)l(s);else for(let s=e.length,c=0;c<s;c++){l(e.item(c))}for(let s=i.length,c=0;c<s;c++)null==(r=a.get(i[c]))||r.forEach(((e,t)=>o.set(t,e)));function l(n){const r=e.getPropertyValue(n),l=e.getPropertyPriority(n),s=n.lastIndexOf("-"),c=s>-1?n.substring(0,s):void 0;if(c){let e=a.get(c);e||(e=new Map,a.set(c,e)),e.set(n,[r,l])}t.get(n)===r&&!l||(c?i.push(c):o.set(n,[r,l]))}return o}const _le=[":before",":after"],Ile=[":-webkit-scrollbar",":-webkit-scrollbar-button",":-webkit-scrollbar-thumb",":-webkit-scrollbar-track",":-webkit-scrollbar-track-piece",":-webkit-scrollbar-corner",":-webkit-resizer"];function Nle(e){if(e.ownerDocument)try{const t=e.toDataURL();if("data:,"!==t)return mle(t,e.ownerDocument)}catch(Et){}const t=e.cloneNode(!1),n=e.getContext("2d"),r=t.getContext("2d");try{return n&&r&&r.putImageData(n.getImageData(0,0,e.width,e.height),0,0),t}catch(Et){ile("Failed to clone canvas",Et)}return t}function jle(e,t){return Qae(e)?Nle(e):ole(e)?function(e,t){var n;try{if(null!=(n=null==e?void 0:e.contentDocument)&&n.body)return Ale(e.contentDocument.body,t)}catch(r){ile("Failed to clone iframe",r)}return e.cloneNode(!1)}(e,t):Kae(e)?function(e){const t=e.cloneNode(!1);return e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager"),t}(e):Yae(e)?function(e){return vae(this,null,(function*(){if(e.ownerDocument&&!e.currentSrc&&e.poster)return mle(e.poster,e.ownerDocument);const t=e.cloneNode(!1);t.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc);const n=t.ownerDocument;if(n){let o=!0;if(yield ble(t,{onError:()=>o=!1}),!o)return e.poster?mle(e.poster,e.ownerDocument):t;t.currentTime=e.currentTime,yield new Promise((e=>{t.addEventListener("seeked",e,{once:!0})}));const i=n.createElement("canvas");i.width=e.offsetWidth,i.height=e.offsetHeight;try{const e=i.getContext("2d");e&&e.drawImage(t,0,0,i.width,i.height)}catch(r){return ile("Failed to clone video",r),e.poster?mle(e.poster,e.ownerDocument):t}return Nle(i)}return t}))}(e):e.cloneNode(!1)}const Ple=new Set(["symbol"]);function Tle(e,t,n,r){return vae(this,null,(function*(){if(Hae(n)&&(ele(n)||tle(n))||r.filter&&!r.filter(n))return;Ple.has(t.nodeName)||Ple.has(n.nodeName)?r.currentParentNodeStyle=void 0:r.currentParentNodeStyle=r.currentNodeStyle;const o=yield Ale(n,r);r.isEnable("restoreScrollPosition")&&function(e,t){if(!Vae(e)||!Vae(t))return;const{scrollTop:n,scrollLeft:r}=e;if(!n&&!r)return;const{transform:o}=t.style,i=new DOMMatrix(o),{a:a,b:l,c:s,d:c}=i;i.a=1,i.b=0,i.c=0,i.d=1,i.translateSelf(-r,-n),i.a=a,i.b=l,i.c=s,i.d=c,t.style.transform=i.toString()}(e,o),t.appendChild(o)}))}function Fle(e,t,n){return vae(this,null,(function*(){var r,o;for(let i=null!=(o=Hae(e)?null==(r=e.shadowRoot)?void 0:r.firstChild:void 0)?o:e.firstChild;i;i=i.nextSibling)if(!Gae(i))if(Hae(i)&&rle(i)&&"function"==typeof i.assignedNodes){const r=i.assignedNodes();for(let o=0;o<r.length;o++)yield Tle(e,t,r[o],n)}else yield Tle(e,t,i,n)}))}const Rle=/^[\w-:]+$/;function Ale(e,t,n=!1){return vae(this,null,(function*(){var r,o,i,a;const{ownerDocument:l,ownerWindow:s,fontFamilies:c}=t;if(l&&Xae(e))return l.createTextNode(e.data);if(l&&s&&Hae(e)&&(Vae(e)||Wae(e))){const l=yield jle(e,t);if(t.isEnable("removeAbnormalAttributes")){const e=l.getAttributeNames();for(let t=e.length,n=0;n<t;n++){const t=e[n];Rle.test(t)||l.removeAttribute(t)}}const s=t.currentNodeStyle=function(e,t,n,r){var o,i,a,l;const{ownerWindow:s,includeStyleProperties:c,currentParentNodeStyle:u}=r,d=t.style,f=s.getComputedStyle(e),p=$le(e,null,r);null==u||u.forEach(((e,t)=>{p.delete(t)}));const h=Ole(f,p,c);return h.delete("transition-property"),h.delete("all"),h.delete("d"),h.delete("content"),n&&(h.delete("margin-top"),h.delete("margin-right"),h.delete("margin-bottom"),h.delete("margin-left"),h.delete("margin-block-start"),h.delete("margin-block-end"),h.delete("margin-inline-start"),h.delete("margin-inline-end"),h.set("box-sizing",["border-box",""])),"text"===(null==(o=h.get("background-clip"))?void 0:o[0])&&t.classList.add("______background-clip--text"),Rae&&(h.has("font-kerning")||h.set("font-kerning",["normal",""]),("hidden"===(null==(i=h.get("overflow-x"))?void 0:i[0])||"hidden"===(null==(a=h.get("overflow-y"))?void 0:a[0]))&&"ellipsis"===(null==(l=h.get("text-overflow"))?void 0:l[0])&&e.scrollWidth===e.clientWidth&&h.set("text-overflow",["clip",""])),h.forEach((([e,t],n)=>{d.setProperty(n,e,t)})),h}(e,l,n,t);n&&function(e,t){const{backgroundColor:n,width:r,height:o,style:i}=t,a=e.style;if(n&&a.setProperty("background-color",n,"important"),r&&a.setProperty("width",`${r}px`,"important"),o&&a.setProperty("height",`${o}px`,"important"),i)for(const l in i)a[l]=i[l]}(l,t);let u=!1;if(t.isEnable("copyScrollbar")){const t=[null==(r=s.get("overflow-x"))?void 0:r[0],null==(o=s.get("overflow-y"))?void 0:o[1]];u=t.includes("scroll")||(t.includes("auto")||t.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}return function(e,t,n,r){const{ownerWindow:o,svgStyleElement:i,svgStyles:a,currentNodeStyle:l}=r;function s(n){var i;const s=o.getComputedStyle(e,n);let c=s.getPropertyValue("content");if(!c||"none"===c)return;c=c.replace(/(')|(")|(counter\(.+\))/g,"");const u=[vle()],d=$le(e,n,r);null==l||l.forEach(((e,t)=>{d.delete(t)}));const f=Ole(s,d,r.includeStyleProperties);f.delete("content"),f.delete("-webkit-locale"),"text"===(null==(i=f.get("background-clip"))?void 0:i[0])&&t.classList.add("______background-clip--text");const p=[`content: '${c}';`];if(f.forEach((([e,t],n)=>{p.push(`${n}: ${e}${t?" !important":""};`)})),1===p.length)return;try{t.className=[t.className,...u].join(" ")}catch(m){return}const h=p.join("\n ");let g=a.get(h);g||(g=[],a.set(h,g)),g.push(`.${u[0]}:${n}`)}i&&o&&(_le.forEach(s),n&&Ile.forEach(s))}(e,l,u,t),function(e,t){Jae(e)&&(t.innerHTML=e.value),(Jae(e)||Zae(e)||nle(e))&&t.setAttribute("value",e.value)}(e,l),null==(a=yle(null==(i=s.get("font-family"))?void 0:i[0]))||a.forEach((e=>c.add(e))),Yae(e)||(yield Fle(e,l,t)),l}const u=e.cloneNode(!1);return yield Fle(e,u,t),u}))}function Mle(e,t){const{url:n,requestType:r="text",responseType:o="text",imageDom:i}=t;let a=n;const{timeout:l,acceptOfImage:s,requests:c,fetchFn:u,fetch:{requestInit:d,bypassingCache:f,placeholderImage:p},workers:h}=e;"image"===r&&(Aae||Mae)&&e.drawImageCount++;let g=c.get(n);if(!g){f&&f instanceof RegExp&&f.test(a)&&(a+=(/\?/.test(a)?"&":"?")+(new Date).getTime());const e=gae({url:a,timeout:l,responseType:o,headers:"image"===r?{accept:s}:void 0},d);g={type:r,resolve:void 0,reject:void 0,response:null},g.response=(()=>vae(this,null,(function*(){if(u&&"image"===r){const e=yield u(n);if(e)return e}return!Aae&&n.startsWith("http")&&h.length?new Promise(((t,r)=>{h[c.size&h.length-1].postMessage(gae({rawUrl:n},e)),g.resolve=t,g.reject=r})):function(e){const t=e,{url:n,timeout:r,responseType:o}=t,i=bae(t,["url","timeout","responseType"]),a=new AbortController,l=r?setTimeout((()=>a.abort()),r):void 0;return fetch(n,gae({signal:a.signal},i)).then((e=>{if(!e.ok)throw new Error("Failed fetch, not 2xx response",{cause:e});return"dataUrl"===o?e.blob().then(gle):e.text()})).finally((()=>clearTimeout(l)))}(e)})))().catch((e=>{if(c.delete(n),"image"===r&&p)return ile("Failed to fetch image base64, trying to use placeholder image",a),"string"==typeof p?p:p(i);throw e})),c.set(n,g)}return g.response}function Lle(e,t,n,r){return vae(this,null,(function*(){if(!zle(e))return e;for(const[i,a]of function(e,t){const n=[];return e.replace(Ble,((e,r,o)=>(n.push([o,ule(o,t)]),e))),n.filter((([e])=>!cle(e)))}(e,t))try{const t=yield Mle(n,{url:a,requestType:r?"image":"text",responseType:"dataUrl"});e=e.replace(Hle(i),`$1${t}$3`)}catch(o){ile("Failed to fetch css data url",i,o)}return e}))}function zle(e){return/url\((['"]?)([^'"]+?)\1\)/.test(e)}const Ble=/url\((['"]?)([^'"]+?)\1\)/g;function Hle(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Wle(e,t){return vae(this,null,(function*(){const{ownerDocument:e,svgStyleElement:n,fontFamilies:r,fontCssTexts:o,tasks:i,font:a}=t;if(e&&n&&r.size)if(a&&a.cssText){const r=Xle(a.cssText,t);n.appendChild(e.createTextNode(`${r}\n`))}else{const a=Array.from(e.styleSheets).filter((e=>{try{return"cssRules"in e&&Boolean(e.cssRules.length)}catch(t){return ile(`Error while reading CSS rules from ${e.href}`,t),!1}}));yield Promise.all(a.flatMap((e=>Array.from(e.cssRules).map(((n,r)=>vae(this,null,(function*(){if(Bae(n)){let a=r+1;const l=n.href;let s="";try{s=yield Mle(t,{url:l,requestType:"text",responseType:"text"})}catch(o){ile(`Error fetch remote css import from ${l}`,o)}const c=s.replace(Ble,((e,t,n)=>e.replace(n,ule(n,l))));for(const t of function(e){if(null==e)return[];const t=[];let n=e.replace(Ule,"");for(;;){const e=qle.exec(n);if(!e)break;t.push(e[0])}n=n.replace(qle,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=r.exec(n);if(e)o.lastIndex=r.lastIndex;else{if(e=o.exec(n),!e)break;r.lastIndex=o.lastIndex}t.push(e[0])}return t}(c))try{e.insertRule(t,t.startsWith("@import")?a+=1:e.cssRules.length)}catch(i){ile("Error inserting rule from remote css import",{rule:t,error:i})}}}))))))),a.flatMap((e=>Array.from(e.cssRules))).filter((e=>{var t;return zae(e)&&zle(e.style.getPropertyValue("src"))&&(null==(t=yle(e.style.getPropertyValue("font-family")))?void 0:t.some((e=>r.has(e))))})).forEach((r=>{const a=r,l=o.get(a.cssText);l?n.appendChild(e.createTextNode(`${l}\n`)):i.push(Lle(a.cssText,a.parentStyleSheet?a.parentStyleSheet.href:null,t).then((r=>{r=Xle(r,t),o.set(a.cssText,r),n.appendChild(e.createTextNode(`${r}\n`))})))}))}}))}const Ule=/(\/\*[\s\S]*?\*\/)/gi,qle=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;const Vle=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Gle=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Xle(e,t){const{font:n}=t,r=n?null==n?void 0:n.preferredFormat:void 0;return r?e.replace(Gle,(e=>{for(;;){const[t,,n]=Vle.exec(e)||[];if(!n)return"";if(n===r)return`src: ${t};`}})):e}const Kle=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function Yle(e,t){const{tasks:n}=t;Hae(e)&&((Kae(e)||Uae(e))&&n.push(...function(e,t){if(Kae(e)){const n=e.currentSrc||e.src;if(!cle(n))return[Mle(t,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then((t=>{t&&(e.srcset="",e.dataset.originalSrc=n,e.src=t||"")}))];(Aae||Mae)&&t.drawImageCount++}else if(Wae(e)&&!cle(e.href.baseVal)){const n=e.href.baseVal;return[Mle(t,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then((t=>{t&&(e.dataset.originalSrc=n,e.href.baseVal=t||"")}))]}return[]}(e,t)),qae(e)&&n.push(...function(e,t){var n;const{ownerDocument:r,svgDefsElement:o}=t,i=null!=(n=e.getAttribute("href"))?n:e.getAttribute("xlink:href");if(!i)return[];const[a,l]=i.split("#");if(l){const n=`#${l}`,i=null==r?void 0:r.querySelector(`svg ${n}`);if(a&&e.setAttribute("href",n),null!=o&&o.querySelector(n))return[];if(i)return null==o||o.appendChild(i.cloneNode(!0)),[];if(a)return[Mle(t,{url:a,responseType:"text"}).then((e=>{null==o||o.insertAdjacentHTML("beforeend",e)}))]}return[]}(e,t))),Vae(e)&&n.push(...function(e,t){return Kle.map((n=>{const r=e.getPropertyValue(n);return r&&"none"!==r?((Aae||Mae)&&t.drawImageCount++,Lle(r,null,t,!0).then((t=>{!t||r===t||e.setProperty(n,t,e.getPropertyPriority(n))}))):null})).filter(Boolean)}(e.style,t)),e.childNodes.forEach((e=>{Yle(e,t)}))}function Qle(e,t){return vae(this,null,(function*(){const n=yield kle(e,t);if(Hae(n.node)&&Wae(n.node))return n.node;const{ownerDocument:r,log:o,tasks:i,svgStyleElement:a,svgDefsElement:l,svgStyles:s,font:c,progress:u,autoDestruct:d,onCloneNode:f,onEmbedNode:p,onCreateForeignObjectSvg:h}=n;o.time("clone node");const g=yield Ale(n.node,n,!0);if(a&&r){let e="";s.forEach(((t,n)=>{e+=`${t.join(",\n")} {\n ${n}\n}\n`})),a.appendChild(r.createTextNode(e))}o.timeEnd("clone node"),null==f||f(g),!1!==c&&Hae(g)&&(o.time("embed web font"),yield Wle(0,n),o.timeEnd("embed web font")),o.time("embed node"),Yle(g,n);const m=i.length;let b=0;null==u||u(b,m),yield Promise.all([...Array(4)].map((()=>vae(this,null,(function*(){for(;;){const t=i.pop();if(!t)break;try{yield t}catch(e){ile("Failed to run task",e)}null==u||u(++b,m)}}))))),o.timeEnd("embed node"),null==p||p(g);const v=function(e,t){const{width:n,height:r}=t,o=ple(n,r,e.ownerDocument),i=o.ownerDocument.createElementNS(o.namespaceURI,"foreignObject");return i.setAttributeNS(null,"x","0%"),i.setAttributeNS(null,"y","0%"),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.append(e),o.appendChild(i),o}(g,n);return l&&v.insertBefore(l,v.children[0]),a&&v.insertBefore(a,v.children[0]),d&&function(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(t){}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[]}(n),null==h||h(v),v}))}function Jle(e,t){return vae(this,null,(function*(){const n=yield kle(e,t),{log:r,quality:o,type:i,dpi:a}=n,l=yield function(e,t){return vae(this,null,(function*(){var n;const r=yield kle(e,t),o=yield Qle(r),i=hle(o,r.isEnable("removeControlCharacter"));r.autoDestruct||(r.svgStyleElement=Sle(r.ownerDocument),r.svgDefsElement=null==(n=r.ownerDocument)?void 0:n.createElementNS(fle,"defs"),r.svgStyles.clear());const a=mle(i,o.ownerDocument);return yield Cle(a,r)}))}(n);r.time("canvas to data url");let s=l.toDataURL(i,o);if(["image/png","image/jpeg"].includes(i)&&a&&jae&&Pae){const[e,t]=s.split(",");let n=0,r=!1;if("image/png"===i){const e=function(e){let t=e.indexOf(Dae);return-1===t&&(t=e.indexOf($ae)),-1===t&&(t=e.indexOf(Oae)),t}(t);e>=0?(n=4*Math.ceil((e+28)/3),r=!0):n=44}else"image/jpeg"===i&&(n=24);const o=t.substring(0,n),l=t.substring(n),c=window.atob(o),u=new Uint8Array(c.length);for(let i=0;i<u.length;i++)u[i]=c.charCodeAt(i);const d="image/png"===i?Eae(u,a,r):function(e,t){return e[13]=1,e[14]=t>>8,e[15]=255&t,e[16]=t>>8,e[17]=255&t,e}(u,a);s=[e,",",window.btoa(String.fromCharCode(...d)),l].join("")}return r.timeEnd("canvas to data url"),s}))}function Zle(e,t){return vae(this,null,(function*(){const n=yield kle(e,t),{width:r,height:o,ownerDocument:i}=n,a=yield Jle(n),l=ple(r,o,i),s=l.ownerDocument.createElementNS(l.namespaceURI,"image");return s.setAttributeNS(null,"href",a),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"width","100%"),l.appendChild(s),hle(l,n.isEnable("removeControlCharacter"))}))}function ese(e,t){return vae(this,null,(function*(){return Jle(yield kle(e,mae(gae({},t),{type:"image/jpeg"})))}))}function tse(e,t){return vae(this,null,(function*(){return Jle(yield kle(e,mae(gae({},t),{type:"image/png"})))}))}function nse(e,t){return vae(this,null,(function*(){return Jle(yield kle(e,mae(gae({},t),{type:"image/webp"})))}))}const rse={imageType:iae.JPG,showAllImages:!1,showConfig:!0,showNegative:!0,title:"",withBackground:!0,withFooter:!1},ose=U.memo((({open:e,onCancel:t,type:n})=>{const[r,o]=U.useState(rse),[i,a]=U.useState("info"),{t:l}=aZ(),{loading:s,onDownload:c}=((e=iae.JPG)=>{const[t,n]=U.useState(!1);return{loading:t,onDownload:U.useCallback((async()=>{n(!0);try{let t;switch(e){case iae.JPG:t=ese;break;case iae.PNG:t=tse;break;case iae.SVG:t=Zle;break;case iae.WEBP:t=nse}const r=await t(document.querySelector("#preview"),{features:{removeControlCharacter:!1},scale:2}),o=document.createElement("a");o.download=`LobeTheme_${KT().format("YYYY-MM-DD")}.${e}`,o.href=r,o.click(),n(!1)}catch(t){fe.error("🤯 Failed to download image",t),n(!1)}}),[e])}})(r.imageType),u=U.useMemo((()=>[{label:l("shareModal.tabs.info"),value:"info"},{label:l("shareModal.tabs.settings"),value:"settings"}]),[]),d=U.useMemo((()=>[{children:ee.jsx(wM,{}),hidden:"info"!==i,label:l("shareModal.title"),name:"title"},{children:ee.jsx(lB,{}),hidden:"info"!==i,label:l("shareModal.showAllImages"),minWidth:void 0,name:"showAllImages",valuePropName:"checked"},{children:ee.jsx(lB,{}),hidden:"info"!==i,label:l("shareModal.showNegative"),minWidth:void 0,name:"showNegative",valuePropName:"checked"},{children:ee.jsx(lB,{}),hidden:"info"!==i,label:l("shareModal.showConfig"),minWidth:void 0,name:"showConfig",valuePropName:"checked"},{children:ee.jsx(lB,{}),hidden:"settings"!==i,label:l("shareModal.withBackground"),minWidth:void 0,name:"withBackground",valuePropName:"checked"},{children:ee.jsx(lB,{}),hidden:"settings"!==i,label:l("shareModal.withFooter"),minWidth:void 0,name:"withFooter",valuePropName:"checked"},{children:ee.jsx($z,{options:aae}),hidden:"settings"!==i,label:l("shareModal.imageType"),minWidth:void 0,name:"imageType"}]),[i]);return ee.jsx($X,{centered:!1,destroyOnClose:!0,footer:ee.jsx(bE,{block:!0,loading:s,onClick:c,size:"large",type:"primary",children:l("shareModal.download")}),maxHeight:!1,onCancel:t,open:e,title:l("share"),children:ee.jsxs(th,{gap:16,children:[ee.jsx($z,{block:!0,onChange:e=>a(e),options:u,style:{width:"100%"},value:i}),ee.jsx(_K,{initialValues:rse,items:d,itemsType:"flat",onValuesChange:(e,t)=>o({...r,...t})}),ee.jsx(nae,{...r,children:ee.jsx(oae,{...r,type:n})})]})})})),ise=U.memo((({type:e})=>{const[t,n]=U.useState(!1),r=U.useRef(((e,t)=>{const n=document.createElement("button");return n.id=`lobe_share_${e}`,n.type="button",n.innerHTML="💞",n.title="Share",n.className="lg secondary gradio-button tool svelte-cmf5ev",n.addEventListener("click",(()=>t(!0))),n})(e,n));return _Q(r,`#image_buttons_${e}2img > .form`,{debug:`[layout] inject - Share ${e}`,inverse:!0}),ee.jsx(ose,{onCancel:()=>n(!1),open:t,type:e})})),ase=U.memo((()=>ee.jsxs(ee.Fragment,{children:[ee.jsx(ise,{type:"txt"}),ee.jsx(ise,{type:"img"})]}))),lse=oH((({cx:e,css:t,stylish:n,token:r,isDarkMode:o},{headerHeight:i,isPrimaryColor:a})=>({background:e(n.gradientAnimation,a&&t`
|
||
background-image: linear-gradient(
|
||
-45deg,
|
||
${r.colorPrimary},
|
||
${YU(45,r.colorPrimary)},
|
||
${r.colorPrimary},
|
||
${YU(-45,r.colorPrimary)}
|
||
);
|
||
`,t`
|
||
pointer-events: none;
|
||
|
||
position: absolute !important;
|
||
z-index: 0;
|
||
right: -20vw;
|
||
transform: rotate(4deg);
|
||
|
||
width: 60vw;
|
||
height: 200px;
|
||
|
||
opacity: 0.2;
|
||
filter: blur(100px);
|
||
`),backgroundLite:t`
|
||
pointer-events: none;
|
||
|
||
position: absolute !important;
|
||
top: -400px;
|
||
left: 0;
|
||
|
||
width: 100vw;
|
||
height: 100%;
|
||
|
||
opacity: ${a?o?.2:.05:o?.15:0};
|
||
background: radial-gradient(
|
||
circle 600px at calc(100% - 300px) 300px,
|
||
${r.colorPrimary},
|
||
transparent
|
||
);
|
||
`,panel:t`
|
||
.draggable-panel {
|
||
border-style: dashed;
|
||
}
|
||
`,quicksettings:t`
|
||
#quicksettings {
|
||
align-items: start;
|
||
padding: 16px !important;
|
||
}
|
||
`,sidebar:t`
|
||
height: calc(100vh - ${i}px);
|
||
`}))),sse=64,cse=U.memo((()=>{const e=k2(y2,MX),{cx:t,styles:n}=lse({headerHeight:sse,isPrimaryColor:Boolean(e.primaryColor)});return U.useEffect((()=>{e.enableHighlight&&(()=>{try{y8("#txt2img_prompt","#lobe_txt2img_prompt"),y8("#img2img_prompt","#lobe_img2img_prompt"),window.ignore_ids_for_localization.lobe_highlighter="SPAN",fe.success("🤯 [module] inject - PromptHighlight")}catch(e){fe.error("🤯 [module] inject - PromptHighlight",e)}})(),e.enableImageInfo&&(()=>{try{m8("#html_info_txt2img","#lobe_html_info_txt2img"),m8("#html_info_img2img","#lobe_html_info_img2img"),fe.success("🤯 [module] inject - ImageInfo")}catch(e){fe.error("🤯 [module] inject - ImageInfo",e)}})(),e.svgIcon&&k8()}),[]),ee.jsxs(ee.Fragment,{children:[ee.jsx(OQ,{}),ee.jsx(M8,{}),ee.jsx(SY,{headerHeight:sse,children:ee.jsx(Qie,{})}),ee.jsxs(CY,{children:[ee.jsx("div",{className:e.liteAnimation?n.backgroundLite:n.background}),e.enableSidebar&&ee.jsx(EY,{className:n.sidebar,headerHeight:sse,style:{flex:0,zIndex:50},children:ee.jsx(eae,{headerHeight:sse})}),ee.jsx(B8,{className:t(!e.enableSidebar&&n.quicksettings)}),ee.jsx(jQ,{}),ee.jsx(ase,{}),(null==e?void 0:e.enableExtraNetworkSidebar)&&ee.jsx(EY,{className:n.sidebar,headerHeight:sse,style:{flex:0,zIndex:50},children:ee.jsx(e7,{headerHeight:sse})})]}),ee.jsx(a7,{})]})}));var use,dse=U,fse=(use=dse)&&"object"==typeof use&&"default"in use?use.default:use;function pse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hse=!("undefined"==typeof window||!window.document||!window.document.createElement);const gse=o((function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,i=[];function a(){o=e(i.map((function(e){return e.props}))),l.canUseDOM?t(o):n&&(o=n(o))}var l=function(e){var t,n;function l(){return e.apply(this,arguments)||this}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,l.peek=function(){return o},l.rewind=function(){if(l.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=o;return o=void 0,i=[],e};var s=l.prototype;return s.UNSAFE_componentWillMount=function(){i.push(this),a()},s.componentDidUpdate=function(){a()},s.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},s.render=function(){return fse.createElement(r,this.props)},l}(dse.PureComponent);return pse(l,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),pse(l,"canUseDOM",hse),l}}));
|
||
/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var mse=Object.getOwnPropertySymbols,bse=Object.prototype.hasOwnProperty,vse=Object.prototype.propertyIsEnumerable;const yse=o(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))bse.call(n,a)&&(o[a]=n[a]);if(mse){r=mse(n);for(var l=0;l<r.length;l++)vse.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o});var wse="bodyAttributes",xse="htmlAttributes",kse="titleAttributes",Sse={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Sse).map((function(e){return Sse[e]}));var Cse,Ese="charset",Dse="cssText",$se="href",Ose="http-equiv",_se="innerHTML",Ise="itemprop",Nse="name",jse="property",Pse="rel",Tse="src",Fse="target",Rse={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ase="defaultTitle",Mse="defer",Lse="encodeSpecialCharacters",zse="onChangeClientState",Bse="titleTemplate",Hse=Object.keys(Rse).reduce((function(e,t){return e[Rse[t]]=t,e}),{}),Wse=[Sse.NOSCRIPT,Sse.SCRIPT,Sse.STYLE],Use="data-react-helmet",qse="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vse=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Gse=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xse=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Kse=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Yse=function(e){var t=tce(e,Sse.TITLE),n=tce(e,Bse);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=tce(e,Ase);return t||r||void 0},Qse=function(e){return tce(e,zse)||function(){}},Jse=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Gse({},e,t)}),{})},Zse=function(e,t){return t.filter((function(e){return void 0!==e[Sse.BASE]})).map((function(e){return e[Sse.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},ece=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&ace("Helmet: "+e+' should be of type "Array". Instead found type "'+qse(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var l=i[a],s=l.toLowerCase();-1===t.indexOf(s)||n===Pse&&"canonical"===e[n].toLowerCase()||s===Pse&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(l)||l!==_se&&l!==Dse&&l!==Ise||(n=l)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var l=i[a],s=yse({},r[l],o[l]);r[l]=s}return e}),[]).reverse()},tce=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},nce=(Cse=Date.now(),function(e){var t=Date.now();t-Cse>16?(Cse=t,e(t)):setTimeout((function(){nce(e)}),0)}),rce=function(e){return clearTimeout(e)},oce="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||nce:global.requestAnimationFrame||nce,ice="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||rce:global.cancelAnimationFrame||rce,ace=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},lce=null,sce=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,l=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;dce(Sse.BODY,r),dce(Sse.HTML,o),uce(d,f);var p={baseTag:fce(Sse.BASE,n),linkTags:fce(Sse.LINK,i),metaTags:fce(Sse.META,a),noscriptTags:fce(Sse.NOSCRIPT,l),scriptTags:fce(Sse.SCRIPT,c),styleTags:fce(Sse.STYLE,u)},h={},g={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(g[e]=p[e].oldTags)})),t&&t(),s(e,h,g)},cce=function(e){return Array.isArray(e)?e.join(""):e},uce=function(e,t){void 0!==e&&document.title!==e&&(document.title=cce(e)),dce(Sse.TITLE,t)},dce=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Use),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),l=0;l<a.length;l++){var s=a[l],c=t[s]||"";n.getAttribute(s)!==c&&n.setAttribute(s,c),-1===o.indexOf(s)&&o.push(s);var u=i.indexOf(s);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(Use):n.getAttribute(Use)!==a.join(",")&&n.setAttribute(Use,a.join(","))}},fce=function(e,t){var n=document.head||document.querySelector(Sse.HEAD),r=n.querySelectorAll(e+"["+Use+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===_se)n.innerHTML=t.innerHTML;else if(r===Dse)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[r]?"":t[r];n.setAttribute(r,l)}n.setAttribute(Use,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},pce=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},hce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Rse[n]||n]=e[n],t}),t)},gce=function(e,t,n){switch(e){case Sse.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Use]=!0,o=hce(n,r),[q.createElement(Sse.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=pce(n),i=cce(t);return o?"<"+e+" "+Use+'="true" '+o+">"+Kse(i,r)+"</"+e+">":"<"+e+" "+Use+'="true">'+Kse(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case wse:case xse:return{toComponent:function(){return hce(t)},toString:function(){return pce(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Use]=!0,r);return Object.keys(t).forEach((function(e){var n=Rse[e]||e;if(n===_se||n===Dse){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),q.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===_se||e===Dse)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Kse(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Wse.indexOf(e);return t+"<"+e+" "+Use+'="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},mce=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,l=e.noscriptTags,s=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:gce(Sse.BASE,t,r),bodyAttributes:gce(wse,n,r),htmlAttributes:gce(xse,o,r),link:gce(Sse.LINK,i,r),meta:gce(Sse.META,a,r),noscript:gce(Sse.NOSCRIPT,l,r),script:gce(Sse.SCRIPT,s,r),style:gce(Sse.STYLE,c,r),title:gce(Sse.TITLE,{title:d,titleAttributes:f},r)}},bce=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!qq(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Sse.SCRIPT:case Sse.NOSCRIPT:return{innerHTML:t};case Sse.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return Gse({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Gse({},o,this.mapNestedChildrenToProps(n,i))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Sse.TITLE:return Gse({},o,((t={})[r.type]=a,t.titleAttributes=Gse({},i),t));case Sse.BODY:return Gse({},o,{bodyAttributes:Gse({},i)});case Sse.HTML:return Gse({},o,{htmlAttributes:Gse({},i)})}return Gse({},o,((n={})[r.type]=Gse({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Gse({},t);return Object.keys(e).forEach((function(t){var r;n=Gse({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return q.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Hse[n]||n]=e[n],t}),t)}(Xse(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case Sse.LINK:case Sse.META:case Sse.NOSCRIPT:case Sse.SCRIPT:case Sse.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=Xse(t,["children"]),o=Gse({},r);return n&&(o=this.mapChildrenToProps(n,o)),q.createElement(e,o)},Vse(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(q.Component),t.propTypes={base:eG.object,bodyAttributes:eG.object,children:eG.oneOfType([eG.arrayOf(eG.node),eG.node]),defaultTitle:eG.string,defer:eG.bool,encodeSpecialCharacters:eG.bool,htmlAttributes:eG.object,link:eG.arrayOf(eG.object),meta:eG.arrayOf(eG.object),noscript:eG.arrayOf(eG.object),onChangeClientState:eG.func,script:eG.arrayOf(eG.object),style:eG.arrayOf(eG.object),title:eG.string,titleAttributes:eG.object,titleTemplate:eG.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=mce({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(gse((function(e){return{baseTag:Zse([$se,Fse],e),bodyAttributes:Jse(wse,e),defer:tce(e,Mse),encode:tce(e,Lse),htmlAttributes:Jse(xse,e),linkTags:ece(Sse.LINK,[Pse,$se],e),metaTags:ece(Sse.META,[Nse,Ese,Ose,jse,Ise],e),noscriptTags:ece(Sse.NOSCRIPT,[_se],e),onChangeClientState:Qse(e),scriptTags:ece(Sse.SCRIPT,[Tse,_se],e),styleTags:ece(Sse.STYLE,[Dse],e),title:Yse(e),titleAttributes:Jse(kse,e)}}),(function(e){lce&&ice(lce),e.defer?lce=oce((function(){sce(e,(function(){lce=null}))})):(sce(e),lce=null)}),mce)((function(){return null})));bce.renderStatic=bce.rewind;const vce=e=>{const t={background_color:"#000",description:yQ,display:"fullscreen",icons:[{purpose:"any",sizes:"192x192",src:e("assets/android-chrome-192x192.png"),type:"image/png"},{purpose:"maskable",sizes:"192x192",src:e("assets/android-chrome-maskable-192x192.png"),type:"image/png"},{purpose:"any",sizes:"512x512",src:e("assets/android-chrome-512x512.png"),type:"image/png"},{purpose:"maskable",sizes:"512x512",src:e("assets/android-chrome-maskable-512x512.png"),type:"image/png"}],id:"/",name:"Stable Diffusion",orientation:"portrait",scope:"/",short_name:"Stable Diffusion",splash_pages:null,start_url:location.origin,theme_color:"#000000"};return`data:application/manifest+json;base64,${btoa(JSON.stringify(t))}`},yce="Stable Diffusion · LobeHub",wce=yQ,xce=U.memo((({children:e})=>{const[t,n]=U.useState(!0),{setCurrentTab:r,onInit:o,storeLoading:i}=k2((e=>({onInit:e.onInit,setCurrentTab:e.setCurrentTab,storeLoading:e.loading}))),a=pU(),l=U.useCallback((e=>a({path:e,pkg:"@lobehub/assets-favicons",version:"latest"})),[]);return U.useEffect((()=>{o(),onUiLoaded((()=>{n(!1),fe.success("🤯 Lobe Theme loading")})),onUiTabChange((()=>{r()}))}),[]),ee.jsxs(U.Suspense,{fallback:"loading...",children:[ee.jsxs(bce,{children:[ee.jsx("link",{href:l("assets/favicon.ico"),rel:"shortcut icon"}),ee.jsx("link",{href:l("assets/apple-touch-icon.png"),rel:"apple-touch-icon",sizes:"180x180"}),ee.jsx("link",{href:l("assets/favicon-32x32.png"),rel:"icon",sizes:"32x32",type:"image/png"}),ee.jsx("link",{href:l("assets/favicon-16x16.png"),rel:"icon",sizes:"16x16",type:"image/png"}),ee.jsx("meta",{content:"width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover, user-scalable=no",name:"viewport"}),ee.jsx("title",{children:yce}),ee.jsx("meta",{content:yce,name:"apple-mobile-web-app-title"}),ee.jsx("meta",{content:yce,name:"application-name"}),ee.jsx("meta",{content:wce,name:"description"}),ee.jsx("meta",{content:"#000000",name:"msapplication-TileColor"}),ee.jsx("meta",{content:"#fff",media:"(prefers-color-scheme: light)",name:"theme-color"}),ee.jsx("meta",{content:"#000",media:"(prefers-color-scheme: dark)",name:"theme-color"}),ee.jsx("meta",{content:"yes",name:"apple-mobile-web-app-capable"}),ee.jsx("meta",{content:yce,name:"apple-mobile-web-app-title"}),ee.jsx("meta",{content:"black-translucent",name:"apple-mobile-web-app-status-bar-style"}),ee.jsx("meta",{content:yce,name:"apple-mobile-web-app-title"}),ee.jsx("meta",{content:"yes",name:"apple-mobile-web-app-capable"}),ee.jsx("meta",{content:"index,follow",name:"robots"}),ee.jsx("link",{href:vce(l),rel:"manifest"}),ee.jsx("meta",{content:yce,property:"og:title"}),ee.jsx("meta",{content:wce,property:"og:description"}),ee.jsx("meta",{content:"https://github.com/lobehub/sd-webui-lobe-theme",property:"og:url"}),ee.jsx("meta",{content:yce,property:"og:site_name"}),ee.jsx("meta",{content:"en-US",property:"og:locale"}),ee.jsx("meta",{content:"https://repository-images.githubusercontent.com/606329910/7fd79db5-fd91-450c-9e95-8ccce8ffdc0b",property:"og:image"}),ee.jsx("meta",{content:"website",property:"og:type"}),ee.jsx("meta",{content:"summary_large_image",name:"twitter:card"}),ee.jsx("meta",{content:"@lobehub",name:"twitter:site"}),ee.jsx("meta",{content:yce,name:"twitter:title"}),ee.jsx("meta",{content:wce,name:"twitter:description"}),ee.jsx("meta",{content:"https://repository-images.githubusercontent.com/606329910/7fd79db5-fd91-450c-9e95-8ccce8ffdc0b",name:"twitter:image"}),ee.jsx("link",{href:"https://github.com/lobehub/sd-webui-lobe-theme",rel:"canonical"})]}),ee.jsx(h8,{children:!1===i&&!1===t?e:ee.jsx(c7,{})})]})})),kce=()=>ee.jsx(xce,{children:ee.jsx(cse,{})});void 0===window.global&&(window.global=window);window.location.href.includes("dev")&&!0||document.addEventListener("DOMContentLoaded",(()=>{var e,t;fe.start("🤯 Lobe Theme load in production");const n=document.createElement("div");n.setAttribute("id","root");try{null==(e=gradioApp())||e.append(n)}catch{null==(t=document.querySelector("gradio-app"))||t.append(n)}kd(n).render(ee.jsx(kce,{}))}),{once:!0});
|