function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t,n;return e.__esModule?e:("function"==typeof(t=e.default)?(n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},n.prototype=t.prototype):n={},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)}function r(e,t,n){this.props=e,this.context=t,this.refs=nJ,this.updater=n||eJ}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=nJ,this.updater=n||eJ}function a(e,t,n){var r,o,i,a,s={},l=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)dy.call(t,r)&&!fy.hasOwnProperty(r)&&(s[r]=t[r]);if(1==(o=arguments.length-2))s.children=n;else if(1t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Ay.call(My,e)||!Ay.call(Fy,e)&&(Ry.test(e)?My[e]=!0:(Fy[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))))}function v(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=tv&&e[tv]||e["@@iterator"])?e:null}function w(e){if(void 0===rv)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rv=t&&t[1]||""}return"\n"+rv+e}function x(e,t){var n,r,o,i,a,s,l;if(!e||ov)return"";ov=!0,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){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(o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return l="\n"+o[a].replace(" at new "," at "),e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{ov=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?w(e):""}function S(e){switch(e.tag){case 5:return w(e.type);case 16:return w("Lazy");case 13:return w("Suspense");case 19:return w("SuspenseList");case 0:case 2:case 15:return x(e.type,!1);case 11:return x(e.type.render,!1);case 1:return x(e.type,!0);default:return""}}function E(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 Wy:return"Fragment";case Uy:return"Portal";case Vy:return"Profiler";case Gy:return"StrictMode";case Yy:return"Suspense";case Jy:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Xy:return(e.displayName||"Context")+".Consumer";case qy:return(e._context.displayName||"Context")+".Provider";case Ky:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Qy:return null!==(t=e.displayName||null)?t:E(e.type)||"Memo";case Zy:t=e._payload,e=e._init;try{return E(e(t))}catch(n){}}return null}function C(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 E(t);case 8:return t===Gy?"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 k(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function O(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function D(e){e._valueTracker||(e._valueTracker=function(e){var t,n,r=O(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),i=""+e[r];if(!e.hasOwnProperty(r)&&void 0!==o&&"function"==typeof o.get&&"function"==typeof o.set)return t=o.get,n=o.set,Object.defineProperty(e,r,{configurable:!0,get:function(){return t.call(this)},set:function(e){i=""+e,n.call(this,e)}}),Object.defineProperty(e,r,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}(e))}function $(e){var t,n,r;return!(!e||(t=e._valueTracker)&&(n=t.getValue(),r="",e&&(r=O(e)?e.checked?"true":"false":e.value),(e=r)===n||(t.setValue(e),0)))}function _(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 N(e,t){var n=t.checked;return nv({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function j(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=k(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 P(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function T(e,t){P(e,t);var n=k(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")?A(e,t.type,n):t.hasOwnProperty("defaultValue")&&A(e,t.type,k(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function I(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&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 A(e,t,n){"number"===t&&_(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function R(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=(o=t&-t)||16===r&&0!=(4194240&o)))return t;if(0!=(4&n)&&(n|=16&s),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0n;n++)t.push(e);return t}function ge(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Rv(t)]=n}function me(e,t){var n,r,o=e.entangledLanes|=t;for(e=e.entanglements;o;)(r=1<<(n=31-Rv(o)))&t|e[n]&t&&(e[n]|=t),o&=~r}function be(e){return 1<(e&=-e)?4=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=Qe(r)}}function et(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?et(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tt(){var e,t,n;for(e=window,t=_();t instanceof e.HTMLIFrameElement;){try{n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=_((e=t.contentWindow).document)}return t}function nt(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 rt(e){var t,n,r,o=tt(),i=e.focusedElem,a=e.selectionRange;if(o!==i&&i&&i.ownerDocument&&et(i.ownerDocument.documentElement,i)){null!==a&&nt(i)&&(o=a.start,void 0===(e=a.end)&&(e=o),"selectionStart"in i?(i.selectionStart=o,i.selectionEnd=Math.min(e,i.value.length)):(e=(o=i.ownerDocument||document)&&o.defaultView||window).getSelection&&(e=e.getSelection(),t=i.textContent.length,n=Math.min(a.start,t),a=void 0===a.end?n:Math.min(a.end,t),!e.extend&&n>a&&(t=a,a=n,n=t),t=Ze(i,n),r=Ze(i,a),t&&r&&(1!==e.rangeCount||e.anchorNode!==t.node||e.anchorOffset!==t.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((o=o.createRange()).setStart(t.node,t.offset),e.removeAllRanges(),n>a?(e.addRange(o),e.extend(r.node,r.offset)):(o.setEnd(r.node,r.offset),e.addRange(o))))),o=[];for(e=i;e=e.parentNode;)1===e.nodeType&&o.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;iFx||(e.current=Rx[Fx],Rx[Fx]=null,Fx--)}function Tt(e,t){Fx++,Rx[Fx]=e.current,e.current=t}function It(e,t){var n,r,o,i=e.type.contextTypes;if(!i)return Mx;if((n=e.stateNode)&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;for(o in r={},i)r[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function At(e){return null!=e.childContextTypes}function Rt(){Pt(Bx),Pt(Lx)}function Ft(e,t,n){if(Lx.current!==Mx)throw Error(f(168));Tt(Lx,t),Tt(Bx,n)}function Mt(e,t,n){var r,o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(r in o=o.getChildContext())if(!(r in t))throw Error(f(108,C(e)||"Unknown",r));return nv({},n,o)}function Lt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mx,zx=Lx.current,Tt(Lx,e),Tt(Bx,Bx.current),!0}function Bt(e,t,n){var r=e.stateNode;if(!r)throw Error(f(169));n?(e=Mt(e,t,zx),r.__reactInternalMemoizedMergedChildContext=e,Pt(Bx),Pt(Lx),Tt(Lx,e)):Pt(Bx),Tt(Bx,n)}function zt(e){null===Hx?Hx=[e]:Hx.push(e)}function Ht(){var e,t,n,r;if(!Wx&&null!==Hx){Wx=!0,e=0,t=zv;try{for(n=Hx,zv=1;e>=a,o-=a,Qx=1<<32-Rv(t)+o|n<g?(m=f,f=null):m=f.sibling,null===(b=p(o,f,s[g],l))){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(o,f),a=i(b,a,g),null===u?c=b:u.sibling=b,u=b,f=m}if(g===s.length)return n(o,f),nS&&Ut(o,g),c;if(null===f){for(;gg?(m=u,u=null):m=u.sibling,null===(y=p(o,u,b.value,l))){null===u&&(u=m);break}e&&u&&null===y.alternate&&t(o,u),a=i(y,a,g),null===c?w=y:c.sibling=y,c=y,u=m}if(b.done)return n(o,u),nS&&Ut(o,g),w;if(null===u){for(;!b.done;g++,b=s.next())null!==(b=d(o,b.value,l))&&(a=i(b,a,g),null===c?w=b:c.sibling=b,c=b);return nS&&Ut(o,g),w}for(u=r(o,u);!b.done;g++,b=s.next())null!==(b=h(u,o,g,b.value,l))&&(e&&null!==b.alternate&&u.delete(null===b.key?g:b.key),a=i(b,a,g),null===c?w=b:c.sibling=b,c=b);return e&&u.forEach((function(e){return t(o,e)})),nS&&Ut(o,g),w}(l,c,u,g);On(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(c=o(c,u)).return=l,l=c):(n(l,c),(c=ni(u,l.mode,g)).return=l,l=c),a(l)):n(l,c)}}function _n(e){if(e===gS)throw Error(f(174));return e}function Nn(e,t){switch(Tt(yS,t),Tt(bS,e),Tt(mS,gS),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:H(null,"");break;default:t=H(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Pt(mS),Tt(mS,t)}function jn(){Pt(mS),Pt(bS),Pt(yS)}function Pn(e){var t,n;_n(yS.current),(t=_n(mS.current))!==(n=H(t,e.type))&&(Tt(bS,e),Tt(mS,n))}function Tn(e){bS.current===e&&(Pt(mS),Pt(bS))}function In(e){var t,n;for(t=e;null!==t;){if(13===t.tag){if(null!==(n=t.memoizedState)&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function An(){for(var e=0;er?r:4,e(!0),n=SS.transition,SS.transition={};try{e(!1),t()}finally{zv=r,SS.transition=n}}function hr(){return zn().memoizedState}function gr(e,t,n){var r=wo(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},br(e)?yr(t,n):null!==(n=un(e,t,n,r))&&(xo(n,e,r,vo()),vr(n,t,r))}function mr(e,t,n){var r,o,i,a,s=wo(e),l={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(br(e))yr(t,l);else{if(r=e.alternate,0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{if(i=r(o=t.lastRenderedState,n),l.hasEagerState=!0,l.eagerState=i,tx(i,o))return null===(a=t.interleaved)?(l.next=l,cn(t)):(l.next=a.next,a.next=l),void(t.interleaved=l)}catch(c){}null!==(n=un(e,t,l,s))&&(xo(n,e,s,l=vo()),vr(n,t,s))}}function br(e){var t=e.alternate;return e===CS||null!==t&&t===CS}function yr(e,t){$S=DS=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vr(e,t,n){if(0!=(4194240&n)){var r=t.lanes;t.lanes=n|=r&=e.pendingLanes,me(e,n)}}function wr(e,t){var n,r,o;try{n="",r=t;do{n+=S(r),r=r.return}while(r);o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function xr(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Sr(e,t,n){(n=hn(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){mE||(mE=!0,bE=r)},n}function Er(e,t,n){var r,o,i;return(n=hn(-1,n)).tag=3,"function"==typeof(r=e.type.getDerivedStateFromError)&&(o=t.value,n.payload=function(){return r(o)},n.callback=function(){}),null!==(i=e.stateNode)&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===yE?yE=new Set([this]):yE.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Cr(e,t,n){var r,o=e.pingCache;null===o?(o=e.pingCache=new AS).set(t,r=new Set):void 0===(r=o.get(t))&&o.set(t,r=new Set),r.has(n)||(r.add(n),e=Wo.bind(null,e,t,n),t.then(e,e))}function kr(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 Or(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=hn(-1,1)).tag=2,gn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}function Dr(e,t,n,r){t.child=null===e?hS(t,null,n,r):fS(t,e.child,n,r)}function $r(e,t,n,r,o){n=n.render;var i=t.ref;return sn(t,o),r=Mn(e,t,n,r,i,o),n=Ln(),null===e||FS?(nS&&n&&Gt(t),t.flags|=1,Dr(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vr(e,t,o))}function _r(e,t,n,r,o){var i;return null===e?"function"!=typeof(i=n.type)||Jo(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zo(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Nr(e,t,i,r,o)):(i=e.child,0==(e.lanes&o)&&(n=null!==(n=n.compare)?n:Je)(i.memoizedProps,r)&&e.ref===t.ref?Vr(e,t,o):(t.flags|=1,(e=Qo(i,r)).ref=t.ref,e.return=t,t.child=e))}function Nr(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Je(i,r)&&e.ref===t.ref){if(FS=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Vr(e,t,o);0!=(131072&e.flags)&&(FS=!0)}}return Tr(e,t,n,r,o)}function jr(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tt(iE,oE),oE|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tt(iE,oE),oE|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Tt(iE,oE),oE|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Tt(iE,oE),oE|=r;return Dr(e,t,o,n),t.child}function Pr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tr(e,t,n,r,o){var i=At(n)?zx:Lx.current;return i=It(t,i),sn(t,o),n=Mn(e,t,n,r,i,o),r=Ln(),null===e||FS?(nS&&r&&Gt(t),t.flags|=1,Dr(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vr(e,t,o))}function Ir(e,t,n,r,o){var i,a,s,l,c,u,d,p,f,h;return At(n)?(i=!0,Lt(t)):i=!1,sn(t,o),null===t.stateNode?(Gr(e,t),Sn(t,n,r),Cn(t,n,r,o),r=!0):null===e?((a=t.stateNode).props=s=t.memoizedProps,l=a.context,c="object"==typeof(c=n.contextType)&&null!==c?ln(c):It(t,c=At(n)?zx:Lx.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&En(t,a,r,c),uS=!1,a.state=p=t.memoizedState,yn(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Bx.current||uS?("function"==typeof u&&(wn(t,n,u,r),l=t.memoizedState),(s=uS||xn(t,n,s,r,p,l,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=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)):(a=t.stateNode,fn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:nn(t.type,s),a.props=c,d=t.pendingProps,p=a.context,l="object"==typeof(l=n.contextType)&&null!==l?ln(l):It(t,l=At(n)?zx:Lx.current),(u="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&En(t,a,r,l),uS=!1,a.state=p=t.memoizedState,yn(t,r,a,o),h=t.memoizedState,s!==d||p!==h||Bx.current||uS?("function"==typeof f&&(wn(t,n,f,r),h=t.memoizedState),(c=uS||xn(t,n,c,r,p,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)),Ar(e,t,n,r,i,o)}function Ar(e,t,n,r,o,i){var a,s;return Pr(e,t),a=0!=(128&t.flags),r||a?(r=t.stateNode,RS.current=t,s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render(),t.flags|=1,null!==e&&a?(t.child=fS(t,e.child,null,i),t.child=fS(t,null,s,i)):Dr(e,t,s,i),t.memoizedState=r.state,o&&Bt(t,n,!0),t.child):(o&&Bt(t,n,!1),Vr(e,t,i))}function Rr(e){var t=e.stateNode;t.pendingContext?Ft(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ft(0,t.context,!1),Nn(e,t.containerInfo)}function Fr(e,t,n,r,o){return en(),tn(o),t.flags|=256,Dr(e,t,n,r),t.child}function Mr(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lr(e,t,n){var r,o,i=t.pendingProps,a=vS.current,s=!1,l=0!=(128&t.flags);return(r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Tt(vS,1&a),null===e?(Yt(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(t.lanes=0==(1&t.mode)?1:"$!"===e.data?8:1073741824,null):(l=i.children,e=i.fallback,s?(s=t.child,l={mode:"hidden",children:l},0==(1&(i=t.mode))&&null!==s?(s.childLanes=0,s.pendingProps=l):s=ti(l,i,0,null),e=ei(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Mr(n),t.memoizedState=MS,e):Br(t,l))):null!==(a=e.memoizedState)&&null!==(r=a.dehydrated)?function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,zr(e,t,a,r=xr(Error(f(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,r=ti({mode:"visible",children:r.children},o=t.mode,0,null),(i=ei(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!=(1&t.mode)&&fS(t,e.child,null,a),t.child.memoizedState=Mr(a),t.memoizedState=MS,i);if(0==(1&t.mode))return zr(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zr(e,t,a,r=xr(i=Error(f(419)),r,void 0))}if(s=0!=(a&e.childLanes),FS||s){if(null!==(r=tE)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==i.retryLane&&(i.retryLane=o,dn(e,o),xo(r,e,o,-1))}return Io(),zr(e,t,a,r=xr(Error(f(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Vo.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,tS=kt(o.nextSibling),eS=t,nS=!0,rS=null,null!==e&&(Kx[Yx++]=Qx,Kx[Yx++]=Zx,Kx[Yx++]=Jx,Qx=e.id,Zx=e.overflow,Jx=t),(t=Br(t,r.children)).flags|=4096,t)}(e,t,l,i,r,a,n):s?(s=i.fallback,r=(a=e.child).sibling,o={mode:"hidden",children:i.children},0==(1&(l=t.mode))&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=o,t.deletions=null):(i=Qo(a,o)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Qo(r,s):(s=ei(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Mr(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=MS,i):(e=(s=e.child).sibling,i=Qo(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i)}function Br(e,t){return(t=ti({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zr(e,t,n,r){return null!==r&&tn(r),fS(t,e.child,null,n),(e=Br(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hr(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),an(e.return,t,n)}function Ur(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 Wr(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Dr(e,t,r.children,n),0!=(2&(r=vS.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Hr(e,n,t);else if(19===e.tag)Hr(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(Tt(vS,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===In(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ur(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===In(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ur(t,!0,n,null,i);break;case"together":Ur(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gr(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),lE|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(f(153));if(null!==t.child){for(n=Qo(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Qo(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function qr(e,t){var n,r;if(!nS)switch(e.tailMode){case"hidden":for(t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":for(n=e.tail,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 Xr(e){var t,n=null!==e.alternate&&e.alternate.child===e.child,r=0,o=0;if(n)for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=14680064&t.subtreeFlags,o|=14680064&t.flags,t.return=e,t=t.sibling;else for(t=e.child;null!==t;)r|=t.lanes|t.childLanes,o|=t.subtreeFlags,o|=t.flags,t.return=e,t=t.sibling;return e.subtreeFlags|=o,e.childLanes=r,n}function Kr(e,t,n){var r,o,i,a,s,l=t.pendingProps;switch(Vt(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(t),null;case 1:case 17:return At(t.type)&&Rt(),Xr(t),null;case 3:return l=t.stateNode,jn(),Pt(Bx),Pt(Lx),An(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(Qt(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==rS&&(ko(rS),rS=null))),BS(e,t),Xr(t),null;case 5:if(Tn(t),r=_n(yS.current),n=t.type,null!==e&&null!=t.stateNode)zS(e,t,n,l,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(f(166));return Xr(t),null}if(e=_n(mS.current),Qt(t)){switch(n=t.type,o=t.memoizedProps,(l=t.stateNode)[Nx]=t,l[jx]=o,e=0!=(1&t.mode),n){case"dialog":ut("cancel",l),ut("close",l);break;case"iframe":case"object":case"embed":ut("load",l);break;case"video":case"audio":for(r=0;r<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=i.createElement(n,{is:l.is}):(e=i.createElement(n),"select"===n&&(i=e,l.multiple?i.multiple=!0:l.size&&(i.size=l.size))):e=i.createElementNS(e,n),e[Nx]=t,e[jx]=l,LS(e,t,!1,!1),t.stateNode=e;e:{switch(i=q(n,l),n){case"dialog":ut("cancel",e),ut("close",e),r=l;break;case"iframe":case"object":case"embed":ut("load",e),r=l;break;case"video":case"audio":for(r=0;rhE&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=In(i))){if(t.flags|=128,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qr(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!nS)return Xr(t),null}else 2*Dv()-o.renderingStartTime>hE&&1073741824!==n&&(t.flags|=128,l=!0,qr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=o.last)?n.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(o.rendering=t=o.tail,o.tail=t.sibling,o.renderingStartTime=Dv(),t.sibling=null,n=vS.current,Tt(vS,l?1&n|2:1&n),t):(Xr(t),null);case 22:case 23:return No(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&0!=(1&t.mode)?0!=(1073741824&oE)&&(Xr(t),6&t.subtreeFlags&&(t.flags|=8192)):Xr(t),null;case 24:case 25:return null}throw Error(f(156,t.tag))}function Yr(e,t){switch(Vt(t),t.tag){case 1:return At(t.type)&&Rt(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return jn(),Pt(Bx),Pt(Lx),An(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Tn(t),null;case 13:if(Pt(vS),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(f(340));en()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Pt(vS),null;case 4:return jn(),null;case 10:return on(t.type._context),null;case 22:case 23:return No(),null;default:return null}}function Jr(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Uo(e,t,r)}else n.current=null}function Qr(e,t,n){try{n()}catch(r){Uo(e,t,r)}}function Zr(e,t,n){var r,o,i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){r=i=i.next;do{(r.tag&e)===e&&(o=r.destroy,r.destroy=void 0,void 0!==o&&Qr(t,n,o)),r=r.next}while(r!==i)}}function eo(e,t){var n;if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){n=t=t.next;do{(n.tag&e)===e&&(n.destroy=(0,n.create)()),n=n.next}while(n!==t)}}function to(e){var t=e.ref;null!==t&&(e=e.stateNode,"function"==typeof t?t(e):t.current=e)}function no(e){var t=e.alternate;null!==t&&(e.alternate=null,no(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[Nx],delete t[jx],delete t[Tx],delete t[Ix],delete t[Ax]),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 ro(e){return 5===e.tag||3===e.tag||4===e.tag}function oo(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ro(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 io(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=xt));else if(4!==r&&null!==(e=e.child))for(io(e,t,n),e=e.sibling;null!==e;)io(e,t,n),e=e.sibling}function ao(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(ao(e,t,n),e=e.sibling;null!==e;)ao(e,t,n),e=e.sibling}function so(e,t,n){for(n=n.child;null!==n;)lo(e,t,n),n=n.sibling}function lo(e,t,n){var r,o,i,a;if(Av&&"function"==typeof Av.onCommitFiberUnmount)try{Av.onCommitFiberUnmount(Iv,n)}catch(s){}switch(n.tag){case 5:WS||Jr(n,t);case 6:r=XS,o=KS,XS=null,so(e,t,n),KS=o,null!==(XS=r)&&(KS?(n=n.stateNode,8===(e=XS).nodeType?e.parentNode.removeChild(n):e.removeChild(n)):XS.removeChild(n.stateNode));break;case 18:null!==XS&&(KS?(n=n.stateNode,8===(e=XS).nodeType?Ct(e.parentNode,n):1===e.nodeType&&Ct(e,n),ke(e)):Ct(XS,n.stateNode));break;case 4:r=XS,o=KS,XS=n.stateNode.containerInfo,KS=!0,so(e,t,n),XS=r,KS=o;break;case 0:case 11:case 14:case 15:if(!WS&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{a=(i=o).destroy,i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Qr(n,t,a),o=o.next}while(o!==r)}so(e,t,n);break;case 1:if(!WS&&(Jr(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Uo(n,t,s)}so(e,t,n);break;case 21:so(e,t,n);break;case 22:1&n.mode?(WS=(r=WS)||null!==n.memoizedState,so(e,t,n),WS=r):so(e,t,n);break;default:so(e,t,n)}}function co(e){var t,n=e.updateQueue;null!==n&&(e.updateQueue=null,null===(t=e.stateNode)&&(t=e.stateNode=new GS),n.forEach((function(n){var r=qo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})))}function uo(e,t){var n,r,o,i,a,s,l=t.deletions;if(null!==l)for(n=0;no&&(o=a),r&=~i;if(r=o,10<(r=(120>(r=Dv()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YS(r/1960))-r)){e.timeoutHandle=kx(Bo.bind(null,e,pE,gE),r);break}Bo(e,pE,gE);break;default:throw Error(f(329))}}}return So(e,Dv()),e.callbackNode===n?Eo.bind(null,e):null}function Co(e,t){var n=dE;return e.current.memoizedState.isDehydrated&&(jo(e,t).flags|=256),2!==(e=Ao(e,t))&&(t=pE,pE=n,null!==t&&ko(t)),e}function ko(e){null===pE?pE=e:pE.push.apply(pE,e)}function Oo(e,t){for(t&=~uE,e.suspendedLanes|=t&=~cE,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===wE)r=!1;else{if(e=wE,wE=null,xE=0,0!=(6&eE))throw Error(f(331));for(o=eE,eE|=4,VS=e.current;null!==VS;){if(a=(i=VS).child,0!=(16&VS.flags)&&null!==(s=i.deletions)){for(l=0;lDv()-fE?jo(e,0):uE|=n),So(e,t)}function Go(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Bv,0==(130023424&(Bv<<=1))&&(Bv=4194304)));var n=vo();null!==(e=dn(e,t))&&(ge(e,t,n),So(e,n))}function Vo(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Go(e,n)}function qo(e,t){var n,r,o=0;switch(e.tag){case 13:n=e.stateNode,null!==(r=e.memoizedState)&&(o=r.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(f(314))}null!==n&&n.delete(t),Go(e,o)}function Xo(e,t){return Ev(e,t)}function Ko(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 Yo(e,t,n,r){return new Ko(e,t,n,r)}function Jo(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Qo(e,t){var n=e.alternate;return null===n?((n=Yo(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,n.dependencies=null===(t=e.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zo(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Jo(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Wy:return ei(n.children,o,i,t);case Gy:a=8,o|=8;break;case Vy:return(e=Yo(12,n,t,2|o)).elementType=Vy,e.lanes=i,e;case Yy:return(e=Yo(13,n,t,o)).elementType=Yy,e.lanes=i,e;case Jy:return(e=Yo(19,n,t,o)).elementType=Jy,e.lanes=i,e;case ev:return ti(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case qy:a=10;break e;case Xy:a=9;break e;case Ky:a=11;break e;case Qy:a=14;break e;case Zy:a=16,r=null;break e}throw Error(f(130,null==e?e:typeof e,""))}return(t=Yo(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function ei(e,t,n,r){return(e=Yo(7,e,r,t)).lanes=n,e}function ti(e,t,n,r){return(e=Yo(22,e,r,t)).elementType=ev,e.lanes=n,e.stateNode={isHidden:!1},e}function ni(e,t,n){return(e=Yo(6,e,null,t)).lanes=n,e}function ri(e,t,n){return(t=Yo(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oi(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=he(0),this.expirationTimes=he(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=he(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ii(e,t,n,r,o,i,a,s,l){return e=new oi(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Yo(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pn(i),e}function ai(e){var t,n;if(!e)return Mx;e:{if(oe(e=e._reactInternals)!==e||1!==e.tag)throw Error(f(170));t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(At(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(f(171))}return 1===e.tag&&At(n=e.type)?Mt(e,n,t):t}function si(e,t,n,r,o,i,a,s,l){return(e=ii(n,r,!0,e,0,i,0,s,l)).context=ai(null),n=e.current,(i=hn(r=vo(),o=wo(n))).callback=null!=t?t:null,gn(n,i,o),e.current.lanes=o,ge(e,o,r),So(e,r),e}function li(e,t,n,r){var o=t.current,i=vo(),a=wo(o);return n=ai(n),null===t.context?t.context=n:t.pendingContext=n,(t=hn(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=gn(o,t,a))&&(xo(e,o,a,i),mn(e,o,a)),a}function ci(e){return(e=e.current).child?e.child.stateNode:null}function ui(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0||(n[o]=e[o]);return n}(e,t),Object.getOwnPropertySymbols)for(i=Object.getOwnPropertySymbols(e),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Di(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function $i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _i(e,t){var n,r;for(n=0;n2||Gi(uk)>3?"":" "}function Yi(e,t){for(;--t&&zi()&&!(uk<48||uk>102||uk>57&&uk<65||uk>70&&uk<97););return Wi(e,Ui()+(t<6&&32==Hi()&&32==zi()))}function Ji(e){for(;zi();)switch(uk){case e:return ck;case 34:case 39:34!==e&&39!==e&&Ji(uk);break;case 40:41===e&&Ji(e);break;case 92:zi()}return ck}function Qi(e,t){for(;zi()&&e+uk!==57&&(e+uk!==84||47!==Hi()););return"/*"+Wi(t,ck-1)+"*"+ok(47===e?e:zi())}function Zi(e){for(;!Gi(Hi());)zi();return Wi(e,ck)}function ea(e){return qi(ta("",null,null,null,[""],e=Vi(e),0,[0],e))}function ta(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,b=1,y=0,v="",w=o,x=i,S=r,E=v;m;)switch(h=y,y=zi()){case 40:if(108!=h&&58==Ii(E,d-1)){-1!=Ti(E+=Pi(Xi(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=Xi(y);break;case 9:case 10:case 13:case 32:E+=Ki(h);break;case 92:E+=Yi(Ui()-1,7);continue;case 47:switch(Hi()){case 42:case 47:Mi(ra(Qi(zi(),Ui()),t,n),l);break;default:E+="/"}break;case 123*g:s[c++]=Ri(E)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==b&&(E=Pi(E,/\f/g,"")),f>0&&Ri(E)-d&&Mi(f>32?oa(E+";",r,n,d-1):oa(Pi(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(Mi(S=na(E,t,n,c,u,o,s,v,w=[],x=[],d),i),123===y)if(0===u)ta(E,t,S,S,w,i,d,s,x);else switch(99===p&&110===Ii(E,3)?100:p){case 100:case 108:case 109:case 115:ta(e,S,S,r&&Mi(na(e,S,S,0,0,o,s,v,o,w=[],d),x),o,x,d,s,r?w:x);break;default:ta(E,S,S,S,[""],x,0,s,x)}}c=u=f=0,g=b=1,v=E="",d=a;break;case 58:d=1+Ri(E),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(uk=ck>0?Ii(dk,--ck):0,sk--,10===uk&&(sk=1,ak--),uk))continue;switch(E+=ok(y),y*g){case 38:b=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Ri(E)-1)*b,b=1;break;case 64:45===Hi()&&(E+=Xi(zi())),p=Hi(),u=d=Ri(v=E+=Zi(Ui())),y++;break;case 45:45===h&&2==Ri(E)&&(g=0)}}return i}function na(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,h,g,m,b=o-1,y=0===o?i:[""],v=Fi(y);for(d=0,p=0,f=0;d0?y[h]+" "+g:Pi(g,/&\f/g,y[h])))&&(l[f++]=m);return Li(e,t,n,0===o?QC:s,l,c,u)}function ra(e,t,n){return Li(e,t,n,JC,ok(uk),Ai(e,2,-2),0)}function oa(e,t,n,r){return Li(e,t,n,ZC,Ai(e,0,r),Ai(e,r+1,-1),r)}function ia(e,t){var n,r="",o=Fi(e);for(n=0;n6)switch(Ii(e,t+1)){case 109:if(45!==Ii(e,t+4))break;case 102:return Pi(e,/(.+:)(.+)-([^]+)/,"$1"+YC+"$2-$3$1"+KC+(108==Ii(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ti(e,"stretch")?la(Pi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ii(e,t+1))break;case 6444:switch(Ii(e,Ri(e)-3-(~Ti(e,"!important")&&10))){case 107:return Pi(e,":",":"+YC)+e;case 101:return Pi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+YC+(45===Ii(e,14)?"inline-":"")+"box$3$1"+YC+"$2$3$1"+XC+"$2box$3")+e}break;case 5936:switch(Ii(e,t+11)){case 114:return YC+e+XC+Pi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return YC+e+XC+Pi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return YC+e+XC+Pi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return YC+e+XC+e+e}return e}function ca(e,t,n){var r,o,i,a;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 _k={name:n.name,styles:n.styles,next:_k},n.name;if(void 0!==n.styles){if(void 0!==(r=n.next))for(;void 0!==r;)_k={name:r.name,styles:r.styles,next:_k},r=r.next;return n.styles+";"}return function(e,t,n){var r,o,i,a,s,l="";if(Array.isArray(n))for(r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function ka(e,t,n){var r=yy.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function Oa(){}function Da(){}function $a(e,t,n){t||jO[n]||(e(!1,n),jO[n]=!0)}function _a(e,t){$a(Oa,e,t)}function Na(e,t,n){var r=arguments.length>2&&void 0!==n&&n,o=new Set;return function e(t,n,i){var a,s,l,c=arguments.length>2&&void 0!==i?i:1,u=o.has(t);if(_a(!u,"Warning: There may be circular references"),u)return!1;if(t===n)return!0;if(r&&c>1)return!1;if(o.add(t),a=c+1,Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(s=0;s0&&void 0!==e?e:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):zO}function Aa(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Ra(e){return Array.from((HO.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Fa(e,t){var n,r,o,i,a,s,l,c,u,d,p=arguments.length>1&&void 0!==t?t:{};if(!Pa())return null;if(n=p.csp,i=void 0===(o=p.priority)?0:o,s="prependQueue"===(a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r=p.prepend)),(l=document.createElement("style")).setAttribute(LO,a),s&&i&&l.setAttribute(BO,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e,u=(c=Aa(p)).firstChild,r){if(s&&(d=Ra(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(LO)))return!1;var t=Number(e.getAttribute(BO)||0);return i>=t}))).length)return c.insertBefore(l,d[d.length-1].nextSibling),l;c.insertBefore(l,u)}else c.appendChild(l);return l}function Ma(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Ra(Aa(n)).find((function(t){return t.getAttribute(Ia(n))===e}))}function La(e,t){var n=arguments.length>1&&void 0!==t?t:{},r=Ma(e,n);r&&Aa(n).removeChild(r)}function Ba(e,t,n){var r,o,i,a,s,l=arguments.length>2&&void 0!==n?n:{};return function(e,t){var n,r=HO.get(e);r&&Ta(document,r)||(n=Fa("",t),HO.set(e,n.parentNode),e.removeChild(n))}(Aa(l),l),(r=Ma(t,l))?(null!==(o=l.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=l.csp)||void 0===i?void 0:i.nonce)&&(r.nonce=null===(a=l.csp)||void 0===a?void 0:a.nonce),r.innerHTML!==e&&(r.innerHTML=e),r):((s=Fa(e,l)).setAttribute(Ia(l),t),s)}function za(e){if(Array.isArray(e))return e}function Ha(){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 Ua(e,t){return za(e)||function(e,t){var n,r,o,i,a,s,l,c=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=c){a=[],s=!0,l=!1;try{if(o=(c=c.call(e)).next,0===t){if(Object(c)!==c)return;s=!1}else for(;!(s=(n=o.call(c)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(u){l=!0,r=u}finally{try{if(!s&&null!=c.return&&(i=c.return(),Object(i)!==i))return}finally{if(l)throw r}}return a}}(e,t)||wa(e,t)||Ha()}function Wa(e){var t=Array.isArray(e)?e:[e];return VO.has(t)||VO.set(t,new GO(t)),VO.get(t)}function Ga(e){var t=qO.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof GO?t+=r.id:r&&"object"===Ei(r)?t+=Ga(r):t+=r})),qO.set(e,t)),t}function Va(e,t,n,r,o){var i,a,s=yy.useContext(MJ).cache,l=[e].concat(xa(t)),c=l.join("_"),u=BJ([c]),d=function(e){s.update(l,(function(t){var r=Ua(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};return yy.useMemo((function(){d()}),[c]),i=s.get(l),a=i[1],LJ((function(){null==o||o(a)}),(function(e){return d((function(t){var n=Ua(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(a)),[r+1,i]})),function(){s.update(l,(function(e){var t=Ua(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0==o-1?(u((function(){return null==r?void 0:r(i,!1)})),null):[o-1,i]}))}}),[c]),a}function qa(e){return e.trim()}function Xa(e,t){return(e=t.exec(e))?e[0]:e}function Ka(e,t,n){return e.replace(t,n)}function Ya(e,t){return e.indexOf(t)}function Ja(e,t){return 0|e.charCodeAt(t)}function Qa(e,t,n){return e.slice(t,n)}function Za(e){return e.length}function es(e){return e.length}function ts(e,t){return t.push(e),e}function ns(e,t){return e.filter((function(e){return!Xa(e,t)}))}function rs(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:wD,column:xD,length:a,return:"",siblings:s}}function os(e,t){return vD(rs("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function is(e){for(;e.root;)e=os(e.root,{children:[e]});ts(e,e.siblings)}function as(){return CD=ED2||us(CD)>3?"":" "}function fs(e,t){for(;--t&&as()&&!(CD<48||CD>102||CD>57&&CD<65||CD>70&&CD<97););return cs(e,ls()+(t<6&&32==ss()&&32==as()))}function hs(e){for(;as();)switch(CD){case e:return ED;case 34:case 39:34!==e&&39!==e&&hs(CD);break;case 40:41===e&&hs(e);break;case 92:as()}return ED}function gs(e,t){for(;as()&&e+CD!==57&&(e+CD!==84||47!==ss()););return"/*"+cs(t,ED-1)+"*"+yD(47===e?e:as())}function ms(e){for(;!us(ss());)as();return cs(e,ED)}function bs(e){return function(e){return kD="",e}(ys("",null,null,null,[""],e=function(e){return wD=xD=1,SD=Za(kD=e),ED=0,[]}(e),0,[0],e))}function ys(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,b=1,y=0,v="",w=o,x=i,S=r,E=v;m;)switch(h=y,y=as()){case 40:if(108!=h&&58==Ja(E,d-1)){-1!=Ya(E+=Ka(ds(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=ds(y);break;case 9:case 10:case 13:case 32:E+=ps(h);break;case 92:E+=fs(ls()-1,7);continue;case 47:switch(ss()){case 42:case 47:ts(ws(gs(as(),ls()),t,n,l),l);break;default:E+="/"}break;case 123*g:s[c++]=Za(E)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==b&&(E=Ka(E,/\f/g,"")),f>0&&Za(E)-d&&ts(f>32?xs(E+";",r,n,d-1,l):xs(Ka(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(ts(S=vs(E,t,n,c,u,o,s,v,w=[],x=[],d,i),i),123===y)if(0===u)ys(E,t,S,S,w,i,d,s,x);else switch(99===p&&110===Ja(E,3)?100:p){case 100:case 108:case 109:case 115:ys(e,S,S,r&&ts(vs(e,S,S,0,0,o,s,v,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:ys(E,S,S,S,[""],x,0,s,x)}}c=u=f=0,g=b=1,v=E="",d=a;break;case 58:d=1+Za(E),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(CD=ED>0?Ja(kD,--ED):0,xD--,10===CD&&(xD=1,wD--),CD))continue;switch(E+=yD(y),y*g){case 38:b=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Za(E)-1)*b,b=1;break;case 64:45===ss()&&(E+=ds(as())),p=ss(),u=d=Za(v=E+=ms(ls())),y++;break;case 45:45===h&&2==Za(E)&&(g=0)}}return i}function vs(e,t,n,r,o,i,a,s,l,c,u,d){var p,f,h,g,m,b,y=o-1,v=0===o?i:[""],w=es(v);for(p=0,f=0,h=0;p0?v[g]+" "+m:Ka(m,/&\f/g,v[g])))&&(l[h++]=b);return rs(e,t,n,0===o?pD:s,l,c,u,d)}function ws(e,t,n,r){return rs(e,t,n,dD,yD(CD),Qa(e,2,-2),0,r)}function xs(e,t,n,r,o){return rs(e,t,n,fD,Qa(e,0,r),Qa(e,r+1,-1),r,o)}function Ss(e,t,n){switch(function(e,t){return 45^Ja(e,0)?(((t<<2^Ja(e,0))<<2^Ja(e,1))<<2^Ja(e,2))<<2^Ja(e,3):0}(e,t)){case 5103:return uD+"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 uD+e+e;case 4789:return cD+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return uD+e+cD+e+lD+e+e;case 5936:switch(Ja(e,t+11)){case 114:return uD+e+lD+Ka(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return uD+e+lD+Ka(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return uD+e+lD+Ka(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return uD+e+lD+e+e;case 6165:return uD+e+lD+"flex-"+e+e;case 5187:return uD+e+Ka(e,/(\w+).+(:[^]+)/,uD+"box-$1$2"+lD+"flex-$1$2")+e;case 5443:return uD+e+lD+"flex-item-"+Ka(e,/flex-|-self/g,"")+(Xa(e,/flex-|baseline/)?"":lD+"grid-row-"+Ka(e,/flex-|-self/g,""))+e;case 4675:return uD+e+lD+"flex-line-pack"+Ka(e,/align-content|flex-|-self/g,"")+e;case 5548:return uD+e+lD+Ka(e,"shrink","negative")+e;case 5292:return uD+e+lD+Ka(e,"basis","preferred-size")+e;case 6060:return uD+"box-"+Ka(e,"-grow","")+uD+e+lD+Ka(e,"grow","positive")+e;case 4554:return uD+Ka(e,/([^-])(transform)/g,"$1"+uD+"$2")+e;case 6187:return Ka(Ka(Ka(e,/(zoom-|grab)/,uD+"$1"),/(image-set)/,uD+"$1"),e,"")+e;case 5495:case 3959:return Ka(e,/(image-set\([^]*)/,uD+"$1$`$1");case 4968:return Ka(Ka(e,/(.+:)(flex-)?(.*)/,uD+"box-pack:$3"+lD+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+uD+e+e;case 4200:if(!Xa(e,/flex-|baseline/))return lD+"grid-column-align"+Qa(e,t)+e;break;case 2592:case 3360:return lD+Ka(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Xa(e.props,/grid-\w+-end/)}))?~Ya(e+(n=n[t].value),"span")?e:lD+Ka(e,"-start","")+e+lD+"grid-row-span:"+(~Ya(n,"span")?Xa(n,/\d+/):+Xa(n,/\d+/)-+Xa(e,/\d+/))+";":lD+Ka(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Xa(e.props,/grid-\w+-start/)}))?e:lD+Ka(Ka(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ka(e,/(.+)-inline(.+)/,uD+"$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(Za(e)-1-t>6)switch(Ja(e,t+1)){case 109:if(45!==Ja(e,t+4))break;case 102:return Ka(e,/(.+:)(.+)-([^]+)/,"$1"+uD+"$2-$3$1"+cD+(108==Ja(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ya(e,"stretch")?Ss(Ka(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ka(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return lD+n+":"+r+s+(o?lD+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===Ja(e,t+6))return Ka(e,":",":"+uD)+e;break;case 6444:switch(Ja(e,45===Ja(e,14)?18:11)){case 120:return Ka(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+uD+(45===Ja(e,14)?"inline-":"")+"box$3$1"+uD+"$2$3$1"+lD+"$2box$3")+e;case 100:return Ka(e,":",":"+lD)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ka(e,"scroll-","scroll-snap-")+e}return e}function Es(e,t){var n,r="";for(n=0;n-1&&!e.return)switch(e.type){case fD:return void(e.return=Ss(e.value,e.length,n));case gD:return Es([os(e,{value:Ka(e.value,"@","@"+uD)})],r);case pD:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Xa(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":is(os(e,{props:[Ka(t,/:(read-\w+)/,":"+cD+"$1")]})),is(os(e,{props:[t]})),vD(e,{props:ns(n,r)});break;case"::placeholder":is(os(e,{props:[Ka(t,/:(plac\w+)/,":"+uD+"input-$1")]})),is(os(e,{props:[Ka(t,/:(plac\w+)/,":"+cD+"$1")]})),is(os(e,{props:[Ka(t,/:(plac\w+)/,lD+"input-$1")]})),is(os(e,{props:[t]})),vD(e,{props:ns(n,r)})}return""}))}}function Os(e){return Es(bs(e),Cs).replace(/\{%%%\:[^;];}/g,";")}function Ds(){return null}function $s(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b=e.token,y=e.path,v=e.hashId,w=e.layer,x=e.nonce,S=e.clientOnly,E=e.order,C=void 0===E?0:E,k=yy.useContext(MJ),O=k.autoClear;return n=k.defaultCache,r=k.hashPriority,o=k.container,i=k.ssrInline,a=k.transformers,s=k.linters,l=k.cache,u=[c=b._tokenKey].concat(xa(y)),d=ND,p=Va("style",u,(function(){var e,n,o,i,l,d,p,f,h=u.join("|");return function(e){var t,n,r;return $D||($D={},Pa()&&((t=document.createElement("div")).className=OD,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t),(getComputedStyle(t).content||"").replace(/^"/,"").replace(/"$/,"").split(";").forEach((function(e){var t=Ua(e.split(":"),2);$D[t[0]]=t[1]})),(n=document.querySelector("style[".concat(OD,"]")))&&(_D=!1,null===(r=n.parentNode)||void 0===r||r.removeChild(n)),document.body.removeChild(t))),!!$D[e]}(h)&&(e=function(e){var t,n=$D[e],r=null;return n&&Pa()&&(_D?r=DD:(t=document.querySelector("style[".concat(AO,'="').concat($D[e],'"]')))?r=t.innerHTML:delete $D[e]),[r,n]}(h),o=(n=Ua(e,2))[0])?[o,c,n[1],{},S,C]:(i=t(),d=(l=Ua(PD(i,{hashId:v,hashPriority:r,layer:w,path:y.join("-"),transformers:a,linters:s}),2))[1],p=Os(l[0]),f=function(e,t){return Ca("".concat(e.join("%")).concat(t))}(u,p),[p,c,f,d,S,C])}),(function(e,t){var n=Ua(e,3);(t||O)&&ND&&La(n[2],{mark:AO})}),(function(e){var t,n,r,i,a,s=Ua(e,4),u=s[0];t=s[2],n=s[3],d&&u!==DD&&(r={mark:AO,prepend:"queue",attachTo:o,priority:C},(i="function"==typeof x?x():x)&&(r.csp={nonce:i}),(a=Ba(u,t,r))[RO]=l.instanceId,a.setAttribute(IO,c),Object.keys(n).forEach((function(e){Ba(Os(n[e]),"_effect-".concat(e),r)})))})),f=Ua(p,3),h=f[0],g=f[1],m=f[2],function(e){var t,r;return t=i&&!d&&n?yy.createElement("style",fa({},(ki(r={},IO,g),ki(r,AO,m),r),{dangerouslySetInnerHTML:{__html:h}})):yy.createElement(Ds,null),yy.createElement(yy.Fragment,null,t,e)}}function _s(e){return e.notSplit=!0,e}function Ns(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function js(e){var t,n;for(t=1;t1&&void 0!==t?t:{},r=[];return rJ.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(Bs(e)):s$.isFragment(e)&&e.props?r=r.concat(Bs(e.props.children,n)):r.push(e))})),r}function zs(e,t){"function"==typeof e?e(t):"object"===Ei(e)&&e&&"current"in e&&(e.current=t)}function Hs(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n3&&void 0!==r&&r;return t.length&&o&&void 0===n&&!tl(e,t.slice(0,-1))?e:nl(e,t,n,o)}function ol(e){return Array.isArray(e)?[]:{}}function il(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function ul(e){return e<=1?"".concat(100*Number(e),"%"):e}function dl(e){return 1===e.length?"0"+e:String(e)}function pl(e,t,n){var r,o,i,a,s,l;if(e=sl(e,255),t=sl(t,255),n=sl(n,255),i=0,a=0,s=((r=Math.max(e,t,n))+(o=Math.min(e,t,n)))/2,r===o)a=0,i=0;else{switch(l=r-o,a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hl(e,t,n){var r,o,i,a,s,l;if(e=sl(e,255),t=sl(t,255),n=sl(n,255),i=0,a=r=Math.max(e,t,n),s=r-(o=Math.min(e,t,n)),l=0===r?0:s/r,r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-W$*t:Math.round(e.h)+W$*t:n?Math.round(e.h)+W$*t:Math.round(e.h)-W$*t)<0?r+=360:r>=360&&(r-=360),r}function El(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-G$*t:t===Y$?e.s+G$:e.s+V$*t)>1&&(r=1),n&&t===K$&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Cl(e,t,n){var r;return(r=n?e.v+q$*t:e.v-X$*t)>1&&(r=1),Number(r.toFixed(2))}function kl(e,t){var n,r,o,i,a,s,l=arguments.length>1&&void 0!==t?t:{},c=[],u=yl(e);for(n=K$;n>0;n-=1)o=xl(yl({h:Sl(r=wl(u),n,!0),s:El(r,n,!0),v:Cl(r,n,!0)})),c.push(o);for(c.push(xl(u)),i=1;i<=Y$;i+=1)s=xl(yl({h:Sl(a=wl(u),i),s:El(a,i),v:Cl(a,i)})),c.push(s);return"dark"===l.theme?J$.map((function(e){var t,n,r,o=e.index,i=e.opacity;return xl((t=yl(l.backgroundColor||"#141414"),{r:((n=yl(c[o])).r-t.r)*(r=100*i/100)+t.r,g:(n.g-t.g)*r+t.g,b:(n.b-t.b)*r+t.b}))})):c}function Ol(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),p=n(o),f=n(i),h=n(a),g=n(s),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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[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:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[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 U$("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}function Dl(e){const t=Object.keys(rQ).map((t=>{const n=kl(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)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Ol(e,{generateColorPalettes:lQ,generateNeutralColorPalettes:cQ})),uQ(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)),nQ(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},iQ(r))}(e))}function $l(e){return e>=0&&e<=255}function _l(e,t){const{r:n,g:r,b:o,a:i}=new U$(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new U$(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-s*(1-c))/c),i=Math.round((o-l*(1-c))/c);if($l(e)&&$l(t)&&$l(i))return new U$({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new U$({r:n,g:r,b:o,a:1}).toRgbString()}function Nl(e){const{override:t}=e,n=n_(e,["override"]),r=Object.assign({},t);Object.keys(oQ).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r);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:_l(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:_l(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_l(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:_l(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:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new U$("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new U$("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new U$("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)}function jl(){const{token:e,hashed:t,theme:n,components:r}=rJ.useContext(fQ),o=`${tQ}-${t||""}`,i=n||dQ,[a,s]=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:{},o=yy.useContext(MJ).cache.instanceId,i=r.salt,a=void 0===i?"":i,s=r.override,l=void 0===s?nD:s,c=r.formatToken,u=r.getComputedToken,d=yy.useMemo((function(){return Object.assign.apply(Object,[{}].concat(xa(t)))}),[t]),p=yy.useMemo((function(){return Ga(d)}),[d]),f=yy.useMemo((function(){return Ga(l)}),[l]),h=Va("token",[a,e.id,p,f],(function(){var t,n=u?u(d,l,e):aD(d,l,e,c),r=function(e,t){return Ca("".concat(t,"_").concat(Ga(e)))}(n,a);return n._tokenKey=r,function(e){oD.set(e,(oD.get(e)||0)+1)}(r),t="".concat(rD,"-").concat(Ca(r)),n._hashId=t,[n,t]}),(function(e){!function(e,t){var n,r;oD.set(e,(oD.get(e)||0)-1),r=(n=Array.from(oD.keys())).filter((function(e){return(oD.get(e)||0)<=0})),n.length-r.length>iD&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(IO,'="').concat(e,'"]')).forEach((function(e){var n;e[RO]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),oD.delete(e)}))}(e[0]._tokenKey,o)}));return h}(i,[oQ,e],{salt:o,override:Object.assign({override:e},r),getComputedToken:hQ,formatToken:Nl});return[i,a,t?s:""]}function Pl(e){var t,n=yy.useRef();return n.current=e,t=yy.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),kQ=!0,r}function Fl(){}function Ml(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};const i=Array.isArray(e)?e:[e,e],[a]=i,s=i.join("-");return e=>{const[r,i,l]=jl(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=yy.useContext(mQ),p=c(),f={theme:r,token:i,hashId:l,nonce:()=>null==d?void 0:d.nonce,clientOnly:o.clientOnly,order:o.order||-999};return $s(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",p]}),(()=>[{"&":wQ(i)}])),DQ(u),[$s(Object.assign(Object.assign({},f),{path:[s,e,u]}),(()=>{const{token:r,flush:s}=function(e){let t,n=e,r=Fl;return CQ&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(kQ&&t.add(n),e[n])}),r=(e,n)=>{var r;OQ[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=OQ[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(i),c=Object.assign({},i[a]);if(o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((e=>{let[t,n]=e;var r;((null==c?void 0:c[t])||(null==c?void 0:c[n]))&&(null!==(r=c[n])&&void 0!==r||(c[n]=null==c?void 0:c[t]))}))}const d="function"==typeof n?n(Rl(r,null!=c?c:{})):n,f=Object.assign(Object.assign({},d),c),h=Rl(r,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${p}`},f),g=t(h,{hashId:l,prefixCls:e,rootPrefixCls:p,iconPrefixCls:u,overrideComponentToken:c});return s(a,f),[!1===o.resetStyle?null:xQ(i,e),g]})),l]}}function Ll(e,t){return eQ.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}function Bl(e){var t=e.children,n=Oi(e,o_);return yy.createElement(i_.Provider,{value:n},t)}function zl(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}function Hl(e){var t,n,r,o,i;if(w_[e])return w_[e];if(t=b_[e])for(r=(n=Object.keys(t)).length,o=0;o0&&void 0!==e?e:[]).map(Gl)}function ql(e){const{children:t}=e,[,n]=jl(),{motion:r}=n,o=yy.useRef(!1);return o.current=o.current||!1===r,o.current?yy.createElement(Bl,{motion:r},t):t}function Xl(){return LQ||"ant"}function Kl(){return BQ||gQ}function Yl(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Jl(e){return function(e){return Yl(e)instanceof ShadowRoot}(e)?Yl(e):null}function Ql(e){return"object"===Ei(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Ei(e.icon)||"function"==typeof e.icon)}function Zl(e){var t=arguments.length>0&&void 0!==e?e:{};return Object.keys(t).reduce((function(e,n){var r,o=t[n];return"class"===n?(e.className=o,delete e.class):(delete e[n],e[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o),e}),{})}function ec(e,t,n){return rJ.createElement(e.tag,n?Ea(Ea({key:t},Zl(e.attrs)),n):Ea({key:t},Zl(e.attrs)),(e.children||[]).map((function(n,r){return ec(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function tc(e){return kl(e)[0]}function nc(e){return e?Array.isArray(e)?e:[e]:[]}function rc(e){var t=Ua(nc(e),2);return VQ.setTwoToneColors({primaryColor:t[0],secondaryColor:t[1]})}function oc(e,t){return 0===e.indexOf(t)}function ic(e,t){var n,r,o=arguments.length>1&&void 0!==t&&t;return n=!1===o?{aria:!0,data:!0,attr:!0}:!0===o?{aria:!0}:Ea({},o),r={},Object.keys(e).forEach((function(t){(n.aria&&("role"===t||oc(t,W_))||n.data&&oc(t,G_)||n.attr&&U_.includes(t))&&(r[t]=e[t])})),r}function ac(e){return e&&rZ(e)&&e.type===yy.Fragment}function sc(e,t){return function(e,t,n){return rZ(e)?yy.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}function lc(e){var t=arguments.length>0&&void 0!==e?e:{},n=t.getContainer,r=void 0===n?Z_:n,o=t.motion,i=t.prefixCls,a=t.maxCount,s=t.className,l=t.style,c=t.onAllRemoved,u=t.renderNotifications,d=Oi(t,Q_),p=Ua(yy.useState(),2),f=p[0],h=p[1],g=yy.useRef(),m=yy.createElement(J_,{container:f,ref:g,prefixCls:i,motion:o,maxCount:a,className:s,style:l,onAllRemoved:c,renderNotifications:u}),b=Ua(yy.useState([]),2),y=b[0],v=b[1],w=yy.useMemo((function(){return{open:function(e){var t=function(){var e,t,n,r={};for(e=arguments.length,t=new Array(e),n=0;n{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function uc(e){const t=yy.useRef(null);return[yy.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:s,icon:l,type:c,key:u,className:d,style:p,onClose:f}=n,h=nN(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(xZ+=1,g=`antd-message-${xZ}`),cc((t=>(r(Object.assign(Object.assign({},h),{key:g,content:yy.createElement(mZ,{prefixCls:o,type:c,icon:l},s),placement:"top",className:zJ(c&&`${a}-${c}`,d,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),p),onClose:()=>{null==f||f(),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,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}})),r}),[]),yy.createElement(wZ,Object.assign({key:"message-holder"},e,{ref:t}))]}function dc(e){return uc(e)}function pc(){function e(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}function t(e,t,n,o){var i=Object.create((t&&t.prototype instanceof r?t:r).prototype),a=new p(o||[]);return y(i,"_invoke",{value:l(e,n,a)}),i}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function r(){}function o(){}function i(){}function a(t){["next","throw","return"].forEach((function(n){e(t,n,(function(e){return this._invoke(n,e)}))}))}function s(e,t){function r(o,i,a,s){var l,c,u=n(e[o],e,i);if("throw"!==u.type)return(c=(l=u.arg).value)&&"object"==Ei(c)&&b.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}));s(u.arg)}var o;y(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function l(e,t,r){var o=E;return function(i,a){var s,l,u;if(o===k)throw new Error("Generator is already running");if(o===O){if("throw"===i)throw a;return{value:h,done:!0}}for(r.method=i,r.arg=a;;){if((s=r.delegate)&&(l=c(s,r))){if(l===D)continue;return l}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===E)throw o=O,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);if(o=k,"normal"===(u=n(e,t,r)).type){if(o=r.done?O:C,u.arg===D)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=O,r.method="throw",r.arg=u.arg)}}}function c(e,t){var r,o,i=t.method,a=e.iterator[i];return a===h?(t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=h,c(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),D):"throw"===(r=n(a,e.iterator,t.arg)).type?(t.method="throw",t.arg=r.arg,t.delegate=null,D):(o=r.arg)?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=h),t.delegate=null,D):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,D)}function u(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 d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function p(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){var t,n,r;if(e||""===e){if(t=e[w])return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(r=function t(){for(;++n=0;--r){if(i=(o=this.tryEntries[r]).completion,"root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev)if(a=b.call(o,"catchLoc"),s=b.call(o,"finallyLoc"),a&&s){if(this.prev=0;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&b.call(r,"finallyLoc")&&this.prev=0;--t)if((n=this.tryEntries[t]).finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),D},catch:function(e){var t,n,r,o;for(t=this.tryEntries.length-1;t>=0;--t)if((n=this.tryEntries[t]).tryLoc===e)return"throw"===(r=n.completion).type&&(o=r.arg,d(n)),o;throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=h),D}},g}function fc(e,t,n,r,o,i,a){var s,l;try{l=(s=e[i](a)).value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function hc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){fc(s,r,o,i,a,"next",e)}function a(e){fc(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}function gc(e){var t=rN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Ei(t)&&(t.usingClientEntryPoint=e)}function mc(e,t){sN?function(e,t){gc(!0);var n=t[lN]||sN(t);gc(!1),n.render(e),t[lN]=n}(e,t):function(e,t){iN(e,t)}(e,t)}function bc(e){return yc.apply(this,arguments)}function yc(){return(yc=hc(pc().mark((function e(t){return pc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[lN])||void 0===e||e.unmount(),delete t[lN]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vc(e){aN(e)}function wc(e){return xc.apply(this,arguments)}function xc(){return(xc=hc(pc().mark((function e(t){return pc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===sN){e.next=2;break}return e.abrupt("return",bc(t));case 2:vc(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sc(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 Ec(e){return Number.isNaN(e)?0:e}function Cc(e){return"string"==typeof e}function kc(e){return"text"===e||"link"===e}function Oc(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function Dc(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 $c(e,t){let n=arguments.length>1&&void 0!==t?t:{focus:!0};const{componentCls:r}=e,o=`${r}-compact`;return{[o]:Object.assign(Object.assign({},Oc(e,o,n)),Dc(r,o,n))}}function _c(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Nc(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},_c(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}function jc(e){return"danger"===e?{danger:!0}:{type:e}}function Pc(e){return!(!e||!e.then)}function Tc(e){var t,n,r,o,i;return"undefined"==typeof document?0:((e||void 0===hN)&&((t=document.createElement("div")).style.width="100%",t.style.height="200px",(r=(n=document.createElement("div")).style).position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n),o=t.offsetWidth,n.style.overflow="scroll",o===(i=t.offsetWidth)&&(i=n.clientWidth),document.body.removeChild(n),hN=o-i),hN)}function Ic(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?Tc():n}function Ac(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.height;return{width:Ic(t.width),height:Ic(n)}}function Rc(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y=e.open,v=e.autoLock,w=e.getContainer;return n=void 0===(t=e.autoDestroy)||t,r=e.children,i=(o=Ua(yy.useState(y),2))[0],a=o[1],yy.useEffect((function(){(n||y)&&a(y)}),[y,n]),l=(s=Ua(yy.useState((function(){return yN(w)})),2))[0],c=s[1],yy.useEffect((function(){var e=yN(w);c(null!=e?e:null)})),u=function(e){function t(){r.parentElement||document.body.appendChild(r)}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r)}var r=Ua(yy.useState((function(){return Pa()?document.createElement("div"):null})),1)[0],o=yy.useContext(pN),i=Ua(yy.useState(fN),2),a=i[0],s=i[1],l=o||function(e){s((function(t){return[e].concat(xa(t))}))};return QO((function(){return e?o?o(t):t():n(),n}),[e]),QO((function(){a.length&&(a.forEach((function(e){return e()})),s(fN))}),[a]),[r,l]}(i&&!l),p=(d=Ua(u,2))[0],f=d[1],h=null!=l?l:p,g=v&&y&&Pa()&&(h===p||h===document.body),m=!!g,b=Ua(yy.useState((function(){return mN+=1,"".concat(gN,"_").concat(mN)})),1)[0],QO((function(){var e,t;return m?(e=Tc(),t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ba("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)):La(b),function(){La(b)}}),[m,b]),i&&Pa()&&void 0!==l?yy.createElement(pN.Provider,{value:f},!1===h||bN?r:PE.createPortal(r,h)):null}function Fc(e){var t=Ua(yy.useState("ssr-id"),2),n=t[0],r=t[1],o=Ea({},oJ).useId,i=null==o?void 0:o();return yy.useEffect((function(){if(!o){var e=wN;wN+=1,r("rc_unique_".concat(e))}}),[]),e||i||n}function Mc(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Lc(e,t){var n,r=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");return"number"!=typeof r&&"number"!=typeof(r=(n=e.document).documentElement[o])&&(r=n.body[o]),r}function Bc(e){var t=e.prefixCls,n=e.style,r=e.maskProps;return yy.createElement(RQ,{key:"mask",visible:e.visible,motionName:e.motionName,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var i=e.className;return yy.createElement("div",fa({ref:o,style:Ea(Ea({},e.style),n),className:zJ("".concat(t,"-mask"),i)},r))}))}function zc(e){function t(e){null==h||h(e)}var n=e.prefixCls,r=void 0===n?"rc-dialog":n,o=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,p=e.wrapClassName,f=e.wrapProps,h=e.onClose,g=e.afterOpenChange,m=e.afterClose,b=e.transitionName,y=e.animation,v=e.closable,w=void 0===v||v,x=e.mask,S=void 0===x||x,E=e.maskTransitionName,C=e.maskAnimation,k=e.maskClosable,O=void 0===k||k,D=e.maskStyle,$=e.maskProps,_=e.rootClassName,N=yy.useRef(),j=yy.useRef(),P=yy.useRef(),T=Ua(yy.useState(a),2),I=T[0],A=T[1],R=Fc(),F=yy.useRef(!1),M=yy.useRef(),L=null;return O&&(L=function(e){F.current?F.current=!1:j.current===e.target&&t(e)}),yy.useEffect((function(){a&&(A(!0),Ta(j.current,document.activeElement)||(N.current=document.activeElement))}),[a]),yy.useEffect((function(){return function(){clearTimeout(M.current)}}),[]),yy.createElement("div",fa({className:zJ("".concat(r,"-root"),_)},ic(e,{data:!0})),yy.createElement(Bc,{prefixCls:r,visible:S&&a,motionName:Mc(r,E,C),style:Ea({zIndex:o},D),maskProps:$}),yy.createElement("div",fa({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===V_.ESC)return e.stopPropagation(),void t(e);a&&e.keyCode===V_.TAB&&P.current.changeActive(!e.shiftKey)},className:zJ("".concat(r,"-wrap"),p),ref:j,onClick:L,style:Ea(Ea({zIndex:o},d),{},{display:I?null:"none"})},f),yy.createElement(EN,fa({},e,{onMouseDown:function(){clearTimeout(M.current),F.current=!0},onMouseUp:function(){M.current=setTimeout((function(){F.current=!1}))},ref:P,closable:w,ariaId:R,prefixCls:r,visible:a&&I,onClose:t,onVisibleChanged:function(e){if(e)Ta(j.current,document.activeElement)||null===(t=P.current)||void 0===t||t.focus();else{if(A(!1),S&&N.current&&u){try{N.current.focus({preventScroll:!0})}catch(fY){}N.current=null}I&&(null==m||m())}var t;null==g||g(e)},motionName:Mc(r,b,y)}))))}function Hc(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:rJ.createElement(QQ,null);const a=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==o&&o);if(!a)return[!1,null];const s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}function Uc(e){return null==e?[]:Array.isArray(e)?e:[e]}function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){var t,n,r;for(t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}})):e}function Jc(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 Qc(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s2&&void 0!==n&&n;return e&&e.some((function(e){return du(t,e,r)}))}function du(e,t,n){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==n&&n)&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function pu(e,t){var n=arguments.length<=1?void 0:t;return n&&n.target&&"object"===Ei(n.target)&&e in n.target?n.target[e]:n}function fu(e,t,n){var r,o,i=e.length;return t<0||t>=i||n<0||n>=i?e:(r=e[t],(o=t-n)>0?[].concat(xa(e.slice(0,n)),[r],xa(e.slice(n,t)),xa(e.slice(t+1,i))):o<0?[].concat(xa(e.slice(0,t)),xa(e.slice(t+1,n+1)),[r],xa(e.slice(n+1,i))):e)}function hu(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}function gu(e){var t=e.name,n=Oi(e,KN),r=yy.useContext(DN),o=yy.useContext($N),i=void 0!==t?lu(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),yy.createElement(JN,fa({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function mu(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=yy.useContext(DN),l=yy.useContext($N),c=yy.useRef({keys:[],id:0}).current,u=yy.useMemo((function(){var e=lu(s.prefixName)||[];return[].concat(xa(e),xa(lu(t)))}),[s.prefixName,t]),d=yy.useMemo((function(){return Ea(Ea({},s),{},{prefixName:u})}),[s,u]),p=yy.useMemo((function(){return{getKey:function(e){var t=u.length;return[c.keys[e[t]],e.slice(t+1)]}}}),[u]);return"function"!=typeof r?(_a(!1,"Form.List only accepts function as children."),null):yy.createElement($N.Provider,{value:p},yy.createElement(DN.Provider,{value:d},yy.createElement(gu,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,o=e.onChange,i=s.getFieldValue,a=function(){return i(u||[])||[]},l={add:function(e,t){var n=a();t>=0&&t<=n.length?(c.keys=[].concat(xa(c.keys.slice(0,t)),[c.id],xa(c.keys.slice(t))),o([].concat(xa(n.slice(0,t)),[e],xa(n.slice(t))))):(c.keys=[].concat(xa(c.keys),[c.id]),o([].concat(xa(n),[e]))),c.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(c.keys=fu(c.keys,e,t),o(fu(n,e,t)))}}},d=(void 0===n?[]:n)||[];return Array.isArray(d)||(d=[]),r(d.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}})),l,t)}))))}function bu(e){return e.map((function(e){return"".concat(Ei(e),":").concat(e)})).join(QN)}function yu(e){var t,n=yy.useRef(),r=Ua(yy.useState({}),2)[1];return n.current||(e?n.current=e:(t=new tj((function(){r({})})),n.current=t.getForm())),[n.current]}function vu(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function wu(){var e,t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y;for(e=arguments.length,t=new Array(e),n=0;n{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}function Eu(e,t){return rJ.createElement("span",{className:`${e}-close-x`},t||rJ.createElement(QQ,{className:`${e}-close-icon`}))}function Cu(e){return{position:e,inset:0}}function ku(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=lj(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=yy.createElement(nZ,null);break;case"success":d=yy.createElement(XQ,null);break;case"error":d=yy.createElement(YQ,null);break;default:d=yy.createElement(eZ,null)}const p=null!=s?s:"confirm"===a,f=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=QJ("Modal"),g=c||h,m=Object.assign({autoFocusButton:f,cancelTextLocale:o||(null==g?void 0:g.cancelText),okTextLocale:r||(p?null==g?void 0:g.okText:null==g?void 0:g.justOkText),mergedOkCancel:p},u),b=yy.useMemo((()=>m),xa(Object.values(m))),y=yy.createElement(yy.Fragment,null,yy.createElement(N0,null),yy.createElement(j0,null)),v=null!=e.title,w=`${i}-body`;return yy.createElement("div",{className:`${i}-body-wrapper`},yy.createElement("div",{className:zJ(w,{[`${w}-has-title`]:v})},d,yy.createElement("div",{className:`${i}-paragraph`},v&&yy.createElement("span",{className:`${i}-title`},e.title),yy.createElement("div",{className:`${i}-content`},e.content))),void 0===l||"function"==typeof l?yy.createElement(_0,{value:b},yy.createElement("div",{className:`${i}-btns`},"function"==typeof l?l(y,{OkBtn:j0,CancelBtn:N0}):y)):l,yy.createElement(M1,{prefixCls:t}))}function Ou(e){function t(){for(var t=arguments.length,n=new Array(t),i=0;ie&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat(xa(n.slice(1))));for(let e=0;e{const e=al(),{getPrefixCls:i,getIconPrefixCls:l,getTheme:c}=HQ(),u=i(void 0,z1),d=r||`${u}-modal`,p=l(),f=c();let h=a;!1===h&&(h=void 0),mc(yy.createElement(L1,Object.assign({},s,{getContainer:h,prefixCls:d,rootPrefixCls:u,iconPrefixCls:p,okText:t,locale:e,theme:f,cancelText:n||e.cancelText})),o)}))}function r(){for(var r=arguments.length,o=new Array(r),i=0;i{"function"==typeof e.afterClose&&e.afterClose(),t.apply(this,o)}}),a.visible&&delete a.visible,n(a)}const o=document.createDocumentFragment();let i,a=Object.assign(Object.assign({},e),{close:r,open:!0});return n(a),B1.push(r),{destroy:r,update:function(e){a="function"==typeof e?e(a):Object.assign(Object.assign({},a),e),n(a)}}}function Du(e){return Object.assign(Object.assign({},e),{type:"warning"})}function $u(e){return Object.assign(Object.assign({},e),{type:"info"})}function _u(e){return Object.assign(Object.assign({},e),{type:"success"})}function Nu(e){return Object.assign(Object.assign({},e),{type:"error"})}function ju(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Pu(){const e=yy.useRef(null),[t,n]=yy.useState([]);yy.useEffect((()=>{t.length&&(xa(t).forEach((e=>{e()})),n([]))}),[t]);const r=yy.useCallback((t=>function(r){var o;W1+=1;const i=yy.createRef();let a;const s=new Promise((e=>{a=e}));let l,c=!1;const u=yy.createElement(U1,{key:`modal-${W1}`,config:t(r),ref:i,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{a(e)}});return l=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),l&&B1.push(l),{destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(xa(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(xa(e),[t])))},then:e=>(c=!0,s.then(e))}}),[]);return[yy.useMemo((()=>({info:r($u),success:r(_u),error:r(Nu),warning:r(Du),confirm:r(ju)})),[]),yy.createElement(G1,{key:"modal-holder",ref:e})]}function Tu(e,t){return null===t||!1===t?null:t||yy.createElement("span",{className:`${e}-close-x`},yy.createElement(QQ,{className:`${e}-close-icon`}))}function Iu(e){const t=yy.useRef(null);return[yy.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,notification:a}=t.current,s=`${i}-notice`,{message:l,description:c,icon:u,type:d,btn:p,className:f,style:h,role:g="alert",closeIcon:m}=n,b=pj(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),y=Tu(s,m);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:J1},b),{content:yy.createElement(Y1,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:p,role:g}),className:zJ(d&&`${s}-${d}`,f,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),closeIcon:y,closable:!!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}),[]),yy.createElement(e2,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Au(e){return Iu(e)}function Ru(e){return function(t){return yy.createElement(WQ,{theme:{token:{motion:!1,zIndexPopupBase:0}}},yy.createElement(e,Object.assign({},t)))}}function Fu(e){var t=arguments.length>0&&void 0!==e?e:250,n=yy.useRef(null),r=yy.useRef(null);return yy.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),t)}]}function Mu(e,t){function n(e){f(h,e)}var r,o,i,a,s=e.prefixCls,l=e.invalidate,c=e.item,u=e.renderItem,d=e.responsive,p=e.responsiveDisabled,f=e.registerSize,h=e.itemKey,g=e.className,m=e.style,b=e.children,y=e.display,v=e.order,w=e.component,x=void 0===w?"div":w,S=Oi(e,gj),E=d&&!y;return yy.useEffect((function(){return function(){n(null)}}),[]),r=u&&c!==mj?u(c):b,l||(o={opacity:E?0:1,height:E?0:mj,overflowY:E?"hidden":mj,order:d?v:mj,pointerEvents:E?"none":mj,position:E?"absolute":mj}),i={},E&&(i["aria-hidden"]=!0),a=yy.createElement(x,fa({className:zJ(!l&&s,g),style:Ea(Ea({},o),m)},i,S,{ref:t}),r),d&&(a=yy.createElement(j$,{onResize:function(e){n(e.offsetWidth)},disabled:p},a)),a}function Lu(e,t){var n=Ua(yy.useState(t),2),r=n[1];return[n[0],Pl((function(t){e((function(){r(t)}))}))]}function Bu(e){return"+ ".concat(e.length," ...")}function zu(e,t){function n(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(le(eO,ge=yy.useMemo((function(){var e=b;return pe?e=null===M&&A?b:b.slice(0,Math.min(b.length,B/S)):"number"==typeof O&&(e=b.slice(0,O)),e}),[b,S,M,O,pe]),me=yy.useMemo((function(){return b.slice(pe?ie+1:ge.length)}),[b,ge,pe,ie]),be=yy.useCallback((function(e,t){var n;return"function"==typeof w?w(e):null!==(n=w&&(null==e?void 0:e[w]))&&void 0!==n?n:t}),[w]),ye=yy.useCallback(y||function(e){return e},[y]);return QO((function(){var e,t,r,i,a;if(B&&"number"==typeof ue&&ge){if(e=J,r=(t=ge.length)-1,!t)return void n(0,null);for(i=0;iB){n(i-1,e-a-J+X);break}}_&&o(0)+J>B&&te(null)}}),[B,H,X,J,be,ge]),a={},null!==ee&&pe&&(a={position:"absolute",left:ee,top:0}),s={prefixCls:ce,responsive:pe,component:P,invalidate:fe},l=v?function(e,t){var n=be(e,t);return yy.createElement(yj.Provider,{key:n,value:Ea(Ea({},s),{},{order:t,item:e,itemKey:n,registerSize:r,display:t<=ie})},v(e,t))}:function(e,t){var n=be(e,t);return yy.createElement(bj,fa({},s,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:r,display:t<=ie}))},u={order:(i=se&&!!me.length)?ie:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){K(t),V(X)},display:i},$?$&&(c=yy.createElement(yj.Provider,{value:Ea(Ea({},s),u)},$(me))):(d=D||Bu,c=yy.createElement(bj,fa({},s,u),"function"==typeof d?d(me):d)),p=yy.createElement(j,fa({className:zJ(!fe&&g,k),style:C,ref:t},I),ge.map(l),he?c:null,_&&yy.createElement(bj,fa({},s,{responsive:de,responsiveDisabled:!pe,order:ie,className:"".concat(ce,"-suffix"),registerSize:function(e,t){Q(t)},display:!0,style:a}),_)),de&&(p=yy.createElement(j$,{onResize:function(e,t){L(t.clientWidth)},disabled:!pe},p)),p}function Hu(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Uu(e){return["string","number"].includes(Ei(e))}function Wu(e){var t=void 0;return e&&(Uu(e.title)?t=e.title.toString():Uu(e.label)&&(t=e.label.toString())),t}function Gu(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}function Vu(e){return e?Array.isArray(e)?e:[e]:[]}function qu(e,t,n){var r=arguments.length>0&&void 0!==e?e:[],o=arguments.length>1&&void 0!==t?t:[];return(arguments.length>2?n:void 0)?r[0]===o[0]:r[0]===o[0]&&r[1]===o[1]}function Xu(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Ku(e){return e.ownerDocument.defaultView}function Yu(e){for(var t,n=[],r=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];r;)[(t=Ku(r).getComputedStyle(r)).overflowX,t.overflowY,t.overflow].some((function(e){return o.includes(e)}))&&n.push(r),r=r.parentElement;return n}function Ju(e,t){var n=arguments.length>1&&void 0!==t?t:1;return Number.isNaN(e)?n:e}function Qu(e){return Ju(parseFloat(e),0)}function Zu(e,t){var n=Ea({},e);return(t||[]).forEach((function(e){var t,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P;e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement||(r=(t=Ku(e).getComputedStyle(e)).overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=Qu(i),g=Qu(a),w=(p-f-(m=Qu(s))-(b=Qu(l)))*(y=Ju(Math.round(c.width/p*1e3)/1e3)),x=(u-d-h-g)*(v=Ju(Math.round(c.height/u*1e3)/1e3)),S=h*v,E=g*v,C=m*y,k=b*y,O=0,D=0,"clip"===r&&(O=($=Qu(o))*y,D=$*v),j=(_=c.x+C-O)+c.width+2*O-C-k-w,P=(N=c.y+S-D)+c.height+2*D-S-E-x,n.left=Math.max(n.left,_),n.top=Math.max(n.top,N),n.right=Math.min(n.right,j),n.bottom=Math.min(n.bottom,P))})),n}function ed(e,t){var n="".concat(arguments.length>1&&void 0!==t?t:0),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function td(e,t){var n=Ua(t||[],2),r=n[1];return[ed(e.width,n[0]),ed(e.height,r)]}function nd(e){var t=arguments.length>0&&void 0!==e?e:"";return[t[0],t[1]]}function rd(e,t){var n=t[0],r=t[1];return{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:"t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2}}function od(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("")}function id(e){var t,n,r,o,i,a,s=e.prefixCls,l=e.align,c=e.arrowPos,u=e.arrow||{},d=u.className,p=u.content,f=c.x,h=void 0===f?0:f,g=c.y,m=void 0===g?0:g,b=yy.useRef();return l&&l.points?(t={position:"absolute"},!1!==l.autoArrow&&(i=(n=l.points[0])[1],a=(r=l.points[1])[1],(o=n[0])!==r[0]&&["t","b"].includes(o)?"t"===o?t.top=0:t.bottom=0:t.top=m,i!==a&&["l","r"].includes(i)?"l"===i?t.left=0:t.right=0:t.left=h),yy.createElement("div",{ref:b,className:zJ("".concat(s,"-arrow"),d),style:t},p)):null}function ad(e){var t=e.prefixCls,n=e.zIndex;return e.mask?yy.createElement(RQ,fa({},e.motion,{motionAppear:!0,visible:e.open,removeOnLeave:!0}),(function(e){var r=e.className;return yy.createElement("div",{style:{zIndex:n},className:zJ("".concat(t,"-mask"),r)})})):null}function sd(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 ld(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 cd(e){var t=Ea({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return _a(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function ud(e){return"tags"===e||"multiple"===e}function dd(e,t){var n=arguments.length>1&&void 0!==t&&t;return Bs(e).map((function(e,t){if(!yy.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,a=i.children,s=Oi(i,rP);return n||!r?function(e){var t=e.key,n=e.props,r=n.value;return Ea({key:t,value:void 0!==r?r:t,children:n.children},Oi(n,nP))}(e):Ea(Ea({key:"__RC_SELECT_GRP__".concat(null===o?t:o,"__"),label:o},s),{},{options:dd(a)})})).filter((function(e){return e}))}function pd(e){var t,n=yy.useRef();return n.current=e,t=yy.useCallback((function(){return n.current.apply(n,arguments)}),[]),t}function fd(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}function hd(e){var t=e.children,n=e.setRef,r=yy.useCallback((function(e){n(e)}),[]);return yy.cloneElement(t,{ref:r})}function gd(e,t){var n=arguments.length>0&&void 0!==e?e:0,r=n/(arguments.length>1&&void 0!==t?t:0)*100;return isNaN(r)&&(r=0),r=Math.max(r,dP),r=Math.min(r,n/2),Math.floor(r)}function md(e,t){function n(e){ve((function(t){var n;return n=function(e){var t=e;return Number.isNaN(E.current)||(t=Math.min(t,E.current)),Math.max(t,0)}("function"==typeof e?e(t):e),ge.current.scrollTop=n,n}))}function r(e,t){var r=e;t?(PE.flushSync((function(){Se(r)})),_()):n(r)}var o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T,I,A,R,F,M,L,B,z,H=e.prefixCls,U=void 0===H?"rc-virtual-list":H,W=e.className,G=e.height,V=e.itemHeight,q=e.fullHeight,X=void 0===q||q,K=e.style,Y=e.data,J=e.children,Q=e.itemKey,Z=e.virtual,ee=e.direction,te=e.scrollWidth,ne=e.component,re=void 0===ne?"div":ne,oe=e.onScroll,ie=e.onVirtualScroll,ae=e.onVisibleChange,se=e.innerProps,le=e.extraRender,ce=Oi(e,pP),ue=!(!1===Z||!G||!V),de=ue&&Y&&(V*Y.length>G||!!te),pe="rtl"===ee,fe=zJ(U,ki({},"".concat(U,"-rtl"),pe),W),he=Y||fP,ge=yy.useRef(),me=yy.useRef(),be=Ua(yy.useState(0),2),ye=be[0],ve=be[1],we=Ua(yy.useState(0),2),xe=we[0],Se=we[1],Ee=Ua(yy.useState(!1),2),Ce=Ee[0],ke=Ee[1],Oe=function(){ke(!0)},De=function(){ke(!1)},$e=yy.useCallback((function(e){return"function"==typeof Q?Q(e):null==e?void 0:e[Q]}),[Q]),_e={getKey:$e},Ne=yy.useRef({start:0,end:he.length}),je=yy.useRef(),Pe=function(e,t){var n=Ua(yy.useState(e),2),r=n[0],o=n[1],i=Ua(yy.useState(null),2),a=i[0],s=i[1];return yy.useEffect((function(){var n=function(e,t,n){function r(e){return void 0!==e?n(e):a}var o,i,a,s,l,c,u,d=e.length,p=t.length;if(0===d&&0===p)return null;for(d=ye&&void 0===n&&(n=a,r=t),u>ye+G&&void 0===o&&(o=a),t=u;return void 0===n&&(n=0,r=0,o=Math.ceil(G/V)),void 0===o&&(o=he.length-1),{scrollHeight:t,start:n,end:o=Math.min(o+1,he.length-1),offset:r}}),[de,ue,ye,he,i[3],G]),u=c.scrollHeight,p=c.end,f=c.offset,Ne.current.start=d=c.start,Ne.current.end=p,h=Ua(yy.useState({width:0,height:G}),2),g=h[0],m=h[1],b=function(e){m(e)},y=yy.useRef(),v=yy.useRef(),w=yy.useMemo((function(){return gd(g.width,te)}),[g.width,te]),x=yy.useMemo((function(){return gd(g.height,u)}),[g.height,u]),(E=yy.useRef(S=u-G)).current=S,O=c2(C=ye<=0,k=ye>=S),$=yy.useRef((D=function(){return{x:pe?-xe:xe,y:ye}})()),_=Pl((function(){if(ie){var e=D();$.current.x===e.x&&$.current.y===e.y||(ie(e),$.current=e)}})),N=function(e){var t=e,n=te-g.width;return t=Math.max(t,0),Math.min(t,n)},j=Pl((function(e,t){t?(PE.flushSync((function(){Se((function(t){return N(t+(pe?-e:e))}))})),_()):n((function(t){return t+e}))})),P=Ua(function(e,t,n,r,o){var i=yy.useRef(0),a=yy.useRef(null),s=yy.useRef(null),l=yy.useRef(!1),c=c2(t,n),u=yy.useRef(null),d=yy.useRef(null);return[function(t){var n,p,f,h,g,m;e&&(R$.cancel(d.current),d.current=R$((function(){u.current=null}),2),f=n=t.deltaX,h=p=t.deltaY,("sx"===u.current||!u.current&&t.shiftKey&&p&&!n)&&(f=p,h=0,u.current="sx"),g=Math.abs(f),m=Math.abs(h),null===u.current&&(u.current=r&&g>m?"x":"y"),"y"===u.current?function(e,t){R$.cancel(a.current),i.current+=t,s.current=t,c(t)||(cP||e.preventDefault(),a.current=R$((function(){o(i.current*(l.current?10:1)),i.current=0})))}(t,h):function(e,t){o(t,!0),cP||e.preventDefault()}(t,f))},function(t){e&&(l.current=t.detail===s.current)}]}(ue,C,k,!!te,j),2),T=P[0],I=P[1],function(e,t,n){var r=yy.useRef(!1),o=yy.useRef(0),i=yy.useRef(null),a=yy.useRef(null),s=function(e){var t,i;r.current&&(t=Math.ceil(e.touches[0].pageY),i=o.current-t,o.current=t,n(i)&&e.preventDefault(),clearInterval(a.current),a.current=setInterval((function(){(!n(i*=uP,!0)||Math.abs(i)<=.1)&&clearInterval(a.current)}),16))},l=function(){r.current=!1,u()},c=function(e){u(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",l))},u=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",l))};QO((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),u(),clearInterval(a.current)}}),[e])}(ue,ge,(function(e,t){return!O(e,t)&&(T({preventDefault:function(){},deltaY:e}),!0)})),QO((function(){function e(e){ue&&e.preventDefault()}var t=ge.current;return t.addEventListener("wheel",T),t.addEventListener("DOMMouseScroll",I),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",T),t.removeEventListener("DOMMouseScroll",I),t.removeEventListener("MozMousePixelScroll",e)}}),[ue]),R=function(e,t,n,r,o,i,a,s){var l=yy.useRef();return function(c){var u,d,p,f;null!=c?(R$.cancel(l.current),"number"==typeof c?a(c):c&&"object"===Ei(c)&&(d=c.align,u="index"in c?c.index:t.findIndex((function(e){return o(e)===c.key})),f=void 0===(p=c.offset)?0:p,function s(c,p){var h,g,m,b,y,v,w,x,S,E,C,k,O;if(!(c<0)&&e.current){if(g=!1,m=p,h=e.current.clientHeight){for(b=p||d,y=0,v=0,w=0,x=Math.min(t.length,u),S=0;S<=x;S+=1)E=o(t[S]),y=w=(v=y)+(void 0===(C=n.get(E))?r:C),S===u&&void 0===C&&(g=!0);switch(k=null,b){case"top":k=v-f;break;case"bottom":k=w-h+f;break;default:v<(O=e.current.scrollTop)?m="top":w>O+h&&(m="bottom")}null!==k&&k!==e.current.scrollTop&&a(k)}l.current=R$((function(){g&&i(),s(c-1,m)}),2)}}(3))):s()}}(ge,he,l,V,$e,s,n,A=function(){var e,t;null===(e=y.current)||void 0===e||e.delayHidden(),null===(t=v.current)||void 0===t||t.delayHidden()}),yy.useImperativeHandle(t,(function(){return{getScrollInfo:D,scrollTo:function(e){var t;(t=e)&&"object"===Ei(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Se(N(e.left)),R(e.top)):R(e)}}})),QO((function(){if(ae){var e=he.slice(d,p+1);ae(e,he)}}),[d,p,he]),F=function(e,t,n,r){var o=Ua(yy.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),i=o[0],a=o[1];return function(o,s){var l,c,u,d,p,f=arguments.length>1&&void 0!==s?s:o,h=i.get(o),g=i.get(f);if(void 0===h||void 0===g)for(l=e.length,c=a.length;cG&&yy.createElement(sP,{ref:y,prefixCls:U,scrollOffset:ye,scrollRange:u,rtl:pe,onScroll:r,onStartMove:Oe,onStopMove:De,spinSize:x,containerSize:g.height}),de&&te&&yy.createElement(sP,{ref:v,prefixCls:U,scrollOffset:xe,scrollRange:te,rtl:pe,onScroll:r,onStartMove:Oe,onStopMove:De,spinSize:w,containerSize:g.width,horizontal:!0}))}function bd(e){return"string"==typeof e||"number"==typeof e}function yd(e,t,n){return zJ({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}function vd(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,[a]=S2(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:i-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function wd(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},vQ(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function xd(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[wd(e),wd(Rl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},wd(Rl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function Sd(){const[,e]=jl(),t=H2(U2(e));return rJ.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=this.matchHandlers[t[e]];null==n||n.mql.removeListener(null==n?void 0:n.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 Ed(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return yy.createElement("div",{className:zJ("".concat(n,"-content"),i),style:a},yy.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}function Cd(e){const t=G2,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function kd(e,t){return e?t:{}}function Od(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:f}=Cd({contentRadius:l,limitVerticalRadius:c});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},bQ(r,o,i,s,a)),{"&:before":{background:s}})]},kd(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),kd(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),kd(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p}})),kd(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p}}))}}function Dd(e,t){return arguments.length>1&&void 0!==t&&!t?eQ.includes(e):[].concat(xa(J2),xa(eQ)).includes(e)}function $d(e,t){const n=Dd(t),r=zJ({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}function _d(e,t){var n,r,o,i,a,s,l,c,u,d=e.arrow,p=void 0!==d&&d,f=e.prefixCls,h=void 0===f?"rc-dropdown":f,g=e.transitionName,m=e.animation,b=e.align,y=e.placement,v=void 0===y?"bottomLeft":y,w=e.placements,x=void 0===w?MP:w,S=e.getPopupContainer,E=e.showAction,C=e.hideAction,k=e.overlayClassName,O=e.overlayStyle,D=e.visible,$=e.trigger,_=void 0===$?["hover"]:$,N=e.autoFocus,j=e.overlay,P=e.children,T=e.onVisibleChange,I=Oi(e,LP),A=Ua(rJ.useState(),2),R=A[1],F="visible"in e?D:A[0],M=rJ.useRef(null),L=rJ.useRef(null),B=rJ.useRef(null);return rJ.useImperativeHandle(t,(function(){return M.current})),function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=yy.useRef(!1),s=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))},l=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 TP:s();break;case IP:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};yy.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&R$(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:F,triggerRef:B,onVisibleChange:r=function(e){R(e),null==T||T(e)},autoFocus:N,overlayRef:L}),o=function(t){var n=e.onOverlayClick;R(!1),n&&n(t)},i=function(){return rJ.createElement(AP,{ref:L,overlay:j,prefixCls:h,arrow:p})},a=function(){return"function"==typeof j?i:i()},s=function(){return"minOverlayWidthMatchTrigger"in e?e.minOverlayWidthMatchTrigger:!e.alignPoint},l=rJ.cloneElement(P,{className:zJ(null===(n=P.props)||void 0===n?void 0:n.className,F&&(u=e.openClassName,void 0!==u?u:"".concat(h,"-open"))),ref:Ws(P)?Hs(B,P.ref):void 0}),(c=C)||-1===_.indexOf("contextMenu")||(c=["click"]),rJ.createElement(l2,fa({builtinPlacements:x},I,{prefixCls:h,ref:M,popupClassName:zJ(k,ki({},"".concat(h,"-show-arrow"),p)),popupStyle:O,action:_,showAction:E,hideAction:c,popupPlacement:v,popupAlign:b,popupTransitionName:g,popupAnimation:m,popupVisible:F,stretch:s()?"minWidth":"",popup:a(),onPopupVisibleChange:r,onPopupClick:o,getPopupContainer:S}),l)}function Nd(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function jd(e){return Nd(yy.useContext(BP),e)}function Pd(e){var t=e.children,n=e.locked,r=Oi(e,zP),o=yy.useContext(HP),i=ka((function(){return e=r,t=Ea({},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]&&Na(e[1],t[1],!0))}));return yy.createElement(HP.Provider,{value:i},t)}function Td(){return yy.useContext(WP)}function Id(e){var t=yy.useContext(GP);return yy.useMemo((function(){return void 0!==e?[].concat(xa(t),[e]):t}),[t,e])}function Ad(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t;return!!$Z(e)&&(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,o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||s&&a<0))}function Rd(e,t){var n=function(e,t){var n=arguments.length>1&&void 0!==t&&t,r=xa(e.querySelectorAll("*")).filter((function(e){return Ad(e,n)}));return Ad(e,n)&&r.unshift(e),r}(e,!0);return n.filter((function(e){return t.has(e)}))}function Fd(e,t,n,r){var o,i,a,s=arguments.length>3&&void 0!==r?r:1;return e?(i=(o=Rd(e,t)).length,a=o.findIndex((function(e){return n===e})),s<0?-1===a?a=i-1:a-=1:s>0&&(a+=1),o[a=(a+i)%i]):null}function Md(e){var t,n=yy.useRef(e);return n.current=e,t=yy.useCallback((function(){var e,t,r,o;for(t=arguments.length,r=new Array(t),o=0;o1&&(i.motionAppear=!1),a=i.onVisibleChanged,i.onVisibleChanged=function(e){return y.current||e||r(!0),null==a?void 0:a(e)},n?null:yy.createElement(Pd,{mode:d,locked:!y.current},yy.createElement(RQ,fa({visible:o},i,{forceRender:h,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){return yy.createElement(bT,{id:s,className:e.className,style:e.style},u)})))}function Xd(e){var t=e.eventKey,n=e.children,r=Id(t),o=Wd(n,r),i=Td();return yy.useEffect((function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}}),[r]),yy.createElement(GP.Provider,{value:r},i?o:yy.createElement(CT,e,o))}function Kd(e){var t=e.children,n=Oi(e,OT),r=Wd(t,Id(n.eventKey));return Td()?r:yy.createElement(DT,Qs(n,["warnKey"]),r)}function Yd(e){var t=e.className,n=e.style,r=yy.useContext(HP).prefixCls;return Td()?null:yy.createElement("li",{role:"separator",className:zJ("".concat(r,"-item-divider"),t),style:n})}function Jd(e){return(e||[]).map((function(e,t){var n,r,o,i,a,s,l;return e&&"object"===Ei(e)?(r=(n=e).label,o=n.children,i=n.key,a=n.type,s=Oi(n,$T),l=null!=i?i:"tmp-".concat(t),o||"group"===a?yy.createElement("group"===a?Kd:Xd,fa({key:l},s,{title:r}),Jd(o)):"divider"===a?yy.createElement(Yd,fa({key:l},s)):yy.createElement(o5,fa({key:l},s),r)):null})).filter((function(e){return e}))}function Qd(e,t,n){var r=e;return t&&(r=Jd(t)),Wd(r,n)}function Zd(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,s=TT(n,["label","children","key","type"]),l=null!=i?i:`tmp-${t}`;return o||"group"===a?yy.createElement("group"===a?Kd:c5,Object.assign({key:l},s,{title:r}),Zd(o)):"divider"===a?yy.createElement(a5,Object.assign({key:l},s)):yy.createElement(l5,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function ep(e){return yy.useMemo((()=>e?Zd(e):e),[e])}function tp(e){return Rl(e,{inputAffixPadding:e.paddingXXS})}function np(e){return e&&"object"==typeof e?e:{}}function rp(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=yy.useContext(d4),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return yy.createElement("div",{className:zJ("".concat(s,"-content-holder"))},yy.createElement("div",{className:zJ("".concat(s,"-content"),"".concat(s,"-content-").concat(o),ki({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,a=e.forceRender,s=e.style,l=e.className,d=Oi(e,RT),p=o===n;return yy.createElement(RQ,fa({key:o,visible:p,forceRender:a,removeOnLeave:!!i,leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return yy.createElement(AT,fa({},d,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Ea(Ea({},s),r),className:zJ(l,i),ref:n}))}))}))))}function op(e,t){var n=yy.useRef(e),r=Ua(yy.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({})}]}function ip(e){var t=Ua(yy.useState(0),2),n=t[0],r=t[1],o=yy.useRef(0),i=yy.useRef();return i.current=e,ZO((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}function ap(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function sp(e){return String(e).replace(/"/g,UT)}function lp(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function cp(e,t){var n=e.editable,r=e.locale,o=e.style;return n&&!1!==n.showAdd?yy.createElement("button",{ref:t,type:"button",className:"".concat(e.prefixCls,"-nav-add"),style:o,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},n.addIcon||"+"):null}function up(e,t){function n(e){var t,n,r=l.filter((function(e){return!e.disabled})),o=r.findIndex((function(e){return e.key===D}))||0,i=r.length;for(t=0;tFe?Fe:e}function r(){c(Date.now())}function o(){window.clearTimeout(a.current)}var i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T,I,A=yy.useContext(d4),R=A.prefixCls,F=A.tabs,M=e.className,L=e.style,B=e.id,z=e.animated,H=e.activeKey,U=e.rtl,W=e.extra,G=e.editable,V=e.locale,q=e.tabPosition,X=e.tabBarGutter,K=e.children,Y=e.onTabClick,J=e.onTabScroll,Q=e.indicatorSize,Z=yy.useRef(),ee=yy.useRef(),te=yy.useRef(),ne=yy.useRef(),re=yy.useRef(),oe=yy.useRef(),ie=yy.useRef(),ae="top"===q||"bottom"===q,se=Ua(op(0,(function(e,t){ae&&J&&J({direction:e>t?"left":"right"})})),2),le=se[0],ce=se[1],ue=Ua(op(0,(function(e,t){!ae&&J&&J({direction:e>t?"top":"bottom"})})),2),de=ue[0],pe=ue[1],fe=Ua(yy.useState([0,0]),2),he=fe[0],ge=fe[1],me=Ua(yy.useState([0,0]),2),be=me[0],ye=me[1],ve=Ua(yy.useState([0,0]),2),we=ve[0],xe=ve[1],Se=Ua(yy.useState([0,0]),2),Ee=Se[0],Ce=Se[1],ke=(N=new Map,j=yy.useRef([]),P=Ua(yy.useState({}),2)[1],T=yy.useRef("function"==typeof N?N():N),I=ip((function(){var e=T.current;j.current.forEach((function(t){e=t(e)})),j.current=[],T.current=e,P({})})),[T.current,function(e){j.current.push(e),I()}]),Oe=Ua(ke,2),De=Oe[1],$e=function(e,t,n){return yy.useMemo((function(){var n,r,o,i,a,s,l=new Map,c=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||FT,u=c.left+c.width;for(r=0;ra?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},yy.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)}}),[])}(ne,(function(e,t){function i(e,t){e((function(e){return n(e+t)}))}return!!Te&&(ae?i(ce,e):i(pe,t),o(),r(),!0)})),yy.useEffect((function(){return o(),l&&(a.current=window.setTimeout((function(){c(0)}),100)),o}),[l]),u=function(e,t,n,r,o,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(s="width",l=p?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),yy.useMemo((function(){var n,r,o,i,a,d;if(!u.length)return[0,0];for(r=n=u.length,o=0;oc+t){r=o-1;break}for(a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||HT)[l]=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),p])}($e,Ie,ae?le:de,Ne,je,Pe,Ea(Ea({},e),{},{tabs:F})),p=(d=Ua(u,2))[0],f=d[1],h=Pl((function(e){var t,r,o=$e.get(arguments.length>0&&void 0!==e?e:H)||{width:0,height:0,left:0,right:0,top:0};ae?(t=le,U?o.rightle+Ie&&(t=o.right+o.width-Ie):o.left<-le?t=-o.left:o.left+o.width>-le+Ie&&(t=-(o.left+o.width-Ie)),pe(0),ce(n(t))):(r=de,o.top<-de?r=-o.top:o.top+o.height>-de+Ie&&(r=-(o.top+o.height-Ie)),ce(0),pe(n(r)))})),g={},"top"===q||"bottom"===q?g[U?"marginRight":"marginLeft"]=X:g.marginTop=X,m=F.map((function(e,t){var n=e.key;return yy.createElement(dp,{id:B,prefixCls:R,key:n,tab:e,style:0===t?void 0:g,closable:e.closable,editable:G,active:n===H,renderWrapper:K,removeAriaLabel:null==V?void 0:V.removeAriaLabel,onClick:function(e){Y(n,e)},onFocus:function(){h(n),r(),ne.current&&(U||(ne.current.scrollLeft=0),ne.current.scrollTop=0)}})})),b=function(){return De((function(){var e=new Map;return F.forEach((function(t){var n,r=t.key,o=null===(n=re.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(sp(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},yy.useEffect((function(){b()}),[F.map((function(e){return e.key})).join("_")]),y=ip((function(){var e,t,n,r=VT(Z),o=VT(ee),i=VT(te);ge([r[0]-o[0]-i[0],r[1]-o[1]-i[1]]),e=VT(ie),xe(e),t=VT(oe),Ce(t),n=VT(re),ye([n[0]-e[0],n[1]-e[1]]),b()})),v=F.slice(0,p),w=F.slice(f+1),x=[].concat(xa(v),xa(w)),S=$e.get(H),E=GT({activeTabOffset:S,horizontal:ae,rtl:U,indicatorSize:Q}).style,yy.useEffect((function(){h()}),[H,Re,Fe,ap(S),ap($e),ae]),yy.useEffect((function(){y()}),[U]),C=!!x.length,k="".concat(R,"-nav-wrap"),ae?U?(D=le>0,O=le!==Fe):(O=le<0,D=le!==Re):($=de<0,_=de!==Re),yy.createElement(j$,{onResize:y},yy.createElement("div",{ref:Us(t,Z),role:"tablist",className:zJ("".concat(R,"-nav"),M),style:L,onKeyDown:function(){r()}},yy.createElement(WT,{ref:ee,position:"left",extra:W,prefixCls:R}),yy.createElement(j$,{onResize:y},yy.createElement("div",{className:zJ(k,(i={},ki(i,"".concat(k,"-ping-left"),O),ki(i,"".concat(k,"-ping-right"),D),ki(i,"".concat(k,"-ping-top"),$),ki(i,"".concat(k,"-ping-bottom"),_),i)),ref:ne},yy.createElement(j$,{onResize:y},yy.createElement("div",{ref:re,className:"".concat(R,"-nav-list"),style:{transform:"translate(".concat(le,"px, ").concat(de,"px)"),transition:l?"none":void 0}},m,yy.createElement(p4,{ref:ie,prefixCls:R,locale:V,editable:G,style:Ea(Ea({},0===m.length?void 0:g),{},{visibility:C?"hidden":null})}),yy.createElement("div",{className:zJ("".concat(R,"-ink-bar"),ki({},"".concat(R,"-ink-bar-animated"),z.inkBar)),style:E}))))),yy.createElement(f4,fa({},e,{removeAriaLabel:null==V?void 0:V.removeAriaLabel,ref:oe,prefixCls:R,tabs:x,className:!C&&Ae,tabMoving:!!l})),yy.createElement(WT,{ref:te,position:"right",extra:W,prefixCls:R})))}function fp(e){var t=e.renderTabBar,n=Oi(e,XT),r=yy.useContext(d4).tabs;return t?t(Ea(Ea({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Oi(e,KT);return yy.createElement(AT,fa({tab:t,key:n,tabKey:n},r))}))}),h4):yy.createElement(h4,n)}function hp(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h=e.id,g=e.prefixCls,m=void 0===g?"rc-tabs":g,b=e.className,y=e.items,v=e.direction,w=e.activeKey,x=e.defaultActiveKey,S=e.editable,E=e.animated,C=e.tabPosition,k=void 0===C?"top":C,O=e.tabBarGutter,D=e.tabBarStyle,$=e.tabBarExtraContent,_=e.locale,N=e.moreIcon,j=e.moreTransitionName,P=e.destroyInactiveTabPane,T=e.renderTabBar,I=e.onChange,A=e.onTabClick,R=e.onTabScroll,F=e.getPopupContainer,M=e.popupClassName,L=e.indicatorSize,B=Oi(e,YT),z=yy.useMemo((function(){return(y||[]).filter((function(e){return e&&"object"===Ei(e)&&"key"in e}))}),[y]),H="rtl"===v,U=function(e){var t,n=arguments.length>0&&void 0!==e?e:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!1}:Ea({inkBar:!0},"object"===Ei(n)?n:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(E),W=Ua(yy.useState(!1),2),G=W[0],V=W[1];return yy.useEffect((function(){V(s2())}),[]),r=Ua(Al((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:w,defaultValue:x}),2),o=r[0],i=r[1],a=Ua(yy.useState((function(){return z.findIndex((function(e){return e.key===o}))})),2),s=a[0],l=a[1],yy.useEffect((function(){var e,t=z.findIndex((function(e){return e.key===o}));-1===t&&(t=Math.max(0,Math.min(s,z.length-1)),i(null===(e=z[t])||void 0===e?void 0:e.key)),l(t)}),[z.map((function(e){return e.key})).join("_"),o,s]),u=(c=Ua(Al(null,{value:h}),2))[0],d=c[1],yy.useEffect((function(){h||(d("rc-tabs-".concat(JT)),JT+=1)}),[]),f=Ea(Ea({},p={id:u,activeKey:o,animated:U,tabPosition:k,rtl:H,mobile:G}),{},{editable:S,locale:_,moreIcon:N,moreTransitionName:j,tabBarGutter:O,onTabClick:function(e,t){null==A||A(e,t);var n=e!==o;i(e),n&&(null==I||I(e))},onTabScroll:R,extra:$,style:D,panes:null,getPopupContainer:F,popupClassName:M,indicatorSize:L}),yy.createElement(d4.Provider,{value:{tabs:z,prefixCls:m}},yy.createElement("div",fa({ref:t,id:h,className:zJ(m,"".concat(m,"-").concat(k),(n={},ki(n,"".concat(m,"-mobile"),G),ki(n,"".concat(m,"-editable"),S),ki(n,"".concat(m,"-rtl"),H),n),b)},B),yy.createElement(fp,fa({},f,{renderTabBar:T})),yy.createElement(rp,fa({destroyInactiveTabPane:P},p,{animated:U}))))}function gp(e,t){const[n,r]=yy.useState("string"==typeof e?e:"");return yy.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;nNumber.MAX_SAFE_INTEGER)return String(bp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e3&&void 0!==r&&r;return""===e?"":(i=(o=vp(e)).negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a),n>=0?(u=Number(s[n]))>=5&&!d?kp(Cp(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,d):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n)):".0"===l?c:"".concat(c).concat(l))}function Op(e){return!(!e.addonBefore&&!e.addonAfter)}function Dp(e){return!!(e.prefix||e.suffix||e.allowClear)}function $p(e,t,n,r){var o,i;if(n)return o=t,"click"===t.type?(i=e.cloneNode(!0),o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)):void 0!==r?(o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o)):void n(o)}function _p(e,t){var n,r;if(e&&(e.focus(t),n=(t||{}).cursor))switch(r=e.value.length,n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}function Np(e){return null==e?"":String(e)}function jp(e){var t,n,r,o,i,a,s,l=e.prefixCls,c=e.upNode,u=e.downNode,d=e.upDisabled,p=e.downDisabled,f=e.onStep,h=yy.useRef(),g=yy.useRef([]),m=yy.useRef();return m.current=f,t=function(){clearTimeout(h.current)},n=function(e,n){e.preventDefault(),t(),m.current(n),h.current=setTimeout((function e(){m.current(n),h.current=setTimeout(e,mI)}),bI)},yy.useEffect((function(){return function(){t(),g.current.forEach((function(e){return R$.cancel(e)}))}}),[]),gI()?null:(r="".concat(l,"-handler"),o=zJ(r,"".concat(r,"-up"),ki({},"".concat(r,"-up-disabled"),d)),i=zJ(r,"".concat(r,"-down"),ki({},"".concat(r,"-down-disabled"),p)),s={unselectable:"on",role:"button",onMouseUp:a=function(){return g.current.push(R$(t))},onMouseLeave:a},yy.createElement("div",{className:"".concat(r,"-wrap")},yy.createElement("span",fa({},s,{onMouseDown:function(e){n(e,!0)},"aria-label":"Increase Value","aria-disabled":d,className:o}),c||yy.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-up-inner")})),yy.createElement("span",fa({},s,{onMouseDown:function(e){n(e,!1)},"aria-label":"Decrease Value","aria-disabled":p,className:i}),u||yy.createElement("span",{unselectable:"on",className:"".concat(l,"-handler-down-inner")}))))}function Pp(e){var t="number"==typeof e?Sp(e):vp(e).fullStr;return t.includes(".")?vp(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}function Tp(e,t){const n=yy.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 yy.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}function Ip(e,t){return xa(e||"").slice(0,t).join("")}function Ap(e,t,n,r){var o=n;return e?o=Ip(n,r):xa(t||"").lengthr&&(o=t),o}function Rp(e){return"string"==typeof e&&String(Number(e))===e?(_a(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function Fp(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v=e.prefixCls,w=e.open,x=e.placement,S=e.inline,E=e.push,C=e.forceRender,k=e.autoFocus,O=e.keyboard,D=e.rootClassName,$=e.rootStyle,_=e.zIndex,N=e.className,j=e.id,P=e.style,T=e.motion,I=e.width,A=e.height,R=e.children,F=e.contentWrapperStyle,M=e.mask,L=e.maskClosable,B=e.maskMotion,z=e.maskClassName,H=e.maskStyle,U=e.afterOpenChange,W=e.onClose,G=e.onMouseEnter,V=e.onMouseOver,q=e.onMouseLeave,X=e.onClick,K=e.onKeyDown,Y=e.onKeyUp,J=yy.useRef(),Q=yy.useRef(),Z=yy.useRef();if(yy.useImperativeHandle(t,(function(){return J.current})),a=function(e){var t,n,r=e.keyCode,o=e.shiftKey;switch(r){case V_.TAB:r===V_.TAB&&(o||document.activeElement!==Z.current?o&&document.activeElement===Q.current&&(null===(n=Z.current)||void 0===n||n.focus({preventScroll:!0})):null===(t=Q.current)||void 0===t||t.focus({preventScroll:!0}));break;case V_.ESC:W&&O&&(e.stopPropagation(),W(e))}},yy.useEffect((function(){var e;w&&k&&(null===(e=J.current)||void 0===e||e.focus({preventScroll:!0}))}),[w]),l=(s=Ua(yy.useState(!1),2))[0],c=s[1],u=yy.useContext(HI),d=null!==(n=null!==(r=null===(o=!1===E?{distance:0}:!0===E?{}:E||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==u?void 0:u.pushDistance)&&void 0!==n?n:180,p=yy.useMemo((function(){return{pushDistance:d,push:function(){c(!0)},pull:function(){c(!1)}}}),[d]),yy.useEffect((function(){var e,t;w?null==u||null===(e=u.push)||void 0===e||e.call(u):null==u||null===(t=u.pull)||void 0===t||t.call(u)}),[w]),yy.useEffect((function(){return function(){var e;null==u||null===(e=u.pull)||void 0===e||e.call(u)}}),[]),f=M&&yy.createElement(RQ,fa({key:"mask"},B,{visible:w}),(function(e,t){var n=e.className,r=e.style;return yy.createElement("div",{className:zJ("".concat(v,"-mask"),n,z),style:Ea(Ea({},r),H),onClick:L&&w?W:void 0,ref:t})})),h="function"==typeof T?T(x):T,g={},l&&d)switch(x){case"top":g.transform="translateY(".concat(d,"px)");break;case"bottom":g.transform="translateY(".concat(-d,"px)");break;case"left":g.transform="translateX(".concat(d,"px)");break;default:g.transform="translateX(".concat(-d,"px)")}return"left"===x||"right"===x?g.width=Rp(I):g.height=Rp(A),m={onMouseEnter:G,onMouseOver:V,onMouseLeave:q,onClick:X,onKeyDown:K,onKeyUp:Y},b=yy.createElement(RQ,fa({key:"panel"},h,{visible:w,forceRender:C,onVisibleChanged:function(e){null==U||U(e)},removeOnLeave:!1,leavedClassName:"".concat(v,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return yy.createElement("div",fa({className:zJ("".concat(v,"-content-wrapper"),r),style:Ea(Ea(Ea({},g),o),F)},ic(e,{data:!0})),yy.createElement(WI,fa({id:j,containerRef:n,prefixCls:v,className:N,style:P},m),R))})),y=Ea({},$),_&&(y.zIndex=_),yy.createElement(HI.Provider,{value:p},yy.createElement("div",{className:zJ(v,"".concat(v,"-").concat(x),D,(i={},ki(i,"".concat(v,"-open"),w),ki(i,"".concat(v,"-inline"),S),i)),style:y,tabIndex:-1,ref:J,onKeyDown:a},f,yy.createElement("div",{tabIndex:0,ref:Q,style:GI,"aria-hidden":"true","data-sentinel":"start"}),b,yy.createElement("div",{tabIndex:0,ref:Z,style:GI,"aria-hidden":"true","data-sentinel":"end"})))}function Mp(e){return["small","middle","large"].includes(e)}function Lp(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}function Bp(e){const[t,n]=yy.useState(e);return yy.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}function zp(e,t,n,r){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==r?r:0}`,error:e,errorStatus:n}}function Hp(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Up(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:W3.includes(n)?`${G3}_${n}`:n}function Wp(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 Gp(e){return Hp(e).join("_")}function Vp(e){const[t]=yu(),n=yy.useRef({}),r=yy.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=Gp(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e,t){let n=arguments.length>1&&void 0!==t?t:{};const o=Up(Hp(e),r.__INTERNAL__.name),i=o?document.getElementById(o):null;i&&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;if("object"==typeof(n=t)&&"function"==typeof n.behavior)return t.behavior(cZ(e,t));var n;const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of cZ(e,uZ(t)))o.scroll({top:i,left:a,behavior:r})}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},n))},getFieldInstance:e=>{const t=Gp(e);return n.current[t]}})),[e,t]);return[r]}function qp(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=yy.useContext(T0),d=Wp(n,r,s,null,!!o,i),{isFormItemInput:p,status:f}=yy.useContext(F0),h=yy.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]),s=d&&n6[d];t=!1!==a&&s?yy.createElement("span",{className:zJ(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||yy.createElement(s,null)):null}let i=!0,a=d||"";return l&&(i=p,a=(null!=d?d:f)||""),{status:a,errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:i}}),[d,o,l,p,f]);return yy.createElement(F0.Provider,{value:h},t)}function Xp(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:p,fieldId:f,required:h,isRequired:g,onSubItemMetaChange:m}=e,b=QI(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),y=`${t}-item`,{requiredMark:v}=yy.useContext(T0),w=yy.useRef(null),x=Bp(a),S=Bp(s),E=null!=i,C=!!(E||a.length||s.length),k=!!w.current&&$Z(w.current),[O,D]=yy.useState(null);QO((()=>{if(C&&w.current){const e=getComputedStyle(w.current);D(parseInt(e.marginBottom,10))}}),[C,k]);const $=function(e){let t=arguments.length>0&&void 0!==e&&e;return Wp(t?x:c.errors,t?S:c.warnings,c,"",!!u,l)}(),_=zJ(y,n,r,{[`${y}-with-help`]:E||x.length||S.length,[`${y}-has-feedback`]:$&&u,[`${y}-has-success`]:"success"===$,[`${y}-has-warning`]:"warning"===$,[`${y}-has-error`]:"error"===$,[`${y}-is-validating`]:"validating"===$,[`${y}-hidden`]:d});return yy.createElement("div",{className:_,style:o,ref:w},yy.createElement(A4,Object.assign({className:`${y}-row`},Qs(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"])),yy.createElement(t6,Object.assign({htmlFor:f},e,{requiredMark:v,required:null!=h?h:g,prefixCls:t})),yy.createElement(Q3,Object.assign({},e,c,{errors:x,warnings:S,prefixCls:t,status:$,help:i,marginBottom:O,onErrorVisibleChanged:e=>{e||D(null)}}),yy.createElement(I0.Provider,{value:m},yy.createElement(qp,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:$},p)))),!!O&&yy.createElement("div",{className:`${y}-margin-offset`,style:{marginBottom:-O}}))}function Kp(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=u6,a=null!=e?e:HQ().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:i}}function Yp(){if(!s6){const e=document.createDocumentFragment(),t={fragment:e};return s6=t,void l6((()=>{mc(yy.createElement(d6,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Yp())}))}}),e)}))}s6.instance&&(c6.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":l6((()=>{const t=s6.instance.open(Object.assign(Object.assign({},u6),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":l6((()=>{null==s6||s6.instance.destroy(e.key)}));break;default:l6((()=>{var n;const r=(n=s6.instance)[t].apply(n,xa(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),c6=[])}function Jp(e){return Ou(Du(e))}function Qp(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=x6,a=null!=e?e:HQ().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}function Zp(){if(!y6){const e=document.createDocumentFragment(),t={fragment:e};return y6=t,void v6((()=>{mc(yy.createElement(S6,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Zp())}))}}),e)}))}y6.instance&&(w6.forEach((e=>{switch(e.type){case"open":v6((()=>{y6.instance.open(Object.assign(Object.assign({},x6),e.config))}));break;case"destroy":v6((()=>{null==y6||y6.instance.destroy(e.key)}))}})),w6=[])}function ef(e){w6.push({type:"open",config:e}),Zp()}function tf(e){var t,n,r=e.prefixCls,o=e.containerRef,i=e.value,a=e.getValueIndex,s=e.motionName,l=e.onMotionStart,c=e.onMotionEnd,u=e.direction,d=yy.useRef(null),p=Ua(yy.useState(i),2),f=p[0],h=p[1],g=function(e){var t,n=a(e),i=null===(t=o.current)||void 0===t?void 0:t.querySelectorAll(".".concat(r,"-item"))[n];return(null==i?void 0:i.offsetParent)&&i},m=Ua(yy.useState(null),2),b=m[0],y=m[1],v=Ua(yy.useState(null),2),w=v[0],x=v[1];return QO((function(){var e,t,n,r;f!==i&&(e=g(f),t=g(i),n=tA(e),r=tA(t),h(i),y(n),x(r),e&&t?l():c())}),[i]),t=yy.useMemo((function(){return nA("rtl"===u?-(null==b?void 0:b.right):null==b?void 0:b.left)}),[u,b]),n=yy.useMemo((function(){return nA("rtl"===u?-(null==w?void 0:w.right):null==w?void 0:w.left)}),[u,w]),b&&w?yy.createElement(RQ,{visible:!0,motionName:s,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(){y(null),x(null),c()}},(function(e,o){var i=e.className,a=Ea(Ea({},e.style),{},{"--thumb-start-left":t,"--thumb-start-width":nA(null==b?void 0:b.width),"--thumb-active-left":n,"--thumb-active-width":nA(null==w?void 0:w.width)}),s={ref:Hs(d,o),style:a,className:zJ("".concat(r,"-thumb"),i)};return yy.createElement("div",s)})):null}function nf(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function rf(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}function of(e,t,n){return(e-t)/(n-t)}function af(e,t,n,r){var o=of(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 sf(e,t){return Array.isArray(e)?e[t]:e}function lf(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function cf(e){var t,n=e.prefixCls,r=e.style,o=e.start,i=e.end,a=e.index,s=e.onStartMove,l=yy.useContext(sA),c=l.direction,u=l.min,d=l.max,p=l.disabled,f=l.range,h="".concat(n,"-track"),g=of(o,u,d),m=of(i,u,d),b=function(e){!p&&s&&s(e,-1)},y={};switch(c){case"rtl":y.right="".concat(100*g,"%"),y.width="".concat(100*m-100*g,"%");break;case"btt":y.bottom="".concat(100*g,"%"),y.height="".concat(100*m-100*g,"%");break;case"ttb":y.top="".concat(100*g,"%"),y.height="".concat(100*m-100*g,"%");break;default:y.left="".concat(100*g,"%"),y.width="".concat(100*m-100*g,"%")}return yy.createElement("div",{className:zJ(h,(t={},ki(t,"".concat(h,"-").concat(a+1),f),ki(t,"".concat(n,"-track-draggable"),s),t)),style:Ea(Ea({},y),r),onMouseDown:b,onTouchStart:b})}function uf(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=yy.useContext(sA),s=a.included,l=a.range,c=a.min,u=yy.useMemo((function(){var e,t,n,i;if(!l)return 0===r.length?[]:(e=null!=o?o:c,t=r[0],[{start:Math.min(e,t),end:Math.max(e,t)}]);for(n=[],i=0;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a),r(s+(u=n-i/2),l+u,c+u))}function Yf(e){var t,n,r,o,i,a,s,l,c,u,d;if("string"!=typeof e)throw new gF(3);if(t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return mF[t]?"#"+mF[t]:e}(e),t.match(bF))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(yF))return n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2)),{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(vF))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(wF))return r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2)),{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r};if(o=xF.exec(t))return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};if(i=SF.exec(t.substring(0,50)))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])};if(a=EF.exec(t)){if(s="rgb("+Kf(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",!(l=xF.exec(s)))throw new gF(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}if(c=CF.exec(t.substring(0,50))){if(u="rgb("+Kf(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",!(d=xF.exec(u)))throw new gF(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 gF(5)}function Jf(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Qf(e){return Jf(Math.round(255*e))}function Zf(e,t,n){return kF("#"+Qf(e)+Qf(t)+Qf(n))}function eh(e,t,n){return Kf(e,t,n,Zf)}function th(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return kF("#"+Jf(e)+Jf(t)+Jf(n));if("object"==typeof e&&void 0===t&&void 0===n)return kF("#"+Jf(e.red)+Jf(e.green)+Jf(e.blue));throw new gF(6)}function nh(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Yf(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?th(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?th(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new gF(7)}function rh(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):rh(e,t,r)}}function oh(e){return rh(e,e.length,[])}function ih(e,t){if("transparent"===t)return t;var n=function(e){return function(e){var t,n,r,o=e.red/255,i=e.green/255,a=e.blue/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=(s+l)/2;if(s===l)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};switch(n=s-l,r=c>.5?n/(2-s-l):n/(s+l),s){case o:t=(i-a)/n+(i=1?eh(e.hue,e.saturation,e.lightness):"rgba("+Kf(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new gF(2)}(e);if($F(e))return function(e){if("object"==typeof e)return eh(e.hue,e.saturation,e.lightness);throw new gF(1)}(e);throw new gF(8)}(fa({},n,{hue:n.hue+parseFloat(e)}))}function ah(e){var t,n;return"transparent"===e?0:(t=Yf(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)})),parseFloat((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3)))}function sh(e,t,n,r){var o,i,a,s,l;return void 0===t&&(t=jF),void 0===n&&(n=PF),void 0===r&&(r=!0),i=(o=ah(e)>.179)?t:n,!r||(a=i,s=ah(e),l=ah(a),parseFloat((s>l?(s+.05)/(l+.05):(l+.05)/(s+.05)).toFixed(2))>=4.5)?i:o?jF:PF}function lh(e,t){var n,r,o,i,a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;n=a.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(i)throw i.error}}return o}function ch(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return o=!0,i=!1,{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){i=!0,a=e},f:function(){try{o||null==s.return||s.return()}finally{if(i)throw a}}}}function hg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n52;t=t/52|0)n=wG(t%52)+n;return(wG(t%52)+n).replace(vG,"$1-$2")}function Cg(e){return"string"==typeof e&&!0}function kg(e){return("type"in(t=e)&&t.type.$$typeof)===kG?_G:"$$typeof"in e?NG[e.$$typeof]:DG;var t}function Og(e,t,n){var r,o,i,a,s,l,c;if("string"!=typeof t)for(RG&&(r=AG(t))&&r!==RG&&Og(e,r,n),o=PG(t),TG&&(o=o.concat(TG(t))),i=kg(e),a=kg(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}function Ag(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ag(e.children,t)),e}))}function Rg(){return yy.useContext(oV)}function Fg(e){var t,n,r;for(t="",n=0;n>>0)}("6.0.7"+f+pV[f])),d?"".concat(d,"-").concat(p):p):v;return void 0===t.displayName&&function(e){Cg(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),r=t.displayName&&t.componentId?"".concat(Sg(t.displayName),"-").concat(t.componentId):t.componentId||w,o=h&&g.attrs?g.attrs.concat(y).filter(Boolean):y,i=t.shouldForwardProp,h&&g.shouldForwardProp&&(a=g.shouldForwardProp,t.shouldForwardProp?(s=t.shouldForwardProp,i=function(e,t){return a(e,t)&&s(e,t)}):i=a),l=new uV(n,r,h?g.componentStyle:void 0),c=rJ.forwardRef((function(e,t){return function(e,t,n){var r,o,i,a,s,l,c=e.attrs,u=e.componentStyle,d=e.defaultProps,p=e.foldedComponentIds,f=e.styledComponentId,h=e.target,g=rJ.useContext(dV),m=Rg(),b=e.shouldForwardProp||m.shouldForwardProp,y=function(e,t,n){var r,o,i,a,s;for(o=TF(TF({},t),{className:void 0,theme:n}),i=0;i{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,l7(e,r))}function Xg(e,t){function n(){return s.getFixedT(r.lng||null,"fallback"===l.nsMode?d:d[0],u)}let r=arguments.length>1&&void 0!==t?t:{};const{i18n:o}=r,{i18n:i,defaultNS:a}=yy.useContext(g7)||{},s=o||i||p7;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new m7),!s){Gg("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}s.options.react&&void 0!==s.options.react.wait&&Gg("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...f7,...s.options.react,...r},{useSuspense:c,keyPrefix:u}=l;let d=e||a||s.options&&s.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(d);const p=(s.isInitialized||s.initializedStoreOnce)&&d.every((e=>function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=t.languages[0],i=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===o.toLowerCase())return!0;const s=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(o,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(o,e)||i&&!s(a,e)))}(e,t,r):(Gg("i18n.languages were undefined or empty",t.languages),!0)}(e,s,l))),[f,h]=yy.useState(n);let g=d.join();r.lng&&(g=`${r.lng}${g}`);const m=(e=>{const t=yy.useRef();return yy.useEffect((()=>{t.current=e}),[e,void 0]),t.current})(g),b=yy.useRef(!0);yy.useEffect((()=>{function e(){b.current&&h(n)}const{bindI18n:t,bindI18nStore:o}=l;return b.current=!0,p||c||(r.lng?qg(s,r.lng,d,(()=>{b.current&&h(n)})):Vg(s,d,(()=>{b.current&&h(n)}))),p&&m&&m!==g&&b.current&&h(n),t&&s&&s.on(t,e),o&&s&&s.store.on(o,e),()=>{b.current=!1,t&&s&&t.split(" ").forEach((t=>s.off(t,e))),o&&s&&o.split(" ").forEach((t=>s.store.off(t,e)))}}),[s,g]);const y=yy.useRef(!0);yy.useEffect((()=>{b.current&&!y.current&&h(n),y.current=!1}),[s,u]);const v=[f,s,p];if(v.t=f,v.i18n=s,v.ready=p,p)return v;if(!p&&!c)return v;throw new Promise((e=>{r.lng?qg(s,r.lng,d,(()=>e())):Vg(s,d,(()=>e()))}))}function Kg(e){var t,n,r=this;if(r instanceof Kg||(r=new Kg),r.tail=null,r.head=null,r.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){r.push(e)}));else if(arguments.length>0)for(t=0,n=arguments.length;tthis.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=>!f(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&&p))+":"+e,i=t.get(n);if(i)return i;const h=this.options.loose;e=e.replace(h?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE],O(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[s.CARETTRIM],u),o("caret trim",e);let g=e.split(" ").map((e=>m(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));h&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),o("range list",g);const b=new Map,y=g.map((e=>new r(e,this.options)));for(const t of y){if(f(t))return[t];b.set(t.value,t)}b.size>1&&b.has("")&&b.delete("");const v=[...b.values()];return t.set(n,v),v}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"<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=y(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>e.replace(t.loose?a[s.TILDELOOSE]:a[s.TILDE],((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s})),w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{o("caret",e,t);const n=t.includePrerelease?"-0":"";return e.replace(t.loose?a[s.CARETLOOSE]:a[s.CARET],((t,r,i,a,s)=>{let l;return o("caret",e,t,r,i,a,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(a)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${a}-${s} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${s} <${+r+1}.0.0-0`):(o("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),o("caret return",l),l}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>(e=e.trim()).replace(t.loose?a[s.XRANGELOOSE]:a[s.XRANGE],((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=b(i),u=c||b(a),d=u||b(s);return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n})),C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),k=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),O=e=>(t,n,r,o,i,a,s,l,c,u,d,p)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),D=(e,t,n)=>{for(let r=0;r0){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 QV}function Qg(){if(tq)return eq;tq=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.value=this.semver===e?"":this.operator+this.semver.version,a("comp",this)}parse(t){const n=t.match(this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR]);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),this.semver=n[2]?new s(n[2],this.options.loose):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 s(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 l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(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(">")))}}eq=t;const n=SV,{safeRe:r,t:o}=xV,i=VV,a=wV,s=CV,l=Jg();return eq}function Zg(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. "}function em(e,t,n,r){function o(){p===d&&(p=d.slice())}function i(){if(f)throw new Error(Zg(3));return u}function a(e){if("function"!=typeof e)throw new Error(Zg(4));if(f)throw new Error(Zg(5));var t=!0;return o(),p.push(e),function(){if(t){if(f)throw new Error(Zg(6));t=!1,o();var n=p.indexOf(e);p.splice(n,1),d=null}}}function s(e){var t,n;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(Zg(7));if(void 0===e.type)throw new Error(Zg(8));if(f)throw new Error(Zg(9));try{f=!0,u=c(u,e)}finally{f=!1}for(t=d=p,n=0;n=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(qee);let c=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){tm("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(l)}e.dispatch(rm(o,c));const u=s.getSource(l).beginDrag(a,l);if(null==u)return;!function(e){tm(nm(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:Hee,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function am(e){var t,n,r;for(t=1;t{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){tm(void 0===e||nm(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}(o,i,r,n),s={type:Gee,payload:{dropResult:am({},t,a)}};e.dispatch(s)}))}}function lm(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){tm(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:Vee}}}function cm(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function um(e){return function(t,{clientOffset:n}={}){!function(e){tm(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--)cm(t.getTargetType(e[r]),n)||e.splice(r,1)}(r,i,o.getItemType()),function(e,t,n){tm(t.isDragging(),"Cannot call hover while not dragging."),tm(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;rhm(e,!1))):tm("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.")}function gm(e){switch(e[0]){case"S":return Dq.SOURCE;case"T":return Dq.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function mm(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}function bm(e=Kee,t){switch(t.type){case Wee:break;case ote:case ite:case ste:case ate:return Kee;default:return Yee}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);if(!(o.length>0)&&function(e,t,n=ute){if(e.length!==t.length)return!1;for(let r=0;re!==o)))});case Gee:return xm({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Vee:return xm({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function Em(e=0,t){switch(t.type){case ote:case ite:return e+1;case ate:case ste:return e-1;default:return e}}function Cm(e=0){return e+1}function km(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Om(e){var t,n,r;for(t=1;te&&e[t]?e[t]:r||null),n))})}),dragOffset:vm(e.dragOffset,t),refCount:Em(e.refCount,t),dragOperation:Sm(e.dragOperation,t),stateId:Cm(e.stateId)};var n,r}function $m(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return em(Dm,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new Jee(o,new cte(o)),a=new Xee(o,i),s=e(a,t,n);return a.receiveBackend(s),a}function _m(){return"undefined"!=typeof global?global:window}function Nm(e,t,n){const[r,o]=yy.useState((()=>t(e))),i=yy.useCallback((()=>{const i=t(e);A8(r,i)||(o(i),n&&n())}),[r,e,n]);return mte(i),[r,i]}function jm(e,t,n){return function(e,t){const[r,o]=Nm(e,t,(()=>n.reconnect()));return mte((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})))}function Pm(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),yy.useMemo((()=>"function"==typeof e?e():e),n)}function Tm(e){return yy.useMemo((()=>e.hooks.dragSource()),[e])}function Im(e){return yy.useMemo((()=>e.hooks.dragPreview()),[e])}function Am(e,t,n,r){let o=n?n.call(r,e,t):void 0;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 s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return(t=null,n=null)=>{if(!yy.isValidElement(t)){const r=t;return e(r,n),r}const r=t;return function(e){if("string"!=typeof e.type)throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e.type.displayName||e.type.name||"the component"} into a
, or turn it into a drag source or a drop target itself.`)}(r),function(e,t){const n=e.ref;return tm("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 or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),yy.cloneElement(e,n?{ref:e=>{Mm(n,e),Mm(t,e)}}:{ref:t})}(r,n?t=>e(t,n):e)}}(r);t[n]=()=>e}})),t}function Mm(e,t){"function"==typeof e?e(t):e.current=t}function Lm(){const{dragDropManager:e}=yy.useContext(Bee);return tm(null!=e,"Expected drag drop context"),e}function Bm(e){return yy.useMemo((()=>e.hooks.dropTarget()),[e])}function zm(e){let t=null;return()=>(null==t&&(t=e()),t)}function Hm(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}function Um(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Ite).filter((e=>{const n=Ite[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}function Wm(e){const t=e.nodeType===Mte?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Gm(e){return{x:e.clientX,y:e.clientY}}function Vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qm(e){var t,n,r;for(t=1;tNumber(e)-Number(t))).map((t=>e[t])):e}function cb(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function ub(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 db(e){const t=(e=cb(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function pb(e,t){ib((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),r[e=e.replace(/\[]$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),r[e=e.replace(/:list$/,"")]=t?void 0!==r[e]?[...r[e],n]:[n]:n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&sb(n,e).includes(e.arrayFormatSeparator);n=i?sb(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>sb(t,e))):null===n?n:sb(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?sb(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>sb(t,e)));r[t]=void 0!==r[t]?[...r[t],...i]:i};default:return(e,t,n)=>{n[e]=void 0!==n[e]?[...[n[e]].flat(),t]: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]=rb(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:sb(a,t),n(sb(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]=ub(n,t);else r[o]=ub(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)?lb(n):n,e}),Object.create(null))}function fb(e,t){if(!e)return"";ib((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&hne(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,[ab(t,e),"[",o,"]"].join("")]:[...n,[ab(t,e),"[",ab(o,e),"]=",ab(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[ab(t,e),"[]"].join("")]:[...n,[ab(t,e),"[]=",ab(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,[ab(t,e),":list="].join("")]:[...n,[ab(t,e),":list=",ab(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?[[ab(n,e),t,ab(o,e)].join("")]:[[r,ab(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,ab(t,e)]:[...n,[ab(t,e),"=",ab(r,e)].join("")]}}(t),o={};for(const[a,s]of Object.entries(e))n(a)||(o[a]=s);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?ab(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?ab(n,t)+"[]":o.reduce(r(n),[]).join("&"):ab(n,t)+"="+ab(o,t)})).filter((e=>e.length>0)).join("&")}function hb(e,t){var n;t={decode:!0,...t};let[r,o]=rb(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:pb(db(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:sb(o,t)}:{}}}function gb(e,t){t={encode:!0,strict:!0,[mne]:!0,...t};const n=cb(e.url).split("?")[0]||"";let r=fb({...pb(db(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[mne]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function mb(e,t,n){n={parseFragmentIdentifier:!0,[mne]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=hb(e,n);return gb({url:r,query:ob(o,t),fragmentIdentifier:i},n)}function bb(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function yb(e){return null==e?"":""+e}function vb(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function wb(e,t,n){const{obj:r,k:o}=vb(e,t,Object);r[o]=n}function xb(e,t){const{obj:n,k:r}=vb(e,t);if(n)return n[r]}function Sb(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]):Sb(e[r],t[r],n):e[r]=t[r]);return e}function Eb(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Cb(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>dK[e])):e}function kb(e,t,n){let r=arguments.length>2&&void 0!==n?n:".";if(!e)return;if(e[t])return e[t];const o=t.split(r);let i=e;for(let a=0;aa+e;)e++,n=o.slice(a,a+e).join(r),s=i[n];if(void 0===s)return;if(null===s)return null;if(t.endsWith(n)){if("string"==typeof s)return s;if(n&&"string"==typeof s[n])return s[n]}const l=o.slice(a+e).join(r);return l?kb(s,l,r):void 0}i=i[o[a]]}return i}function Ob(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}function Db(e){return e.charAt(0).toUpperCase()+e.slice(1)}function $b(e,t,n,r,o){let i=arguments.length>3&&void 0!==r?r:".",a=!(arguments.length>4&&void 0!==o)||o,s=function(e,t,n){const r=xb(e,n);return void 0!==r?r:xb(t,n)}(e,t,n);return!s&&a&&"string"==typeof n&&(s=kb(e,n,i),void 0===s&&(s=kb(t,n,i))),s}function _b(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(Ob(r),o),t[i]=a),a(n)}}function Nb(){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 jb(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 Pb(){}function Tb(e){return(Tb="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 Ib(e){return hK.call(gK.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Ab(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Tb(XMLHttpRequest))}function Rb(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.')}function Fb(e){return(Fb="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 Mb(e){return(Mb="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 Lb(e){var t=function(e){var t,n;if("object"!==Mb(e)||null===e)return e;if(void 0!==(t=e[Symbol.toPrimitive])){if("object"!==Mb(n=t.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Mb(t)?t:String(t)}function Bb(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function zb(e){return e.startsWith("./")?e.slice(2):e}function Hb(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function Ub(...e){return e.map(Bb).map(zb).join("/")}function Wb(e){return 32===e||9===e}function Gb(e){return 10===e||13===e}function Vb(e){return e>=48&&e<=57}function qb(e){return`${Gne}${e}`}async function Xb(e){const t=[],n=await async function(e){const t=qb(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(fY){if(r=Wne(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function Kb(e){const t=Yb(await Xb(e));if(t.include){const n=await Kb(Ub(...Hb(e),t.include));n.settings&&(t.settings=n.settings.concat(t.settings)),n.bg&&!t.bg&&(t.bg=n.bg),n.colors&&(t.colors={...n.colors,...t.colors}),delete t.include}return t}function Yb(e){const t={name:e.name,type:e.type||"dark",...e,...Jb(e)};var n;return e.include&&(t.include=e.include),e.tokenColors&&(t.settings=e.tokenColors,delete t.tokenColors),(n=t).settings||(n.settings=[]),n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}}),t}function Jb(e){var t,n,r,o;let i,a,s=e.settings?e.settings:e.tokenColors;const l=s?s.find((e=>!e.name&&!e.scope)):void 0;return(null==(t=null==l?void 0:l.settings)?void 0:t.foreground)&&(i=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(a=l.settings.background),!i&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(i=e.colors["editor.foreground"]),!a&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(a=e.colors["editor.background"]),i||(i="light"===e.type?Xne.light:Xne.dark),a||(a="light"===e.type?Kne.light:Kne.dark),{fg:i,bg:a}}function Qb(e,t){let n=[];for(let r=0,o=t.length;r=0&&i>=0;)Zb(t[o],r[i])&&o--,i--;return-1===o}function ty(e,t,n){let r=[],o=0;for(let i=0,a=e.settings.length;ie.trim()));else{if(!Array.isArray(s.scope))continue;a=s.scope}for(let e=0,i=a.length;eNumber.parseInt(e)));if(3!==t.length||t.some((e=>Number.isNaN(e))))return;return{type:"rgb",rgb:t}}if("5"===t){const t=e.shift();if(t)return{type:"table",index:Number(t)}}}function oy(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)HK[r]&&t.push({type:"setDecoration",value:HK[r]});else if(r<=29){const e=HK[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:zK[r-30]}});else if(38===r){const n=ry(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:zK[r-40]}});else if(48===r){const n=ry(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:zK[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:zK[r-100+8]}})}return t}function iy(e,t={}){function n(e="",t={},n){const r=i[e]||Jne[e];return r?r({...t,children:(n=n.filter(Boolean)).join("code"===e?"\n":"")}):""}const r=t.bg||"#fff",o=function(e){const t=new Map;for(const n of e){const e=n.line;t.has(e)?t.get(e).push(n):t.set(e,[n])}return t}(t.lineOptions??[]),i=t.elements||{};return n("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`
${t.langId}
`:"",n("code",{},e.map(((r,i)=>n("line",{className:function(e){const t=new Set(["line"]);for(const n of e)for(const e of n.classes??[])t.add(e);return Array.from(t)}(o.get(i+1)??[]).join(" "),lines:e,line:r,index:i},r.map(((e,o)=>{const i=[`color: ${e.color||t.fg}`];return e.fontStyle&AK.Italic&&i.push("font-style: italic"),e.fontStyle&AK.Bold&&i.push("font-weight: bold"),e.fontStyle&AK.Underline&&i.push("text-decoration: underline"),n("token",{style:i.join("; "),tokens:r,token:e,index:o},[(a=e.content,a.replace(/[&<>"']/g,(e=>Qne[e])))]);var a}))))))])}function ay(e){return"string"==typeof e?Hne.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function sy(e){function t(e){const t=e?u.getTheme(e):d;if(!t)throw Error(`No theme registration for ${e}`);p&&p.name===t.name||(u.setTheme(t),p=t);const n=u.getColorMap();return"css"===t.type&&function(e,t){e.bg=f[e.bg]||e.bg,e.fg=f[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=f[n]||n})),t.forEach(((e,n)=>{t[n]=f[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function n(e,n="text",r,o={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(n))return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))];const{_grammar:i}=function(e){const t=u.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(n),{_theme:a,_colorMap:s}=t(r);return function(e,t,n,r,o){let i=n.split(/\r\n|\r|\n/),a=IK.INITIAL,s=[],l=[];for(let c=0,u=i.length;cMath.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;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(){if(r)return r;r=[];for(let n=0;n[t,e.colors[`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`]])))),o=function(){let e=null,t=null,n=new Set;return{parse(r){const o=[];let i=0;do{const a=ny(r,i),s=a.sequence?r.substring(i,a.startPosition):r.substring(i);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const r=oy(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(io.parse(t).map((t=>{let n;n=t.decorations.has("reverse")?t.background?r.value(t.background):e.bg:t.foreground?r.value(t.foreground):e.fg,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\((--shiki-color-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(n));let o=AK.None;return t.decorations.has("bold")&&(o|=AK.Bold),t.decorations.has("italic")&&(o|=AK.Italic),t.decorations.has("underline")&&(o|=AK.Underline),{content:t.value,color:n,fontStyle:o}}))))}(r,e)}var o,i;const{_languages:a,_themes:s,_wasmPath:l}=function(e){var t;let n=Hne,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":Vne;return e.langs&&(n=e.langs.map(ay)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),c=new Yne(async function(e){if(!qne){let t;t=PK.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(qb(Ub(...Hb(e),"onig.wasm")))}),qne=t.then((()=>({createOnigScanner:e=>PK.createOnigScanner(e),createOnigString:e=>PK.createOnigString(e)})))}return qne}(l),"vscode-oniguruma"),u=new Zne(c);(null==(o=e.paths)?void 0:o.themes)&&(u.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(i=e.paths)?void 0:i.languages)&&(c.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const d=(await u.loadThemes(s))[0];let p;await u.loadLanguages(a);let f=function(){const e={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};for(let t=0;tt(e)._theme,loadTheme:async function(e){await u.loadTheme(e)},loadLanguage:async function(e){const t=ay(e);c.addLanguage(t),await u.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:n}=t(e);return n.bg},getForegroundColor:function(e){const{_theme:n}=t(e);return n.fg},getLoadedThemes:function(){return u.getLoadedThemes()},getLoadedLanguages:function(){return u.getLoadedLanguages()},setColorReplacements:function(e){f=e}}}function ly(e){return null==e}var cy,uy,dy,py,fy,hy,gy,my,by,yy,vy,wy,xy,Sy,Ey,Cy,ky,Oy,Dy,$y,_y,Ny,jy,Py,Ty,Iy,Ay,Ry,Fy,My,Ly,By,zy,Hy,Uy,Wy,Gy,Vy,qy,Xy,Ky,Yy,Jy,Qy,Zy,ev,tv,nv,rv,ov,iv,av,sv,lv,cv,uv,dv,pv,fv,hv,gv,mv,bv,yv,vv,wv,xv,Sv,Ev,Cv,kv,Ov,Dv,$v,_v,Nv,jv,Pv,Tv,Iv,Av,Rv,Fv,Mv,Lv,Bv,zv,Hv,Uv,Wv,Gv,Vv,qv,Xv,Kv,Yv,Jv,Qv,Zv,ew,tw,nw,rw,ow,iw,aw,sw,lw,cw,uw,dw,pw,fw,hw,gw,mw,bw,yw,vw,ww,xw,Sw,Ew,Cw,kw,Ow,Dw,$w,_w,Nw,jw,Pw,Tw,Iw,Aw,Rw,Fw,Mw,Lw,Bw,zw,Hw,Uw,Ww,Gw,Vw,qw,Xw,Kw,Yw,Jw,Qw,Zw,ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,ux,dx,px,fx,hx,gx,mx,bx,yx,vx,wx,xx,Sx,Ex,Cx,kx,Ox,Dx,$x,_x,Nx,jx,Px,Tx,Ix,Ax,Rx,Fx,Mx,Lx,Bx,zx,Hx,Ux,Wx,Gx,Vx,qx,Xx,Kx,Yx,Jx,Qx,Zx,eS,tS,nS,rS,oS,iS,aS,sS,lS,cS,uS,dS,pS,fS,hS,gS,mS,bS,yS,vS,wS,xS,SS,ES,CS,kS,OS,DS,$S,_S,NS,jS,PS,TS,IS,AS,RS,FS,MS,LS,BS,zS,HS,US,WS,GS,VS,qS,XS,KS,YS,JS,QS,ZS,eE,tE,nE,rE,oE,iE,aE,sE,lE,cE,uE,dE,pE,fE,hE,gE,mE,bE,yE,vE,wE,xE,SE,EE,CE,kE,OE,DE,$E,_E,NE,jE,PE,TE,IE,AE,RE,FE,ME,LE,BE,zE,HE,UE,WE,GE,VE,qE,XE,KE,YE,JE,QE,ZE,eC,tC,nC,rC,oC,iC,aC,sC,lC,cC,uC,dC,pC,fC,hC,gC,mC,bC,yC,vC,wC,xC,SC,EC,CC,kC,OC,DC,$C,_C,NC,jC,PC,TC,IC,AC,RC,FC,MC,LC,BC,zC,HC,UC,WC,GC,VC,qC,XC,KC,YC,JC,QC,ZC,ek,tk,nk,rk,ok,ik,ak,sk,lk,ck,uk,dk,pk,fk,hk,gk,mk,bk,yk,vk,wk,xk,Sk,Ek,Ck,kk,Ok,Dk,$k,_k,Nk,jk,Pk,Tk,Ik,Ak,Rk,Fk,Mk,Lk,Bk,zk,Hk,Uk,Wk,Gk,Vk,qk,Xk,Kk,Yk,Jk,Qk,Zk,eO,tO,nO,rO,oO,iO,aO,sO,lO,cO,uO,dO,pO,fO,hO,gO,mO,bO,yO,vO,wO,xO,SO,EO,CO,kO,OO,DO,$O,_O,NO,jO,PO,TO,IO,AO,RO,FO,MO,LO,BO,zO,HO,UO,WO,GO,VO,qO,XO,KO,YO,JO,QO,ZO,eD,tD,nD,rD,oD,iD,aD,sD,lD,cD,uD,dD,pD,fD,hD,gD,mD,bD,yD,vD,wD,xD,SD,ED,CD,kD,OD,DD,$D,_D,ND,jD,PD,TD,ID,AD,RD,FD,MD,LD,BD,zD,HD,UD,WD,GD,VD,qD,XD,KD,YD,JD,QD,ZD,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,d$,p$,f$,h$,g$,m$,b$,y$,v$,w$,x$,S$,E$,C$,k$,O$,D$,$$,_$,N$,j$,P$,T$,I$,A$,R$,F$,M$,L$,B$,z$,H$,U$,W$,G$,V$,q$,X$,K$,Y$,J$,Q$,Z$,e_,t_,n_,r_,o_,i_,a_,s_,l_,c_,u_,d_,p_,f_,h_,g_,m_,b_,y_,v_,w_,x_,S_,E_,C_,k_,O_,D_,$_,__,N_,j_,P_,T_,I_,A_,R_,F_,M_,L_,B_,z_,H_,U_,W_,G_,V_,q_,X_,K_,Y_,J_,Q_,Z_,eN,tN,nN,rN,oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,hN,gN,mN,bN,yN,vN,wN,xN,SN,EN,CN,kN,ON,DN,$N,_N,NN,jN,PN,TN,IN,AN,RN,FN,MN,LN,BN,zN,HN,UN,WN,GN,VN,qN,XN,KN,YN,JN,QN,ZN,ej,tj,nj,rj,oj,ij,aj,sj,lj,cj,uj,dj,pj,fj,hj,gj,mj,bj,yj,vj,wj,xj,Sj,Ej,Cj,kj,Oj,Dj,$j,_j,Nj,jj,Pj,Tj,Ij,Aj,Rj,Fj,Mj,Lj,Bj,zj,Hj,Uj,Wj,Gj,Vj,qj,Xj,Kj,Yj,Jj,Qj,Zj,eP,tP,nP,rP,oP,iP,aP,sP,lP,cP,uP,dP,pP,fP,hP,gP,mP,bP,yP,vP,wP,xP,SP,EP,CP,kP,OP,DP,$P,_P,NP,jP,PP,TP,IP,AP,RP,FP,MP,LP,BP,zP,HP,UP,WP,GP,VP,qP,XP,KP,YP,JP,QP,ZP,eT,tT,nT,rT,oT,iT,aT,sT,lT,cT,uT,dT,pT,fT,hT,gT,mT,bT,yT,vT,wT,xT,ST,ET,CT,kT,OT,DT,$T,_T,NT,jT,PT,TT,IT,AT,RT,FT,MT,LT,BT,zT,HT,UT,WT,GT,VT,qT,XT,KT,YT,JT,QT,ZT,eI,tI,nI,rI,oI,iI,aI,sI,lI,cI,uI,dI,pI,fI,hI,gI,mI,bI,yI,vI,wI,xI,SI,EI,CI,kI,OI,DI,$I,_I,NI,jI,PI,TI,II,AI,RI,FI,MI,LI,BI,zI,HI,UI,WI,GI,VI,qI,XI,KI,YI,JI,QI,ZI,eA,tA,nA,rA,oA,iA,aA,sA,lA,cA,uA,dA,pA,fA,hA,gA,mA,bA,yA,vA,wA,xA,SA,EA,CA,kA,OA,DA,$A,_A,NA,jA,PA,TA,IA,AA,RA,FA,MA,LA,BA,zA,HA,UA,WA,GA,VA,qA,XA,KA,YA,JA,QA,ZA,eR,tR,nR,rR,oR,iR,aR,sR,lR,cR,uR,dR,pR,fR,hR,gR,mR,bR,yR,vR,wR,xR,SR,ER,CR,kR,OR,DR,$R,_R,NR,jR,PR,TR,IR,AR,RR,FR,MR,LR,BR,zR,HR,UR,WR,GR,VR,qR,XR,KR,YR,JR,QR,ZR,eF,tF,nF,rF,oF,iF,aF,sF,lF,cF,uF,dF,pF,fF,hF,gF,mF,bF,yF,vF,wF,xF,SF,EF,CF,kF,OF,DF,$F,_F,NF,jF,PF,TF,IF,AF,RF,FF,MF,LF,BF,zF,HF,UF,WF,GF,VF,qF,XF,KF,YF,JF,QF,ZF,eM,tM,nM,rM,oM,iM,aM,sM,lM,cM,uM,dM,pM,fM,hM,gM,mM,bM,yM,vM,wM,xM,SM,EM,CM,kM,OM,DM,$M,_M,NM,jM,PM,TM,IM,AM,RM,FM,MM,LM,BM,zM,HM,UM,WM,GM,VM,qM,XM,KM,YM,JM,QM,ZM,eL,tL,nL,rL,oL,iL,aL,sL,lL,cL,uL,dL,pL,fL,hL,gL,mL,bL,yL,vL,wL,xL,SL,EL,CL,kL,OL,DL,$L,_L,NL,jL,PL,TL,IL,AL,RL,FL,ML,LL,BL,zL,HL,UL,WL,GL,VL,qL,XL,KL,YL,JL,QL,ZL,eB,tB,nB,rB,oB,iB,aB,sB,lB,cB,uB,dB,pB,fB,hB,gB,mB,bB,yB,vB,wB,xB,SB,EB,CB,kB,OB,DB,$B,_B,NB,jB,PB,TB,IB,AB,RB,FB,MB,LB,BB,zB,HB,UB,WB,GB,VB,qB,XB,KB,YB,JB,QB,ZB,ez,tz,nz,rz,oz,iz,az,sz,lz,cz,uz,dz,pz,fz,hz,gz,mz,bz,yz,vz,wz,xz,Sz,Ez,Cz,kz,Oz,Dz,$z,_z,Nz,jz,Pz,Tz,Iz,Az,Rz,Fz,Mz,Lz,Bz,zz,Hz,Uz,Wz,Gz,Vz,qz,Xz,Kz,Yz,Jz,Qz,Zz,eH,tH,nH,rH,oH,iH,aH,sH,lH,cH,uH,dH,pH,fH,hH,gH,mH,bH,yH,vH,wH,xH,SH,EH,CH,kH,OH,DH,$H,_H,NH,jH,PH,TH,IH,AH,RH,FH,MH,LH,BH,zH,HH,UH,WH,GH,VH,qH,XH,KH,YH,JH,QH,ZH,eU,tU,nU,rU,oU,iU,aU,sU,lU,cU,uU,dU,pU,fU,hU,gU,mU,bU,yU,vU,wU,xU,SU,EU,CU,kU,OU,DU,$U,_U,NU,jU,PU,TU,IU,AU,RU,FU,MU,LU,BU,zU,HU,UU,WU,GU,VU,qU,XU,KU,YU,JU,QU,ZU,eW,tW,nW,rW,oW,iW,aW,sW,lW,cW,uW,dW,pW,fW,hW,gW,mW,bW,yW,vW,wW,xW,SW,EW,CW,kW,OW,DW,$W,_W,NW,jW,PW,TW,IW,AW,RW,FW,MW,LW,BW,zW,HW,UW,WW,GW,VW,qW,XW,KW,YW,JW,QW,ZW,eG,tG,nG,rG,oG,iG,aG,sG,lG,cG,uG,dG,pG,fG,hG,gG,mG,bG,yG,vG,wG,xG,SG,EG,CG,kG,OG,DG,$G,_G,NG,jG,PG,TG,IG,AG,RG,FG,MG,LG,BG,zG,HG,UG,WG,GG,VG,qG,XG,KG,YG,JG,QG,ZG,eV,tV,nV,rV,oV,iV,aV,sV,lV,cV,uV,dV,pV,fV,hV,gV,mV,bV,yV,vV,wV,xV,SV,EV,CV,kV,OV,DV,$V,_V,NV,jV,PV,TV,IV,AV,RV,FV,MV,LV,BV,zV,HV,UV,WV,GV,VV,qV,XV,KV,YV,JV,QV,ZV,eq,tq,nq,rq,oq,iq,aq,sq,lq,cq,uq,dq,pq,fq,hq,gq,mq,bq,yq,vq,wq,xq,Sq,Eq,Cq,kq,Oq,Dq,$q,_q,Nq,jq,Pq,Tq,Iq,Aq,Rq,Fq,Mq,Lq,Bq,zq,Hq,Uq,Wq,Gq,Vq,qq,Xq,Kq,Yq,Jq,Qq,Zq,eX,tX,nX,rX,oX,iX,aX,sX,lX,cX,uX,dX,pX,fX,hX,gX,mX,bX,yX,vX,wX,xX,SX,EX,CX,kX,OX,DX,$X,_X,NX,jX,PX,TX,IX,AX,RX,FX,MX,LX,BX,zX,HX,UX,WX,GX,VX,qX,XX,KX,YX,JX,QX,ZX,eK,tK,nK,rK,oK,iK,aK,sK,lK,cK,uK,dK,pK,fK,hK,gK,mK,bK,yK,vK,wK,xK,SK,EK,CK,kK,OK,DK,$K,_K,NK,jK,PK,TK,IK,AK,RK,FK,MK,LK,BK,zK,HK,UK,WK,GK,VK,qK,XK,KK,YK,JK,QK,ZK,eY,tY,nY,rY,oY,iY,aY,sY,lY,cY,uY,dY,pY,fY,hY,gY,mY,bY,yY,vY,wY,xY,SY,EY,CY,kY,OY,DY,$Y,_Y,NY,jY,PY,TY,IY,AY,RY,FY="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},MY={exports:{}},LY={},BY={exports:{}},zY={},HY=Symbol.for("react.element"),UY=Symbol.for("react.portal"),WY=Symbol.for("react.fragment"),GY=Symbol.for("react.strict_mode"),VY=Symbol.for("react.profiler"),qY=Symbol.for("react.provider"),XY=Symbol.for("react.context"),KY=Symbol.for("react.forward_ref"),YY=Symbol.for("react.suspense"),JY=Symbol.for("react.memo"),QY=Symbol.for("react.lazy"),ZY=Symbol.iterator,eJ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tJ=Object.assign,nJ={};r.prototype.isReactComponent={},r.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")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=r.prototype,(cy=i.prototype=new o).constructor=i,tJ(cy,r.prototype),cy.isPureReactComponent=!0,uy=Array.isArray,dy=Object.prototype.hasOwnProperty,fy={key:!0,ref:!0,__self:!0,__source:!0},hy=/\/+/g,by={ReactCurrentDispatcher:gy={current:null},ReactCurrentBatchConfig:my={transition:null},ReactCurrentOwner:py={current:null}},zY.Children={map:u,forEach:function(e,t,n){u(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return u(e,(function(){t++})),t},toArray:function(e){return u(e,(function(e){return e}))||[]},only:function(e){if(!s(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},zY.Component=r,zY.Fragment=WY,zY.Profiler=VY,zY.PureComponent=i,zY.StrictMode=GY,zY.Suspense=YY,zY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=by,zY.cloneElement=function(e,t,n){var r,o,i,a,s,l,c;if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");if(r=tJ({},e.props),o=e.key,i=e.ref,a=e._owner,null!=t)for(l in void 0!==t.ref&&(i=t.ref,a=py.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)dy.call(t,l)&&!fy.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l]);if(1==(l=arguments.length-2))r.children=n;else if(1>>1],t);)e[n]=t,e[i]=r,i=n}function n(e){return 0===e.length?null:e[0]}function r(e){var t,n,r,i,a,s,l,c,u;if(0===e.length)return null;if(t=e[0],(n=e.pop())!==t){e[0]=n;e:for(r=0,i=e.length,a=i>>>1;ro(l=e[s],n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function i(e){for(var o=n(m);null!==o;){if(null===o.callback)r(m);else{if(!(o.startTime<=e))break;r(m),o.sortIndex=o.expirationTime,t(g,o)}o=n(m)}}function a(e){if(S=!1,i(e),!x)if(null!==n(g))x=!0,u(s);else{var t=n(m);null!==t&&d(a,t.startTime-e)}}function s(t,o){var s,c,u,p,f;x=!1,S&&(S=!1,C($),$=-1),w=!0,s=v;try{for(i(o),y=n(g);null!==y&&(!(y.expirationTime>o)||t&&!l());)"function"==typeof(c=y.callback)?(y.callback=null,v=y.priorityLevel,u=c(y.expirationTime<=o),o=e.unstable_now(),"function"==typeof u?y.callback=u:y===n(g)&&r(g),i(o)):r(g),y=n(g);return null!==y?p=!0:(null!==(f=n(m))&&d(a,f.startTime-o),p=!1),p}finally{y=null,v=s,w=!1}}function l(){return!(e.unstable_now()-N<_)}function c(){var t,n;if(null!==D){t=e.unstable_now(),N=t,n=!0;try{n=D(!0,t)}finally{n?j():(O=!1,D=null)}}else O=!1}function u(e){D=e,O||(O=!0,j())}function d(t,n){$=E((function(){t(e.unstable_now())}),n)}var p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T;"object"==typeof performance&&"function"==typeof performance.now?(p=performance,e.unstable_now=function(){return p.now()}):(f=Date,h=f.now(),e.unstable_now=function(){return f.now()-h}),g=[],m=[],b=1,y=null,v=3,w=!1,x=!1,S=!1,E="function"==typeof setTimeout?setTimeout:null,C="function"==typeof clearTimeout?clearTimeout:null,k="undefined"!=typeof setImmediate?setImmediate:null,"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling),O=!1,D=null,$=-1,_=5,N=-1,"function"==typeof k?j=function(){k(c)}:"undefined"!=typeof MessageChannel?(P=new MessageChannel,T=P.port2,P.port1.onmessage=c,j=function(){T.postMessage(null)}):j=function(){E(c,0)},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(){x||w||(x=!0,u(s))},e.unstable_forceFrameRate=function(e){0>e||125c?(r.sortIndex=i,t(m,r),null===n(g)&&r===n(m)&&(S?(C($),$=-1):S=!0,d(a,i-c))):(r.sortIndex=l,t(g,r),x||w||(x=!0,u(s))),r},e.unstable_shouldYield=l,e.unstable_wrapCallback=function(e){var t=v;return function(){var n=v;v=t;try{return e.apply(this,arguments)}finally{v=n}}}}(_y={}),$y.exports=_y,Ny=yy,jy=$y.exports,Py=new Set,Ty={},Iy=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Ay=Object.prototype.hasOwnProperty,Ry=/^[: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]*$/,Fy={},My={},Ly={},"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Ly[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Ly[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Ly[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Ly[e]=new m(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){Ly[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Ly[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Ly[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Ly[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Ly[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)})),By=/[\-:]([a-z])/g,"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(By,b);Ly[t]=new m(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(By,b);Ly[t]=new m(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(By,b);Ly[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Ly[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),Ly.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Ly[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)})),zy=Ny.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hy=Symbol.for("react.element"),Uy=Symbol.for("react.portal"),Wy=Symbol.for("react.fragment"),Gy=Symbol.for("react.strict_mode"),Vy=Symbol.for("react.profiler"),qy=Symbol.for("react.provider"),Xy=Symbol.for("react.context"),Ky=Symbol.for("react.forward_ref"),Yy=Symbol.for("react.suspense"),Jy=Symbol.for("react.suspense_list"),Qy=Symbol.for("react.memo"),Zy=Symbol.for("react.lazy"),ev=Symbol.for("react.offscreen"),tv=Symbol.iterator,nv=Object.assign,ov=!1,iv=Array.isArray,WK=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((av=av||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=av.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},sv="undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t){MSApp.execUnsafeLocalFunction((function(){return WK(e,t)}))}:WK,lv={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},cv=["Webkit","ms","Moz","O"],Object.keys(lv).forEach((function(e){cv.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lv[t]=lv[e]}))})),uv=nv({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}),dv=null,pv=null,fv=null,hv=null,gv=!1,mv=!1,Iy)try{bv={},Object.defineProperty(bv,"passive",{get:function(){mv=!0}}),window.addEventListener("test",bv,bv),window.removeEventListener("test",bv,bv)}catch(WK){mv=!1}yv=!1,vv=null,wv=!1,xv=null,Sv={onError:function(e){yv=!0,vv=e}},Ev=jy.unstable_scheduleCallback,Cv=jy.unstable_cancelCallback,kv=jy.unstable_shouldYield,Ov=jy.unstable_requestPaint,Dv=jy.unstable_now,$v=jy.unstable_getCurrentPriorityLevel,_v=jy.unstable_ImmediatePriority,Nv=jy.unstable_UserBlockingPriority,jv=jy.unstable_NormalPriority,Pv=jy.unstable_LowPriority,Tv=jy.unstable_IdlePriority,Iv=null,Av=null,Rv=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Fv(e)/Mv|0)|0},Fv=Math.log,Mv=Math.LN2,Lv=64,Bv=4194304,zv=0,qv=!1,Xv=[],Kv=null,Yv=null,Jv=null,Qv=new Map,Zv=new Map,ew=[],tw="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(" "),nw=zy.ReactCurrentBatchConfig,rw=!0,ow=null,iw=null,aw=null,sw=null,lw={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cw=Ae(lw),uw=nv({},lw,{view:0,detail:0}),dw=Ae(uw),gw=nv({},uw,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fe,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!==hw&&(hw&&"mousemove"===e.type?(pw=e.screenX-hw.screenX,fw=e.screenY-hw.screenY):fw=pw=0,hw=e),pw)},movementY:function(e){return"movementY"in e?e.movementY:fw}}),mw=Ae(gw),bw=nv({},gw,{dataTransfer:0}),yw=Ae(bw),vw=nv({},uw,{relatedTarget:0}),ww=Ae(vw),xw=nv({},lw,{animationName:0,elapsedTime:0,pseudoElement:0}),Sw=Ae(xw),Ew=nv({},lw,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cw=Ae(Ew),kw=nv({},lw,{data:0}),Ow=Ae(kw),Dw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$w={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"},_w={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Nw=nv({},uw,{key:function(e){if(e.key){var t=Dw[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Pe(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?$w[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fe,charCode:function(e){return"keypress"===e.type?Pe(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Pe(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jw=Ae(Nw),Pw=nv({},gw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tw=Ae(Pw),Iw=nv({},uw,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fe}),Aw=Ae(Iw),Rw=nv({},lw,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fw=Ae(Rw),Mw=nv({},gw,{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}),Lw=Ae(Mw),Bw=[9,13,27,32],zw=Iy&&"CompositionEvent"in window,Hw=null,Iy&&"documentMode"in document&&(Hw=document.documentMode),Uw=Iy&&"TextEvent"in window&&!Hw,Ww=Iy&&(!zw||Hw&&8=Hw),Gw=String.fromCharCode(32),Vw=!1,qw=!1,Xw={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},Kw=null,Yw=null,Jw=!1,Iy&&(Iy?((Zw="oninput"in document)||((ex=document.createElement("div")).setAttribute("oninput","return;"),Zw="function"==typeof ex.oninput),Qw=Zw):Qw=!1,Jw=Qw&&(!document.documentMode||9=document.documentMode,rx=null,ox=null,ix=null,ax=!1,sx={animationend:it("Animation","AnimationEnd"),animationiteration:it("Animation","AnimationIteration"),animationstart:it("Animation","AnimationStart"),transitionend:it("Transition","TransitionEnd")},lx={},cx={},Iy&&(cx=document.createElement("div").style,"AnimationEvent"in window||(delete sx.animationend.animation,delete sx.animationiteration.animation,delete sx.animationstart.animation),"TransitionEvent"in window||delete sx.transitionend.transition),ux=at("animationend"),dx=at("animationiteration"),px=at("animationstart"),fx=at("transitionend"),hx=new Map,gx="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(" ");for(mx=0;mx=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},pC=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},fC=function(e,t){return!1===(!(arguments.length>1&&void 0!==t)||t)?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},hC=function(e){var t,n=vC(e,YE.TITLE),r=vC(e,"titleTemplate");return r&&n?r.replace(/%s/g,(function(){return Array.isArray(n)?n.join(""):n})):(t=vC(e,"defaultTitle"),n||t||void 0)},gC=function(e){return vC(e,"onChangeClientState")||function(){}},mC=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return cC({},e,t)}),{})},bC=function(e,t){return t.filter((function(e){return void 0!==e[YE.BASE]})).map((function(e){return e[YE.BASE]})).reverse().reduce((function(t,n){var r,o,i;if(!t.length)for(r=Object.keys(n),o=0;o=0;n--)if((r=e[n]).hasOwnProperty(t))return r[t];return null},wC=function(e){return{baseTag:bC([QE,"target"],e),bodyAttributes:mC(XE,e),defer:vC(e,"defer"),encode:vC(e,"encodeSpecialCharacters"),htmlAttributes:mC(KE,e),linkTags:yC(YE.LINK,[tC,QE],e),metaTags:yC(YE.META,["name","charset","http-equiv","property",eC],e),noscriptTags:yC(YE.NOSCRIPT,[ZE],e),onChangeClientState:gC(e),scriptTags:yC(YE.SCRIPT,["src",ZE],e),styleTags:yC(YE.STYLE,[JE],e),title:hC(e),titleAttributes:mC("titleAttributes",e)}},VK=Date.now(),xC=function(e){var t=Date.now();t-VK>16?(VK=t,e(t)):setTimeout((function(){xC(e)}),0)},SC=function(e){return clearTimeout(e)},EC="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||xC:global.requestAnimationFrame||xC,CC="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||SC:global.cancelAnimationFrame||SC,kC=function(){return console&&"function"==typeof console.warn&&void 0},OC=null,DC=function(e){OC&&CC(OC),e.defer?OC=EC((function(){$C(e,(function(){OC=null}))})):($C(e),OC=null)},$C=function(e,t){var n,r,o,i=e.baseTag,a=e.htmlAttributes,s=e.linkTags,l=e.metaTags,c=e.noscriptTags,u=e.onChangeClientState,d=e.scriptTags,p=e.styleTags,f=e.title,h=e.titleAttributes;jC(YE.BODY,e.bodyAttributes),jC(YE.HTML,a),NC(f,h),n={baseTag:PC(YE.BASE,i),linkTags:PC(YE.LINK,s),metaTags:PC(YE.META,l),noscriptTags:PC(YE.NOSCRIPT,c),scriptTags:PC(YE.SCRIPT,d),styleTags:PC(YE.STYLE,p)},r={},o={},Object.keys(n).forEach((function(e){var t=n[e],i=t.newTags,a=t.oldTags;i.length&&(r[e]=i),a.length&&(o[e]=n[e].oldTags)})),t&&t(),u(e,r,o)},_C=function(e){return Array.isArray(e)?e.join(""):e},NC=function(e,t){void 0!==e&&document.title!==e&&(document.title=_C(e)),jC(YE.TITLE,t)},jC=function(e,t){var n,r,o,i,a,s,l,c,u,d=document.getElementsByTagName(e)[0];if(d){for(r=(n=d.getAttribute(iC))?n.split(","):[],o=[].concat(r),i=Object.keys(t),a=0;a=0;u--)d.removeAttribute(o[u]);r.length===o.length?d.removeAttribute(iC):d.getAttribute(iC)!==i.join(",")&&d.setAttribute(iC,i.join(","))}},PC=function(e,t){var n=document.head||document.querySelector(YE.HEAD),r=n.querySelectorAll(e+"["+iC+"]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n,r=document.createElement(e);for(n in t)t.hasOwnProperty(n)&&(n===ZE?r.innerHTML=t.innerHTML:n===JE?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(n,void 0===t[n]?"":t[n]));r.setAttribute(iC,"true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},TC=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}),"")},IC=function(e,t,n,r){var o=TC(n),i=_C(t);return o?"<"+e+" "+iC+'="true" '+o+">"+fC(i,r)+"":"<"+e+" "+iC+'="true">'+fC(i,r)+""},AC=function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===ZE||e===JE)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+fC(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===oC.indexOf(e);return t+"<"+e+" "+iC+'="true" '+o+(a?"/>":">"+i+"")}),"")},RC=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[nC[n]||n]=e[n],t}),n)},FC=function(e,t){var n=arguments.length>1&&void 0!==t?t:{};return Object.keys(e).reduce((function(t,n){return t[rC[n]||n]=e[n],t}),n)},MC=function(e,t,n){var r,o=((r={key:t})[iC]=!0,r),i=RC(n,o);return[rJ.createElement(YE.TITLE,i,t)]},LC=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[iC]=!0,r);return Object.keys(t).forEach((function(e){var n=nC[e]||e;n===ZE||n===JE?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),rJ.createElement(e,o)}))},BC=function(e,t,n){switch(e){case YE.TITLE:return{toComponent:function(){return MC(0,t.title,t.titleAttributes)},toString:function(){return IC(e,t.title,t.titleAttributes,n)}};case XE:case KE:return{toComponent:function(){return RC(t)},toString:function(){return TC(t)}};default:return{toComponent:function(){return LC(e,t)},toString:function(){return AC(e,t,n)}}}},HC=function(e){var t,n;return n=t=function(t){function n(){return sC(this,n),pC(this,t.apply(this,arguments))}return uC(n,t),n.prototype.shouldComponentUpdate=function(e){return!cJ(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case YE.SCRIPT:case YE.NOSCRIPT:return{innerHTML:t};case YE.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;return cC({},r,((t={})[n.type]=[].concat(r[n.type]||[],[cC({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),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 YE.TITLE:return cC({},o,((t={})[r.type]=a,t.titleAttributes=cC({},i),t));case YE.BODY:return cC({},o,{bodyAttributes:cC({},i)});case YE.HTML:return cC({},o,{htmlAttributes:cC({},i)})}return cC({},o,((n={})[r.type]=cC({},i),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=cC({},t);return Object.keys(e).forEach((function(t){var r;n=cC({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return rJ.Children.forEach(e,(function(e){var o,i,a,s;if(e&&e.props)switch(i=(o=e.props).children,a=dC(o,["children"]),s=FC(a),n.warnOnInvalidChildren(e,i),e.type){case YE.LINK:case YE.META:case YE.NOSCRIPT:case YE.SCRIPT:case YE.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=dC(t,["children"]),o=cC({},r);return n&&(o=this.mapChildrenToProps(n,o)),rJ.createElement(e,o)},lC(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(rJ.Component),t.propTypes={base:sJ.object,bodyAttributes:sJ.object,children:sJ.oneOfType([sJ.arrayOf(sJ.node),sJ.node]),defaultTitle:sJ.string,defer:sJ.bool,encodeSpecialCharacters:sJ.bool,htmlAttributes:sJ.object,link:sJ.arrayOf(sJ.object),meta:sJ.arrayOf(sJ.object),noscript:sJ.arrayOf(sJ.object),onChangeClientState:sJ.func,script:sJ.arrayOf(sJ.object),style:sJ.arrayOf(sJ.object),title:sJ.string,titleAttributes:sJ.object,titleTemplate:sJ.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=zC({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n},UC=function(){return null},WC=lJ(wC,DC,zC=function(e){var t=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.scriptTags,l=e.styleTags,c=e.title,u=void 0===c?"":c,d=e.titleAttributes;return{base:BC(YE.BASE,e.baseTag,n),bodyAttributes:BC(XE,t,n),htmlAttributes:BC(KE,r,n),link:BC(YE.LINK,o,n),meta:BC(YE.META,i,n),noscript:BC(YE.NOSCRIPT,a,n),script:BC(YE.SCRIPT,s,n),style:BC(YE.STYLE,l,n),title:BC(YE.TITLE,{title:u,titleAttributes:d},n)}})(UC),(GC=HC(WC)).renderStatic=GC.rewind,VC={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"};const dJ=(e,t)=>{const n=yy.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:a,...s},l)=>{return yy.createElement("svg",{ref:l,...VC,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...s},[...t.map((([e,t])=>yy.createElement(e,t))),...(Array.isArray(a)?a:[a])||[]]);var c}));return n.displayName=`${e}`,n},pJ=dJ("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]),fJ=dJ("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"}]]),hJ=dJ("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),gJ=dJ("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),mJ=dJ("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),bJ=dJ("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),yJ=dJ("FileClock",[["path",{d:"M16 22h2c.5 0 1-.2 1.4-.6.4-.4.6-.9.6-1.4V7.5L14.5 2H6c-.5 0-1 .2-1.4.6C4.2 3 4 3.5 4 4v3",key:"9lo3o3"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]),vJ=dJ("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 9v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V9",key:"c89w8i"}],["path",{d:"M12 12v3",key:"158kv8"}]]),wJ=dJ("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"}]]),xJ=dJ("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"}]]),SJ=dJ("Layout",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"9",x2:"9",y1:"21",y2:"9",key:"wpwpyp"}]]),EJ=dJ("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),CJ=dJ("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"}]]),kJ=dJ("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),OJ=dJ("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]),DJ=dJ("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),$J=dJ("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"9",x2:"9",y1:"3",y2:"21",key:"13tij5"}]]),_J=dJ("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"15",x2:"15",y1:"3",y2:"21",key:"1hpv9i"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),NJ=dJ("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"}]]),jJ=dJ("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"}]]),PJ=dJ("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"}]]),TJ=dJ("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"}]]),IJ=dJ("TextCursorInput",[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1",key:"18xjzo"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5",key:"fj48gi"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M9 7v10",key:"1vc8ob"}]]),AJ=dJ("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),RJ=dJ("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"}]]),FJ=dJ("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"}]]);qC=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),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){var t,n;if(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)),t=this.tags[this.tags.length-1],this.isSpeedy){n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case ZC:e.return=la(e.value,e.length);break;case tk:return ia([Bi(e,{value:Pi(e.value,"@","@"+YC)})],r);case QC:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ia([Bi(e,{props:[Pi(t,/:(read-\w+)/,":"+KC+"$1")]})],r);case"::placeholder":return ia([Bi(e,{props:[Pi(t,/:(plac\w+)/,":"+YC+"input-$1")]}),Bi(e,{props:[Pi(t,/:(plac\w+)/,":"+KC+"$1")]}),Bi(e,{props:[Pi(t,/:(plac\w+)/,XC+"input-$1")]})],r)}return""}))}}],wk=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g=e.key;return"css"===g&&(t=document.querySelectorAll("style[data-emotion]:not([data-s])"),Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))),n=e.stylisPlugins||vk,r={},i=[],o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+g+' "]'),(function(e){var t,n=e.getAttribute("data-emotion").split(" ");for(t=1;t=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,{name:c,styles:o,next:_k}},jk=function(e,t,n){var r=e.key+"-"+t.name;!1!==n||void 0!==e.registered[r]||(e.registered[r]=t.styles)},Pk=function(e,t,n){var r,o;if(jk(e,t,n),r=e.key+"-"+t.name,void 0===e.inserted[t.name]){o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},Tk=function(e){var t,n,r,o,i=wk(e);return i.sheet.speedy=function(e){this.isSpeedy=e},i.compat=!0,t=function(){var e,t,n,r;for(e=arguments.length,t=new Array(e),n=0;n1&&void 0!==t&&t,i={map:this.cache};return e.forEach((function(e){var t,n;i=i?null===(t=i)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):void 0})),null!==(n=i)&&void 0!==n&&n.value&&o&&(i.value[1]=this.cacheCallTimes++),null===(r=i)||void 0===r?void 0:r.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,o,i,a=this;this.has(t)||(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET&&(r=this.keys.reduce((function(e,t){var n=Ua(e,2)[1];return a.internalGet(t)[1]1&&void 0!==n?n:{},h=arguments.length>2&&void 0!==r?r:{root:!0,parentSelectors:[]},g=h.root,m=h.injectHash,b=h.parentSelectors,y=f.hashId,v=f.layer;return i=f.hashPriority,s=void 0===(a=f.transformers)?[]:a,l="",c={},u=function e(t,n){var r=arguments.length>1&&void 0!==n?n:[];return t.forEach((function(t){Array.isArray(t)?e(t,r):t&&r.push(t)})),r}(Array.isArray(t)?t:[t]),u.forEach((function(t){var n,r="string"!=typeof t||g?t:{};"string"==typeof r?l+="".concat(r,"\n"):r._keyframe?o(r):(n=s.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(n).forEach((function(t){var r,a,s,u,d,p,h,v,w=n[t];if("object"!==Ei(w)||!w||"animationName"===t&&w._keyframe||function(e){return"object"===Ei(e)&&e&&("_skip_check_"in e||jD in e)}(w)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;sD[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(o(t),r=t.getName(y)),l+="".concat(n,":").concat(r,";")};v=null!==(h=null==w?void 0:w.value)&&void 0!==h?h:w,"object"===Ei(w)&&null!=w&&w[jD]&&Array.isArray(v)?v.forEach((function(n){e(t,n)})):e(t,v)}else r=!1,a=t.trim(),s=!1,(g||m)&&y?a.startsWith("@")?r=!0:a=function(e,t,n){var r,o;return t?(r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,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(xa(n.slice(1))).join(" ")})).join(",")):e}(t,y,i):!g||y||"&"!==a&&""!==a||(a="",s=!0),d=(u=Ua(e(w,f,{root:s,injectHash:r,parentSelectors:[].concat(xa(b),[a])}),2))[0],p=u[1],c=Ea(Ea({},c),p),l+="".concat(a).concat(d)})))})),g?v&&function(){var e,t,n,r,o,i;return void 0===YO&&(e="@layer ".concat(XO," { .").concat(XO,' { content: "').concat(KO,'"!important; } }'),t=function(e){e.className=XO},YO=!!Pa()&&(Ba(e,XO),(o=document.createElement("div")).style.position="fixed",o.style.left="0",o.style.top="0",null==t||t(o),document.body.appendChild(o),i=null===(n=getComputedStyle(o).content)||void 0===n?void 0:n.includes(KO),null===(r=o.parentNode)||void 0===r||r.removeChild(o),La(XO),i)),YO}()&&(p=(d=v.split(","))[d.length-1].trim(),l="@layer ".concat(p," {").concat(l,"}"),d.length>1&&(l="@layer ".concat(v,"{%%%:%}").concat(l))):l="{".concat(l,"}"),[l,c]},TD=function(){function e(t,n){$i(this,e),ki(this,"name",void 0),ki(this,"style",void 0),ki(this,"_keyframe",!0),this.name=t,this.style=n}return Ni(e,[{key:"getName",value:function(e){var t=arguments.length>0&&void 0!==e?e:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e}(),_s(["borderTop","borderBottom"]),_s(["borderTop"]),_s(["borderBottom"]),_s(["borderLeft","borderRight"]),_s(["borderLeft"]),_s(["borderRight"]),ID=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],AD=function(e){return yy.memo((function(t){var n,r=t.children,o=t.prefix,i=t.speedy,a=t.getStyleManager,s=t.container,l=t.nonce,c=t.insertionPoint,u=t.stylisPlugins,d=t.linters,p=Oi(t,ID),f=yy.useContext(e),h=null!=o?o:f.sheet.key,g=null!=s?s:f.sheet.container,m=null!=i?i:f.sheet.isSpeedy,b=yy.useMemo((function(){var e,t=Tk({speedy:null!=m&&m,key:h,container:g,nonce:l,insertionPoint:c,stylisPlugins:u}),n=null===(e=global)||void 0===e?void 0:e.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;return n&&(t.cache=n.add(t.cache)),t}),[h,m,g,l,c,u]);return yy.useEffect((function(){null==a||a(b)}),[b]),n=ky.jsx(e.Provider,{value:b,children:r}),Boolean(Object.keys(p).length)||g?ky.jsx(MO,js(js({linters:d,container:g},p),{},{children:n})):n}))},RD=function(e){var t=e.token;return{buttonDefaultHover:(0,e.css)({backgroundColor:t.colorBgContainer,border:"1px solid ".concat(t.colorBorder),cursor:"pointer",":hover":{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},":active":{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive}})}},FD=function(e){return Object.fromEntries(Object.entries(e).map((function(e){var t=Ua(e,2);return[t[0],t[1].styles]})))},qK=MD={exports:{}},function(){function e(){var n,r,o,i,a,s=[];for(n=0;n0},e.prototype.connect_=function(){c$&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f$?(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(){c$&&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;p$.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}(),g$=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n0},e}(),S$="undefined"!=typeof WeakMap?new WeakMap:new l$,E$=function e(t){var n,r;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.");n=h$.getInstance(),r=new x$(t,n,this),S$.set(this,r)},["observe","unobserve","disconnect"].forEach((function(e){E$.prototype[e]=function(){var t;return(t=S$.get(this))[e].apply(t,arguments)}})),C$=void 0!==u$.ResizeObserver?u$.ResizeObserver:E$,k$=new Map,O$=new C$((function(e){e.forEach((function(e){var t,n=e.target;null===(t=k$.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),D$=function(){function e(){return $i(this,e),t.apply(this,arguments)}Ts(e,yy.Component);var t=Fs(e);return Ni(e,[{key:"render",value:function(){return this.props.children}}]),e}(),$$=yy.createContext(null),_$=yy.forwardRef(Ys),N$="rc-observer-key",(j$=yy.forwardRef(Js)).Collection=function(e){var t=e.children,n=e.onBatchResize,r=yy.useRef(0),o=yy.useRef([]),i=yy.useContext($$),a=yy.useCallback((function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return yy.createElement($$.Provider,{value:a},t)},P$=function(e){return+setTimeout(e,16)},T$=function(e){return clearTimeout(e)},"undefined"!=typeof window&&"requestAnimationFrame"in window&&(P$=function(e){return window.requestAnimationFrame(e)},T$=function(e){return window.cancelAnimationFrame(e)}),I$=0,A$=new Map,(R$=function(e,t){var n;return n=I$+=1,function t(r){if(0===r)Zs(n),e();else{var o=P$((function(){t(r-1)}));A$.set(n,o)}}(arguments.length>1&&void 0!==t?t:1),n}).cancel=function(e){var t=A$.get(e);return Zs(t),T$(t)};const HJ=yy.createContext({});F$="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;const UJ=yy.createContext(void 0),WJ={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},GJ={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({},WJ)},VJ="${label} is not a valid ${type}",qJ={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:GJ,TimePicker:WJ,Calendar:GJ,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:VJ,method:VJ,array:VJ,object:VJ,number:VJ,date:VJ,boolean:VJ,integer:VJ,float:VJ,regexp:VJ,email:VJ,url:VJ,hex:VJ},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};let XJ=Object.assign({},qJ.Modal),KJ=[];const YJ=()=>KJ.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),qJ.Modal),JJ=yy.createContext(void 0),QJ=(e,t)=>{const n=yy.useContext(JJ);return[yy.useMemo((()=>{var r;const o=t||qJ[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]),yy.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?qJ.locale:e}),[n])]},ZJ=e=>{const{locale:t={},children:n}=e;yy.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return KJ.push(t),XJ=YJ(),()=>{KJ=KJ.filter((e=>e!==t)),XJ=YJ()}}XJ=Object.assign({},qJ.Modal)}(t&&t.Modal);return e}),[t]);const r=yy.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return yy.createElement(JJ.Provider,{value:r},n)},eQ=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],tQ="5.9.0";M$={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"},L$="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),B$="[\\s|\\(]+(".concat(L$,")[,|\\s]+(").concat(L$,")[,|\\s]+(").concat(L$,")\\s*\\)?"),z$="[\\s|\\(]+(".concat(L$,")[,|\\s]+(").concat(L$,")[,|\\s]+(").concat(L$,")[,|\\s]+(").concat(L$,")\\s*\\)?"),H$={CSS_UNIT:new RegExp(L$),rgb:new RegExp("rgb"+B$),rgba:new RegExp("rgba"+z$),hsl:new RegExp("hsl"+B$),hsla:new RegExp("hsla"+z$),hsv:new RegExp("hsv"+B$),hsva:new RegExp("hsva"+z$),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})$/},U$=function(){function e(t,n){var r,o;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,o=yl(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=cl(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=hl(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=hl(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=pl(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=pl(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),gl(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=[dl(Math.round(e).toString(16)),dl(Math.round(t).toString(16)),dl(Math.round(n).toString(16)),dl((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*sl(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*sl(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(){var e,t,n,r;if(0===this.a)return"transparent";if(this.a<1)return!1;for(e="#"+gl(this.r,this.g,this.b,!1),t=0,n=Object.entries(M$);t=0)||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||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=ll(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=ll(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=ll(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=ll(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){var r,o,i;return void 0===n&&(n=50),r=this.toRgb(),o=new e(t).toRgb(),new e({r:(o.r-r.r)*(i=n/100)+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){var r,o,i;for(void 0===t&&(t=6),void 0===n&&(n=30),i=[this],(r=this.toHsl()).h=(r.h-((o=360/n)*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){var n,r,o,i,a,s;for(void 0===t&&(t=6),r=(n=this.toHsv()).h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%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){var n,r=this.toHsl(),o=r.h,i=[this],a=360/t;for(n=1;n{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},rQ={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"},oQ=Object.assign(Object.assign({},rQ),{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}),iQ=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>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},aQ=(e,t)=>new U$(e).setAlpha(t).toRgbString(),sQ=(e,t)=>new U$(e).darken(t).toHexString(),lQ=e=>{const t=kl(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]}},cQ=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:aQ(r,.88),colorTextSecondary:aQ(r,.65),colorTextTertiary:aQ(r,.45),colorTextQuaternary:aQ(r,.25),colorFill:aQ(r,.15),colorFillSecondary:aQ(r,.06),colorFillTertiary:aQ(r,.04),colorFillQuaternary:aQ(r,.02),colorBgLayout:sQ(n,4),colorBgContainer:sQ(n,0),colorBgElevated:sQ(n,0),colorBgSpotlight:aQ(r,.85),colorBorder:sQ(n,15),colorBorderSecondary:sQ(n,6)}},uQ=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=e*Math.pow(2.71828,(n-1)/5),o=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(o/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},dQ=Wa(Dl),pQ={token:oQ,hashed:!0},fQ=rJ.createContext(pQ);n_=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const r=n.getDerivativeToken(e),{override:o}=t,i=r_(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Nl(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=r_(n,["theme"]);let i=o;r&&(i=hQ(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a},gQ="anticon",mQ=yy.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:gQ}),bQ=(e,t,n,r,o)=>{const i=e/2,a=i,s=1*n/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*i-c,p=u,f=2*i-s,h=l,g=2*i-0,m=a,b=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${y}px 100%, 50% ${y}px, ${2*i-y}px 100%, ${y}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${p} L ${f} ${h} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},yQ={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},vQ=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),wQ=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"}}}),xQ=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},SQ=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),EQ=e=>({"&:focus-visible":Object.assign({},SQ(e))}),CQ="undefined"!=typeof CSSINJS_STATISTIC;let kQ=!0;const OQ={},DQ=(e,t)=>{const[n,r]=jl();return $s({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},$Q=(e,t,n,r)=>{const o=Ml(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},_Q=`-ant-${Date.now()}-${Math.random()}`,NQ=yy.createContext(!1),jQ=e=>{let{children:t,disabled:n}=e;const r=yy.useContext(NQ);return yy.createElement(NQ.Provider,{value:null!=n?n:r},t)},PQ=NQ,TQ=yy.createContext(void 0),IQ=e=>{let{children:t,size:n}=e;const r=yy.useContext(TQ);return yy.createElement(TQ.Provider,{value:n||r},t)},AQ=TQ;o_=["children"],i_=yy.createContext({}),a_=function(){function e(){return $i(this,e),t.apply(this,arguments)}Ts(e,yy.Component);var t=Fs(e);return Ni(e,[{key:"render",value:function(){return this.props.children}}]),e}(),s_="none",l_="appear",c_="enter",u_="leave",d_="none",p_="prepare",f_="start",h_="active",g_="end",m_="prepared",XK=Pa(),KK="undefined"!=typeof window?window:{},YK={animationend:zl("Animation","AnimationEnd"),transitionend:zl("Transition","TransitionEnd")},XK&&("AnimationEvent"in KK||delete YK.animationend.animation,"TransitionEvent"in KK||delete YK.transitionend.transition),b_=YK,y_={},Pa()&&(v_=document.createElement("div"),y_=v_.style),w_={},x_=Hl("animationend"),S_=Hl("transitionend"),E_=!(!x_||!S_),C_=x_||"animationend",k_=S_||"transitionend",O_=Pa()?yy.useLayoutEffect:yy.useEffect,D_=[p_,f_,h_,g_],$_=[p_,m_];const RQ=(ZK=JK=E_,"object"===Ei(JK)&&(ZK=JK.transitionSupport),(QK=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.visible,c=void 0===l||l,u=e.removeOnLeave,d=void 0===u||u,p=e.forceRender,f=e.children,h=e.motionName,g=e.leavedClassName,m=e.eventProps,b=function(e,t){return!(!e.motionName||!ZK||!1===t)}(e,yy.useContext(i_).motion),y=yy.useRef(),v=yy.useRef(),w=function(e,t,n,r){function o(){return n()}function i(){A(s_,!0),M(null,!0)}function a(e){var t,n,r=o();e&&!e.deadline&&e.target!==r||(t=z.current,I===l_&&t?n=null==O?void 0:O(r,e):I===c_&&t?n=null==D?void 0:D(r,e):I===u_&&t&&(n=null==$?void 0:$(r,e)),I!==s_&&t&&!1!==n&&i())}var s,l,c=r.motionEnter,u=void 0===c||c,d=r.motionAppear,p=void 0===d||d,f=r.motionLeave,h=void 0===f||f,g=r.motionDeadline,m=r.motionLeaveImmediately,b=r.onAppearPrepare,y=r.onEnterPrepare,v=r.onLeavePrepare,w=r.onAppearStart,x=r.onEnterStart,S=r.onLeaveStart,E=r.onAppearActive,C=r.onEnterActive,k=r.onLeaveActive,O=r.onAppearEnd,D=r.onEnterEnd,$=r.onLeaveEnd,_=r.onVisibleChanged,N=Ua(Tl(),2),j=N[0],P=N[1],T=Ua(Tl(s_),2),I=T[0],A=T[1],R=Ua(Tl(null),2),F=R[0],M=R[1],L=yy.useRef(!1),B=yy.useRef(null),z=yy.useRef(!1),H=Ua(function(e){function t(e){e&&(e.removeEventListener(k_,n),e.removeEventListener(C_,n))}var n,r=yy.useRef(),o=yy.useRef(e);return o.current=e,n=yy.useCallback((function(e){o.current(e)}),[]),yy.useEffect((function(){return function(){t(r.current)}}),[]),[function(e){r.current&&r.current!==e&&t(r.current),e&&e!==r.current&&(e.addEventListener(k_,n),e.addEventListener(C_,n),r.current=e)},t]}(a),1)[0],U=function(e){var t,n,r;switch(e){case l_:return ki(t={},p_,b),ki(t,f_,w),ki(t,h_,E),t;case c_:return ki(n={},p_,y),ki(n,f_,x),ki(n,h_,C),n;case u_:return ki(r={},p_,v),ki(r,f_,S),ki(r,h_,k),r;default:return{}}},W=yy.useMemo((function(){return U(I)}),[I]),G=function(e,t,n){var r=Ua(Tl(d_),2),o=r[0],i=r[1],a=function(){function e(){R$.cancel(t.current)}var t=yy.useRef(null);return yy.useEffect((function(){return function(){e()}}),[]),[function n(r,o){var i,a=arguments.length>1&&void 0!==o?o:2;e(),i=R$((function(){a<=1?r({isCanceled:function(){return i!==t.current}}):n(r,a-1)})),t.current=i},e]}(),s=Ua(a,2),l=s[0],c=s[1],u=t?$_:D_;return O_((function(){var e,t,r;o!==d_&&o!==g_&&(e=u.indexOf(o),t=u[e+1],!1===(r=n(o))?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})))}),[e,o]),yy.useEffect((function(){return function(){c()}}),[]),[function(){i(p_,!0)},o]}(I,!e,(function(e){var t,n;return e===p_?!!(t=W[p_])&&t(o()):(X in W&&M((null===(n=W[X])||void 0===n?void 0:n.call(W,o(),null))||null),X===h_&&(H(o()),g>0&&(clearTimeout(B.current),B.current=setTimeout((function(){a({deadline:!0})}),g))),X===m_&&i(),!0)})),V=Ua(G,2),q=V[0],X=V[1],K=Wl(X);return z.current=K,O_((function(){var n,r,o;P(t),n=L.current,L.current=!0,!n&&t&&p&&(r=l_),n&&t&&u&&(r=c_),(n&&!t&&h||!n&&m&&!t&&h)&&(r=u_),o=U(r),r&&(e||o[p_])?(A(r),q()):A(s_)}),[t]),yy.useEffect((function(){(I===l_&&!p||I===c_&&!u||I===u_&&!h)&&A(s_)}),[p,u,h]),yy.useEffect((function(){return function(){L.current=!1,clearTimeout(B.current)}}),[]),s=yy.useRef(!1),yy.useEffect((function(){j&&(s.current=!0),void 0!==j&&I===s_&&((s.current||j)&&(null==_||_(j)),s.current=!0)}),[j,I]),l=F,W[p_]&&X===f_&&(l=Ea({transition:"none"},l)),[I,X,l,null!=j?j:t]}(b,c,(function(){try{return y.current instanceof HTMLElement?y.current:Vs(v.current)}catch(fY){return null}}),e),x=Ua(w,4),S=x[0],E=x[1],C=x[2],k=x[3],O=yy.useRef(k);return k&&(O.current=!0),n=yy.useCallback((function(e){y.current=e,zs(t,e)}),[t]),o=Ea(Ea({},m),{},{visible:c}),f?S===s_?r=k?f(Ea({},o),n):!d&&O.current&&g?f(Ea(Ea({},o),{},{className:g}),n):p||!d&&!g?f(Ea(Ea({},o),{},{style:{display:"none"}}),n):null:(E===p_?a="prepare":Wl(E)?a="active":E===f_&&(a="start"),s=Ul(h,"".concat(S,"-").concat(a)),r=f(Ea(Ea({},o),{},{className:zJ(Ul(h,S),(i={},ki(i,s,s&&a),ki(i,h,"string"==typeof h),i)),style:C}),n)):r=null,yy.isValidElement(r)&&Ws(r)&&(r.ref||(r=yy.cloneElement(r,{ref:n}))),yy.createElement(a_,{ref:v},r)}))).displayName="CSSMotion",QK);__="add",N_="keep",j_="remove",P_="removed",T_=["component","children","onVisibleChanged","onAllRemoved"],I_=["status"],A_=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const FQ=function(e,t){var n=arguments.length>1&&void 0!==t?t:RQ,r=function(){function e(){var n,r,o,i;for($i(this,e),r=arguments.length,o=new Array(r),i=0;i1&&void 0!==t?t:[],o=[],i=0,a=r.length,s=Vl(arguments.length>0&&void 0!==e?e:[]),l=Vl(r);return s.forEach((function(e){var t,n,r=!1;for(t=i;t1})).forEach((function(e){(o=o.filter((function(t){return t.key!==e||t.status!==j_}))).forEach((function(t){t.key===e&&(t.status=N_)}))})),o}(n,r);return{keyEntities:o.filter((function(e){var t=n.find((function(t){return e.key===t.key}));return!t||t.status!==P_||e.status!==j_}))}}}]),e}();return ki(r,"defaultProps",{component:"div"}),r}(E_);R_=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r({getPrefixCls:(e,t)=>t||(e?`${Xl()}-${e}`:Xl()),getIconPrefixCls:Kl,getRootPrefixCls:()=>LQ||Xl(),getTheme:()=>zQ}),UQ=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:p,popupMatchSelectWidth:f,popupOverflow:h,legacyLocale:g,parentContext:m,iconPrefixCls:b,theme:y,componentDisabled:v,segmented:w,statistic:x,spin:S,calendar:E,carousel:C,cascader:k,collapse:O,typography:D,checkbox:$,descriptions:_,divider:N,drawer:j,skeleton:P,steps:T,image:I,layout:A,list:R,mentions:F,modal:M,progress:L,result:B,slider:z,breadcrumb:H,menu:U,pagination:W,input:G,empty:V,badge:q,radio:X,rate:K,switch:Y,transfer:J,avatar:Q,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue,wave:de}=e,pe=yy.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]),fe=b||m.iconPrefixCls||gQ,he=fe!==m.iconPrefixCls,ge=n||m.csp,me=DQ(fe,ge),be=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:pQ;return ka((()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach((t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])})),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})}),[n,r],((e,t)=>e.some(((e,n)=>!Na(e,t[n],!0)))))}(y,m.theme),ye={csp:ge,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=f?f:p,popupOverflow:h,getPrefixCls:pe,iconPrefixCls:fe,theme:be,segmented:w,statistic:x,spin:S,calendar:E,carousel:C,cascader:k,collapse:O,typography:D,checkbox:$,descriptions:_,divider:N,drawer:j,skeleton:P,steps:T,image:I,input:G,layout:A,list:R,mentions:F,modal:M,progress:L,result:B,slider:z,breadcrumb:H,menu:U,pagination:W,empty:V,badge:q,radio:X,rate:K,switch:Y,transfer:J,avatar:Q,message:Z,tag:ee,table:te,card:ne,tabs:re,timeline:oe,timePicker:ie,upload:ae,notification:se,tree:le,colorPicker:ce,datePicker:ue,wave:de},ve=Object.assign({},m);Object.keys(ye).forEach((e=>{void 0!==ye[e]&&(ve[e]=ye[e])})),MQ.forEach((t=>{const n=e[t];n&&(ve[t]=n)}));const we=ka((()=>ve),ve,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),xe=yy.useMemo((()=>({prefixCls:fe,csp:ge})),[fe,ge]);let Se=he?me(t):t;const Ee=yy.useMemo((()=>{var e,t,n,r;return il((null===(e=qJ.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=we.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=we.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[we,null==a?void 0:a.validateMessages]);Object.keys(Ee).length>0&&(Se=yy.createElement(UJ.Provider,{value:Ee},t)),s&&(Se=yy.createElement(ZJ,{locale:s,_ANT_MARK__:"internalMark"},Se)),(fe||ge)&&(Se=yy.createElement(HJ.Provider,{value:xe},Se)),l&&(Se=yy.createElement(IQ,{size:l},Se)),Se=yy.createElement(ql,null,Se);const Ce=yy.useMemo((()=>{const e=be||{},{algorithm:t,token:n,components:r}=e,o=R_(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?Wa(t):dQ,a={};return Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Wa(r.algorithm)),delete r.algorithm),a[t]=r})),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},oQ),n),components:a})}),[be]);return y&&(Se=yy.createElement(fQ.Provider,{value:Ce},Se)),void 0!==v&&(Se=yy.createElement(jQ,{disabled:v},Se)),yy.createElement(mQ.Provider,{value:we},Se)},WQ=e=>{const t=yy.useContext(mQ),n=yy.useContext(JJ);return yy.createElement(UQ,Object.assign({parentContext:t,legacyLocale:n},e))};WQ.ConfigContext=mQ,WQ.SizeContext=AQ,WQ.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(LQ=t),void 0!==n&&(BQ=n),r&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?function(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 U$(e),i=kl(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 U$(t.primaryColor),i=kl(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 U$(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);Pa()&&Ba(n,`${_Q}-dynamic-theme`)}(Xl(),r):zQ=r)},WQ.useConfig=function(){return{componentDisabled:yy.useContext(PQ),componentSize:yy.useContext(AQ)}},Object.defineProperty(WQ,"SizeContext",{get:()=>AQ});const GQ={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"};F_=function(e){var t=yy.useContext(HJ),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),yy.useEffect((function(){var t=Jl(e.current);Ba(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},M_=["icon","className","onClick","style","primaryColor","secondaryColor"],L_={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},(B_=function(e){var t,n,r,o=e.icon,i=e.className,a=e.onClick,s=e.style,l=e.primaryColor,c=e.secondaryColor,u=Oi(e,M_),d=yy.useRef(),p=L_;return l&&(p={primaryColor:l,secondaryColor:c||tc(l)}),F_(d),n=Ql(o),r="icon should be icon definiton, but got ".concat(o),_a(n,"[@ant-design/icons] ".concat(r)),Ql(o)?((t=o)&&"function"==typeof t.icon&&(t=Ea(Ea({},t),{},{icon:t.icon(p.primaryColor,p.secondaryColor)})),ec(t.icon,"svg-".concat(t.name),Ea(Ea({className:i,onClick:a,style:s,"data-icon":t.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))):null}).displayName="IconReact",B_.getTwoToneColors=function(){return Ea({},L_)},B_.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;L_.primaryColor=t,L_.secondaryColor=n||tc(t),L_.calculated=!!n};const VQ=B_;z_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"],rc(t_.primary),(H_=yy.forwardRef((function(e,t){var n,r,o,i,a,s=e.className,l=e.icon,c=e.spin,u=e.rotate,d=e.tabIndex,p=e.onClick,f=e.twoToneColor,h=Oi(e,z_),g=yy.useContext(HJ),m=g.prefixCls,b=void 0===m?"anticon":m,y=zJ(g.rootClassName,b,(ki(n={},"".concat(b,"-").concat(l.name),!!l.name),ki(n,"".concat(b,"-spin"),!!c||"loading"===l.name),n),s),v=d;return void 0===v&&p&&(v=-1),r=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,i=(o=Ua(nc(f),2))[0],a=o[1],yy.createElement("span",fa({role:"img","aria-label":l.name},h,{ref:t,tabIndex:v,onClick:p,className:y}),yy.createElement(VQ,{icon:l,primaryColor:i,secondaryColor:a,style:r}))}))).displayName="AntdIcon",H_.getTwoToneColor=function(){var e=VQ.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},H_.setTwoToneColor=rc;const qQ=H_,XQ=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:GQ}))})),KQ={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"},YQ=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:KQ}))})),JQ={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"},QQ=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:JQ}))})),ZQ={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"},eZ=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:ZQ}))})),tZ={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"},nZ=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:tZ}))}));U_="".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]+/),W_="aria-",G_="data-";const{isValidElement:rZ}=oJ,oZ=e=>"object"==typeof e&&null!=e&&1===e.nodeType,iZ=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,aZ=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,lZ=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},cZ=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!oZ(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;oZ(h)&&d(h);){if(h=lZ(h),h===p){f.push(h);break}null!=h&&h===document.body&&aZ(h)&&!aZ(document.documentElement)||null!=h&&aZ(h,u)&&f.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:y}=window,{height:v,width:w,top:x,right:S,bottom:E,left:C}=e.getBoundingClientRect();let k="start"===s||"nearest"===s?x:"end"===s?E:x+v/2,O="center"===l?C+w/2:"end"===l?S:C;const D=[];for(let $=0;$=0&&C>=0&&E<=m&&S<=g&&x>=r&&E<=i&&C>=c&&S<=o)return D;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),_=parseInt(u.borderRightWidth,10),N=parseInt(u.borderBottomWidth,10);let j=0,P=0;const T="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-_:0,I="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-N:0,A="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,R="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)j="start"===s?k:"end"===s?k-m:"nearest"===s?sZ(y,y+m,m,h,N,y+k,y+k+v,v):k-m/2,P="start"===l?O:"center"===l?O-g/2:"end"===l?O-g:sZ(b,b+g,g,d,_,b+O,b+O+w,w),j=Math.max(0,j+y),P=Math.max(0,P+b);else{j="start"===s?k-r-h:"end"===s?k-i+N+I:"nearest"===s?sZ(r,i,t,h,N+I,k,k+v,v):k-(r+t/2)+I/2,P="start"===l?O-c-d:"center"===l?O-(c+n/2)+T/2:"end"===l?O-o+_+T:sZ(c,o,n,d,_+T,O,O+w,w);const{scrollLeft:a,scrollTop:u}=e;j=Math.max(0,Math.min(u+j/R,e.scrollHeight-t/R+I)),P=Math.max(0,Math.min(a+P/A,e.scrollWidth-n/A+T)),k+=u-j,O+=a-P}D.push({el:e,top:j,left:P})}return D},uZ=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};V_={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>=V_.F1&&t<=V_.F12)return!1;switch(t){case V_.ALT:case V_.CAPS_LOCK:case V_.CONTEXT_MENU:case V_.CTRL:case V_.DOWN:case V_.END:case V_.ESC:case V_.HOME:case V_.INSERT:case V_.LEFT:case V_.MAC_FF_META:case V_.META:case V_.NUMLOCK:case V_.NUM_CENTER:case V_.PAGE_DOWN:case V_.PAGE_UP:case V_.PAUSE:case V_.PRINT_SCREEN:case V_.RIGHT:case V_.SHIFT:case V_.UP:case V_.WIN_KEY:case V_.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=V_.ZERO&&e<=V_.NINE)return!0;if(e>=V_.NUM_ZERO&&e<=V_.NUM_MULTIPLY)return!0;if(e>=V_.A&&e<=V_.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case V_.SPACE:case V_.QUESTION_MARK:case V_.NUM_PLUS:case V_.NUM_MINUS:case V_.NUM_PERIOD:case V_.NUM_DIVISION:case V_.SEMICOLON:case V_.DASH:case V_.EQUALS:case V_.COMMA:case V_.PERIOD:case V_.SLASH:case V_.APOSTROPHE:case V_.SINGLE_QUOTE:case V_.OPEN_SQUARE_BRACKET:case V_.BACKSLASH:case V_.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},q_=yy.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.style,i=e.className,a=e.duration,s=void 0===a?4.5:a,l=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,p=void 0===d?"x":d,f=e.props,h=e.onClick,g=e.onNoticeClose,m=e.times,b=Ua(yy.useState(!1),2),y=b[0],v=b[1],w=function(){g(l)};return yy.useEffect((function(){if(!y&&s>0){var e=setTimeout((function(){w()}),1e3*s);return function(){clearTimeout(e)}}}),[s,y,m]),n="".concat(r,"-notice"),yy.createElement("div",fa({},f,{ref:t,className:zJ(n,i,ki({},"".concat(n,"-closable"),u)),style:o,onMouseEnter:function(){v(!0)},onMouseLeave:function(){v(!1)},onClick:h}),yy.createElement("div",{className:"".concat(n,"-content")},c),u&&yy.createElement("a",{tabIndex:0,className:"".concat(n,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==V_.ENTER||w()},onClick:function(e){e.preventDefault(),e.stopPropagation(),w()}},p))})),X_=rJ.createContext({}),K_=function(e){return rJ.createElement(X_.Provider,{value:{classNames:e.classNames}},e.children)},Y_=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,i=e.style,a=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,c=yy.useContext(X_).classNames,u=t.map((function(e){return{config:e,key:e.key}})),d="function"==typeof a?a(n):a;return rJ.createElement(FQ,fa({key:n,className:zJ(r,"".concat(r,"-").concat(n),null==c?void 0:c.list,o),style:i,keys:u,motionAppear:!0},d,{onAllRemoved:function(){s(n)}}),(function(e,t){var n=e.config,o=e.style,i=n.key,a=n.times,s=n.style;return rJ.createElement(q_,fa({},n,{ref:t,prefixCls:r,className:zJ(e.className,n.className,null==c?void 0:c.notice),style:Ea(Ea({},o),s),times:a,key:i,eventKey:i,onNoticeClose:l}))}))},J_=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.prefixCls,c=void 0===l?"rc-notification":l,u=e.container,d=e.motion,p=e.maxCount,f=e.className,h=e.style,g=e.onAllRemoved,m=e.renderNotifications,b=Ua(yy.useState([]),2),y=b[0],v=b[1],w=function(e){var t,n=y.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),v((function(t){return t.filter((function(t){return t.key!==e}))}))};return yy.useImperativeHandle(t,(function(){return{open:function(e){v((function(t){var n,r=xa(t),o=r.findIndex((function(t){return t.key===e.key})),i=Ea({},e);return 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)),p>0&&r.length>p&&(r=r.slice(-p)),r}))},close:function(e){w(e)},destroy:function(){v([])}}})),n=Ua(yy.useState({}),2),r=n[0],o=n[1],yy.useEffect((function(){var e={};y.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(r).forEach((function(t){e[t]=e[t]||[]})),o(e)}),[y]),i=function(e){o((function(t){var n=Ea({},t);return(n[e]||[]).length||delete n[e],n}))},a=yy.useRef(!1),yy.useEffect((function(){Object.keys(r).length>0?a.current=!0:a.current&&(null==g||g(),a.current=!1)}),[r]),u?(s=Object.keys(r),PE.createPortal(yy.createElement(yy.Fragment,null,s.map((function(e){var t=yy.createElement(Y_,{key:e,configList:r[e],placement:e,prefixCls:c,className:null==f?void 0:f(e),style:null==h?void 0:h(e),motion:d,onNoticeClose:w,onAllNoticeRemoved:i});return m?m(t,{prefixCls:c,key:e}):t}))),u)):null})),Q_=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","renderNotifications"],Z_=function(){return document.body},eN=0;const dZ={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"},pZ=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:dZ}))})),fZ=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,y=`${t}-notice`,v=new TD("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),w=new TD("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:f,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${y}-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:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},vQ(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:v,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]:{[y]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},hZ=Ml("Message",(e=>{const t=Rl(e,{height:150});return[fZ(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));tN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,type:n,icon:r,children:o}=e;return yy.createElement("div",{className:zJ(`${t}-custom-content`,`${t}-${n}`)},r||gZ[n],yy.createElement("span",null,o))};nN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t,prefixCls:n}=e;const[,r]=hZ(n);return yy.createElement(K_,{classNames:{list:r,notice:r}},t)},vZ=(e,t)=>{let{prefixCls:n,key:r}=t;return yy.createElement(yZ,{prefixCls:n,key:r},e)},wZ=yy.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=bZ,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:p}=yy.useContext(mQ),f=r||u("message"),h=yy.createElement("span",{className:`${f}-close-x`},yy.createElement(QQ,{className:`${f}-close-icon`})),[g,m]=lc({prefixCls:f,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>zJ({[`${f}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(f,l),closable:!1,closeIcon:h,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:vZ});return yy.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:f,message:p}))),m}));let xZ=0;oN=(rN=Ea({},aJ)).version,iN=rN.render,aN=rN.unmountComponentAtNode;try{Number((oN||"").split(".")[0])>=18&&(sN=rN.createRoot)}catch(fY){}lN="__rc_react_root__";const SZ=()=>({height:0,opacity:0}),EZ=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},CZ=e=>({height:e?e.offsetHeight:0}),kZ=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,OZ=function(e){return{motionName:`${arguments.length>0&&void 0!==e?e:"ant"}-motion-collapse`,onAppearStart:SZ,onEnterStart:SZ,onAppearActive:EZ,onEnterActive:EZ,onLeaveStart:CZ,onLeaveActive:SZ,onAppearEnd:kZ,onEnterEnd:kZ,onLeaveEnd:kZ,motionDeadline:500}},DZ=(e,t,n)=>void 0!==n?n:`${e}-${t}`,$Z=function(e){var t,n;if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox&&((t=e.getBBox()).width||t.height))return!0;if(e.getBoundingClientRect&&((n=e.getBoundingClientRect()).width||n.height))return!0}return!1},_Z=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},NZ=Ml("Wave",(e=>[_Z(e)])),jZ="ant-wave-target",PZ=e=>{function t(){const e=getComputedStyle(r);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Sc(t)?t:Sc(n)?n:Sc(r)?r:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:Ec(-parseFloat(n))),f(t?r.offsetTop:Ec(-parseFloat(o))),g(r.offsetWidth),b(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([i,a,u,l].map((e=>Ec(parseFloat(e)))))}const{className:n,target:r,component:o}=e,i=yy.useRef(null),[a,s]=yy.useState(null),[l,c]=yy.useState([]),[u,d]=yy.useState(0),[p,f]=yy.useState(0),[h,g]=yy.useState(0),[m,b]=yy.useState(0),[y,v]=yy.useState(!1),w={left:u,top:p,width:h,height:m,borderRadius:l.map((e=>`${e}px`)).join(" ")};if(a&&(w["--wave-color"]=a),yy.useEffect((()=>{if(r){const e=R$((()=>{t(),v(!0)}));let n;return"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),n.observe(r)),()=>{R$.cancel(e),null==n||n.disconnect()}}}),[]),!y)return null;const x=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(jZ));return yy.createElement(RQ,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;wc(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:t}=e;return yy.createElement("div",{ref:i,className:zJ(n,{"wave-quick":x},t),style:w})}))},TZ=(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),mc(yy.createElement(PZ,Object.assign({},t,{target:e})),o)},IZ=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=yy.useContext(mQ),i=yy.useRef(null),a=o("wave"),[,s]=NZ(a),l=function(e,t,n){const{wave:r}=yy.useContext(mQ),[,o,i]=jl(),a=Pl((a=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${jZ}`)||s,{showEffect:c}=r||{};(c||TZ)(l,{className:t,token:o,component:n,event:a,hashId:i})})),s=yy.useRef();return e=>{R$.cancel(s.current),s.current=R$((()=>{a(e)}))}}(i,zJ(a,s),r);return rJ.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!$Z(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),rJ.isValidElement(t)?sc(t,{ref:Ws(t)?Hs(t.ref,i):i}):null!=t?t:null},AZ=e=>{const t=rJ.useContext(AQ);return rJ.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},RZ=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},FZ=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},MZ=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}}}},LZ=Ml("Space",(e=>{const t=Rl(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[FZ(t),MZ(t),RZ(t)]}),(()=>({})),{resetStyle:!1});cN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=yy.useContext(BZ),r=yy.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return zJ(`${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}},HZ=e=>{let{children:t}=e;return yy.createElement(BZ.Provider,{value:null},t)},UZ=e=>{var{children:t}=e,n=cN(e,["children"]);return yy.createElement(BZ.Provider,{value:n},t)};uN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{className:n,style:r,children:o,prefixCls:i}=e,a=zJ(`${i}-icon`,n);return rJ.createElement("span",{ref:t,className:a,style:r},o)})),XZ=yy.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=zJ(`${n}-loading-icon`,r);return rJ.createElement(qZ,{prefixCls:n,className:a,style:o,ref:t},rJ.createElement(pZ,{className:i}))})),KZ=()=>({width:0,opacity:0,transform:"scale(0)"}),YZ=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),JZ=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?rJ.createElement(XZ,{prefixCls:t,className:o,style:i}):rJ.createElement(RQ,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:KZ,onAppearActive:YZ,onEnterStart:KZ,onEnterActive:YZ,onLeaveStart:YZ,onLeaveActive:KZ},((e,n)=>{let{className:r,style:a}=e;return rJ.createElement(XZ,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))},QZ=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ZZ=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},QZ(`${t}-primary`,o),QZ(`${t}-danger`,i)]}},e0=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},EQ(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},t0=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),n0=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),r0=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),o0=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),i0=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},t0(e,Object.assign({backgroundColor:t},a),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),a0=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},o0(e))}),s0=e=>Object.assign({},a0(e)),l0=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),c0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s0(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),t0(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),i0(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},t0(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),i0(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),a0(e))}),u0=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s0(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),t0(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),i0(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},t0(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),i0(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),a0(e))}),d0=e=>Object.assign(Object.assign({},c0(e)),{borderStyle:"dashed"}),p0=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},t0(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),l0(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},t0(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),l0(e))}),f0=e=>Object.assign(Object.assign(Object.assign({},t0(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),l0(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},l0(e)),t0(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),h0=e=>{const{componentCls:t}=e;return{[`${t}-default`]:c0(e),[`${t}-primary`]:u0(e),[`${t}-dashed`]:d0(e),[`${t}-link`]:p0(e),[`${t}-text`]:f0(e),[`${t}-ghost`]:i0(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},g0=function(e,t){let n=arguments.length>1&&void 0!==t?t:"";const{componentCls:r,controlHeight:o,fontSize:i,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:u}=e;return[{[`${r}${n}`]:{fontSize:i,height:o,padding:`${Math.max(0,(o-i*a)/2-s)}px ${c}px`,borderRadius:l,[`&${r}-icon-only`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[u]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${n}`]:n0(e)},{[`${r}${r}-round${n}`]:r0(e)}]},m0=e=>g0(Rl(e,{fontSize:e.contentFontSize})),b0=e=>{const t=Rl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return g0(t,`${e.componentCls}-sm`)},y0=e=>{const t=Rl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return g0(t,`${e.componentCls}-lg`)},v0=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},w0=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Rl(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},x0=e=>({fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),S0=Ml("Button",(e=>{const t=w0(e);return[e0(t),b0(t),m0(t),y0(t),v0(t),h0(t),ZZ(t)]}),x0),E0=$Q(["Button","compact"],(e=>{const t=w0(e);return[$c(t),Nc(t)]}),x0);dN=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:p,rootClassName:f,children:h,icon:g,ghost:m=!1,block:b=!1,htmlType:y="button",classNames:v,style:w={}}=e,x=dN(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:S,autoInsertSpaceInButton:E,direction:C,button:k}=yy.useContext(mQ),O=S("btn",i),[D,$]=S0(O),_=yy.useContext(PQ),N=null!=d?d:_,j=yy.useContext(WZ),P=yy.useMemo((()=>function(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(o)),[o]),[T,I]=yy.useState(P.loading),[A,R]=yy.useState(!1),F=Hs(t,yy.createRef()),M=1===yy.Children.count(h)&&!g&&!kc(a);yy.useEffect((()=>{let e=null;return P.delay>0?e=setTimeout((()=>{e=null,I(!0)}),P.delay):I(P.loading),function(){e&&(clearTimeout(e),e=null)}}),[P]),yy.useEffect((()=>{F&&F.current&&!1!==E&&(M&&VZ(F.current.textContent)?A||R(!0):A&&R(!1))}),[F]);const L=t=>{const{onClick:n}=e;T||N?t.preventDefault():null==n||n(t)},B=!1!==E,{compactSize:z,compactItemClassnames:H}=zZ(O,C),U=AZ((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:z)&&void 0!==t?t:j)&&void 0!==n?n:e})),W=U&&{large:"lg",small:"sm",middle:void 0}[U]||"",G=T?"loading":g,V=Qs(x,["navigate"]),q=zJ(O,$,{[`${O}-${l}`]:"default"!==l&&l,[`${O}-${a}`]:a,[`${O}-${W}`]:W,[`${O}-icon-only`]:!h&&0!==h&&!!G,[`${O}-background-ghost`]:m&&!kc(a),[`${O}-loading`]:T,[`${O}-two-chinese-chars`]:A&&B&&!T,[`${O}-block`]:b,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:"rtl"===C},H,p,f,null==k?void 0:k.className),X=Object.assign(Object.assign({},null==k?void 0:k.style),w),K=zJ(null==v?void 0:v.icon,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.icon),Y=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==k?void 0:k.styles)||void 0===r?void 0:r.icon)||{}),J=g&&!T?rJ.createElement(qZ,{prefixCls:O,className:K,style:Y},g):rJ.createElement(JZ,{existIcon:!!g,prefixCls:O,loading:!!T}),Q=h||0===h?function(e,t){let n=!1;const r=[];return rJ.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1;r[t]=`${r[t]}${e}`}else r.push(e);n=o})),rJ.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Cc(e.type)&&VZ(e.props.children)?sc(e,{children:e.props.children.split("").join(n)}):Cc(e)?VZ(e)?rJ.createElement("span",null,e.split("").join(n)):rJ.createElement("span",null,e):ac(e)?rJ.createElement("span",null,e):e}(e,t)))}(h,M&&B):null;if(void 0!==V.href)return D(rJ.createElement("a",Object.assign({},V,{className:zJ(q,{[`${O}-disabled`]:N}),style:X,onClick:L,ref:F}),J,Q));let Z=rJ.createElement("button",Object.assign({},x,{type:y,className:q,style:X,onClick:L,disabled:N,ref:F}),J,Q,H&&rJ.createElement(E0,{key:"compact",prefixCls:O}));return kc(a)||(Z=rJ.createElement(IZ,{component:"Button",disabled:!!T},Z)),D(Z)},k0=yy.forwardRef(C0);k0.Group=e=>{const{getPrefixCls:t,direction:n}=yy.useContext(mQ),{prefixCls:r,size:o,className:i}=e,a=uN(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=jl();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=zJ(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return yy.createElement(WZ.Provider,{value:o},yy.createElement("div",Object.assign({},a,{className:u})))},k0.__ANT_BUTTON=!0;const O0=k0,D0=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=yy.useRef(!1),p=yy.useRef(null),[f,h]=Tl(!1),g=function(){null==i||i.apply(void 0,arguments)};return yy.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),yy.createElement(O0,Object.assign({},jc(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!Pc(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=>{Pc(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==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:f,prefixCls:r},o,{ref:p}),n)},$0=rJ.createContext({}),{Provider:_0}=$0,N0=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=yy.useContext($0);return o?rJ.createElement(D0,{isSilent:r,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},j0=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=yy.useContext($0);return rJ.createElement(D0,{isSilent:n,type:a||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};pN=yy.createContext(null),fN=[],gN="rc-util-locker-".concat(Date.now()),mN=0,bN=!1,yN=function(e){return!1!==e&&(Pa()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},vN=yy.createContext({}),wN=0;const P0=yy.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));xN={width:0,height:0,overflow:"hidden",outline:"none"},SN=rJ.forwardRef((function(e,t){var n,r,o,i,a,s=e.prefixCls,l=e.className,c=e.style,u=e.title,d=e.ariaId,p=e.footer,f=e.closable,h=e.closeIcon,g=e.onClose,m=e.children,b=e.bodyStyle,y=e.bodyProps,v=e.modalRender,w=e.onMouseDown,x=e.onMouseUp,S=e.visible,E=e.forceRender,C=e.width,k=e.height,O=Us(e.holderRef,rJ.useContext(vN).panel),D=yy.useRef(),$=yy.useRef();return rJ.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=D.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()}}})),n={},void 0!==C&&(n.width=C),void 0!==k&&(n.height=k),p&&(r=rJ.createElement("div",{className:"".concat(s,"-footer")},p)),u&&(o=rJ.createElement("div",{className:"".concat(s,"-header")},rJ.createElement("div",{className:"".concat(s,"-title"),id:d},u))),f&&(i=rJ.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(s,"-close")},h||rJ.createElement("span",{className:"".concat(s,"-close-x")}))),a=rJ.createElement("div",{className:"".concat(s,"-content")},i,o,rJ.createElement("div",fa({className:"".concat(s,"-body"),style:b},y),m),r),rJ.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?d:null,"aria-modal":"true",ref:O,style:Ea(Ea({},c),n),className:zJ(s,l),onMouseDown:w,onMouseUp:x},rJ.createElement("div",{tabIndex:0,ref:D,style:xN,"aria-hidden":"true"}),rJ.createElement(P0,{shouldUpdate:S||E},v?v(a):a),rJ.createElement("div",{tabIndex:0,ref:$,style:xN,"aria-hidden":"true"}))})),(EN=yy.forwardRef((function(e,t){function n(){var e,t,n,r,o,i=((n={left:(t=(e=h.current).getBoundingClientRect()).left,top:t.top}).left+=Lc(o=(r=e.ownerDocument).defaultView||r.parentWindow),n.top+=Lc(o,!0),n);b(f?"".concat(f.x-i.left,"px ").concat(f.y-i.top,"px"):"")}var r=e.prefixCls,o=e.title,i=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,p=e.onVisibleChanged,f=e.mousePosition,h=yy.useRef(),g=Ua(yy.useState(),2),m=g[0],b=g[1],y={};return m&&(y.transformOrigin=m),yy.createElement(RQ,{visible:s,onVisibleChanged:p,onAppearPrepare:n,onEnterPrepare:n,forceRender:l,motionName:u,removeOnLeave:c,ref:h},(function(n,s){var l=n.className;return yy.createElement(SN,fa({},e,{ref:t,title:o,ariaId:d,prefixCls:r,holderRef:s,style:Ea(Ea(Ea({},n.style),i),y),className:zJ(a,l)}))}))}))).displayName="Content",(CN=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,s=e.panelRef,l=Ua(yy.useState(t),2),c=l[0],u=l[1],d=yy.useMemo((function(){return{panel:s}}),[s]);return yy.useEffect((function(){t&&u(!0)}),[t]),r||!i||c?yy.createElement(vN.Provider,{value:d},yy.createElement(Rc,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},yy.createElement(zc,fa({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null}).displayName="Dialog",kN="RC_FORM_INTERNAL_HOOKS",DN=yy.createContext({getFieldValue:ON=function(){_a(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},getFieldsValue:ON,getFieldError:ON,getFieldWarning:ON,getFieldsError:ON,isFieldsTouched:ON,isFieldTouched:ON,isFieldValidating:ON,isFieldsValidating:ON,resetFields:ON,setFields:ON,setFieldValue:ON,setFieldsValue:ON,validateFields:ON,submit:ON,getInternalHooks:function(){return ON(),{dispatch:ON,initEntityValue:ON,registerField:ON,useSubscribe:ON,setInitialValues:ON,destroyForm:ON,setCallbacks:ON,registerWatch:ON,getFields:ON,setValidateMessages:ON,setPreserve:ON,getInitialValue:ON}}}),$N=yy.createContext(null),_N=/%[sdj%]/g,NN=function(){},jN=function(e){function t(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}var n,r;return r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,Vc(n,r),t}(Xc(Error)),IN=function(){var e,t,n,r,o,i,a,s,l,c,u;return TN||(e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},o=("\n(?:\n(?:"+(r="[a-fA-F\\d]{1,4}")+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+(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+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),(l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")}).v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")},c=l.v4().source,u=l.v6().source,TN=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i"))},AN=/^(([^<>()\[\]\\.,;:\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,}))$/,RN=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,FN={integer:function(e){return FN.number(e)&&parseInt(e,10)===e},float:function(e){return FN.number(e)&&!FN.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(fY){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!FN.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(AN)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(IN())},hex:function(e){return"string"==typeof e&&!!e.match(RN)}},MN=function(e,t,n,r,o){var i;e.required&&void 0===t?PN(e,t,n,r,o):["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i=e.type)>-1?FN[i](t)||r.push(Yc(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(Yc(o.messages.types[i],e.fullField,e.type))},LN="enum",BN={required:PN=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Jc(t,i||e.type)||r.push(Yc(o.messages.required,e.fullField))},whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Yc(o.messages.whitespace,e.fullField))},type:MN,range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(Yc(o.messages[c].len,e.fullField,e.len)):a&&!s&&le.max?r.push(Yc(o.messages[c].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(Yc(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[LN]=Array.isArray(e[LN])?e[LN]:[],-1===e[LN].indexOf(t)&&r.push(Yc(o.messages[LN],e.fullField,e[LN].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Yc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Yc(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},HN={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t,"string")&&!e.required)return n();BN.required(e,t,r,i,o,"string"),Jc(t,"string")||(BN.type(e,t,r,i,o),BN.range(e,t,r,i,o),BN.pattern(e,t,r,i,o),!0===e.whitespace&&BN.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(Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o),void 0!==t&&BN.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),Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o),void 0!==t&&(BN.type(e,t,r,i,o),BN.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(Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o),void 0!==t&&BN.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(Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o),Jc(t)||BN.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(Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o),void 0!==t&&(BN.type(e,t,r,i,o),BN.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(Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o),void 0!==t&&(BN.type(e,t,r,i,o),BN.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();BN.required(e,t,r,i,o,"array"),null!=t&&(BN.type(e,t,r,i,o),BN.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(Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o),void 0!==t&&BN.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(Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o),void 0!==t&&BN.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(Jc(t,"string")&&!e.required)return n();BN.required(e,t,r,i,o),Jc(t,"string")||BN.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t,"date")&&!e.required)return n();BN.required(e,t,r,a,o),Jc(t,"date")||(i=t instanceof Date?t:new Date(t),BN.type(e,i,r,a,o),i&&BN.range(e,i.getTime(),r,a,o))}n(a)},url:zN=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jc(t,i)&&!e.required)return n();BN.required(e,t,r,a,o,i),Jc(t,i)||BN.type(e,t,r,a,o)}n(a)},hex:zN,email:zN,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;BN.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(Jc(t)&&!e.required)return n();BN.required(e,t,r,i,o)}n(i)}},UN=tu(),WN=function(){function e(e){this.rules=null,this._messages=UN,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=eu(tu(),e)),this._messages},t.validate=function(t,n,r){var o,i,a,s,l,c,u=this;return void 0===n&&(n={}),void 0===r&&(r=function(){}),o=t,a=r,"function"==typeof(i=n)&&(a=i,i={}),this.rules&&0!==Object.keys(this.rules).length?(i.messages?((s=this.messages())===UN&&(s=tu()),eu(s,i.messages),i.messages=s):i.messages=this.messages(),l={},(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o[e];u.rules[e].forEach((function(r){var i=r;"function"==typeof i.transform&&(o===t&&(o=Wc({},o)),n=o[e]=i.transform(n)),(i="function"==typeof i?{validator:i}:Wc({},i)).validator=u.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=u.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:n,source:o,field:e}))}))})),c={},function(e,t,n,r,o){var i,a,s,l,c,u,d;return t.first?(i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);Qc(a,n,(function(e){return r(e),e.length?i(new jN(e,Kc(e))):t(o)}))})),i.catch((function(e){return e})),i):(a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?i(new jN(u,Kc(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?Qc(r,n,d):function(e,t,n){function r(e){o.push.apply(o,e||[]),++i===a&&n(o)}var o=[],i=0,a=e.length;e.forEach((function(e){t(e,r)}))}(r,n,d)}))})),d.catch((function(e){return e})),d)}(l,i,(function(t,n){function r(e,t){return Wc({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function a(a){var s,d,p,f,h;if(void 0===a&&(a=[]),s=Array.isArray(a)?a:[a],!i.suppressWarning&&s.length&&e.warning("async-validator:",s),s.length&&void 0!==l.message&&(s=[].concat(l.message)),d=s.map(Zc(l,o)),i.first&&d.length)return c[l.field]=1,n(d);if(u){if(l.required&&!t.value)return void 0!==l.message?d=[].concat(l.message).map(Zc(l,o)):i.error&&(d=[i.error(l,Yc(i.messages.required,l.field))]),n(d);p={},l.defaultField&&Object.keys(t.value).map((function(e){p[e]=l.defaultField})),p=Wc({},p,t.rule.fields),f={},Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(r.bind(null,e))})),(h=new e(f)).messages(i.messages),t.rule.options&&(t.rule.options.messages=i.messages,t.rule.options.error=i.error),h.validate(t.value,t.rule.options||i,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}var s,l=t.rule,u=!("object"!==l.type&&"array"!==l.type||"object"!=typeof l.fields&&"object"!=typeof l.defaultField);if(u=u&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)s=l.asyncValidator(l,t.value,a,t.source,i);else if(l.validator){try{s=l.validator(l,t.value,a,t.source,i)}catch(d){console,i.suppressValidatorError||setTimeout((function(){throw d}),0),a(d.message)}!0===s?a():!1===s?a("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):s instanceof Array?a(s):s instanceof Error&&a(s.message)}s&&s.then&&s.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n,r,i=[],s={};for(t=0;t0&&void 0!==e?e:YN;r.validatePromise===l&&(r.validatePromise=null,n=[],o=[],null===(t=i.forEach)||void 0===t||t.call(i,(function(e){var t=e.errors,r=void 0===t?YN:t;e.rule.warningOnly?o.push.apply(o,xa(r)):n.push.apply(n,xa(r))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender())})),o.abrupt("return",f);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=YN,r.warnings=YN,r.triggerMetaEvent(),r.reRender()),l})),ki(Rs(r),"isFieldValidating",(function(){return!!r.validatePromise})),ki(Rs(r),"isFieldTouched",(function(){return r.touched})),ki(Rs(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(kN).getInitialValue)(r.getNamePath())})),ki(Rs(r),"getErrors",(function(){return r.errors})),ki(Rs(r),"getWarnings",(function(){return r.warnings})),ki(Rs(r),"isListField",(function(){return r.props.isListField})),ki(Rs(r),"isList",(function(){return r.props.isList})),ki(Rs(r),"isPreserve",(function(){return r.props.preserve})),ki(Rs(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}})),ki(Rs(r),"getOnlyChild",(function(e){var t,n;return"function"==typeof e?(t=r.getMeta(),Ea(Ea({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})):1===(n=Bs(e)).length&&yy.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),ki(Rs(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return tl(e||t(!0),n)})),ki(Rs(r),"getControlled",(function(e){var t=arguments.length>0&&void 0!==e?e:{},n=r.props,o=n.trigger,i=n.validateTrigger,a=n.getValueFromEvent,s=n.normalize,l=n.valuePropName,c=n.getValueProps,u=n.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),f=u.getFieldsValue,h=(0,u.getInternalHooks)(kN).dispatch,g=r.getValue(),m=c||function(e){return ki({},l,e)},b=t[o],y=Ea(Ea({},t),m(g));return y[o]=function(){var e,t,n,o;for(r.touched=!0,r.dirty=!0,r.triggerMetaEvent(),t=arguments.length,n=new Array(t),o=0;o0&&void 0!==e?e:[];n.watchList.length&&(t=n.getFieldsValue(),r=n.getFieldsValue(!0),n.watchList.forEach((function(e){e(t,r,o)})))})),ki(this,"timeoutId",null),ki(this,"warningUnhooked",(function(){})),ki(this,"updateStore",(function(e){n.store=e})),ki(this,"getFieldEntities",(function(e){return arguments.length>0&&void 0!==e&&e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),ki(this,"getFieldsMap",(function(e){var t=arguments.length>0&&void 0!==e&&e,r=new ZN;return n.getFieldEntities(t).forEach((function(e){var t=e.getNamePath();r.set(t,e)})),r})),ki(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=lu(e);return t.get(n)||{INVALIDATE_NAME_PATH:lu(e)}}))})),ki(this,"getFieldsValue",(function(e,t){var r,o,i,a,s;return n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Ei(e)&&(i=e.strict,o=e.filter),!0!==r||o?(a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[],a.forEach((function(e){var t,n,a,l,c,u="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;o?(c="getMeta"in e?e.getMeta():null,o(c)&&s.push(u)):s.push(u)})),cu(n.store,s.map(lu))):n.store})),ki(this,"getFieldValue",(function(e){n.warningUnhooked();var t=lu(e);return tl(n.store,t)})),ki(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:lu(e[n]),errors:[],warnings:[]}}))})),ki(this,"getFieldError",(function(e){var t;return n.warningUnhooked(),t=lu(e),n.getFieldsError([t])[0].errors})),ki(this,"getFieldWarning",(function(e){var t;return n.warningUnhooked(),t=lu(e),n.getFieldsError([t])[0].warnings})),ki(this,"isFieldsTouched",(function(){var e,t,r,o,i,a,s,l,c,u,d,p;for(n.warningUnhooked(),e=arguments.length,t=new Array(e),r=0;r0&&void 0!==e?e:{},i=new ZN,a=n.getFieldEntities(!0);a.forEach((function(e){var t,n=e.props.initialValue,r=e.getNamePath();void 0!==n&&((t=i.get(r)||new Set).add({entity:e,value:n}),i.set(r,t))})),t=function(e){e.forEach((function(e){var t,r,a;void 0!==e.props.initialValue&&(t=e.getNamePath(),void 0!==n.getInitialValue(t)?_a(!1,"Form already set 'initialValues' with path '".concat(t.join("."),"'. Field can not overwrite it.")):(r=i.get(t))&&r.size>1?_a(!1,"Multiple Field with path '".concat(t.join("."),"' set 'initialValue'. Can not decide which one to pick.")):r&&(a=n.getFieldValue(t),o.skipExist&&void 0!==a||n.updateStore(rl(n.store,t,xa(r)[0].value))))}))},o.entities?r=o.entities:o.namePathList?(r=[],o.namePathList.forEach((function(e){var t,n=i.get(e);n&&(t=r).push.apply(t,xa(xa(n).map((function(e){return e.entity}))))}))):r=a,t(r)})),ki(this,"resetFields",(function(e){var t,r;if(n.warningUnhooked(),t=n.store,!e)return n.updateStore(il(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();(r=e.map(lu)).forEach((function(e){var t=n.getInitialValue(e);n.updateStore(rl(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),ki(this,"setFields",(function(e){var t,r;n.warningUnhooked(),t=n.store,r=[],e.forEach((function(e){var o=e.name,i=Oi(e,ej),a=lu(o);r.push(a),"value"in i&&n.updateStore(rl(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),ki(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Ea(Ea({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),ki(this,"initEntityValue",(function(e){var t,r=e.props.initialValue;void 0!==r&&(t=e.getNamePath(),void 0===tl(n.store,t)&&n.updateStore(rl(n.store,t,r)))})),ki(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),ki(this,"registerField",(function(e){var t,r;return n.fieldEntities.push(e),t=e.getNamePath(),n.notifyWatch([t]),void 0!==e.props.initialValue&&(r=n.store,n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})),function(r,o,i){var a,s,l=arguments.length>2&&void 0!==i?i:[];n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),n.isMergedPreserve(o)||r&&!(l.length>1)||(a=r?void 0:n.getInitialValue(t),t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!du(e.getNamePath(),t)}))&&(n.updateStore(rl(s=n.store,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t))),n.notifyWatch([t])}})),ki(this,"dispatch",(function(e){switch(e.type){case"updateValue":n.updateValue(e.namePath,e.value);break;case"validateField":n.validateFields([e.namePath],{triggerName:e.triggerName})}})),ki(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Ea(Ea({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),ki(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(xa(r))}),r})),ki(this,"updateValue",(function(e,t){var r,o,i=lu(e),a=n.store;n.updateStore(rl(n.store,i,t)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]),r=n.triggerDependenciesUpdate(a,i),(o=n.callbacks.onValuesChange)&&o(cu(n.store,[i]),n.getFieldsValue()),n.triggerOnFieldsChange([i].concat(xa(r)))})),ki(this,"setFieldsValue",(function(e){var t,r;n.warningUnhooked(),t=n.store,e&&(r=il(n.store,e),n.updateStore(r)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),ki(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),ki(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new ZN;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=lu(t);o.update(n,(function(t){var n=arguments.length>0&&void 0!==t?t:new Set;return n.add(e),n}))}))})),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})),ki(this,"triggerOnFieldsChange",(function(e,t){var r,o,i,a=n.callbacks.onFieldsChange;a&&(r=n.getFields(),t&&(o=new ZN,t.forEach((function(e){o.set(e.name,e.errors)})),r.forEach((function(e){e.errors=o.get(e.name)||e.errors}))),(i=r.filter((function(t){return uu(e,t.name)}))).length&&a(i,r))})),ki(this,"validateFields",(function(e,t){var r,o,i,a,s,l,c,u,d,p,f,h;return n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,i=t):i=e,s=(a=!!o)?o.map(lu):[],l=[],c=String(Date.now()),u=new Set,d=null===(r=i)||void 0===r?void 0:r.recursive,n.getFieldEntities(!0).forEach((function(e){var t,r;a||s.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(t=e.getNamePath(),u.add(t.join(c)),a&&!uu(s,t,d)||(r=e.validateRules(Ea({validateMessages:Ea(Ea({},VN),n.validateMessages)},i)),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.errors;e.rule.warningOnly?o.push.apply(o,xa(t)):r.push.apply(r,xa(t))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))))})),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)})),(f=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(s),errorFields:t,outOfDate:n.lastValidatePromise!==p})}))).catch((function(e){return e})),h=s.filter((function(e){return u.has(e.join(c))})),n.triggerOnFieldsChange(h),f})),ki(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t})),nj=yy.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),rj=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=yy.useContext(nj),a=yy.useRef({});return yy.createElement(nj.Provider,{value:Ea(Ea({},i),{},{validateMessages:Ea(Ea({},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=Ea(Ea({},a.current),{},ki({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Ea({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},oj=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],ij=function(e,t){var n,r,o,i,a,s,l=e.name,c=e.initialValues,u=e.fields,d=e.form,p=e.preserve,f=e.children,h=e.component,g=void 0===h?"form":h,m=e.validateMessages,b=e.validateTrigger,y=void 0===b?"onChange":b,v=e.onValuesChange,w=e.onFieldsChange,x=e.onFinish,S=e.onFinishFailed,E=Oi(e,oj),C=yy.useContext(nj),k=Ua(yu(d),1)[0],O=k.getInternalHooks(kN),D=O.useSubscribe,$=O.setInitialValues,_=O.setCallbacks,N=O.setValidateMessages,j=O.setPreserve,P=O.destroyForm;return yy.useImperativeHandle(t,(function(){return k})),yy.useEffect((function(){return C.registerForm(l,k),function(){C.unregisterForm(l)}}),[C,k,l]),N(Ea(Ea({},C.validateMessages),m)),_({onValuesChange:v,onFieldsChange:function(e){if(C.triggerFormChange(l,e),w){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{}}),I0=yy.createContext(null),A0=e=>{const t=Qs(e,["prefixCls"]);return yy.createElement(rj,Object.assign({},t))},R0=yy.createContext({prefixCls:""}),F0=yy.createContext({}),M0=e=>{let{children:t,status:n,override:r}=e;const o=yy.useContext(F0),i=yy.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 yy.createElement(F0.Provider,{value:i},t)},L0=yy.createContext({add:xu,remove:xu}),B0=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=yy.useContext($0);return rJ.createElement(O0,Object.assign({onClick:n},e),t)},z0=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=yy.useContext($0);return rJ.createElement(O0,Object.assign({},jc(n),{loading:e,onClick:o},t),r)},H0=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=QJ("Modal",al()),d={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:r||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},p=rJ.useMemo((()=>d),xa(Object.values(d)));let f;return"function"==typeof c||void 0===c?(f=rJ.createElement(_0,{value:p},rJ.createElement(B0,null),rJ.createElement(z0,null)),"function"==typeof c&&(f=c(f,{OkBtn:z0,CancelBtn:B0}))):f=c,rJ.createElement(jQ,{disabled:!1},f)},U0=e=>({animationDuration:e,animationFillMode:"both"}),W0=e=>({animationDuration:e,animationFillMode:"both"}),G0=function(e,t,n,r,o){const i=arguments.length>4&&void 0!==o&&o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},U0(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},W0(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},V0=new TD("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),q0=new TD("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),X0=function(e,t){let n=arguments.length>1&&void 0!==t&&t;const{antCls:r}=e,o=`${r}-fade`,i=n?"&":"";return[G0(o,V0,q0,e.motionDurationMid,n),{[`\n ${i}${o}-enter,\n ${i}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${o}-leave`]:{animationTimingFunction:"linear"}}]},K0=new TD("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y0=new TD("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),J0=new TD("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Q0=new TD("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Z0=new TD("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),e1=new TD("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),t1={"move-up":{inKeyframes:new TD("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 TD("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:K0,outKeyframes:Y0},"move-left":{inKeyframes:J0,outKeyframes:Q0},"move-right":{inKeyframes:Z0,outKeyframes:e1}},n1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=t1[t];return[G0(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},r1=new TD("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),o1=new TD("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),i1=new TD("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),a1=new TD("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s1=new TD("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),l1=new TD("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),c1=new TD("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),u1=new TD("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),d1={"slide-up":{inKeyframes:r1,outKeyframes:o1},"slide-down":{inKeyframes:i1,outKeyframes:a1},"slide-left":{inKeyframes:s1,outKeyframes:l1},"slide-right":{inKeyframes:c1,outKeyframes:u1}},p1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=d1[t];return[G0(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}}]},f1=new TD("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),h1=new TD("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),g1=new TD("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),m1=new TD("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),b1=new TD("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),y1=new TD("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),v1=new TD("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),w1=new TD("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),x1=new TD("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),S1=new TD("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),E1=new TD("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),C1=new TD("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),k1={zoom:{inKeyframes:f1,outKeyframes:h1},"zoom-big":{inKeyframes:g1,outKeyframes:m1},"zoom-big-fast":{inKeyframes:g1,outKeyframes:m1},"zoom-left":{inKeyframes:v1,outKeyframes:w1},"zoom-right":{inKeyframes:x1,outKeyframes:S1},"zoom-up":{inKeyframes:b1,outKeyframes:y1},"zoom-down":{inKeyframes:E1,outKeyframes:C1}},O1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=k1[t];return[G0(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}}]},D1=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`}}}),$1=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({},Cu("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Cu("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:X0(e)}]},_1=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},vQ(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},EQ(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},N1=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},j1=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},P1=e=>{const t=e.padding;return Rl(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:e.lineHeightHeading5*e.fontSizeHeading5+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight})},T1=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),I1=Ml("Modal",(e=>{const t=P1(e);return[_1(t),j1(t),$1(t),e.wireframe&&N1(t),O1(t,"zoom")]}),T1);let A1;sj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{A1={x:e.pageX,y:e.pageY},setTimeout((()=>{A1=null}),100)}),!0);const R1=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=yy.useContext(mQ),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:p,getContainer:f,closeIcon:h,closable:g,focusTriggerAfterClose:m=!0,style:b,visible:y,width:v=520,footer:w}=e,x=sj(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),S=r("modal",s),E=r(),[C,k]=I1(S),O=zJ(d,{[`${S}-centered`]:!!p,[`${S}-wrap-rtl`]:"rtl"===o}),D=null!==w&&yy.createElement(H0,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[$,_]=Hc(g,h,(e=>Eu(S,e)),yy.createElement(QQ,{className:`${S}-close-icon`}),!0),N=Su(`.${S}-content`);return C(yy.createElement(HZ,null,yy.createElement(M0,{status:!0,override:!0},yy.createElement(CN,Object.assign({width:v},x,{getContainer:void 0===f?n:f,prefixCls:S,rootClassName:zJ(k,c),wrapClassName:O,footer:D,visible:null!=u?u:y,mousePosition:null!==(t=x.mousePosition)&&void 0!==t?t:A1,onClose:a,closable:$,closeIcon:_,focusTriggerAfterClose:m,transitionName:DZ(E,"zoom",e.transitionName),maskTransitionName:DZ(E,"fade",e.maskTransitionName),className:zJ(k,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),b),panelRef:N})))))},F1=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a}=e,s=`${t}-confirm`,l=Math.round(n*r),c=Math.round(i*a);return{[s]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${s}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${s}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.marginSM,marginTop:(c-o)/2},[`&-has-title > ${e.iconCls}`]:{marginTop:(l-o)/2}},[`${s}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${s}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${s}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${s}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${s}-error ${s}-body > ${e.iconCls}`]:{color:e.colorError},[`${s}-warning ${s}-body > ${e.iconCls},\n ${s}-confirm ${s}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${s}-info ${s}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${s}-success ${s}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},M1=$Q(["Modal","confirm"],(e=>{const t=P1(e);return[F1(t)]}),T1,{order:-1e3});lj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:p,iconPrefixCls:f,theme:h,bodyStyle:g,closable:m=!1,closeIcon:b,modalRender:y,focusTriggerAfterClose:v,onConfirm:w}=e,x=`${u}-confirm`,S=e.width||416,E=e.style||{},C=void 0===e.mask||e.mask,k=void 0!==e.maskClosable&&e.maskClosable,O=zJ(x,`${x}-${e.type}`,{[`${x}-rtl`]:"rtl"===c},e.className);return yy.createElement(WQ,{prefixCls:p,iconPrefixCls:f,direction:c,theme:h},yy.createElement(R1,{prefixCls:u,className:O,wrapClassName:zJ({[`${x}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==w||w(!1)},open:o,title:"",footer:null,transitionName:DZ(p||"","zoom",e.transitionName),maskTransitionName:DZ(p||"","fade",e.maskTransitionName),mask:C,maskClosable:k,maskStyle:l,style:E,bodyStyle:g,width:S,zIndex:n,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:m,closeIcon:b,modalRender:y,focusTriggerAfterClose:v},yy.createElement(ku,Object.assign({},e,{confirmPrefixCls:x}))))},B1=[];cj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{afterClose:r,config:o}=e,i=uj(e,["afterClose","config"]);const[a,s]=yy.useState(!0),[l,c]=yy.useState(o),{direction:u,getPrefixCls:d}=yy.useContext(mQ),p=d("modal"),f=d(),h=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));l.onCancel&&r&&l.onCancel.apply(l,[()=>{}].concat(xa(t.slice(1))))};yy.useImperativeHandle(t,(()=>({destroy:h,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=l.okCancel)&&void 0!==n?n:"confirm"===l.type,[m]=QJ("Modal",qJ.Modal);return yy.createElement(L1,Object.assign({prefixCls:p,rootPrefixCls:f},l,{close:h,open:a,afterClose:()=>{var e;r(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(g?null==m?void 0:m.okText:null==m?void 0:m.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==m?void 0:m.cancelText)},i))},U1=yy.forwardRef(H1);let W1=0;const G1=yy.memo(yy.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=yy.useState([]);return[e,yy.useCallback((e=>(t((t=>[].concat(xa(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return yy.useImperativeHandle(t,(()=>({patchElement:r})),[]),yy.createElement(yy.Fragment,null,n)}))),V1=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e;return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new TD("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new TD("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}})}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new TD("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}})}}}},q1=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:h,motionDurationMid:g,motionEaseInOut:m,fontSize:b,lineHeight:y,width:v,notificationIconSize:w,colorText:x}=e,S=`${n}-notice`,E=new TD("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:v},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),C=new TD("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),k={position:"relative",width:v,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",padding:f,overflow:"hidden",lineHeight:y,wordWrap:"break-word",background:p,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${S}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:b,color:x},[`&${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+w,fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.marginSM+w,fontSize:b},[`${S}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${S}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},vQ(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[S]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[S]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:E,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:C,animationPlayState:"running"}}),V1(e)),{"&-rtl":{direction:"rtl",[`${S}-btn`]:{float:"left"}}})},{[n]:{[S]:Object.assign({},k)}},{[`${S}-pure-panel`]:Object.assign(Object.assign({},k),{margin:0})}]},X1=Ml("Notification",(e=>{const t=Rl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:e.paddingMD,notificationPaddingHorizontal:e.paddingLG,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[q1(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})));dj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=yy.createElement("span",{className:`${t}-icon`},n):r&&(l=yy.createElement(K1[r]||null,{className:zJ(`${t}-icon`,`${t}-icon-${r}`)})),yy.createElement("div",{className:zJ({[`${t}-with-icon`]:l}),role:s},l,yy.createElement("div",{className:`${t}-message`},o),yy.createElement("div",{className:`${t}-description`},i),a&&yy.createElement("div",{className:`${t}-btn`},a))};pj=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t,prefixCls:n}=e;const[,r]=X1(n);return yy.createElement(K_,{classNames:{list:r,notice:r}},t)},Z1=(e,t)=>{let{prefixCls:n,key:r}=t;return yy.createElement(Q1,{prefixCls:n,key:r},e)},e2=yy.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:u,notification:d}=yy.useContext(mQ),p=o||c("notification"),[f,h]=lc({prefixCls:p,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:()=>zJ({[`${p}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(p),closable:!0,closeIcon:Tu(p),duration:4.5,getContainer:()=>(null==i?void 0:i())||(null==u?void 0:u())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:Z1});return yy.useImperativeHandle(t,(()=>Object.assign(Object.assign({},f),{prefixCls:p,notification:d}))),h})),t2=rJ.createContext({}),n2=rJ.createContext({message:{},notification:{},modal:{}}),r2=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}},o2=Ml("App",(e=>[r2(e)])),i2=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s}=e,{getPrefixCls:l}=yy.useContext(mQ),c=l("app",t),[u,d]=o2(c),p=zJ(d,c,r,o),f=yy.useContext(t2),h=rJ.useMemo((()=>({message:Object.assign(Object.assign({},f.message),i),notification:Object.assign(Object.assign({},f.notification),a)})),[i,a,f.message,f.notification]),[g,m]=dc(h.message),[b,y]=Au(h.notification),[v,w]=Pu(),x=rJ.useMemo((()=>({message:g,notification:b,modal:v})),[g,b,v]);return u(rJ.createElement(n2.Provider,{value:x},rJ.createElement(t2.Provider,{value:h},rJ.createElement("div",{className:p,style:s},w,m,y,n))))};i2.useApp=()=>rJ.useContext(n2);const a2=i2,s2=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))};fj=function(e){var t,n=e.className,r=e.customizeIcon,o=e.onMouseDown,i=e.onClick,a=e.children;return t="function"==typeof r?r(e.customizeIconProps):r,yy.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:yy.createElement("span",{className:zJ(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},a))},hj=yy.createContext(null),gj=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],mj=void 0,(bj=yy.forwardRef(Mu)).displayName="Item",yj=rJ.createContext(null),vj=["component"],wj=["className"],xj=["className"],Sj=function(e,t){var n,r,o,i,a,s,l,c=yy.useContext(yj);return c?(i=c.className,a=Oi(c,wj),s=e.className,l=Oi(e,xj),yy.createElement(yj.Provider,{value:null},yy.createElement(bj,fa({ref:t,className:zJ(i,s)},a,l)))):(r=void 0===(n=e.component)?"div":n,o=Oi(e,vj),yy.createElement(r,fa({},o,{ref:t})))},(Ej=yy.forwardRef(Sj)).displayName="RawItem",Cj=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],kj="responsive",Oj="invalidate",(Dj=yy.forwardRef(zu)).displayName="Overflow",Dj.Item=Ej,Dj.RESPONSIVE=kj,Dj.INVALIDATE=Oj,($j=yy.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.id,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,p=e.value,f=e.maxLength,h=e.onKeyDown,g=e.onMouseDown,m=e.onChange,b=e.onPaste,y=e.onCompositionStart,v=e.onCompositionEnd,w=e.open,x=e.attrs,S=e.inputElement||yy.createElement("input",null),E=S.ref,C=S.props,k=C.onKeyDown,O=C.onChange,D=C.onMouseDown,$=C.onCompositionStart,_=C.onCompositionEnd,N=C.style;return yy.cloneElement(S,Ea(Ea(Ea({type:"search"},C),{},{id:i,ref:Hs(t,E),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:zJ("".concat(o,"-selection-search-input"),null===(n=S)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-label":"Search","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?d:void 0},x),{},{value:u?p:"",maxLength:f,readOnly:!u,unselectable:u?null:"on",style:Ea(Ea({},N),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),k&&k(e)},onMouseDown:function(e){g(e),D&&D(e)},onChange:function(e){m(e),O&&O(e)},onCompositionStart:function(e){y(e),$&&$(e)},onCompositionEnd:function(e){v(e),_&&_(e)},onPaste:b}))}))).displayName="Input",_j="undefined"!=typeof window&&window.document&&window.document.documentElement,Nj=_j,jj=function(e){e.preventDefault(),e.stopPropagation()},Pj=function(e){function t(e,t,n,r,o){return yy.createElement("span",{className:zJ("".concat(H,"-item"),ki({},"".concat(H,"-item-disabled"),n)),title:Wu(e)},yy.createElement("span",{className:"".concat(H,"-item-content")},t),r&&yy.createElement(fj,{className:"".concat(H,"-item-remove"),onMouseDown:jj,onClick:o,customizeIcon:x},"×"))}var n,r,o,i,a=e.id,s=e.prefixCls,l=e.values,c=e.open,u=e.searchValue,d=e.autoClearSearchValue,p=e.inputRef,f=e.placeholder,h=e.disabled,g=e.mode,m=e.showSearch,b=e.autoFocus,y=e.autoComplete,v=e.activeDescendantId,w=e.tabIndex,x=e.removeIcon,S=e.maxTagCount,E=e.maxTagTextLength,C=e.maxTagPlaceholder,k=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,O=e.tagRender,D=e.onToggleOpen,$=e.onRemove,_=e.onInputChange,N=e.onInputPaste,j=e.onInputKeyDown,P=e.onInputMouseDown,T=e.onInputCompositionStart,I=e.onInputCompositionEnd,A=yy.useRef(null),R=Ua(yy.useState(0),2),F=R[0],M=R[1],L=Ua(yy.useState(!1),2),B=L[0],z=L[1],H="".concat(s,"-selection"),U=c||"multiple"===g&&!1===d||"tags"===g?u:"",W="tags"===g||"multiple"===g&&!1===d||m&&(c||B);return o=function(){M(A.current.scrollWidth)},i=[U],Nj?yy.useLayoutEffect(o,i):yy.useEffect(o,i),n=yy.createElement("div",{className:"".concat(H,"-search"),style:{width:F},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},yy.createElement($j,{ref:p,open:c,prefixCls:s,id:a,inputElement:null,disabled:h,autoFocus:b,autoComplete:y,editable:W,activeDescendantId:v,value:U,onKeyDown:j,onMouseDown:P,onChange:_,onPaste:N,onCompositionStart:T,onCompositionEnd:I,tabIndex:w,attrs:ic(e,!0)}),yy.createElement("span",{ref:A,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},U," ")),r=yy.createElement(Dj,{prefixCls:"".concat(H,"-overflow"),data:l,renderItem:function(e){var n,r,o=e.disabled,i=e.label,a=e.value,s=!h&&!o,l=i;return"number"==typeof E&&("string"!=typeof i&&"number"!=typeof i||(n=String(l)).length>E&&(l="".concat(n.slice(0,E),"..."))),r=function(t){t&&t.stopPropagation(),$(e)},"function"==typeof O?function(e,t,n,r,o){return yy.createElement("span",{onMouseDown:function(e){jj(e),D(!c)}},O({label:t,value:e,disabled:n,closable:r,onClose:o}))}(a,l,o,s,r):t(e,l,o,s,r)},renderRest:function(e){var n="function"==typeof k?k(e):k;return t({title:n},n,!1)},suffix:n,itemKey:Gu,maxCount:S}),yy.createElement(yy.Fragment,null,r,!l.length&&!U&&yy.createElement("span",{className:"".concat(H,"-placeholder")},f))},Tj=function(e){var t,n,r,o=e.inputElement,i=e.prefixCls,a=e.id,s=e.inputRef,l=e.disabled,c=e.autoFocus,u=e.autoComplete,d=e.activeDescendantId,p=e.mode,f=e.open,h=e.values,g=e.placeholder,m=e.tabIndex,b=e.showSearch,y=e.searchValue,v=e.activeValue,w=e.maxLength,x=e.onInputKeyDown,S=e.onInputMouseDown,E=e.onInputChange,C=e.onInputPaste,k=e.onInputCompositionStart,O=e.onInputCompositionEnd,D=e.title,$=Ua(yy.useState(!1),2),_=$[1],N="combobox"===p,j=N||b,P=h[0],T=y||"";return N&&v&&!$[0]&&(T=v),yy.useEffect((function(){N&&_(!1)}),[N,v]),t=!("combobox"!==p&&!f&&!b||!T),n=void 0===D?Wu(P):D,r=function(){if(P)return null;var e=t?{visibility:"hidden"}:void 0;return yy.createElement("span",{className:"".concat(i,"-selection-placeholder"),style:e},g)},yy.createElement(yy.Fragment,null,yy.createElement("span",{className:"".concat(i,"-selection-search")},yy.createElement($j,{ref:s,prefixCls:i,id:a,open:f,inputElement:o,disabled:l,autoFocus:c,autoComplete:u,editable:j,activeDescendantId:d,value:T,onKeyDown:x,onMouseDown:S,onChange:function(e){_(!0),E(e)},onPaste:C,onCompositionStart:k,onCompositionEnd:O,tabIndex:m,attrs:ic(e,!0),maxLength:N?w:void 0})),!N&&P?yy.createElement("span",{className:"".concat(i,"-selection-item"),title:n,style:t?{visibility:"hidden"}:void 0},P.label):null,r())},Ij=function(e,t){var n,r,o,i,a,s,l,c,u,d,p=yy.useRef(null),f=yy.useRef(!1),h=e.prefixCls,g=e.open,m=e.mode,b=e.showSearch,y=e.tokenWithEnter,v=e.autoClearSearchValue,w=e.onSearch,x=e.onSearchSubmit,S=e.onToggleOpen,E=e.onInputKeyDown,C=e.domRef;return yy.useImperativeHandle(t,(function(){return{focus:function(){p.current.focus()},blur:function(){p.current.blur()}}})),n=Ua(Fu(0),2),r=n[0],o=n[1],i=function(e){var t=e.which;t!==V_.UP&&t!==V_.DOWN||e.preventDefault(),E&&E(e),t!==V_.ENTER||"tags"!==m||f.current||g||null==x||x(e.target.value),[V_.ESC,V_.SHIFT,V_.BACKSPACE,V_.TAB,V_.WIN_KEY,V_.ALT,V_.META,V_.WIN_KEY_RIGHT,V_.CTRL,V_.SEMICOLON,V_.EQUALS,V_.CAPS_LOCK,V_.CONTEXT_MENU,V_.F1,V_.F2,V_.F3,V_.F4,V_.F5,V_.F6,V_.F7,V_.F8,V_.F9,V_.F10,V_.F11,V_.F12].includes(t)||S(!0)},a=function(){o(!0)},s=yy.useRef(null),l=function(e){!1!==w(e,!0,f.current)&&S(!0)},c=function(e){e.target!==p.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){p.current.focus()})):p.current.focus())},u=function(e){var t=r();e.target===p.current||t||"combobox"===m||e.preventDefault(),("combobox"===m||b&&t)&&g||(g&&!1!==v&&w("",!0,!1),S())},d=yy.createElement("multiple"===m||"tags"===m?Pj:Tj,fa({},e,{inputRef:p,onInputKeyDown:i,onInputMouseDown:a,onInputChange:function(e){var t,n=e.target.value;y&&s.current&&/[\r\n]/.test(s.current)&&(t=s.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," "),n=n.replace(t,s.current)),s.current=null,l(n)},onInputPaste:function(e){var t=e.clipboardData.getData("text");s.current=t},onInputCompositionStart:function(){f.current=!0},onInputCompositionEnd:function(e){f.current=!1,"combobox"!==m&&l(e.target.value)}})),yy.createElement("div",{ref:C,className:"".concat(h,"-selector"),onClick:c,onMouseDown:u},d)},(Aj=yy.forwardRef(Ij)).displayName="Selector",Rj=yy.createContext(null),Fj=[],Mj="rc-util-locker-".concat(Date.now()),Lj=0,Bj=function(e){return!1!==e&&(Pa()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},zj=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E=e.open,C=e.autoLock,k=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,i=Ua(yy.useState(E),2),a=i[1],s=i[0]||E,yy.useEffect((function(){(r||E)&&a(E)}),[E,r]),c=(l=Ua(yy.useState((function(){return Bj(k)})),2))[0],u=l[1],yy.useEffect((function(){var e=Bj(k);u(null!=e?e:null)})),d=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=Ua(yy.useState((function(){return Pa()?document.createElement("div"):null})),1)[0],o=yy.useRef(!1),i=yy.useContext(Rj),a=Ua(yy.useState(Fj),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(xa(t))}))});return QO((function(){return e?i?i(t):t():n(),n}),[e]),QO((function(){s.length&&(s.forEach((function(e){return e()})),l(Fj))}),[s]),[r,c]}(s&&!c),f=(p=Ua(d,2))[0],h=p[1],g=null!=c?c:f,w=C&&E&&Pa()&&(g===f||g===document.body),x=!!w,S=Ua(yy.useState((function(){return Lj+=1,"".concat(Mj,"_").concat(Lj)})),1)[0],QO((function(){var e,t;return x?(e=Ac(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ba("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),S)):La(S),function(){La(S)}}),[x,S]),m=null,o&&Ws(o)&&t&&(m=o.ref),b=Us(m,t),s&&Pa()&&void 0!==c?(y=!1===g||false,v=o,t&&(v=yy.cloneElement(o,{ref:b})),yy.createElement(Rj.Provider,{value:h},y?v:PE.createPortal(v,g))):null})),Hj=yy.createContext(null),Uj=yy.memo((function(e){return e.children}),(function(e,t){return t.cache})),Wj=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.popup,u=e.className,d=e.prefixCls,p=e.style,f=e.target,h=e.onVisibleChanged,g=e.open,m=e.keepDom,b=e.onClick,y=e.mask,v=e.arrow,w=e.arrowPos,x=e.align,S=e.motion,E=e.maskMotion,C=e.forceRender,k=e.getPopupContainer,O=e.autoDestroy,D=e.portal,$=e.zIndex,_=e.onMouseEnter,N=e.onMouseLeave,j=e.onPointerEnter,P=e.ready,T=e.offsetX,I=e.offsetY,A=e.offsetR,R=e.offsetB,F=e.onAlign,M=e.onPrepare,L=e.stretch,B=e.targetWidth,z=e.targetHeight,H="function"==typeof c?c():c,U=g||m,W=(null==k?void 0:k.length)>0,G=Ua(yy.useState(!k||!W),2),V=G[0],q=G[1];return QO((function(){!V&&W&&f&&q(!0)}),[V,W,f]),V?(r={left:"-1000vw",top:"-1000vh",right:n="auto",bottom:n},!P&&g||(o=x.points,s=(a=null==(i=x._experimental)?void 0:i.dynamicInset)&&"b"===o[0][0],a&&"r"===o[0][1]?(r.right=A,r.left=n):(r.left=T,r.right=n),s?(r.bottom=R,r.top=n):(r.top=I,r.bottom=n)),l={},L&&(L.includes("height")&&z?l.height=z:L.includes("minHeight")&&z&&(l.minHeight=z),L.includes("width")&&B?l.width=B:L.includes("minWidth")&&B&&(l.minWidth=B)),g||(l.pointerEvents="none"),yy.createElement(D,{open:C||U,getContainer:k&&function(){return k(f)},autoDestroy:O},yy.createElement(ad,{prefixCls:d,open:g,zIndex:$,mask:y,motion:E}),yy.createElement(j$,{onResize:F,disabled:!g},(function(e){return yy.createElement(RQ,fa({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(d,"-hidden")},S,{onAppearPrepare:M,onEnterPrepare:M,visible:g,onVisibleChanged:function(e){var t;null==S||null===(t=S.onVisibleChanged)||void 0===t||t.call(S,e),h(e)}}),(function(n,o){var i=n.style,a=zJ(d,n.className,u);return yy.createElement("div",{ref:Hs(e,t,o),className:a,style:Ea(Ea(Ea(Ea({"--arrow-x":"".concat(w.x||0,"px"),"--arrow-y":"".concat(w.y||0,"px")},r),l),i),{},{boxSizing:"border-box",zIndex:$},p),onMouseEnter:_,onMouseLeave:N,onPointerEnter:j,onClick:b},v&&yy.createElement(id,{prefixCls:d,arrow:v,arrowPos:w,align:x}),yy.createElement(Uj,{cache:!g},H))}))})))):null})),Gj=yy.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ws(n),i=Us(yy.useCallback((function(e){zs(t,r?r(e):e)}),[r]),n.ref);return o?yy.cloneElement(n,{ref:i}):n})),Vj=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const l2=function(e){var t=arguments.length>0&&void 0!==e?e:zj,n=yy.forwardRef((function(e,n){function r(e,t,n,r){y[e]=function(o){var i,a,s,l;for(null==r||r(o),N(t,n),a=arguments.length,s=new Array(a>1?a-1:0),l=1;l1&&void 0!==t?t:0;_(),0===n?D(e):$.current=setTimeout((function(){D(e)}),1e3*n)},yy.useEffect((function(){return _}),[]),j=Ua(yy.useState(!1),2),P=j[0],T=j[1],QO((function(e){e&&!C||T(!0)}),[C]),I=Ua(yy.useState(null),2),A=I[0],R=I[1],M=(F=Ua(yy.useState([0,0]),2))[0],L=F[1],B=function(e){L([e.clientX,e.clientY])},z=function(e,t,n,r,o,i,a){var s,l,c,u=Ua(yy.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),d=u[0],p=u[1],f=yy.useRef(0),h=yy.useMemo((function(){return t?Yu(t):[]}),[t]),g=yy.useRef({});return e||(g.current={}),s=Pl((function(){var s,l,c,u,d,f,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T,I,A,R,F,M,L,B,z,H,U,W,G,V,q,X,K,Y,J,Q,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,pe,fe,he,ge,me,be,ye,ve,we,xe,Se,Ee,Ce,ke,Oe,De,$e,_e,Ne,je,Pe,Te,Ie,Ae,Re,Fe,Me,Le,Be,ze,He,Ue,We,Ge,Ve,qe,Xe,Ke,Ye;if(t&&n&&e){let e=function(e,t,n){var r=arguments.length>2&&void 0!==n?n:z,o=O.x+e,i=O.y+t,a=o+j,s=i+N,l=Math.max(o,r.left),c=Math.max(i,r.top),u=Math.min(a,r.right),d=Math.min(s,r.bottom);return Math.max(0,(u-l)*(d-c))},Je=function(){we=(ve=O.y+ae)+N,Se=(xe=O.x+ie)+j};if(u=(c=t).ownerDocument,f=(d=Ku(c).getComputedStyle(c)).width,m=d.height,b=d.position,y=c.style.left,v=c.style.top,w=c.style.right,x=c.style.bottom,S=Ea(Ea({},o[r]),i),E=u.createElement("div"),null===(s=c.parentElement)||void 0===s||s.appendChild(E),E.style.left="".concat(c.offsetLeft,"px"),E.style.top="".concat(c.offsetTop,"px"),E.style.position=b,E.style.height="".concat(c.offsetHeight,"px"),E.style.width="".concat(c.offsetWidth,"px"),c.style.left="0",c.style.top="0",c.style.right="auto",c.style.bottom="auto",C=Array.isArray(n)?{x:n[0],y:n[1],width:0,height:0}:{x:(k=n.getBoundingClientRect()).x,y:k.y,width:k.width,height:k.height},O=c.getBoundingClientRect(),N=O.height,j=O.width,P=C.height,T=C.width,I={left:0,top:0,right:(D=u.documentElement).clientWidth,bottom:D.clientHeight},R="visible",F="visibleFirst","scroll"!==(A=S.htmlRegion)&&A!==F&&(A=R),M=A===F,L=Zu({left:-(_=D.scrollLeft),top:-($=D.scrollTop),right:D.scrollWidth-_,bottom:D.scrollHeight-$},h),B=Zu(I,h),z=A===R?B:L,H=M?B:z,c.style.left="auto",c.style.top="auto",c.style.right="0",c.style.bottom="0",U=c.getBoundingClientRect(),c.style.left=y,c.style.top=v,c.style.right=w,c.style.bottom=x,null===(l=c.parentElement)||void 0===l||l.removeChild(E),W=Ju(Math.round(j/parseFloat(f)*1e3)/1e3),G=Ju(Math.round(N/parseFloat(m)*1e3)/1e3),0===W||0===G||Gs(n)&&!$Z(n))return;V=S.targetOffset,X=(q=Ua(td(O,S.offset),2))[0],K=q[1],J=(Y=Ua(td(C,V),2))[1],C.x-=Y[0],C.y-=J,Z=(Q=Ua(S.points||[],2))[0],ee=nd(Q[1]),te=nd(Z),ne=rd(C,ee),re=rd(O,te),oe=Ea({},S),se=e(ie=ne.x-re.x+X,ae=ne.y-re.y+K),le=e(ie,ae,B),ce=rd(C,["t","l"]),ue=rd(O,["t","l"]),de=rd(C,["b","r"]),pe=rd(O,["b","r"]),he=(fe=S.overflow||{}).adjustX,ge=fe.adjustY,me=fe.shiftX,be=fe.shiftY,ye=function(e){return"boolean"==typeof e?e:e>=0},Je(),Ee=ye(ge),Ce=te[0]===ee[0],Ee&&"t"===te[0]&&(we>H.bottom||g.current.bt)&&(ke=ae,Ce?ke-=N-P:ke=ce.y-pe.y-K,Oe=e(ie,ke),De=e(ie,ke,B),Oe>se||Oe===se&&(!M||De>=le)?(g.current.bt=!0,ae=ke,K=-K,oe.points=[od(te,0),od(ee,0)]):g.current.bt=!1),Ee&&"b"===te[0]&&(vese||_e===se&&(!M||Ne>=le)?(g.current.tb=!0,ae=$e,K=-K,oe.points=[od(te,0),od(ee,0)]):g.current.tb=!1),je=ye(he),Pe=te[1]===ee[1],je&&"l"===te[1]&&(Se>H.right||g.current.rl)&&(Te=ie,Pe?Te-=j-T:Te=ce.x-pe.x-X,Ie=e(Te,ae),Ae=e(Te,ae,B),Ie>se||Ie===se&&(!M||Ae>=le)?(g.current.rl=!0,ie=Te,X=-X,oe.points=[od(te,1),od(ee,1)]):g.current.rl=!1),je&&"r"===te[1]&&(xese||Fe===se&&(!M||Me>=le)?(g.current.lr=!0,ie=Re,X=-X,oe.points=[od(te,1),od(ee,1)]):g.current.lr=!1),Je(),"number"==typeof(Le=!0===me?0:me)&&(xeB.right&&(ie-=Se-B.right-X,C.x>B.right-Le&&(ie+=C.x-B.right+Le))),"number"==typeof(Be=!0===be?0:be)&&(veB.bottom&&(ae-=we-B.bottom-K,C.y>B.bottom-Be&&(ae+=C.y-B.bottom+Be))),He=(ze=O.x+ie)+j,We=(Ue=O.y+ae)+N,Ve=(Ge=C.x)+T,Xe=(qe=C.y)+P,Ke=(Math.max(ze,Ge)+Math.min(He,Ve))/2-ze,Ye=(Math.max(Ue,qe)+Math.min(We,Xe))/2-Ue,null==a||a(t,oe),p({ready:!0,offsetX:ie/W,offsetY:ae/G,offsetR:(U.right-O.x-(ie+O.width))/W,offsetB:(U.bottom-O.y-(ae+O.height))/G,arrowX:Ke/W,arrowY:Ye/G,scaleX:W,scaleY:G,align:oe})}})),l=function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&s()}))},QO(c=function(){p((function(e){return Ea(Ea({},e),{},{ready:!1})}))},[r]),QO((function(){e||c()}),[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,l]}(C,c,at?M:f,Ze,tt,nt,lt),U=(H=Ua(z,11))[0],W=H[1],G=H[2],V=H[3],q=H[4],X=H[5],K=H[6],Y=H[7],J=H[8],Q=H[9],Z=H[10],ee=function(e,t,n,r){return yy.useMemo((function(){var o=Vu(null!=n?n:t),i=Vu(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(xt,je,Pe,Te),te=Ua(ee,2),re=te[1],oe=(ne=te[0]).has("click"),ie=re.has("click")||re.has("contextMenu"),ae=Pl((function(){P||Z()})),function(e,t,n,r){QO((function(){var o,i,a,s,l;if(e&&t&&n){let e=function(){r(),O.current&&at&&ie&&N(!1)};return o=n,i=Yu(t),a=Yu(o),s=Ku(o),(l=new Set([s].concat(xa(i),xa(a)))).forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),s.addEventListener("resize",e,{passive:!0}),r(),function(){l.forEach((function(t){t.removeEventListener("scroll",e),s.removeEventListener("resize",e)}))}}}),[e,t,n])}(C,f,c,ae),QO((function(){ae()}),[M,Ze]),QO((function(){!C||null!=tt&&tt[Ze]||ae()}),[JSON.stringify(nt)]),se=yy.useMemo((function(){var e=function(e,t,n,r){var o,i,a,s=n.points,l=Object.keys(e);for(o=0;o1?n-1:0),o=1;o1?n-1:0),o=1;o0&&void 0!==e?e:10,n=Ua(yy.useState(!1),2),r=n[0],o=n[1],i=yy.useRef(null),a=function(){window.clearTimeout(i.current)};return yy.useEffect((function(){return a}),[]),[r,function(e,n){a(),i.current=window.setTimeout((function(){o(e),n&&n()}),t)},a]}(),h=(f=Ua(p,3))[0],g=f[1],m=f[2],yy.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=u.current)||void 0===e?void 0:e.focus,blur:null===(t=u.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=d.current)||void 0===t?void 0:t.scrollTo(e)}}})),b=yy.useMemo((function(){var e,t;return"combobox"!==be?$e:"string"==typeof(t=null===(e=de[0])||void 0===e?void 0:e.value)||"number"==typeof t?String(t):""}),[$e,be,de]),y="combobox"===be&&"function"==typeof we&&we()||null,v="function"==typeof xe&&xe(),w=Us(l,null==v||null===(n=v.props)||void 0===n?void 0:n.ref),S=(x=Ua(yy.useState(!1),2))[0],E=x[1],QO((function(){E(!0)}),[]),C=Ua(Al(!1,{defaultValue:Ee,value:Se}),2),k=C[0],D=!!S&&k,$=!ge&&fe,(ye||$&&D&&"combobox"===be)&&(D=!1),_=!$&&D,N=yy.useCallback((function(e){var t=void 0!==e?e:!D;ye||(O(t),D!==t&&(null==Ce||Ce(t)))}),[ye,D,O=C[1],Ce]),j=yy.useMemo((function(){return(Pe||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Pe]),P=function(e,t,n){var r,o,i,a,s=!0,l=e;return null==Oe||Oe(null),r=n?null:(o=Pe)&&o.length?(i=!1,a=function e(t,n){var r,o=el(n),a=o[0],s=o.slice(1);return a?(r=t.split(a),i=i||r.length>1,r.reduce((function(t,n){return[].concat(xa(t),xa(e(n,s)))}),[]).filter((function(e){return e}))):[t]}(e,o),i?a:null):null,"combobox"!==be&&r&&(l="",null==je||je(r),N(!1),s=!1),Ne&&b!==l&&Ne(l,{source:t?"typing":"effect"}),s},T=function(e){e&&e.trim()&&Ne(e,{source:"submit"})},yy.useEffect((function(){D||tt||"combobox"===be||P("",!1,!1)}),[D]),yy.useEffect((function(){k&&ye&&O(!1),ye&&g(!1)}),[ye]),I=Ua(Fu(),2),A=I[0],R=I[1],F=function(e){var t,n,r,o,i,a,s,l,c=A(),u=e.which;if(u===V_.ENTER&&("combobox"!==be&&e.preventDefault(),D||N(!0)),R(!!b),u===V_.BACKSPACE&&!c&&tt&&!b&&de.length){for(n=null,r=(t=xa(de)).length-1;r>=0;r-=1)if(!(o=t[r]).disabled){t.splice(r,1),n=o;break}n&&pe(t,{type:"remove",values:[n]})}for(i=arguments.length,a=new Array(i>1?i-1:0),s=1;s1?t-1:0),r=1;r1?r-1:0),a=1;a5&&void 0!==i&&i,c=arguments.length>6?a:void 0,u=arguments.length>7?s:void 0,d=rJ.useMemo((function(){return"object"===Ei(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:rJ.useMemo((function(){return!(l||!r||!n.length&&!c||"combobox"===u&&""===c)}),[r,l,n.length,c,u]),clearIcon:rJ.createElement(fj,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:d},"×")}}(ie,(function(){var e;null==me||me(),null===(e=u.current)||void 0===e||e.focus(),pe([],{type:"clear",values:de}),P("",!1,!1)}),de,Te,Ae,ye,b,be),Q=J.allowClear,Z=J.clearIcon,ee=yy.createElement(Re,{ref:d}),te=zJ(ie,ae,(ki(r={},"".concat(ie,"-focused"),h),ki(r,"".concat(ie,"-multiple"),tt),ki(r,"".concat(ie,"-single"),!tt),ki(r,"".concat(ie,"-allow-clear"),Te),ki(r,"".concat(ie,"-show-arrow"),K),ki(r,"".concat(ie,"-disabled"),ye),ki(r,"".concat(ie,"-loading"),ve),ki(r,"".concat(ie,"-open"),D),ki(r,"".concat(ie,"-customize-input"),y),ki(r,"".concat(ie,"-show-search"),nt),r)),ne=yy.createElement(Yj,{ref:c,disabled:ye,prefixCls:ie,visible:_,popupElement:ee,animation:Fe,transitionName:Me,dropdownStyle:Le,dropdownClassName:Be,direction:ce,dropdownMatchSelectWidth:ze,dropdownRender:He,dropdownAlign:Ue,placement:We,builtinPlacements:Ge,getPopupContainer:Ve,empty:fe,getTriggerDOMNode:function(){return l.current},onPopupVisibleChange:q,onPopupMouseEnter:function(){V({})}},v?yy.cloneElement(v,{ref:w}):yy.createElement(Aj,fa({},e,{domRef:l,prefixCls:ie,inputElement:y,ref:u,id:oe,showSearch:nt,autoClearSearchValue:_e,mode:be,activeDescendantId:De,tagRender:le,values:de,open:D,onToggleOpen:N,activeValue:ke,searchValue:b,onSearch:P,onSearchSubmit:T,onRemove:L,tokenWithEnter:j}))),re=v?ne:yy.createElement("div",fa({className:te},rt,{ref:s,onMouseDown:W,onKeyDown:F,onKeyUp:M,onFocus:z,onBlur:H}),h&&!D&&yy.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(de.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(Ei(t))?t:n})).join(", "))),ne,Y,Q&&Z),yy.createElement(hj.Provider,{value:X},re)})),eP=0,tP=Pa(),nP=["children","value"],rP=["children"],(oP=function(){return null}).isSelectOptGroup=!0,(iP=function(){return null}).isSelectOption=!0,(aP=yy.forwardRef((function(e,t){var n,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},p={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:e.height,position:"relative",overflow:"hidden"},p=Ea(Ea({},p),{},(ki(n={transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),ki(n,"position","absolute"),ki(n,"left",0),ki(n,"right",0),ki(n,"top",0),n))),yy.createElement("div",{style:d},yy.createElement(j$,{onResize:function(e){e.offsetHeight&&s&&s()}},yy.createElement("div",fa({style:p,className:zJ(ki({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))}))).displayName="Filler",sP=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.prefixCls,u=e.rtl,d=e.scrollOffset,p=e.scrollRange,f=e.onStartMove,h=e.onStopMove,g=e.onScroll,m=e.horizontal,b=e.spinSize,y=e.containerSize,v=Ua(yy.useState(!1),2),w=v[0],x=v[1],S=Ua(yy.useState(null),2),E=S[0],C=S[1],k=Ua(yy.useState(null),2),O=k[0],D=k[1],$=!u,_=yy.useRef(),N=yy.useRef(),j=Ua(yy.useState(!1),2),P=j[0],T=j[1],I=yy.useRef(),A=function(){clearTimeout(I.current),T(!0),I.current=setTimeout((function(){T(!1)}),3e3)},R=p-y||0,F=y-b||0,M=R>0,L=yy.useMemo((function(){return 0===d||0===R?0:d/R*F}),[d,R,F]),B=yy.useRef({top:L,dragging:w,pageY:E,startTop:O});return B.current={top:L,dragging:w,pageY:E,startTop:O},r=function(e){x(!0),C(fd(e,m)),D(B.current.top),f(),e.stopPropagation(),e.preventDefault()},yy.useEffect((function(){var e=function(e){e.preventDefault()},t=_.current,n=N.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",r),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",r)}}),[]),(o=yy.useRef()).current=R,(i=yy.useRef()).current=F,yy.useEffect((function(){var e,t,n;if(w)return t=function(t){var n,r,a,s,l,c=B.current,u=c.dragging,d=c.pageY,p=c.startTop;R$.cancel(e),u&&(n=fd(t,m)-d,r=p,!$&&m?r-=n:r+=n,a=o.current,s=i.current,l=Math.ceil((s?r/s:0)*a),l=Math.max(l,0),l=Math.min(l,a),e=R$((function(){g(l,m)})))},n=function(){x(!1),h()},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),R$.cancel(e)}}),[w]),yy.useEffect((function(){A()}),[d]),yy.useImperativeHandle(t,(function(){return{delayHidden:A}})),a="".concat(c,"-scrollbar"),s={position:"absolute",visibility:P&&M?null:"hidden"},l={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},m?(s.height=8,s.left=0,s.right=0,s.bottom=0,l.height="100%",l.width=b,$?l.left=L:l.right=L):(s.width=8,s.top=0,s.bottom=0,$?s.right=0:s.left=0,l.width="100%",l.height=b,l.top=L),yy.createElement("div",{ref:_,className:zJ(a,(n={},ki(n,"".concat(a,"-horizontal"),m),ki(n,"".concat(a,"-vertical"),!m),ki(n,"".concat(a,"-visible"),P),n)),style:s,onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:A},yy.createElement("div",{ref:N,className:zJ("".concat(a,"-thumb"),ki({},"".concat(a,"-thumb-moving"),w)),style:l,onMouseDown:r}))})),lP=function(){function e(){$i(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Ni(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),cP="object"===("undefined"==typeof navigator?"undefined":Ei(navigator))&&/Firefox/i.test(navigator.userAgent);const c2=function(e,t){var n=yy.useRef(!1),r=yy.useRef(null),o=yy.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e,t){var i=e<0&&o.current.top||e>0&&o.current.bottom;return arguments.length>1&&void 0!==t&&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}};uP=14/15,dP=20,pP=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender"],fP=[],hP={overflowY:"auto",overflowAnchor:"none"},(gP=yy.forwardRef(md)).displayName="List",mP=yy.createContext(null),bP=["disabled","title","children","style","className"],yP=function(e,t){function n(e,t){return{role:e.group?"presentation":"option",id:"".concat(d,"_list_").concat(t)}}var r,o,i,a,s,l,c=yy.useContext(hj),u=c.prefixCls,d=c.id,p=c.open,f=c.multiple,h=c.mode,g=c.searchValue,m=c.toggleOpen,b=c.notFoundContent,y=c.onPopupScroll,v=yy.useContext(mP),w=v.flattenOptions,x=v.onActiveValue,S=v.defaultActiveFirstOption,E=v.onSelect,C=v.menuItemSelectedIcon,k=v.rawValues,O=v.fieldNames,D=v.virtual,$=v.direction,_=v.listHeight,N=v.listItemHeight,j="".concat(u,"-item"),P=ka((function(){return w}),[p,w],(function(e,t){return t[0]&&e[1]!==t[1]})),T=yy.useRef(null),I=function(e){e.preventDefault()},A=function(e){T.current&&T.current.scrollTo("number"==typeof e?{index:e}:e)},R=function(e,t){var n,r,o,i=arguments.length>1&&void 0!==t?t:1,a=P.length;for(n=0;n1&&void 0!==t&&t;L(e),n={source:o?"keyboard":"mouse"},(r=P[e])?x(r.value,e,n):x(null,-1,n)};return yy.useEffect((function(){B(!1!==S?R(0):-1)}),[P.length,g]),r=yy.useCallback((function(e){return k.has(e)&&"combobox"!==h}),[h,xa(k).toString(),k.size]),yy.useEffect((function(){var e,t=setTimeout((function(){var e,t;!f&&p&&1===k.size&&(e=Array.from(k)[0],-1!==(t=P.findIndex((function(t){return t.data.value===e})))&&(B(t),A(t)))}));return p&&(null===(e=T.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[p,g,w.length]),o=function(e){void 0!==e&&E(e,{selected:!k.has(e)}),f||m(!1)},yy.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t,n,r,i=e.which,a=e.ctrlKey;switch(i){case V_.N:case V_.P:case V_.UP:case V_.DOWN:t=0,i===V_.UP?t=-1:i===V_.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&a&&(i===V_.N?t=1:i===V_.P&&(t=-1)),0!==t&&(n=R(M+t,t),A(n),B(n,!0));break;case V_.ENTER:o((r=P[M])&&!r.data.disabled?r.value:void 0),p&&e.preventDefault();break;case V_.ESC:m(!1),p&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}})),0===P.length?yy.createElement("div",{role:"listbox",id:"".concat(d,"_list"),className:"".concat(j,"-empty"),onMouseDown:I},b):(i=Object.keys(O).map((function(e){return O[e]})),a=function(e){return e.label},s=function(e){var t,o,i,s,l,c=P[e];return c?(o=(t=c.data||{}).value,i=c.group,s=ic(t,!0),l=a(c),c?yy.createElement("div",fa({"aria-label":"string"!=typeof l||i?null:l},s,{key:e},n(c,e),{"aria-selected":r(o)}),o):null):null},l={role:"listbox",id:"".concat(d,"_list")},yy.createElement(yy.Fragment,null,D&&yy.createElement("div",fa({},l,{style:{height:0,width:0,overflow:"hidden"}}),s(M-1),s(M),s(M+1)),yy.createElement(gP,{itemKey:"key",ref:T,data:P,height:_,itemHeight:N,fullHeight:!1,onMouseDown:I,onScroll:y,virtual:D,direction:$,innerProps:D?null:l},(function(e,t){var s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S=e.groupOption,E=e.data,k=e.label,O=e.value,$=E.key;return e.group?(c=null!==(l=E.title)&&void 0!==l?l:bd(k)?k.toString():void 0,yy.createElement("div",{className:zJ(j,"".concat(j,"-group")),title:c},void 0!==k?k:$)):(u=E.disabled,d=E.title,p=E.style,f=E.className,h=Qs(Oi(E,bP),i),g=r(O),m="".concat(j,"-option"),b=zJ(j,m,f,(ki(s={},"".concat(m,"-grouped"),S),ki(s,"".concat(m,"-active"),M===t&&!u),ki(s,"".concat(m,"-disabled"),u),ki(s,"".concat(m,"-selected"),g),s)),y=a(e),v=!C||"function"==typeof C||g,x=bd(w="number"==typeof y?y:y||O)?w.toString():void 0,void 0!==d&&(x=d),yy.createElement("div",fa({},ic(h),D?{}:n(e,t),{"aria-selected":g,className:b,title:x,onMouseMove:function(){M===t||u||B(t)},onClick:function(){u||o(O)},style:p}),yy.createElement("div",{className:"".concat(m,"-content")},w),yy.isValidElement(C)||g,v&&yy.createElement(fj,{className:"".concat(j,"-option-state"),customizeIcon:C,customizeIconProps:{isSelected:g}},g?"✓":null)))}))))},(vP=yy.forwardRef(yP)).displayName="OptionList",wP=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],xP=["inputValue"],SP=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E=e.id,C=e.mode,k=e.prefixCls,O=void 0===k?"rc-select":k,D=e.backfill,$=e.fieldNames,_=e.inputValue,N=e.searchValue,j=e.onSearch,P=e.autoClearSearchValue,T=void 0===P||P,I=e.onSelect,A=e.onDeselect,R=e.dropdownMatchSelectWidth,F=void 0===R||R,M=e.filterOption,L=e.filterSort,B=e.optionFilterProp,z=e.optionLabelProp,H=e.options,U=e.children,W=e.defaultActiveFirstOption,G=e.menuItemSelectedIcon,V=e.virtual,q=e.direction,X=e.listHeight,K=void 0===X?200:X,Y=e.listItemHeight,J=void 0===Y?20:Y,Q=e.value,Z=e.defaultValue,ee=e.labelInValue,te=e.onChange,ne=Oi(e,wP),re=function(e){var t=Ua(yy.useState(),2),n=t[0],r=t[1];return yy.useEffect((function(){var e;r("rc_select_".concat((tP?(e=eP,eP+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(E),oe=ud(C),ie=!(H||!U),ae=yy.useMemo((function(){return(void 0!==M||"combobox"!==C)&&M}),[M,C]),se=yy.useMemo((function(){return ld($,ie)}),[JSON.stringify($),ie]),le=Ua(Al("",{value:void 0!==N?N:_,postState:function(e){return e||""}}),2),ce=le[0],ue=le[1],de=function(e,t,n,r,o){return yy.useMemo((function(){var i,a,s,l=e;return!e&&(l=dd(t)),i=new Map,a=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)},function e(t,l){var c,u,d=arguments.length>1&&void 0!==l&&l;for(c=0;c1&&void 0!==t?t:{},r=n.childrenAsData,o=[],i=ld(n.fieldNames,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){t.forEach((function(t){var i,u;n||!(l in t)?(i=t[s],o.push({key:sd(t,o.length),groupOption:n,data:t,label:t[a],value:i})):(void 0===(u=t[c])&&r&&(u=t.label),o.push({key:sd(t,o.length),group:!0,data:t,label:u}),e(t[l],!0))}))}(e,!1),o}(a,{fieldNames:se,childrenAsData:ie})}),[a,se,ie]),l=function(e){var t,n,r=ge(e);ye(r),te&&(r.length!==Se.length||r.some((function(e,t){var n;return(null===(n=Se[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))&&(t=ee?r:r.map((function(e){return e.value})),n=r.map((function(e){return cd(Ee(e.value))})),te(oe?t:t[0],oe?n:n[0]))},u=(c=Ua(yy.useState(null),2))[0],d=c[1],f=(p=Ua(yy.useState(0),2))[0],h=p[1],g=void 0!==W?W:"combobox"!==C,m=yy.useCallback((function(e,t,n){var r=(arguments.length>2&&void 0!==n?n:{}).source,o=void 0===r?"keyboard":r;h(t),D&&"combobox"===C&&null!==e&&"keyboard"===o&&d(String(e))}),[D,C]),b=function(e,t,n){var r,o,i=function(){var t,n=Ee(e);return[ee?{label:null==n?void 0:n[se.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,cd(n)]};t&&I?(r=Ua(i(),2),I(r[0],r[1])):!t&&A&&"clear"!==n&&(o=Ua(i(),2),A(o[0],o[1]))},y=pd((function(e,t){var n,r=!oe||t.selected;n=r?oe?[].concat(xa(Se),[e]):[e]:Se.filter((function(t){return t.value!==e})),l(n),b(e,r),"combobox"===C?d(""):ud&&!T||(ue(""),d(""))})),v=function(e,t){l(e);var n=t.type;"remove"!==n&&"clear"!==n||t.values.forEach((function(e){b(e.value,!1,n)}))},w=function(e,t){var n,r;ue(e),d(null),"submit"!==t.source?"blur"!==t.source&&("combobox"===C&&l(e),null==j||j(e)):(n=(e||"").trim())&&(r=Array.from(new Set([].concat(xa(ke),[n]))),l(r),b(n,!0),ue(""))},x=function(e){var t,n=e;"tags"!==C&&(n=e.map((function(e){var t=fe.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e}))),t=Array.from(new Set([].concat(xa(ke),xa(n)))),l(t),t.forEach((function(e){b(e,!0)}))},S=yy.useMemo((function(){var e=!1!==V&&!1!==F;return Ea(Ea({},de),{},{flattenOptions:s,onActiveValue:m,defaultActiveFirstOption:g,onSelect:y,menuItemSelectedIcon:G,rawValues:ke,fieldNames:se,virtual:e,direction:q,listHeight:K,listItemHeight:J,childrenAsData:ie})}),[de,s,m,g,y,G,ke,se,V,F,K,J,ie]),yy.createElement(mP.Provider,{value:S},yy.createElement(Zj,fa({},ne,{id:re,prefixCls:O,ref:t,omitDomProps:xP,mode:C,displayValues:Ce,onDisplayValuesChange:v,direction:q,searchValue:ce,onSearch:w,autoClearSearchValue:T,onSearchSplit:x,dropdownMatchSelectWidth:F,OptionList:vP,emptyOptions:!s.length,activeValue:u,activeDescendantId:"".concat(re,"_list_").concat(f)})))})),(EP=SP).Option=iP,EP.OptGroup=oP;const u2=(e,t)=>t||e,d2=()=>{const[,e]=jl(),t=new U$(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return yy.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},yy.createElement("g",{fill:"none",fillRule:"evenodd"},yy.createElement("g",{transform:"translate(24 31.67)"},yy.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),yy.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"}),yy.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)"}),yy.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"}),yy.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"})),yy.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"}),yy.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},yy.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),yy.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},p2=()=>{const[,e]=jl(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=yy.useMemo((()=>({borderColor:new U$(t).onBackground(o).toHexShortString(),shadowColor:new U$(n).onBackground(o).toHexShortString(),contentColor:new U$(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return yy.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},yy.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},yy.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),yy.createElement("g",{fillRule:"nonzero",stroke:i},yy.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"}),yy.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:s}))))},f2=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},h2=Ml("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=Rl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[f2(r)]}));CP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var{className:t,rootClassName:n,prefixCls:r,image:o=g2,description:i,children:a,imageStyle:s,style:l}=e,c=CP(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:p}=yy.useContext(mQ),f=u("empty",r),[h,g]=h2(f),[m]=QJ("Empty"),b=void 0!==i?i:null==m?void 0:m.description;let y=null;return y="string"==typeof o?yy.createElement("img",{alt:"string"==typeof b?b:"empty",src:o}):o,h(yy.createElement("div",Object.assign({className:zJ(g,f,null==p?void 0:p.className,{[`${f}-normal`]:o===m2,[`${f}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),l)},c),yy.createElement("div",{className:`${f}-image`,style:s},y),b&&yy.createElement("div",{className:`${f}-description`},b),a&&yy.createElement("div",{className:`${f}-footer`},a)))};b2.PRESENTED_IMAGE_DEFAULT=g2,b2.PRESENTED_IMAGE_SIMPLE=m2;const y2=b2,v2=e=>{const{componentName:t}=e,{getPrefixCls:n}=yy.useContext(mQ),r=n("empty");switch(t){case"Table":case"List":return rJ.createElement(y2,{image:y2.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return rJ.createElement(y2,{image:y2.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return rJ.createElement(y2,null)}},w2=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"}},x2=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`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},vQ(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${s}bottomLeft,\n ${i}${s}bottomLeft\n `]:{animationName:r1},[`\n ${o}${s}topLeft,\n ${i}${s}topLeft,\n ${o}${s}topRight,\n ${i}${s}topRight\n `]:{animationName:i1},[`${a}${s}bottomLeft`]:{animationName:o1},[`\n ${a}${s}topLeft,\n ${a}${s}topRight\n `]:{animationName:a1},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},w2(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"},yQ),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},p1(e,"slide-up"),p1(e,"slide-down"),n1(e,"move-up"),n1(e,"move-down")]},S2=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]},E2=e=>{const{componentCls:t}=e,n=Rl(e,{controlHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Rl(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=S2(e);return[vd(e),vd(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},vd(r,"lg")]},C2=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},k2=function(e,t,n){let r=arguments.length>2&&void 0!==n&&n;const{componentCls:o,borderHoverColor:i,outlineColor:a,antCls:s}=t;return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${s}-pagination-size-changer)`]:Object.assign(Object.assign({},r?{[`${o}-selector`]:{borderColor:i}}:{}),{[`${o}-focused& ${o}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,outline:0},[`&:hover ${o}-selector`]:{borderColor:i}})}}},O2=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},D2=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},vQ(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},C2(e)),O2(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},yQ),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},yQ),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},$2=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},D2(e),xd(e),E2(e),x2(e),{[`${t}-rtl`]:{direction:"rtl"}},k2(t,Rl(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),k2(`${t}-status-error`,Rl(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),k2(`${t}-status-warning`,Rl(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),$c(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},_2=Ml("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=Rl(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight});return[$2(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:p,controlHeightSM:f,colorBgContainerDisabled:h,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}})),N2={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"},j2=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:N2}))})),P2={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"},T2=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:P2}))})),I2={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"},A2=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:I2}))}));kP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,{prefixCls:r,bordered:o=!0,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:p=24,size:f,disabled:h,notFoundContent:g,status:m,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:v,direction:w,style:x,allowClear:S}=e,E=kP(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:C,getPrefixCls:k,renderEmpty:O,direction:D,virtual:$,popupMatchSelectWidth:_,popupOverflow:N,select:j}=yy.useContext(mQ),P=k("select",r),T=k(),I=null!=w?w:D,{compactSize:A,compactItemClassnames:R}=zZ(P,I),[F,M]=_2(P),L=yy.useMemo((()=>{const{mode:e}=E;if("combobox"!==e)return e===R2?"combobox":e}),[E.mode]),B="multiple"===L||"tags"===L,z=function(e,t){return void 0!==t?t:null!==e}(E.suffixIcon,E.showArrow),H=null!==(n=null!=v?v:y)&&void 0!==n?n:_,{status:U,hasFeedback:W,isFormItemInput:G,feedbackIcon:V}=yy.useContext(F0),q=u2(U,m);let X;X=void 0!==g?g:"combobox"===L?null:(null==O?void 0:O("Select"))||yy.createElement(v2,{componentName:"Select"});const{suffixIcon:K,itemIcon:Y,removeIcon:J,clearIcon:Q}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d}=e;const p=null!=n?n:yy.createElement(YQ,null),f=e=>null!==t||s||d?yy.createElement(yy.Fragment,null,!1!==c&&e,s&&u):null;let h=null;if(void 0!==t)h=f(t);else if(i)h=f(yy.createElement(pZ,{spin:!0}));else{const e=`${l}-suffix`;h=t=>{let{open:n,showSearch:r}=t;return f(yy.createElement(n&&r?A2:T2,{className:e}))}}let g=null;g=void 0!==r?r:a?yy.createElement(j2,null):null;let m=null;return m=void 0!==o?o:yy.createElement(QQ,null),{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:m}}(Object.assign(Object.assign({},E),{multiple:B,hasFeedback:W,feedbackIcon:V,showSuffixIcon:z,prefixCls:P,showArrow:E.showArrow,componentName:"Select"})),Z=!0===S?{clearIcon:Q}:S,ee=Qs(E,["suffixIcon","itemIcon"]),te=zJ(l||c,{[`${P}-dropdown-${I}`]:"rtl"===I},a,M),ne=AZ((e=>{var t;return null!==(t=null!=f?f:A)&&void 0!==t?t:e})),re=yy.useContext(PQ),oe=null!=h?h:re,ie=zJ({[`${P}-lg`]:"large"===ne,[`${P}-sm`]:"small"===ne,[`${P}-rtl`]:"rtl"===I,[`${P}-borderless`]:!o,[`${P}-in-form-item`]:G},yd(P,q,W),R,null==j?void 0:j.className,i,a,M),ae=yy.useMemo((()=>void 0!==d?d:"rtl"===I?"bottomRight":"bottomLeft"),[d,I]),se=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",_experimental:{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)}(b,N);return F(yy.createElement(EP,Object.assign({ref:t,virtual:$,showSearch:null==j?void 0:j.showSearch},ee,{style:Object.assign(Object.assign({},null==j?void 0:j.style),x),dropdownMatchSelectWidth:H,builtinPlacements:se,transitionName:DZ(T,"slide-up",E.transitionName),listHeight:u,listItemHeight:p,mode:L,prefixCls:P,placement:ae,direction:I,suffixIcon:K,menuItemSelectedIcon:Y,removeIcon:J,allowClear:Z,notFoundContent:X,className:ie,getPopupContainer:s||C,dropdownClassName:te,disabled:oe})))},M2=yy.forwardRef(F2),L2=(eY=M2,Ru((function(e){const{prefixCls:t,style:n}=e,r=yy.useRef(null),[o,i]=yy.useState(0),[a,s]=yy.useState(0),[l,c]=Al(!1,{value:e.open}),{getPrefixCls:u}=yy.useContext(mQ),d=u("select",t);yy.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;i(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=null===(n=r.current)||void 0===n?void 0:n.querySelector(`.${d}-dropdown`);o&&(clearInterval(t),e.observe(o))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let p=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return yy.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:a}},yy.createElement(eY,Object.assign({},p)))})));M2.SECRET_COMBOBOX_MODE_DO_NOT_USE=R2,M2.Option=iP,M2.OptGroup=oP,M2._InternalPanelDoNotUseOrYouWillBeFired=L2;const B2=M2,z2=["xxl","xl","lg","md","sm","xs"],H2=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)`}),U2=e=>{const t=e,n=[].concat(z2).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vQ(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:s,minHeight:s,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,G2)}},[`${t}-content`]:{position:"relative"}}),Ll(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},Od(Rl(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Y2=(e,t)=>Ml("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=Rl(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[K2(a),O1(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),J2=eQ.map((e=>`${e}-inverse`)),Q2=["success","processing","error","default","warning"];PP=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:p,destroyTooltipOnHide:f,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:v=!0}=e,w=!!h,[,x]=jl(),{getPopupContainer:S,getPrefixCls:E,direction:C}=yy.useContext(mQ),k=yy.useRef(null),O=()=>{var e;null===(e=k.current)||void 0===e||e.forceAlign()};yy.useImperativeHandle(t,(()=>({forceAlign:O,forcePopupAlign:()=>{O()}})));const[D,$]=Al(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),_=!g&&!m&&0!==g,N=yy.useMemo((()=>{var e,t;let n=y;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:y),b||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(V2).forEach((e=>{const c=Object.assign(Object.assign({},r&&q2[e]||V2[e]),{offset:[0,0]});switch(l[e]=c,X2.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=s+o}const u=Cd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-u.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":c.offset[0]=u.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":c.offset[1]=-u.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":c.offset[1]=u.dropdownArrowOffset+s}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,u,t,n),a&&(c.htmlRegion="visibleFirst")})),l}({arrowPointAtCenter:n,autoAdjustOverflow:v,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[y,h,b,x]),j=yy.useMemo((()=>0===g?g:m||g||""),[m,g]),P=yy.createElement(HZ,null,"function"==typeof j?j():j),{getPopupContainer:T,placement:I="top",mouseEnterDelay:A=.1,mouseLeaveDelay:R=.1,overlayStyle:F,rootClassName:M}=e,L=PP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),B=E("tooltip",o),z=E(),H=e["data-popover-inject"];let U=D;"open"in e||"visible"in e||!_||(U=!1);const W=function(e,t){const n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){const{picked:n,omitted:r}=(e=>{const t={},n=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach((r=>{e&&r in e&&(t[r]=e[r],delete n[r])})),{picked:t,omitted:n}})(e.props.style),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),i=sc(e,{style:Object.assign(Object.assign({},r),{pointerEvents:"none"}),className:null});return yy.createElement("span",{style:o,className:zJ(e.props.className,`${t}-disabled-compatible-wrapper`)},i)}return e}(rZ(u)&&!ac(u)?u:yy.createElement("span",null,u),B),G=W.props,V=G.className&&"string"!=typeof G.className?G.className:zJ(G.className,i||`${B}-open`),[q,X]=Y2(B,!H),K=$d(B,l),Y=K.arrowStyle,J=Object.assign(Object.assign({},c),K.overlayStyle),Q=zJ(s,{[`${B}-rtl`]:"rtl"===C},K.className,M,X);return q(yy.createElement(W2,Object.assign({},L,{showArrow:w,placement:I,mouseEnterDelay:A,mouseLeaveDelay:R,prefixCls:B,overlayClassName:Q,overlayStyle:Object.assign(Object.assign({},Y),F),getTooltipContainer:T||a||S,ref:k,builtinPlacements:N,overlay:P,visible:U,onVisibleChange:t=>{var n,r;$(!_&&t),_||(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:p,overlayInnerStyle:J,arrowContent:yy.createElement("span",{className:`${B}-arrow-content`}),motion:{motionName:DZ(z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),U?sc(W,{className:V}):W))}));Z2._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=yy.useContext(mQ),l=s("tooltip",t),[c,u]=Y2(l,!0),d=$d(l,i),p=d.arrowStyle,f=Object.assign(Object.assign({},a),d.overlayStyle),h=zJ(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(yy.createElement("div",{className:h,style:p},yy.createElement("div",{className:`${l}-arrow`}),yy.createElement(Ed,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),o)))};const e5=Z2,t5={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"},n5=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:t5}))}));TP=V_.ESC,IP=V_.TAB,AP=yy.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=yy.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=Hs(t,null==i?void 0:i.ref);return rJ.createElement(rJ.Fragment,null,r&&rJ.createElement("div",{className:"".concat(o,"-arrow")}),rJ.cloneElement(i,{ref:Ws(i)?a:void 0}))})),MP={topLeft:{points:["bl","tl"],overflow:RP={adjustX:1,adjustY:1},offset:[0,-4],targetOffset:FP=[0,0]},top:{points:["bc","tc"],overflow:RP,offset:[0,-4],targetOffset:FP},topRight:{points:["br","tr"],overflow:RP,offset:[0,-4],targetOffset:FP},bottomLeft:{points:["tl","bl"],overflow:RP,offset:[0,4],targetOffset:FP},bottom:{points:["tc","bc"],overflow:RP,offset:[0,4],targetOffset:FP},bottomRight:{points:["tr","br"],overflow:RP,offset:[0,4],targetOffset:FP}},LP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const r5=rJ.forwardRef(_d);BP=yy.createContext(null),zP=["children","locked"],HP=yy.createContext(null),UP=[],WP=yy.createContext(null),GP=yy.createContext(UP),VP=yy.createContext(null),qP=yy.createContext({}),QP=V_.ENTER,ZP=V_.ESC,eT=V_.HOME,tT=V_.END,nT=[YP=V_.UP,JP=V_.DOWN,XP=V_.LEFT,KP=V_.RIGHT],rT="__RC_UTIL_PATH_SPLIT__",oT=function(e){return e.join(rT)},iT=function(e){return e.split(rT)},aT="rc-menu-more",sT=Math.random().toFixed(5).toString().slice(2),lT=0,cT=["item"],uT=["title","attribute","elementRef"],dT=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],pT=["active"],fT=function(){function e(){return $i(this,e),t.apply(this,arguments)}Ts(e,yy.Component);var t=Fs(e);return Ni(e,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Qs(Oi(e,uT),["eventKey","popupClassName","popupOffset","onTitleClick"]);return _a(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),yy.createElement(Dj.Item,fa({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),e}(),hT=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T,I,A,R,F,M,L,B,z=e.style,H=e.className,U=e.eventKey;return r=e.disabled,o=e.itemIcon,i=e.children,a=e.role,s=e.onMouseEnter,l=e.onMouseLeave,c=e.onClick,u=e.onKeyDown,d=e.onFocus,p=Oi(e,dT),f=jd(U),g=(h=yy.useContext(HP)).prefixCls,m=h.onItemClick,b=h.disabled,y=h.overflowDisabled,v=h.itemIcon,w=h.selectedKeys,x=h.onActive,S=yy.useContext(qP)._internalRenderMenuItem,E="".concat(g,"-item"),C=yy.useRef(),k=yy.useRef(),O=b||r,D=Us(t,k),$=Id(U),_=function(e){return{key:U,keyPath:xa($).reverse(),item:C.current,domEvent:e}},N=o||v,P=(j=Ld(U,O,s,l)).active,T=Oi(j,pT),I=w.includes(U),A=Bd($.length),R=function(e){if(!O){var t=_(e);null==c||c(Hd(t)),m(t)}},F=function(e){if(null==u||u(e),e.which===V_.ENTER){var t=_(e);null==c||c(Hd(t)),m(t)}},M=function(e){x(U),null==d||d(e)},L={},"option"===e.role&&(L["aria-selected"]=I),B=yy.createElement(fT,fa({ref:C,elementRef:D,role:null===a?"none":a||"menuitem",tabIndex:r?null:-1,"data-menu-id":y&&f?null:f},p,T,L,{component:"li","aria-disabled":r,style:Ea(Ea({},A),z),className:zJ(E,(n={},ki(n,"".concat(E,"-active"),P),ki(n,"".concat(E,"-selected"),I),ki(n,"".concat(E,"-disabled"),O),n),H),onClick:R,onKeyDown:F,onFocus:M}),i,yy.createElement(zd,{props:Ea(Ea({},e),{},{isSelected:I}),icon:N})),S&&(B=S(B,e,{selected:I})),B}));const o5=yy.forwardRef(Ud);gT=["className","children"],mT=function(e,t){var n=e.className,r=e.children,o=Oi(e,gT),i=yy.useContext(HP),a=i.prefixCls,s=i.mode;return yy.createElement("ul",fa({className:zJ(a,i.rtl&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},(bT=yy.forwardRef(mT)).displayName="SubMenuList",vT={topLeft:{points:["bl","tl"],overflow:yT={adjustX:1,adjustY:1}},topRight:{points:["br","tr"],overflow:yT},bottomLeft:{points:["tl","bl"],overflow:yT},bottomRight:{points:["tr","br"],overflow:yT},leftTop:{points:["tr","tl"],overflow:yT},leftBottom:{points:["br","bl"],overflow:yT},rightTop:{points:["tl","tr"],overflow:yT},rightBottom:{points:["bl","br"],overflow:yT}},wT={topLeft:{points:["bl","tl"],overflow:yT},topRight:{points:["br","tr"],overflow:yT},bottomLeft:{points:["tl","bl"],overflow:yT},bottomRight:{points:["tr","br"],overflow:yT},rightTop:{points:["tr","tl"],overflow:yT},rightBottom:{points:["br","bl"],overflow:yT},leftTop:{points:["tl","tr"],overflow:yT},leftBottom:{points:["bl","br"],overflow:yT}},xT={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ST=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ET=["active"],CT=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T,I,A,R,F,M,L,B,z,H,U,W,G,V,q,X,K,Y,J,Q,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue=e.style,de=e.className,pe=e.title,fe=e.eventKey;return n=e.disabled,r=e.internalPopupClose,o=e.children,i=e.itemIcon,a=e.expandIcon,s=e.popupClassName,l=e.popupOffset,c=e.popupStyle,u=e.onClick,d=e.onMouseEnter,p=e.onMouseLeave,f=e.onTitleClick,h=e.onTitleMouseEnter,g=e.onTitleMouseLeave,m=Oi(e,ST),b=jd(fe),v=(y=yy.useContext(HP)).prefixCls,w=y.mode,x=y.openKeys,S=y.disabled,E=y.overflowDisabled,C=y.activeKey,k=y.selectedKeys,O=y.itemIcon,D=y.expandIcon,$=y.onItemClick,_=y.onOpenChange,N=y.onActive,j=yy.useContext(qP)._internalRenderSubMenuItem,P=yy.useContext(VP),T=P.isSubPathKey,I=Id(),A="".concat(v,"-submenu"),R=S||n,F=yy.useRef(),M=yy.useRef(),L=null!=i?i:O,B=null!=a?a:D,z=x.includes(fe),H=!E&&z,U=T(k,fe),W=Ld(fe,R,h,g),G=W.active,V=Oi(W,ET),q=Ua(yy.useState(!1),2),K=q[1],Y=function(e){R||K(e)},J=function(e){Y(!0),null==d||d({key:fe,domEvent:e})},Q=function(e){Y(!1),null==p||p({key:fe,domEvent:e})},Z=yy.useMemo((function(){return G||"inline"!==w&&(X||T([C],fe))}),[w,G,C,X=q[0],fe,T]),ee=Bd(I.length),te=function(e){R||(null==f||f({key:fe,domEvent:e}),"inline"===w&&_(fe,!z))},ne=Md((function(e){null==u||u(Hd(e)),$(e)})),re=function(e){"inline"!==w&&_(fe,e)},oe=function(){N(fe)},ie=b&&"".concat(b,"-popup"),ae=yy.createElement("div",fa({role:"menuitem",style:ee,className:"".concat(A,"-title"),tabIndex:R?null:-1,ref:F,title:"string"==typeof pe?pe:null,"data-menu-id":E&&b?null:b,"aria-expanded":H,"aria-haspopup":!0,"aria-controls":ie,"aria-disabled":R,onClick:te,onFocus:oe},V),pe,yy.createElement(zd,{icon:"horizontal"!==w?B:void 0,props:Ea(Ea({},e),{},{isOpen:H,isSubMenu:!0})},yy.createElement("i",{className:"".concat(A,"-arrow")}))),(se=yy.useRef(w)).current="inline"!==w&&I.length>1?"vertical":w,E||(ae=yy.createElement(Vd,{mode:le=se.current,prefixCls:A,visible:!r&&H&&"inline"!==w,popupClassName:s,popupOffset:l,popupStyle:c,popup:yy.createElement(Pd,{mode:"horizontal"===le?"vertical":le},yy.createElement(bT,{id:ie,ref:M},o)),disabled:R,onVisibleChange:re},ae)),ce=yy.createElement(Dj.Item,fa({role:"none"},m,{component:"li",style:ue,className:zJ(A,"".concat(A,"-").concat(w),de,(t={},ki(t,"".concat(A,"-open"),H),ki(t,"".concat(A,"-active"),Z),ki(t,"".concat(A,"-selected"),U),ki(t,"".concat(A,"-disabled"),R),t)),onMouseEnter:J,onMouseLeave:Q}),ae,!E&&yy.createElement(qd,{id:ie,open:H,keyPath:I},o)),j&&(ce=j(ce,e,{selected:U,active:Z,open:H,disabled:R})),yy.createElement(Pd,{onItemClick:ne,mode:"horizontal"===w?"vertical":w,itemIcon:L,expandIcon:B},ce)},kT=["className","title","eventKey","children"],OT=["children"],DT=function(e){var t,n,r,o,i=e.className,a=e.title;return t=e.children,n=Oi(e,kT),r=yy.useContext(HP),o="".concat(r.prefixCls,"-item-group"),yy.createElement("li",fa({role:"presentation"},n,{onClick:function(e){return e.stopPropagation()},className:zJ(o,i)}),yy.createElement("div",{role:"presentation",className:"".concat(o,"-title"),title:"string"==typeof a?a:void 0},a),yy.createElement("ul",{role:"group",className:"".concat(o,"-list")},t))},$T=["label","children","key","type"],_T=["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"],NT=[],(jT=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T,I,A,R,F,M,L,B,z,H,U,W,G,V,q,X,K,Y,J,Q,Z,ee,te,ne,re,oe,ie,ae,se=e.prefixCls,le=void 0===se?"rc-menu":se,ce=e.rootClassName,ue=e.style,de=e.className,pe=e.tabIndex,fe=void 0===pe?0:pe,he=e.items,ge=e.children,me=e.direction,be=e.id,ye=e.mode,ve=void 0===ye?"vertical":ye,we=e.inlineCollapsed,xe=e.disabled,Se=e.disabledOverflow,Ee=e.subMenuOpenDelay,Ce=void 0===Ee?.1:Ee,ke=e.subMenuCloseDelay,Oe=void 0===ke?.1:ke,De=e.forceSubMenuRender,$e=e.defaultOpenKeys,_e=e.openKeys,Ne=e.activeKey,je=e.defaultActiveFirst,Pe=e.selectable,Te=void 0===Pe||Pe,Ie=e.multiple,Ae=void 0!==Ie&&Ie,Re=e.defaultSelectedKeys,Fe=e.selectedKeys,Me=e.onSelect,Le=e.onDeselect,Be=e.inlineIndent,ze=void 0===Be?24:Be,He=e.motion,Ue=e.defaultMotions,We=e.triggerSubMenuAction,Ge=void 0===We?"hover":We,Ve=e.builtinPlacements,qe=e.itemIcon,Xe=e.expandIcon,Ke=e.overflowedIndicator,Ye=void 0===Ke?"...":Ke,Je=e.overflowedIndicatorPopupClassName,Qe=e.getPopupContainer,Ze=e.onClick,et=e.onOpenChange,tt=e.onKeyDown;return o=e._internalRenderMenuItem,i=e._internalRenderSubMenuItem,a=Oi(e,_T),s=yy.useMemo((function(){return Qd(ge,he,NT)}),[ge,he]),c=(l=Ua(yy.useState(!1),2))[0],u=l[1],d=yy.useRef(),p=function(e){var t=Ua(Al(e,{value:e}),2),n=t[0],r=t[1];return yy.useEffect((function(){lT+=1;var e="".concat(sT,"-").concat(lT);r("rc-menu-uuid-".concat(e))}),[]),n}(be),f="rtl"===me,h=Ua(Al($e,{value:_e,postState:function(e){return e||NT}}),2),m=h[1],b=function(e,t){function n(){m(e),null==et||et(e)}arguments.length>1&&void 0!==t&&t?PE.flushSync(n):n()},y=Ua(yy.useState(g=h[0]),2),v=y[0],w=y[1],x=yy.useRef(!1),S=Ua(yy.useMemo((function(){return"inline"!==ve&&"vertical"!==ve||!we?[ve,!1]:["vertical",we]}),[ve,we]),2),C=S[1],k="inline"===(E=S[0]),O=Ua(yy.useState(E),2),D=O[0],$=O[1],N=(_=Ua(yy.useState(C),2))[0],j=_[1],yy.useEffect((function(){$(E),j(C),x.current&&(k?m(v):b(NT))}),[E,C]),P=Ua(yy.useState(0),2),I=P[1],A=(T=P[0])>=s.length-1||"horizontal"!==D||Se,yy.useEffect((function(){k&&w(g)}),[g]),yy.useEffect((function(){return x.current=!0,function(){x.current=!1}}),[]),R=function(){var e=Ua(yy.useState({}),2)[1],t=yy.useRef(new Map),n=yy.useRef(new Map),r=Ua(yy.useState([]),2),o=r[0],i=r[1],a=yy.useRef(0),s=yy.useRef(!1),l=yy.useCallback((function(r,o){var i,l,c=oT(o);n.current.set(c,r),t.current.set(r,c),a.current+=1,i=a.current,l=function(){i===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=yy.useCallback((function(e,r){var o=oT(r);n.current.delete(o),t.current.delete(e)}),[]),u=yy.useCallback((function(e){i(e)}),[]),d=yy.useCallback((function(e,n){var r=t.current.get(e)||"",i=iT(r);return n&&o.includes(i[0])&&i.unshift(aT),i}),[o]),p=yy.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),f=yy.useCallback((function(e){var r="".concat(t.current.get(e)).concat(rT),o=new Set;return xa(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return yy.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:d,getKeys:function(){var e=xa(t.current.keys());return o.length&&e.push(aT),e},getSubPathKeys:f}}(),L=R.refreshOverflowKeys,B=R.isSubPathKey,z=R.getKeyPath,H=R.getKeys,U=R.getSubPathKeys,W=yy.useMemo((function(){return{registerPath:F,unregisterPath:M}}),[F=R.registerPath,M=R.unregisterPath]),G=yy.useMemo((function(){return{isSubPathKey:B}}),[B]),yy.useEffect((function(){L(A?NT:s.slice(T+1).map((function(e){return e.key})))}),[T,A]),V=Ua(Al(Ne||je&&(null===(n=s[0])||void 0===n?void 0:n.key),{value:Ne}),2),q=V[0],X=V[1],K=Md((function(e){X(e)})),Y=Md((function(){X(void 0)})),yy.useImperativeHandle(t,(function(){return{list:d.current,focus:function(e){var t,n,r,o,i=null!=q?q:null===(t=s.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=d.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(Nd(p,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}})),J=Ua(Al(Re||[],{value:Fe,postState:function(e){return Array.isArray(e)?e:null==e?NT:[e]}}),2),Q=J[0],Z=J[1],ee=function(e){var t,n,r,o;Te&&(n=Q.includes(t=e.key),r=Ae?n?Q.filter((function(e){return e!==t})):[].concat(xa(Q),[t]):[t],Z(r),o=Ea(Ea({},e),{},{selectedKeys:r}),n?null==Le||Le(o):null==Me||Me(o)),!Ae&&g.length&&"inline"!==D&&b(NT)},te=Md((function(e){null==Ze||Ze(Hd(e)),ee(e)})),ne=Md((function(e,t){var n,r=g.filter((function(t){return t!==e}));t?r.push(e):"inline"!==D&&(n=U(e),r=r.filter((function(e){return!n.has(e)}))),Na(g,r,!0)||b(r,!0)})),re=function(e,t,n,r,o,i,a,s,l,c){var u,d=yy.useRef(),p=yy.useRef();return p.current=t,u=function(){R$.cancel(d.current)},yy.useEffect((function(){return function(){u()}}),[]),function(f){var h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_=f.which;if([].concat(nT,[QP,ZP,eT,tT]).includes(_)){if((b=function(){return h=new Set,g=new Map,m=new Map,i().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Nd(r,e),"']"));t&&(h.add(t),m.set(t,e),g.set(e,t))})),h})(),y=g.get(t),v=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y,h),w=m.get(v),x=function(e,t,n,r){var o,i,a,s,l,c,u,d="prev",p="next",f="children",h="parent";if("inline"===e&&r===QP)return{inlineTrigger:!0};switch(ki(o={},YP,d),ki(o,JP,p),l=o,ki(i={},XP,n?p:d),ki(i,KP,n?d:p),ki(i,JP,f),ki(i,QP,f),c=i,ki(a={},YP,d),ki(a,JP,p),ki(a,QP,f),ki(a,ZP,h),ki(a,XP,n?f:h),ki(a,KP,n?h:f),null===(s={inline:l,horizontal:c,vertical:u=a,inlineSub:l,horizontalSub:u,verticalSub:u}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case d:return{offset:-1,sibling:!0};case p:return{offset:1,sibling:!0};case h:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,_),!x&&_!==eT&&_!==tT)return;(nT.includes(_)||[eT,tT].includes(_))&&f.preventDefault(),S=function(e){var t,n,r;e&&(t=e,null!=(n=e.querySelector("a"))&&n.getAttribute("href")&&(t=n),r=m.get(e),s(r),u(),d.current=R$((function(){p.current===r&&t.focus()})))},[eT,tT].includes(_)||x.sibling||!v?(k=Rd(E=v&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(v):o.current,h),C=_===eT?k[0]:_===tT?k[k.length-1]:Fd(E,h,v,x.offset),S(C)):x.inlineTrigger?l(w):x.offset>0?(l(w,!0),u(),d.current=R$((function(){var e,t;b(),e=v.getAttribute("aria-controls"),t=Fd(document.getElementById(e),h),S(t)}),5)):x.offset<0&&(O=a(w,!0),$=g.get(D=O[O.length-2]),l(D,!1),S($))}null==c||c(f)}}(D,q,f,p,d,H,z,X,(function(e,t){var n=null!=t?t:!g.includes(e);ne(e,n)}),tt),yy.useEffect((function(){u(!0)}),[]),oe=yy.useMemo((function(){return{_internalRenderMenuItem:o,_internalRenderSubMenuItem:i}}),[o,i]),ie="horizontal"!==D||Se?s:s.map((function(e,t){return yy.createElement(Pd,{key:e.key,overflowDisabled:t>T},e)})),ae=yy.createElement(Dj,fa({id:be,ref:d,prefixCls:"".concat(le,"-overflow"),component:"ul",itemComponent:o5,className:zJ(le,"".concat(le,"-root"),"".concat(le,"-").concat(D),de,(r={},ki(r,"".concat(le,"-inline-collapsed"),N),ki(r,"".concat(le,"-rtl"),f),r),ce),dir:me,style:ue,role:"menu",tabIndex:fe,data:ie,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?s.slice(-t):null;return yy.createElement(Xd,{eventKey:aT,title:Ye,disabled:A,internalPopupClose:0===t,popupClassName:Je},n)},maxCount:"horizontal"!==D||Se?Dj.INVALIDATE:Dj.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){I(e)},onKeyDown:re},a)),yy.createElement(qP.Provider,{value:oe},yy.createElement(BP.Provider,{value:p},yy.createElement(Pd,{prefixCls:le,rootClassName:ce,mode:D,openKeys:g,rtl:f,disabled:xe,motion:c?He:null,defaultMotions:c?Ue:null,activeKey:q,onActive:K,onInactive:Y,selectedKeys:Q,inlineIndent:ze,subMenuOpenDelay:Ce,subMenuCloseDelay:Oe,forceSubMenuRender:De,builtinPlacements:Ve,triggerSubMenuAction:Ge,getPopupContainer:Qe,itemIcon:qe,expandIcon:Xe,onItemClick:te,onOpenChange:ne},yy.createElement(VP.Provider,{value:G},ae),yy.createElement("div",{style:{display:"none"},"aria-hidden":!0},yy.createElement(WP.Provider,{value:W},s)))))}))).Item=o5,jT.SubMenu=Xd,jT.ItemGroup=Kd,jT.Divider=Yd,globalThis&&globalThis;const i5=yy.createContext({});PT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,dashed:r}=e,o=PT(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=yy.useContext(mQ),a=i("menu",t),s=zJ({[`${a}-item-divider-dashed`]:!!r},n);return yy.createElement(Yd,Object.assign({className:s},o))},s5=yy.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),l5=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=yy.useContext(s5),{siderCollapsed:p}=yy.useContext(i5);let f=i;void 0===i?f=l?r:"":!1===i&&(f="");const h={title:f};p||d||(h.title=null,h.open=!1);const g=Bs(r).length;let m=yy.createElement(o5,Object.assign({},Qs(e,["title","icon","danger"]),{className:zJ({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof i?i:void 0}),sc(o,{className:zJ(rZ(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=yy.createElement("span",{className:`${s}-title-content`},r);return(!o||rZ(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?yy.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(m=yy.createElement(e5,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),m)),m},c5=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=yy.useContext(s5),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Id();let d;if(r){const e=rZ(o)&&"span"===o.type;d=yy.createElement(yy.Fragment,null,sc(r,{className:zJ(rZ(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:yy.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?yy.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):yy.createElement("span",{className:`${s}-title-content`},o);const p=yy.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]);return yy.createElement(s5.Provider,{value:p},yy.createElement(Xd,Object.assign({},Qs(e,["icon"]),{title:d,popupClassName:zJ(s,n,`${s}-${i||c}`)})))},u5={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"},d5=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:u5}))}));globalThis&&globalThis;const p5=yy.createContext(null);TT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${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"}}}},h5=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},g5=e=>Object.assign({},SQ(e)),m5=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:b,lineType:y,colorSplit:v,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:S,dangerItemSelectedColor:E,dangerItemActiveBg:C,dangerItemSelectedBg:k,itemHoverBg:O,itemActiveBg:D,menuSubMenuBg:$,horizontalItemSelectedColor:_,horizontalItemSelectedBg:N,horizontalItemBorderRadius:j,horizontalItemHoverBg:P,popupBg:T}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},g5(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:k}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},g5(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:$},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:c,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:c,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${y} ${v}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}},b5=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}},y5=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},b5(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},b5(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},yQ),{paddingInline:f})}}]},v5=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,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"}}}},w5=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*i,height:.15*i,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},x5=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:h,menuArrowOffset:g,lineType:m,menuPanelMaskInset:b,groupTitleLineHeight:y,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({},vQ(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:`${s}px ${l}px`,fontSize:v,lineHeight:y,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}`},[`${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"}}}),v5(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},v5(e)),w5(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),w5(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};IT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n,r;const o=yy.useContext(p5),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=yy.useContext(mQ),u=a(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:b,siderCollapsed:y,items:v,children:w,rootClassName:x,mode:S,selectable:E,onClick:C,overflowedIndicatorPopupClassName:k}=e,O=Qs(IT(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),D=ep(v)||w;null===(n=i.validator)||void 0===n||n.call(i,{mode:S});const $=Pl((function(){var e;null==C||C.apply(void 0,arguments),null===(e=i.onClick)||void 0===e||e.call(i)})),_=i.mode||S,N=null!=E?E:i.selectable,j=yy.useMemo((()=>void 0!==y?y:b),[b,y]),P={horizontal:{motionName:`${u}-slide-up`},inline:OZ(u),other:{motionName:`${u}-zoom-big`}},T=a("menu",d||i.prefixCls),[I,A]=((e,t)=>Ml("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:p,darkDangerItemSelectedBg:f,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:b,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:w}=e,x=a/7*5,S=Rl(e,{menuArrowSize:x,menuHorizontalHeight:1.15*i,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),E=Rl(S,{itemColor:s,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:y,dangerItemSelectedColor:v,dangerItemActiveBg:w,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[x5(S),f5(S),y5(S),m5(S,"light"),m5(E,"dark"),h5(S),D1(S),p1(S,"slide-up"),p1(S,"slide-down"),O1(S,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:p,colorBgTextHover:f,controlHeightLG:h,lineHeight:g,colorBgElevated:m,marginXXS:b,padding:y,fontSize:v,controlHeightSM:w,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:E}=e,C=new U$(S).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:g,collapsedWidth:2*h,popupBg:m,itemMarginBlock:b,itemPaddingInline:y,horizontalLineHeight:1.15*h+"px",iconSize:v,iconMarginInlineEnd:w-v,collapsedIconSize:x,groupTitleFontSize:v,darkItemDisabledColor:new U$(S).setAlpha(.25).toRgbString(),darkItemColor:C,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:C,darkItemHoverColor:S,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e))(T,!o),R=zJ(`${T}-${h}`,null==c?void 0:c.className,p);let F;if("function"==typeof g)F=g;else if(null===g||!1===g)F=null;else if(null===i.expandIcon||!1===i.expandIcon)F=null;else{const e=null!=g?g:i.expandIcon;F=sc(e,{className:zJ(`${T}-submenu-expand-icon`,rZ(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const M=yy.useMemo((()=>({prefixCls:T,inlineCollapsed:j||!1,direction:l,firstLevel:!0,theme:h,mode:_,disableMenuItemTitleTooltip:m})),[T,j,l,m,h]);return I(yy.createElement(p5.Provider,{value:null},yy.createElement(s5.Provider,{value:M},yy.createElement(jT,Object.assign({getPopupContainer:s,overflowedIndicator:yy.createElement(d5,null),overflowedIndicatorPopupClassName:zJ(T,`${T}-${h}`,k),mode:_,selectable:N,onClick:$},O,{inlineCollapsed:j,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:R,prefixCls:T,direction:l,defaultMotions:P,expandIcon:F,ref:t,rootClassName:zJ(x,A)}),D))))})),E5=yy.forwardRef(((e,t)=>{const n=yy.useRef(null),r=yy.useContext(i5);return yy.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),yy.createElement(S5,Object.assign({ref:n},e,r))}));E5.Item=l5,E5.SubMenu=c5,E5.Divider=a5,E5.ItemGroup=Kd;const C5=E5,k5=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),O5=e=>({borderColor:e.hoverBorderColor}),D5=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0}),$5=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},O5(Rl(e,{hoverBorderColor:e.colorBorder})))}),_5=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},N5=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),j5=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:i,warningActiveShadow:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},D5(Rl(e,{activeBorderColor:r,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},D5(Rl(e,{activeBorderColor:o,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},P5=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.paddingBlock}px ${e.paddingInline}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},k5(e.colorTextPlaceholder)),{"&:hover":Object.assign({},O5(e)),"&:focus, &-focused":Object.assign({},D5(e)),"&-disabled, &[disabled]":Object.assign({},$5(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},_5(e)),"&-sm":Object.assign({},N5(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),T5=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({},_5(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},N5(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},I5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vQ(e)),P5(e)),j5(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},A5=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},R5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P5(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},O5(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),A5(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),j5(e,`${t}-affix-wrapper`))}},F5=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},vQ(e)),T5(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},$5(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}}}})}},M5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},L5=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},B5=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:m,colorWarningOutline:b}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,3),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:f,hoverBorderColor:f,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${m}`,warningActiveShadow:`0 0 0 ${h}px ${b}`}},z5=Ml("Input",(e=>{const t=Rl(e,tp(e));return[I5(t),L5(t),R5(t),F5(t),M5(t),$c(t)]}),B5),H5=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=zJ({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=zJ({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=yy.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return yy.createElement("span",{className:zJ(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},U5=new TD("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),W5=e=>({height:e,lineHeight:`${e}px`}),G5=e=>Object.assign({width:e},W5(e)),V5=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:U5,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),q5=e=>Object.assign({width:5*e,minWidth:5*e},W5(e)),X5=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},G5(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},G5(o)),[`${t}${t}-sm`]:Object.assign({},G5(i))}},K5=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},q5(t)),[`${r}-lg`]:Object.assign({},q5(o)),[`${r}-sm`]:Object.assign({},q5(i))}},Y5=e=>Object.assign({width:e},W5(e)),J5=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},Y5(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Y5(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Q5=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Z5=e=>Object.assign({width:2*e,minWidth:2*e},W5(e)),e4=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:2*r,minWidth:2*r},Z5(r))},Q5(e,r,n)),{[`${n}-lg`]:Object.assign({},Z5(o))}),Q5(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Z5(i))}),Q5(e,i,`${n}-sm`))},t4=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:v}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},G5(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},G5(c)),[`${n}-sm`]:Object.assign({},G5(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:y}}},[`${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:f,[`+ ${o}`]:{marginBlockStart:v}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},e4(e)),X5(e)),K5(e)),J5(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 ${s}\n `]:Object.assign({},V5(e))}}},n4=Ml("Skeleton",(e=>{const{componentCls:t}=e,n=Rl(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[t4(n)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),r4={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"},o4=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:r4}))})),i4=e=>{const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0},{prefixCls:n,className:r,style:o,rows:i}=e,a=xa(Array(i)).map(((e,n)=>yy.createElement("li",{key:n,style:{width:t(n)}})));return yy.createElement("ul",{className:zJ(n,r),style:o},a)},a4=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return yy.createElement("h3",{className:zJ(t,n),style:Object.assign({width:r},o)})},s4=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:p,direction:f,skeleton:h}=yy.useContext(mQ),g=p("skeleton",t),[m,b]=n4(g);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let a,p;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)),np(s));a=yy.createElement("div",{className:`${g}-header`},yy.createElement(H5,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)),np(l));r=yy.createElement(a4,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)),np(c));o=yy.createElement(i4,Object.assign({},n))}p=yy.createElement("div",{className:`${g}-content`},r,o)}const y=zJ(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===f,[`${g}-round`]:d},null==h?void 0:h.className,r,o,b);return m(yy.createElement("div",{className:y,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,p))}return void 0!==a?a:null};s4.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=yy.useContext(mQ),l=s("skeleton",t),[c,u]=n4(l),d=Qs(e,["prefixCls"]),p=zJ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(yy.createElement("div",{className:p},yy.createElement(H5,Object.assign({prefixCls:`${l}-button`,size:a},d))))},s4.Avatar=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=yy.useContext(mQ),l=s("skeleton",t),[c,u]=n4(l),d=Qs(e,["prefixCls","className"]),p=zJ(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(yy.createElement("div",{className:p},yy.createElement(H5,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},d))))},s4.Input=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=yy.useContext(mQ),l=s("skeleton",t),[c,u]=n4(l),d=Qs(e,["prefixCls"]),p=zJ(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u);return c(yy.createElement("div",{className:p},yy.createElement(H5,Object.assign({prefixCls:`${l}-input`,size:a},d))))},s4.Image=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=yy.useContext(mQ),s=a("skeleton",t),[l,c]=n4(s),u=zJ(s,`${s}-element`,{[`${s}-active`]:i},n,r,c);return l(yy.createElement("div",{className:u},yy.createElement("div",{className:zJ(`${s}-image`,n),style:o},yy.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},yy.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:`${s}-image-path`})))))},s4.Node=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=yy.useContext(mQ),l=s("skeleton",t),[c,u]=n4(l),d=zJ(l,`${l}-element`,{[`${l}-active`]:i},u,n,r),p=null!=a?a:yy.createElement(o4,null);return c(yy.createElement("div",{className:d},yy.createElement("div",{className:zJ(`${l}-image`,n),style:o},p)))};const l4=s4,c4={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"},u4=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:c4}))})),d4=yy.createContext(null);AT=yy.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return yy.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:zJ(n,a&&"".concat(n,"-active"),r),ref:t},l)})),RT=["key","forceRender","style","className"],FT={width:0,height:0,left:0,top:0},MT=.1,LT=.01,BT=20,zT=Math.pow(.995,BT),HT={width:0,height:0,left:0,top:0,right:0},UT="TABS_DQ";const p4=yy.forwardRef(cp);WT=yy.forwardRef((function(e,t){var n,r,o=e.position,i=e.prefixCls,a=e.extra;return a?(r={},"object"!==Ei(a)||yy.isValidElement(a)?r.right=a:r=a,"right"===o&&(n=r.right),"left"===o&&(n=r.left),n?yy.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null):null}));const f4=yy.memo(yy.forwardRef(up),(function(e,t){return t.tabMoving}));GT=function(e){function t(){R$.cancel(c.current)}var n=e.activeTabOffset,r=e.horizontal,o=e.rtl,i=e.indicatorSize,a=Ua(yy.useState(),2),s=a[0],l=a[1],c=yy.useRef(),u=function(e){return"function"==typeof i?i(e):"number"==typeof i?i:e};return yy.useEffect((function(){var e={};return n&&(r?(o?(e.right=n.right+n.width/2,e.transform="translateX(50%)"):(e.left=n.left+n.width/2,e.transform="translateX(-50%)"),e.width=u(n.width)):(e.top=n.top+n.height/2,e.transform="translateY(-50%)",e.height=u(n.height))),t(),c.current=R$((function(){l(e)})),t}),[n,r,o,i]),{style:s}},VT=function(e){var t=e.current||{},n=t.offsetWidth,r=t.offsetHeight;return[void 0===n?0:n,void 0===r?0:r]},qT=function(e,t){return e[t?0:1]};const h4=yy.forwardRef(pp);XT=["renderTabBar"],KT=["label","key"],YT=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],JT=0,QT=yy.forwardRef(hp);const g4={motionAppear:!1,motionEnter:!0,motionLeave:!0};ZT=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{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}`}}}}},[p1(e,"slide-up"),p1(e,"slide-down")]]},b4=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},y4=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},vQ(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},yQ),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},v4=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},w4=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},x4=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=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:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},EQ(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},S4=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},E4=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vQ(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},EQ(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),x4(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"}}}}}},C4=Ml("Tabs",(e=>{const t=Rl(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[w4(t),S4(t),v4(t),y4(t),b4(t),E4(t),m4(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:e.controlHeightLG,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2})));eI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{type:t,className:n,rootClassName:r,size:o,onEdit:i,hideAdd:a,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:p,style:f,indicatorSize:h}=e,g=eI(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:m,moreIcon:b=yy.createElement(d5,null)}=g,{direction:y,tabs:v,getPrefixCls:w,getPopupContainer:x}=yy.useContext(mQ),S=w("tabs",m),[E,C]=C4(S);let k;"editable-card"===t&&(k={onEdit:(e,t)=>{let{key:n,event:r}=t;null==i||i("add"===e?r:n,e)},removeIcon:yy.createElement(QQ,null),addIcon:l||yy.createElement(u4,null),showAdd:!0!==a});const O=w(),D=function(e,t){return e||function(e){return e.filter((e=>e))}(Bs(t).map((e=>{if(yy.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=ZT(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(d,u),$=function(e,t){let n,r=arguments.length>1&&void 0!==t?t:{inkBar:!0,tabPane:!1};return n=!1===r?{inkBar:!1,tabPane:!1}:!0===r?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof r?r:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},g4),{motionName:DZ(e,"switch")})),n}(S,p),_=AZ(o),N=Object.assign(Object.assign({},null==v?void 0:v.style),f);return E(yy.createElement(QT,Object.assign({direction:y,getPopupContainer:x,moreTransitionName:`${O}-slide-up`},g,{items:D,className:zJ({[`${S}-${_}`]:_,[`${S}-card`]:["card","editable-card"].includes(t),[`${S}-editable-card`]:"editable-card"===t,[`${S}-centered`]:s},null==v?void 0:v.className,n,r,C),popupClassName:zJ(c,C),style:N,editable:k,moreIcon:b,prefixCls:S,animated:$,indicatorSize:null!=h?h:null==v?void 0:v.indicatorSize})))};k4.TabPane=()=>null;const O4=k4,D4=yy.createContext({}),$4=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"}}}},_4=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},N4=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)0===i?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/r*100}%`,maxWidth:i/r*100+"%"}],o[`${n}${t}-push-${i}`]={insetInlineStart:i/r*100+"%"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:i/r*100+"%"},o[`${n}${t}-offset-${i}`]={marginInlineStart:i/r*100+"%"},o[`${n}${t}-order-${i}`]={order:i});return o})(e,t),j4=Ml("Grid",(e=>[$4(e)])),P4=Ml("Grid",(e=>{const t=Rl(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[_4(t),N4(t,""),N4(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},N4(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));tI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=yy.useContext(mQ),{gutter:o,wrap:i}=yy.useContext(D4),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:p,children:f,flex:h,style:g}=e,m=tI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,v]=P4(b);let w={};T4.forEach((t=>{let n={};const o=e[t];"number"==typeof o?n.span=o:"object"==typeof o&&(n=o||{}),delete m[t],w=Object.assign(Object.assign({},w),{[`${b}-${t}-${n.span}`]:void 0!==n.span,[`${b}-${t}-order-${n.order}`]:n.order||0===n.order,[`${b}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${t}-push-${n.push}`]:n.push||0===n.push,[`${b}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${b}-rtl`]:"rtl"===r})}));const x=zJ(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},p,w,v),S={};if(o&&o[0]>0){const e=o[0]/2;S.paddingLeft=e,S.paddingRight=e}return h&&(S.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(h),!1!==i||S.minWidth||(S.minWidth=0)),y(yy.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign({},S),g),className:x,ref:t}),f))}));nI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=nI(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:p}=yy.useContext(mQ),[f,h]=yy.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,m]=yy.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=gp(o,g),y=gp(r,g),v=yy.useRef(l),w=Sd();yy.useEffect((()=>{const e=w.subscribe((e=>{m(e);const t=v.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>w.unsubscribe(e)}),[]);const x=d("row",n),[S,E]=j4(x),C=(()=>{const e=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let r=0;r0?C[0]/-2:void 0;D&&(O.marginLeft=D,O.marginRight=D),[,O.rowGap]=C;const[$,_]=C,N=yy.useMemo((()=>({gutter:[$,_],wrap:c})),[$,_,c]);return S(yy.createElement(D4.Provider,{value:N},yy.createElement("div",Object.assign({},u,{className:k,style:Object.assign(Object.assign({},O),a),ref:t}),s)))}));(rI=rJ.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=Ua(rJ.useState(l||o),2),d=u[0],p=u[1];return rJ.useEffect((function(){(o||l)&&p(!0)}),[o,l]),d?rJ.createElement("div",{ref:t,className:zJ("".concat(r,"-content"),(n={},ki(n,"".concat(r,"-content-active"),l),ki(n,"".concat(r,"-content-inactive"),!l),n),i),style:a,role:c},rJ.createElement("div",{className:"".concat(r,"-content-box")},s)):null}))).displayName="PanelContent",oI=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],iI=rJ.forwardRef((function(e,t){var n,r,o,i,a=e.showArrow,s=void 0===a||a,l=e.headerClass,c=e.isActive,u=e.onItemClick,d=e.forceRender,p=e.className,f=e.prefixCls,h=e.collapsible,g=e.accordion,m=e.panelKey,b=e.extra,y=e.header,v=e.expandIcon,w=e.openMotion,x=e.destroyInactivePanel,S=e.children,E=Oi(e,oI),C="disabled"===h,k="header"===h,O="icon"===h,D=null!=b&&"boolean"!=typeof b,$=function(){null==u||u(m)},_="function"==typeof v?v(e):rJ.createElement("i",{className:"arrow"});return _&&(_=rJ.createElement("div",{className:"".concat(f,"-expand-icon"),onClick:["header","icon"].includes(h)?$:void 0},_)),o=zJ((ki(n={},"".concat(f,"-item"),!0),ki(n,"".concat(f,"-item-active"),c),ki(n,"".concat(f,"-item-disabled"),C),n),p),i={className:zJ(l,(ki(r={},"".concat(f,"-header"),!0),ki(r,"".concat(f,"-header-collapsible-only"),k),ki(r,"".concat(f,"-icon-collapsible-only"),O),r)),"aria-expanded":c,"aria-disabled":C,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==V_.ENTER&&e.which!==V_.ENTER||$()}},k||O||(i.onClick=$,i.role=g?"tab":"button",i.tabIndex=C?-1:0),rJ.createElement("div",fa({},E,{ref:t,className:o}),rJ.createElement("div",i,s&&_,rJ.createElement("span",{className:"".concat(f,"-header-text"),onClick:"header"===h?$:void 0},y),D&&rJ.createElement("div",{className:"".concat(f,"-extra")},b)),rJ.createElement(RQ,fa({visible:c,leavedClassName:"".concat(f,"-content-hidden")},w,{forceRender:d,removeOnLeave:x}),(function(e,t){return rJ.createElement(rI,{ref:t,prefixCls:f,className:e.className,style:e.style,isActive:c,forceRender:d,role:g?"tabpanel":void 0},S)})))})),aI=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],sI=function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u,d=e.children,p=e.label,f=e.key,h=e.collapsible,g=e.onItemClick,m=e.destroyInactivePanel,b=Oi(e,aI),y=String(null!=f?f:t),v=null!=h?h:o,w=null!=m?m:i;return u=r?s[0]===y:s.indexOf(y)>-1,rJ.createElement(iI,fa({},b,{prefixCls:n,key:y,panelKey:y,isActive:u,accordion:r,openMotion:l,expandIcon:c,header:p,collapsible:v,onItemClick:function(e){"disabled"!==v&&(a(e),null==g||g(e))},destroyInactivePanel:w}),d)}))},lI=function(e,t,n){var r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w;return e?(r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=(p=e.props).header,h=p.headerClass,g=p.destroyInactivePanel,m=p.collapsible,b=p.onItemClick,y=o?l[0]===d:l.indexOf(d)>-1,w={key:d,panelKey:d,header:f,headerClass:h,isActive:y,prefixCls:r,destroyInactivePanel:null!=g?g:a,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==v&&(s(e),null==b||b(e))},expandIcon:u,collapsible:v=null!=m?m:i},"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),rJ.cloneElement(e,w))):null};const R4=Object.assign(rJ.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,s=e.style,l=e.accordion,c=e.children,u=e.collapsible,d=e.openMotion,p=e.expandIcon,f=e.activeKey,h=e.defaultActiveKey,g=e.onChange,m=e.items,b=zJ(o,e.className),y=Ua(Al([],{value:f,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:mp}),2),v=y[0],w=y[1];return _a(!c,"`children` will be removed in next major version. Please use `items` instead."),n=function(e,t,n){return Array.isArray(e)?sI(e,n):Bs(t).map((function(e,t){return lI(e,t,n)}))}(m,c,{prefixCls:o,accordion:l,openMotion:d,expandIcon:p,collapsible:u,destroyInactivePanel:a,onItemClick:function(e){return w((function(){return l?v[0]===e?[]:[e]:v.indexOf(e)>-1?v.filter((function(t){return t!==e})):[].concat(xa(v),[e])}))},activeKey:v}),rJ.createElement("div",{ref:t,className:b,style:s,role:l?"tablist":void 0},n)})),{Panel:iI}),F4=yy.forwardRef(((e,t)=>{const{getPrefixCls:n}=yy.useContext(mQ),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=zJ({[`${a}-no-arrow`]:!i},o);return yy.createElement(R4.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))})),M4=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:y,paddingSM:v,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:E,contentPadding:C}=e,k=`${c}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},vQ(e)),{backgroundColor:o,border:k,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:b,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${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:E,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:k,[`& > ${t}-content-box`]:{padding:C},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:v-x}},[`> ${t}-content > ${t}-content-box`]:{padding:v}}},"&-large":{[`> ${t}-item`]:{fontSize:m,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:m*b,marginInlineStart:w-r}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},L4=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},B4=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}}}},z4=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}}}}}},H4=Ml("Collapse",(e=>{const t=Rl(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[M4(t),B4(t),z4(t),L4(t),D1(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),U4=yy.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=yy.useContext(mQ),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:p="start",children:f,expandIcon:h}=e,g=AZ((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",i),b=n(),[y,v]=H4(m),w=yy.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),x=zJ(`${m}-icon-position-${w}`,{[`${m}-borderless`]:!c,[`${m}-rtl`]:"rtl"===r,[`${m}-ghost`]:!!u,[`${m}-${g}`]:"middle"!==g},null==o?void 0:o.className,a,s,v),S=Object.assign(Object.assign({},OZ(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),E=yy.useMemo((()=>f?Bs(f).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 sc(e,Object.assign(Object.assign({},Qs(e.props,["disabled"])),{key:n,collapsible:null!=i?i:o?"disabled":void 0}))}return e})):null),[f]);return y(yy.createElement(R4,Object.assign({ref:t,openMotion:S},Qs(e,["rootClassName"]),{expandIcon:function(e){let t=arguments.length>0&&void 0!==e?e:{};const n=h?h(t):yy.createElement(n5,{rotate:t.isActive?90:void 0});return sc(n,(()=>({className:zJ(n.props.className,`${m}-arrow`)})))},prefixCls:m,className:x,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),E))})),W4=Object.assign(U4,{Panel:F4}),G4=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},vQ(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},V4=Ml("Divider",(e=>{const t=Rl(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[G4(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));cI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:r}=yy.useContext(mQ),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:p,style:f}=e,h=cI(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[m,b]=V4(g),y=!!u,v="left"===a&&null!=s,w="right"===a&&null!=s,x=zJ(g,null==r?void 0:r.className,b,`${g}-${i}`,{[`${g}-with-text`]:y,[`${g}-with-text${a.length>0?`-${a}`:a}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!p,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:v,[`${g}-no-default-orientation-margin-right`]:w},l,c),S=yy.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),E=Object.assign(Object.assign({},v&&{marginLeft:S}),w&&{marginRight:S});return m(yy.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},h,{role:"separator"}),u&&"vertical"!==i&&yy.createElement("span",{className:`${g}-inner-text`,style:E},u)))},X4={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"},K4=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:X4}))}));uI=function(){function e(t){var n,r,o,i;$i(this,e),ki(this,"origin",""),ki(this,"negative",void 0),ki(this,"integer",void 0),ki(this,"decimal",void 0),ki(this,"decimalLen",void 0),ki(this,"empty",void 0),ki(this,"nan",void 0),yp(t)?this.empty=!0:(this.origin=String(t),"-"===t||Number.isNaN(t)?this.nan=!0:(wp(n=t)&&(n=Number(n)),Ep(n="string"==typeof n?n:Sp(n))?(r=vp(n),this.negative=r.negative,o=r.trimStr.split("."),this.integer=BigInt(o[0]),i=o[1]||"0",this.decimal=BigInt(i),this.decimalLen=i.length):this.nan=!0))}return Ni(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),s=vp(i),l=s.trimStr,c="".concat(s.negativeStr).concat(l.padStart(a+1,"0"));return new e("".concat(c.slice(0,-a),".").concat(c.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(e){return arguments.length>0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":vp("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),dI=function(){function e(t){$i(this,e),ki(this,"origin",""),ki(this,"number",void 0),ki(this,"empty",void 0),yp(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ni(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){var n,r,o;return this.isInvalidate()?new e(t):(n=Number(t),Number.isNaN(n)?this:(r=this.number+n)>Number.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):rNumber.MAX_SAFE_INTEGER?new e(Number.MAX_SAFE_INTEGER):n0&&void 0!==e&&!e?this.origin:this.isInvalidate()?"":Sp(this.number)}}]),e}(),pI=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g=e.inputElement,m=e.prefixCls,b=e.prefix,y=e.suffix,v=e.addonBefore,w=e.addonAfter,x=e.className,S=e.style,E=e.disabled,C=e.readOnly,k=e.focused,O=e.triggerFocus,D=e.allowClear,$=e.value,_=e.handleReset,N=e.hidden,j=e.classes,P=e.classNames,T=e.dataAttrs,I=e.styles,A=e.components,R=(null==A?void 0:A.affixWrapper)||"span",F=(null==A?void 0:A.groupWrapper)||"span",M=(null==A?void 0:A.wrapper)||"span",L=(null==A?void 0:A.groupAddon)||"span",B=yy.useRef(null),z=yy.cloneElement(g,{value:$,hidden:N,className:zJ(null===(t=g.props)||void 0===t?void 0:t.className,!Dp(e)&&!Op(e)&&x)||null,style:Ea(Ea({},null===(n=g.props)||void 0===n?void 0:n.style),Dp(e)||Op(e)?{}:S)});return Dp(e)&&(o="".concat(m,"-affix-wrapper"),i=zJ(o,(ki(r={},"".concat(o,"-disabled"),E),ki(r,"".concat(o,"-focused"),k),ki(r,"".concat(o,"-readonly"),C),ki(r,"".concat(o,"-input-with-clear-btn"),y&&D&&$),r),!Op(e)&&x,null==j?void 0:j.affixWrapper,null==P?void 0:P.affixWrapper),a=(y||D)&&rJ.createElement("span",{className:zJ("".concat(m,"-suffix"),null==P?void 0:P.suffix),style:null==I?void 0:I.suffix},D?(p=!E&&!C&&$,f="".concat(m,"-clear-icon"),h="object"===Ei(D)&&null!=D&&D.clearIcon?D.clearIcon:"✖",rJ.createElement("span",{onClick:_,onMouseDown:function(e){return e.preventDefault()},className:zJ(f,(d={},ki(d,"".concat(f,"-hidden"),!p),ki(d,"".concat(f,"-has-suffix"),!!y),d)),role:"button",tabIndex:-1},h)):null,y),z=rJ.createElement(R,fa({className:i,style:Ea(Ea({},Op(e)?void 0:S),null==I?void 0:I.affixWrapper),hidden:!Op(e)&&N,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==O||O())}},null==T?void 0:T.affixWrapper,{ref:B}),b&&rJ.createElement("span",{className:zJ("".concat(m,"-prefix"),null==P?void 0:P.prefix),style:null==I?void 0:I.prefix},b),yy.cloneElement(g,{value:$,hidden:null}),a)),Op(e)?(s="".concat(m,"-group"),l="".concat(s,"-addon"),c=zJ("".concat(m,"-wrapper"),s,null==j?void 0:j.wrapper),u=zJ("".concat(m,"-group-wrapper"),x,null==j?void 0:j.group),rJ.createElement(F,{className:u,style:S,hidden:N},rJ.createElement(M,{className:c},v&&rJ.createElement(L,{className:l},v),yy.cloneElement(z,{hidden:null}),w&&rJ.createElement(L,{className:l},w)))):z},fI=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],hI=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=e.autoComplete,u=e.onChange,d=e.onFocus,p=e.onBlur,f=e.onPressEnter,h=e.onKeyDown,g=e.prefixCls,m=void 0===g?"rc-input":g,b=e.disabled,y=e.htmlSize,v=e.className,w=e.maxLength,x=e.suffix,S=e.showCount,E=e.type,C=void 0===E?"text":E,k=e.classes,O=e.classNames,D=e.styles,$=Oi(e,fI),_=Ua(Al(e.defaultValue,{value:e.value}),2),N=_[0],j=_[1],P=Ua(yy.useState(!1),2),T=P[0],I=P[1],A=yy.useRef(null),R=function(e){A.current&&_p(A.current,e)};return yy.useImperativeHandle(t,(function(){return{focus:R,blur:function(){var e;null===(e=A.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=A.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=A.current)||void 0===e||e.select()},input:A.current}})),yy.useEffect((function(){I((function(e){return(!e||!b)&&e}))}),[b]),n=function(t){void 0===e.value&&j(t.target.value),A.current&&$p(A.current,t,u)},r=function(e){f&&"Enter"===e.key&&f(e),null==h||h(e)},o=function(e){I(!0),null==d||d(e)},i=function(e){I(!1),null==p||p(e)},a=function(e){j(""),R(),A.current&&$p(A.current,e,u)},s=function(){var t=Qs(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return rJ.createElement("input",fa({autoComplete:c},t,{onChange:n,onFocus:o,onBlur:i,onKeyDown:r,className:zJ(m,ki({},"".concat(m,"-disabled"),b),null==O?void 0:O.input),style:null==D?void 0:D.input,ref:A,size:y,type:C}))},l=function(){var e,t,n,r=Number(w)>0;return x||S?(t=xa(e=Np(N)).length,n="object"===Ei(S)?S.formatter({value:e,count:t,maxLength:w}):"".concat(t).concat(r?" / ".concat(w):""),rJ.createElement(rJ.Fragment,null,!!S&&rJ.createElement("span",{className:zJ("".concat(m,"-show-count-suffix"),ki({},"".concat(m,"-show-count-has-suffix"),!!x),null==O?void 0:O.count),style:Ea({},null==D?void 0:D.count)},n),x)):null},rJ.createElement(pI,fa({},$,{prefixCls:m,className:v,inputElement:s(),handleReset:a,value:Np(N),focused:T,triggerFocus:R,suffix:l(),disabled:b,classes:k,classNames:O,styles:D}))})),gI=function(){var e=Ua(yy.useState(!1),2),t=e[0],n=e[1];return QO((function(){n(s2())}),[]),t},mI=200,bI=600,yI=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],vI=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],wI=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},xI=function(e){var t=Cp(e);return t.isInvalidate()?null:t},SI=yy.forwardRef((function(e,t){function n(e,t){Se(ve(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j=e.prefixCls,P=void 0===j?"rc-input-number":j,T=e.className,I=e.style,A=e.min,R=e.max,F=e.step,M=void 0===F?1:F,L=e.defaultValue,B=e.value,z=e.disabled,H=e.readOnly,U=e.upHandler,W=e.downHandler,G=e.keyboard,V=e.controls,q=void 0===V||V,X=e.classNames,K=e.stringMode,Y=e.parser,J=e.formatter,Q=e.precision,Z=e.decimalSeparator,ee=e.onChange,te=e.onInput,ne=e.onPressEnter,re=e.onStep,oe=Oi(e,yI),ie="".concat(P,"-input"),ae=yy.useRef(null),se=Ua(yy.useState(!1),2),le=se[0],ce=se[1],ue=yy.useRef(!1),de=yy.useRef(!1),pe=yy.useRef(!1),fe=Ua(yy.useState((function(){return Cp(null!=B?B:L)})),2),he=fe[0],ge=fe[1],me=yy.useCallback((function(e,t){if(!t)return Q>=0?Q:Math.max(xp(e),xp(M))}),[Q,M]),be=yy.useCallback((function(e){var t,n=String(e);return Y?Y(n):(t=n,Z&&(t=t.replace(Z,".")),t.replace(/[^\w.-]+/g,""))}),[Y,Z]),ye=yy.useRef(""),ve=yy.useCallback((function(e,t){var n,r;return J?J(e,{userTyping:t,input:String(ye.current)}):(n="number"==typeof e?Sp(e):e,t||(r=me(n,t),Ep(n)&&(Z||r>=0)&&(n=kp(n,Z||".",r))),n)}),[J,me,Z]),we=Ua(yy.useState((function(){var e=null!=L?L:B;return he.isInvalidate()&&["string","number"].includes(Ei(e))?Number.isNaN(e)?"":e:ve(he.toString(),!1)})),2),xe=we[0],Se=we[1];return ye.current=xe,o=yy.useMemo((function(){return xI(R)}),[R,Q]),i=yy.useMemo((function(){return xI(A)}),[A,Q]),a=yy.useMemo((function(){return!(!o||!he||he.isInvalidate())&&o.lessEquals(he)}),[o,he]),s=yy.useMemo((function(){return!(!i||!he||he.isInvalidate())&&he.lessEquals(i)}),[i,he]),O=ae.current,D=le,$=yy.useRef(null),l=[function(){var e,t,n,r,o;try{t=O.selectionEnd,r=(n=O.value).substring(0,e=O.selectionStart),o=n.substring(t),$.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(fY){}},function(){var e,t,n,r,o,i;if(O&&$.current&&D)try{n=(t=$.current).beforeTxt,r=t.start,o=(e=O.value).length,e.endsWith(t.afterTxt)?o=e.length-$.current.afterTxt.length:e.startsWith(n)?o=n.length:-1!==(i=e.indexOf(n[r-1],r-1))&&(o=i+1),O.setSelectionRange(o,o)}catch(fY){_a(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(fY.message))}}],c=Ua(l,2),u=c[0],d=c[1],p=function(e){return o&&!e.lessEquals(o)?o:i&&!i.lessEquals(e)?i:null},f=function(e){return!p(e)},h=function(e,t){var r,o,i=e,a=f(i)||i.isEmpty();return i.isEmpty()||t||(i=p(i)||i,a=!0),H||z||!a?he:(r=i.toString(),(o=me(r,t))>=0&&(i=Cp(kp(r,".",o)),f(i)||(i=Cp(kp(r,".",o,!0)))),i.equals(he)||(void 0===B&&ge(i),null==ee||ee(i.isEmpty()?null:wI(K,i)),void 0===B&&n(i,t)),i)},_=yy.useRef(0),N=function(){R$.cancel(_.current)},yy.useEffect((function(){return N}),[]),g=function(e){N(),_.current=R$((function(){e()}))},m=function e(t){var n;u(),ye.current=t,Se(t),de.current||(n=Cp(be(t))).isNaN()||h(n,!0),null==te||te(t),g((function(){var n=t;Y||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},b=function(){de.current=!0},y=function(){de.current=!1,m(ae.current.value)},v=function(e){m(e.target.value)},w=function(e){var t,n,r,o;e&&a||!e&&s||(ue.current=!1,n=Cp(pe.current?Pp(M):M),e||(n=n.negate()),r=(he||Cp(0)).add(n.toString()),o=h(r,!1),null==re||re(wI(K,o),{offset:pe.current?Pp(M):M,type:e?"up":"down"}),null===(t=ae.current)||void 0===t||t.focus())},x=function(e){var t=Cp(be(xe)),r=t;r=t.isNaN()?h(he,e):h(t,e),void 0!==B?n(he,!1):r.isNaN()||n(r,!1)},S=function(){ue.current=!0},E=function(e){var t=e.key,n=e.shiftKey;ue.current=!0,pe.current=n,"Enter"===t&&(de.current||(ue.current=!1),x(!1),null==ne||ne(e)),!1!==G&&!de.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(w("Up"===t||"ArrowUp"===t),e.preventDefault())},C=function(){ue.current=!1,pe.current=!1},k=function(){x(!1),ce(!1),ue.current=!1},ZO((function(){he.isInvalidate()||n(he,!1)}),[Q]),ZO((function(){var e,t=Cp(B);ge(t),e=Cp(be(xe)),t.equals(e)&&ue.current&&!J||n(t,ue.current)}),[B]),ZO((function(){J&&d()}),[xe]),yy.createElement("div",{className:zJ(P,null==X?void 0:X.input,T,(r={},ki(r,"".concat(P,"-focused"),le),ki(r,"".concat(P,"-disabled"),z),ki(r,"".concat(P,"-readonly"),H),ki(r,"".concat(P,"-not-a-number"),he.isNaN()),ki(r,"".concat(P,"-out-of-range"),!he.isInvalidate()&&!f(he)),r)),style:I,onFocus:function(){ce(!0)},onBlur:k,onKeyDown:E,onKeyUp:C,onCompositionStart:b,onCompositionEnd:y,onBeforeInput:S},q&&yy.createElement(jp,{prefixCls:P,upNode:U,downNode:W,upDisabled:a,downDisabled:s,onStep:w}),yy.createElement("div",{className:"".concat(ie,"-wrap")},yy.createElement("input",fa({autoComplete:"off",role:"spinbutton","aria-valuemin":A,"aria-valuemax":R,"aria-valuenow":he.isInvalidate()?null:he.toString(),step:M},oe,{ref:Hs(ae,t),className:ie,value:xe,onChange:v,disabled:z,readOnly:H}))))})),(EI=yy.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=e.value,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,p=e.classNames,f=Oi(e,vI),h=yy.useRef(null);return yy.createElement(pI,{inputElement:yy.createElement(SI,fa({prefixCls:o,disabled:n,classNames:p,ref:Hs(h,t)},f)),className:d,triggerFocus:function(e){h.current&&_p(h.current,e)},prefixCls:o,value:i,disabled:n,style:r,prefix:a,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}))).displayName="InputNumber";const Y4=(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}}}},J4=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:i,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:p,handleHoverColor:f,paddingInline:h,paddingBlock:g,handleBg:m,handleActiveBg:b,colorTextDisabled:y,borderRadiusSM:v,borderRadiusLG:w,controlWidth:x,handleVisible:S,handleBorderColor:E}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vQ(e)),P5(e)),j5(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:v,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},O5(e)),"&-focused":Object.assign({},D5(e)),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},vQ(e)),T5(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:v}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},$5(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},vQ(e)),{width:"100%",padding:`${g}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),k5(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:!0===S?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${E}`,transition:`all ${p} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${E}`,borderEndEndRadius:i}},Y4(e,"lg")),Y4(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:y}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Q4=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},P5(e)),j5(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},O5(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},Z4=Ml("InputNumber",(e=>{const t=Rl(e,tp(e));return[J4(t),Q4(t),$c(t)]}),(e=>Object.assign(Object.assign({},B5(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto",handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder})));CI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:n,direction:r}=yy.useContext(mQ),o=yy.useRef(null);yy.useImperativeHandle(t,(()=>o.current));const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:p,bordered:f=!0,readOnly:h,status:g,controls:m}=e,b=CI(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",c),[v,w]=Z4(y),{compactSize:x,compactItemClassnames:S}=zZ(y,r);let E=yy.createElement(K4,{className:`${y}-handler-up-inner`}),C=yy.createElement(T2,{className:`${y}-handler-down-inner`});const k="boolean"==typeof m?m:void 0;"object"==typeof m&&(E=void 0===m.upIcon?E:yy.createElement("span",{className:`${y}-handler-up-inner`},m.upIcon),C=void 0===m.downIcon?C:yy.createElement("span",{className:`${y}-handler-down-inner`},m.downIcon));const{hasFeedback:O,status:D,isFormItemInput:$,feedbackIcon:_}=yy.useContext(F0),N=u2(D,g),j=AZ((e=>{var t;return null!==(t=null!=s?s:x)&&void 0!==t?t:e})),P=yy.useContext(PQ),T=null!=l?l:P,I=zJ({[`${y}-lg`]:"large"===j,[`${y}-sm`]:"small"===j,[`${y}-rtl`]:"rtl"===r,[`${y}-borderless`]:!f,[`${y}-in-form-item`]:$},yd(y,N),S,w),A=`${y}-group`;return v(yy.createElement(EI,Object.assign({ref:o,disabled:T,className:zJ(i,a),upHandler:E,downHandler:C,prefixCls:y,readOnly:h,controls:k,prefix:p,suffix:O&&_,addonAfter:d&&yy.createElement(HZ,null,yy.createElement(M0,{override:!0,status:!0},d)),addonBefore:u&&yy.createElement(HZ,null,yy.createElement(M0,{override:!0,status:!0},u)),classNames:{input:I},classes:{affixWrapper:zJ(yd(`${y}-affix-wrapper`,N,O),{[`${y}-affix-wrapper-sm`]:"small"===j,[`${y}-affix-wrapper-lg`]:"large"===j,[`${y}-affix-wrapper-rtl`]:"rtl"===r,[`${y}-affix-wrapper-borderless`]:!f},w),wrapper:zJ({[`${A}-rtl`]:"rtl"===r,[`${y}-wrapper-disabled`]:T},w),group:zJ({[`${y}-group-wrapper-sm`]:"small"===j,[`${y}-group-wrapper-lg`]:"large"===j,[`${y}-group-wrapper-rtl`]:"rtl"===r},yd(`${y}-group-wrapper`,N,O),w)}},b)))})),t3=e3;t3._InternalPanelDoNotUseOrYouWillBeFired=e=>yy.createElement(WQ,{theme:{components:{InputNumber:{handleVisible:!0}}}},yy.createElement(e3,Object.assign({},e)));const n3=t3;kI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:p,addonBefore:f,className:h,style:g,styles:m,rootClassName:b,onChange:y,classNames:v}=e,w=kI(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:S,input:E}=rJ.useContext(mQ),C=x("input",r),k=yy.useRef(null),[O,D]=z5(C),{compactSize:$,compactItemClassnames:_}=zZ(C,S),N=AZ((e=>{var t;return null!==(t=null!=a?a:$)&&void 0!==t?t:e})),j=rJ.useContext(PQ),P=null!=s?s:j,{status:T,hasFeedback:I,feedbackIcon:A}=yy.useContext(F0),R=u2(T,i),F=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!I,M=yy.useRef(F);yy.useEffect((()=>{M.current=F}),[F]);const L=Tp(k,!0),B=(I||u)&&rJ.createElement(rJ.Fragment,null,u,I&&A);let z;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?z=d:d&&(z={clearIcon:rJ.createElement(YQ,null)}),O(rJ.createElement(hI,Object.assign({ref:Hs(t,k),prefixCls:C,autoComplete:null==E?void 0:E.autoComplete},w,{disabled:P,onBlur:e=>{L(),null==l||l(e)},onFocus:e=>{L(),null==c||c(e)},style:Object.assign(Object.assign({},null==E?void 0:E.style),g),styles:Object.assign(Object.assign({},null==E?void 0:E.styles),m),suffix:B,allowClear:z,className:zJ(h,b,_,null==E?void 0:E.className),onChange:e=>{L(),null==y||y(e)},addonAfter:p&&rJ.createElement(HZ,null,rJ.createElement(M0,{override:!0,status:!0},p)),addonBefore:f&&rJ.createElement(HZ,null,rJ.createElement(M0,{override:!0,status:!0},f)),classNames:Object.assign(Object.assign(Object.assign({},v),null==E?void 0:E.classNames),{input:zJ({[`${C}-sm`]:"small"===N,[`${C}-lg`]:"large"===N,[`${C}-rtl`]:"rtl"===S,[`${C}-borderless`]:!o},!F&&yd(C,R),null==v?void 0:v.input,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.input,D)}),classes:{affixWrapper:zJ({[`${C}-affix-wrapper-sm`]:"small"===N,[`${C}-affix-wrapper-lg`]:"large"===N,[`${C}-affix-wrapper-rtl`]:"rtl"===S,[`${C}-affix-wrapper-borderless`]:!o},yd(`${C}-affix-wrapper`,R,I),D),wrapper:zJ({[`${C}-group-rtl`]:"rtl"===S},D),group:zJ({[`${C}-group-wrapper-sm`]:"small"===N,[`${C}-group-wrapper-lg`]:"large"===N,[`${C}-group-wrapper-rtl`]:"rtl"===S,[`${C}-group-wrapper-disabled`]:P},yd(`${C}-group-wrapper`,R,I),D)}})))})),o3=r3,i3={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"},a3=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:i3}))})),s3={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"},l3=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:s3}))}));OI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);ryy.createElement(e?l3:a3,null),u3={click:"onClick",hover:"onMouseOver"},d3=yy.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=yy.useState((()=>!!r&&n.visible)),a=yy.useRef(null);yy.useEffect((()=>{r&&i(n.visible)}),[r,n]);const s=Tp(a),l=()=>{const{disabled:t}=e;t||(o&&s(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:p}=e,f=OI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=yy.useContext(mQ),g=h("input",d),m=h("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=c3}=e,i=u3[n]||"",a=r(o),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return yy.cloneElement(yy.isValidElement(a)?a:yy.createElement("span",null,a),s)})(m),y=zJ(m,c,{[`${m}-${p}`]:!!p}),v=Object.assign(Object.assign({},Qs(f,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:y,prefixCls:g,suffix:b});return p&&(v.size=p),yy.createElement(o3,Object.assign({ref:Hs(t,a)},v))})),p3=d3;DI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:p,onCompositionStart:f,onCompositionEnd:h}=e,g=DI(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:m,direction:b}=yy.useContext(mQ),y=yy.useRef(!1),v=m("input-search",n),w=m("input",r),{compactSize:x}=zZ(v,b),S=AZ((e=>{var t;return null!==(t=null!=i?i:x)&&void 0!==t?t:e})),E=yy.useRef(null),C=e=>{var t;document.activeElement===(null===(t=E.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;d&&d(null===(n=null===(t=E.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof s?yy.createElement(A2,null):null,D=`${v}-button`;let $;const _=s||{},N=_.type&&!0===_.type.__ANT_BUTTON;$=N||"button"===_.type?sc(_,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),k(e)},key:"enterButton"},N?{className:D,size:S}:{})):yy.createElement(O0,{className:D,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:C,onClick:k,loading:c,icon:O},s),l&&($=[$,sc(l,{key:"addonAfter"})]);const j=zJ(v,{[`${v}-rtl`]:"rtl"===b,[`${v}-${S}`]:!!S,[`${v}-with-button`]:!!s},o);return yy.createElement(o3,Object.assign({ref:Hs(E,t),onPressEnter:e=>{y.current||c||k(e)}},g,{size:S,onCompositionStart:e=>{y.current=!0,null==f||f(e)},onCompositionEnd:e=>{y.current=!1,null==h||h(e)},prefixCls:w,addonAfter:$,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),p&&p(e)},className:j,disabled:u}))})),h3=f3;$I=["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"],_I={},jI=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],PI=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T=e.prefixCls;return n=e.defaultValue,r=e.value,o=e.autoSize,i=e.onResize,a=e.className,s=e.style,l=e.disabled,c=e.onChange,u=Oi(e,jI),p=(d=Ua(Al(n,{value:r,postState:function(e){return null!=e?e:""}}),2))[0],f=d[1],h=function(e){f(e.target.value),null==c||c(e)},g=yy.useRef(),yy.useImperativeHandle(t,(function(){return{textArea:g.current}})),m=Ua(yy.useMemo((function(){return o&&"object"===Ei(o)?[o.minRows,o.maxRows]:[]}),[o]),2),b=m[0],y=m[1],v=!!o,w=function(){try{if(document.activeElement===g.current){var e=g.current,t=e.scrollTop;g.current.setSelectionRange(e.selectionStart,e.selectionEnd),g.current.scrollTop=t}}catch(fY){}},x=Ua(yy.useState(2),2),S=x[0],E=x[1],k=(C=Ua(yy.useState(),2))[0],O=C[1],D=function(){E(0)},QO((function(){v&&D()}),[r,b,y,v]),QO((function(){if(0===S)E(1);else if(1===S){var e=function(e,t,n,r){var o,i,a,s,l,c,u,d,p,f,h=arguments.length>1&&void 0!==t&&t,g=arguments.length>2&&void 0!==n?n:null,m=arguments.length>3&&void 0!==r?r:null;return NI||((NI=document.createElement("textarea")).setAttribute("tab-index","-1"),NI.setAttribute("aria-hidden","true"),document.body.appendChild(NI)),e.getAttribute("wrap")?NI.setAttribute("wrap",e.getAttribute("wrap")):NI.removeAttribute("wrap"),o=function(e,t){var n,r,o,i,a,s=arguments.length>1&&void 0!==t&&t,l=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");return s&&_I[l]?_I[l]:(r=(n=window.getComputedStyle(e)).getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:$I.map((function(e){return"".concat(e,":").concat(n.getPropertyValue(e))})).join(";"),paddingSize:o,borderSize:i,boxSizing:r},s&&l&&(_I[l]=a),a)}(e,h),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,NI.setAttribute("style","".concat(o.sizingStyle,";").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")),NI.value=e.value||e.placeholder||"",l=void 0,c=void 0,d=NI.scrollHeight,"border-box"===s?d+=a:"content-box"===s&&(d-=i),null===g&&null===m||(NI.value=" ",p=NI.scrollHeight-i,null!==g&&(l=p*g,"border-box"===s&&(l=l+i+a),d=Math.max(l,d)),null!==m&&(c=p*m,"border-box"===s&&(c=c+i+a),u=d>c?"":"hidden",d=Math.min(c,d))),f={height:d,overflowY:u,resize:"none"},l&&(f.minHeight=l),c&&(f.maxHeight=c),f}(g.current,!1,b,y);E(2),O(e)}else w()}),[S]),$=yy.useRef(),_=function(){R$.cancel($.current)},N=function(e){2===S&&(null==i||i(e),o&&(_(),$.current=R$((function(){D()}))))},yy.useEffect((function(){return _}),[]),j=v?k:null,P=Ea(Ea({},s),j),0!==S&&1!==S||(P.overflowY="hidden",P.overflowX="hidden"),yy.createElement(j$,{onResize:N,disabled:!(o||i)},yy.createElement("textarea",fa({},u,{ref:g,style:P,className:zJ(T,a,ki({},"".concat(T,"-disabled"),l)),disabled:l,value:p,onChange:h})))})),TI=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"],II=rJ.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b=e.defaultValue,y=e.value,v=e.onFocus,w=e.onBlur,x=e.onChange,S=e.allowClear,E=e.maxLength,C=e.onCompositionStart,k=e.onCompositionEnd,O=e.suffix,D=e.prefixCls,$=void 0===D?"rc-textarea":D,_=e.classes,N=e.showCount,j=e.className,P=e.style,T=e.disabled,I=e.hidden,A=e.classNames,R=e.styles,F=e.onResize,M=Oi(e,TI),L=Ua(Al(b,{value:y,defaultValue:b}),2),B=L[0],z=L[1],H=yy.useRef(null),U=Ua(rJ.useState(!1),2),W=U[0],G=U[1],V=Ua(rJ.useState(!1),2),q=V[0],X=V[1],K=rJ.useRef(),Y=rJ.useRef(0),J=Ua(rJ.useState(null),2),Q=J[0],Z=J[1],ee=function(){var e;null===(e=H.current)||void 0===e||e.textArea.focus()};return yy.useImperativeHandle(t,(function(){return{resizableTextArea:H.current,focus:ee,blur:function(){var e;null===(e=H.current)||void 0===e||e.textArea.blur()}}})),yy.useEffect((function(){G((function(e){return!T&&e}))}),[T]),r=Number(E)>0,o=function(e){X(!0),K.current=B,Y.current=e.currentTarget.selectionStart,null==C||C(e)},i=function(e){var t,n;X(!1),t=e.currentTarget.value,r&&(t=Ap(Y.current>=E+1||Y.current===(null===(n=K.current)||void 0===n?void 0:n.length),K.current,t,E)),t!==B&&(z(t),$p(e.currentTarget,e,x,t)),null==k||k(e)},a=function(e){var t=e.target.value;!q&&r&&(t=Ap(e.target.selectionStart>=E+1||e.target.selectionStart===t.length||!e.target.selectionStart,B,t,E)),z(t),$p(e.currentTarget,e,x,t)},s=function(e){var t=M.onPressEnter,n=M.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},l=function(e){G(!0),null==v||v(e)},c=function(e){G(!1),null==w||w(e)},u=function(e){var t;z(""),ee(),$p(null===(t=H.current)||void 0===t?void 0:t.textArea,e,x)},d=Np(B),!q&&r&&null==y&&(d=Ip(d,E)),p=O,N&&(h=xa(d).length,f="object"===Ei(N)?N.formatter({value:d,count:h,maxLength:E}):"".concat(h).concat(r?" / ".concat(E):""),p=rJ.createElement(rJ.Fragment,null,p,rJ.createElement("span",{className:zJ("".concat($,"-data-count"),null==A?void 0:A.count),style:null==R?void 0:R.count},f))),g=function(e){var t;null==F||F(e),null!==(t=H.current)&&void 0!==t&&t.textArea.style.height&&Z(!0)},m=!M.autoSize&&!N&&!S,rJ.createElement(pI,{value:d,allowClear:S,handleReset:u,suffix:p,prefixCls:$,classes:{affixWrapper:zJ(null==_?void 0:_.affixWrapper,(n={},ki(n,"".concat($,"-show-count"),N),ki(n,"".concat($,"-textarea-allow-clear"),S),n))},disabled:T,focused:W,className:j,style:Ea(Ea({},P),Q&&!m?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof f?f:void 0}},hidden:I,inputElement:rJ.createElement(PI,fa({},M,{onKeyDown:s,onChange:a,onFocus:l,onBlur:c,onCompositionStart:o,onCompositionEnd:i,className:null==A?void 0:A.textarea,style:Ea(Ea({},null==R?void 0:R.textarea),{},{resize:null==P?void 0:P.resize}),disabled:T,prefixCls:$,onResize:g,ref:H}))})})),AI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,bordered:r=!0,size:o,disabled:i,status:a,allowClear:s,showCount:l,classNames:c,rootClassName:u,className:d}=e,p=AI(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:f,direction:h}=yy.useContext(mQ),g=AZ(o),m=yy.useContext(PQ),b=null!=i?i:m,{status:y,hasFeedback:v,feedbackIcon:w}=yy.useContext(F0),x=u2(y,a),S=yy.useRef(null);yy.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=S.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=S.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=S.current)||void 0===e?void 0:e.blur()}}}));const E=f("input",n);let C;"object"==typeof s&&(null==s?void 0:s.clearIcon)?C=s:s&&(C={clearIcon:yy.createElement(YQ,null)});const[k,O]=z5(E);return k(yy.createElement(II,Object.assign({},p,{disabled:b,allowClear:C,className:zJ(d,u),classes:{affixWrapper:zJ(`${E}-textarea-affix-wrapper`,{[`${E}-affix-wrapper-rtl`]:"rtl"===h,[`${E}-affix-wrapper-borderless`]:!r,[`${E}-affix-wrapper-sm`]:"small"===g,[`${E}-affix-wrapper-lg`]:"large"===g,[`${E}-textarea-show-count`]:l},yd(`${E}-affix-wrapper`,x),O)},classNames:Object.assign(Object.assign({},c),{textarea:zJ({[`${E}-borderless`]:!r,[`${E}-sm`]:"small"===g,[`${E}-lg`]:"large"===g},yd(E,x),O,null==c?void 0:c.textarea)}),prefixCls:E,suffix:v&&yy.createElement("span",{className:`${E}-textarea-suffix`},w),showCount:l,ref:S})))})),m3=o3;m3.Group=e=>{const{getPrefixCls:t,direction:n}=yy.useContext(mQ),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=z5(a),c=zJ(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=yy.useContext(F0),d=yy.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(yy.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},yy.createElement(F0.Provider,{value:d},e.children)))},m3.Search=h3,m3.TextArea=g3,m3.Password=p3;const b3=m3;RI=yy.createContext(null),FI=[],MI="rc-util-locker-".concat(Date.now()),LI=0,BI=function(e){return!1!==e&&(Pa()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},zI=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E=e.open,C=e.autoLock,k=e.getContainer;return r=void 0===(n=e.autoDestroy)||n,o=e.children,i=Ua(yy.useState(E),2),a=i[1],s=i[0]||E,yy.useEffect((function(){(r||E)&&a(E)}),[E,r]),c=(l=Ua(yy.useState((function(){return BI(k)})),2))[0],u=l[1],yy.useEffect((function(){var e=BI(k);u(null!=e?e:null)})),d=function(e){function t(){r.parentElement||document.body.appendChild(r),o.current=!0}function n(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),o.current=!1}var r=Ua(yy.useState((function(){return Pa()?document.createElement("div"):null})),1)[0],o=yy.useRef(!1),i=yy.useContext(RI),a=Ua(yy.useState(FI),2),s=a[0],l=a[1],c=i||(o.current?void 0:function(e){l((function(t){return[e].concat(xa(t))}))});return QO((function(){return e?i?i(t):t():n(),n}),[e]),QO((function(){s.length&&(s.forEach((function(e){return e()})),l(FI))}),[s]),[r,c]}(s&&!c),f=(p=Ua(d,2))[0],h=p[1],g=null!=c?c:f,w=C&&E&&Pa()&&(g===f||g===document.body),x=!!w,S=Ua(yy.useState((function(){return LI+=1,"".concat(MI,"_").concat(LI)})),1)[0],QO((function(){var e,t;return x?(e=Ac(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth,Ba("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),S)):La(S),function(){La(S)}}),[x,S]),m=null,o&&Ws(o)&&t&&(m=o.ref),b=Us(m,t),s&&Pa()&&void 0!==c?(y=!1===g||false,v=o,t&&(v=yy.cloneElement(o,{ref:b})),yy.createElement(RI.Provider,{value:h},y?v:PE.createPortal(v,g))):null})),HI=yy.createContext(null),UI=yy.createContext({}),WI=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.children,i=e.containerRef,a=e.id,s={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},l=Us(yy.useContext(UI).panel,i);return yy.createElement(yy.Fragment,null,yy.createElement("div",fa({id:a,className:zJ("".concat(t,"-content"),n),style:Ea({},r),"aria-modal":"true",role:"dialog",ref:l},s),o))},GI={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},VI=yy.forwardRef(Fp),qI=function(e){var t,n,r,o,i,a,s,l=e.open,c=void 0!==l&&l,u=e.prefixCls,d=void 0===u?"rc-drawer":u,p=e.placement,f=void 0===p?"right":p,h=e.autoFocus,g=void 0===h||h,m=e.keyboard,b=void 0===m||m,y=e.width,v=void 0===y?378:y,w=e.mask,x=void 0===w||w,S=e.maskClosable,E=void 0===S||S,C=e.getContainer,k=e.forceRender,O=e.afterOpenChange,D=e.destroyOnClose,$=e.onMouseEnter,_=e.onMouseOver,N=e.onMouseLeave,j=e.onClick,P=e.onKeyDown,T=e.onKeyUp,I=e.panelRef,A=Ua(yy.useState(!1),2),R=A[0],F=A[1],M=Ua(yy.useState(!1),2),L=M[0],B=M[1];return QO((function(){B(!0)}),[]),t=!!L&&c,n=yy.useRef(),r=yy.useRef(),QO((function(){t&&(r.current=document.activeElement)}),[t]),o=function(e){var t,o;F(e),null==O||O(e),e||!r.current||null!==(t=n.current)&&void 0!==t&&t.contains(r.current)||null===(o=r.current)||void 0===o||o.focus({preventScroll:!0})},i=yy.useMemo((function(){return{panel:I}}),[I]),k||R||t||!D?(a={onMouseEnter:$,onMouseOver:_,onMouseLeave:N,onClick:j,onKeyDown:P,onKeyUp:T},s=Ea(Ea({},e),{},{open:t,prefixCls:d,placement:f,autoFocus:g,keyboard:b,width:v,mask:x,maskClosable:E,inline:!1===C,afterOpenChange:o,ref:n},a),yy.createElement(UI.Provider,{value:i},yy.createElement(zI,{open:t||k||R,autoDestroy:!1,getContainer:C,autoLock:x&&(t||R)},yy.createElement(VI,s)))):null};const y3=e=>{const{prefixCls:t,title:n,footer:r,extra:o,closeIcon:i,closable:a,onClose:s,headerStyle:l,drawerStyle:c,bodyStyle:u,footerStyle:d,children:p}=e,f=yy.useCallback((e=>yy.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${t}-close`},e)),[s]),[h,g]=Hc(a,i,f,void 0,!0),m=yy.useMemo((()=>n||h?yy.createElement("div",{style:l,className:zJ(`${t}-header`,{[`${t}-header-close-only`]:h&&!n&&!o})},yy.createElement("div",{className:`${t}-header-title`},g,n&&yy.createElement("div",{className:`${t}-title`},n)),o&&yy.createElement("div",{className:`${t}-extra`},o)):null),[h,g,o,l,t,n]),b=yy.useMemo((()=>r?yy.createElement("div",{className:`${t}-footer`,style:d},r):null),[r,d,t]);return yy.createElement("div",{className:`${t}-wrapper-body`,style:c},m,yy.createElement("div",{className:`${t}-body`,style:u},p),b)},v3=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},w3=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:p,colorSplit:f,marginSM:h,colorIcon:g,colorIconHover:m,colorText:b,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:w}=e,x=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[x]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${x}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${x}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${x}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${x}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${p} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:g,fontWeight:y,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${v}px ${w}px`,borderTop:`${d}px ${p} ${f}`},"&-rtl":{direction:"rtl"}}}},x3=Ml("Drawer",(e=>{const t=Rl(e,{});return[w3(t),v3(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));XI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=S3,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:p,className:f,visible:h,afterVisibleChange:g}=e,m=XI(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:b,getPrefixCls:y,direction:v,drawer:w}=yy.useContext(mQ),x=y("drawer",u),[S,E]=x3(x),C=void 0===d&&b?()=>b(document.body):d,k=zJ({"no-mask":!i,[`${x}-rtl`]:"rtl"===v},t,E),O=yy.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),D=yy.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),$={motionName:DZ(x,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},_=Su();return S(yy.createElement(HZ,null,yy.createElement(M0,{status:!0,override:!0},yy.createElement(qI,Object.assign({prefixCls:x,onClose:c,maskMotion:$,motion:e=>({motionName:DZ(x,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},m,{open:null!=s?s:h,mask:i,push:a,width:O,height:D,style:Object.assign(Object.assign({},null==w?void 0:w.style),p),className:zJ(null==w?void 0:w.className,f),rootClassName:k,getContainer:C,afterOpenChange:null!=l?l:g,panelRef:_}),yy.createElement(y3,Object.assign({prefixCls:x},m,{onClose:c}))))))};E3._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=XI(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=yy.useContext(mQ),s=a("drawer",t),[l,c]=x3(s),u=zJ(s,`${s}-pure`,`${s}-${o}`,c,r);return l(yy.createElement("div",{className:u,style:n},yy.createElement(y3,Object.assign({prefixCls:s},i))))};const C3=E3,k3=rJ.createContext({latestIndex:0}),O3=k3.Provider,D3=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=yy.useContext(k3);return null==r?null:yy.createElement(yy.Fragment,null,yy.createElement("div",{className:t,style:i},r),n{var n,r;const{getPrefixCls:o,space:i,direction:a}=yy.useContext(mQ),{size:s=(null==i?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:p="horizontal",prefixCls:f,split:h,style:g,wrap:m=!1,classNames:b,styles:y}=e,v=KI(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(s)?s:[s,s],S=Mp(x),E=Mp(w),C=Lp(x),k=Lp(w),O=Bs(d,{keepEmpty:!0}),D=void 0===l&&"horizontal"===p?"center":l,$=o("space",f),[_,N]=LZ($),j=zJ($,null==i?void 0:i.className,N,`${$}-${p}`,{[`${$}-rtl`]:"rtl"===a,[`${$}-align-${D}`]:D,[`${$}-gap-row-${x}`]:S,[`${$}-gap-col-${w}`]:E},c,u),P=zJ(`${$}-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 I=O.map(((e,t)=>{var n,r;return null!=e&&(T=t),yy.createElement(D3,{className:P,key:e&&e.key||`${P}-${t}`,index:t,split:h,style:null!==(n=null==y?void 0:y.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),A=yy.useMemo((()=>({latestIndex:T})),[T]);if(0===O.length)return null;const R={};return m&&(R.flexWrap="wrap"),!E&&k&&(R.columnGap=w),!S&&C&&(R.rowGap=x),_(yy.createElement("div",Object.assign({ref:t,className:j,style:Object.assign(Object.assign(Object.assign({},R),null==i?void 0:i.style),g)},v),yy.createElement(O3,{value:A},I)))}));$3.Compact=e=>{const{getPrefixCls:t,direction:n}=yy.useContext(mQ),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=cN(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=AZ((e=>null!=r?r:e)),p=t("space-compact",a),[f,h]=LZ(p),g=zJ(p,h,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===o},s,l),m=yy.useContext(BZ),b=Bs(c),y=yy.useMemo((()=>b.map(((e,t)=>yy.createElement(UZ,{key:e&&e.key||`${p}-item-${t}`,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:f(yy.createElement("div",Object.assign({className:g},u),y))};const _3=$3,N3=e=>{const{componentCls:t}=e,n=`${t}-show-help-item`;return{[`${t}-show-help`]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},j3=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),P3=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},T3=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},vQ(e)),j3(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},P3(e,e.controlHeightSM)),"&-large":Object.assign({},P3(e,e.controlHeightLG))})}},I3=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},vQ(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${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:f1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},A3=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"}}}}},R3=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},F3=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),M3=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:F3(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},L3=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`]:F3(e),[`@media (max-width: ${e.screenXSMax}px)`]:[M3(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:F3(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:F3(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:F3(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:F3(e)}}}},B3=(e,t)=>Rl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),z3=Ml("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=B3(e,n);return[T3(r),I3(r),N3(r),A3(r),R3(r),L3(r),D1(r),f1]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3}),H3=[],U3=e=>{let{help:t,helpStatus:n,errors:r=H3,warnings:o=H3,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=yy.useContext(R0),c=`${l}-item-explain`,[,u]=z3(l),d=yy.useMemo((()=>OZ(l)),[l]),p=Bp(r),f=Bp(o),h=yy.useMemo((()=>null!=t?[zp(t,"help",n)]:[].concat(xa(p.map(((e,t)=>zp(e,"error","error",t)))),xa(f.map(((e,t)=>zp(e,"warning","warning",t)))))),[t,n,p,f]),g={};return a&&(g.id=`${a}_help`),yy.createElement(RQ,{motionDeadline:d.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return yy.createElement("div",Object.assign({},g,{className:zJ(c,t,i,u),style:n,role:"alert"}),yy.createElement(FQ,Object.assign({keys:h},OZ(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return yy.createElement("div",{key:t,className:zJ(o,{[`${c}-${r}`]:r}),style:i},n)})))}))},W3=["parentNode"],G3="form_item";YI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const n=yy.useContext(PQ),{getPrefixCls:r,direction:o,form:i}=yy.useContext(mQ),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:p,labelAlign:f,labelWrap:h,labelCol:g,wrapperCol:m,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:v,requiredMark:w,onFinishFailed:x,name:S,style:E,feedbackIcons:C}=e,k=YI(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),O=AZ(c),D=yy.useContext(UJ),$=yy.useMemo((()=>void 0!==w?w:i&&void 0!==i.requiredMark?i.requiredMark:!b),[b,w,i]),_=null!=p?p:null==i?void 0:i.colon,N=r("form",a),[j,P]=z3(N),T=zJ(N,`${N}-${y}`,{[`${N}-hide-required-mark`]:!1===$,[`${N}-rtl`]:"rtl"===o,[`${N}-${O}`]:O},P,null==i?void 0:i.className,s,l),[I]=Vp(d),{__INTERNAL__:A}=I;A.name=S;const R=yy.useMemo((()=>({name:S,labelAlign:f,labelCol:g,labelWrap:h,wrapperCol:m,vertical:"vertical"===y,colon:_,requiredMark:$,itemRef:A.itemRef,form:I,feedbackIcons:C})),[S,f,g,m,y,_,$,I,C]);yy.useImperativeHandle(t,(()=>I));const F=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),I.scrollToField(t,n)}};return j(yy.createElement(jQ,{disabled:u},yy.createElement(IQ,{size:O},yy.createElement(A0,Object.assign({},{validateMessages:D}),yy.createElement(T0.Provider,{value:R},yy.createElement(aj,Object.assign({id:S},k,{name:S,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==v)return void F(v,t);i&&void 0!==i.scrollToFirstError&&F(i.scrollToFirstError,t)}},form:I,style:Object.assign(Object.assign({},null==i?void 0:i.style),E),className:T})))))))},q3=yy.forwardRef(V3),X3=()=>{const{status:e,errors:t=[],warnings:n=[]}=yy.useContext(F0);return{status:e,errors:t,warnings:n}};X3.Context=F0;const K3=X3,Y3=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},J3=$Q(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=B3(e,n);return[Y3(r)]})),Q3=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:p}=e,f=`${t}-item`,h=yy.useContext(T0),g=r||h.wrapperCol||{},m=zJ(`${f}-control`,g.className),b=yy.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const y=yy.createElement("div",{className:`${f}-control-input`},yy.createElement("div",{className:`${f}-control-input-content`},o)),v=yy.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||i.length||a.length?yy.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},yy.createElement(R0.Provider,{value:v},yy.createElement(U3,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${f}-explain-connected`,onVisibleChanged:p})),!!d&&yy.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id=`${u}_extra`);const S=l?yy.createElement("div",Object.assign({},x,{className:`${f}-extra`}),l):null,E=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:y,errorList:w,extra:S}):yy.createElement(yy.Fragment,null,y,w,S);return yy.createElement(T0.Provider,{value:b},yy.createElement(I4,Object.assign({},g,{className:m}),E),yy.createElement(J3,{prefixCls:t}))},Z3={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"},e6=yy.forwardRef((function(e,t){return yy.createElement(qQ,fa({},e,{ref:t,icon:Z3}))}));JI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c}=e;var u;const[d]=QJ("Form"),{vertical:p,labelAlign:f,labelCol:h,labelWrap:g,colon:m}=yy.useContext(T0);if(!n)return null;const b=o||h||{},y=`${t}-item-label`,v=zJ(y,"left"===(i||f)&&`${y}-left`,b.className,{[`${y}-wrap`]:!!g});let w=n;const x=!0===a||!1!==m&&!1!==a;x&&!p&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const S=function(e){return e?"object"!=typeof e||yy.isValidElement(e)?{title:e}:e:null}(c);if(S){const{icon:e=yy.createElement(e6,null)}=S,n=JI(S,["icon"]),r=yy.createElement(e5,Object.assign({},n),yy.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));w=yy.createElement(yy.Fragment,null,w,r)}const E="optional"===l,C="function"==typeof l;C?w=l(w,{required:!!s}):E&&!s&&(w=yy.createElement(yy.Fragment,null,w,yy.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=qJ.Form)||void 0===u?void 0:u.optional))));const k=zJ({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:E||C,[`${t}-item-no-colon`]:!x});return yy.createElement(I4,Object.assign({},b,{className:v}),yy.createElement("label",{htmlFor:r,className:k,title:"string"==typeof n?n:""},w))},n6={success:XQ,warning:eZ,error:YQ,validating:pZ};QI=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n])))),o6=function(e){function t(t,n,i){return r&&!g?yy.createElement(qp,{prefixCls:k,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:A,warnings:R,noStyle:!0},t):yy.createElement(Xp,Object.assign({key:"row"},e,{className:zJ(o,D),prefixCls:k,fieldId:n,isRequired:i,errors:A,warnings:R,meta:P,onSubItemMetaChange:I}),t)}const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:s,rules:l,children:c,required:u,label:d,messageVariables:p,trigger:f="onChange",validateTrigger:h,hidden:g,help:m}=e,{getPrefixCls:b}=yy.useContext(mQ),{name:y}=yy.useContext(T0),v=function(e){if("function"==typeof e)return e;const t=Bs(e);return t.length<=1?t[0]:t}(c),w="function"==typeof v,x=yy.useContext(I0),{validateTrigger:S}=yy.useContext(DN),E=void 0!==h?h:S,C=function(e){return!(null==e)}(n),k=b("form",a),[O,D]=z3(k),$=yy.useContext($N),_=yy.useRef(),[N,j]=function(){const[e,t]=yy.useState({}),n=yy.useRef(null),r=yy.useRef([]),o=yy.useRef(!1);return yy.useEffect((()=>(o.current=!1,()=>{o.current=!0,R$.cancel(n.current),n.current=null})),[]),[e,function(e){o.current||(null===n.current&&(r.current=[],n.current=R$((()=>{n.current=null,t((e=>{let t=e;return r.current.forEach((e=>{t=e(t)})),t}))}))),r.current.push(e))}]}(),[P,T]=Tl((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{j((n=>{const r=Object.assign({},n),o=[].concat(xa(e.name.slice(0,-1)),xa(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[A,R]=yy.useMemo((()=>{const e=xa(P.errors),t=xa(P.warnings);return Object.values(N).forEach((n=>{e.push.apply(e,xa(n.errors||[])),t.push.apply(t,xa(n.warnings||[]))})),[e,t]}),[N,P.errors,P.warnings]),F=function(){const{itemRef:e}=yy.useContext(T0),t=yy.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=Hs(e(n),o)),t.current.ref}}();if(!C&&!w&&!i)return O(t(v));let M={};return"string"==typeof d?M.label=d:n&&(M.label=String(n)),p&&(M=Object.assign(Object.assign({},M),p)),O(yy.createElement(gu,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:E,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),r&&!1!==m&&x){let n=e.name;if(e.destroy)n=_.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(xa(r)),_.current=n}x(e,n)}}}),((r,o,a)=>{const c=Hp(n).length&&o?o.name:[],d=Up(c,y),p=void 0!==u?u:!(!l||!l.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return t&&t.required&&!t.warningOnly}return!1}))),h=Object.assign({},r);let g=null;if(Array.isArray(v)&&C)g=v;else if(w&&(!s&&!i||C));else if(!i||w||C)if(rZ(v)){const t=Object.assign(Object.assign({},v.props),h);if(t.id||(t.id=d),m||A.length>0||R.length>0||e.extra){const n=[];(m||A.length>0)&&n.push(`${d}_help`),e.extra&&n.push(`${d}_extra`),t["aria-describedby"]=n.join(" ")}A.length>0&&(t["aria-invalid"]="true"),p&&(t["aria-required"]="true"),Ws(v)&&(t.ref=F(c,v)),new Set([].concat(xa(Hp(f)),xa(Hp(E)))).forEach((e=>{t[e]=function(){var t,n,r,o,i,a,s,l;for(a=arguments.length,s=new Array(a),l=0;l{var{prefixCls:t,children:n}=e,r=ZI(e,["prefixCls","children"]);const{getPrefixCls:o}=yy.useContext(mQ),i=o("form",t),a=yy.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return yy.createElement(mu,Object.assign({},r),((e,t,r)=>yy.createElement(R0.Provider,{value:a},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))},i6.ErrorList=U3,i6.useForm=Vp,i6.useFormInstance=function(){const{form:e}=yy.useContext(T0);return e},i6.useWatch=wu,i6.Provider=A0,i6.create=()=>{};const a6=i6;let s6=null,l6=e=>e(),c6=[],u6={};const d6=yy.forwardRef(((e,t)=>{const[n,r]=yy.useState(Kp),[o,i]=uc(n),a=HQ(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(Kp)};return yy.useEffect(u,[]),yy.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),yy.createElement(WQ,{prefixCls:s,iconPrefixCls:l,theme:c},i)})),p6={open:function(e){const t=cc((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return c6.push(r),()=>{n?l6((()=>{n()})):r.skipped=!0}}));return Yp(),t},destroy:function(e){c6.push({type:"destroy",key:e}),Yp()},config:function(e){u6=Object.assign(Object.assign({},u6),e),l6((()=>{var e;null===(e=null==s6?void 0:s6.sync)||void 0===e||e.call(s6)}))},useMessage:dc,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=tN(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=yy.useContext(mQ),l=t||s("message"),[,c]=hZ(l);return yy.createElement(q_,Object.assign({},a,{prefixCls:l,className:zJ(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:yy.createElement(mZ,{prefixCls:l,type:r,icon:o},i)}))}},f6=p6;["success","info","warning","error","loading"].forEach((e=>{f6[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return c6.push(o),()=>{r?l6((()=>{r()})):o.skipped=!0}}));return Yp(),n}(e,n)}}));const h6=f6;eA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s}=e,l=eA(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=yy.useContext(mQ),u=c(),d=t||c("modal"),[,p]=I1(d),f=`${d}-confirm`;let h={};return h=i?{closable:null!=o&&o,title:"",footer:"",children:yy.createElement(ku,Object.assign({},e,{prefixCls:d,confirmPrefixCls:f,rootPrefixCls:u,content:s}))}:{closable:null==o||o,title:a,footer:void 0===e.footer?yy.createElement(H0,Object.assign({},e)):e.footer,children:s},yy.createElement(SN,Object.assign({prefixCls:d,className:zJ(p,`${d}-pure-panel`,i&&f,i&&`${f}-${i}`,n)},l,{closeIcon:Eu(d,r),closable:o},h))})),m6=R1;m6.useModal=Pu,m6.info=function(e){return Ou($u(e))},m6.success=function(e){return Ou(_u(e))},m6.error=function(e){return Ou(Nu(e))},m6.warning=Jp,m6.warn=Jp,m6.confirm=function(e){return Ou(ju(e))},m6.destroyAll=function(){for(;B1.length;){const e=B1.pop();e&&e()}},m6.config=function(e){let{rootPrefixCls:t}=e;z1=t},m6._InternalPanelDoNotUseOrYouWillBeFired=g6;const b6=m6;let y6=null,v6=e=>e(),w6=[],x6={};const S6=yy.forwardRef(((e,t)=>{const[n,r]=yy.useState(Qp),[o,i]=Iu(n),a=HQ(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=()=>{r(Qp)};return yy.useEffect(u,[]),yy.useImperativeHandle(t,(()=>{const e=Object.assign({},o);return Object.keys(e).forEach((t=>{e[t]=function(){return u(),o[t].apply(o,arguments)}})),{instance:e,sync:u}})),yy.createElement(WQ,{prefixCls:s,iconPrefixCls:l,theme:c},i)})),E6={open:ef,destroy:function(e){w6.push({type:"destroy",key:e}),Zp()},config:function(e){x6=Object.assign(Object.assign({},x6),e),v6((()=>{var e;null===(e=null==y6?void 0:y6.sync)||void 0===e||e.call(y6)}))},useNotification:Au,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:s,closable:l=!0,closeIcon:c}=e,u=dj(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=yy.useContext(mQ),p=t||d("notification"),f=`${p}-notice`,[,h]=X1(p);return yy.createElement(q_,Object.assign({},u,{prefixCls:p,className:zJ(n,h,`${f}-pure-panel`),eventKey:"pure",duration:null,closable:l,closeIcon:Tu(p,c),content:yy.createElement(Y1,{prefixCls:f,icon:r,type:o,message:i,description:a,btn:s})}))}},C6=E6;["success","info","warning","error"].forEach((e=>{C6[e]=t=>ef(Object.assign(Object.assign({},t),{type:e}))}));const k6=C6;tA=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},nA=function(e){return void 0!==e?"".concat(e,"px"):void 0},rA=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"],oA=function(e){var t=e.prefixCls,n=e.disabled,r=e.checked,o=e.label,i=e.title,a=e.value,s=e.onChange;return yy.createElement("label",{className:zJ(e.className,ki({},"".concat(t,"-item-disabled"),n))},yy.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:n,checked:r,onChange:function(e){n||s(e,a)}}),yy.createElement("div",{className:"".concat(t,"-item-label"),title:i},o))},iA=yy.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=void 0===o?"rc-segmented":o,a=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,p=e.className,f=void 0===p?"":p,h=e.motionName,g=void 0===h?"thumb-motion":h,m=Oi(e,rA),b=yy.useRef(null),y=yy.useMemo((function(){return Hs(b,t)}),[b,t]),v=yy.useMemo((function(){return function(e){return e.map((function(e){if("object"===Ei(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Ei(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Ea(Ea({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}(s)}),[s]),w=Ua(Al(null===(n=v[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),x=w[0],S=w[1],E=Ua(yy.useState(!1),2),C=E[0],k=E[1],O=function(e,t){l||(S(t),null==d||d(t))},D=Qs(m,["children"]);return yy.createElement("div",fa({},D,{className:zJ(i,(r={},ki(r,"".concat(i,"-rtl"),"rtl"===a),ki(r,"".concat(i,"-disabled"),l),r),f),ref:y}),yy.createElement("div",{className:"".concat(i,"-group")},yy.createElement(tf,{prefixCls:i,value:x,containerRef:b,motionName:"".concat(i,"-").concat(g),direction:a,getValueIndex:function(e){return v.findIndex((function(t){return t.value===e}))},onMotionStart:function(){k(!0)},onMotionEnd:function(){k(!1)}}),v.map((function(e){return yy.createElement(oA,fa({},e,{key:e.value,prefixCls:i,className:zJ(e.className,"".concat(i,"-item"),ki({},"".concat(i,"-item-selected"),e.value===x&&!C)),checked:e.value===x,onChange:O,disabled:!!l||!!e.disabled}))}))))})),iA.displayName="Segmented",iA.defaultProps={options:[]};const O6=Object.assign({overflow:"hidden"},yQ),D6=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vQ(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":Object.assign(Object.assign({},rf(e)),{color:e.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:e.controlHeight-2*e.segmentedPadding,lineHeight:e.controlHeight-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`},O6),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},rf(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-2*e.segmentedPadding,lineHeight:e.controlHeightLG-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-2*e.segmentedPadding,lineHeight:e.controlHeightSM-2*e.segmentedPadding+"px",padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),nf(`&-disabled ${t}-item`,e)),nf(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},$6=Ml("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=Rl(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[D6(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}}));aA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,block:i,options:a=[],size:s="middle",style:l}=e,c=aA(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:p}=yy.useContext(mQ),f=u("segmented",n),[h,g]=$6(f),m=AZ(s),b=yy.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=aA(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:yy.createElement(yy.Fragment,null,yy.createElement("span",{className:`${f}-item-icon`},t),n&&yy.createElement("span",null,n))})}return e}))),[a,f]),y=zJ(r,o,null==p?void 0:p.className,{[`${f}-block`]:i,[`${f}-sm`]:"small"===m,[`${f}-lg`]:"large"===m},g),v=Object.assign(Object.assign({},null==p?void 0:p.style),l);return h(yy.createElement(iA,Object.assign({},c,{className:y,style:v,options:b,ref:t,prefixCls:f,direction:d})))}));sA=yy.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),lA=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],cA=yy.forwardRef((function(e,t){var n,r,o=e.prefixCls,i=e.value,a=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,p=Oi(e,lA),f=yy.useContext(sA),h=f.min,g=f.max,m=f.direction,b=f.disabled,y=f.keyboard,v=f.range,w=f.tabIndex,x=f.ariaLabelForHandle,S=f.ariaLabelledByForHandle,E=f.ariaValueTextFormatterForHandle,C="".concat(o,"-handle"),k=function(e){b||s(e,a)},O=af(m,i,h,g),D=yy.createElement("div",fa({ref:t,className:zJ(C,(n={},ki(n,"".concat(C,"-").concat(a+1),v),ki(n,"".concat(C,"-dragging"),u),n)),style:Ea(Ea({},O),l),onMouseDown:k,onTouchStart:k,onKeyDown:function(e){if(!b&&y){var t=null;switch(e.which||e.keyCode){case V_.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case V_.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case V_.UP:t="ttb"!==m?1:-1;break;case V_.DOWN:t="ttb"!==m?-1:1;break;case V_.HOME:t="min";break;case V_.END:t="max";break;case V_.PAGE_UP:t=2;break;case V_.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,a))}},tabIndex:b?null:sf(w,a),role:"slider","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":i,"aria-disabled":b,"aria-label":sf(x,a),"aria-labelledby":sf(S,a),"aria-valuetext":null===(r=sf(E,a))||void 0===r?void 0:r(i),"aria-orientation":"ltr"===m||"rtl"===m?"horizontal":"vertical"},p));return c&&(D=c(D,{index:a,prefixCls:o,value:i,dragging:u})),D})),uA=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],dA=yy.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.draggingIndex,c=Oi(e,uA),u=yy.useRef({});return yy.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),yy.createElement(yy.Fragment,null,a.map((function(e,t){return yy.createElement(cA,fa({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:sf(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:i,render:s},c))})))})),pA=yy.forwardRef((function(e,t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k=e.prefixCls,O=void 0===k?"rc-slider":k,D=e.className,$=e.style,_=e.disabled,N=void 0!==_&&_,j=e.keyboard,P=void 0===j||j,T=e.autoFocus,I=e.onFocus,A=e.onBlur,R=e.min,F=void 0===R?0:R,M=e.max,L=void 0===M?100:M,B=e.step,z=void 0===B?1:B,H=e.value,U=e.defaultValue,W=e.range,G=e.count,V=e.onChange,q=e.onBeforeChange,X=e.onAfterChange,K=e.allowCross,Y=void 0===K||K,J=e.pushable,Q=void 0!==J&&J,Z=e.draggableTrack,ee=e.reverse,te=e.vertical,ne=e.included,re=void 0===ne||ne,oe=e.startPoint,ie=e.trackStyle,ae=e.handleStyle,se=e.railStyle,le=e.dotStyle,ce=e.activeDotStyle,ue=e.marks,de=e.dots,pe=e.handleRender,fe=e.tabIndex,he=void 0===fe?0:fe,ge=e.ariaLabelForHandle,me=e.ariaLabelledByForHandle,be=e.ariaValueTextFormatterForHandle,ye=yy.useRef(),ve=yy.useRef(),we=yy.useMemo((function(){return te?ee?"ttb":"btt":ee?"rtl":"ltr"}),[ee,te]),xe=yy.useMemo((function(){return isFinite(F)?F:0}),[F]),Se=yy.useMemo((function(){return isFinite(L)?L:100}),[L]),Ee=yy.useMemo((function(){return null!==z&&z<=0?1:z}),[z]),Ce=yy.useMemo((function(){return"boolean"==typeof Q?!!Q&&Ee:Q>=0&&Q}),[Q,Ee]),ke=yy.useMemo((function(){return Object.keys(ue||{}).map((function(e){var t=ue[e],n={value:Number(e)};return t&&"object"===Ei(t)&&!yy.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}))}),[ue]),Oe=function(e,t,n,r,o,i){var a=yy.useCallback((function(n){var r=isFinite(n);return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=yy.useCallback((function(r){var o,i,s,l;return null!==n?(o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(i(n),i(t),i(e)),l=Number(o.toFixed(s)),e<=l&&l<=t?l:null):null}),[n,e,t,a]),l=yy.useCallback((function(o){var i,l,c=a(o),u=r.map((function(e){return e.value}));return null!==n&&u.push(s(o)),u.push(e,t),i=u[0],l=t-e,u.forEach((function(e){var t=Math.abs(c-e);t<=l&&(i=e,l=t)})),i}),[e,t,r,n,a,s]),c=function o(i,a,l,c){var u,d,p,f,h,g,m,b,y=arguments.length>3&&void 0!==c?c:"unit";return"number"==typeof a?(p=(d=i[l])+a,f=[],r.forEach((function(e){f.push(e.value)})),f.push(e,t),f.push(s(d)),h=a>0?1:-1,f.push(s("unit"===y?d+h*n:p)),f=f.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=d:e>=d})),"unit"===y&&(f=f.filter((function(e){return e!==d}))),g="unit"===y?d:p,u=f[0],m=Math.abs(u-g),f.forEach((function(e){var t=Math.abs(e-g);t1?((b=xa(i))[l]=u,o(b,a-h,l,y)):u):"min"===a?e:"max"===a?t:void 0},u=function(e,t,n,r){var o=e[n],i=c(e,t,n,arguments.length>3&&void 0!==r?r:"unit");return{value:i,changed:i!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e3&&void 0!==r?r:"unit",C=e.map(l),k=C[n],O=c(C,t,n,E);if(C[n]=O,!1===o)a=i||0,n>0&&C[n-1]!==k&&(C[n]=Math.max(C[n],C[n-1]+a)),n0;h-=1)for(g=!0;d(C[h]-C[h-1])&&g;)m=u(C,-1,h-1),C[h-1]=m.value,g=m.changed;for(b=C.length-1;b>0;b-=1)for(y=!0;d(C[b]-C[b-1])&&y;)v=u(C,-1,b-1),C[b-1]=v.value,y=v.changed;for(w=0;w=0?G+1:2);o.length=0&&ye.current.focus(e)}c(null)}),[l=s[0]]),d=yy.useMemo((function(){return(!Z||null!==Ee)&&Z}),[Z,Ee]),p=function(e,t,n,o,i,a,s,l,c){var u,d,p,f,h,g=Ua(yy.useState(null),2),m=g[0],b=g[1],y=Ua(yy.useState(-1),2),v=y[0],w=y[1],x=Ua(yy.useState(n),2),S=x[0],E=x[1],C=Ua(yy.useState(n),2),k=C[0],O=C[1],D=yy.useRef(null),$=yy.useRef(null);return yy.useEffect((function(){-1===v&&E(n)}),[n,v]),yy.useEffect((function(){return function(){document.removeEventListener("mousemove",D.current),document.removeEventListener("mouseup",$.current),document.removeEventListener("touchmove",D.current),document.removeEventListener("touchend",$.current)}}),[]),u=function(e,t){S.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&b(t),E(e),s(e))},(p=yy.useRef(d=function(e,t){var n,r,s,l,d,p,f,h;-1===e?(n=k[0],r=i-k[k.length-1],s=t*(i-o),s=Math.max(s,o-n),s=Math.min(s,r),l=a(n+s),s=l-n,d=k.map((function(e){return e+s})),u(d)):(p=(i-o)*t,(f=xa(S))[e]=k[e],h=c(f,p,e,"dist"),u(h.values,h.value))})).current=d,f=function(o,i){var a,s,l,c,u,d;o.stopPropagation(),a=n[i],w(i),b(a),O(n),s=lf(o),l=s.pageX,c=s.pageY,u=function(n){var r,o,a,s,u,d,f;switch(n.preventDefault(),o=(r=lf(n)).pageX-l,a=r.pageY-c,u=(s=e.current.getBoundingClientRect()).width,d=s.height,t){case"btt":f=-a/d;break;case"ttb":f=a/d;break;case"rtl":f=-o/u;break;default:f=o/u}p.current(i,f)},d=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),D.current=null,$.current=null,w(-1),null==X||X(r(Ie.current))},document.addEventListener("mouseup",d),document.addEventListener("mousemove",u),document.addEventListener("touchend",d),document.addEventListener("touchmove",u),D.current=u,$.current=d},h=yy.useMemo((function(){var e=xa(n).sort((function(e,t){return e-t})),t=xa(S).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?S:n}),[n,S]),[v,m,h,f]}(ve,we,Te,xe,Se,$e,o,0,_e),f=Ua(p,4),g=f[1],m=f[2],b=f[3],y=function(e,t){b(e,t),null==q||q(r(Ie.current))},yy.useEffect((function(){if(!v){var e=Te.lastIndexOf(g);ye.current.focus(e)}}),[v=-1!==(h=f[0])]),w=yy.useMemo((function(){return xa(m).sort((function(e,t){return e-t}))}),[m]),x=Ua(yy.useMemo((function(){return W?[w[0],w[w.length-1]]:[xe,w[0]]}),[w,W,xe]),2),S=x[0],E=x[1],yy.useImperativeHandle(t,(function(){return{focus:function(){ye.current.focus(0)},blur:function(){var e=document.activeElement;ve.current.contains(e)&&(null==e||e.blur())}}})),yy.useEffect((function(){T&&ye.current.focus(0)}),[]),C=yy.useMemo((function(){return{min:xe,max:Se,direction:we,disabled:N,keyboard:P,step:Ee,included:re,includedStart:S,includedEnd:E,range:W,tabIndex:he,ariaLabelForHandle:ge,ariaLabelledByForHandle:me,ariaValueTextFormatterForHandle:be}}),[xe,Se,we,N,P,Ee,re,S,E,W,he,ge,me,be]),yy.createElement(sA.Provider,{value:C},yy.createElement("div",{ref:ve,className:zJ(O,D,(n={},ki(n,"".concat(O,"-disabled"),N),ki(n,"".concat(O,"-vertical"),te),ki(n,"".concat(O,"-horizontal"),!te),ki(n,"".concat(O,"-with-marks"),ke.length),n)),style:$,onMouseDown:a},yy.createElement("div",{className:"".concat(O,"-rail"),style:se}),yy.createElement(uf,{prefixCls:O,style:ie,values:w,startPoint:oe,onStartMove:d?y:null}),yy.createElement(hf,{prefixCls:O,marks:ke,dots:de,style:le,activeStyle:ce}),yy.createElement(dA,{ref:ye,prefixCls:O,style:ae,values:m,draggingIndex:h,onStartMove:y,onOffsetChange:u,onFocus:I,onBlur:A,handleRender:pe}),yy.createElement(pf,{prefixCls:O,marks:ke,onClick:i})))}));const N6=yy.forwardRef(((e,t)=>{function n(){R$.cancel(i.current),i.current=null}const{open:r}=e,o=yy.useRef(null),i=yy.useRef(null);return yy.useEffect((()=>(r?i.current=R$((()=>{var e;null===(e=o.current)||void 0===e||e.forceAlign(),i.current=null})):n(),n)),[r,e.title]),yy.createElement(e5,Object.assign({ref:Hs(o,t)},e))})),j6=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},vQ(e)),{position:"relative",height:r,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+2*e.handleLineWidth,height:e.handleSize+2*e.handleLineWidth,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${e.motionDurationMid},\n inset-block-start ${e.motionDurationMid},\n width ${e.motionDurationMid},\n height ${e.motionDurationMid},\n box-shadow ${e.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+2*e.handleLineWidthHover,height:e.handleSizeHover+2*e.handleLineWidthHover},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.handleActiveColor}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new U$(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},P6=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i}=e,a=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart",u=(3*r-o)/2,d=(o-r)/2;return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[a]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-track-draggable`]:Object.assign({},t?{borderWidth:`${d}px 0`,transform:`translateY(-${d}px)`}:{borderWidth:`0 ${d}px`,transform:`translateX(-${d}px)`}),[`${n}-handle`]:{[l]:u},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:3*r+(t?0:e.marginFull),[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-i)/2}}},T6=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},P6(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},I6=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},P6(e,!1)),{height:"100%"})}},A6=Ml("Slider",(e=>{const t=Rl(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[j6(t),T6(t),I6(t)]}),(e=>{const t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:e.colorPrimary,dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}}));fA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r"number"==typeof e?e.toString():"",F6=rJ.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:p}=e,f=fA(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:g,getPrefixCls:m,getPopupContainer:b}=rJ.useContext(mQ),y=rJ.useContext(PQ),v=null!=s?s:y,[w,x]=rJ.useState({}),S=(e,t)=>{x((n=>Object.assign(Object.assign({},n),{[e]:t})))},E=(e,t)=>e||(t?"rtl"===h?"left":"right":"top"),C=m("slider",n),[k,O]=A6(C),D=zJ(o,null==g?void 0:g.className,i,{[`${C}-rtl`]:"rtl"===h},O);"rtl"!==h||f.vertical||(f.reverse=!f.reverse);const[$,_]=rJ.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),N=Object.assign(Object.assign({},null==g?void 0:g.style),a);return k(rJ.createElement(pA,Object.assign({},f,{step:f.step,range:$,draggableTrack:_,className:D,style:N,disabled:v,ref:t,prefixCls:C,handleRender:(t,n)=>{var r;const{index:o,dragging:i}=n,{tooltip:a={},vertical:s}=e,f=Object.assign({},a),{open:h,placement:g,getPopupContainer:y,prefixCls:v,formatter:x}=f;let k;k=x||null===x?x:c||null===c?c:R6;const O=null!==(r=null!=h?h:u)&&void 0!==r?r:void 0===h&&!!k&&(w[o]||i),D=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>S(o,!0),onMouseLeave:()=>S(o,!1)}),$=m("tooltip",null!=v?v:l);return rJ.createElement(N6,Object.assign({},f,{prefixCls:$,title:k?k(n.value):"",open:O,placement:E(null!=g?g:p,s),key:o,overlayClassName:`${C}-tooltip`,getPopupContainer:y||d||b}),rJ.cloneElement(t,D))}})))}));hA=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],gA=yy.forwardRef((function(e,t){function n(e,t){var n=y;return c||(v(n=e),null==h||h(n,t)),n}var r,o=e.prefixCls,i=void 0===o?"rc-switch":o,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,p=e.unCheckedChildren,f=e.onClick,h=e.onChange,g=e.onKeyDown,m=Oi(e,hA),b=Ua(Al(!1,{value:s,defaultValue:l}),2),y=b[0],v=b[1],w=zJ(i,a,(ki(r={},"".concat(i,"-checked"),y),ki(r,"".concat(i,"-disabled"),c),r));return yy.createElement("button",fa({},m,{type:"button",role:"switch","aria-checked":y,disabled:c,className:w,ref:t,onKeyDown:function(e){e.which===V_.LEFT?n(!1,e):e.which===V_.RIGHT&&n(!0,e),null==g||g(e)},onClick:function(e){var t=n(!y,e);null==f||f(t,e)}}),u,yy.createElement("span",{className:"".concat(i,"-inner")},yy.createElement("span",{className:"".concat(i,"-inner-checked")},d),yy.createElement("span",{className:"".concat(i,"-inner-unchecked")},p)))})),gA.displayName="Switch";const M6=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s}=e,l=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${s+2*r}px + ${2*a}px)`},[`${l}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:(s-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${s+2*r}px - ${2*a}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${s+r}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},L6=e=>{const{componentCls:t,handleSize:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(n-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},B6=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:i,handleSize:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a/2,boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${a+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},z6=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a}=e,s=`${t}-inner`;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"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${a+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${a+2*r}px + ${2*i}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${a+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${a+2*r}px - ${2*i}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:2*r,marginInlineEnd:2*-r}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:2*-r,marginInlineEnd:2*r}}}}}},H6=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vQ(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${n}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),EQ(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"}})}},U6=Ml("Switch",(e=>{const t=Rl(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[H6(t),z6(t),B6(t),L6(t),M6(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new U$("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));mA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l}=e,c=mA(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:p}=yy.useContext(mQ),f=yy.useContext(PQ),h=(null!=o?o:f)||i,g=u("switch",n),m=yy.createElement("div",{className:`${g}-handle`},i&&yy.createElement(pZ,{className:`${g}-loading-icon`})),[b,y]=U6(g),v=AZ(r),w=zJ(null==p?void 0:p.className,{[`${g}-small`]:"small"===v,[`${g}-loading`]:i,[`${g}-rtl`]:"rtl"===d},a,s,y),x=Object.assign(Object.assign({},null==p?void 0:p.style),l);return b(yy.createElement(IZ,{component:"Switch"},yy.createElement(gA,Object.assign({},c,{prefixCls:g,className:w,style:x,disabled:h,ref:t,loadingIcon:m}))))}));W6.__ANT_SWITCH=!0;const G6=W6,V6=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return Rl(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},q6=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText}),X6=Ml("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,i=r-n,a=t-n;return{[o]:Object.assign(Object.assign({},vQ(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(V6(e))),q6);bA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r(e=>Ll(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(V6(e))),q6),Y6=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},J6=$Q(["Tag","status"],(e=>{const t=V6(e);return[Y6(t,"success","Success"),Y6(t,"processing","Info"),Y6(t,"error","Error"),Y6(t,"warning","Warning")]}),q6);yA=globalThis&&globalThis.__rest||function(e,t){var n,r,o={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,n=Object.getOwnPropertySymbols(e);r{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:p=!0}=e,f=yA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:g,tag:m}=yy.useContext(mQ),[b,y]=yy.useState(!0);yy.useEffect((()=>{"visible"in f&&y(f.visible)}),[f.visible]);const v=Dd(l),w=function(e){return Q2.includes(e)}(l),x=v||w,S=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},null==m?void 0:m.style),i),E=h("tag",n),[C,k]=X6(E),O=zJ(E,null==m?void 0:m.className,{[`${E}-${l}`]:x,[`${E}-has-color`]:l&&!x,[`${E}-hidden`]:!b,[`${E}-rtl`]:"rtl"===g,[`${E}-borderless`]:!p},r,o,k),D=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||y(!1)},[,$]=Hc(d,u,(e=>null===e?yy.createElement(QQ,{className:`${E}-close-icon`,onClick:D}):yy.createElement("span",{className:`${E}-close-icon`,onClick:D},e)),null,!1),_="function"==typeof f.onClick||a&&"a"===a.type,N=s||null,j=N?yy.createElement(yy.Fragment,null,N,a&&yy.createElement("span",null,a)):a,P=yy.createElement("span",Object.assign({},f,{ref:t,className:O,style:S}),j,$,v&&yy.createElement(K6,{key:"preset",prefixCls:E}),w&&yy.createElement(J6,{key:"status",prefixCls:E}));return C(_?yy.createElement(IZ,{component:"Tag"},P):P)},Z6=yy.forwardRef(Q6);Z6.CheckableTag=e=>{const{prefixCls:t,style:n,className:r,checked:o,onChange:i,onClick:a}=e,s=bA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:l,tag:c}=yy.useContext(mQ),u=l("tag",t),[d,p]=X6(u),f=zJ(u,`${u}-checkable`,{[`${u}-checkable-checked`]:o},null==c?void 0:c.className,r,p);return d(yy.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==c?void 0:c.style),className:f,onClick:e=>{null==i||i(!o),null==a||a(e)}})))};const e8=Z6,t8=(e,t)=>new U$(e).setAlpha(t).toRgbString(),n8=(e,t)=>new U$(e).lighten(t).toHexString(),r8=e=>{const t=kl(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]}},o8=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:t8(r,.85),colorTextSecondary:t8(r,.65),colorTextTertiary:t8(r,.45),colorTextQuaternary:t8(r,.25),colorFill:t8(r,.18),colorFillSecondary:t8(r,.12),colorFillTertiary:t8(r,.08),colorFillQuaternary:t8(r,.04),colorBgElevated:n8(n,12),colorBgContainer:n8(n,8),colorBgLayout:n8(n,0),colorBgSpotlight:n8(n,26),colorBorder:n8(n,26),colorBorderSecondary:n8(n,19)}},i8={defaultConfig:pQ,defaultSeed:pQ.token,useToken:function(){const[e,t,n]=jl();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Dl,darkAlgorithm:(e,t)=>{const n=Object.keys(rQ).map((t=>{const n=kl(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)=>Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:Dl(e);return Object.assign(Object.assign(Object.assign({},r),n),Ol(e,{generateColorPalettes:r8,generateNeutralColorPalettes:o8}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:Dl(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)),uQ(r)),{controlHeight:o}),nQ(Object.assign(Object.assign({},n),{controlHeight:o})))},getDesignToken:e=>{const t=Wa((null==e?void 0:e.algorithm)?e.algorithm:Dl),n=Object.assign(Object.assign({},oQ),null==e?void 0:e.token);return aD(n,{override:null==e?void 0:e.token},t,Nl)}};vA=function(){return i8.useToken().token},SA=yy.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(xA=(wA=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}})("dark"))&&void 0!==xA&&xA.matches?"dark":"light"}),EA=function(){return yy.useContext(SA)},CA=function(){var e=vA(),t=EA(),n=t.appearance,r=t.isDarkMode;return yy.useMemo((function(){return FD(RD({token:e,css:Kk,appearance:n,isDarkMode:r}))}),[e,n,r])},kA=function(){var e=vA(),t=CA();return yy.useMemo((function(){return bf(bf({},e),{},{stylish:t})}),[e,t])},OA=function(e){return vf(vf({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},DA=function(){var e=function(e){let t=!(arguments.length>0&&void 0!==e)||e;const n=yy.useRef({}),r=function(){const[,e]=yy.useReducer((e=>e+1),0);return e}(),o=Sd();return QO((()=>{const e=o.subscribe((e=>{n.current=e,t&&r()}));return()=>o.unsubscribe(e)}),[]),n.current}();return yy.useMemo((function(){return OA(e)}),[e])},$A=function(){var e=vA(),t={xs:"@media (max-width: ".concat(e.screenXSMax,"px)"),sm:"@media (max-width: ".concat(e.screenSMMax,"px)"),md:"@media (max-width: ".concat(e.screenMDMax,"px)"),lg:"@media (max-width: ".concat(e.screenLGMax,"px)"),xl:"@media (max-width: ".concat(e.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(e.screenXXLMin,"px)")};return yy.useMemo((function(){return OA(t)}),[e])},_A=function(e,t){return Object.entries(e).map((function(e){var n=Ua(e,2),r=n[0],o=n[1],i=o;return Uk(o)||(i=Kk(o)),t[r]?"".concat(t[r]," {").concat(i.styles,"}"):""})).join("")},NA=["stylish","appearance","isDarkMode","prefixCls"],jA=["prefixCls"],PA=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(s){var l=n(),c=yy.useContext(r),u=Xk(c.cache,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),d=u.cx,p=u.css,f=$A(),h=yy.useMemo((function(){var t,n,r,o,c,u,h;return e instanceof Function?(n=l.stylish,r=l.appearance,o=l.isDarkMode,c=l.prefixCls,u=Oi(l,NA),h=function(e){return _A(e,f)},Object.assign(h,f),t=e({token:u,stylish:n,appearance:r,isDarkMode:o,prefixCls:c,cx:d,css:Kk,responsive:h},s)):t=e,"object"===Ei(t)&&(t=Uk(t)?p(t):Object.fromEntries(Object.entries(t).map((function(e){var t=Ua(e,2),n=t[0],r=t[1],o=a?"".concat(i,"-").concat(n):void 0;return"object"===Ei(r)?a?[n,p(r,"label:".concat(o))]:[n,p(r)]:[n,r]})))),t}),[s,l]);return yy.useMemo((function(){var e=l.prefixCls,t=Oi(l,jA);return{styles:h,cx:d,theme:t,prefixCls:e}}),[h,l])}}},TA=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return ky.jsx(t.Provider,{value:e.theme,children:e.children})}},IA=DO,AA=CO,RA=function(e){if(!e.ThemeContext)throw"ThemeContext is required. Please check your config.";AA=e.ThemeContext,IA=TA(e)};const a8=yy.memo((function(e){var t,n=e.children,r=e.theme,o=e.prefixCls,i=e.getStaticInstance,a=e.staticInstanceConfig,s=EA(),l=s.appearance,c=s.isDarkMode,u=Ua(h6.useMessage(null==a?void 0:a.message),2),d=u[0],p=u[1],f=Ua(k6.useNotification(null==a?void 0:a.notification),2),h=f[0],g=f[1],m=Ua(b6.useModal(),2),b=m[0],y=m[1];return yy.useEffect((function(){null==i||i({message:d,modal:b,notification:h})}),[]),t=yy.useMemo((function(){var e,t=c?i8.darkAlgorithm:i8.defaultAlgorithm,n=r;return"function"==typeof r&&(n=r(l)),n?(e=n.algorithm?n.algorithm instanceof Array?n.algorithm:[n.algorithm]:[],xf(xf({},n),{},{algorithm:n.algorithm?[t].concat(xa(e)):t})):{algorithm:t}}),[r,c]),ky.jsxs(WQ,{prefixCls:o,theme:t,children:[p,g,y,n]})}));FA=function(e){"function"==typeof yy.startTransition?yy.startTransition(e):e()},LA=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){wA("dark").matches?n("dark"):n("light")},i=function(){wA("dark").matches?r("dark"):r("light")};return yy.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),MA||(MA=wA("dark")),MA.addEventListener("change",o),function(){MA.removeEventListener("change",o)};FA((function(){n(t)}))}),[t]),yy.useLayoutEffect((function(){return MA||(MA=wA("dark")),MA.addEventListener("change",i),function(){MA.removeEventListener("change",i)}}),[]),null};const s8=yy.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,i=e.onAppearanceChange,a=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,d=Ua(Ef("light",{value:a,defaultValue:null!=s?s:c.themeMode,onChange:function(e){return null==l?void 0:l(e)}}),2),p=d[0],f=d[1],h=Ua(Ef("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==i?void 0:i(e)}}),2),g=h[0],m=h[1],b=Ua(yy.useState(null!==(t=wA("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=b[0],v=b[1],w=Ua(yy.useState(!1),2),x=w[0],S=w[1];return yy.useEffect((function(){FA((function(){S(!0)}))}),[]),ky.jsxs(SA.Provider,{value:{themeMode:p,setThemeMode:f,appearance:g,setAppearance:m,isDarkMode:"dark"===g,browserPrefers:y},children:[x&&ky.jsx(LA,{themeMode:p,setAppearance:m,setBrowserPrefers:v}),n]})}));BA=["stylish"];const l8=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,i=e.prefixCls,a=void 0===i?"ant":i,s=e.StyledThemeProvider,l=EA(),c=l.appearance,u=l.isDarkMode,d=kA(),p=d.stylish,f=Oi(d,BA),h=yy.useMemo((function(){return r?r instanceof Function?r({token:f,appearance:c,isDarkMode:u}):r:{}}),[r,f,c]),g=yy.useMemo((function(){return kf(kf({},h),n instanceof Function?n({token:f,appearance:c,isDarkMode:u}):n)}),[h,n,f,c]),m=yy.useMemo((function(){return o?o({token:kf(kf({},f),g),stylish:p,appearance:c,isDarkMode:u,css:Kk}):{}}),[o,f,g,p,c]),b=yy.useMemo((function(){return kf(kf({},m),p)}),[m,p]),y=kf(kf(kf(kf({},f),g),{},{stylish:b},l),{},{prefixCls:a});return ky.jsx(s,{theme:y,children:t})};zA=function(e){var t=e.styledConfig?TA(e.styledConfig):void 0,n=e.StyleEngineContext;return yy.memo((function(r){var o=r.children,i=r.customToken,a=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,d=r.appearance,p=r.defaultAppearance,f=r.onAppearanceChange,h=r.themeMode,g=r.defaultThemeMode,m=r.onThemeModeChange,b=r.styled,y=yy.useContext(n),v=y.prefixCls,w=y.StyledThemeContext,x=y.CustomThemeContext,S=yy.useContext(x),E=b?TA(b):t||IA,C=c||v;return ky.jsx(n.Provider,{value:{prefixCls:C,StyledThemeContext:(null==b?void 0:b.ThemeContext)||w||AA,CustomThemeContext:x},children:ky.jsx(s8,{themeMode:h,defaultThemeMode:g,onThemeModeChange:m,defaultAppearance:p,appearance:d,onAppearanceChange:f,useTheme:e.useTheme,children:ky.jsx(a8,{prefixCls:C,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:ky.jsx(l8,{prefixCls:C,customToken:i,defaultCustomToken:S,customStylish:a,StyledThemeProvider:E,children:o})})})})}))},HA=function(e){return function(){var t=yy.useContext(e.StyleEngineContext),n=t.StyledThemeContext,r=t.CustomThemeContext,o=t.prefixCls,i=kA(),a=EA(),s=yy.useContext(r),l=yy.useContext(null!=n?n:AA)||{},c=yy.useMemo((function(){return Df(Df(Df(Df({},i),a),s),{},{prefixCls:o||"ant"})}),[i,a,o,s]);return l&&0!==Object.keys(l).length?l:c}},UA=new Lk,"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=UA),VA=(vY={key:"acss",speedy:!1},jY=_f(_f({},vY),{},{key:null!==(wY=vY.key)&&void 0!==wY?wY:"zcss",speedy:null!==(xY=vY.speedy)&&void 0!==xY&&xY}),PY=Tk({key:jY.key,speedy:jY.speedy,container:jY.container}),TY=Yk(PY),IY=AD(TY),PY.cache=UA.add(PY.cache),EY=null===(SY=jY.styled)||void 0===SY?void 0:SY.ThemeContext,kY=HA({StyleEngineContext:CY=yy.createContext({CustomThemeContext:yy.createContext(jY.customToken?jY.customToken:{}),StyledThemeContext:EY,prefixCls:null==jY?void 0:jY.prefixCls})}),OY=PA({hashPriority:jY.hashPriority,useTheme:kY,EmotionContext:TY}),DY=_O(kY),$Y=NO(OY),_Y=zA({styledConfig:jY.styled,StyleEngineContext:CY,useTheme:kY}),NY=Xk(PY.cache,{hashPriority:jY.hashPriority}),WA={createStyles:OY,createGlobalStyle:DY,createStylish:$Y,css:Kk,cx:NY.cx,keyframes:PY.keyframes,injectGlobal:PY.injectGlobal,styleManager:PY,useTheme:kY,StyleProvider:IY,ThemeProvider:_Y}).createGlobalStyle,qA=WA.css,XA=WA.cx,KA=WA.keyframes,YA=WA.ThemeProvider,JA=WA.StyleProvider,QA=WA.useTheme,tR=(GA=WA.createStyles)((function(e){var t=e.css,n=KA(ZA||(ZA=Di(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(eR||(eR=Di(["\n animation: "," 1s linear infinite;\n "])),n)}})),nR=["icon","size","color","fill","className","spin"],rR=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}};const c8=yy.memo((function(e){var t=e.icon,n=e.size,r=e.color,o=e.fill,i=e.className,a=e.spin,s=Oi(e,nR),l=tR(),c=l.styles,u=l.cx,d=t,p=yy.useMemo((function(){return rR(n)}),[n]),f=p.fontSize,h=p.strokeWidth;return ky.jsx("span",jf(jf({className:u("anticon",a&&c.spin,i),role:"img"},s),{},{children:ky.jsx(d,{color:r,fill:null!=o?o:"transparent",focusable:!1,height:f,size:f,strokeWidth:h,width:f})}))}));iR=GA((function(e,t){var n,r,o=e.token,i=e.isDarkMode,a=t.offset,s=(null!==(n=null==a?void 0:a.x)&&void 0!==n?n:0)+"px",l=(null!==(r=null==a?void 0:a.y)&&void 0!==r?r:0)+"px",c=t.outside?"0":".1",u=t.size+"px";return(0,e.css)(oR||(oR=Di(["\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 "])),c,u,s,l,i?o.colorText:"#fff",i?"transparent":o.colorTextQuaternary)})),aR=["className","size"],sR=function(){var e=Ua(yy.useState(),2),t=e[0],n=e[1],r=Ua(yy.useState(!0),2),o=r[0],i=r[1],a=yy.useRef();return yy.useEffect((function(){var e,t,r;if(a.current&&a.current.parentElement)return t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),i(!1)},r=function(){i(!0)},(e=a.current.parentElement).addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}),[]),[t,o,a]};const u8=yy.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Oi(e,aR),i=Ua(sR(),3),a=i[2],s=iR({offset:i[0],outside:i[1],size:r});return ky.jsx("div",function(e){var t,n;for(t=1;ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0,r=Array(i);++o-1},fM=function(e,t){var n=this.__data__,r=cM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},fh.prototype.clear=function(){this.__data__=[],this.size=0},fh.prototype.delete=uM,fh.prototype.get=dM,fh.prototype.has=pM,fh.prototype.set=fM,gM=hM=fh,mM=function(){this.__data__=new gM,this.size=0},bM=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},yM=function(e){return this.__data__.get(e)},vM=function(e){return this.__data__.has(e)},wM=JF,xM=RF,SM=function(e){if(!xM(e))return!1;var t=wM(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},nY=/[^.]+$/.exec((EM=LF["__core-js_shared__"])&&EM.keys&&EM.keys.IE_PROTO||""),CM=nY?"Symbol(src)_1."+nY:"",kM=Function.prototype.toString,DM=SM,$M=function(e){return!!CM&&CM in e},_M=RF,NM=OM=function(e){if(null!=e){try{return kM.call(e)}catch(fY){}try{return e+""}catch(fY){}}return""},jM=/[\\^$.*+?()[\]{}|]/g,PM=/^\[object .+?Constructor\]$/,TM=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(jM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),IM=function(e,t){return null==e?void 0:e[t]},AM=function(e){return!(!_M(e)||$M(e))&&(DM(e)?TM:PM).test(NM(e))},RM=IM,FM=function(e,t){var n=RM(e,t);return AM(n)?n:void 0},MM=FM(LF,"Map"),LM=FM(Object,"create"),zM=BM=LM,HM=BM,UM=Object.prototype.hasOwnProperty,WM=BM,GM=Object.prototype.hasOwnProperty,VM=BM,qM=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},XM=function(e){var t,n=this.__data__;return HM?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:UM.call(n,e)?n[e]:void 0},KM=function(e){var t=this.__data__;return WM?void 0!==t[e]:GM.call(t,e)},YM=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=VM&&void 0===t?"__lodash_hash_undefined__":t,this},hh.prototype.clear=function(){this.__data__=zM?zM(null):{},this.size=0},hh.prototype.delete=qM,hh.prototype.get=XM,hh.prototype.has=KM,hh.prototype.set=YM,JM=hh,QM=hM,ZM=MM,eL=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},nL=tL=function(e,t){var n=e.__data__;return eL(t)?n["string"==typeof t?"string":"hash"]:n.map},rL=tL,oL=tL,iL=tL,aL=function(e){var t=nL(this,e).delete(e);return this.size-=t?1:0,t},sL=function(e){return rL(this,e).get(e)},lL=function(e){return oL(this,e).has(e)},cL=function(e,t){var n=iL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},gh.prototype.clear=function(){this.size=0,this.__data__={hash:new JM,map:new(ZM||QM),string:new JM}},gh.prototype.delete=aL,gh.prototype.get=sL,gh.prototype.has=lL,gh.prototype.set=cL,dL=hM,pL=MM,fL=uL=gh,hL=hM,gL=bM,mL=yM,bL=vM,yL=function(e,t){var n,r=this.__data__;if(r instanceof dL){if(n=r.__data__,!pL||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new fL(n)}return r.set(e,t),this.size=r.size,this},mh.prototype.clear=mM,mh.prototype.delete=gL,mh.prototype.get=mL,mh.prototype.has=bL,mh.prototype.set=yL,vL=mh,wL=uL,xL=function(e){return this.__data__.has(e)},bh.prototype.add=bh.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},bh.prototype.has=xL,CL=SL=bh,kL=function(e,t){for(var n=-1,r=null==e?0:e.length;++ng))return!1;if(a=i.get(e),s=i.get(t),a&&s)return a==t&&s==e;for(l=-1,c=!0,u=2&n?new CL:void 0,i.set(e,t),i.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},cB=QF,(uB={})["[object Float32Array]"]=uB["[object Float64Array]"]=uB["[object Int8Array]"]=uB["[object Int16Array]"]=uB["[object Int32Array]"]=uB["[object Uint8Array]"]=uB["[object Uint8ClampedArray]"]=uB["[object Uint16Array]"]=uB["[object Uint32Array]"]=!0,uB["[object Arguments]"]=uB["[object Array]"]=uB["[object ArrayBuffer]"]=uB["[object Boolean]"]=uB["[object DataView]"]=uB["[object Date]"]=uB["[object Error]"]=uB["[object Function]"]=uB["[object Map]"]=uB["[object Number]"]=uB["[object Object]"]=uB["[object RegExp]"]=uB["[object Set]"]=uB["[object String]"]=uB["[object WeakMap]"]=!1,dB=function(e){return cB(e)&&lB(e.length)&&!!uB[sB(e)]},pB=function(e){return function(t){return e(t)}},function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&FF.process,i=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(fY){}}();e.exports=i}(fB={exports:{}},fB.exports),hB=dB,bB=(mB=(gB=fB.exports)&&gB.isTypedArray)?pB(mB):hB,vB=qL,wB=tB,xB=ML,SB=rB,EB=iB,CB=yB=bB,kB=Object.prototype.hasOwnProperty,OB=function(e,t){var n,r=xB(e),o=!r&&wB(e),i=!r&&!o&&SB(e),a=!r&&!o&&!i&&CB(e),s=r||o||i||a,l=s?vB(e.length,String):[],c=l.length;for(n in e)!t&&!kB.call(e,n)||s&&("length"==n||i&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||EB(n,c))||l.push(n);return l},DB=Object.prototype,$B=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||DB)},AY=Object.keys,RY=Object,_B=$B,NB=function(e){return AY(RY(e))},jB=Object.prototype.hasOwnProperty,PB=function(e){var t,n;if(!_B(e))return NB(e);for(n in t=[],Object(e))jB.call(e,n)&&"constructor"!=n&&t.push(n);return t},TB=SM,IB=aB,AB=OB,RB=PB,FB=function(e){return null!=e&&IB(e.length)&&!TB(e)},MB=function(e){return FB(e)?AB(e):RB(e)},LB=zL,BB=VL,zB=MB,HB=function(e){return LB(e,zB,BB)},UB=HB,WB=Object.prototype.hasOwnProperty,GB=function(e,t,n,r,o,i){var a,s,l,c,u,d,p,f,h,g,m,b=1&n,y=UB(e),v=y.length;if(v!=UB(t).length&&!b)return!1;for(a=v;a--;)if(s=y[a],!(b?s in t:WB.call(t,s)))return!1;if(l=i.get(e),c=i.get(t),l&&c)return l==t&&c==e;for(u=!0,i.set(e,t),i.set(t,e),d=b;++a .ant-menu-item-only-child,\n .ant-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .ant-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .ant-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .ant-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .ant-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 .ant-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .ant-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 "])),n.colorText,n.colorFill,n.colorText,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFillSecondary,n.colorFillSecondary,n.borderRadius,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),qz=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];const $8=yy.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,i=e.setOpened,a=e.className,s=e.headerHeight,l=void 0===s?64:s,c=Oi(e,qz),u=Vz(l),d=u.styles;return ky.jsxs(D8,Dh(Dh({className:(0,u.cx)(d.container,a),onClick:function(){i(!o)}},c),{},{children:[ky.jsx(p8,{icon:o?AJ:CJ,size:"site"}),ky.jsxs(C3,{bodyStyle:{padding:0},className:d.drawer,closeIcon:void 0,headerStyle:{display:"none"},open:o,placement:"left",rootClassName:d.drawerRoot,width:"100vw",children:[ky.jsx(C5,{className:d.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),ky.jsx("div",{className:d.fillRect})]})]}))}));Xz=["icon","children","size"],Jz=GA((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(Kz||(Kz=Di(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(Yz||(Yz=Di(["\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))}}));const _8=yy.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,i=Oi(e,Xz),a=Jz(),s=a.styles;return ky.jsx(e8,_h(_h({bordered:!1,className:(0,a.cx)(s.tag,"small"===o&&s.small)},i),{},{children:ky.jsxs(Bz,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}));Qz={exports:{}},Zz={},eH=yy,tH="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},nH=eH.useState,rH=eH.useEffect,oH=eH.useLayoutEffect,iH=eH.useDebugValue,aH="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=nH({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return oH((function(){o.value=n,o.getSnapshot=t,Nh(o)&&i({inst:o})}),[e,n,t]),rH((function(){return Nh(o)&&i({inst:o}),e((function(){Nh(o)&&i({inst:o})}))}),[e]),iH(n),n},Zz.useSyncExternalStore=void 0!==eH.useSyncExternalStore?eH.useSyncExternalStore:aH,Qz.exports=Zz,sH=Qz.exports,lH={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"]}},cH=globalThis&&globalThis.__extends||(cY=function(e,t){return(cY=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])})(e,t)},function(e,t){function n(){this.constructor=e}cY(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),uH=globalThis&&globalThis.__assign||function(){return uH=Object.assign||function(e){var t,n,r,o;for(n=1,r=arguments.length;n div {\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 "])),n.motionEaseOut,n.colorTextTertiary,n.colorFillTertiary,n.colorBorderSecondary,n.motionEaseOut,n.colorTextSecondary,n.colorFillSecondary,n.colorText,n.colorFill),i=qA(TH||(TH=Di(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:XA(i,qA(IH||(IH=Di(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:XA("".concat(QH,"-bottom-handle"),qA(AH||(AH=Di(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:XA(QH,qA(RH||(RH=Di(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,QH)),fixed:qA(FH||(FH=Di(["\n position: relative;\n "]))),fullscreen:qA(MH||(MH=Di(["\n position: absolute;\n inset: ","px 0 0 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),t,t,n.colorBgLayout),handlerIcon:qA(LH||(LH=Di(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:XA(i,qA(BH||(BH=Di(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:XA(qA(zH||(zH=Di(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(QH,"-left-handle")),panel:XA("".concat(QH,"-fixed"),qA(HH||(HH=Di(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:XA(i,qA(UH||(UH=Di(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:XA(qA(WH||(WH=Di(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(QH,"-right-handle")),toggleBottom:XA("".concat(QH,"-toggle"),"".concat(QH,"-toggle-bottom"),o,qA(GH||(GH=Di(["\n bottom: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: 16px;\n margin-left: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,JH,40)),toggleLeft:XA("".concat(QH,"-toggle"),"".concat(QH,"-toggle-left"),o,qA(VH||(VH=Di(["\n left: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,JH,JH,40)),toggleRight:XA("".concat(QH,"-toggle"),"".concat(QH,"-toggle-right"),o,qA(qH||(qH=Di(["\n right: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n top: 50%;\n\n width: ","px;\n height: ","px;\n margin-top: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,JH,JH,40)),toggleTop:XA("".concat(QH,"-toggle"),"".concat(QH,"-toggle-top"),o,qA(XH||(XH=Di(["\n top: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n left: 50%;\n\n width: ","px;\n height: ","px;\n margin-left: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,JH,40,JH)),topFloat:XA(i,qA(KH||(KH=Di(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:XA("".concat(QH,"-top-handle"),qA(YH||(YH=Di(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),eU=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};const N8=yy.memo((function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D=e.headerHeight,$=void 0===D?0:D,_=e.fullscreen,N=e.maxHeight,j=e.pin,P=void 0===j||j,T=e.mode,I=void 0===T?"fixed":T,A=e.children,R=e.placement,F=void 0===R?"right":R,M=e.resize,L=e.style,B=e.size,z=e.defaultSize,H=e.minWidth,U=e.minHeight,W=e.maxWidth,G=e.onSizeChange,V=e.onSizeDragging,q=e.expandable,X=void 0===q||q,K=e.expand,Y=e.defaultExpand,J=void 0===Y||Y,Q=e.onExpandChange,Z=e.className,ee=e.showHandlerWhenUnexpand,te=e.destroyOnClose,ne=e.hanlderStyle,re=e.classNames,oe=void 0===re?{}:re,ie=yy.useRef(),ae=(b=ie,v=(y={}).onEnter,w=y.onLeave,x=y.onChange,S=lh(function(e){var t,n,r,o;return void 0===e&&(e=!1),t=lh(function(e){var t,n;return void 0===e&&(e=!1),t=lh(yy.useState(e),2),n=t[1],[t[0],yy.useMemo((function(){var t=!e;return{toggle:function(){return n((function(n){return n===e?t:e}))},set:function(e){return n(e)},setLeft:function(){return n(e)},setRight:function(){return n(t)}}}),[])]}(!!e),2),r=(n=t[1]).toggle,o=n.set,[t[0],yy.useMemo((function(){return{toggle:r,set:function(e){return o(!!e)},setTrue:function(){return o(!0)},setFalse:function(){return o(!1)}}}),[])]}(!1),2),E=S[0],k=(C=S[1]).setTrue,O=C.setFalse,yh("mouseenter",(function(){null==v||v(),k(),null==x||x(!0)}),{target:b}),yh("mouseleave",(function(){null==w||w(),O(),null==x||x(!1)}),{target:b}),E),se="top"===F||"bottom"===F,le=ZH($),ce=le.styles,ue=le.cx,de=Ua(Ef(J,{onChange:Q,value:K}),2),pe=de[0],fe=de[1];return yy.useEffect((function(){P||(ae&&!pe?fe(!0):!ae&&pe&&fe(!1))}),[P,ae,pe]),n=(t=Ua(yy.useState(!0),2))[0],r=t[1],i=(o=Ua(yy.useState(!1),2))[0],a=o[1],l=yy.useMemo((function(){return s?ki({},eU(F),ce["".concat(eU(F),"Handle")]):{}}),[s=!1!==M&&pe,F]),c=Ph(ki({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},eU(F),!0),M),u=yy.useMemo((function(){return Ph(se?{height:180,width:"100%"}:{height:"100%",width:280},z)}),[se]),d=pe?{defaultSize:u,maxHeight:"number"==typeof N?Math.max(N,0):N,maxWidth:"number"==typeof W?Math.max(W,0):W,minHeight:"number"==typeof U?Math.max(U,0):U,minWidth:"number"==typeof H?Math.max(H,0):H,size:B}:se?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},f=(p=yy.useMemo((function(){switch(F){case"top":return{Arrow:hJ,className:"Bottom"};case"bottom":return{Arrow:bJ,className:"Top"};case"right":return{Arrow:gJ,className:"Left"};case"left":return{Arrow:mJ,className:"Right"}}}),[ce,F])).Arrow,g=ky.jsx(D8,{className:ue(ce["toggle".concat(h=p.className)],oe.handle),style:{opacity:pe?P?void 0:0:ee?1:0},children:ky.jsx(D8,{onClick:function(){fe(!pe)},style:ne,children:ky.jsx("div",{className:ce.handlerIcon,style:{transform:"rotate(".concat(pe?180:0,"deg)")},children:ky.jsx(f,{size:16,strokeWidth:1.5})})})}),m=ky.jsx(NH,Ph(Ph({},d),{},{className:ue(ce.panel,oe.content),enable:s?c:void 0,handleClasses:l,onResize:function(e,t,n,r){null==V||V(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){a(!0),r(!1)},onResizeStop:function(e,t,n,o){a(!1),r(!0),null==G||G(o,{height:n.style.height,width:n.style.width})},style:Ph({transition:i?"unset":void 0},L),children:A})),_?ky.jsx("div",{className:ue(ce.fullscreen,Z),children:A}):ky.jsxs("aside",{className:ue(ce.container,ce["fixed"===I?"fixed":"".concat(F,"Float")],Z),ref:ie,style:pe?ki({},"border".concat(h,"Width"),1):{},children:[X&&n&&g,te?pe&&m:m]})}));iU=GA((function(e){var t=e.css,n=e.token;return{body:t(tU||(tU=Di(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(nU||(nU=Di(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(rU||(rU=Di(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n\n padding: 8px 16px;\n\n border-top: 1px solid ",";\n "])),n.colorBorderSecondary),header:t(oU||(oU=Di(["\n display: flex;\n flex: 0;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding: 8px 16px;\n\n font-weight: 500;\n\n border-bottom: 1px solid ",";\n "])),n.colorBorderSecondary)}})),aU=["className","children"];const j8=yy.memo((function(e){var t=e.className,n=e.children,r=Oi(e,aU),o=iU();return ky.jsx("div",Ih(Ih({className:(0,o.cx)(o.styles.body,t)},r),{},{children:n}))}));sU=["className","children"];const P8=yy.memo((function(e){var t=e.className,n=e.children,r=Oi(e,sU),o=iU();return ky.jsx("div",Rh(Rh({className:(0,o.cx)(o.styles.container,t)},r),{},{children:n}))}));lU=["className","children"];const T8=yy.memo((function(e){var t=e.className,n=e.children,r=Oi(e,lU),o=iU();return ky.jsx("div",Mh(Mh({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));cU=["pin","setPin","className","setExpand","title","position"];const I8=yy.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,i=e.title,a=e.position,s=void 0===a?"left":a,l=Oi(e,cU),c=iU(),u=c.cx,d=c.styles,p=ky.jsx(p8,{icon:$J,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),f=ky.jsx(p8,{active:t,icon:t?jJ:NJ,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return ky.jsxs("div",Bh(Bh({className:u(d.header,r)},l),{},{children:["left"===s?p:f,i,"left"===s?f:p]}))}));uU=function e(t,n){var r,o,i,a;if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;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--;)if(!e(t[a=i[o]],n[a]))return!1;return!0}return t!=t&&n!=n};const A8=t(uU);dU=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t};const R8=yy.memo((function(e){var t=e.url;return yy.useEffect((function(){var e=dU(t);document.head.append(e)}),[]),!1}));pU=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,i=void 0===o?[]:o,a=e.style,s=e.className;return rJ.createElement("div",{className:zJ("".concat(t,"-column"),s),style:a},(r||n)&&rJ.createElement("h2",null,n&&rJ.createElement("span",{className:"".concat(t,"-column-icon")},n),r),i.map((function(e,n){var r=e.LinkComponent||"a";return rJ.createElement("div",{className:zJ("".concat(t,"-item"),e.className),style:e.style,key:n},rJ.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&&rJ.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&rJ.createElement(rJ.Fragment,null,rJ.createElement("span",{className:"".concat(t,"-item-separator")},"-"),rJ.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},fU=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],hU=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,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,d=void 0===u?"dark":u,p=Oi(e,fU),f=zJ("".concat(n),r,ki({},"".concat(n,"-").concat(d),!!d)),h="number"==typeof s&&s>0;return rJ.createElement("footer",Ea(Ea({},p),{},{className:f,style:Ea(Ea({},o),{},{backgroundColor:l})}),rJ.createElement("section",{className:"".concat(n,"-container")},a&&a.length>0&&rJ.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.className,a=e.items,l=void 0===a?[]:a,c=Ea({},e.style);return h&&(c.flex="0 0 ".concat(100/(s+1)+.1,"%")),rJ.createElement(pU,{key:t,prefixCls:n,title:r,icon:o,items:l,style:c,className:i})})))),i&&rJ.createElement("section",{className:"".concat(n,"-bottom")},rJ.createElement("div",{className:"".concat(n,"-bottom-container")},i)))},bU=GA((function(e,t){var n=e.css,r=e.responsive,o=e.token,i=t.isEmpty,a=t.contentMaxWidth,s="rc-footer";return{container:n(gU||(gU=Di(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-top: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,r.mobile),footer:n(mU||(mU=Di(["\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: left;\n\n h2 {\n position: relative;\n\n margin: 0 auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n top: -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: 12px 0;\n\n &-icon {\n position: relative;\n top: -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: 0 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin: 0 auto;\n padding: 16px 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-top-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: 40px 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-bottom: 40px;\n text-align: center;\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,s,o.colorTextTertiary,o.colorLinkHover,s,a,i?"0":"60px 0 20px",o.colorText,o.colorTextDescription,a,r.mobile,s)}}));const F8=yy.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,i=bU({contentMaxWidth:void 0===o?960:o,isEmpty:!t||0===(null==t?void 0:t.length)}).styles;return ky.jsx("section",{className:i.container,children:ky.jsx(hU,{bottom:n,className:i.footer,columns:t,theme:r})})}));OU=GA((function(e,t){var n,r=e.css,o=e.cx,i=e.token,a=e.isDarkMode,s=e.responsive;return{footer:r(yU||(yU=Di(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(vU||(vU=Di(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 6px;\n\n text-align: left;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .ant-tag {\n font-family: ",";\n }\n "])),i.colorTextDescription,i.fontFamilyCode),group:o(a&&r(wU||(wU=Di(["\n .ant-collapse-content {\n background: transparent;\n }\n\n .ant-collapse-header {\n background: ",";\n }\n "])),i.colorFillTertiary),r(xU||(xU=Di(["\n .ant-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .ant-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n .ant-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])))),icon:r(SU||(SU=Di(["\n transition: all 100ms ",";\n "])),i.motionEaseOut),item:r(EU||(EU=Di(["\n padding: 8px 0;\n\n .ant-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n\n .ant-form-item-required::before {\n align-self: flex-start;\n }\n\n ","\n\n "," {\n padding: 16px 0;\n\n .ant-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .ant-form-item-control {\n flex: 1;\n width: 100%;\n }\n }\n "])),t&&r(CU||(CU=Di(["\n .ant-form-item-control {\n width: ",";\n }\n "])),(n=t,"number"==typeof n||Ff(n)&&"[object Number]"==Rf(n)?"".concat(t,"px"):t)),s.mobile),title:r(kU||(kU=Di(["\n display: flex;\n gap: 8px;\n align-items: center;\n\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n "])),i.colorPrimary)}})),DU=["className","children"];const M8=yy.memo((function(e){var t=e.className,n=e.children,r=Oi(e,DU),o=OU();return ky.jsx("div",Hh(Hh({className:(0,o.cx)(o.styles.footer,t)},r),{},{children:n}))}));$U=["className","icon","title","children","extra"];const L8=yy.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,i=e.extra,a=Oi(e,$U),s=OU(),l=s.styles;return ky.jsx(W4,function(e){var t,n;for(t=1;t label {\n height: unset;\n }\n\n .ant-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .ant-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .ant-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .ant-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),n.borderRadius)}})),AU=["className","itemMinWidth","footer","form","items","children"],(RU=yy.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,i=e.form,a=e.items,s=e.children,l=Oi(e,AU),c=IU();return ky.jsxs(a6,Kh(Kh({className:(0,c.cx)(c.styles.form,n),colon:!1,form:i,layout:"horizontal",ref:t},l),{},{children:[null==a?void 0:a.map((function(e,t){return ky.jsx(L8,{extra:null==e?void 0:e.extra,icon:null==e?void 0:e.icon,title:e.title,children:e.children.filter((function(e){return!e.hidden})).map((function(e,t){return ky.jsx(H8,Kh({divider:0!==t,minWidth:r},e),t)}))},t)})),s,o&&ky.jsx(M8,{children:o})]}))}))).Item=H8,RU.Group=L8;const U8=RU;FU={};const W8=ky,G8=yy;LU=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:i,mapping:a,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:d,theme:p,lang:f,loading:h}){const[g,m]=G8.useState(!1);return G8.useEffect((()=>{g||(Promise.resolve().then((()=>(MU||(MU=1,function(t){function n(e,t,r=e,o){var i,a,s,l;if(t===Y)return t;let c=void 0!==o?null===(i=r._$Co)||void 0===i?void 0:i[o]:r._$Cl;const u=L(t)?void 0:t._$litDirective$;return(null==c?void 0:c.constructor)!==u&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===u?c=void 0:(c=new u(e),c._$AT(e,r,o)),void 0!==o?(null!==(s=(l=r)._$Co)&&void 0!==s?s:l._$Co=[])[o]=c:r._$Cl=c),void 0!==c&&(t=n(e,c._$AS(e,t.values),c,o)),t}function r(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):pe(e,t)}function i(e){void 0!==this._$AN?(ge(this),this._$AM=e,me(this)):this._$AM=e}function a(e,t=!1,n=0){const r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(let i=n;ie:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new v("string"==typeof e?e:e+"",void 0,b))(t)})(e):e,x=window,S=x.trustedTypes,E=S?S.emptyScript:"",C=x.reactiveElementPolyfillSupport,k={toAttribute(e,t){switch(t){case Boolean:e=e?E:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},O=(e,t)=>t!==e&&(t==t||e==e),D={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:O},$="finalized";let _=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,n)=>{const r=this._$Ep(n,t);void 0!==r&&(this._$Ev.set(r,n),e.push(r))})),e}static createProperty(e,t=D){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||D}static finalize(){if(this.hasOwnProperty($))return!1;this[$]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(w(e))}else void 0!==e&&t.push(w(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{m?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const n=document.createElement("style"),r=h.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=D){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const i=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:k).toAttribute(t,n.type);this._$El=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$El=null}}_$AK(e,t){var n;const r=this.constructor,o=r._$Ev.get(e);if(void 0!==o&&this._$El!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:k;this._$El=o,this[o]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||O)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(g){Promise.reject(g)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(n)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};_[$]=!0,_.elementProperties=new Map,_.elementStyles=[],_.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:_}),(null!==(s=x.reactiveElementVersions)&&void 0!==s?s:x.reactiveElementVersions=[]).push("1.6.2");const N=window,j=N.trustedTypes,P=j?j.createPolicy("lit-html",{createHTML:e=>e}):void 0,T="$lit$",I=`lit$${(Math.random()+"").slice(9)}$`,A="?"+I,R=`<${A}>`,F=document,M=()=>F.createComment(""),L=e=>null===e||"object"!=typeof e&&"function"!=typeof e,B=Array.isArray,z="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,W=/>/g,G=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,q=/"/g,X=/^(?:script|style|textarea|title)$/i,K=(e,...t)=>({_$litType$:1,strings:e,values:t}),Y=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Q=new WeakMap,Z=F.createTreeWalker(F,129,null,!1);class ee{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,i=0;const a=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,i=2===t?"":"",a=H;for(let l=0;l"===s[0]?(a=o??H,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,n=s[1],a=void 0===s[3]?G:'"'===s[3]?q:V):a===q||a===V?a=G:a===U||a===W?a=H:(a=G,o=void 0);const d=a===G&&e[l+1].startsWith("/>")?" ":"";i+=a===H?t+R:c>=0?(r.push(n),t.slice(0,c)+T+t.slice(c)+I+d):t+I+(-2===c?(r.push(void 0),l):d)}const s=i+(e[n]||"")+(2===t?"":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==P?P.createHTML(s):s,r]})(e,t);if(this.el=ee.createElement(l,n),Z.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(r=Z.nextNode())&&s.length0){r.textContent=j?j.emptyScript:"";for(let n=0;nB(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==J&&L(this._$AH)?this._$AA.nextSibling.data=e:this.$(F.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=ee.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===o)this._$AH.v(n);else{const e=new te(o,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=Q.get(e.strings);return void 0===t&&Q.set(e.strings,t=new ee(e)),t}T(e){B(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,r=0;for(const o of e)r===t.length?t.push(n=new ne(this.k(M()),this.k(M()),this,this.options)):n=t[r],n._$AI(o),r++;r2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const i=this.strings;let a=!1;if(void 0===i)e=n(this,e,t,0),a=!L(e)||e!==this._$AH&&e!==Y,a&&(this._$AH=e);else{const o=e;let s,l;for(e=i[0],s=0;s{var r,o;const i=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let a=i._$litPart$;if(void 0===a){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=a=new ne(t.insertBefore(M(),e),e,void 0,n??{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Y}};ue.finalized=!0,ue._$litElement$=!0,null===(c=globalThis.litElementHydrateSupport)||void 0===c||c.call(globalThis,{LitElement:ue});const de=globalThis.litElementPolyfillSupport;null==de||de({LitElement:ue}),(null!==(u=globalThis.litElementVersions)&&void 0!==u?u:globalThis.litElementVersions=[]).push("3.3.2");const pe=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};window;let fe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};const he=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const i of o)null===(r=(n=i)._$AO)||void 0===r||r.call(n,t,!1),he(i,t);return!0},ge=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},me=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),be(t)}},be=e=>{var t,n,r,o;2==e.type&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=a),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=i))};class ye extends fe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),me(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,r;e!==this.isConnected&&(this.isConnected=e,e?null===(n=this.reconnected)||void 0===n||n.call(this):null===(r=this.disconnected)||void 0===r||r.call(this)),t&&(he(this,e),ge(this))}setValue(e){if((()=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class ve{}const we=new WeakMap,xe=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ye{render(e){return J}update(e,[t]){var n;const r=t!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=null===(n=e.options)||void 0===n?void 0:n.host,this.ot(this.lt=e.element)),J}ot(e){var t;if("function"==typeof this.G){const n=null!==(t=this.ct)&&void 0!==t?t:globalThis;let r=we.get(n);void 0===r&&(r=new WeakMap,we.set(n,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,n;return"function"==typeof this.G?null===(t=we.get(null!==(e=this.ct)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.G):null===(n=this.G)||void 0===n?void 0:n.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=(e,t,n,r)=>{for(var o,i=r>1?void 0:r?p(t,n):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&d(t,n,i),i},t.GiscusWidget=class extends ue{constructor(){super(),this.GISCUS_SESSION_KEY="giscus-session",this.GISCUS_DEFAULT_HOST="https://giscus.app",this.ERROR_SUGGESTION="Please consider reporting this error at https://github.com/giscus/giscus/issues/new.",this.__session="",this._iframeRef=new ve,this.messageEventHandler=this.handleMessageEvent.bind(this),this.hasLoaded=!1,this.host=this.GISCUS_DEFAULT_HOST,this.strict="0",this.reactionsEnabled="1",this.emitMetadata="0",this.inputPosition="bottom",this.theme="light",this.lang="en",this.loading="eager",this.setupSession(),window.addEventListener("message",this.messageEventHandler)}get iframeRef(){var e;return null==(e=this._iframeRef)?void 0:e.value}get _host(){try{return new URL(this.host),this.host}catch{return this.GISCUS_DEFAULT_HOST}}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.messageEventHandler)}_formatError(e){return`[giscus] An error occurred. Error message: "${e}".`}setupSession(){const t=location.href,n=new URL(t),r=localStorage.getItem(this.GISCUS_SESSION_KEY),o=n.searchParams.get("giscus")||"";if(this.__session="",o)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(o)),this.__session=o,n.searchParams.delete("giscus"),n.hash="",void history.replaceState(void 0,document.title,n.toString());if(r)try{this.__session=JSON.parse(r)}catch(e){localStorage.removeItem(this.GISCUS_SESSION_KEY)}}signOut(){localStorage.removeItem(this.GISCUS_SESSION_KEY),this.__session="",this.update(new Map)}handleMessageEvent(e){if(e.origin!==this._host)return;const{data:t}=e;if("object"!=typeof t||!t.giscus)return;if(this.iframeRef&&t.giscus.resizeHeight&&(this.iframeRef.style.height=`${t.giscus.resizeHeight}px`),t.giscus.signOut)return void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired"))&&null!==localStorage.getItem(this.GISCUS_SESSION_KEY)?this.signOut():n.includes("Discussion not found")}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||this.iframeRef.contentWindow.postMessage({giscus:e},this._host)}updateConfig(){const e={setConfig:{repo:this.repo,repoId:this.repoId,category:this.category,categoryId:this.categoryId,term:this.getTerm(),number:+this.getNumber(),strict:"1"===this.strict,reactionsEnabled:"1"===this.reactionsEnabled,emitMetadata:"1"===this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,lang:this.lang}};this.sendMessage(e)}firstUpdated(){var e;null==(e=this.iframeRef)||e.addEventListener("load",(()=>{var e;null==(e=this.iframeRef)||e.classList.remove("loading"),this.hasLoaded=!0,this.updateConfig()}))}requestUpdate(e,t,n){this.hasUpdated&&"host"!==e?this.updateConfig():super.requestUpdate(e,t,n)}getMetaContent(e,t=!1){const n=document.querySelector((t?`meta[property='og:${e}'],`:"")+`meta[name='${e}']`);return n?n.content:""}_getCleanedUrl(){const e=new URL(location.href);return e.searchParams.delete("giscus"),e.hash="",e}getTerm(){switch(this.mapping){case"url":return`${this._getCleanedUrl()}`;case"title":return document.title;case"og:title":return this.getMetaContent("title",!0);case"specific":return this.term||"";case"number":return"";default:return location.pathname.length<2?"index":location.pathname.substring(1).replace(/\.\w+$/,"")}}getNumber(){return"number"===this.mapping&&this.term||""}getIframeSrc(){const e=this._getCleanedUrl().toString(),t=`${e}${this.id?"#"+this.id:""}`,n=this.getMetaContent("description",!0),r=this.getMetaContent("giscus:backlink")||e,o={origin:t,session:this.__session,repo:this.repo,repoId:this.repoId||"",category:this.category||"",categoryId:this.categoryId||"",term:this.getTerm(),number:this.getNumber(),strict:this.strict,reactionsEnabled:this.reactionsEnabled,emitMetadata:this.emitMetadata,inputPosition:this.inputPosition,theme:this.theme,description:n,backLink:r};return`${this._host}${this.lang?`/${this.lang}`:""}/widget?${new URLSearchParams(o)}`}render(){return K` `}},t.GiscusWidget.styles=((e,...t)=>{const n=1===e.length?e[0]:t.reduce(((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[r+1]),e[0]);return new v(n,e,b)})` :host, iframe { width: 100%; border: none; min-height: 150px; color-scheme: light dark; } iframe.loading { opacity: 0; } `,f([r({reflect:!0})],t.GiscusWidget.prototype,"host",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"repo",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"repoId",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"category",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"categoryId",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"mapping",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"term",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"strict",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"reactionsEnabled",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"emitMetadata",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"inputPosition",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"theme",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"lang",2),f([r({reflect:!0})],t.GiscusWidget.prototype,"loading",2),t.GiscusWidget=f([function(e){return customElements.get(e)?e=>e:(e=>t=>{return"function"==typeof t?(n=t,customElements.define(e,n),n):((e,t)=>{const{kind:n,elements:r}=t;return{kind:n,elements:r,finisher(t){customElements.define(e,t)}}})(e,t);var n})(e)}("giscus-widget")],t.GiscusWidget)}(FU)),FU))),m(!0))}),[]),g?W8.jsx("giscus-widget",{id:e,host:t,repo:n,repoid:r,category:o,categoryid:i,mapping:a,term:s,strict:l,reactionsenabled:c,emitmetadata:u,inputposition:d,theme:p,lang:f,loading:h}):null};const V8=t(LU);zU=function(e,t){var n=t?"dark":"light",r=lH.gray[n][11],o=lH.gray[n][10],i=lH.gray[n][7],a=t?lH.red[n][9]:lH.volcano[n][9],s=t?lH.gold[n][9]:lH.orange[n][9],l=t?lH.lime[n][9]:lH.green[n][9],c=t?lH.blue[n][9]:lH.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 qA(BU||(BU=Di(["\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,l,s,a,c,c,l,a,a,o,nh(a,.4),o,nh(a,.6),l,s,c,o,o,o,nh(a,.2),l,nh(l,.2),s,nh(a,.2),o,nh(c,.2),s,o,i,c,e.colorText,e.colorFillTertiary,e.colorBorderSecondary,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,sh(e.colorPrimary),e.colorPrimary,e.colorPrimaryBorder,e.colorPrimaryHover,e.colorPrimaryBorderHover,e.colorPrimaryActive,nh(sh(e.colorPrimary),.5),nh(e.colorPrimary,.5),nh(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)},HU=function(e){return["zh_CN","zh_TW"].includes(e)?e.replace("_","-"):"zh_HK"===e?"zh-TW":e.split("_")[0]},UU=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"];const q8=yy.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,s=e.lang,l=void 0===s?"en_US":s,c=e.inputPosition,u=void 0===c?"top":c,d=e.id,p=void 0===d?"giscus":d,f=e.loading,h=void 0===f?"lazy":f,g=e.emitMetadata,m=void 0===g?"0":g,b=Oi(e,UU),y=QA(),v=EA().isDarkMode,w=yy.useMemo((function(){return btoa(zU(y,v).styles)}),[v,y]);return ky.jsx("div",{className:n,style:t,children:ky.jsx(V8,Jh({emitMetadata:m,id:p,inputPosition:u,lang:HU(l),loading:h,mapping:a,reactionsEnabled:o,theme:"data:text/css;base64,".concat(w)},b))})}));XU=GA((function(e){var t=e.css,n=e.responsive,r=e.token,o=e.cx;return{content:t(WU||(WU=Di(["\n height: 64px;\n padding: 0 24px;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n "," {\n padding: 0 12px;\n }\n "])),nh(r.colorBgLayout,.4),r.colorSplit,n.mobile),header:o(t(GU||(GU=Di(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:t(VU||(VU=Di(["\n z-index: 10;\n "]))),right:t(qU||(qU=Di(["\n z-index: 10;\n display: flex;\n flex: 1;\n justify-content: space-between;\n\n &-aside {\n display: flex;\n align-items: center;\n\n "," {\n justify-content: center;\n margin: 8px 16px;\n padding-top: 24px;\n border-top: 1px solid ",";\n }\n }\n "])),n.mobile,r.colorBorder)}})),KU=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"];const X8=yy.memo((function(e){var t=e.actionsClassName,n=e.navClassName,r=e.logoClassName,o=e.nav,i=e.logo,a=e.actions,s=e.actionsStyle,l=e.logoStyle,c=e.navStyle,u=e.className,d=Oi(e,KU),p=DA().mobile,f=XU(),h=f.cx,g=f.styles;return ky.jsx("section",Zh(Zh({className:h(g.header,u)},d),{},{children:ky.jsx(Bz,{align:"center",className:g.content,distribution:"space-between",horizontal:!0,width:"auto",children:ky.jsxs(ky.Fragment,p?{children:[ky.jsx(Bz,{className:t,style:Zh({flex:0},c),children:o}),ky.jsx(Bz,{className:h(g.left,r),horizontal:!0,style:Zh({flex:1,overflow:"hidden"},l),children:i}),ky.jsx(Bz,{className:t,style:Zh({flex:0},s),children:a})]}:{children:[ky.jsx(Bz,{className:h(g.left,r),horizontal:!0,style:Zh({flex:0},l),children:i}),ky.jsx(Bz,{className:n,style:Zh({flex:1,marginLeft:48,overflow:"hidden"},c),children:o}),ky.jsxs("section",{className:h(g.right,t),style:s,children:[ky.jsx("div",{}),ky.jsx(Bz,{align:"center",gap:8,horizontal:!0,children:a})]})]})})}))}));YU=dJ("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"}]]);const K8=function(e){return ky.jsx(YU,function(e){var t,n;for(t=1;t *:last-child {\n margin-bottom: 0 !important;\n }\n\n blockquote {\n margin: 16px 0;\n padding: 0 12px;\n\n p {\n font-style: italic;\n color: ",";\n }\n }\n\n p:not(:last-child) {\n margin-bottom: 1em;\n }\n\n a {\n color: ",";\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n }\n\n img {\n max-width: 100%;\n }\n\n pre,\n [data-code-type='highlighter'] {\n border: none;\n border-radius: ","px;\n\n > code {\n padding: 0 !important;\n border: none !important;\n }\n }\n\n > :not([data-code-type='highlighter']) code {\n padding: 2px 6px;\n\n font-size: ","px;\n color: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n }\n\n table {\n border-spacing: 0;\n\n width: 100%;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0;\n margin-inline-end: 0;\n padding: 8px;\n\n border: 1px solid ",";\n border-radius: ","px;\n\n code {\n display: inline-flex;\n }\n }\n\n th,\n td {\n padding-block-start: 10px;\n padding-block-end: 10px;\n padding-inline-start: 16px;\n padding-inline-end: 16px;\n }\n\n thead {\n tr {\n th {\n background: ",";\n\n &:first-child {\n border-top-left-radius: ","px;\n border-bottom-left-radius: ","px;\n }\n\n &:last-child {\n border-top-right-radius: ","px;\n border-bottom-right-radius: ","px;\n }\n }\n }\n }\n\n > ol > li::marker {\n color: "," !important;\n }\n\n > ul > li {\n line-height: 1.8;\n list-style-type: disc;\n &::marker {\n color: "," !important;\n }\n }\n\n ol,\n ul {\n > li::marker {\n color: ",";\n }\n }\n\n details {\n margin-bottom: 1em;\n padding: 12px 16px;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n\n transition: all 400ms ",";\n }\n\n details[open] {\n summary {\n padding-bottom: 12px;\n border-bottom: 1px solid ",";\n }\n }\n "])),n.colorText,n.colorText,n.colorTextDescription,n.colorLink,n.colorLinkHover,n.colorLinkActive,n.borderRadius,n.fontSizeSM,i,a,r?n.cyan1A:n.cyan6A,n.borderRadiusSM,n.colorBorderSecondary,n.borderRadius,n.colorFillTertiary,n.borderRadius,n.borderRadius,n.borderRadius,n.borderRadius,r?n.cyan9A:n.cyan10A,r?n.cyan9A:n.cyan10A,n.colorTextDescription,n.colorFillTertiary,n.colorBorderSecondary,n.borderRadiusLG,n.motionEaseOut,n.colorBorder),noScrollbar:t(_W||(_W=Di(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:t(NW||(NW=Di(["\n cursor: pointer;\n color: ",";\n\n &:hover {\n color: ",";\n }\n "])),n.colorTextSecondary,n.colorText)}},PW={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"]}},TW=function(e){var t,n=e.name,r=e.scale,o=e.appearance;return ki(t={},"".concat(n,"Bg"),r["".concat(o,"A")][1]),ki(t,"".concat(n,"BgHover"),r["".concat(o,"A")][2]),ki(t,"".concat(n,"Border"),r[o][4]),ki(t,"".concat(n,"BorderSecondary"),r[o][3]),ki(t,"".concat(n,"BorderHover"),r[o][5]),ki(t,"".concat(n,"Hover"),r[o][10]),ki(t,"".concat(n),r[o][9]),ki(t,"".concat(n,"Active"),r[o][7]),ki(t,"".concat(n,"TextHover"),r["".concat(o,"A")][10]),ki(t,"".concat(n,"Text"),r["".concat(o,"A")][9]),ki(t,"".concat(n,"TextActive"),r["".concat(o,"A")][7]),t},IW=function(e){var t,n,r,o,i,a,s,l,c,u=e.name,d=e.scale,p=e.appearance,f={},h=fg(d[p].entries());try{for(h.s();!(t=h.n()).done;)o=(n=Ua(t.value,2))[1],0!==(r=n[0])&&12!==r&&(f["".concat(u).concat(r)]=o)}catch(g){h.e(g)}finally{h.f()}i=fg(d["".concat(p,"A")].entries());try{for(i.s();!(a=i.n()).done;)c=(s=Ua(a.value,2))[1],0!==(l=s[0])&&12!==l&&(f["".concat(u).concat(l,"A")]=c)}catch(g){i.e(g)}finally{i.f()}return pg(pg({},f),TW({appearance:p,name:u,scale:d}))},AW=function(e){var t,n,r,o,i,a=e.isDarkMode,s={};for(t=0,n=Object.entries(lH);t?@[\\\]^`{|}~-]+/g,yG=/(^-|-$)/g,vG=/(a)(d)/gi,wG=function(e){return String.fromCharCode(e+(e>25?39:97))},SG=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},EG=function(e){return SG(5381,e)},CG="function"==typeof Symbol&&Symbol.for,kG=CG?Symbol.for("react.memo"):60115,OG=CG?Symbol.for("react.forward_ref"):60112,DG={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$G={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_G={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},(xG={})[OG]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xG[kG]=_G,NG=xG,jG=Object.defineProperty,PG=Object.getOwnPropertyNames,TG=Object.getOwnPropertySymbols,IG=Object.getOwnPropertyDescriptor,AG=Object.getPrototypeOf,RG=Object.prototype,FG=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(o=r=(n=this.groupSizes).length;e>=o;)if((o<<=1)<0)throw Ig(16,"".concat(e));for(this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o,i=r;i=this.length||0===this.groupSizes[e])return i;for(t=this.groupSizes[e],r=(n=this.indexOfGroup(e))+t,o=n;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(s+="".concat(e,","))})),void(r+="".concat(i).concat(a,'{content:"').concat(s,'"}').concat("/*!sc*/\n"))))},i=0;i0?".".concat(e):n},c=s.slice();return c.push((function(e){e.type===pD&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(eV,t).replace(n,l))})),i.prefix&&c.push(ks),c.push(Cs),(r=function(r,o,a,s){var l,u,d,p,f,h;return void 0===o&&(o=""),void 0===a&&(a=""),void 0===s&&(s="&"),e=s,t=o,n=new RegExp("\\".concat(t,"\\b"),"g"),l=r.replace(tV,""),u=bs(a||o?"".concat(a," ").concat(o," { ").concat(l," }"):l),i.namespace&&(u=Ag(u,i.namespace)),d=[],Es(u,(p=c.concat((h=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&h(e)})),f=es(p),function(e,t,n,r){var o,i="";for(o=0;o="A"&&e<="Z"},sV=function(e){return null==e||!1===e||""===e},lV=function(e){var t,n,r,o,i=[];for(r in e)o=e[r],e.hasOwnProperty(r)&&!sV(o)&&(Array.isArray(o)&&o.isCss||Dg(o)?i.push("".concat(Fg(r),":"),o,";"):jg(o)?i.push.apply(i,ch(ch(["".concat(r," {")],lV(o),!1),["}"],!1)):i.push("".concat(Fg(r),": ").concat((t=r,null==(n=o)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in xk||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")));return i},cV=EG("6.0.7"),uV=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&function(e){var t,n;for(t=0;t>>0),t.hasNameForId(this.componentId,o)||(i=n(r,".".concat(o),void 0,this.componentId),t.insertRules(this.componentId,o,i)),p=_g(p,o),this.staticRulesId=o);else{for(a=SG(this.baseHash,n.hash),s="",l=0;l>>0),t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(s,".".concat(d),void 0,this.componentId)),p=_g(p,d))}return p},e}(),dV=rJ.createContext(void 0),pV={},fV=function(e){return Object.assign(e,{isCss:!0})},hV=function(e){return Hg(Lg,e)},gV=hV,mG.forEach((function(e){gV[e]=hV(e)}));const o7=function(e){return qA(mV||(mV=Di(["\n .ant-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding: 4px 8px;\n\n color: "," !important;\n\n background-color: "," !important;\n border-radius: ","px !important;\n }\n\n .ant-tooltip-arrow {\n &::before,\n &::after {\n background: "," !important;\n }\n }\n\n .ant-switch-handle::before {\n background: "," !important;\n }\n"])),e.colorBgLayout,e.colorText,e.borderRadiusSM,e.colorText,e.colorBgContainer)},i7=VA((function(e){var t,n=e.theme;return[(t=n,qA(bV||(bV=Di(["\n html,\n body {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n\n overflow-x: hidden;\n overflow-y: auto;\n\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 line-height: 1;\n color: ",";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n vertical-align: baseline;\n\n color-scheme: dark;\n background-color: ",";\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n body {\n overflow-x: hidden;\n height: 100vh;\n }\n\n #root {\n min-height: 100vh;\n }\n\n code {\n font-family: "," !important;\n\n span {\n font-family: "," !important;\n }\n }\n\n p {\n text-align: justify;\n word-wrap: break-word;\n }\n\n ::selection {\n color: #000;\n background: ",";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n box-sizing: border-box;\n vertical-align: baseline;\n }\n\n @media only screen and (min-width: 574px) {\n * {\n ::-webkit-scrollbar {\n cursor: pointer;\n width: 4px;\n height: 4px;\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n cursor: pointer;\n background-color: transparent;\n border-radius: 2px;\n transition: background-color 500ms ",";\n\n &:hover {\n background-color: ",";\n }\n }\n\n ::-webkit-scrollbar-corner {\n display: none;\n width: 0;\n height: 0;\n }\n\n &:hover {\n ::-webkit-scrollbar-thumb {\n background-color: ",";\n }\n }\n }\n }\n"])),t.fontFamily,t.fontSize,t.colorTextBase,t.colorBgLayout,t.fontFamilyCode,t.fontFamilyCode,t.yellow9,t.motionEaseOut,t.colorText,t.colorFill)),o7(n)]})),a7=yy.memo((function(e){var t,n,r=e.children,o=e.themeMode,i=e.customStylish,a=e.customToken,s=e.enableWebfonts,l=void 0===s||s,c=e.webfonts,u=void 0===c?[cF({path:"css/index.css",pkg:"@lobehub/webfont-mono",version:"1.0.0"}),cF({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans",version:"1.0.0"}),cF({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans-sc",version:"1.0.0"}),cF({path:"dist/katex.min.css",pkg:"katex",version:"0.16.8"})]:c;return yy.useEffect((function(){RA({ThemeContext:dV})}),[]),t=yy.useCallback((function(e){return Wg(Wg({},jW(e)),null==i?void 0:i(e))}),[i]),n=yy.useCallback((function(e){return Wg(Wg({},AW(e)),null==a?void 0:a(e))}),[a]),ky.jsxs(ky.Fragment,{children:[l&&(null==u?void 0:u.length)>0&&u.map((function(e,t){return ky.jsx(R8,{url:e},t)})),ky.jsx(JA,{speedy:!0,children:ky.jsxs(YA,{customStylish:t,customToken:n,theme:eG,themeMode:o,children:[ky.jsx(i7,{}),ky.jsx(a2,{style:{minHeight:"inherit",width:"inherit"},children:r})]})})]})})),s7={},l7=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},c7=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,u7={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},d7=e=>u7[e];let p7,f7={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c7,d7)};const h7={type:"3rdParty",init(e){!function(e){let t=arguments.length>0&&void 0!==e?e:{};f7={...f7,...t}}(e.options.react),function(e){p7=e}(e)}},g7=yy.createContext();class m7{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const b7="https://github.com/lobehub/sd-webui-lobe-theme",y7=GA((({css:e,responsive:t})=>({modal:e` height: 70%; .ant-modal-header { margin-bottom: 24px; } ${t.mobile} { .ant-modal-header { margin-bottom: 8px; } .ant-modal-content { padding: 8px; } } `}))),v7=yy.memo((({className:e,title:t,open:n,onCancel:r,children:o,...i})=>{const{cx:a,styles:s}=y7();return ky.jsx(b6,{cancelText:"Cancel",className:a(s.modal,e),closeIcon:ky.jsx(c8,{icon:AJ}),footer:null,onCancel:r,open:n,title:ky.jsx(Bz,{align:"center",gap:4,horizontal:!0,justify:"center",children:t}),width:800,...i,children:o})}));yV={exports:{}},vV={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};const w7=("object"==typeof process&&{NODE:"/usr/local/bin/node",TERM:"xterm-256color",SHELL:"/opt/homebrew/bin/fish",TMPDIR:"/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/",OPENAI_API_URL:"https://openai.canisminor.cc",TERM_SESSION_ID:"9998899f-7022-40b3-a3be-64eb771376c2",npm_config_local_prefix:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/",USER:"canisminor",OPENAI_API_KEY:"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",COMMAND_MODE:"unix2003",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.9oWy3VyR7G/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/opt/homebrew/lib/node_modules/bun/bin/bun",FIG_JETBRAINS_SHELL_INTEGRATION:"1",omp_last_status_generation:"4",PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin:/Users/canisminor/Library/Python/3.10/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin",TERMINAL_EMULATOR:"JetBrains-JediTerm",npm_package_json:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/package.json",__CFBundleIdentifier:"com.jetbrains.WebStorm",PWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",npm_lifecycle_event:"build",npm_package_name:"sd-webui-lobe-theme",XPC_FLAGS:"0x0",omp_lastcommand:"bunx --bun vite build",npm_package_version:"3.0.7",XPC_SERVICE_NAME:"application.com.jetbrains.WebStorm.166086494.166087177",SHLVL:"2",HOME:"/Users/canisminor",LOGNAME:"canisminor",OPENAI_API:"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",LC_CTYPE:"UTF-8",npm_config_user_agent:"bun/1.0.1 npm/? node/v18.15.0 darwin arm64",POSH_THEME:"/Users/canisminor/.cmli/omp/mytheme.omp.json",npm_node_execpath:"/usr/local/bin/node",_:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin/vite",NODE_ENV:"production"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE:"/usr/local/bin/node",TERM:"xterm-256color",SHELL:"/opt/homebrew/bin/fish",TMPDIR:"/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/",OPENAI_API_URL:"https://openai.canisminor.cc",TERM_SESSION_ID:"9998899f-7022-40b3-a3be-64eb771376c2",npm_config_local_prefix:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/",USER:"canisminor",OPENAI_API_KEY:"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",COMMAND_MODE:"unix2003",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.9oWy3VyR7G/Listeners",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_execpath:"/opt/homebrew/lib/node_modules/bun/bin/bun",FIG_JETBRAINS_SHELL_INTEGRATION:"1",omp_last_status_generation:"4",PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin:/Users/canisminor/Library/Python/3.10/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin",TERMINAL_EMULATOR:"JetBrains-JediTerm",npm_package_json:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/package.json",__CFBundleIdentifier:"com.jetbrains.WebStorm",PWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",npm_lifecycle_event:"build",npm_package_name:"sd-webui-lobe-theme",XPC_FLAGS:"0x0",omp_lastcommand:"bunx --bun vite build",npm_package_version:"3.0.7",XPC_SERVICE_NAME:"application.com.jetbrains.WebStorm.166086494.166087177",SHLVL:"2",HOME:"/Users/canisminor",LOGNAME:"canisminor",OPENAI_API:"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",LC_CTYPE:"UTF-8",npm_config_user_agent:"bun/1.0.1 npm/? node/v18.15.0 darwin arm64",POSH_THEME:"/Users/canisminor/.cmli/omp/mytheme.omp.json",npm_node_execpath:"/usr/local/bin/node",_:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin/vite",NODE_ENV:"production"}.NODE_DEBUG),()=>{});wV=w7,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=vV,i=wV,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)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,l[o]=t,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),f("FULL",`^${l[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),f("LOOSE",`^${l[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),f("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),f("COERCERTL",l[c.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(yV,yV.exports),xV=yV.exports;const x7=Object.freeze({loose:!0}),S7=Object.freeze({});SV=e=>e?"object"!=typeof e?x7:e:S7;const E7=/^[0-9]+$/,C7=(e,t)=>{const n=E7.test(e),r=E7.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eC7(t,e)};const k7=wV,{MAX_LENGTH:O7,MAX_SAFE_INTEGER:D7}=vV,{safeRe:$7,t:_7}=xV,N7=SV,{compareIdentifiers:j7}=EV;CV=class e{constructor(t,n){if(n=N7(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>O7)throw new TypeError(`version is longer than ${O7} characters`);k7("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?$7[_7.LOOSE]:$7[_7.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>D7||this.major<0)throw new TypeError("Invalid major version");if(this.minor>D7||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>D7||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=r[4]?r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=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===j7(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 P7=CV,T7=kV=(e,t,n=!1)=>{if(e instanceof P7)return e;try{return new P7(e,t)}catch(r){if(!n)return null;throw r}};OV=(e,t)=>{const n=T7(e,t);return n?n.version:null};const I7=kV;DV=(e,t)=>{const n=I7(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const A7=CV;$V=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new A7(e instanceof A7?e.version:e,n).inc(t,r,o).version}catch(i){return null}};const R7=kV;_V=(e,t)=>{const n=R7(e,null,!0),r=R7(t,null,!0),o=n.compare(r);if(0===o)return null;const i=o>0,a=i?n:r,s=i?r:n,l=!!a.prerelease.length;if(s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const F7=CV;NV=(e,t)=>new F7(e,t).major;const M7=CV;jV=(e,t)=>new M7(e,t).minor;const L7=CV;PV=(e,t)=>new L7(e,t).patch;const B7=kV;TV=(e,t)=>{const n=B7(e,t);return n&&n.prerelease.length?n.prerelease:null};const z7=CV;IV=(e,t,n)=>new z7(e,n).compare(new z7(t,n));const H7=IV;AV=(e,t,n)=>H7(t,e,n);const U7=IV;RV=(e,t)=>U7(e,t,!0);const W7=CV;FV=(e,t,n)=>{const r=new W7(e,n),o=new W7(t,n);return r.compare(o)||r.compareBuild(o)};const G7=FV;MV=(e,t)=>e.sort(((e,n)=>G7(e,n,t)));const V7=FV;LV=(e,t)=>e.sort(((e,n)=>V7(n,e,t)));const q7=IV;BV=(e,t,n)=>q7(e,t,n)>0;const X7=IV;zV=(e,t,n)=>X7(e,t,n)<0;const K7=IV;HV=(e,t,n)=>0===K7(e,t,n);const Y7=IV;UV=(e,t,n)=>0!==Y7(e,t,n);const J7=IV;WV=(e,t,n)=>J7(e,t,n)>=0;const Q7=IV;GV=(e,t,n)=>Q7(e,t,n)<=0;const Z7=HV,e9=UV,t9=BV,n9=WV,r9=zV,o9=GV;VV=(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 Z7(e,n,r);case"!=":return e9(e,n,r);case">":return t9(e,n,r);case">=":return n9(e,n,r);case"<":return r9(e,n,r);case"<=":return o9(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const i9=CV,a9=kV,{safeRe:s9,t:l9}=xV;qV=(e,t)=>{if(e instanceof i9)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=s9[l9.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),s9[l9.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s9[l9.COERCERTL].lastIndex=-1}else n=e.match(s9[l9.COERCE]);return null===n?null:a9(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)},YV=Kg,Kg.Node=Yg,Kg.create=Kg,Kg.prototype.removeNode=function(e){var t,n;if(e.list!==this)throw new Error("removing node which does not belong to this list");return n=e.prev,(t=e.next)&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},Kg.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},Kg.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},Kg.prototype.push=function(){var e,t,n;for(e=0,t=arguments.length;e1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");o=this.head.next,n=this.head.value}for(r=0;null!==o;r++)n=e(n,o.value,r),o=o.next;return n},Kg.prototype.reduceReverse=function(e,t){var n,r,o=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");o=this.tail.prev,n=this.tail.value}for(r=this.length-1;null!==o;r--)n=e(n,o.value,r),o=o.prev;return n},Kg.prototype.toArray=function(){var e,t,n=new Array(this.length);for(e=0,t=this.head;null!==t;e++)n[e]=t.value,t=t.next;return n},Kg.prototype.toArrayReverse=function(){var e,t,n=new Array(this.length);for(e=0,t=this.tail;null!==t;e++)n[e]=t.value,t=t.prev;return n},Kg.prototype.slice=function(e,t){var n,r,o;if((t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length),n=new Kg,tthis.length&&(t=this.length),r=0,o=this.head;null!==o&&rthis.length&&(t=this.length),r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},Kg.prototype.splice=function(e,t,...n){var r,o,i,a,s,l,c;for(e>this.length&&(e=this.length-1),e<0&&(e=this.length+e),r=0,o=this.head;null!==o&&r1,x9=(e,t,n)=>{const r=e[y9].get(t);if(r){const t=r.value;if(S9(e,t)){if(C9(e,r),!e[f9])return}else n&&(e[v9]&&(r.value.now=Date.now()),e[b9].unshiftNode(r));return t.value}},S9=(e,t)=>{if(!t||!t.maxAge&&!e[h9])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[h9]&&n>e[h9]},E9=e=>{if(e[d9]>e[u9])for(let t=e[b9].tail;e[d9]>e[u9]&&null!==t;){const n=t.prev;C9(e,t),t=n}},C9=(e,t)=>{if(t){const n=t.value;e[g9]&&e[g9](n.key,n.value),e[d9]-=n.length,e[y9].delete(n.key),e[b9].removeNode(t)}};class k9{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const O9=(e,t,n,r)=>{let o=n.value;S9(e,o)&&(C9(e,n),e[f9]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};JV=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[u9]=e.max||1/0;const t=e.length||w9;if(this[p9]="function"!=typeof t?w9:t,this[f9]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[h9]=e.maxAge||0,this[g9]=e.dispose,this[m9]=e.noDisposeOnSet||!1,this[v9]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[u9]=e||1/0,E9(this)}get max(){return this[u9]}set allowStale(e){this[f9]=!!e}get allowStale(){return this[f9]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[h9]=e,E9(this)}get maxAge(){return this[h9]}set lengthCalculator(e){"function"!=typeof e&&(e=w9),e!==this[p9]&&(this[p9]=e,this[d9]=0,this[b9].forEach((e=>{e.length=this[p9](e.value,e.key),this[d9]+=e.length}))),E9(this)}get lengthCalculator(){return this[p9]}get length(){return this[d9]}get itemCount(){return this[b9].length}rforEach(e,t){t=t||this;for(let n=this[b9].tail;null!==n;){const r=n.prev;O9(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[b9].head;null!==n;){const r=n.next;O9(this,e,n,t),n=r}}keys(){return this[b9].toArray().map((e=>e.key))}values(){return this[b9].toArray().map((e=>e.value))}reset(){this[g9]&&this[b9]&&this[b9].length&&this[b9].forEach((e=>this[g9](e.key,e.value))),this[y9]=new Map,this[b9]=new c9,this[d9]=0}dump(){return this[b9].map((e=>!S9(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[b9]}set(e,t,n){if((n=n||this[h9])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[p9](t,e);if(this[y9].has(e)){if(o>this[u9])return C9(this,this[y9].get(e)),!1;const i=this[y9].get(e).value;return this[g9]&&(this[m9]||this[g9](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[d9]+=o-i.length,i.length=o,this.get(e),E9(this),!0}const i=new k9(e,t,o,r,n);return i.length>this[u9]?(this[g9]&&this[g9](e,t),!1):(this[d9]+=i.length,this[b9].unshift(i),this[y9].set(e,this[b9].head),E9(this),!0)}has(e){if(!this[y9].has(e))return!1;const t=this[y9].get(e).value;return!S9(this,t)}get(e){return x9(this,e,!0)}peek(e){return x9(this,e,!1)}pop(){const e=this[b9].tail;return e?(C9(this,e),e.value):null}del(e){C9(this,this[y9].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[y9].forEach(((e,t)=>x9(this,t,!1)))}};const D9=Jg();nq=(e,t,n)=>{try{t=new D9(t,n)}catch(loe){return!1}return t.test(e)};const $9=Jg();rq=(e,t)=>new $9(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const _9=CV,N9=Jg();oq=(e,t,n)=>{let r=null,o=null,i=null;try{i=new N9(t,n)}catch(loe){return null}return e.forEach((e=>{i.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new _9(r,n)))})),r};const j9=CV,P9=Jg();iq=(e,t,n)=>{let r=null,o=null,i=null;try{i=new P9(t,n)}catch(loe){return null}return e.forEach((e=>{i.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new j9(r,n)))})),r};const T9=CV,I9=Jg(),A9=BV;aq=(e,t)=>{e=new I9(e,t);let n=new T9("0.0.0");if(e.test(n))return n;if(n=new T9("0.0.0-0"),e.test(n))return n;n=null;for(let r=0;r{const n=new T9(e.semver.version);switch(e.operator){case">":0===n.prerelease.length?n.patch++:n.prerelease.push(0),n.raw=n.format();case"":case">=":t&&!A9(n,t)||(t=n);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!t||n&&!A9(n,t)||(n=t)}return n&&e.test(n)?n:null};const R9=Jg();sq=(e,t)=>{try{return new R9(e,t).range||"*"}catch(loe){return null}};const F9=CV,M9=Qg(),{ANY:L9}=M9,B9=Jg(),z9=nq,H9=BV,U9=zV,W9=GV,G9=WV,V9=lq=(e,t,n,r)=>{let o,i,a,s,l;switch(e=new F9(e,r),t=new B9(t,r),n){case">":o=H9,i=W9,a=U9,s=">",l=">=";break;case"<":o=U9,i=G9,a=H9,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(z9(e,t,r))return!1;for(let c=0;c{e.semver===L9&&(e=new M9(">=0.0.0")),n=n||e,u=u||e,o(e.semver,n.semver,r)?n=e:a(e.semver,u.semver,r)&&(u=e)})),n.operator===s||n.operator===l)return!1;if((!u.operator||u.operator===s)&&i(e,u.semver))return!1;if(u.operator===l&&a(e,u.semver))return!1}return!0};cq=(e,t,n)=>V9(e,t,">",n);const q9=lq;uq=(e,t,n)=>q9(e,t,"<",n);const X9=Jg();dq=(e,t,n)=>(e=new X9(e,n),t=new X9(t,n),e.intersects(t,n));const K9=nq,Y9=IV;pq=(e,t,n)=>{const r=[];let o=null,i=null;const a=e.sort(((e,t)=>Y9(e,t,n)));for(const u of a)K9(u,t,n)?(i=u,o||(o=u)):(i&&r.push([o,i]),i=null,o=null);o&&r.push([o,null]);const s=[];for(const[u,d]of r)s.push(u===d?u:d||u!==a[0]?d?u===a[0]?`<=${d}`:`${u} - ${d}`:`>=${u}`:"*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length=0.0.0-0")],ree=[new Q9(">=0.0.0")],oee=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===Z9){if(1===t.length&&t[0].semver===Z9)return!0;e=n.includePrerelease?nee:ree}if(1===t.length&&t[0].semver===Z9){if(n.includePrerelease)return!0;t=ree}const r=new Set;let o,i,a,s,l,c,u;for(const f of e)">"===f.operator||">="===f.operator?o=iee(o,f,n):"<"===f.operator||"<="===f.operator?i=aee(i,f,n):r.add(f.semver);if(r.size>1)return null;if(o&&i){if(a=tee(o.semver,i.semver,n),a>0)return null;if(0===a&&(">="!==o.operator||"<="!==i.operator))return null}for(const f of r){if(o&&!eee(f,String(o),n))return null;if(i&&!eee(f,String(i),n))return null;for(const e of t)if(!eee(f,String(e),n))return!1;return!0}let d=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver,p=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===i.operator&&0===d.prerelease[0]&&(d=!1);for(const f of t){if(u=u||">"===f.operator||">="===f.operator,c=c||"<"===f.operator||"<="===f.operator,o)if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),">"===f.operator||">="===f.operator){if(s=iee(o,f,n),s===f&&s!==o)return!1}else if(">="===o.operator&&!eee(o.semver,String(f),n))return!1;if(i)if(d&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===d.major&&f.semver.minor===d.minor&&f.semver.patch===d.patch&&(d=!1),"<"===f.operator||"<="===f.operator){if(l=aee(i,f,n),l===f&&l!==i)return!1}else if("<="===i.operator&&!eee(i.semver,String(f),n))return!1;if(!f.operator&&(i||o)&&0!==a)return!1}return!(o&&c&&!i&&0!==a||i&&u&&!o&&0!==a||p||d)},iee=(e,t,n)=>{if(!e)return t;const r=tee(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},aee=(e,t,n)=>{if(!e)return t;const r=tee(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};fq=(e,t,n={})=>{if(e===t)return!0;e=new J9(e,n),t=new J9(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=oee(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const see=xV,lee=vV,cee=CV,uee=EV,dee=t({parse:kV,valid:OV,clean:DV,inc:$V,diff:_V,major:NV,minor:jV,patch:PV,prerelease:TV,compare:IV,rcompare:AV,compareLoose:RV,compareBuild:FV,sort:MV,rsort:LV,gt:BV,lt:zV,eq:HV,neq:UV,gte:WV,lte:GV,cmp:VV,coerce:qV,Comparator:Qg(),Range:Jg(),satisfies:nq,toComparators:rq,maxSatisfying:oq,minSatisfying:iq,minVersion:aq,validRange:sq,outside:lq,gtr:cq,ltr:uq,intersects:dq,simplifyRange:pq,subset:fq,SemVer:cee,re:see.re,src:see.src,tokens:see.t,SEMVER_SPEC_VERSION:lee.SEMVER_SPEC_VERSION,RELEASE_TYPES:lee.RELEASE_TYPES,compareIdentifiers:uee.compareIdentifiers,rcompareIdentifiers:uee.rcompareIdentifiers}),pee=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)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}};return t=e(r,o,i),i},fee=e=>e?pee(e):pee;hq={exports:{}},gq={},mq=yy,bq="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},yq=sH.useSyncExternalStore,vq=mq.useRef,wq=mq.useEffect,xq=mq.useMemo,Sq=mq.useDebugValue,gq.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i,a,s=vq(null);return null===s.current?s.current=i={hasValue:!1,value:null}:i=s.current,s=xq((function(){function e(e){var t,n;return l?(t=s,bq(a,e)?t:(n=r(e),void 0!==o&&o(t,n)?t:(a=e,s=n))):(l=!0,a=e,e=r(e),s=void 0!==o&&i.hasValue&&o(t=i.value,e)?t:e)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]),a=yq(e,s[0],s[1]),wq((function(){i.hasValue=!0,i.value=a}),[a]),Sq(a),a},hq.exports=gq;const hee=t(hq.exports),{useSyncExternalStoreWithSelector:gee}=hee,mee=new Map,bee=e=>{const t=mee.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},yee=(e,t)=>{let n;try{n=JSON.parse(e)}catch(fY){}void 0!==n&&t(n)},vee="3.0.7",wee=[{label:"English",value:"en_US"},{label:"简体中文",value:"zh_CN"},{label:"繁體中文",value:"zh_HK"},{label:"日本語",value:"ja_JP"},{label:"Русский",value:"ru_RU"},{label:"한국어",value:"ko_KR"}],xee=async e=>{await fetch("/lobe/config",{body:JSON.stringify(e),headers:{"Content-Type":"application/json"},method:"POST"})},See={enableExtraNetworkSidebar:!0,enableHighlight:!1,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},Eee={currentTab:"tab_txt2img",latestVersion:vee,loading:!0,localeOptions:wee,setting:See,themeMode:"dark",version:vee},Cee="SD-LOBE-SETTING",kee=(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/${b7.replace("https://github.com/","")}/releases/latest`),t=await e.json();return t&&t.tag_name&&dee.clean(t.tag_name)||vee})();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:wee})();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&&(t=n),!t){const e=localStorage.getItem(Cee);e&&(t=JSON.parse(e))}if(!t){const e=localStorage.getItem("SD-KITCHEN-SETTING");e&&(t=JSON.parse(e))}t||(t=See);const r={...See,...t};await xee(r),e((()=>({setting:r})),!1,"onLoadSetting")},onLoadVersion:async()=>{const t=await(async()=>{const e=await fetch("/lobe/package"),t=await e.json();return t&&!t.empty&&t.version?t.version:vee})();e((()=>({version:t})),!1,"onLoadVersion")},onSetSetting:async n=>{const r={...t().setting,...n};localStorage.setItem(Cee,JSON.stringify(r)),await xee(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;r&&r!==t().currentTab&&e({currentTab:r},!1,"setCurrentTab")}}),Oee=e=>({...See,...e.setting}),Dee=e=>e.currentTab,$ee=e=>e.themeMode,_ee=(e=>{const t="function"==typeof e?fee(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=gee(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return yy.useDebugValue(r),r}(t,e,n);return Object.assign(n,t),n})(((e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=null!=i&&i&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(fY){}if(!c)return e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=mee.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return mee.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let p=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!p)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...bee(l.name),[s]:o.getState()}),c)};const f=(...e)=>{const t=p;p=!1,n(...e),p=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){const e=o.dispatch;o.dispatch=(...t)=>{e(...t)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return;return yee(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void f(e.state);Object.keys(e.state);const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&f(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return f(h),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(bee(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(bee(l.name));case"ROLLBACK":return yee(e.state,(e=>{if(void 0===s)return f(e),void(null==u||u.init(o.getState()));f(e[s]),null==u||u.init(bee(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return yee(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&f(e[s]):f(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 f(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return p=!p}return}})),h})(((...e)=>({...Eee,...kee(...e)})))),Nee=yy.memo((e=>{const{version:t,latestVersion:n}=_ee((e=>({latestVersion:e.latestVersion,version:e.version})),Si),r=dee.gte(t,n);return ky.jsx("a",{href:b7,rel:"noreferrer",target:"_blank",children:ky.jsxs(e8,r?{color:"success",...e,children:["v",t]}:{color:"warning",...e,children:["v",t," / latest v",n]})})})),jee=b7.replace("https://github.com/",""),Pee=yy.memo((({open:e,onCancel:t})=>{const n=_ee(Oee,A8),{t:r}=Xg();return ky.jsx(v7,{onCancel:t,open:e,title:ky.jsxs(ky.Fragment,{children:[ky.jsx("a",{href:"https://discord.gg/AYFPHvv2jT",rel:"noreferrer",target:"_blank",children:ky.jsx(p8,{icon:K8,title:"Discord"})}),ky.jsx("a",{href:b7,rel:"noreferrer",target:"_blank",children:ky.jsx(p8,{icon:wJ,title:jee})}),ky.jsxs(_3,{children:[r("themeFeedback"),ky.jsx(Nee,{})]})]}),children:ky.jsx(q8,{lang:n.i18n,mapping:"number",repo:jee,repoId:"R_kgDOJCPcNg",term:"53"})})})),Tee=Pee,Iee=GA((({css:e,stylish:t,cx:n,token:r},{isPrimaryColor:o,liteAnimation:i})=>({canvas:n(t.gradientAnimation,o&&e` background-image: linear-gradient( -45deg, ${r.colorPrimary}, ${NF(45,r.colorPrimary)}, ${r.colorPrimary}, ${NF(-45,r.colorPrimary)} ); `,e` pointer-events: none; position: absolute; z-index: 10; top: -250px; left: 50%; transform: translateX(-50%) scale(1.5); width: 75vw; height: 400px; opacity: 0.2; filter: blur(100px); `),container:n(!i&&t.blur,e` position: fixed; z-index: 9999; inset: 0; display: flex; align-items: center; justify-content: center; width: 100vw; height: 100vh; background: ${i?r.colorBgLayout:nh(r.colorBgLayout,.5)}; `),icon:e` color: ${r.colorPrimary}; `,inner:e` display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; width: min(50%, 580px); `}))),Aee=yy.memo((()=>{const e=_ee(Oee,A8),{styles:t}=Iee({isPrimaryColor:Boolean(e.primaryColor),liteAnimation:e.liteAnimation});return ky.jsxs("section",{className:t.container,children:[!e.liteAnimation&&ky.jsx("div",{className:t.canvas}),ky.jsxs("div",{className:t.inner,children:[ky.jsx(Mee,{size:48}),ky.jsx(c8,{className:t.icon,icon:EJ,size:{fontSize:32},spin:!0})]})]})})),Ree=yy.memo((({size:e=32,style:t,logoCustomUrl:n,logoCustomTitle:r})=>{let o=ky.jsx(Z8,{size:e,style:t});if(n)if(n.includes("http")||n.includes("data"))o=ky.jsx("img",{alt:"logo",src:n,style:{height:e,...t}});else{const r=uF(n);r&&(o=ky.jsx(w8,{emoji:r,size:e,style:t}))}return ky.jsxs(_3,{align:"center",size:.3*e,children:[o,ky.jsx("b",{style:{fontSize:.6*e,whiteSpace:"nowrap"},children:r})]})})),Fee=yy.memo((({size:e=32,style:t,themeMode:n})=>ky.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}}))),Mee=yy.memo((({size:e=32,style:t})=>{const n=_ee(Oee,A8),r=_ee($ee,Si);return"kitchen"===n.logoType?ky.jsx(Fee,{size:.75*e,style:t,themeMode:r}):"custom"===n.logoType?ky.jsx(Ree,{logoCustomTitle:n.logoCustomTitle,logoCustomUrl:n.logoCustomUrl,size:e,style:t}):ky.jsx(Z8,{extra:"SD",size:e,style:t,type:"combine"})})),Lee=GA((({css:e})=>({buttonGroup:e` display: flex; gap: 8px; `,promptView:e` display: flex; flex-direction: column; gap: 8px; `,view:e` display: flex; flex-direction: column; gap: 1em; margin-bottom: 1em; `})));Eq={};const Bee=yy.createContext({dragDropManager:void 0});Cq="function"==typeof Symbol&&Symbol.observable||"@@observable",Oq={INIT:"@@redux/INIT"+(kq=function(){return Math.random().toString(36).substring(7).split("").join(".")})(),REPLACE:"@@redux/REPLACE"+kq(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+kq()}};const zee="dnd-core/INIT_COORDS",Hee="dnd-core/BEGIN_DRAG",Uee="dnd-core/PUBLISH_DRAG_SOURCE",Wee="dnd-core/HOVER",Gee="dnd-core/DROP",Vee="dnd-core/END_DRAG",qee={type:zee,payload:{clientOffset:null,sourceClientOffset:null}};class Xee{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,n=function(e){return{beginDrag:om(e),publishDragSource:dm(e),hover:um(e),drop:sm(e),endDrag:lm(e)}}(this);return Object.keys(n).reduce(((r,o)=>{var i;return r[o]=(i=n[o],(...n)=>{const r=i.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)}}const Kee=[],Yee=[];Kee.__IS_NONE__=!0,Yee.__IS_ALL__=!0;class Jee{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;tm("function"==typeof e,"listener must be a function."),tm(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){return e!==Kee&&(e===Yee||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){tm("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 tm(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);return tm(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&cm(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);return tm(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&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&&!cm(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?pm({x:(o=t).x+(i=r).x,y:o.y+i.y},n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?pm(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const Qee="undefined"!=typeof global?global:self,Zee=Qee.MutationObserver||Qee.WebKitMutationObserver,ete="function"==typeof Zee?function(e){let t=1;const n=new Zee(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:fm;class tte{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 nte=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.indexthis.capacity){for(let t=0,n=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ete(this.flush),this.requestErrorThrow=fm((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},rte=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new tte(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(nte.registerPendingError),ote="dnd-core/ADD_SOURCE",ite="dnd-core/ADD_TARGET",ate="dnd-core/REMOVE_SOURCE",ste="dnd-core/REMOVE_TARGET";(uY=Dq||(Dq={})).SOURCE="SOURCE",uY.TARGET="TARGET";let lte=0;class cte{addSource(e,t){hm(e),function(e){tm("function"==typeof e.canDrag,"Expected canDrag to be a function."),tm("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),tm("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(Dq.SOURCE,e,t);return this.store.dispatch(function(e){return{type:ote,payload:{sourceId:e}}}(n)),n}addTarget(e,t){hm(e,!0),function(e){tm("function"==typeof e.canDrop,"Expected canDrop to be a function."),tm("function"==typeof e.hover,"Expected hover to be a function."),tm("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(Dq.TARGET,e,t);return this.store.dispatch(function(e){return{type:ite,payload:{targetId:e}}}(n)),n}containsHandler(e){return mm(this.dragSources,e)||mm(this.dropTargets,e)}getSource(e,t=!1){return tm(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return tm(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return tm(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return tm(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return gm(e)===Dq.SOURCE}isTargetId(e){return gm(e)===Dq.TARGET}removeSource(e){tm(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:ate,payload:{sourceId:e}}}(e)),nte.enqueueTask(rte.create((()=>{this.dragSources.delete(e),this.types.delete(e)})))}removeTarget(e){tm(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:ste,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);tm(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){tm(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(lte++).toString();switch(e){case Dq.SOURCE:return`S${t}`;case Dq.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===Dq.SOURCE?this.dragSources.set(r,n):e===Dq.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 ute=(e,t)=>e===t,dte={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null},pte={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};let fte=0;const hte=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");$q=yy.memo((function(e){var{children:t}=e,n=function(e,t){var n,r,o,i;if(null==e)return{};if(n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t),Object.getOwnPropertySymbols)for(i=Object.getOwnPropertySymbols(e),o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}(e,["children"]);const[r,o]=function(e){return"manager"in e?[{dragDropManager:e.manager},!1]:[function(e,t=_m(),n,r){const o=t;return o[hte]||(o[hte]={dragDropManager:$m(e,t,n,r)}),o[hte]}(e.backend,e.context,e.options,e.debugMode),!e.context]}(n);return yy.useEffect((()=>{if(o){const e=_m();return++fte,()=>{0==--fte&&(e[hte]=null)}}}),[]),ky.jsx(Bee.Provider,{value:r,children:t})}));const gte=yy.memo((function({connect:e,src:t}){return yy.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})),mte="undefined"!=typeof window?yy.useLayoutEffect:yy.useEffect;let bte=!1,yte=!1;class vte{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){tm(!bte,"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 bte=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{bte=!1}}isDragging(){if(!this.sourceId)return!1;tm(!yte,"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 yte=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{yte=!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 wte=!1;class xte{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;tm(!wte,"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 wte=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{wte=!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()}}class Ste{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!Am(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Am(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=Fm({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Rm(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Rm(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 Ete{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!Am(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=Fm({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Rm(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}}class Cte{beginDrag(){const e=this.spec;let t=null;return t="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(this.monitor):{},null!=t?t:null}canDrag(){const e=this.spec;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(this.monitor)}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}}class kte{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}}const Ote=n(Object.freeze(Object.defineProperty({__proto__:null,DndContext:Bee,DndProvider:$q,DragPreviewImage:gte,useDrag:function(e,t){const n=Pm(e,t);tm(!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=Lm();return yy.useMemo((()=>new vte(e)),[e])}(),o=function(e,t){const n=Lm(),r=yy.useMemo((()=>new Ste(n.getBackend())),[n]);return mte((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),mte((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return function(e,t,n){const r=Lm(),o=function(e,t,n){const r=yy.useMemo((()=>new Cte(e,t,n)),[t,n]);return yy.useEffect((()=>{r.spec=e}),[e]),r}(e,t,n),i=function(e){return yy.useMemo((()=>{const t=e.type;return tm(null!=t,"spec.type must be defined"),t}),[e])}(e);mte((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])}(n,r,o),[jm(n.collect,r,o),Tm(o),Im(o)]},useDragDropManager:Lm,useDragLayer:function(e){const t=Lm().getMonitor(),[n,r]=Nm(t,e);return yy.useEffect((()=>t.subscribeToOffsetChange(r))),yy.useEffect((()=>t.subscribeToStateChange(r))),n},useDrop:function(e,t){const n=Pm(e,t),r=function(){const e=Lm();return yy.useMemo((()=>new xte(e)),[e])}(),o=function(e){const t=Lm(),n=yy.useMemo((()=>new Ete(t.getBackend())),[t]);return mte((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return function(e,t,n){const r=Lm(),o=function(e,t){const n=yy.useMemo((()=>new kte(e,t)),[t]);return yy.useEffect((()=>{n.spec=e}),[e]),n}(e,t),i=function(e){const{accept:t}=e;return yy.useMemo((()=>(tm(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);mte((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("|")])}(n,r,o),[jm(n.collect,r,o),Bm(o)]}},Symbol.toStringTag,{value:"Module"})));class Dte{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 $te{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>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 _te="__NATIVE_FILE__",Nte="__NATIVE_URL__",jte="__NATIVE_TEXT__",Pte="__NATIVE_HTML__",Tte=Object.freeze(Object.defineProperty({__proto__:null,FILE:_te,HTML:Pte,TEXT:jte,URL:Nte},Symbol.toStringTag,{value:"Module"})),Ite={[_te]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Pte]:{exposeProperties:{html:(e,t)=>Hm(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Nte]:{exposeProperties:{urls:(e,t)=>Hm(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[jte]:{exposeProperties:{text:(e,t)=>Hm(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}},Ate=zm((()=>/firefox/i.test(navigator.userAgent))),Rte=zm((()=>Boolean(window.safari)));class Fte{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 s,l=0,c=i.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const r=t[s];if(re))return n[s];c=s-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 p=0;pe[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 qm({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return qm({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Tte).some((t=>Tte[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Ite[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new $te(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(){var e;return!!this.currentDragSourceNode&&(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)),this.mouseMoveTimeoutTimer=null,!0)}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&&Wm(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=Gm(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=Um(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:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,o){const i="IMG"===(a=t).nodeName&&(Ate()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(a)));var a,s;const l=Wm(i?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:p,anchorY:f}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return Rte()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,u,d),{offsetX:m,offsetY:b}=o,y=0===b||b;return{x:0===m||m?m:new Fte([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(p),y:y?b:(()=>{let e=new Fte([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(f);return Rte()&&i&&(e+=(window.devicePixelRatio-1)*g),e})()}}(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,l.x,l.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;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Um(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Gm(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=Gm(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)):Um(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Gm(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 Lte(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Dte(this.isNodeInDocument)}}let zte;const Hte=n(Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:function(e,t,n){return new Bte(e,t,n)},NativeTypes:Tte,getEmptyImage:function(){return zte||(zte=new Image,zte.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),zte}},Symbol.toStringTag,{value:"Module"})));Nq=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1},Aq=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r=200){if(r=t?null:Uq(e))return Wq(r);u=!1,l=Hq,p=new Lq}else p=t?[]:d;e:for(;++s":">",'"':""","'":"'"}),tX=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n"']/g,dX=RegExp(uX.source),pX=function(e){return(e=cX(e))&&dX.test(e)?e.replace(uX,lX):e},Object.defineProperty(Jq,"__esModule",{value:!0}),fX=function(){function e(e,t){var n,r;for(n=0;n=n?t.scrollTop+=o-n+r:o<0&&(t.scrollTop+=o)},(wX=function(){function e(){var t,n,r,o,i,a;for(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=arguments.length,i=Array(o),a=0;a"+(0,yX.default)(e)+""}))}},r.shouldRenderSuggestions=function(e){var t=r.props;return e.length>=t.minQueryLength&&t.isFocused},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):gX.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},Ym(r,n)}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)}(e,hX.Component),fX(e,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,bX.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t,n=this.props;this.suggestionsContainer&&e.selectedIndex!==n.selectedIndex&&(t=this.suggestionsContainer.querySelector("."+n.classNames.activeSuggestion))&&vX(t,this.suggestionsContainer)}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return gX.default.createElement("li",{key:n,onMouseDown:t.handleClick.bind(null,n),onTouchStart:t.handleClick.bind(null,n),onMouseOver:t.handleHover.bind(null,n),className:n===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this));return 0!==n.length&&(t.shouldRenderSuggestions||this.shouldRenderSuggestions)(t.query)?gX.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},gX.default.createElement("ul",null," ",n," ")):null}}]),e}()).propTypes={query:mX.default.string.isRequired,selectedIndex:mX.default.number.isRequired,suggestions:mX.default.array.isRequired,handleClick:mX.default.func.isRequired,handleHover:mX.default.func.isRequired,minQueryLength:mX.default.number,shouldRenderSuggestions:mX.default.func,isFocused:mX.default.bool.isRequired,classNames:mX.default.object,labelField:mX.default.string.isRequired,renderSuggestion:mX.default.func},wX.defaultProps={minQueryLength:2},Jq.default=wX,xX={},SX={},EX=sX,CX=/[\\^$.*+?()[\]{}|]/g,kX=RegExp(CX.source),OX=function(e){return(e=EX(e))&&kX.test(e)?e.replace(CX,"\\$&"):e},Object.defineProperty(SX,"__esModule",{value:!0}),SX.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,DX.default)(t);return new RegExp("["+n+"]+")},SX.canDrag=function(e){return void 0!==e.moveTag&&!e.readOnly&&e.allowDragDrop},SX.canDrop=function(e){return!e.readOnly&&e.allowDragDrop},DX=(dY=OX)&&dY.__esModule?dY:{default:dY},$X={},_X={},Object.defineProperty(_X,"__esModule",{value:!0}),_X.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},_X.DEFAULT_PLACEHOLDER="Press enter to add new tag",_X.DEFAULT_LABEL_FIELD="text",_X.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"},_X.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"},Object.defineProperty($X,"__esModule",{value:!0}),NX=Jm(yy),jX=Jm(AE),PX=_X,TX=String.fromCharCode(215),(IX=function(e){var t,n=e.removeComponent,r=e.onRemove,o=e.className,i=e.tag,a=e.index,s=function(e){if(PX.KEYS.ENTER.includes(e.keyCode)||e.keyCode===PX.KEYS.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===PX.KEYS.BACKSPACE&&r(e)};return e.readOnly?NX.default.createElement("span",null):(t="Tag at index "+a+" with value "+i.id+" focussed. Press backspace to remove",n?NX.default.createElement(n,{onRemove:r,onKeyDown:s,className:o,"aria-label":t,tag:i,index:a}):NX.default.createElement("button",{onClick:r,onKeyDown:s,className:o,type:"button","aria-label":t},TX))}).propTypes={className:jX.default.string,onRemove:jX.default.func.isRequired,readOnly:jX.default.bool,removeComponent:jX.default.func,tag:jX.default.shape({id:jX.default.string.isRequired,className:jX.default.string,key:jX.default.string}),index:jX.default.number.isRequired},$X.default=IX,Object.defineProperty(xX,"__esModule",{value:!0}),AX=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n,r,o=[],i=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return&&n.return()}finally{if(a)throw s}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},FX=Qm(RX=yy),MX=Ote,LX=Qm(AE),BX=Qm(LD),zX=SX,HX=Qm($X),(UX=function(e){var t,n,r,o=(0,RX.useRef)(null),i=e.readOnly,a=e.tag,s=e.classNames,l=e.index,c=(0,MX.useDrag)((function(){return{type:"tag",collect:function(e){return{isDragging:!!e.isDragging()}},item:e,canDrag:function(){return(0,zX.canDrag)(e)}}})),u=AX(c,2),d=u[0].isDragging,p=u[1],f=(0,MX.useDrop)((function(){return{accept:"tag",drop:function(t){var n=t.index;n!==l&&e.moveTag(n,l)},canDrop:function(e){return(0,zX.canDrop)(e)}}}));return p((0,AX(f,2)[1])(o)),t=e.tag[e.labelField],r=d?0:1,FX.default.createElement("span",{ref:o,className:(0,BX.default)("tag-wrapper",s.tag,void 0===(n=a.className)?"":n),style:{opacity:r,cursor:(0,zX.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},t,FX.default.createElement(HX.default,{tag:e.tag,className:s.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:i,index:l}))}).propTypes={labelField:LX.default.string,onDelete:LX.default.func.isRequired,tag:LX.default.shape({id:LX.default.string.isRequired,className:LX.default.string,key:LX.default.string}),moveTag:LX.default.func,removeComponent:LX.default.func,onTagClicked:LX.default.func,classNames:LX.default.object,readOnly:LX.default.bool,index:LX.default.number.isRequired},UX.defaultProps={labelField:"text",readOnly:!1},xX.default=UX,Object.defineProperty(Eq,"__esModule",{value:!0}),Eq.KEYS=Eq.WithOutContext=Eq.WithContext=void 0,WX=Object.assign||function(e){var t,n,r;for(t=1;t1?(i=o[0],a=0,s=n[1]):(i=o[e-1],s=n[a=e-1]),i||(a=-1,i=this.textInput),r+=a>=0?" Tag at index "+a+" with value "+s.id+" focussed. Press backspace to remove":"Input focussed. Press enter to add a new tag",i.focus(),this.setState({ariaLiveStatus:r}))}},{key:"handleTagClick",value:function(e,t,n){var r=this,o=this.props,i=o.handleTagClick;o.editable&&this.setState({currentEditIndex:e,query:t[o.labelField]},(function(){r.tagInput.focus()})),i&&i(e,n)}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){this.props.handleInputFocus&&this.props.handleInputFocus(e.target.value),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){this.props.handleInputBlur&&(this.props.handleInputBlur(e.target.value),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1,currentEditIndex:-1})}},{key:"handleKeyDown",value:function(e){var t,n=this.state,r=n.query,o=n.selectedIndex,i=n.suggestions,a=n.selectionMode;e.keyCode===iK.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===iK.KEYS.TAB&&""===r||e.preventDefault(),""!==(t=a&&-1!==o?i[o]:eb({id:r},this.props.labelField,r))&&this.addTag(t)),e.keyCode===iK.KEYS.BACKSPACE&&""===r&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===iK.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:o<=0?i.length-1:o-1,selectionMode:!0})),e.keyCode===iK.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===i.length?-1:(o+1)%i.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t,n,r,o,i,a,s,l=this;this.props.allowAdditionFromPaste&&(e.preventDefault(),n=(t=e.clipboardData||window.clipboardData).getData("text"),r=this.props.maxLength,o=Math.min(void 0===r?n.length:r,n.length),i=t.getData("text").substr(0,o),a=(0,oK.buildRegExpFromDelimiters)(this.props.delimiters),s=i.split(a),(0,QX.default)(s).forEach((function(e){return l.addTag(eb({id:e},l.props.labelField,e))})))}},{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){this.props.handleDrag(this.props.tags[e],e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=WX({},iK.DEFAULT_CLASSNAMES,this.props.classNames),r=this.state.query.trim(),o=this.state.selectedIndex,i=this.state.suggestions,a=this.props,s=a.placeholder,l=a.clearAll,c=a.tags,u=a.inline?a.inputFieldPosition:iK.INPUT_FIELD_POSITIONS.BOTTOM,d=this.props.readOnly?null:qX.default.createElement("div",{className:n.tagInput},qX.default.createElement("input",WX({},a.inputProps,{ref:function(t){e.textInput=t},className:n.tagInputField,type:"text",placeholder:s,"aria-label":s,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:a.name,id:a.id,maxLength:a.maxLength,value:a.inputValue,"data-automation":"input","data-testid":"input"})),qX.default.createElement(eK.default,{query:r,suggestions:i,labelField:this.props.labelField,selectedIndex:o,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:n,renderSuggestion:this.props.renderSuggestion}),l&&c.length>0&&qX.default.createElement(ZX.default,{classNames:n,onClick:this.clearAll}));return qX.default.createElement("div",{className:(0,nK.default)(n.tags,"react-tags-wrapper"),ref:this.reactTagsRef},qX.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),u===iK.INPUT_FIELD_POSITIONS.TOP&&d,qX.default.createElement("div",{className:n.selected},t,u===iK.INPUT_FIELD_POSITIONS.INLINE&&d),u===iK.INPUT_FIELD_POSITIONS.BOTTOM&&d)}}]),e}(),aK.propTypes={placeholder:tK.default.string,labelField:tK.default.string,suggestions:tK.default.arrayOf(tK.default.shape({id:tK.default.string.isRequired})),delimiters:tK.default.arrayOf(tK.default.number),autofocus:tK.default.bool,inline:tK.default.bool,inputFieldPosition:tK.default.oneOf([iK.INPUT_FIELD_POSITIONS.INLINE,iK.INPUT_FIELD_POSITIONS.TOP,iK.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:tK.default.func,handleAddition:tK.default.func,onTagUpdate:tK.default.func,handleDrag:tK.default.func,handleFilterSuggestions:tK.default.func,handleTagClick:tK.default.func,allowDeleteFromEmptyInput:tK.default.bool,allowAdditionFromPaste:tK.default.bool,allowDragDrop:tK.default.bool,handleInputChange:tK.default.func,handleInputFocus:tK.default.func,handleInputBlur:tK.default.func,minQueryLength:tK.default.number,shouldRenderSuggestions:tK.default.func,removeComponent:tK.default.func,autocomplete:tK.default.oneOfType([tK.default.bool,tK.default.number]),readOnly:tK.default.bool,classNames:tK.default.object,name:tK.default.string,id:tK.default.string,maxLength:tK.default.number,inputValue:tK.default.string,tags:tK.default.arrayOf(tK.default.shape({id:tK.default.string.isRequired,className:tK.default.string})),allowUnique:tK.default.bool,renderSuggestion:tK.default.func,inputProps:tK.default.object,editable:tK.default.bool,clearAll:tK.default.bool,onClearAll:tK.default.func},aK.defaultProps={placeholder:iK.DEFAULT_PLACEHOLDER,labelField:iK.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0})),r.concat(o))},this.getQueryIndex=function(t,n){return n[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.resetAndFocusInput=function(){e.setState({query:""}),e.textInput&&(e.textInput.value="",e.textInput.focus())},this.updateSuggestions=function(){var t=e.state,n=t.selectedIndex,r=e.filteredSuggestions(t.query);e.setState({suggestions:r,selectedIndex:n>=r.length?r.length-1:n})},this.addTag=function(t){var n,r,o=e.props,i=o.labelField,a=o.allowUnique,s=e.state.currentEditIndex;t.id&&t[i]&&(n=o.tags.map((function(e){return e.id.toLowerCase()})),a&&n.indexOf(t.id.toLowerCase())>=0||(e.props.autocomplete&&(r=e.filteredSuggestions(t[i]),(1===e.props.autocomplete&&1===r.length||!0===e.props.autocomplete&&r.length)&&(t=r[0])),-1!==s&&e.props.onTagUpdate?e.props.onTagUpdate(s,t):e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1,currentEditIndex:-1}),e.resetAndFocusInput()))},this.clearAll=function(){e.props.onClearAll&&e.props.onClearAll()},this.getTagItems=function(){var t=e.props,n=t.tags,r=t.labelField,o=t.removeComponent,i=t.readOnly,a=t.allowDragDrop,s=WX({},iK.DEFAULT_CLASSNAMES,e.props.classNames),l=e.state,c=l.currentEditIndex,u=l.query,d=a?e.moveTag:null;return n.map((function(t,n){return qX.default.createElement(qX.default.Fragment,{key:n},c===n?qX.default.createElement("div",{className:s.editTagInput},qX.default.createElement("input",{ref:function(t){e.tagInput=t},onFocus:e.handleFocus,value:u,onChange:e.handleChange,onKeyDown:e.handleKeyDown,onBlur:e.handleBlur,className:s.editTagInputField,onPaste:e.handlePaste,"data-testid":"tag-edit"})):qX.default.createElement(rK.default,{index:n,tag:t,labelField:r,onDelete:e.handleDelete.bind(e,n),moveTag:d,removeComponent:o,onTagClicked:e.handleTagClick.bind(e,n,t),readOnly:i,classNames:s,allowDragDrop:a}))}))}},lK=function(e){var t=function(e,t){var n,r={};for(n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,[]);return qX.default.createElement(XX.DndProvider,{backend:KX.HTML5Backend},qX.default.createElement(aK,t))},cK=Eq.WithContext=lK,Eq.WithOutContext=aK,Eq.KEYS=iK.KEYS;const Ute={addPromptButton(e){const t=gradioApp().querySelector(`#${e}_tools > div.form`),n=gradioApp().querySelector(`#${e}_formatconvert`);if(!t||n)return;const r=Ute.createButton(`${e}_formatconvert`,"🪄",(()=>Ute.onClickConvert(e)));t.append(r)},convert(e){function t(e,t){for(let n=e;n0&&t(n.stack.pop(),n.multiplier)}else i.push([e,1])}for(const c of Object.keys(a))for(const e of a[c].stack)t(e,a[c].multiplier);0===i.length&&(i=[["",1]]);let s=0;for(;s+1e.map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/,|\.\|。/g,",").replaceAll(/“|‘|”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return Ute.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=>{const n=[];let r=0,o=!1;for(let i=0;i""!==e))})(e).filter((e=>!/^[\s,,]+$/.test(e))).filter(Boolean).sort(((e,t)=>e.includes("<")&&!t.includes("<")?1:t.includes("<")&&!e.includes("<")?-1:0))},createButton(e,t,n){const r=document.createElement("button");return r.id=e,r.type="button",r.innerHTML=t,r.title="Format prompt~🪄",r.className="lg secondary gradio-button tool svelte-cmf5ev",r.addEventListener("click",n),r},dispatchInputEvent(e){let t=new Event("input");Object.defineProperty(t,"target",{value:e}),e.dispatchEvent(t)},onClickConvert(e){const t=gradioApp().querySelector(`#${e}_prompt > label > textarea`),n=Ute.convert(t.value);t.value=null===n.match(/^masterpiece, best quality,/)?""+n:n,Ute.dispatchInputEvent(t);const r=gradioApp().querySelector(`#${e}_neg_prompt > label > textarea`),o=Ute.convert(r.value);r.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,Ute.dispatchInputEvent(r)},round:e=>Math.round(1e4*e)/1e4},Wte=e=>{const t=e;return t.className=t.text.includes("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}; } } `)),Vte=cK,qte=[188,13],Xte=yy.memo((({tags:e,setTags:t,type:n,setValue:r})=>{const o=`${n}_tag_editor`,[i,a]=yy.useState(!1),{styles:s}=Gte(n),l=yy.useCallback((n=>{const o=e.filter(((e,t)=>t!==n));t(o),r(o)}),[e]),c=yy.useCallback((n=>{const o=[...e,Wte(n)];t(o),r(o)}),[e]),u=yy.useCallback(((n,o,i)=>{const a=[...e];a.splice(o,1),a.splice(i,0,Wte(n)),t(a),r(a)}),[e]),d=yy.useCallback(((n,o)=>{const i=[...e];i[n]=Wte(o),t(i),r(i)}),[e]);return yy.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))}e++}),1e3)}catch(e){}}),[i]),ky.jsx("div",{className:s,children:ky.jsx(Vte,{delimiters:qte,editable:!0,handleAddition:c,handleDelete:l,handleDrag:u,id:o,inline:!0,inputFieldPosition:"bottom",onTagUpdate:d,tags:e})})})),Kte=yy.memo((({type:e})=>{const[t,n]=yy.useState([]),{styles:r}=Lee(),{t:o}=Xg(),i="positive"===e?"[id$='2img_prompt'] textarea":"[id$='2img_neg_prompt'] textarea",a=yy.useCallback((()=>{try{const e=get_uiCurrentTabContent().querySelector(i);e&&n((e=>{const t=Ute.convertStr(e);return Ute.convertStr2Array(t).map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/,|\.\|。/g,",").replaceAll(/“|‘|”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return Ute.convertStr2Array(t).join(", ")})).map((e=>Wte({id:e,text:e})))})(e.value))}catch(e){}}),[]),s=yy.useCallback((()=>{try{const e=t.map((e=>e.text)).join(", "),n=get_uiCurrentTabContent().querySelector(i);n&&(n.value=e),updateInput(n)}catch(e){}}),[t,e]),l=yy.useCallback((e=>{try{const t=get_uiCurrentTabContent().querySelector(i);t&&(t.value=e.map((e=>e.text)).join(", ")),updateInput(t)}catch(t){}}),[]);return ky.jsxs("div",{className:r.promptView,children:[ky.jsx(Xte,{setTags:n,setValue:l,tags:t,type:e}),ky.jsxs("div",{className:r.buttonGroup,children:[ky.jsx("button",{className:"lg secondary gradio-button tool svelte-1ipelgc",onClick:a,title:o("loadPrompt"),type:"button",children:"🔄"}),ky.jsx("button",{className:"lg secondary gradio-button tool svelte-1ipelgc",onClick:s,title:o("setPrompt"),type:"button",children:"➡️"})]})]})})),Yte=Kte,Jte=yy.memo((()=>{const{styles:e}=Lee(),{t:t}=Xg();return ky.jsxs("div",{className:e.view,children:[ky.jsx("span",{style:{marginBottom:-10},children:t("positive")}),ky.jsx(Yte,{type:"positive"}),ky.jsx("span",{style:{marginBottom:-10},children:t("negative")}),ky.jsx(Yte,{type:"negative"})]})})),Qte=Jte,Zte={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"}},ene={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%)"}},tne={kitchen:Zte.dark.colorPrimary,...tG},nne=[tne.kitchen,...nG],rne={kitchen:ene.dark.colorNeutral,...rG},one=[rne.kitchen,...oG],ine=(e,t)=>{if(!t)return"";let n=Object.entries("primary"===e?tne:rne).find((e=>e[1]===t));return null==n?void 0:n[0]},ane=GA((({css:e,responsive:t})=>e` ${t.mobile} { .ant-row.ant-form-item-row { flex-direction: column !important; } } `)),sne=yy.memo((()=>{const e=_ee(Oee,A8),{onSetSetting:t,localeOptions:n}=_ee((e=>({localeOptions:e.localeOptions,onSetSetting:e.onSetSetting})),Si),[r,o]=yy.useState(e),[i,a]=yy.useState(e.primaryColor||void 0),[s,l]=yy.useState(e.neutralColor||void 0),{styles:c}=ane(),{t:u}=Xg(),d=yy.useCallback((()=>{t(See),location.reload()}),[]),p=yy.useCallback((e=>{t({...e,neutralColor:s,primaryColor:i}),location.reload()}),[i,s]),f=yy.useMemo((()=>({children:[{children:ky.jsx(B2,{options:n}),desc:u("settingLanguageDesc"),label:u("settingLanguage"),name:"i18n"},{children:ky.jsx(G6,{}),desc:u("settingReduceAnimationDesc"),label:u("settingReduceAnimation"),name:"liteAnimation",valuePropName:"checked"},{children:ky.jsx(n7,{activeColor:i?tne[i]:void 0,colors:nne,onSelect:e=>a(ine("primary",e))}),desc:u("settingPrimaryColorDesc"),label:u("settingPrimaryColor")},{children:ky.jsx(n7,{activeColor:s?rne[s]:void 0,colors:one,onSelect:e=>l(ine("neutral",e))}),desc:u("settingNeutralColorDesc"),label:u("settingNeutralColor")},{children:ky.jsx(_6,{options:[{label:u("lobe"),value:"lobe"},{label:u("kitchen"),value:"kitchen"},{label:u("custom"),value:"custom"}]}),desc:u("settingLogoTypeDesc"),label:u("settingLogoType"),name:"logoType"},{children:ky.jsx(b3,{}),desc:u("settingCustomLogoDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomLogo"),name:"logoCustomUrl"},{children:ky.jsx(b3,{}),desc:u("settingCustomTitleDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomTitle"),name:"logoCustomTitle"},{children:ky.jsx(Ree,{logoCustomTitle:r.logoCustomTitle,logoCustomUrl:r.logoCustomUrl}),divider:!1,hidden:"custom"!==r.logoType,label:u("settingLogoPreview")},{children:ky.jsx(G6,{}),desc:u("settingSvgIconsDesc"),label:u("settingSvgIcons"),name:"svgIcon",valuePropName:"checked"},{children:ky.jsx(G6,{}),desc:u("settingCustomFontDesc"),label:u("settingCustomFont"),name:"enableWebFont",valuePropName:"checked"}],icon:OJ,title:u("settingGroupTheme")})),[i,s,r.logoType,r.logoCustomTitle,r.logoCustomUrl]),h=yy.useMemo((()=>({children:[{children:ky.jsx(_6,{options:[{label:u("scroll"),value:"scroll"},{label:u("resizable"),value:"resizable"}]}),desc:u("settingPromptDisplayModeDesc"),label:u("settingPromptDisplayMode"),name:"promptTextareaType"},{children:ky.jsx(G6,{}),desc:u("settingPromptHighlightDesc"),label:u("settingPromptHighlight"),name:"enableHighlight",valuePropName:"checked"},{children:ky.jsx(G6,{}),desc:u("settingPromptEditorDesc"),label:u("settingPromptEditor"),name:"promptEditor",valuePropName:"checked"}],icon:IJ,title:u("settingGroupPromptTextarea")})),[]),g=yy.useMemo((()=>({children:[{children:ky.jsx(G6,{}),desc:u("settingSplitPreviewerDesc"),label:u("settingSplitPreviewer"),name:"layoutSplitPreview",valuePropName:"checked"},{children:ky.jsx(G6,{}),desc:u("settingHideFooterDesc"),label:u("settingHideFooter"),name:"layoutHideFooter",valuePropName:"checked"}],icon:SJ,title:u("settingGroupLayout")})),[]),m=yy.useMemo((()=>({children:[{children:ky.jsx(G6,{}),desc:u("settingQuickSettingSidebarEnableDesc"),label:u("settingQuickSettingSidebarEnable"),name:"enableSidebar",valuePropName:"checked"},{children:ky.jsx(G6,{}),desc:u("settingQuickSettingSidebarDefaultExpandDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultExpand"),name:"sidebarExpand",valuePropName:"checked"},{children:ky.jsx(_6,{options:[{label:u("fixed"),value:"fixed"},{label:u("float"),value:"float"}]}),desc:u("settingQuickSettingSidebarDisplayModeDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDisplayMode"),name:"sidebarFixedMode"},{children:ky.jsx(n3,{}),desc:u("settingQuickSettingSidebarDefaultWidthDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultWidth"),name:"sidebarWidth"}],icon:DJ,title:u("settingGroupQuickSettingSidebar")})),[r.enableSidebar]),b=yy.useMemo((()=>({children:[{children:ky.jsx(G6,{}),desc:u("settingExtraNetworkSidebarEnableDesc"),label:u("settingExtraNetworkSidebarEnable"),name:"enableExtraNetworkSidebar",valuePropName:"checked"},{children:ky.jsx(_6,{options:[{label:u("fixed"),value:"fixed"},{label:u("float"),value:"float"}]}),desc:u("settingExtraNetworkSidebarDisplayModeDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDisplayMode"),name:"extraNetworkFixedMode"},{children:ky.jsx(G6,{}),desc:u("settingExtraNetworkSidebarDefaultExpandDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultExpand"),name:"extraNetworkSidebarExpand",valuePropName:"checked"},{children:ky.jsx(n3,{}),desc:u("settingExtraNetworkSidebarDefaultWidthDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultWidth"),name:"extraNetworkSidebarWidth"},{children:ky.jsx(n3,{}),desc:u("settingExtraNetworkSidebarDefaultCardSizeDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultCardSize"),name:"extraNetworkCardSize"}],icon:_J,title:u("settingGroupExtraNetworkSidebar")})),[r.enableExtraNetworkSidebar]);return ky.jsx(U8,{className:c,footer:ky.jsxs(ky.Fragment,{children:[ky.jsx(O0,{htmlType:"button",onClick:d,style:{borderRadius:4},children:u("settingButtonReset")}),ky.jsx(O0,{htmlType:"submit",style:{borderRadius:4},type:"primary",children:u("settingButtonSubmit")})]}),initialValues:e,items:[f,h,g,m,b],onFinish:p,onValuesChange:(e,t)=>o(t)})})),lne=sne,cne=yy.memo((({open:e,onCancel:t})=>{const{t:n}=Xg();return ky.jsx(v7,{onCancel:t,open:e,title:ky.jsxs(ky.Fragment,{children:[ky.jsx("a",{href:b7,rel:"noreferrer",target:"_blank",children:ky.jsx(p8,{icon:pJ,title:"Setting Documents"})}),ky.jsxs(_3,{children:[n("themeSetting"),ky.jsx(Nee,{})]})]}),children:ky.jsx(lne,{})})})),une=cne,dne="%[a-f0-9]{2}",pne=new RegExp("("+dne+")|([^%]+?)","gi"),fne=new RegExp("("+dne+")+","gi"),hne=e=>null==e,gne=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),mne=Symbol("encodeFragmentIdentifier"),bne=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(e,t,n){return mb(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:db,parse:pb,parseUrl:hb,pick:mb,stringify:fb,stringifyUrl:gb},Symbol.toStringTag,{value:"Module"})),yne=yy.memo((({children:e})=>{const{onSetThemeMode:t,themeMode:n}=_ee((e=>({onInit:e.onInit,onSetThemeMode:e.onSetThemeMode,themeMode:e.themeMode})),Si),r=_ee(Oee,A8),o=(()=>{const[e,t]=yy.useState((()=>{try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}})());return yy.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),n=e=>{t(e.matches)};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}),[]),e})();yy.useEffect((()=>{const e=String(bne.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=yy.useCallback((()=>{let e={},t={};return r.primaryColor&&(e="kitchen"===r.primaryColor?Zte[n]:xW({appearance:n,scale:lH[r.primaryColor],type:"Primary"})),r.neutralColor&&(t="kitchen"===r.neutralColor?ene[n]:SW({appearance:n,scale:PW[r.neutralColor]})),{...e,...t}}),[r.primaryColor,r.neutralColor,n]);return r&&ky.jsx(a7,{customToken:i,enableWebfonts:r.enableWebFont,themeMode:n,children:e})})),vne={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}};class wne{constructor(e,t){this.init(e,arguments.length>1&&void 0!==t?t:{})}init(e,t){let n=arguments.length>1&&void 0!==t?t:{};this.prefix=n.prefix||"i18next:",this.logger=e||vne,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{e(...n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}dK={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Sne=[" ",",","?","!",";"];class Ene extends xne{constructor(e,t){let n=arguments.length>1&&void 0!==t?t:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,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,r){let o=arguments.length>3&&void 0!==r?r:{};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[e,t];n&&"string"!=typeof n&&(s=s.concat(n)),n&&"string"==typeof n&&(s=s.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(s=e.split("."));const l=xb(this.data,s);return l||!a||"string"!=typeof n?l:kb(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r,o){let i=arguments.length>4&&void 0!==o?o:{silent:!1};const a=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let s=[e,t];n&&(s=s.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(s=e.split("."),r=t,t=s[1]),this.addNamespaces(t),wb(this.data,s,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{silent:!1};for(const i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i){let a=arguments.length>5&&void 0!==i?i:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),r=n,n=t,t=s[1]),this.addNamespaces(t);let l=xb(this.data,s)||{};r?Sb(l,n,o):l={...l,...n},wb(this.data,s,l),a.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}}pK={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 Cne={};class kne extends xne{constructor(e,t){let n=arguments.length>1&&void 0!==t?t:{};super(),function(e,t,n){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{t[e]&&(n[e]=t[e])}))}(0,e,this),this.options=n,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=uK.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t){if(null==e)return!1;const n=this.resolve(e,arguments.length>1&&void 0!==t?t:{interpolation:{}});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=Sne.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=new RegExp(`(${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),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s}:`${s}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s}:i}const u=this.resolve(e,t);let d=u&&u.res;const p=u&&u.usedKey||i,f=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(p,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?f:p;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,p=kne.hasDefaultValue(t),f=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=t[`defaultValue${f}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=i);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,b=p&&g!==d&&this.options.updateMissing;if(a||r||b){if(this.logger.log(b?"updateKey":"missingKey",l,s,i,b?g: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{const o=p&&r!==d?r:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,o,b,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||g)}))})):r(e,i,g))}d=this.extendTranslation(d,e,t,u,n),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,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 s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(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;a1&&void 0!==t?t:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(n))return;const t=this.extractFromKey(e,s),l=t.key;r=l;let c=t.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==s.count&&"string"!=typeof s.count,d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);c.forEach((e=>{this.isValidLookup(n)||(a=e,!Cne[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Cne[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),f.forEach((t=>{if(this.isValidLookup(n))return;i=t;const r=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(r,l,t,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(t,s.count,s));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(r.push(l+e),s.ordinal&&0===e.indexOf(o)&&r.push(l+e.replace(o,this.options.pluralSeparator)),d&&r.push(l+n)),p){const t=`${l}${this.options.contextSeparator}${s.context}`;r.push(t),u&&(r.push(t+e),s.ordinal&&0===e.indexOf(o)&&r.push(t+e.replace(o,this.options.pluralSeparator)),d&&r.push(t+n))}}let a;for(;a=r.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(t,e,a,s))})))}))})),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}class One{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=uK.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Ob(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=Ob(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]=Db(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]=Db(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Db(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:0===e.indexOf(n)?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 Dne=[{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}],$ne={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(){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 _ne=["v1","v2","v3"],Nne=["v4"],jne={zero:0,one:1,two:2,few:3,many:4,other:5};class Pne{constructor(e,t){let n=arguments.length>1&&void 0!==t?t:{};this.languageUtils=e,this.options=n,this.logger=uK.create("pluralResolver"),this.options.compatibilityJSON&&!Nne.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 Dne.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:$ne[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e,t){let n=arguments.length>1&&void 0!==t?t:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Ob(e),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e,t){const n=this.getRule(e,arguments.length>1&&void 0!==t?t:{});return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t,n){return this.getSuffixes(e,arguments.length>2&&void 0!==n?n:{}).map((e=>`${t}${e}`))}getSuffixes(e,t){let n=arguments.length>1&&void 0!==t?t:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(((e,t)=>jne[e]-jne[t])).map((e=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):r.numbers.map((t=>this.getSuffix(e,t,n))):[]}getSuffix(e,t,n){let r=arguments.length>2&&void 0!==n?n:{};const o=this.getRule(e,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:this.getSuffixRetroCompatible(o,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.plurals(e.noAbs?t: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!_ne.includes(this.options.compatibilityJSON)}}class Tne{constructor(e){let t=arguments.length>0&&void 0!==e?e:{};this.logger=uK.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(e=>e),this.init(t)}init(e){let t=arguments.length>0&&void 0!==e?e:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=void 0!==n.escape?n.escape:Cb,this.escapeValue=void 0===n.escapeValue||n.escapeValue,this.useRawValueToEscape=void 0!==n.useRawValueToEscape&&n.useRawValueToEscape,this.prefix=n.prefix?Eb(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Eb(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Eb(n.nestingPrefix):n.nestingPrefixEscaped||Eb("$t("),this.nestingSuffix=n.nestingSuffix?Eb(n.nestingSuffix):n.nestingSuffixEscaped||Eb(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=void 0!==n.alwaysFormat&&n.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){this.regexp=new RegExp(`${this.prefix}(.+?)${this.suffix}`,"g"),this.regexpUnescape=new RegExp(`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`,"g"),this.nestingRegexp=new RegExp(`${this.nestingPrefix}(.+?)${this.nestingSuffix}`,"g")}interpolate(e,t,n,r){function o(e){return e.replace(/\$/g,"$$$$")}let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=$b(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($b(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=>o(e)},{regex:this.regexp,safeValue:e=>o(this.escapeValue?this.escape(e):e)}].forEach((t=>{for(s=0;i=t.regex.exec(e);){const n=i[1].trim();if(a=c(n),void 0===a)if("function"==typeof u){const t=u(e,i,r);a="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(d){a=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=""}else"string"==typeof a||this.useRawValueToEscape||(a=yb(a));const o=t.safeValue(a);if(e=e.replace(i[0],o),d?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,s++,s>=this.maxReplaces)break}})),e}nest(e,t,n){function r(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,a);const i=o.match(/'/g),s=o.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a={...t,...a})}catch(fY){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,fY),`${e}${n}${o}`}return delete a.defaultValue,e}let o,i,a,s=arguments.length>2&&void 0!==n?n:{};for(;o=this.nestingRegexp.exec(e);){let n=[];a={...s},a=a.replace&&"string"!=typeof a.replace?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){const e=o[1].split(this.formatSeparator).map((e=>e.trim()));o[1]=e.shift(),n=e,l=!0}if(i=t(r.call(this,o[1].trim(),a),a),i&&o[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=yb(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),l&&(i=n.reduce(((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:o[1].trim()})),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}class Ine{constructor(e){let t=arguments.length>0&&void 0!==e?e:{};this.logger=uK.create("formatter"),this.options=t,this.formats={number:_b(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:_b(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:_b(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:_b(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:_b(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(t)}init(e,t){const n=(arguments.length>1&&void 0!==t?t:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=_b(t)}format(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:r,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[r]){let t=e;try{const a=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{};t=this.formats[r](e,a.locale||a.lng||o.locale||o.lng||n,{...i,...o,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${r}`),e}),e)}}class Ane extends xne{constructor(e,t,n,r){let o=arguments.length>3&&void 0!==r?r:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=uK.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(e,t,n,r){const o={},i={},a={},s={};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===s[t]&&(s[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(s)}}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),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n){const{obj:r,k:o}=vb(e,t,Object);r[o]=r[o]||[],r[o].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,r,o,i){let a=arguments.length>3&&void 0!==r?r:0,s=arguments.length>4&&void 0!==o?o:this.retryTimeout,l=arguments.length>5?i:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:a,wait:s,callback:l});this.readingCalls++;const c=(r,o)=>{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)}r&&o&&a{this.read.call(this,e,t,n,a+1,2*s,l)}),s):l(r,o)},u=this.backend[n].bind(this.backend);if(2!==u.length)return u(e,t,c);try{const n=u(e,t);n&&"function"==typeof n.then?n.then((e=>c(null,e))).catch(c):c(null,n)}catch(d){c(d)}}prepareLoading(e,t,n,r){let o=arguments.length>2&&void 0!==n?n:{},i=arguments.length>3?r:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const a=this.queueLoad(e,t,o,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.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,t){let n=arguments.length>1&&void 0!==t?t:"";const r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,((t,r)=>{t&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,t),!t&&r&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,r),this.loaded(e,t,r)}))}saveMissing(e,t,n,r,o,i,a){let s=arguments.length>5&&void 0!==i?i:{},l=arguments.length>6&&void 0!==a?a:()=>{};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 i={...s,isUpdate:o},a=this.backend.create.bind(this.backend);if(a.length<6)try{let o;o=5===a.length?a(e,t,n,r,i):a(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>l(null,e))).catch(l):l(null,o)}catch(c){l(c)}else a(e,t,n,r,l,i)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}class Rne extends xne{constructor(e,t){let n=arguments.length>0&&void 0!==e?e:{},r=arguments.length>1?t:void 0;var o;if(super(),this.options=jb(n),this.services={},this.logger=uK,this.modules={external:[]},o=this,Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((e=>{"function"==typeof o[e]&&(o[e]=o[e].bind(o))})),r&&!this.isInitialized&&!n.isClone){if(!this.options.initImmediate)return this.init(n,r),this;setTimeout((()=>{this.init(n,r)}),0)}}init(e,t){function n(e){return e?"function"==typeof e?new e:e:null}var r=this;let o=arguments.length>0&&void 0!==e?e:{},i=arguments.length>1?t:void 0;"function"==typeof o&&(i=o,o={}),!o.defaultNS&&!1!==o.defaultNS&&o.ns&&("string"==typeof o.ns?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const a=Nb();if(this.options={...a,...this.options,...jb(o)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),void 0!==o.keySeparator&&(this.options.userDefinedKeySeparator=o.keySeparator),void 0!==o.nsSeparator&&(this.options.userDefinedNsSeparator=o.nsSeparator),!this.options.isClone){let e;uK.init(this.modules.logger?n(this.modules.logger):null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=Ine);const t=new One(this.options);this.store=new Ene(this.options.resources,this.options);const o=this.services;o.logger=uK,o.resourceStore=this.store,o.languageUtils=t,o.pluralResolver=new Pne(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format||(o.formatter=n(e),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new Tne(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new Ane(n(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,i||(i=Pb),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((e=>{this[e]=function(){return r.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return r.store[e](...arguments),r}}));const s=bb(),l=()=>{const e=(e,t)=>{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),s.resolve(t),i(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?l():setTimeout(l,0),s}loadResources(e,t){let n=arguments.length>1&&void 0!==t?t:Pb;const r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>t(e))),this.options.preload&&this.options.preload.forEach((e=>t(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)}))}else n(null)}reloadResources(e,t,n){const r=bb();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Pb),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&&pK.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-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=bb();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,s=new Array(a>2?a-2:0),l=2;l`${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,t){let n=arguments.length>1&&void 0!==t?t:{};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 r=n.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(n.precheck){const e=n.precheck(this,a);if(void 0!==e)return e}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}loadNamespaces(e,t){const n=bb();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=bb();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));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 One(Nb());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(e,t){return new Rne(arguments.length>0&&void 0!==e?e:{},arguments.length>1?t:void 0)}cloneInstance(e,t){let n=arguments.length>0&&void 0!==e?e:{},r=arguments.length>1&&void 0!==t?t:Pb;const o=n.forkResourceStore;o&&delete n.forkResourceStore;const i={...this.options,...n,isClone:!0},a=new Rne(i);return void 0===n.debug&&void 0===n.prefix||(a.logger=a.logger.clone(n)),["store","services","language"].forEach((e=>{a[e]=this[e]})),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},o&&(a.store=new Ene(this.store.data,i),a.services.resourceStore=a.store),a.translator=new kne(a.services,i),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;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");this._initBody(o)}function p(e){var t=new FormData;return e.trim().split("&").forEach((function(e){var n,r,o;e&&(r=(n=e.split("=")).shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," "),t.append(decodeURIComponent(r),decodeURIComponent(o)))})),t}function f(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new i(t.headers),this.url=t.url||"",this._initBody(e)}function h(t,n){return new Promise((function(r,o){function a(){s.abort()}var s,l=new d(t,n);if(l.signal&&l.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));(s=new XMLHttpRequest).onload=function(){var e,t,n,o={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new i,n=e.replace(/\r?\n[\t ]+/g," "),n.split(/\r?\n/).forEach((function(e){var n,r=e.split(":"),o=r.shift().trim();o&&(n=r.join(":").trim(),t.append(o,n))})),t)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL"),r(new f("response"in s?s.response:s.responseText,o))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(l.method,l.url,!0),"include"===l.credentials?s.withCredentials=!0:"omit"===l.credentials&&(s.withCredentials=!1),"responseType"in s&&x&&(s.responseType="blob"),l.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),l.signal&&(l.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&l.signal.removeEventListener("abort",a)}),s.send(void 0===l._bodyInit?null:l._bodyInit)}))}var g,m,b,y,v="URLSearchParams"in r,w="Symbol"in r&&"iterator"in Symbol,x="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(fY){return!1}}(),S="FormData"in r,E="ArrayBuffer"in r;E&&(g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1}),i.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+", "+r:r},i.prototype.delete=function(e){delete this.map[t(e)]},i.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},i.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},i.prototype.set=function(e,r){this.map[t(e)]=n(r)},i.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},i.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),o(e)},i.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),o(e)},i.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),o(e)},w&&(i.prototype[Symbol.iterator]=i.prototype.entries),b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},u.call(d.prototype),u.call(f.prototype),f.prototype.clone=function(){return new f(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},f.error=function(){var e=new f(null,{status:0,statusText:""});return e.type="error",e},y=[301,302,303,307,308],f.redirect=function(e,t){if(-1===y.indexOf(t))throw new RangeError("Invalid status code");return new f(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(C){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}h.polyfill=!0,r.fetch||(r.fetch=h,r.Headers=i,r.Request=d,r.Response=f),e.Headers=i,e.Request=d,e.Response=f,e.fetch=h,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill,(t=(n=i).fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t),bK.exports;var e,t,n,r,o,i}()).default&&(r=r.default),t.default=r,e.exports=t.default)}(mK={exports:{}},mK.exports);const Mne=t(vK=mK.exports),Lne=e({__proto__:null,default:Mne},[vK]);"function"==typeof fetch&&(wK="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),Ab()&&("undefined"!=typeof global&&global.XMLHttpRequest?xK=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(xK=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?SK=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(SK=window.ActiveXObject)),wK||!Lne||xK||SK||(wK=Mne||Lne),"function"!=typeof wK&&(wK=void 0),EK=function(e,t){var n,r;if(t&&"object"===Fb(t)){for(r in n="",t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},CK=function(e,t,n){var r=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)};"function"==typeof fetch?fetch(e,t).then(r).catch(n):wK(e,t).then(r).catch(n)},kK=!1,OK=function(e,t,n,r){var o,i,a;e.queryStringParams&&(t=EK(t,e.queryStringParams)),o=Ib({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders),n&&(o["Content-Type"]="application/json"),i="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=Ib({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},kK?{}:i);try{CK(t,a,r)}catch(fY){if(!i||0===Object.keys(i).length||!fY.message||fY.message.indexOf("not implemented")<0)return r(fY);try{Object.keys(i).forEach((function(e){delete a[e]})),CK(t,a,r),kK=!0}catch(s){r(s)}}},DK=function(e,t,n,r){var o,i,a;n&&"object"===Fb(n)&&(n=EK("",n).slice(1)),e.queryStringParams&&(t=EK(t,e.queryStringParams));try{if((o=xK?new xK:new SK("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"),i="function"==typeof(i=e.customHeaders)?i():i)for(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(fY){console}},$K=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},wK&&0!==t.indexOf("file:")?OK(e,t,n,r):Ab()||"function"==typeof ActiveXObject?DK(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))},_K=function(){return{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 function(e,t,n){return(t=Lb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n||"")},parseLoadPayload:function(){},request:$K,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},(NK=function(){function e(t,n,r){var o=arguments.length>1&&void 0!==n?n:{},i=arguments.length>2&&void 0!==r?r:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=o,this.allOptions=i,this.type="backend",this.init(t,o,i)}var t,n;return t=e,n=[{key:"init",value:function(e,t,n){var r=this,o=arguments.length>1&&void 0!==t?t:{},i=arguments.length>2&&void 0!==n?n:{};this.services=e,this.options=Ib(o,this.options||{},_K()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval((function(){return r.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,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=function(e){return!!e&&"function"==typeof e.then}(i=s)?i:Promise.resolve(i)).then((function(i){if(!i)return o(null,{});var s=a.services.interpolator.interpolate(i,{lng:e.join("+"),ns:n.join("+")});a.loadUrl(s,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this,i=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof r?[r]:r);this.options.request(this.options,e,i,(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 s,l;try{s="string"==typeof a.data?o.options.parse(a.data,n,r):a.data}catch(fY){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,o){var i,a,s,l,c=this;this.options.addPath&&("string"==typeof e&&(e=[e]),i=this.options.parsePayload(t,n,r),a=0,s=[],l=[],e.forEach((function(n){var r,u=c.options.addPath;"function"==typeof c.options.addPath&&(u=c.options.addPath(n,t)),r=c.services.interpolator.interpolate(u,{lng:n,ns:t}),c.options.request(c.options,r,i,(function(t,n){a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)}))})))}},{key:"reload",value:function(){var e,t,n=this,r=this.services,o=r.backendConnector,i=r.languageUtils,a=r.logger,s=o.language;s&&"cimode"===s.toLowerCase()||(e=[],(t=function(t){i.toResolveHierarchy(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})(s),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return t(e)})),e.forEach((function(e){n.allOptions.ns.forEach((function(t){o.read(e,t,"read",null,null,(function(n,r){n&&a.warn("loading namespace ".concat(t," for language ").concat(e," failed"),n),!n&&r&&a.log("loaded namespace ".concat(t," for language ").concat(e),r),o.loaded("".concat(e,"|").concat(t),n,r)}))}))})))}}],n&&function(e,t){var n,r;for(n=0;n{const i=`${o}-highlighter`;return{container:e` pointer-events: none; position: absolute; overflow-x: hidden; overflow-y: auto; padding: 8px; pre { font-family: ${t.fontFamilyCode} !important; font-size: 13px !important; line-height: 1.5 !important; color: ${t.colorSuccess}; text-overflow: ellipsis !important; word-wrap: break-word; white-space: pre-wrap; 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; padding: 0; .shiki { overflow-x: auto; margin: 0; padding: 0; background: none !important; } `)}}));"undefined"!=typeof globalThis?globalThis:void 0!=={}||("undefined"!=typeof global?global:"undefined"!=typeof self&&self),pY=()=>{return e={770:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const o=r(n(418));let i=null,a=!1;class s{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n=55296&&o<=56319&&n+1=56320&&t<=57343&&(i=65536+(o-55296<<10)|t-56320,a=!0)}t+=i<=127?1:i<=2047?2:i<=65535?3:4,a&&n++}return t}constructor(e){const t=e.length,n=s._utf8ByteLength(e),r=n!==t,o=r?new Uint32Array(t+1):null;r&&(o[t]=n);const i=r?new Uint32Array(n+1):null;r&&(i[n]=t);const a=new Uint8Array(n);let l=0;for(let s=0;s=55296&&n<=56319&&s+1=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?i[l+0]=s:c<=2047?(i[l+0]=s,i[l+1]=s):c<=65535?(i[l+0]=s,i[l+1]=s,i[l+2]=s):(i[l+0]=s,i[l+1]=s,i[l+2]=s,i[l+3]=s)),c<=127?a[l++]=c:c<=2047?(a[l++]=192|(1984&c)>>>6,a[l++]=128|(63&c)>>>0):c<=65535?(a[l++]=224|(61440&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0):(a[l++]=240|(1835008&c)>>>18,a[l++]=128|(258048&c)>>>12,a[l++]=128|(4032&c)>>>6,a[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!i)throw new Error("Must invoke loadWASM first.");this._onigBinding=i,this.content=e;const t=new s(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=i._omalloc(1e4)),l._sharedPtrInUse=!0,i.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(i)}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===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class c{constructor(e){if(!i)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let l=0,c=e.length;lWebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}var s;return d=new Promise(((e,t)=>{r=e,a=t})),function(e,t,n,r){(0,o.default)({print:t,instantiateWasm:(t,n)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>n(e.instance)),r),{}}}).then((e=>{i=e,n()}))}(t,n,r,a),d},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){a=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document,function(e){function t(e,t,n){var r,o,i,a,s,l,c;for(r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&x)return x.decode(e.subarray(t,o));for(i="";t>10,56320|1023&c))):i+=String.fromCharCode((31&a)<<6|s)):i+=String.fromCharCode(a);return i}function n(e){y=e,I.HEAP8=new Int8Array(e),I.HEAP16=new Int16Array(e),I.HEAP32=new Int32Array(e),I.HEAPU8=v=new Uint8Array(e),I.HEAPU16=new Uint16Array(e),I.HEAPU32=w=new Uint32Array(e),I.HEAPF32=new Float32Array(e),I.HEAPF64=new Float64Array(e)}function r(e){I.onAbort&&I.onAbort(e),m(e="Aborted("+e+")"),b=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw u(t),t}function o(e){return e.startsWith(_)}function i(e){for(;e.length>0;)e.shift()(I)}function a(e){try{return h.grow(e-y.byteLength+65535>>>16),n(h.buffer),1}catch(t){}}function s(e,n){var r=N[e];0===n||10===n?((1===e?g:m)(t(r,0)),r.length=0):r.push(n)}function l(){function e(){j||(j=!0,I.calledRun=!0,b||(i(E),c(I),I.onRuntimeInitialized&&I.onRuntimeInitialized(),function(){if(I.postRun)for("function"==typeof I.postRun&&(I.postRun=[I.postRun]);I.postRun.length;)e=I.postRun.shift(),C.unshift(e);var e;i(C)}()))}k>0||(function(){if(I.preRun)for("function"==typeof I.preRun&&(I.preRun=[I.preRun]);I.preRun.length;)e=I.preRun.shift(),S.unshift(e);var e;i(S)}(),k>0||(I.setStatus?(I.setStatus("Running..."),setTimeout((function(){setTimeout((function(){I.setStatus("")}),1),e()}),1)):e()))}var c,u,d,p,f,h,g,m,b,y,v,w,x,S,E,C,k,O,D,$,_,N,j,P,T,I=void 0!==(e=e||{})?e:{};if(I.ready=new Promise((function(e,t){c=e,u=t})),p=Object.assign({},I),d=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e){e||r(void 0)}("object"==typeof t),t)},"undefined"!=typeof scriptArgs&&scriptArgs,"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print),g=I.print||void 0,m=I.printErr||void 0,Object.assign(I,p),p=null,I.wasmBinary&&(f=I.wasmBinary),"object"!=typeof WebAssembly&&r("no native wasm support detected"),b=!1,x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,S=[],E=[],C=[],k=0,O=null,_="data:application/octet-stream;base64,",o(D="onig.wasm")||(T=D,D=I.locateFile?I.locateFile(T,""):""+T),$="undefined"!=typeof dateNow?dateNow:()=>performance.now(),N=[null,[],[]],P={emscripten_get_now:$,emscripten_memcpy_big:function(e,t,n){v.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n,r,o=v.length,i=2147483648;if((e>>>=0)>i)return!1;for(n=1;n<=4;n*=2)if(r=o*(1+.2/n),r=Math.min(r,e+100663296),a(Math.min(i,(t=Math.max(e,r))+(65536-t%65536)%65536)))return!0;return!1},fd_write:function(e,t,n,r){var o,i,a,l,c;for(o=0,i=0;i>2],l=w[t+4>>2],t+=8,c=0;c>2]=o,0}},function(){function e(e){I.asm=e.exports,n((h=I.asm.memory).buffer),function(e){E.unshift(e)}(I.asm.__wasm_call_ctors),function(){if(k--,I.monitorRunDependencies&&I.monitorRunDependencies(k),0==k&&O){var e=O;O=null,e()}}()}function t(t){e(t.instance)}function i(e){return Promise.resolve().then((function(){return function(e){try{if(e==D&&f)return new Uint8Array(f);if(d)return d(e);throw"both async and sync fetching of the wasm failed"}catch(t){r(t)}}(D)})).then((function(e){return WebAssembly.instantiate(e,a)})).then((function(e){return e})).then(e,(function(e){m("failed to asynchronously prepare wasm: "+e),r(e)}))}var a={env:P,wasi_snapshot_preview1:P};if(k++,I.monitorRunDependencies&&I.monitorRunDependencies(k),I.instantiateWasm)try{return I.instantiateWasm(a,e)}catch(s){m("Module.instantiateWasm callback failed with error: "+s),u(s)}(f||"function"!=typeof WebAssembly.instantiateStreaming||o(D)||"function"!=typeof fetch?i(t):fetch(D,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,a).then(t,(function(e){return m("wasm streaming compile failed: "+e),m("falling back to ArrayBuffer instantiation"),i(t)}))}))).catch(u)}(),I.___wasm_call_ctors=function(){return(I.___wasm_call_ctors=I.asm.__wasm_call_ctors).apply(null,arguments)},I.___errno_location=function(){return(I.___errno_location=I.asm.__errno_location).apply(null,arguments)},I._omalloc=function(){return(I._omalloc=I.asm.omalloc).apply(null,arguments)},I._ofree=function(){return(I._ofree=I.asm.ofree).apply(null,arguments)},I._getLastOnigError=function(){return(I._getLastOnigError=I.asm.getLastOnigError).apply(null,arguments)},I._createOnigScanner=function(){return(I._createOnigScanner=I.asm.createOnigScanner).apply(null,arguments)},I._freeOnigScanner=function(){return(I._freeOnigScanner=I.asm.freeOnigScanner).apply(null,arguments)},I._findNextOnigScannerMatch=function(){return(I._findNextOnigScannerMatch=I.asm.findNextOnigScannerMatch).apply(null,arguments)},I._findNextOnigScannerMatchDbg=function(){return(I._findNextOnigScannerMatchDbg=I.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},I.stackSave=function(){return(I.stackSave=I.asm.stackSave).apply(null,arguments)},I.stackRestore=function(){return(I.stackRestore=I.asm.stackRestore).apply(null,arguments)},I.stackAlloc=function(){return(I.stackAlloc=I.asm.stackAlloc).apply(null,arguments)},I.dynCall_jiji=function(){return(I.dynCall_jiji=I.asm.dynCall_jiji).apply(null,arguments)},I.UTF8ToString=function(e,n){return e?t(v,e,n):""},O=function e(){j||l(),j||(O=e)},I.preInit)for("function"==typeof I.preInit&&(I.preInit=[I.preInit]);I.preInit.length>0;)I.preInit.pop()();return l(),e.ready});e.exports=t}},t={},function n(r){var o,i=t[r];return void 0!==i?i.exports:(o=t[r]={exports:{}},e[r].call(o.exports,o,o.exports,n),o.exports)}(770);var e,t},(jK={exports:{}}).exports=pY(),PK=jK.exports,(TK={exports:{}}).exports=(fY={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!1},t.UseOnigurumaFindOptions=!1},36:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.toOptionalTokenType=t.EncodedTokenAttributes=void 0,(n=t.EncodedTokenAttributes||(t.EncodedTokenAttributes={})).toBinaryStr=function(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t},n.print=function(e){n.getLanguageId(e),n.getTokenType(e),n.getFontStyle(e),n.getForeground(e),n.getBackground(e)},n.getLanguageId=function(e){return(255&e)>>>0},n.getTokenType=function(e){return(768&e)>>>8},n.containsBalancedBrackets=function(e){return 0!=(1024&e)},n.getFontStyle=function(e){return(30720&e)>>>11},n.getForeground=function(e){return(16744448&e)>>>15},n.getBackground=function(e){return(4278190080&e)>>>24},n.set=function(e,t,r,o,i,a,s){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,d=n.getFontStyle(e),p=n.getForeground(e),f=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==i&&(d=i),0!==a&&(p=a),0!==s&&(f=s),(l<<0|c<<8|u<<10|d<<11|p<<15|f<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class i{constructor(e,t){this._getBasicScopeAttributes=new r.CachedFn((e=>{const t=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new o(t,n)})),this._defaultAttributes=new o(e,8),this._embeddedLanguagesMatcher=new a(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?i._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(i.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}}t.BasicScopeAttributesProvider=i,i._NULL_SCOPE_METADATA=new o(0,0),i.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class a{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{function r(e,t,n,r,i){const a=c.createMatchers(t,o),s=d.RuleFactory.getCompiledRuleId(n,r,i.repository);for(const o of a)e.push({debugSelector:t,matcher:o.matcher,ruleId:s,grammar:i,priority:o.priority})}function o(e,t){if(t.length{for(let r=n;rn&&e.substr(0,n)===t&&"."===e[n]}function a(e,t){return(e=f.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const s=n(350),l=n(36),c=n(736),u=n(44),d=n(792),p=n(583),f=n(878),h=n(996),g=n(47);t.createGrammar=function(e,t,n,r,o,i,a,s){return new m(e,t,n,r,o,i,a,s)};class m{constructor(e,t,n,r,i,s,l,u){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new h.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=a(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const e=c.createMatchers(a,o);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:i[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const o=n.injections;if(o)for(let t in o)r(e,t,o[t],this,n);const i=this._grammarRepository.injections(t);i&&i.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&r(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),s.DebugFlags.InDebugMode&&this._injections.length>0))for(const e of this._injections);return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(d.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[d.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=a(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=d.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==y.NULL)o=!1,t.reset();else{o=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=l.EncodedTokenAttributes.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?b.createRootAndLookUpScopeName(i,r,this):b.createRoot("unknown",r),t=new y(null,this._rootId,-1,-1,!1,null,a,a)}const i=this.createOnigString(e+="\n"),a=i.content.length,s=new v(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=g._tokenizeString(this,i,o,0,t,s,!0,r);return u.disposeOnigString(i),{lineLength:a,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}}t.Grammar=m;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new p.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new p.ScopeStack(null,e),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(t,r,i);return new b(null,o,a)}get scopeName(){return this.scopePath.scopeName}equals(e){return b._equals(this,e)}static _equals(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,o=0,i=0;return null!==n&&(r=n.fontStyle,o=n.foregroundId,i=n.backgroundId),l.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,o,i)}pushAttributed(e,t){if(null===e)return this;if(-1===e.indexOf(" "))return b._pushAttributed(this,e,t);const n=e.split(/ /g);let r=this;for(const o of n)r=b._pushAttributed(r,o,t);return r}static _pushAttributed(e,t,n){const r=n.getMetadataForScope(t),o=e.scopePath.push(t),i=n.themeProvider.themeMatch(o),a=b.mergeAttributes(e.tokenAttributes,r,i);return new b(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class y{constructor(e,t,n,r,o,i,a,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=s,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}equals(e){return null!==e&&y._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(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(){y._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,i,a){return new y(this,e,t,n,r,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, TODO-${this.nameScopesList}, TODO-${this.contentNameScopesList})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new y(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=y,y.NULL=new y(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):c.createMatchers(e,o).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>c.createMatchers(e,o).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 v{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=s.DebugFlags.InDebugMode?t: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=e.tokenAttributes,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=e.getScopeNames();for(const e of this._tokenTypeOverrides)e.matcher(t)&&(r=l.EncodedTokenAttributes.set(r,0,l.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(t))}if(o&&(r=l.EncodedTokenAttributes.set(r,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r)return void(this._lastTokenEndIndex=t);if(s.DebugFlags.InDebugMode){const t=e.getScopeNames();for(let e=0;e0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r{function r(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const s=n.lookup(t);e instanceof c?i({baseGrammar:s,selfGrammar:a},r):o(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const o of l)r.add(new c(o))}function o(e,t,n){t.repository&&t.repository[e]&&a([t.repository[e]],t,n)}function i(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&a(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&a(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function a(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const e=r.repository?l.mergeObjects({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&a(r.patterns,{...t,repository:e},n);const d=r.include;if(!d)continue;const p=s(d);switch(p.kind){case 0:i({...t,selfGrammar:t.baseGrammar},n);break;case 1:i(t,n);break;case 2:o(p.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=p.scopeName===t.selfGrammar.scopeName?t.selfGrammar:p.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const a={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===p.kind?o(p.ruleName,a,n):i(a,n)}else n.add(4===p.kind?new u(p.scopeName,p.ruleName):new c(p.scopeName))}}}function s(e){if("$base"===e)return new p;if("$self"===e)return new f;const t=e.indexOf("#");if(-1===t)return new g(e);if(0===t)return new h(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new m(n,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const l=n(878);class c{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=c;class u{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=u;class d{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}t.ExternalReferenceCollector=d,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new c(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new d;for(const n of e)r(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof c){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class p{constructor(){this.kind=0}}t.BaseReference=p;class f{constructor(){this.kind=1}}t.SelfReference=f;class h{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=h;class g{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=g;class m{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}t.TopLevelRepositoryReference=m,t.parseInclude=s},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{function r(e,t,n,r,a,c,f,h){function g(){const i=function(e,t,n,r,i,a){const s=function(e,t,n,r,i,a){const s=i.getRule(e),{ruleScanner:c,findOptions:u}=o(s,e,i.endRule,n,r===a);l.DebugFlags.InDebugMode&&d.performanceNow();const p=c.findNextMatchSync(t,r,u);return l.DebugFlags.InDebugMode&&d.performanceNow(),p?{captureIndices:p.captureIndices,matchedRuleId:p.ruleId}:null}(e,t,n,r,i,a),c=e.getInjections();if(0===c.length)return s;const u=function(e,t,n,r,i,a,s){let l,c=Number.MAX_VALUE,u=null,d=0;const p=a.contentNameScopesList.getScopeNames();for(let f=0,h=e.length;f=c)&&(c=y,u=b.captureIndices,l=b.ruleId,d=a.priority,c===i))break}return u?{priorityMatch:-1===d,captureIndices:u,matchedRuleId:l}:null}(c,e,t,n,r,i,a);if(!u)return s;if(!s)return u;const p=s.captureIndices[0].start,f=u.captureIndices[0].start;return f0)&&p[0].end>r;if(f===u.endRuleId){const o=a.getRule(e);c.produce(a,p[0].start),a=a.withContentNameScopesList(a.nameScopesList),s(e,t,n,a,c,o.endCaptures,p),c.produce(a,p[0].end);const i=a;if(a=a.parent,y=i.getAnchorPos(),!h&&i.getEnterPos()===r)return c.produce(a=i,m),void(b=!0)}else{const o=e.getRule(f);c.produce(a,p[0].start);const i=a,l=o.getName(t.content,p),d=a.contentNameScopesList.pushAttributed(l,e);if(a=a.push(f,r,y,p[0].end===m,null,d,d),o instanceof u.BeginEndRule){const r=o;s(e,t,n,a,c,r.beginCaptures,p),c.produce(a,p[0].end),y=p[0].end;const l=r.getContentName(t.content,p),u=d.pushAttributed(l,e);if(a=a.withContentNameScopesList(u),r.endHasBackReferences&&(a=a.withEndRule(r.getEndWithResolvedBackReferences(t.content,p))),!h&&i.hasSameRuleAs(a))return a=a.pop(),c.produce(a,m),void(b=!0)}else if(o instanceof u.BeginWhileRule){const r=o;s(e,t,n,a,c,r.beginCaptures,p),c.produce(a,p[0].end),y=p[0].end;const l=r.getContentName(t.content,p),u=d.pushAttributed(l,e);if(a=a.withContentNameScopesList(u),r.whileHasBackReferences&&(a=a.withEndRule(r.getWhileWithResolvedBackReferences(t.content,p))),!h&&i.hasSameRuleAs(a))return a=a.pop(),c.produce(a,m),void(b=!0)}else if(s(e,t,n,a,c,o.captures,p),c.produce(a,p[0].end),a=a.pop(),!h)return a=a.safePop(),c.produce(a,m),void(b=!0)}p[0].end>r&&(r=p[0].end,n=!1)}const m=t.content.length;let b=!1,y=-1;if(f){const o=function(e,t,n,r,o,a){let l=o.beginRuleCapturedEOL?0:-1;const c=[];for(let i=o;i;i=i.pop()){const t=i.getRule(e);t instanceof u.BeginWhileRule&&c.push({rule:t,stack:i})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:c,findOptions:p}=i(d.rule,e,d.stack.endRule,n,r===l),f=c.findNextMatchSync(t,r,p);if(!f){o=d.stack.pop();break}if(f.ruleId!==u.whileRuleId){o=d.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(a.produce(d.stack,f.captureIndices[0].start),s(e,t,n,d.stack,a,d.rule.whileCaptures,f.captureIndices),a.produce(d.stack,f.captureIndices[0].end),l=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}return{stack:o,linePos:r,anchorPosition:l,isFirstLine:n}}(e,t,n,r,a,c);a=o.stack,r=o.linePos,n=o.isFirstLine,y=o.anchorPosition}const v=Date.now();for(;!b;){if(0!==h&&Date.now()-v>h)return new p(a,!0);g()}return new p(a,!1)}function o(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:a(r,o)}:{ruleScanner:e.compileAG(t,n,r,o),findOptions:0}}function i(e,t,n,r,o){return l.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:a(r,o)}:{ruleScanner:e.compileWhileAG(t,n,r,o),findOptions:0}}function a(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function s(e,t,n,o,i,a,s){if(0===a.length)return;const l=t.content,u=Math.min(a.length,s.length),d=[],p=s[0].end;for(let h=0;hp)break;for(;d.length>0&&d[d.length-1].endPos<=u.start;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?i.produceFromScopes(d[d.length-1].scopes,u.start):i.produce(o,u.start),t.retokenizeCapturedWithRuleId){const a=t.getName(l,s),d=o.contentNameScopesList.pushAttributed(a,e),p=t.getContentName(l,s),f=d.pushAttributed(p,e),h=o.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,f),g=e.createOnigString(l.substring(0,u.end));r(e,g,n&&0===u.start,u.start,h,i,!1,0),c.disposeOnigString(g);continue}const g=t.getName(l,s);if(null!==g){const t=(d.length>0?d[d.length-1].scopes:o.contentNameScopesList).pushAttributed(g,e);d.push(new f(t,u.end))}}for(;d.length>0;)i.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const l=n(350),c=n(44),u=n(792),d=n(878);class p{constructor(e,t){this.stack=e,this.stoppedEarly=t}}t._tokenizeString=r;class f{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=f},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}function r(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;let r,o=e.source,i=e.pos,a=e.len,s=e.line,l=e.char;for(;;){if(i>=a)return!1;if(r=o.charCodeAt(i),32!==r&&9!==r&&13!==r){if(10!==r)break;i++,s++,l=0}else i++,l++}if(t.offset=i,t.line=s,t.char=l,34===r){for(t.type=1,i++,l++;;){if(i>=a)return!1;if(r=o.charCodeAt(i),i++,l++,92!==r){if(34===r)break}else i++,l++}t.value=o.substring(t.offset+1,i-1).replace(/\\u([0-9A-Fa-f]{4})/g,((e,t)=>String.fromCodePoint(parseInt(t,16)))).replace(/\\(.)/g,((t,r)=>{switch(r){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:n(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===r)t.type=2,i++,l++;else if(123===r)t.type=3,i++,l++;else if(93===r)t.type=4,i++,l++;else if(125===r)t.type=5,i++,l++;else if(58===r)t.type=6,i++,l++;else if(44===r)t.type=7,i++,l++;else if(110===r){if(t.type=8,i++,l++,r=o.charCodeAt(i),117!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;i++,l++}else if(116===r){if(t.type=9,i++,l++,r=o.charCodeAt(i),114!==r)return!1;if(i++,l++,r=o.charCodeAt(i),117!==r)return!1;if(i++,l++,r=o.charCodeAt(i),101!==r)return!1;i++,l++}else if(102===r){if(t.type=10,i++,l++,r=o.charCodeAt(i),97!==r)return!1;if(i++,l++,r=o.charCodeAt(i),108!==r)return!1;if(i++,l++,r=o.charCodeAt(i),115!==r)return!1;if(i++,l++,r=o.charCodeAt(i),101!==r)return!1;i++,l++}else for(t.type=11;;){if(i>=a)return!1;if(r=o.charCodeAt(i),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;i++,l++}return t.len=i-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=i,e.line=s,e.char=l,!0}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,a){function s(){h.push(p),g.push(f)}function l(){p=h.pop(),f=g.pop()}function c(e){n(u,e)}let u=new o(e),d=new i,p=0,f=null,h=[],g=[];for(;r(u,d);){if(0===p){if(null!==f&&c("too many constructs in root"),3===d.type){f={},a&&(f.$vscodeTextmateLocation=d.toLocation(t)),s(),p=1;continue}if(2===d.type){f=[],s(),p=4;continue}c("unexpected token in root")}if(2===p){if(5===d.type){l();continue}if(7===d.type){p=3;continue}c("expected , or }")}if(1===p||3===p){if(1===p&&5===d.type){l();continue}if(1===d.type){let e=d.value;if(r(u,d)&&6===d.type||c("expected colon"),r(u,d)||c("expected value"),p=2,1===d.type){f[e]=d.value;continue}if(8===d.type){f[e]=null;continue}if(9===d.type){f[e]=!0;continue}if(10===d.type){f[e]=!1;continue}if(11===d.type){f[e]=parseFloat(d.value);continue}if(2===d.type){let t=[];f[e]=t,s(),p=4,f=t;continue}if(3===d.type){let n={};a&&(n.$vscodeTextmateLocation=d.toLocation(t)),f[e]=n,s(),p=1,f=n;continue}}c("unexpected token in dict")}if(5===p){if(4===d.type){l();continue}if(7===d.type){p=6;continue}c("expected , or ]")}if(4===p||6===p){if(4===p&&4===d.type){l();continue}if(p=5,1===d.type){f.push(d.value);continue}if(8===d.type){f.push(null);continue}if(9===d.type){f.push(!0);continue}if(10===d.type){f.push(!1);continue}if(11===d.type){f.push(parseFloat(d.value));continue}if(2===d.type){let e=[];f.push(e),s(),p=4,f=e;continue}if(3===d.type){let e={};a&&(e.$vscodeTextmateLocation=d.toLocation(t)),f.push(e),s(),p=1,f=e;continue}c("unexpected token in array")}c("unknown state")}return 0!==g.length&&c("unclosed constructs"),f};class o{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class i{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const i=n(391),a=n(50),s=n(652),l=n(583),c=n(965);o(n(44),t),t.Registry=class{constructor(e){this._options=e,this._syncRegistry=new s.SyncRegistry(l.Theme.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(l.Theme.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new i.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const i=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;i.Q.length>0;)await Promise.all(i.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),i.processQueue();return this._grammarForScopeName(e,t,n,r,o)}async _loadSingleGrammar(e){return this._ensureGrammarCache.has(e)||this._ensureGrammarCache.set(e,this._doLoadSingleGrammar(e)),this._ensureGrammarCache.get(e)}async _doLoadSingleGrammar(e){const t=await this._options.loadGrammar(e);if(t){const n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}async addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),await this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,o)}},t.INITIAL=i.StateStack.NULL,t.parseRawGrammar=a.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){function r(){if("-"===s){s=a.next();const e=r();return t=>!!e&&!e(t)}if("("===s){s=a.next();const e=function(){const e=[];let t=o();for(;t&&(e.push(t),"|"===s||","===s);){do{s=a.next()}while("|"===s||","===s);t=o()}return t=>e.some((e=>e(t)))}();return")"===s&&(s=a.next()),e}if(n(s)){const e=[];do{e.push(s),s=a.next()}while(n(s));return n=>t(e,n)}return null}function o(){const e=[];let t=r();for(;t;)e.push(t),t=r();return t=>e.every((e=>e(t)))}const i=[],a=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 s=a.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1}s=a.next()}let t=o();if(i.push({matcher:t,priority:e}),","!==s)break;s=a.next()}return i}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),i=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(a=e,o.DebugFlags.InDebugMode?i.parseJSON(a,t,!0):JSON.parse(a)):(n=e,o.DebugFlags.InDebugMode?r.parseWithLocation(n,t,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,a}},69:(e,t)=>{function n(e,t,n){function r(t){if(null===n)E+=t;else for(;t>0;)10===e.charCodeAt(E)?(E++,C++,k=0):(E++,k++),t--}function o(e){null===n?E=e:r(e-E)}function i(){for(;E");u()}function f(){return 1===O||2!==O?d("unexpected "):void u()}function h(e){if(1===O){if(null===N)return d("missing ");D[N]=e,N=null}else 2===O?D.push(e):D=e}function g(e){if(isNaN(e))return d("cannot parse float");if(1===O){if(null===N)return d("missing ");D[N]=e,N=null}else 2===O?D.push(e):D=e}function m(e){if(isNaN(e))return d("cannot parse integer");if(1===O){if(null===N)return d("missing ");D[N]=e,N=null}else 2===O?D.push(e):D=e}function b(e){if(1===O){if(null===N)return d("missing ");D[N]=e,N=null}else 2===O?D.push(e):D=e}function y(e){if(1===O){if(null===N)return d("missing ");D[N]=e,N=null}else 2===O?D.push(e):D=e}function v(e){if(1===O){if(null===N)return d("missing ");D[N]=e,N=null}else 2===O?D.push(e):D=e}function w(){let e=l(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function x(e){if(e.isClosed)return"";let t=l(""),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}const S=e.length;let E=0,C=1,k=0;S>0&&65279===e.charCodeAt(0)&&(E=1);let O=0,D=null,$=[],_=[],N=null;const j=function(){if(null===N)return d("missing ");let e={};null!==n&&(e[n]={filename:t,line:C,char:k}),D[N]=e,N=null,c(1,e)},P=function(){if(null===N)return d("missing ");let e=[];D[N]=e,N=null,c(2,e)},T=function(){let e={};null!==n&&(e[n]={filename:t,line:C,char:k}),D.push(e),c(1,e)},I=function(){let e=[];D.push(e),c(2,e)};for(;E=S));){const o=e.charCodeAt(E);if(r(1),60!==o)return d("expected <");if(E>=S)return d("unexpected end of input");const l=e.charCodeAt(E);if(63===l){r(1),s("?>");continue}if(33===l){if(r(1),a("--")){s("--\x3e");continue}s(">");continue}if(47===l){if(r(1),i(),a("plist")){s(">");continue}if(a("dict")){s(">"),p();continue}if(a("array")){s(">"),f();continue}return d("unexpected closed tag")}let u=w();switch(u.name){case"dict":1===O?j():2===O?T():(D={},null!==n&&(D[n]={filename:t,line:C,char:k}),c(1,D)),u.isClosed&&p();continue;case"array":1===O?P():2===O?I():(D=[],c(2,D)),u.isClosed&&f();continue;case"key":A=x(u),1!==O?d("unexpected "):null!==N?d("too many "):N=A;continue;case"string":h(x(u));continue;case"real":g(parseFloat(x(u)));continue;case"integer":m(parseInt(x(u),10));continue;case"date":b(new Date(x(u)));continue;case"data":y(x(u));continue;case"true":x(u),v(!0);continue;case"false":x(u),v(!1);continue}if(!/^plist/.test(u.name))return d("unexpected opened tag "+u.name)}var A;return D}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePLIST=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,r){return n(e,t,r)},t.parsePLIST=function(e){return n(e,null,null)}},652:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SyncRegistry=void 0;const r=n(391);t.SyncRegistry=class{constructor(e,t){this._onigLibPromise=t,this._grammars=new Map,this._rawGrammars=new Map,this._injectionGrammars=new Map,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,o,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,r.createGrammar(e,a,t,n,o,i,this,await this._onigLibPromise))}return this._grammars.get(e)}}},792:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CompiledRule=t.RegExpSourceList=t.RegExpSource=t.RuleFactory=t.BeginWhileRule=t.BeginEndRule=t.IncludeOnlyRule=t.MatchRule=t.CaptureRule=t.Rule=t.ruleIdToNumber=t.ruleIdFromNumber=t.whileRuleId=t.endRuleId=void 0;const r=n(878),o=n(965),i=/\\(\d+)/,a=/\\(\d+)/g;t.endRuleId=-1,t.whileRuleId=-2,t.ruleIdFromNumber=function(e){return e},t.ruleIdToNumber=function(e){return e};class s{constructor(e,t,n,o){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=r.RegexSource.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=r.RegexSource.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${r.basename(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?r.RegexSource.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?r.RegexSource.replaceCaptures(this._contentName,e,t):this._contentName}}t.Rule=s;class l extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.retokenizeCapturedWithRuleId=o}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!")}}t.CaptureRule=l;class c extends s{constructor(e,t,n,r,o){super(e,t,n,null),this._match=new h(r,this.id),this.captures=o,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 g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.MatchRule=c;class u extends s{constructor(e,t,n,r,o){super(e,t,n,r),this.patterns=o.patterns,this.hasMissingPatterns=o.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 g,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}t.IncludeOnlyRule=u;class d extends s{constructor(e,t,n,r,o,i,a,s,l,c){super(e,t,n,r),this._begin=new h(o,this.id),this.beginCaptures=i,this._end=new h(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.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 g;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._cachedCompiledPatterns.setSource(this.applyEndPatternLast?this._cachedCompiledPatterns.length()-1:0,t),this._cachedCompiledPatterns}}t.BeginEndRule=d;class p extends s{constructor(e,n,r,o,i,a,s,l,c){super(e,n,r,o),this._begin=new h(i,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new h(s,t.whileRuleId),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 g;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 g,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}}t.BeginWhileRule=p;class f{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new l(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((o=>{if(e.id=o,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,f._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let o=e.patterns;return void 0===o&&e.include&&(o=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,f._compilePatterns(o,t,n))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,f._compileCaptures(e.whileCaptures||e.captures,t,n),f._compilePatterns(e.patterns,t,n)):new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,f._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,f._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=f.getCompiledRuleId(e[i],t,n)),r[o]=f.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 i=0,a=e.length;ie.substring(t.start,t.end)));return a.lastIndex=0,this.source.replace(a,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],i=[],a=[],s=[];for(e=0,t=this.source.length;ee.source));this._cached=new m(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 m(e,r,this._items.map((e=>e.ruleId)))}}t.RegExpSourceList=g;class m{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t{function r(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}function o(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let o=0,a=t.length;o1&&(d=i.slice(0,i.length-1),d.reverse()),n[r++]=new c(a,d,o,s,l,u)}}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.ColorMap=t.fontStyleToString=t.ParsedThemeRule=t.parseTheme=t.StyleAttributes=t.ScopeStack=t.Theme=void 0;const i=n(878);class a{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new i.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(o(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=i.strcmp(e.scope,t.scope);return 0!==n?n:(n=i.strArrCmp(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 s=new u(t),c=new l(n,s.getId(r),s.getId(o)),f=new p(new d(0,null,-1,0,0),[]);for(let i=0,a=e.length;ifunction(e,t){if(null===t)return!0;let n=0,o=t[n];for(;e;){if(r(e.scopeName,o)){if(n++,n===t.length)return!0;o=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return t?new l(t.fontStyle,t.foreground,t.background):null}}t.Theme=a;class s{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;ne||(this.scopeDepth=e),-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=d;class p{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}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{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;rt?1:0}Object.defineProperty(t,"__esModule",{value:!0}),t.performanceNow=t.CachedFn=t.escapeRegExpCharacters=t.isValidHexColor=t.strArrCmp=t.strcmp=t.RegexSource=t.basename=t.mergeObjects=t.clone=void 0,t.clone=function(e){return n(e)},t.mergeObjects=function(e,...t){return t.forEach((t=>{for(let n in t)e[n]=t[n]})),e},t.basename=function e(t){const n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(1+~n)};let o=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;t.RegexSource=class{static hasCaptures(e){return null!==e&&(o.lastIndex=0,o.test(e))}static replaceCaptures(e,t,n){return e.replace(o,((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}}}))}},t.strcmp=r,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,o=t.length;if(n===o){for(let o=0;o(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e))(AK||{});class Une{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){Une.getLanguageId(e),Une.getTokenType(e),Une.getFontStyle(e),Une.getForeground(e),Une.getBackground(e)}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>15}static getBackground(e){return(4286578688&e)>>>24}static containsBalancedBrackets(e){return 0!=(1024&e)}static set(e,t,n,r,o,i){let a=Une.getLanguageId(e),s=Une.getTokenType(e),l=Une.getFontStyle(e),c=Une.getForeground(e),u=Une.getBackground(e);return 0!==t&&(a=t),0!==n&&(s=8===n?0:n),-1!==r&&(l=r),0!==o&&(c=o),0!==i&&(u=i),(a<<0|s<<8|l<<11|(Une.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}(gY=RK||(RK={}))[gY.lineFeed=10]="lineFeed",gY[gY.carriageReturn=13]="carriageReturn",gY[gY.space=32]="space",gY[gY._0=48]="_0",gY[gY._1=49]="_1",gY[gY._2=50]="_2",gY[gY._3=51]="_3",gY[gY._4=52]="_4",gY[gY._5=53]="_5",gY[gY._6=54]="_6",gY[gY._7=55]="_7",gY[gY._8=56]="_8",gY[gY._9=57]="_9",gY[gY.a=97]="a",gY[gY.b=98]="b",gY[gY.c=99]="c",gY[gY.d=100]="d",gY[gY.e=101]="e",gY[gY.f=102]="f",gY[gY.g=103]="g",gY[gY.h=104]="h",gY[gY.i=105]="i",gY[gY.j=106]="j",gY[gY.k=107]="k",gY[gY.l=108]="l",gY[gY.m=109]="m",gY[gY.n=110]="n",gY[gY.o=111]="o",gY[gY.p=112]="p",gY[gY.q=113]="q",gY[gY.r=114]="r",gY[gY.s=115]="s",gY[gY.t=116]="t",gY[gY.u=117]="u",gY[gY.v=118]="v",gY[gY.w=119]="w",gY[gY.x=120]="x",gY[gY.y=121]="y",gY[gY.z=122]="z",gY[gY.A=65]="A",gY[gY.B=66]="B",gY[gY.C=67]="C",gY[gY.D=68]="D",gY[gY.E=69]="E",gY[gY.F=70]="F",gY[gY.G=71]="G",gY[gY.H=72]="H",gY[gY.I=73]="I",gY[gY.J=74]="J",gY[gY.K=75]="K",gY[gY.L=76]="L",gY[gY.M=77]="M",gY[gY.N=78]="N",gY[gY.O=79]="O",gY[gY.P=80]="P",gY[gY.Q=81]="Q",gY[gY.R=82]="R",gY[gY.S=83]="S",gY[gY.T=84]="T",gY[gY.U=85]="U",gY[gY.V=86]="V",gY[gY.W=87]="W",gY[gY.X=88]="X",gY[gY.Y=89]="Y",gY[gY.Z=90]="Z",gY[gY.asterisk=42]="asterisk",gY[gY.backslash=92]="backslash",gY[gY.closeBrace=125]="closeBrace",gY[gY.closeBracket=93]="closeBracket",gY[gY.colon=58]="colon",gY[gY.comma=44]="comma",gY[gY.dot=46]="dot",gY[gY.doubleQuote=34]="doubleQuote",gY[gY.minus=45]="minus",gY[gY.openBrace=123]="openBrace",gY[gY.openBracket=91]="openBracket",gY[gY.plus=43]="plus",gY[gY.slash=47]="slash",gY[gY.formFeed=12]="formFeed",gY[gY.tab=9]="tab",(FK||(FK={})).DEFAULT={allowTrailingComma:!1},(mY=MK||(MK={}))[mY.None=0]="None",mY[mY.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",mY[mY.UnexpectedEndOfString=2]="UnexpectedEndOfString",mY[mY.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",mY[mY.InvalidUnicode=4]="InvalidUnicode",mY[mY.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",mY[mY.InvalidCharacter=6]="InvalidCharacter",(bY=LK||(LK={}))[bY.OpenBraceToken=1]="OpenBraceToken",bY[bY.CloseBraceToken=2]="CloseBraceToken",bY[bY.OpenBracketToken=3]="OpenBracketToken",bY[bY.CloseBracketToken=4]="CloseBracketToken",bY[bY.CommaToken=5]="CommaToken",bY[bY.ColonToken=6]="ColonToken",bY[bY.NullKeyword=7]="NullKeyword",bY[bY.TrueKeyword=8]="TrueKeyword",bY[bY.FalseKeyword=9]="FalseKeyword",bY[bY.StringLiteral=10]="StringLiteral",bY[bY.NumericLiteral=11]="NumericLiteral",bY[bY.LineCommentTrivia=12]="LineCommentTrivia",bY[bY.BlockCommentTrivia=13]="BlockCommentTrivia",bY[bY.LineBreakTrivia=14]="LineBreakTrivia",bY[bY.Trivia=15]="Trivia",bY[bY.Unknown=16]="Unknown",bY[bY.EOF=17]="EOF";const Wne=function(e,t=[],n=FK.DEFAULT){function r(e){Array.isArray(i)?i.push(e):null!==o&&(i[o]=e)}let o=null,i=[];const a=[];return function(e,t,n=FK.DEFAULT){function r(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function o(e){return e?()=>e(u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>d.slice())):()=>!0}function i(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter()):()=>!0}function a(e){return e?t=>e(t,u.getTokenOffset(),u.getTokenLength(),u.getTokenStartLine(),u.getTokenStartCharacter(),(()=>d.slice())):()=>!0}function s(){for(;;){const e=u.scan();switch(u.getTokenError()){case 4:l(14);break;case 5:l(15);break;case 3:l(13);break;case 1:x||l(11);break;case 2:l(12);break;case 6:l(16)}switch(e){case 12:case 13:x?l(10):v();break;case 16:l(1);break;case 15:case 14:break;default:return e}}}function l(e,t=[],n=[]){if(w(e),t.length+n.length>0){let e=u.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){s();break}if(-1!==n.indexOf(e))break;e=s()}}}function c(e){const t=u.getTokenValue();return e?b(t):(f(t),d.push(t)),s(),!0}const u=function(e,t=!1){function n(t,n){let r=0,o=0;for(;r=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else{if(!(t>=97&&t<=102))break;o=16*o+t-97+10}a++,r++}return r=i)return l=i,c=17;let t=e.charCodeAt(a);if(Wb(t)){do{a++,s+=String.fromCharCode(t),t=e.charCodeAt(a)}while(Wb(t));return c=15}if(Gb(t))return a++,s+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,s+="\n"),u++,p=a,c=14;switch(t){case 123:return a++,c=1;case 125:return a++,c=2;case 91:return a++,c=3;case 93:return a++,c=4;case 58:return a++,c=6;case 44:return a++,c=5;case 34:return a++,s=function(){let t="",r=a;for(;;){if(a>=i){t+=e.substring(r,a),h=2;break}const o=e.charCodeAt(a);if(34===o){t+=e.substring(r,a),a++;break}if(92!==o){if(o>=0&&o<=31){if(Gb(o)){t+=e.substring(r,a),h=2;break}h=6}a++}else{if(t+=e.substring(r,a),a++,a>=i){h=2;break}switch(e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=n(4,!0);e>=0?t+=String.fromCharCode(e):h=4;break;default:h=5}r=a}}return t}(),c=10;case 47:const r=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;aa,scan:t?function(){let e;do{e=r()}while(e>=12&&e<=15);return e}:r,getToken:()=>c,getTokenValue:()=>s,getTokenOffset:()=>l,getTokenLength:()=>a-l,getTokenStartLine:()=>d,getTokenStartCharacter:()=>l-f,getTokenError:()=>h}}(e,!1),d=[],p=o(t.onObjectBegin),f=a(t.onObjectProperty),h=r(t.onObjectEnd),g=o(t.onArrayBegin),m=r(t.onArrayEnd),b=a(t.onLiteralValue),y=i(t.onSeparator),v=r(t.onComment),w=i(t.onError),x=n&&n.disallowComments,S=n&&n.allowTrailingComma;s(),17===u.getToken()?n.allowEmptyContent||l(4,[],[]):function e(){switch(u.getToken()){case 3:return function(){g(),s();let t=!0,n=!1;for(;4!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(n||l(4,[],[]),y(","),s(),4===u.getToken()&&S)break}else n&&l(6,[],[]);t?(d.push(0),t=!1):d[d.length-1]++,e()||l(4,[],[4,5]),n=!0}return m(),t||d.pop(),4!==u.getToken()?l(8,[4],[]):s(),!0}();case 1:return function(){p(),s();let t=!1;for(;2!==u.getToken()&&17!==u.getToken();){if(5===u.getToken()){if(t||l(4,[],[]),y(","),s(),2===u.getToken()&&S)break}else t&&l(6,[],[]);(10!==u.getToken()?(l(3,[],[2,5]),!1):(c(!1),6===u.getToken()?(y(":"),s(),e()||l(4,[],[2,5])):l(5,[],[2,5]),d.pop(),!0))||l(4,[],[2,5]),t=!0}return h(),2!==u.getToken()?l(7,[2],[]):s(),!0}();case 10:return c(!0);default:return function(){switch(u.getToken()){case 11:const e=u.getTokenValue();let t=Number(e);isNaN(t)&&(l(2),t=0),b(t);break;case 7:b(null);break;case 8:b(!0);break;case 9:b(!1);break;default:return!1}return s(),!0}()}}()?17!==u.getToken()&&l(9,[],[]):l(4,[],[])}(e,{onObjectBegin:()=>{const e={};r(e),a.push(i),i=e,o=null},onObjectProperty:e=>{o=e},onObjectEnd:()=>{i=a.pop()},onArrayBegin:()=>{const e=[];r(e),a.push(i),i=e,o=null},onArrayEnd:()=>{i=a.pop()},onLiteralValue:r,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]};(yY=BK||(BK={}))[yY.InvalidSymbol=1]="InvalidSymbol",yY[yY.InvalidNumberFormat=2]="InvalidNumberFormat",yY[yY.PropertyNameExpected=3]="PropertyNameExpected",yY[yY.ValueExpected=4]="ValueExpected",yY[yY.ColonExpected=5]="ColonExpected",yY[yY.CommaExpected=6]="CommaExpected",yY[yY.CloseBraceExpected=7]="CloseBraceExpected",yY[yY.CloseBracketExpected=8]="CloseBracketExpected",yY[yY.EndOfFileExpected=9]="EndOfFileExpected",yY[yY.InvalidCommentToken=10]="InvalidCommentToken",yY[yY.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",yY[yY.UnexpectedEndOfString=12]="UnexpectedEndOfString",yY[yY.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",yY[yY.InvalidUnicode=14]="InvalidUnicode",yY[yY.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",yY[yY.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process;let Gne="";const Vne="dist/";let qne=null;const Xne={light:"#333333",dark:"#bbbbbb"},Kne={light:"#fffffe",dark:"#1e1e1e"};class Yne{constructor(e,t){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=e,this._onigLibName=t}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(e){return this.languageMap[e]}async loadGrammar(e){const t=this.scopeToLangMap[e];if(!t)return null;if(t.grammar)return t.grammar;const n=await async function(e){return await Xb(e)}(Hne.includes(t)?`${this.languagesPath}${t.path}`:t.path);return t.grammar=n,n}addLanguage(e){this.languageMap[e.id]=e,e.aliases&&e.aliases.forEach((t=>{this.languageMap[t]=e})),this.scopeToLangMap[e.scopeName]=e}}zK=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],HK={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"},UK={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"};const Jne={pre:({className:e,style:t,children:n})=>`
${n}
`,code:({children:e})=>`${e}`,line:({className:e,children:t})=>`${t}`,token:({style:e,children:t})=>`${t}`},Qne={"&":"&","<":"<",">":">",'"':""","'":"'"};class Zne extends IK.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Hne.reduce(((e,t)=>(e[t.id]=t,e)),{})}getTheme(e){return"string"==typeof e?this._resolvedThemes[e]:e}async loadTheme(e){return"string"==typeof e?(this._resolvedThemes[e]||(this._resolvedThemes[e]=await Kb(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=Yb(e)).name&&(this._resolvedThemes[e.name]=e),e)}async loadThemes(e){return await Promise.all(e.map((e=>this.loadTheme(e))))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){return this._resolvedGrammars[e]}async loadLanguage(e){var t;const n={embeddedLanguages:null==(t=e.embeddedLangs)?void 0:t.reduce((async(e,t,n)=>{if(!this.getLoadedLanguages().includes(t)&&this._resolver.getLangRegistration(t))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(t).scopeName),e[this._resolver.getLangRegistration(t).scopeName]=n+2,e}),{}),balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]},r=await this.loadGrammarWithConfiguration(e.scopeName,1,n);this._resolvedGrammars[e.id]=r,e.aliases&&e.aliases.forEach((e=>{this._resolvedGrammars[e]=r}))}async loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.values());for(const n of t)this._resolver.addLanguage(n);for(const n of t)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(e){if(this._langGraph.has(e.id)||this._langGraph.set(e.id,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}!function(e){Gne=e.endsWith("/")?e:e+"/"}("https://cdn.jsdelivr.net/npm/shiki-es@0.14.0/dist/assets/");const{useSyncExternalStoreWithSelector:ere}=hee,tre=(e,t)=>{const n=fee(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=ere(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return yy.useDebugValue(r),r}(n,e,r);return Object.assign(r,n),r},nre=(cre=(e,t)=>({codeToHtml:(e,n,r)=>{const{highlighter:o}=t();if(!o)return"";try{return null==o?void 0:o.codeToHtml(e,{lang:n,theme:r?"dark":"light"})}catch{return e}},highlighter:void 0,initHighlighter:async n=>{if(!t().highlighter){const t=await sy({langs:null==n?void 0:n.langs,themes:null==n?void 0:n.themes});e({highlighter:t})}}}),cre?tre(cre,Si):tre),rre=yy.memo((({children:e,language:t,options:n})=>{const{styles:r}=zne(),{isDarkMode:o}=EA(),[i,a]=nre((e=>[e.codeToHtml,!e.highlighter]));return yy.useEffect((()=>{nre.getState().initHighlighter(n)}),[n]),ky.jsxs(ky.Fragment,{children:[a?ky.jsx("code",{children:e}):ky.jsx("div",{className:r.shiki,dangerouslySetInnerHTML:{__html:i(e,t,o)||""}}),a&&ky.jsxs(D8,{className:r.loading,gap:8,horizontal:!0,children:[ky.jsx(c8,{icon:EJ,spin:!0}),"Highlighting..."]})]})})),ore=e=>{const t=e?"dark":"light",n=e?lH.gold[t][9]:lH.orange[t][9],r=e?lH.blue[t][9]:lH.geekblue[t][8];return{colors:{"editor.foreground":e?lH.lime[t][9]:lH.green[t][10]},name:t,tokenColors:[{scope:"comma",settings:{foreground:e?lH.gray[t][6]:lH.gray[t][7]}},{scope:"func",settings:{foreground:r}},{scope:"and",settings:{fontStyle:"bold",foreground:r}},{scope:"bracket",settings:{foreground:r}},{scope:"model-type",settings:{fontStyle:"italic",foreground:n}},{scope:"model-name",settings:{fontStyle:"bold",foreground:n}},{scope:"model-bracket",settings:{foreground:n}},{scope:"number",settings:{foreground:e?lH.purple[t][10]:lH.purple[t][9]}},{scope:"wildcards",settings:{fontStyle:"italic",foreground:e?lH.yellow[t][9]:lH.yellow[t][10]}}],type:t}},ire={langs:[{aliases:["prompt"],grammar:{$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",fileTypes:["prompt"],name:"prompt",patterns:[{match:"[,]",name:"comma"},{match:"[:|]",name:"func"},{match:"AND",name:"and"},{match:"<([^:]+):([^:]+):([^>]+)>",captures:{0:{name:"model-bracket"},1:{name:"model-type"},2:{name:"model-name"},3:{name:"number"}}},{match:"[<|>]",name:"model-bracket"},{match:"[(|)|\\[|\\]|{|}]",name:"bracket"},{match:"\\d+(\\.\\d+)?",name:"number"},{match:"__.*__",name:"wildcards"}],scopeName:"source.prompt"},id:"prompt",scopeName:"source.prompt"}],themes:[ore(!0),ore(!1)]},are=yy.memo((({parentId:e})=>{const t=yy.useRef(null),[n,r]=yy.useState(""),{styles:o,theme:i}=zne(),a=(e=>{const[t,n]=yy.useState("");return yy.useEffect((()=>{const t=new MutationObserver((t=>{for(const r of t)if("attributes"===r.type){const t=document.querySelector(e);n(t.value)}})),r=document.querySelector(e);return r&&(t.observe(r,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),n(r.value)),()=>{t.disconnect()}}),[e]),t})(`${e} label textarea`),s=yy.useMemo((()=>gradioApp().querySelector(`${e} label textarea`)),[e]),l=(c=s,d=(u=lh(vh((function(){var e=ph(c);return e?{width:e.clientWidth,height:e.clientHeight}:void 0})),2))[0],p=u[1],k8((function(){var e,t=ph(c);if(t)return(e=new C$((function(e){e.forEach((function(e){var t=e.target;p({width:t.clientWidth,height:t.clientHeight})}))}))).observe(t),function(){e.disconnect()}}),[],c),d);var c,u,d,p;const f=function(e,t){var n,r,o,i;return void 0===t&&(t=function(){return!0}),r=(n=lh(vh(),2))[0],o=n[1],i=dh(t),C8((function(){var t,n=ph(e,document);if(n)return(t=function(){var e;e=n===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:n.scrollLeft,top:n.scrollTop},i.current(e)&&o(e)})(),n.addEventListener("scroll",t),function(){n.removeEventListener("scroll",t)}}),[],e),r}(s),h=yy.useCallback((e=>{r(e.target.value)}),[]);return yy.useEffect((()=>{t.current.scroll(0,(null==f?void 0:f.top)||0)}),[null==f?void 0:f.top]),yy.useEffect((()=>(s.addEventListener("change",h),()=>{s.removeEventListener("change",h)})),[]),yy.useEffect((()=>{i&&(s.style.color="transparent",s.style.caretColor=i.colorSuccess)}),[i]),yy.useEffect((()=>{r(a)}),[a]),ky.jsx("div",{className:o.container,"data-code-type":"highlighter",ref:t,style:{height:null==l?void 0:l.height,width:null==l?void 0:l.width},children:ky.jsx(rre,{language:"prompt",options:ire,children:n.trim()})})})),sre=yy.memo((({parentId:e})=>{const{loading:t}=_ee((e=>({loading:e.loading})),Si);return ky.jsx(yne,{children:!1===t&&ky.jsx(are,{parentId:e})})})),lre=(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),TE(n).render(ky.jsx(yy.StrictMode,{children:ky.jsx(yy.Suspense,{fallback:"loading...",children:ky.jsx(sre,{parentId:e})})}))};var cre;const ure=(e,t,n)=>{var r;if((null==e?void 0:e.textContent)&&n)for(const o of t)(null==(r=null==e?void 0:e.textContent)?void 0:r.includes(o))&&(e.innerHTML=n.replace('width="24"','width="16"').replace('height="24"','height="16"'))},dre=e=>qA` body { ::-webkit-scrollbar { 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: ${sh(e.colorPrimary)}; background: ${e.colorPrimary}; &:hover { color: ${sh(e.colorPrimary)} !important; background: ${e.colorPrimaryHover} !important; } &:active { color: ${sh(e.colorPrimaryActive)} !important; background: ${e.colorPrimaryActive} !important; } } `,pre=e=>qA` button { cursor: pointer; min-width: fit-content !important; &.gradio-button { &.tool { display: flex; align-items: center; justify-content: center; width: 36px; min-width: 36px !important; max-width: 36px !important; height: 36px; min-height: 36px !important; max-height: 36px; padding: 0; font-size: 14px; line-height: 1; background: ${e.colorFillSecondary}; border: 1px solid ${e.colorBorderSecondary}; border-radius: ${e.borderRadius}px; &:hover { background: ${e.colorFill}; } &.lg { max-width: max(36px, 100%) !important; } } &.secondary, &.primary { overflow: hidden; flex: 1; font-size: 14px; 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: 44px !important; min-height: 44px !important; max-height: 44px !important; } } } &[id$='_generate'] { height: 44px !important; min-height: 44px !important; max-height: 44px !important; } &[id$='_interrupt'] { min-width: 0; border-right: none !important; border-radius: ${e.borderRadius}px 0 0 ${e.borderRadius}px !important; } &[id$='_skip'] { min-width: 0; border-radius: 0 ${e.borderRadius}px ${e.borderRadius}px 0 !important; } &[id$='_interrupt'], &[id$='_skip'] { color: #fff !important; background: ${e.colorError} !important; &:hover { color: #fff !important; background: ${e.colorErrorHover} !important; } &:active { color: #fff !important; background: ${e.colorErrorActive} !important; } } &#interrogate, &#deepbooru { display: block !important; } } } div[id^='image_buttons_'] { flex-wrap: wrap; gap: 4px !important; > button { flex: 1; min-width: min(30%, 56px); font-size: 12px !important; } } `,fre=e=>qA` .label-wrap { transition: padding 400ms ${e.motionEaseOut}; > span:not(.icon) { display: flex; gap: 8px; align-items: center; font-size: 14px; 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}; } } } `,hre=e=>qA` .gradio-group, .gradio-row { gap: 12px !important; } .block.padded { &.gradio-box:not(.gradio-accordion) { padding: 16px !important; } &.gradio-box, &.gradio-accordion { &:not(.hidden):has(div) { margin: 0 !important; padding: 16px !important; border: 1px solid ${e.colorBorderSecondary} !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_gallery_container { position: sticky; top: 80px !important; } `,gre=e=>qA` #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; } } } } `,mre=e=>{const t=qA` 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 qA` .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} } } button.thumbnail-item { background: ${e.colorBgContainer} !important; } `},bre=e=>qA` .block.gradio-checkbox { margin: 0 !important; } input { &:not([type='range'], [type='checkbox'], [type='number'], [type='radio'], .border-none) { resize: none; overflow: hidden; width: 100%; height: 36px !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: 28px !important; border-radius: ${e.borderRadius}px; } } `,yre=e=>qA` .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; } } } `,vre=KA` 0% { background-position: 0 0; } 100% { background-position: 24px 24px; } `,wre=e=>qA` .eta-bar { overflow: hidden; opacity: 1 !important; background: linear-gradient( to right, ${e.colorFillQuaternary}, ${e.colorFill} ) !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.colorBgElevated} !important; > .progress { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: flex-end; line-height: 1; text-shadow: 0 1px 1px rgba(0, 0, 0, 40%); &::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: ${vre} 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%); } } } `,xre=e=>qA` input[type='range'] { cursor: pointer; height: 3px; margin-top: 8px; appearance: none; background: ${e.colorTextQuaternary}; border-radius: ${e.borderRadiusXS}px; outline: none; &::-webkit-slider-thumb { width: 12px; height: 16px; appearance: none; background: ${e.colorBgElevated}; border: 1px solid ${e.colorTextQuaternary}; border-radius: ${e.borderRadiusSM}px; &:hover, &:active { background: ${e.colorPrimary}; border-color: ${e.colorPrimary}; } } &:hover { background: ${e.colorPrimaryBorderHover}; } &:active { background: ${e.colorPrimary}; } } `,Sre=e=>qA` 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}; } } `,Ere=e=>qA` .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: 14px; background: ${e.colorFillTertiary} !important; border: none !important; border-radius: 4px !important; transition: all 0.2s ease-in-out; &: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 .tab-nav { button { background: transparent !important; border-radius: 0 !important; &:hover { background: transparent !important; border-radius: 0 !important; } &.selected { background: transparent !important; border: none !important; border-left: 2px solid var(--color-primary) !important; border-radius: 0 !important; } } } `,Cre=VA((({theme:e})=>{return[(t=e,qA` :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: ${t.fontSize}px; --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: ${t.fontSizeSM}px; --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: ${t.fontSize}px; --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: ${t.fontSize}px; --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: ${t.fontSize}px; --checkbox-label-text-weight: 400; --checkbox-shadow: none; --checkbox-label-text-color: ${t.colorTextDescription}; --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: ${t.fontSize}px; --input-text-weight: 400; --loader-color: ${t.colorPrimary}; --prose-text-size: ${t.fontSize}px; --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: ${sh(t.colorError)}; --button-cancel-text-color-hover: ${sh(t.colorError)}; --button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg)); --button-large-radius: ${t.borderRadius}px; --button-large-text-size: ${t.fontSizeLG}px; --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: ${sh(t.colorPrimary)}; --button-primary-text-color-hover: ${sh(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: ${t.fontSize}px; --button-small-text-weight: 400; --button-transition: none; } .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"); } `),dre(e),pre(e),hre(e),mre(e),bre(e),qA` [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; } } `,fre(e),yre(e),wre(e),xre(e),Sre(e),Ere(e),gre(e)];var t})),kre=yy.memo((()=>(yy.useEffect((()=>{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"),s=gradioApp().querySelector("#img2img_gallery_container");i&&o&&a&&s&&(i.prepend(o),s.prepend(a));const l=gradioApp().querySelector("#extras_generate"),c=gradioApp().querySelector("#extras_results");l&&c&&((null==c?void 0:c.parentNode).id="#extras_gallery_container",c.prepend(l))}),[]),null))),Ore=GA((({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; } .float { ${n.blur}; border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; } [id^='html_info_']:has(div.prose) { p { padding: 8px; font-family: ${t.fontFamilyCode}; font-size: 13px !important; color: ${t.colorInfo} !important; background: ${t.colorInfoBg}; border: 1px solid ${t.colorInfoBorder}; border-radius: ${t.borderRadius}px; } } #txt2img_styles_edit_button, #img2img_styles_edit_button { max-width: 36px !important; } #txt2img_generate, #img2img_generate, #extras_generate { border-radius: ${t.borderRadius}px !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}; } } } [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; } } `,splitView:e` #txt2img_toprow, #img2img_toprow { flex-direction: column !important; padding: 0 !important; background: transparent !important; } `,text2img:e` button[id$='_generate'] { height: 44px !important; min-height: 44px !important; max-height: 44px !important; } #txt2img_accordions, #img2img_accordions { padding: 0 !important; background: transparent !important; > div { background-color: ${t.colorBgContainer}!important; } } #img2img_toprow .interrogate-col { flex-flow: row wrap; min-width: 100% !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 { flex-flow: row wrap; gap: 12px; margin: 0 !important; padding: 16px !important; background-color: ${t.colorBgContainer}!important; border-radius: ${t.borderRadius}px !important; } .gradio-tabitem { background: ${t.colorFillTertiary} !important; } [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; } } } #img2img_column_batch { min-width: 100% !important; } #tab_txt2img, #tab_img2img { [id$='_settings'] { min-width: 0 !important; div.svelte-15lo0d8 > *, div.svelte-15lo0d8 > .form > * { 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; } } `,textares:e` [id$='2img_prompt'], [id$='2img_neg_prompt'] { textarea { resize: ${i?"vertical":"none"}; overflow-y: auto; padding: 8px !important; font-family: ${t.fontFamilyCode}; 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: -12px; right: 4px; scale: 0.8; background: ${t.colorBgContainer} !important; > .translucent { display: none; } span { display: inline-block; font-family: ${t.fontFamilyCode}; } } #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"}; } #text2img_prompt, #text2img_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"}; } } `}))),Dre=yy.memo((({className:e,...t})=>{const n=yy.useRef(null),{mobile:r}=DA(),o=_ee(Oee,A8),{cx:i,styles:a}=Ore({isPromptResizable:"resizable"===o.promptTextareaType,layoutSplitPreview:o.layoutSplitPreview});return yy.useEffect((()=>{var e;const t=gradioApp().querySelector(".app");t&&(null==(e=n.current)||e.append(t));const r=gradioApp().querySelectorAll('[id$="_prompt_container"] textarea');if(r)for(const n of r)n.classList.remove("scroll-hide"),n.style.height="auto";const o=gradioApp().querySelector("#img2img_toprow .interrogate-col"),i=gradioApp().querySelector("#img2img_actions_column");o&&i&&i.append(o),Ute.addPromptButton("txt2img"),Ute.addPromptButton("img2img")}),[]),ky.jsxs(ky.Fragment,{children:[ky.jsx("div",{className:i(a.container,a.textares,a.text2img,o.layoutSplitPreview&&a.splitView,e),ref:n,...t}),o.layoutSplitPreview&&!1===r&&ky.jsx(kre,{})]})})),$re=GA((({css:e,token:t},{headerHeight:n=64,size:r=86})=>({body:e` .hide { display: none; } .extra-networks .tab-nav > button { &:first-child { display: none; } } #txt2img_extra_search, #img2img_extra_search { width: 100% !important; max-width: 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 { height: unset; min-height: unset; .name { background: unset !important; } .additional { position: relative !important; } } .extra-network-thumbs .name { overflow: hidden; display: block; font-size: 12px !important; text-overflow: ellipsis; white-space: nowrap; background: transparent; } .extra-network-cards, .extra-network-thumbs { overflow: unset; display: grid; grid-template-columns: repeat(auto-fill, minmax(${r}px, 1fr)); gap: 8px; &:has(.nocards) { display: flex; flex-direction: column; } } .extra-networks { .tab-nav { align-items: center; > * { height: 40px !important; margin: 0 !important; font-size: 14px !important; } } .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 { .name { overflow: hidden; display: block; font-weight: bold; text-overflow: ellipsis; text-shadow: 0 1px 1px rgb(0 0 0 / 90%); white-space: nowrap; background: linear-gradient(0deg, rgb(0 0 0 / 80%), transparent); } .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: 15px !important; color: #fff; text-overflow: ellipsis; text-shadow: 1px 1px black; white-space: nowrap; } } } } .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: 12px !important; } &:hover { border-color: ${t.colorPrimary}; box-shadow: 0 0 0 1px ${t.colorPrimary}; .additional { display: flex !important; } .name { 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: 15px !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: 36px !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); `}))),_re=["txt2img","img2img"],Nre=["textual_inversion","hypernetworks","checkpoints","lora","lycoris"],jre={checkpoints:"ckp",hypernetworks:"hyper",lora:"lora",lycoris:"lycoris",textual_inversion:"ti"},Pre=new Set(["🌐","💡","🏷️"]),Tre="lobeDone",Ire=(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")},Are=()=>{let e,t,n=0;const r=()=>{setTimeout(t,2e3)};return t=()=>{let t=0;const o=setInterval((()=>{var i;const a=document.querySelector("#txt2img_lora_cards");if(a||t>10){if(e!==a){n=0,e=a;for(const e of _re){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 s=null==(i=(()=>{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,s,l,c,u,d,p,f,h,g="",m=!1,b=!1;const y=[];for(const v of _re)for(const n of Nre){if(f=jre[n],a=`${v}_${n}_cards`,s=document.querySelector(`#${a}`),ly(s))continue;b=s.classList.contains("extra-network-thumbs"),h=s.querySelectorAll(".card");const r=!!document.querySelector(`#${a}_html .pending`);if((null==h?void 0:h.length)&&!r){y.push(n);for(const n of h){if("1"===n.dataset[Tre])break;if(n.dataset[Tre]="1",n.querySelectorAll(".actions .additional a").length>2)continue;if(l=n.querySelector(".metadata-button"),c=n.querySelector(".actions .additional"),d=n.querySelector(".actions .additional ul"),ly(d)&&(d=document.createElement("ul"),c.append(d)),u=n.querySelector(".actions .additional a"),ly(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,Pre.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="🖼️",Ire(u,b)),!m)continue;if(p=n.querySelector(".actions .additional .search_term"),!p)return;if(g=p.innerHTML,!g)continue;const r=document.createElement("a");r.href="#",r.innerHTML="🌐",Ire(r,b),r.title="Open this model's civitai url",r.setAttribute("onclick",`open_model_url(event, '${f}', '${g}')`);const a=document.createElement("a");a.href="#",a.innerHTML="💡",Ire(a,b),a.title="Add trigger words to prompt",a.setAttribute("onclick",`add_trigger_words(event, '${f}', ', ${g}')`);const s=document.createElement("a");s.href="#",s.innerHTML="🏷️",Ire(s,b),s.title="Use prompt from preview image",s.setAttribute("onclick",`use_preview_prompt(event, '${f}', '${g}')`),d.append(r),b&&l&&d.append(document.createElement("br")),d.append(a),d.append(s)}}else!r&&s.querySelector(".nocards")&&y.push(n)}return y})())?void 0:i.length;"number"==typeof s&&s10||!a||s>=Nre.length||s>n)&&(clearInterval(o),n=s??n)}t++}),2e3)},t()},Rre=yy.memo((()=>{const e=yy.useRef(null),t=yy.useRef(null),[n,r]=yy.useState(!0),o=_ee(Oee,A8),i=_ee(Dee,Si),[a,s]=yy.useState(o.extraNetworkCardSize||86),{styles:l}=$re({size:a});return yy.useEffect((()=>{var n,i;if(o.enableExtraNetworkSidebar){const o=gradioApp().querySelectorAll("#txt2img_extra_tabs > .tab-nav > button")[1],a=gradioApp().querySelectorAll("#img2img_extra_tabs > .tab-nav > button")[1];o&&o.click(),a&&a.click();const s=gradioApp().querySelector("div#tab_txt2img"),l=gradioApp().querySelector("div#txt2img_extra_tabs"),c=l.querySelectorAll("div.tabitem.gradio-tabitem")[0],u=gradioApp().querySelector("div#tab_img2img"),d=gradioApp().querySelector("div#img2img_extra_tabs"),p=d.querySelectorAll("div.tabitem.gradio-tabitem")[0];if(l&&d&&(null==(n=e.current)||n.append(l),c.id="txt2img_render",null==s||s.append(c),null==(i=t.current)||i.append(d),p.id="img2img_render",null==u||u.append(p)),document.querySelector("#txt2img_lora_cards"))return Are(),void r(!1)}}),[]),p=2e3,(u=yy.useRef(c=()=>{var e,t;const n=document.querySelector("#txt2img_extra_refresh"),o=document.querySelector("#img2img_extra_refresh");n.click(),o.click(),r(!1);try{const n=null==(e=document.querySelector("#txt2img_extra_refresh"))?void 0:e.nextSibling;n&&(n.onclick=Are);const r=null==(t=document.querySelector("#img2img_extra_refresh"))?void 0:t.nextSibling;r&&(r.onclick=Are),Are()}catch(i){}})).current=yy.useMemo((function(){return c}),[c]),(d=yy.useRef()).current||(d.current=function(){var e,t=[];for(e=0;es(o.extraNetworkCardSize),size:{blockSize:24,fontSize:16}}),ky.jsx(F6,{defaultValue:a,max:256,min:64,onChange:s,step:8,style:{flex:1},value:a})]})]});var c,u,d,p,f,h,g})),Fre=yy.memo((({headerHeight:e})=>{const{mobile:t}=DA(),n=_ee(Oee,A8),[r,o]=yy.useState(!t&&n.extraNetworkSidebarExpand),[i,a]=yy.useState("fixed"===n.extraNetworkFixedMode),{styles:s,theme:l}=$re({headerHeight:e}),{t:c}=Xg();yy.useEffect((()=>{t&&o(!1)}),[t]);const u=t||i?"fixed":"float";return ky.jsx(N8,{defaultSize:{width:n.extraNetworkSidebarWidth},expand:r,minWidth:n.extraNetworkSidebarWidth,mode:u,onExpandChange:o,pin:i,placement:"right",children:ky.jsx(gW,{children:ky.jsxs(P8,{className:s.container,style:"float"===u?{background:l.colorBgContainer,minWidth:n.extraNetworkSidebarWidth}:{minWidth:n.extraNetworkSidebarWidth},children:[ky.jsx(I8,{pin:i,position:"right",setExpand:o,setPin:a,title:c("extraNetwork")}),ky.jsx(Rre,{})]})})})})),Mre=Fre,Lre=[{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"}],Bre=[{icon:ky.jsx(c8,{icon:fJ,size:"small"}),openExternal:!0,title:"Report Bug",url:`${b7}/issues/new/choose`},{icon:ky.jsx(c8,{icon:vJ,size:"small"}),openExternal:!0,title:"Request Feature",url:`${b7}/issues/new/choose`}],zre=[{icon:ky.jsx(c8,{icon:wJ,size:"small"}),openExternal:!0,title:"GitHub",url:b7},{icon:ky.jsx(c8,{icon:yJ,size:"small"}),openExternal:!0,title:"Changelog",url:`${b7}/blob/main/CHANGELOG.md`}],Hre=[{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:"AI Commit CLI",openExternal:!0,title:"💌 Lobe Commit",url:"https://github.com/lobehub/lobe-commit"}],Ure=GA((({css:e})=>({footer:e` footer { display: block !important; } `}))),Wre=yy.memo((({className:e,...t})=>{const n=_ee(Oee,A8),{cx:r,styles:o}=Ure(),{t:i}=Xg(),a=yy.useRef(null);return yy.useEffect((()=>{var e;const t=gradioApp().querySelector("#footer");t&&(null==(e=a.current)||e.append(t))}),[]),ky.jsx("div",{className:r(o.footer,e),...t,children:ky.jsx(F8,{bottom:ky.jsx("div",{ref:a}),columns:n.layoutHideFooter?[]:[{items:Lre,title:i("resources")},{items:Bre,title:i("community")},{items:zre,title:i("help")},{items:Hre,title:i("moreProducts")}]})})})),Gre=Wre,Vre=({size:e})=>ky.jsx("svg",{fill:"currentColor",height:e,viewBox:"0 0 16 16",width:e,children:ky.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"})}),qre=yy.memo((()=>{const[e,t]=yy.useState(!1),[n,r]=yy.useState(!1),o=_ee($ee,Si),{mobile:i}=DA(),{t:a}=Xg(),s=yy.useCallback((()=>{const e="light"===o?"dark":"light",t=bne.parseUrl(window.location.href);t.query.__theme=e,window.location.replace(bne.stringifyUrl(t))}),[o]);return ky.jsxs(ky.Fragment,{children:[ky.jsxs(_3.Compact,{children:[!i&&ky.jsxs(ky.Fragment,{children:[ky.jsx("a",{href:"https://civitai.com/",rel:"noreferrer",target:"_blank",children:ky.jsx(p8,{icon:Vre,title:"Civitai"})}),ky.jsx("a",{href:"https://supagruen.github.io/StableDiffusion-CheatSheet/",rel:"noreferrer",target:"_blank",children:ky.jsx(p8,{icon:xJ,title:"Cheat Sheet"})}),ky.jsx(p8,{icon:wJ,onClick:()=>r(!0),title:a("feedback")})]}),ky.jsx(p8,{icon:"light"===o?TJ:kJ,onClick:s,title:a("switchTheme")}),ky.jsx(p8,{icon:PJ,onClick:()=>t(!0),title:a("setting")})]}),ky.jsx(une,{onCancel:()=>t(!1),open:e}),ky.jsx(Tee,{onCancel:()=>r(!1),open:n})]})})),Xre=qre,Kre=()=>Array.prototype.slice.call(gradioApp().querySelectorAll("#tabs > .tab-nav:first-of-type button")),Yre=yy.memo((()=>{const e=_ee(Dee,Si),{mobile:t}=DA(),[n,r]=yy.useState(!1),[o,i]=yy.useState([]),a=yy.useMemo((()=>(()=>{const e=Array.prototype.slice.call(gradioApp().querySelectorAll('#tabs > [id^="tab_"]'));return Kre().map(((t,n)=>({id:e[n].id,index:n,label:y8(String(t.textContent))})))})()),[]),s=yy.useCallback((e=>{var t;const n=(null==(t=a.find((t=>t.id===e)))?void 0:t.index)||0;Kre()[n].click()}),[a]);return yy.useEffect((()=>{gradioApp().querySelector("#tabs > .tab-nav:first-of-type").style.display="none";const e=a.map((e=>({key:e.id,label:t?ky.jsx("div",{onClick:()=>s(e.id),children:e.label}):e.label})));i(e.filter(Boolean))}),[t]),t?ky.jsx($8,{items:o,opened:n,setOpened:r}):ky.jsx(r7,{activeKey:e,items:o,onChange:s})})),Jre=yy.memo((({children:e})=>{const{themeMode:t,version:n}=_ee((e=>({themeMode:e.themeMode,version:e.version})),Si),r=QA();return ky.jsx(X8,{actions:ky.jsx(Xre,{themeMode:t}),actionsStyle:{flex:0},logo:ky.jsx("a",{href:`${b7}/releases`,rel:"noreferrer",style:{alignItems:"center",color:r.colorText,display:"flex"},target:"_blank",children:ky.jsx(d8,{title:`sd-webui-lobe-theme v${n}`,children:ky.jsx(Mee,{})})}),nav:ky.jsxs(ky.Fragment,{children:[ky.jsx(Yre,{}),e]})})})),Qre=yy.memo((()=>{const e=_ee(Oee,A8),t=yy.useRef(null);return yy.useEffect((()=>{var e;const n=gradioApp().querySelector("#quicksettings");n&&(null==(e=t.current)||e.append(n))}),[]),ky.jsxs(j8,{children:[e.promptEditor&&ky.jsx(Qte,{}),ky.jsx("div",{ref:t})]})})),Zre=GA((({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; } } `}))),eoe=yy.memo((({headerHeight:e})=>{const{mobile:t}=DA(),n=_ee(Oee,A8),[r,o]=yy.useState(!t&&n.sidebarExpand),[i,a]=yy.useState("fixed"===n.sidebarFixedMode),[s,l]=yy.useState(n.sidebarWidth),{styles:c,theme:u}=Zre({headerHeight:e,width:s}),{t:d}=Xg();yy.useEffect((()=>{t&&o(!1)}),[t]);const p=t||i?"fixed":"float";return ky.jsx(N8,{defaultSize:{width:n.sidebarWidth},expand:r,minWidth:n.sidebarWidth,mode:p,onExpandChange:o,onSizeChange:(e,t)=>(null==t?void 0:t.width)&&l(Number.parseInt(String(t.width))),pin:i,placement:"left",style:{display:"flex",flexDirection:"column"},children:ky.jsx(gW,{children:ky.jsxs(P8,{className:c.container,style:"float"===p?{background:u.colorBgContainer,minWidth:n.sidebarWidth}:{minWidth:n.sidebarWidth},children:[ky.jsx(I8,{pin:i,position:"left",setExpand:o,setPin:a,title:d("quickSetting")}),ky.jsx(Qre,{})]})})})})),toe=eoe,noe=GA((({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}, ${NF(45,r.colorPrimary)}, ${r.colorPrimary}, ${NF(-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 { padding: 16px !important; } `,sidebar:t` height: calc(100vh - ${i}px); `}))),roe=64,ooe=yy.memo((()=>{const e=_ee(Oee,A8),{cx:t,styles:n}=noe({headerHeight:roe,isPrimaryColor:Boolean(e.primaryColor)});return yy.useEffect((()=>{e.enableHighlight&&(lre("#txt2img_prompt","#lobe_txt2img_prompt"),lre("#img2img_prompt","#lobe_img2img_prompt")),e.svgIcon&&(()=>{for(const e of document.querySelectorAll("button"))ure(e,["🖌️"],'\n \n \n\n'),ure(e,["🗃️"],'\n \n \n \n \n \n \n\n'),ure(e,["🖼️"],'\n \n \n \n\n'),ure(e,["🎨️"],'\n \n \n \n\n'),ure(e,["📂"],'\n \n \n\n'),ure(e,["🔄","🔁","♻️"],'\n \n \n \n \n\n'),ure(e,["↙️"],'\n \n \n\n'),ure(e,["⤴"],'\n \n \n\n'),ure(e,["↕️"],'\n \n \n \n \n \n\n'),ure(e,["🗑️"],'\n \n \n \n\n'),ure(e,["📋"],'\n \n \n \n \n \n \n\n'),ure(e,["💾"],'\n \n \n \n\n'),ure(e,["🎲️"],'\n \n \n \n \n \n \n\n'),ure(e,["🪄"],'\n \n \n \n \n \n \n \n \n\n'),ure(e,["⚙️"],'\n \n \n\n'),ure(e,["➡️"],'\n \n \n\n'),ure(e,["⇅"],'\n \n \n \n \n\n'),ure(e,["⇄"],'\n \n \n \n \n\n'),ure(e,["🎴"],'\n \n \n\n'),ure(e,["🌀"],'\n \n \n \n \n \n\n'),ure(e,["💥"],'\n \n\n'),ure(e,["📷"],'\n \n \n \n \n\n'),ure(e,["📝"],'\n \n \n\n'),ure(e,["📐"],'\n \n \n \n \n \n \n\n')})()}),[]),ky.jsxs(ky.Fragment,{children:[ky.jsx(Cre,{}),ky.jsx(pW,{headerHeight:roe,children:ky.jsx(Jre,{})}),ky.jsxs(fW,{children:[ky.jsx("div",{className:e.liteAnimation?n.backgroundLite:n.background}),e.enableSidebar&&ky.jsx(hW,{className:n.sidebar,headerHeight:roe,style:{flex:0,zIndex:50},children:ky.jsx(toe,{headerHeight:roe})}),ky.jsx(Dre,{className:t(!e.enableSidebar&&n.quicksettings)}),(null==e?void 0:e.enableExtraNetworkSidebar)&&ky.jsx(hW,{className:n.sidebar,headerHeight:roe,style:{flex:0,zIndex:50},children:ky.jsx(Mre,{headerHeight:roe})})]}),ky.jsx(Gre,{})]})})),ioe={background_color:"#000000",display:"fullscreen",icons:[{sizes:"192x192",src:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-192x192.png",type:"image/png"},{sizes:"512x512",src:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-512x512.png",type:"image/png"}],name:"Stable Diffusion",orientation:"portrait",short_name:"Stable Diffusion",start_url:location.origin,theme_color:"#000000"},aoe=`data:application/manifest+json;base64,${btoa(JSON.stringify(ioe))}`,soe=yy.memo((()=>{const[e,t]=yy.useState(!0),{setCurrentTab:n,onInit:r,storeLoading:o}=_ee((e=>({onInit:e.onInit,setCurrentTab:e.setCurrentTab,storeLoading:e.loading})),Si);return yy.useEffect((()=>{r(),onUiLoaded((()=>{t(!1)})),onUiTabChange((()=>{n()}))}),[]),ky.jsxs(yy.Suspense,{fallback:"loading...",children:[ky.jsxs(GC,{children:[ky.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),ky.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),ky.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),ky.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/site.webmanifest",rel:"manifest"}),ky.jsx("link",{color:"#000000",href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/safari-pinned-tab.svg",rel:"mask-icon"}),ky.jsx("meta",{content:"Stable Diffusion · LobeHub",name:"apple-mobile-web-app-title"}),ky.jsx("meta",{content:"Stable Diffusion · LobeHub",name:"application-name"}),ky.jsx("meta",{content:"#000000",name:"msapplication-TileColor"}),ky.jsx("meta",{content:"#000000",name:"theme-color"}),ky.jsx("link",{href:aoe,rel:"manifest"})]}),ky.jsx(yne,{children:ky.jsx(!1===o&&!1===e?ooe:Aee,{})})]})}));void 0===window.global&&(window.global=window),window.location.href.includes("dev")||document.addEventListener("DOMContentLoaded",(()=>{var e,t;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)}TE(n).render(ky.jsx(soe,{}))}),{once:!0});