sd-webui-lobe-theme/javascript/main.js

2227 lines
1.4 MiB
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

function e(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o={exports:{}},a={},i={exports:{}},s={},l=Symbol.for("react.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function k(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=S,this.updater=n||w}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=k.prototype;var O=E.prototype=new C;O.constructor=E,x(O,k.prototype),O.isPureReactComponent=!0;var D=Array.isArray,$=Object.prototype.hasOwnProperty,j={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)$.call(t,r)&&!P.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:l,type:e,key:a,ref:i,props:o,_owner:j.current}}function N(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var I=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case c:i=!0}}if(i)return o=o(i=e),e=""===r?"."+T(i,0):r,D(o)?(n="",null!=e&&(n=e.replace(I,"$&/")+"/"),A(o,t,n,"",(function(e){return e}))):null!=o&&(N(o)&&(o=function(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(I,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",D(e))for(var s=0;s<e.length;s++){var u=r+T(a=e[s],s);i+=A(a,t,n,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),s=0;!(a=e.next()).done;)i+=A(a=a.value,t,n,u=r+T(a,s++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function F(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},L={transition:null},B={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:L,ReactCurrentOwner:j};s.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},s.Component=k,s.Fragment=u,s.Profiler=f,s.PureComponent=E,s.StrictMode=d,s.Suspense=m,s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,s.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=x({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=j.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)$.call(t,c)&&!P.hasOwnProperty(c)&&(r[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:l,type:e.type,key:o,ref:a,props:r,_owner:i}},s.createContext=function(e){return(e={$$typeof:h,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},s.createElement=_,s.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},s.createRef=function(){return{current:null}},s.forwardRef=function(e){return{$$typeof:g,render:e}},s.isValidElement=N,s.lazy=function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:R}},s.memo=function(e,t){return{$$typeof:b,type:e,compare:void 0===t?null:t}},s.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},s.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},s.useCallback=function(e,t){return M.current.useCallback(e,t)},s.useContext=function(e){return M.current.useContext(e)},s.useDebugValue=function(){},s.useDeferredValue=function(e){return M.current.useDeferredValue(e)},s.useEffect=function(e,t){return M.current.useEffect(e,t)},s.useId=function(){return M.current.useId()},s.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},s.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},s.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},s.useMemo=function(e,t){return M.current.useMemo(e,t)},s.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},s.useRef=function(e){return M.current.useRef(e)},s.useState=function(e){return M.current.useState(e)},s.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},s.useTransition=function(){return M.current.useTransition()},s.version="18.2.0",i.exports=s;var z=i.exports;const H=n(z),W=e({__proto__:null,default:H},[z]);
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var U=z,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.prototype.hasOwnProperty,K=U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,X={key:!0,ref:!0,__self:!0,__source:!0};function Y(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)q.call(t,r)&&!X.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:V,type:e,key:a,ref:i,props:o,_owner:K.current}}a.Fragment=G,a.jsx=Y,a.jsxs=Y,o.exports=a;var Q=o.exports,J={exports:{}},Z={},ee={exports:{}},te={};
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function w(e){if(g=!1,y(e),!h)if(null!==n(l))h=!0,N(x);else{var t=n(c);null!==t&&I(w,t.startTime-e)}}function x(t,o){h=!1,g&&(g=!1,b(E),E=-1),p=!0;var a=f;try{for(y(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!$());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(o)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&I(w,m.startTime-o),u=!1}return u}finally{d=null,f=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,C=null,E=-1,O=5,D=-1;function $(){return!(e.unstable_now()-D<O)}function j(){if(null!==C){var t=e.unstable_now();D=t;var n=!0;try{n=C(!0,t)}finally{n?S():(k=!1,C=null)}}else k=!1}if("function"==typeof v)S=function(){v(j)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,_=P.port2;P.port1.onmessage=j,S=function(){_.postMessage(null)}}else S=function(){m(j,0)};function N(e){C=e,k||(k=!0,S())}function I(t,n){E=m((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,N(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(l)&&r===n(c)&&(g?(b(E),E=-1):g=!0,I(w,a-i))):(r.sortIndex=s,t(l,r),h||p||(h=!0,N(x))),r},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(te),ee.exports=te;var ne=ee.exports,re=z,oe=ne;
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function ae(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ie=new Set,se={};function le(e,t){ce(e,t),ce(e+"Capture",t)}function ce(e,t){for(se[e]=t,e=0;e<t.length;e++)ie.add(t[e])}var ue=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),de=Object.prototype.hasOwnProperty,fe=/^[: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]*$/,pe={},he={};function ge(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){me[e]=new ge(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];me[t]=new ge(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){me[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){me[e]=new ge(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){me[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){me[e]=new ge(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){me[e]=new ge(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){me[e]=new ge(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){me[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)}));var be=/[\-:]([a-z])/g;function ve(e){return e[1].toUpperCase()}function ye(e,t,n,r){var o=me.hasOwnProperty(t)?me[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!de.call(he,e)||!de.call(pe,e)&&(fe.test(e)?he[e]=!0:(pe[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(be,ve);me[t]=new ge(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(be,ve);me[t]=new ge(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(be,ve);me[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){me[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)})),me.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){me[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)}));var we=re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xe=Symbol.for("react.element"),Se=Symbol.for("react.portal"),ke=Symbol.for("react.fragment"),Ce=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),Oe=Symbol.for("react.provider"),De=Symbol.for("react.context"),$e=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),Pe=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),Ie=Symbol.for("react.offscreen"),Te=Symbol.iterator;function Ae(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Te&&e[Te]||e["@@iterator"])?e:null}var Fe,Re=Object.assign;function Me(e){if(void 0===Fe)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fe=t&&t[1]||""}return"\n"+Fe+e}var Le=!1;function Be(e,t){if(!e||Le)return"";Le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Le=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Me(e):""}function ze(e){switch(e.tag){case 5:return Me(e.type);case 16:return Me("Lazy");case 13:return Me("Suspense");case 19:return Me("SuspenseList");case 0:case 2:case 15:return e=Be(e.type,!1);case 11:return e=Be(e.type.render,!1);case 1:return e=Be(e.type,!0);default:return""}}function He(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 ke:return"Fragment";case Se:return"Portal";case Ee:return"Profiler";case Ce:return"StrictMode";case je:return"Suspense";case Pe:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case De:return(e.displayName||"Context")+".Consumer";case Oe:return(e._context.displayName||"Context")+".Provider";case $e:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return null!==(t=e.displayName||null)?t:He(e.type)||"Memo";case Ne:t=e._payload,e=e._init;try{return He(e(t))}catch(n){}}return null}function We(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 He(t);case 8:return t===Ce?"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 Ue(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ge(e){e._valueTracker||(e._valueTracker=function(e){var t=Ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function qe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ve(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ke(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 Xe(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ye(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Ue(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 Qe(e,t){null!=(t=t.checked)&&ye(e,"checked",t,!1)}function Je(e,t){Qe(e,t);var n=Ue(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")?et(e,t.type,n):t.hasOwnProperty("defaultValue")&&et(e,t.type,Ue(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ze(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function et(e,t,n){"number"===t&&Ke(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tt=Array.isArray;function nt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ue(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function rt(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ae(91));return Re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ot(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(ae(92));if(tt(n)){if(1<n.length)throw Error(ae(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Ue(n)}}function at(e,t){var n=Ue(t.value),r=Ue(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function it(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function st(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?st(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ct,ut,dt=(ut=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ct=ct||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ct.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ut(e,t)}))}:ut);function ft(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pt={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},ht=["Webkit","ms","Moz","O"];function gt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pt.hasOwnProperty(e)&&pt[e]?(""+t).trim():t+"px"}function mt(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=gt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pt).forEach((function(e){ht.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pt[t]=pt[e]}))}));var bt=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vt(e,t){if(t){if(bt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ae(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ae(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ae(62))}}function yt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wt=null;function xt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var St=null,kt=null,Ct=null;function Et(e){if(e=wa(e)){if("function"!=typeof St)throw Error(ae(280));var t=e.stateNode;t&&(t=Sa(t),St(e.stateNode,e.type,t))}}function Ot(e){kt?Ct?Ct.push(e):Ct=[e]:kt=e}function Dt(){if(kt){var e=kt,t=Ct;if(Ct=kt=null,Et(e),t)for(e=0;e<t.length;e++)Et(t[e])}}function $t(e,t){return e(t)}function jt(){}var Pt=!1;function _t(e,t,n){if(Pt)return e(t,n);Pt=!0;try{return $t(e,t,n)}finally{Pt=!1,(null!==kt||null!==Ct)&&(jt(),Dt())}}function Nt(e,t){var n=e.stateNode;if(null===n)return null;var r=Sa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(ae(231,t,typeof n));return n}var It=!1;if(ue)try{var Tt={};Object.defineProperty(Tt,"passive",{get:function(){It=!0}}),window.addEventListener("test",Tt,Tt),window.removeEventListener("test",Tt,Tt)}catch(ut){It=!1}function At(e,t,n,r,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ft=!1,Rt=null,Mt=!1,Lt=null,Bt={onError:function(e){Ft=!0,Rt=e}};function zt(e,t,n,r,o,a,i,s,l){Ft=!1,Rt=null,At.apply(Bt,arguments)}function Ht(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Wt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ut(e){if(Ht(e)!==e)throw Error(ae(188))}function Vt(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ht(e)))throw Error(ae(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ut(o),e;if(a===r)return Ut(o),t;a=a.sibling}throw Error(ae(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,s=o.child;s;){if(s===n){i=!0,n=o,r=a;break}if(s===r){i=!0,r=o,n=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===n){i=!0,n=a,r=o;break}if(s===r){i=!0,r=a,n=o;break}s=s.sibling}if(!i)throw Error(ae(189))}}if(n.alternate!==r)throw Error(ae(190))}if(3!==n.tag)throw Error(ae(188));return n.stateNode.current===n?e:t}(e))?Gt(e):null}function Gt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Gt(e);if(null!==t)return t;e=e.sibling}return null}var qt=oe.unstable_scheduleCallback,Kt=oe.unstable_cancelCallback,Xt=oe.unstable_shouldYield,Yt=oe.unstable_requestPaint,Qt=oe.unstable_now,Jt=oe.unstable_getCurrentPriorityLevel,Zt=oe.unstable_ImmediatePriority,en=oe.unstable_UserBlockingPriority,tn=oe.unstable_NormalPriority,nn=oe.unstable_LowPriority,rn=oe.unstable_IdlePriority,on=null,an=null;var sn=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ln(e)/cn|0)|0},ln=Math.log,cn=Math.LN2;var un=64,dn=4194304;function fn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~o;0!==s?r=fn(s):0!==(a&=i)&&(r=fn(a))}else 0!==(i=n&~o)?r=fn(i):0!==a&&(r=fn(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-sn(t)),r|=e[n],t&=~o;return r}function hn(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function gn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mn(){var e=un;return 0==(4194240&(un<<=1))&&(un=64),e}function bn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-sn(t)]=n}function yn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-sn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var wn=0;function xn(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Sn,kn,Cn,En,On,Dn=!1,$n=[],jn=null,Pn=null,_n=null,Nn=new Map,In=new Map,Tn=[],An="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Fn(e,t){switch(e){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":_n=null;break;case"pointerover":case"pointerout":Nn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":In.delete(t.pointerId)}}function Rn(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=wa(t))&&kn(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Mn(e){var t=ya(e.target);if(null!==t){var n=Ht(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Wt(n)))return e.blockedOn=t,void On(e.priority,(function(){Cn(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ln(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wa(n))&&kn(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);wt=r,n.target.dispatchEvent(r),wt=null,t.shift()}return!0}function Bn(e,t,n){Ln(e)&&n.delete(t)}function zn(){Dn=!1,null!==jn&&Ln(jn)&&(jn=null),null!==Pn&&Ln(Pn)&&(Pn=null),null!==_n&&Ln(_n)&&(_n=null),Nn.forEach(Bn),In.forEach(Bn)}function Hn(e,t){e.blockedOn===t&&(e.blockedOn=null,Dn||(Dn=!0,oe.unstable_scheduleCallback(oe.unstable_NormalPriority,zn)))}function Wn(e){function t(t){return Hn(t,e)}if(0<$n.length){Hn($n[0],e);for(var n=1;n<$n.length;n++){var r=$n[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jn&&Hn(jn,e),null!==Pn&&Hn(Pn,e),null!==_n&&Hn(_n,e),Nn.forEach(t),In.forEach(t),n=0;n<Tn.length;n++)(r=Tn[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tn.length&&null===(n=Tn[0]).blockedOn;)Mn(n),null===n.blockedOn&&Tn.shift()}var Un=we.ReactCurrentBatchConfig,Vn=!0;function Gn(e,t,n,r){var o=wn,a=Un.transition;Un.transition=null;try{wn=1,Kn(e,t,n,r)}finally{wn=o,Un.transition=a}}function qn(e,t,n,r){var o=wn,a=Un.transition;Un.transition=null;try{wn=4,Kn(e,t,n,r)}finally{wn=o,Un.transition=a}}function Kn(e,t,n,r){if(Vn){var o=Yn(e,t,n,r);if(null===o)Vo(e,t,r,Xn,n),Fn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return jn=Rn(jn,e,t,n,r,o),!0;case"dragenter":return Pn=Rn(Pn,e,t,n,r,o),!0;case"mouseover":return _n=Rn(_n,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Nn.set(a,Rn(Nn.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,In.set(a,Rn(In.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Fn(e,r),4&t&&-1<An.indexOf(e)){for(;null!==o;){var a=wa(o);if(null!==a&&Sn(a),null===(a=Yn(e,t,n,r))&&Vo(e,t,r,Xn,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Vo(e,t,r,null,n)}}var Xn=null;function Yn(e,t,n,r){if(Xn=null,null!==(e=ya(e=xt(r))))if(null===(t=Ht(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Wt(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Xn=e,null}function Qn(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Jt()){case Zt:return 1;case en:return 4;case tn:case nn:return 16;case rn:return 536870912;default:return 16}default:return 16}}var Jn=null,Zn=null,er=null;function tr(){if(er)return er;var e,t,n=Zn,r=n.length,o="value"in Jn?Jn.value:Jn.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return er=o.slice(e,1<t?1-t:void 0)}function nr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function or(){return!1}function ar(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:or,this.isPropagationStopped=or,this}return Re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ir,sr,lr,cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=ar(cr),dr=Re({},cr,{view:0,detail:0}),fr=ar(dr),pr=Re({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,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!==lr&&(lr&&"mousemove"===e.type?(ir=e.screenX-lr.screenX,sr=e.screenY-lr.screenY):sr=ir=0,lr=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:sr}}),hr=ar(pr),gr=ar(Re({},pr,{dataTransfer:0})),mr=ar(Re({},dr,{relatedTarget:0})),br=ar(Re({},cr,{animationName:0,elapsedTime:0,pseudoElement:0})),vr=Re({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ar(vr),wr=ar(Re({},cr,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sr={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"},kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kr[e])&&!!t[e]}function Er(){return Cr}var Or=Re({},dr,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(e){return"keypress"===e.type?nr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Dr=ar(Or),$r=ar(Re({},pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jr=ar(Re({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),Pr=ar(Re({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0})),_r=Re({},pr,{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}),Nr=ar(_r),Ir=[9,13,27,32],Tr=ue&&"CompositionEvent"in window,Ar=null;ue&&"documentMode"in document&&(Ar=document.documentMode);var Fr=ue&&"TextEvent"in window&&!Ar,Rr=ue&&(!Tr||Ar&&8<Ar&&11>=Ar),Mr=String.fromCharCode(32),Lr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Ir.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hr=!1;var Wr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wr[e.type]:"textarea"===t}function Vr(e,t,n,r){Ot(r),0<(t=qo(t,"onChange")).length&&(n=new ur("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gr=null,qr=null;function Kr(e){Lo(e,0)}function Xr(e){if(qe(xa(e)))return e}function Yr(e,t){if("change"===e)return t}var Qr=!1;if(ue){var Jr;if(ue){var Zr="oninput"in document;if(!Zr){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),Zr="function"==typeof eo.oninput}Jr=Zr}else Jr=!1;Qr=Jr&&(!document.documentMode||9<document.documentMode)}function to(){Gr&&(Gr.detachEvent("onpropertychange",no),qr=Gr=null)}function no(e){if("value"===e.propertyName&&Xr(qr)){var t=[];Vr(t,qr,e,xt(e)),_t(Kr,t)}}function ro(e,t,n){"focusin"===e?(to(),qr=n,(Gr=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function oo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xr(qr)}function ao(e,t){if("click"===e)return Xr(t)}function io(e,t){if("input"===e||"change"===e)return Xr(t)}var so="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lo(e,t){if(so(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!de.call(t,o)||!so(e[o],t[o]))return!1}return!0}function co(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uo(e,t){var n,r=co(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=co(r)}}function fo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function po(){for(var e=window,t=Ke();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Ke((e=t.contentWindow).document)}return t}function ho(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 go(e){var t=po(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fo(n.ownerDocument.documentElement,n)){if(null!==r&&ho(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=uo(n,a);var i=uo(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mo=ue&&"documentMode"in document&&11>=document.documentMode,bo=null,vo=null,yo=null,wo=!1;function xo(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wo||null==bo||bo!==Ke(r)||("selectionStart"in(r=bo)&&ho(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yo&&lo(yo,r)||(yo=r,0<(r=qo(vo,"onSelect")).length&&(t=new ur("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bo)))}function So(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ko={animationend:So("Animation","AnimationEnd"),animationiteration:So("Animation","AnimationIteration"),animationstart:So("Animation","AnimationStart"),transitionend:So("Transition","TransitionEnd")},Co={},Eo={};function Oo(e){if(Co[e])return Co[e];if(!ko[e])return e;var t,n=ko[e];for(t in n)if(n.hasOwnProperty(t)&&t in Eo)return Co[e]=n[t];return e}ue&&(Eo=document.createElement("div").style,"AnimationEvent"in window||(delete ko.animationend.animation,delete ko.animationiteration.animation,delete ko.animationstart.animation),"TransitionEvent"in window||delete ko.transitionend.transition);var Do=Oo("animationend"),$o=Oo("animationiteration"),jo=Oo("animationstart"),Po=Oo("transitionend"),_o=new Map,No="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Io(e,t){_o.set(e,t),le(t,[e])}for(var To=0;To<No.length;To++){var Ao=No[To];Io(Ao.toLowerCase(),"on"+(Ao[0].toUpperCase()+Ao.slice(1)))}Io(Do,"onAnimationEnd"),Io($o,"onAnimationIteration"),Io(jo,"onAnimationStart"),Io("dblclick","onDoubleClick"),Io("focusin","onFocus"),Io("focusout","onBlur"),Io(Po,"onTransitionEnd"),ce("onMouseEnter",["mouseout","mouseover"]),ce("onMouseLeave",["mouseout","mouseover"]),ce("onPointerEnter",["pointerout","pointerover"]),ce("onPointerLeave",["pointerout","pointerover"]),le("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),le("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),le("onBeforeInput",["compositionend","keypress","textInput","paste"]),le("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),le("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),le("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ro=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function Mo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,s,l){if(zt.apply(this,arguments),Ft){if(!Ft)throw Error(ae(198));var c=Rt;Ft=!1,Rt=null,Mt||(Mt=!0,Lt=c)}}(r,t,void 0,e),e.currentTarget=null}function Lo(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Mo(o,s,c),a=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Mo(o,s,c),a=l}}}if(Mt)throw e=Lt,Mt=!1,Lt=null,e}function Bo(e,t){var n=t[ma];void 0===n&&(n=t[ma]=new Set);var r=e+"__bubble";n.has(r)||(Uo(t,e,2,!1),n.add(r))}function zo(e,t,n){var r=0;t&&(r|=4),Uo(n,e,r,t)}var Ho="_reactListening"+Math.random().toString(36).slice(2);function Wo(e){if(!e[Ho]){e[Ho]=!0,ie.forEach((function(t){"selectionchange"!==t&&(Ro.has(t)||zo(t,!1,e),zo(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ho]||(t[Ho]=!0,zo("selectionchange",!1,t))}}function Uo(e,t,n,r){switch(Qn(t)){case 1:var o=Gn;break;case 4:o=qn;break;default:o=Kn}n=o.bind(null,t,n,e),o=void 0,!It||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vo(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=ya(s)))return;if(5===(l=i.tag)||6===l){r=a=i;continue e}s=s.parentNode}}r=r.return}_t((function(){var r=a,o=xt(n),i=[];e:{var s=_o.get(e);if(void 0!==s){var l=ur,c=e;switch(e){case"keypress":if(0===nr(n))break e;case"keydown":case"keyup":l=Dr;break;case"focusin":c="focus",l=mr;break;case"focusout":c="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=jr;break;case Do:case $o:case jo:l=br;break;case Po:l=Pr;break;case"scroll":l=fr;break;case"wheel":l=Nr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=$r}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Nt(h,f))&&u.push(Go(h,g,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),i.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===wt||!(c=n.relatedTarget||n.fromElement)||!ya(c)&&!c[ga])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ya(c):null)&&(c!==(d=Ht(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hr,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=$r,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:xa(l),p=null==c?s:xa(c),(s=new u(g,h+"leave",l,n,o)).target=d,s.relatedTarget=p,g=null,ya(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Ko(p))h++;for(p=0,g=f;g;g=Ko(g))p++;for(;0<h-p;)u=Ko(u),h--;for(;0<p-h;)f=Ko(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Ko(u),f=Ko(f)}u=null}else u=null;null!==l&&Xo(i,s,l,u,!1),null!==c&&null!==d&&Xo(i,d,c,u,!0)}if("select"===(l=(s=r?xa(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Yr;else if(Ur(s))if(Qr)m=io;else{m=oo;var b=ro}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ao);switch(m&&(m=m(e,r))?Vr(i,m,n,o):(b&&b(e,s,r),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&et(s,"number",s.value)),b=r?xa(r):window,e){case"focusin":(Ur(b)||"true"===b.contentEditable)&&(bo=b,vo=r,yo=null);break;case"focusout":yo=vo=bo=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,xo(i,n,o);break;case"selectionchange":if(mo)break;case"keydown":case"keyup":xo(i,n,o)}var v;if(Tr)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hr?Br(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Rr&&"ko"!==n.locale&&(Hr||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hr&&(v=tr()):(Zn="value"in(Jn=o)?Jn.value:Jn.textContent,Hr=!0)),0<(b=qo(r,y)).length&&(y=new wr(y,e,null,n,o),i.push({event:y,listeners:b}),v?y.data=v:null!==(v=zr(n))&&(y.data=v))),(v=Fr?function(e,t){switch(e){case"compositionend":return zr(t);case"keypress":return 32!==t.which?null:(Lr=!0,Mr);case"textInput":return(e=t.data)===Mr&&Lr?null:e;default:return null}}(e,n):function(e,t){if(Hr)return"compositionend"===e||!Tr&&Br(e,t)?(e=tr(),er=Zn=Jn=null,Hr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rr&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=qo(r,"onBeforeInput")).length&&(o=new wr("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=v))}Lo(i,t)}))}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qo(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Nt(e,n))&&r.unshift(Go(e,a,o)),null!=(a=Nt(e,t))&&r.push(Go(e,a,o))),e=e.return}return r}function Ko(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Xo(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Nt(n,a))&&i.unshift(Go(n,l,s)):o||null!=(l=Nt(n,a))&&i.push(Go(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yo=/\r\n?/g,Qo=/\u0000|\uFFFD/g;function Jo(e){return("string"==typeof e?e:""+e).replace(Yo,"\n").replace(Qo,"")}function Zo(e,t,n){if(t=Jo(t),Jo(e)!==t&&n)throw Error(ae(425))}function ea(){}var ta=null,na=null;function ra(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var oa="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,ia="function"==typeof Promise?Promise:void 0,sa="function"==typeof queueMicrotask?queueMicrotask:void 0!==ia?function(e){return ia.resolve(null).then(e).catch(la)}:oa;function la(e){setTimeout((function(){throw e}))}function ca(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Wn(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Wn(t)}function ua(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function da(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fa=Math.random().toString(36).slice(2),pa="__reactFiber$"+fa,ha="__reactProps$"+fa,ga="__reactContainer$"+fa,ma="__reactEvents$"+fa,ba="__reactListeners$"+fa,va="__reactHandles$"+fa;function ya(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ga]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=da(e);null!==e;){if(n=e[pa])return n;e=da(e)}return t}n=(e=n).parentNode}return null}function wa(e){return!(e=e[pa]||e[ga])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ae(33))}function Sa(e){return e[ha]||null}var ka=[],Ca=-1;function Ea(e){return{current:e}}function Oa(e){0>Ca||(e.current=ka[Ca],ka[Ca]=null,Ca--)}function Da(e,t){Ca++,ka[Ca]=e.current,e.current=t}var $a={},ja=Ea($a),Pa=Ea(!1),_a=$a;function Na(e,t){var n=e.type.contextTypes;if(!n)return $a;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ia(e){return null!=(e=e.childContextTypes)}function Ta(){Oa(Pa),Oa(ja)}function Aa(e,t,n){if(ja.current!==$a)throw Error(ae(168));Da(ja,t),Da(Pa,n)}function Fa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(ae(108,We(e)||"Unknown",o));return Re({},n,r)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$a,_a=ja.current,Da(ja,e),Da(Pa,Pa.current),!0}function Ma(e,t,n){var r=e.stateNode;if(!r)throw Error(ae(169));n?(e=Fa(e,t,_a),r.__reactInternalMemoizedMergedChildContext=e,Oa(Pa),Oa(ja),Da(ja,e)):Oa(Pa),Da(Pa,n)}var La=null,Ba=!1,za=!1;function Ha(e){null===La?La=[e]:La.push(e)}function Wa(){if(!za&&null!==La){za=!0;var e=0,t=wn;try{var n=La;for(wn=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}La=null,Ba=!1}catch(K4){throw null!==La&&(La=La.slice(e+1)),qt(Zt,Wa),K4}finally{wn=t,za=!1}}return null}var Ua=[],Va=0,Ga=null,qa=0,Ka=[],Xa=0,Ya=null,Qa=1,Ja="";function Za(e,t){Ua[Va++]=qa,Ua[Va++]=Ga,Ga=e,qa=t}function ei(e,t,n){Ka[Xa++]=Qa,Ka[Xa++]=Ja,Ka[Xa++]=Ya,Ya=e;var r=Qa;e=Ja;var o=32-sn(r)-1;r&=~(1<<o),n+=1;var a=32-sn(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Qa=1<<32-sn(t)+o|n<<o|r,Ja=a+e}else Qa=1<<a|n<<o|r,Ja=e}function ti(e){null!==e.return&&(Za(e,1),ei(e,1,0))}function ni(e){for(;e===Ga;)Ga=Ua[--Va],Ua[Va]=null,qa=Ua[--Va],Ua[Va]=null;for(;e===Ya;)Ya=Ka[--Xa],Ka[Xa]=null,Ja=Ka[--Xa],Ka[Xa]=null,Qa=Ka[--Xa],Ka[Xa]=null}var ri=null,oi=null,ai=!1,ii=null;function si(e,t){var n=Nu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=ua(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ya?{id:Qa,overflow:Ja}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ui(e){if(ai){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(ae(418));t=ua(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ai=!1,ri=e)}}else{if(ci(e))throw Error(ae(418));e.flags=-4097&e.flags|2,ai=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ai)return di(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ra(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(ae(418));for(;t;)si(e,t),t=ua(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ae(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=ua(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?ua(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=ua(e.nextSibling)}function hi(){oi=ri=null,ai=!1}function gi(e){null===ii?ii=[e]:ii.push(e)}var mi=we.ReactCurrentBatchConfig;function bi(e,t){if(e&&e.defaultProps){for(var n in t=Re({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vi=Ea(null),yi=null,wi=null,xi=null;function Si(){xi=wi=yi=null}function ki(e){var t=vi.current;Oa(vi),e._currentValue=t}function Ci(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){yi=e,xi=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(wl=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===yi)throw Error(ae(308));wi=e,yi.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Di=null;function $i(e){null===Di?Di=[e]:Di.push(e)}function ji(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,$i(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pi(e,r)}function Pi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var _i=!1;function Ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ii(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ti(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&jc)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pi(e,n)}return null===(o=r.interleaved)?(t.next=t,$i(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pi(e,n)}function Fi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yn(e,n)}}function Ri(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mi(e,t,n,r){var o=e.updateQueue;_i=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,g=s;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=g.payload)?h.call(p,d,f):h))break e;d=Re({},d,f);break e;case 2:_i=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Rc|=i,e.lanes=i,e.memoizedState=d}}function Li(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(ae(191,o));o.call(r)}}}var Bi=(new re.Component).refs;function zi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Re({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Hi={isMounted:function(e){return!!(e=e._reactInternals)&&Ht(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),a=Ti(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ai(e,a,o))&&(ru(t,e,o,r),Fi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),a=Ti(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ai(e,a,o))&&(ru(t,e,o,r),Fi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=Ti(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ai(e,o,r))&&(ru(t,e,r,n),Fi(t,e,r))}};function Wi(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!lo(n,r)||!lo(o,a))}function Ui(e,t,n){var r=!1,o=$a,a=t.contextType;return"object"==typeof a&&null!==a?a=Oi(a):(o=Ia(t)?_a:ja.current,a=(r=null!=(r=t.contextTypes))?Na(e,o):$a),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Vi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hi.enqueueReplaceState(t,t.state,null)}function Gi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bi,Ni(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Oi(a):(a=Ia(t)?_a:ja.current,o.context=Na(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(zi(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Hi.enqueueReplaceState(o,o.state,null),Mi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function qi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(ae(309));var r=n.stateNode}if(!r)throw Error(ae(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;t===Bi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(ae(284));if(!n._owner)throw Error(ae(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(ae(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xi(e){return(0,e._init)(e._payload)}function Yi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Tu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Mu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){var a=n.type;return a===ke?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Ne&&Xi(a)===t.type)?((r=o(t,n.props)).ref=qi(e,t,n),r.return=e,r):((r=Au(n.type,n.key,n.props,null,e.mode,r)).ref=qi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,a){return null===t||7!==t.tag?((t=Fu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case xe:return(n=Au(t.type,t.key,t.props,null,e.mode,n)).ref=qi(e,null,t),n.return=e,n;case Se:return(t=Lu(t,e.mode,n)).return=e,t;case Ne:return d(e,(0,t._init)(t._payload),n)}if(tt(t)||Ae(t))return(t=Fu(t,e.mode,n,null)).return=e,t;Ki(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case xe:return n.key===o?l(e,t,n,r):null;case Se:return n.key===o?c(e,t,n,r):null;case Ne:return f(e,t,(o=n._init)(n._payload),r)}if(tt(n)||Ae(n))return null!==o?null:u(e,t,n,r,null);Ki(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case xe:return l(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Se:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ne:return p(e,t,n,(0,r._init)(r._payload),o)}if(tt(r)||Ae(r))return u(t,e=e.get(n)||null,r,o,null);Ki(t,r)}return null}return function s(l,c,u,h){if("object"==typeof u&&null!==u&&u.type===ke&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case xe:e:{for(var g=u.key,m=c;null!==m;){if(m.key===g){if((g=u.type)===ke){if(7===m.tag){n(l,m.sibling),(c=o(m,u.props.children)).return=l,l=c;break e}}else if(m.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===Ne&&Xi(g)===m.type){n(l,m.sibling),(c=o(m,u.props)).ref=qi(l,m,u),c.return=l,l=c;break e}n(l,m);break}t(l,m),m=m.sibling}u.type===ke?((c=Fu(u.props.children,l.mode,h,u.key)).return=l,l=c):((h=Au(u.type,u.key,u.props,null,l.mode,h)).ref=qi(l,c,u),h.return=l,l=h)}return i(l);case Se:e:{for(m=u.key;null!==c;){if(c.key===m){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(c=o(c,u.children||[])).return=l,l=c;break e}n(l,c);break}t(l,c),c=c.sibling}(c=Lu(u,l.mode,h)).return=l,l=c}return i(l);case Ne:return s(l,c,(m=u._init)(u._payload),h)}if(tt(u))return function(o,i,s,l){for(var c=null,u=null,h=i,g=i=0,m=null;null!==h&&g<s.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var b=f(o,h,s[g],l);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,g),null===u?c=b:u.sibling=b,u=b,h=m}if(g===s.length)return n(o,h),ai&&Za(o,g),c;if(null===h){for(;g<s.length;g++)null!==(h=d(o,s[g],l))&&(i=a(h,i,g),null===u?c=h:u.sibling=h,u=h);return ai&&Za(o,g),c}for(h=r(o,h);g<s.length;g++)null!==(m=p(h,o,g,s[g],l))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&h.forEach((function(e){return t(o,e)})),ai&&Za(o,g),c}(l,c,u,h);if(Ae(u))return function(o,i,s,l){var c=Ae(s);if("function"!=typeof c)throw Error(ae(150));if(null==(s=c.call(s)))throw Error(ae(151));for(var u=c=null,h=i,g=i=0,m=null,b=s.next();null!==h&&!b.done;g++,b=s.next()){h.index>g?(m=h,h=null):m=h.sibling;var v=f(o,h,b.value,l);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,h=m}if(b.done)return n(o,h),ai&&Za(o,g),c;if(null===h){for(;!b.done;g++,b=s.next())null!==(b=d(o,b.value,l))&&(i=a(b,i,g),null===u?c=b:u.sibling=b,u=b);return ai&&Za(o,g),c}for(h=r(o,h);!b.done;g++,b=s.next())null!==(b=p(h,o,g,b.value,l))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),i=a(b,i,g),null===u?c=b:u.sibling=b,u=b);return e&&h.forEach((function(e){return t(o,e)})),ai&&Za(o,g),c}(l,c,u,h);Ki(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=Mu(u,l.mode,h)).return=l,l=c),i(l)):n(l,c)}}var Qi=Yi(!0),Ji=Yi(!1),Zi={},es=Ea(Zi),ts=Ea(Zi),ns=Ea(Zi);function rs(e){if(e===Zi)throw Error(ae(174));return e}function os(e,t){switch(Da(ns,t),Da(ts,e),Da(es,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:lt(null,"");break;default:t=lt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oa(es),Da(es,t)}function as(){Oa(es),Oa(ts),Oa(ns)}function is(e){rs(ns.current);var t=rs(es.current),n=lt(t,e.type);t!==n&&(Da(ts,e),Da(es,n))}function ss(e){ts.current===e&&(Oa(es),Oa(ts))}var ls=Ea(0);function cs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var us=[];function ds(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var fs=we.ReactCurrentDispatcher,ps=we.ReactCurrentBatchConfig,hs=0,gs=null,ms=null,bs=null,vs=!1,ys=!1,ws=0,xs=0;function Ss(){throw Error(ae(321))}function ks(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!so(e[n],t[n]))return!1;return!0}function Cs(e,t,n,r,o,a){if(hs=a,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fs.current=null===e||null===e.memoizedState?sl:ll,e=n(r,o),ys){a=0;do{if(ys=!1,ws=0,25<=a)throw Error(ae(301));a+=1,bs=ms=null,t.updateQueue=null,fs.current=cl,e=n(r,o)}while(ys)}if(fs.current=il,t=null!==ms&&null!==ms.next,hs=0,bs=ms=gs=null,vs=!1,t)throw Error(ae(300));return e}function Es(){var e=0!==ws;return ws=0,e}function Os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===bs?gs.memoizedState=bs=e:bs=bs.next=e,bs}function Ds(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===bs?gs.memoizedState:bs.next;if(null!==t)bs=t,ms=e;else{if(null===e)throw Error(ae(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===bs?gs.memoizedState=bs=e:bs=bs.next=e}return bs}function $s(e,t){return"function"==typeof t?t(e):t}function js(e){var t=Ds(),n=t.queue;if(null===n)throw Error(ae(311));n.lastRenderedReducer=e;var r=ms,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=i=null,l=null,c=a;do{var u=c.lane;if((hs&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,gs.lanes|=u,Rc|=u}c=c.next}while(null!==c&&c!==a);null===l?i=r:l.next=s,so(r,t.memoizedState)||(wl=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,gs.lanes|=a,Rc|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ps(e){var t=Ds(),n=t.queue;if(null===n)throw Error(ae(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);so(a,t.memoizedState)||(wl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _s(){}function Ns(e,t){var n=gs,r=Ds(),o=t(),a=!so(r.memoizedState,o);if(a&&(r.memoizedState=o,wl=!0),r=r.queue,Us(As.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==bs&&1&bs.memoizedState.tag){if(n.flags|=2048,Ls(9,Ts.bind(null,n,r,o,t),void 0,null),null===Pc)throw Error(ae(349));0!=(30&hs)||Is(n,t,o)}return o}function Is(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ts(e,t,n,r){t.value=n,t.getSnapshot=r,Fs(t)&&Rs(e)}function As(e,t,n){return n((function(){Fs(t)&&Rs(e)}))}function Fs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!so(e,n)}catch(r){return!0}}function Rs(e){var t=Pi(e,1);null!==t&&ru(t,e,1,-1)}function Ms(e){var t=Os();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$s,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,gs,e),[t.memoizedState,e]}function Ls(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bs(){return Ds().memoizedState}function zs(e,t,n,r){var o=Os();gs.flags|=e,o.memoizedState=Ls(1|t,n,void 0,void 0===r?null:r)}function Hs(e,t,n,r){var o=Ds();r=void 0===r?null:r;var a=void 0;if(null!==ms){var i=ms.memoizedState;if(a=i.destroy,null!==r&&ks(r,i.deps))return void(o.memoizedState=Ls(t,n,a,r))}gs.flags|=e,o.memoizedState=Ls(1|t,n,a,r)}function Ws(e,t){return zs(8390656,8,e,t)}function Us(e,t){return Hs(2048,8,e,t)}function Vs(e,t){return Hs(4,2,e,t)}function Gs(e,t){return Hs(4,4,e,t)}function qs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ks(e,t,n){return n=null!=n?n.concat([e]):null,Hs(4,4,qs.bind(null,t,e),n)}function Xs(){}function Ys(e,t){var n=Ds();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ks(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qs(e,t){var n=Ds();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ks(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Js(e,t,n){return 0==(21&hs)?(e.baseState&&(e.baseState=!1,wl=!0),e.memoizedState=n):(so(n,t)||(n=mn(),gs.lanes|=n,Rc|=n,e.baseState=!0),t)}function Zs(e,t){var n=wn;wn=0!==n&&4>n?n:4,e(!0);var r=ps.transition;ps.transition={};try{e(!1),t()}finally{wn=n,ps.transition=r}}function el(){return Ds().memoizedState}function tl(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))ol(t,n);else if(null!==(n=ji(e,t,n,r))){ru(n,e,r,tu()),al(n,t,r)}}function nl(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,n);if(o.hasEagerState=!0,o.eagerState=s,so(s,i)){var l=t.interleaved;return null===l?(o.next=o,$i(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=ji(e,t,o,r))&&(ru(n,e,r,o=tu()),al(n,t,r))}}function rl(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function ol(e,t){ys=vs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function al(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yn(e,n)}}var il={readContext:Oi,useCallback:Ss,useContext:Ss,useEffect:Ss,useImperativeHandle:Ss,useInsertionEffect:Ss,useLayoutEffect:Ss,useMemo:Ss,useReducer:Ss,useRef:Ss,useState:Ss,useDebugValue:Ss,useDeferredValue:Ss,useTransition:Ss,useMutableSource:Ss,useSyncExternalStore:Ss,useId:Ss,unstable_isNewReconciler:!1},sl={readContext:Oi,useCallback:function(e,t){return Os().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Ws,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zs(4194308,4,qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return zs(4,2,e,t)},useMemo:function(e,t){var n=Os();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Os();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,gs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Os().memoizedState=e},useState:Ms,useDebugValue:Xs,useDeferredValue:function(e){return Os().memoizedState=e},useTransition:function(){var e=Ms(!1),t=e[0];return e=Zs.bind(null,e[1]),Os().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gs,o=Os();if(ai){if(void 0===n)throw Error(ae(407));n=n()}else{if(n=t(),null===Pc)throw Error(ae(349));0!=(30&hs)||Is(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ws(As.bind(null,r,a,e),[e]),r.flags|=2048,Ls(9,Ts.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Os(),t=Pc.identifierPrefix;if(ai){var n=Ja;t=":"+t+"R"+(n=(Qa&~(1<<32-sn(Qa)-1)).toString(32)+n),0<(n=ws++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ll={readContext:Oi,useCallback:Ys,useContext:Oi,useEffect:Us,useImperativeHandle:Ks,useInsertionEffect:Vs,useLayoutEffect:Gs,useMemo:Qs,useReducer:js,useRef:Bs,useState:function(){return js($s)},useDebugValue:Xs,useDeferredValue:function(e){return Js(Ds(),ms.memoizedState,e)},useTransition:function(){return[js($s)[0],Ds().memoizedState]},useMutableSource:_s,useSyncExternalStore:Ns,useId:el,unstable_isNewReconciler:!1},cl={readContext:Oi,useCallback:Ys,useContext:Oi,useEffect:Us,useImperativeHandle:Ks,useInsertionEffect:Vs,useLayoutEffect:Gs,useMemo:Qs,useReducer:Ps,useRef:Bs,useState:function(){return Ps($s)},useDebugValue:Xs,useDeferredValue:function(e){var t=Ds();return null===ms?t.memoizedState=e:Js(t,ms.memoizedState,e)},useTransition:function(){return[Ps($s)[0],Ds().memoizedState]},useMutableSource:_s,useSyncExternalStore:Ns,useId:el,unstable_isNewReconciler:!1};function ul(e,t){try{var n="",r=t;do{n+=ze(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Ti(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vc||(Vc=!0,Gc=r),fl(0,t)},n}function gl(e,t,n){(n=Ti(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===qc?qc=new Set([this]):qc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ou.bind(null,e,t,n),t.then(e,e))}function bl(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 vl(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=Ti(-1,1)).tag=2,Ai(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=we.ReactCurrentOwner,wl=!1;function xl(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Qi(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var a=t.ref;return Ei(t,o),r=Cs(e,t,n,r,a,o),n=Es(),null===e||wl?(ai&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Iu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Au(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Cl(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:lo)(i,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=Tu(a,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(lo(a,r)&&e.ref===t.ref){if(wl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!=(131072&e.flags)&&(wl=!0)}}return Dl(e,t,n,r,o)}function El(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Da(Tc,Ic),Ic|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Da(Tc,Ic),Ic|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Da(Tc,Ic),Ic|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Da(Tc,Ic),Ic|=r;return xl(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Dl(e,t,n,r,o){var a=Ia(n)?_a:ja.current;return a=Na(t,a),Ei(t,o),n=Cs(e,t,n,r,a,o),r=Es(),null===e||wl?(ai&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function $l(e,t,n,r,o){if(Ia(n)){var a=!0;Ra(t)}else a=!1;if(Ei(t,o),null===t.stateNode)Ul(e,t),Ui(t,n,r),Gi(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Oi(c):c=Na(t,c=Ia(n)?_a:ja.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Vi(t,i,r,c),_i=!1;var f=t.memoizedState;i.state=f,Mi(t,r,i,o),l=t.memoizedState,s!==r||f!==l||Pa.current||_i?("function"==typeof u&&(zi(t,n,u,r),l=t.memoizedState),(s=_i||Wi(t,n,s,r,f,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ii(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:bi(t.type,s),i.props=c,d=t.pendingProps,f=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Oi(l):l=Na(t,l=Ia(n)?_a:ja.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&Vi(t,i,r,l),_i=!1,f=t.memoizedState,i.state=f,Mi(t,r,i,o);var h=t.memoizedState;s!==d||f!==h||Pa.current||_i?("function"==typeof p&&(zi(t,n,p,r),h=t.memoizedState),(c=_i||Wi(t,n,c,r,f,h,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return jl(e,t,n,r,a,o)}function jl(e,t,n,r,o,a){Ol(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Ma(t,n,!1),Vl(e,t,a);r=t.stateNode,yl.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Qi(t,e.child,null,a),t.child=Qi(t,null,s,a)):xl(e,t,s,a),t.memoizedState=r.state,o&&Ma(t,n,!0),t.child}function Pl(e){var t=e.stateNode;t.pendingContext?Aa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Aa(0,t.context,!1),os(e,t.containerInfo)}function _l(e,t,n,r,o){return hi(),gi(o),t.flags|=256,xl(e,t,n,r),t.child}var Nl,Il,Tl,Al,Fl={dehydrated:null,treeContext:null,retryLane:0};function Rl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ml(e,t,n){var r,o=t.pendingProps,a=ls.current,i=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Da(ls,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=s):i=Ru(s,o,0,null),e=Fu(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Rl(n),t.memoizedState=Fl,e):Ll(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,Bl(e,t,i,r=dl(Error(ae(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ru({mode:"visible",children:r.children},o,0,null),(a=Fu(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Qi(t,e.child,null,i),t.child.memoizedState=Rl(i),t.memoizedState=Fl,a);if(0==(1&t.mode))return Bl(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Bl(e,t,i,r=dl(a=Error(ae(419)),r,void 0))}if(s=0!=(i&e.childLanes),wl||s){if(null!==(r=Pc)){switch(i&-i){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|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Pi(e,o),ru(r,e,o,-1))}return mu(),Bl(e,t,i,r=dl(Error(ae(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=$u.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=ua(o.nextSibling),ri=t,ai=!0,ii=null,null!==e&&(Ka[Xa++]=Qa,Ka[Xa++]=Ja,Ka[Xa++]=Ya,Qa=e.id,Ja=e.overflow,Ya=t),t=Ll(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,a,n);if(i){i=o.fallback,s=t.mode,r=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Tu(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Tu(r,i):(i=Fu(i,s,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?Rl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Fl,o}return e=(i=e.child).sibling,o=Tu(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ll(e,t){return(t=Ru({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,n,r){return null!==r&&gi(r),Qi(t,e.child,null,n),(e=Ll(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ci(e.return,t,n)}function Hl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Wl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=ls.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&&zl(e,n,t);else if(19===e.tag)zl(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(Da(ls,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===cs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===cs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hl(t,!0,n,null,a);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ul(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rc|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ae(153));if(null!==t.child){for(n=Tu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gl(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return Ia(t.type)&&Ta(),ql(t),null;case 3:return r=t.stateNode,as(),Oa(Pa),Oa(ja),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ii&&(su(ii),ii=null))),Il(e,t),ql(t),null;case 5:ss(t);var o=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)Tl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ae(166));return ql(t),null}if(e=rs(es.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[pa]=t,r[ha]=a,e=0!=(1&t.mode),n){case"dialog":Bo("cancel",r),Bo("close",r);break;case"iframe":case"object":case"embed":Bo("load",r);break;case"video":case"audio":for(o=0;o<Fo.length;o++)Bo(Fo[o],r);break;case"source":Bo("error",r);break;case"img":case"image":case"link":Bo("error",r),Bo("load",r);break;case"details":Bo("toggle",r);break;case"input":Ye(r,a),Bo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Bo("invalid",r);break;case"textarea":ot(r,a),Bo("invalid",r)}for(var i in vt(n,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Zo(r.textContent,s,e),o=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Zo(r.textContent,s,e),o=["children",""+s]):se.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Bo("scroll",r)}switch(n){case"input":Ge(r),Ze(r,a,!0);break;case"textarea":Ge(r),it(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=ea)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=st(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[pa]=t,e[ha]=r,Nl(e,t,!1,!1),t.stateNode=e;e:{switch(i=yt(n,r),n){case"dialog":Bo("cancel",e),Bo("close",e),o=r;break;case"iframe":case"object":case"embed":Bo("load",e),o=r;break;case"video":case"audio":for(o=0;o<Fo.length;o++)Bo(Fo[o],e);o=r;break;case"source":Bo("error",e),o=r;break;case"img":case"image":case"link":Bo("error",e),Bo("load",e),o=r;break;case"details":Bo("toggle",e),o=r;break;case"input":Ye(e,r),o=Xe(e,r),Bo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Re({},r,{value:void 0}),Bo("invalid",e);break;case"textarea":ot(e,r),o=rt(e,r),Bo("invalid",e)}for(a in vt(n,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?mt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&dt(e,l):"children"===a?"string"==typeof l?("textarea"!==n||""!==l)&&ft(e,l):"number"==typeof l&&ft(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(se.hasOwnProperty(a)?null!=l&&"onScroll"===a&&Bo("scroll",e):null!=l&&ye(e,a,l,i))}switch(n){case"input":Ge(e),Ze(e,r,!1);break;case"textarea":Ge(e),it(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Ue(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?nt(e,!!r.multiple,a,!1):null!=r.defaultValue&&nt(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ea)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Al(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(ae(166));if(n=rs(ns.current),rs(es.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zo(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zo(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return ql(t),null;case 13:if(Oa(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(ae(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(ae(317));a[pa]=t}else hi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),a=!1}else null!==ii&&(su(ii),ii=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===Ac&&(Ac=3):mu())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return as(),Il(e,t),null===e&&Wo(t.stateNode.containerInfo),ql(t),null;case 10:return ki(t.type._context),ql(t),null;case 19:if(Oa(ls),null===(a=t.memoizedState))return ql(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)Gl(a,!1);else{if(0!==Ac||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=cs(e))){for(t.flags|=128,Gl(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Da(ls,1&ls.current|2),t.child}e=e.sibling}null!==a.tail&&Qt()>Wc&&(t.flags|=128,r=!0,Gl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=cs(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!ai)return ql(t),null}else 2*Qt()-a.renderingStartTime>Wc&&1073741824!==n&&(t.flags|=128,r=!0,Gl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qt(),t.sibling=null,n=ls.current,Da(ls,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ic)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(ae(156,t.tag))}function Xl(e,t){switch(ni(t),t.tag){case 1:return Ia(t.type)&&Ta(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return as(),Oa(Pa),Oa(ja),ds(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ss(t),null;case 13:if(Oa(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ae(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oa(ls),null;case 4:return as(),null;case 10:return ki(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Nl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Il=function(){},Tl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,rs(es.current);var a,i=null;switch(n){case"input":o=Xe(e,o),r=Xe(e,r),i=[];break;case"select":o=Re({},o,{value:void 0}),r=Re({},r,{value:void 0}),i=[];break;case"textarea":o=rt(e,o),r=rt(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ea)}for(c in vt(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(se.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(se.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Bo("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Al=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yl=!1,Ql=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Zl=null;function ec(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Eu(e,t,r)}else n.current=null}function tc(e,t,n){try{n()}catch(r){Eu(e,t,r)}}var nc=!1;function rc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&tc(t,n,a)}o=o.next}while(o!==r)}}function oc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ac(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ic(e){var t=e.alternate;null!==t&&(e.alternate=null,ic(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[ha],delete t[ma],delete t[ba],delete t[va])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sc(e){return 5===e.tag||3===e.tag||4===e.tag}function lc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ea));else if(4!==r&&null!==(e=e.child))for(cc(e,t,n),e=e.sibling;null!==e;)cc(e,t,n),e=e.sibling}function uc(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(uc(e,t,n),e=e.sibling;null!==e;)uc(e,t,n),e=e.sibling}var dc=null,fc=!1;function pc(e,t,n){for(n=n.child;null!==n;)hc(e,t,n),n=n.sibling}function hc(e,t,n){if(an&&"function"==typeof an.onCommitFiberUnmount)try{an.onCommitFiberUnmount(on,n)}catch(s){}switch(n.tag){case 5:Ql||ec(n,t);case 6:var r=dc,o=fc;dc=null,pc(e,t,n),fc=o,null!==(dc=r)&&(fc?(e=dc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dc.removeChild(n.stateNode));break;case 18:null!==dc&&(fc?(e=dc,n=n.stateNode,8===e.nodeType?ca(e.parentNode,n):1===e.nodeType&&ca(e,n),Wn(e)):ca(dc,n.stateNode));break;case 4:r=dc,o=fc,dc=n.stateNode.containerInfo,fc=!0,pc(e,t,n),dc=r,fc=o;break;case 0:case 11:case 14:case 15:if(!Ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&tc(n,t,i),o=o.next}while(o!==r)}pc(e,t,n);break;case 1:if(!Ql&&(ec(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Eu(n,t,s)}pc(e,t,n);break;case 21:pc(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,pc(e,t,n),Ql=r):pc(e,t,n);break;default:pc(e,t,n)}}function gc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=ju.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mc(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:dc=s.stateNode,fc=!1;break e;case 3:case 4:dc=s.stateNode.containerInfo,fc=!0;break e}s=s.return}if(null===dc)throw Error(ae(160));hc(a,i,o),dc=null,fc=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(c){Eu(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bc(t,e),t=t.sibling}function bc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mc(t,e),vc(e),4&r){try{rc(3,e,e.return),oc(3,e)}catch(X4){Eu(e,e.return,X4)}try{rc(5,e,e.return)}catch(X4){Eu(e,e.return,X4)}}break;case 1:mc(t,e),vc(e),512&r&&null!==n&&ec(n,n.return);break;case 5:if(mc(t,e),vc(e),512&r&&null!==n&&ec(n,n.return),32&e.flags){var o=e.stateNode;try{ft(o,"")}catch(X4){Eu(e,e.return,X4)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&Qe(o,a),yt(s,i);var c=yt(s,a);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];"style"===u?mt(o,d):"dangerouslySetInnerHTML"===u?dt(o,d):"children"===u?ft(o,d):ye(o,u,d,c)}switch(s){case"input":Je(o,a);break;case"textarea":at(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?nt(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?nt(o,!!a.multiple,a.defaultValue,!0):nt(o,!!a.multiple,a.multiple?[]:"",!1))}o[ha]=a}catch(X4){Eu(e,e.return,X4)}}break;case 6:if(mc(t,e),vc(e),4&r){if(null===e.stateNode)throw Error(ae(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(X4){Eu(e,e.return,X4)}}break;case 3:if(mc(t,e),vc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wn(t.containerInfo)}catch(X4){Eu(e,e.return,X4)}break;case 4:default:mc(t,e),vc(e);break;case 13:mc(t,e),vc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Hc=Qt())),4&r&&gc(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Ql=(c=Ql)||u,mc(t,e),Ql=c):mc(t,e),vc(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(Zl=e,u=e.child;null!==u;){for(d=Zl=u;null!==Zl;){switch(p=(f=Zl).child,f.tag){case 0:case 11:case 14:case 15:rc(4,f,f.return);break;case 1:ec(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(X4){Eu(r,n,X4)}}break;case 5:ec(f,f.return);break;case 22:if(null!==f.memoizedState){Sc(d);continue}}null!==p?(p.return=f,Zl=p):Sc(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=gt("display",i))}catch(X4){Eu(e,e.return,X4)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(X4){Eu(e,e.return,X4)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:mc(t,e),vc(e),4&r&&gc(e);case 21:}}function vc(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sc(n)){var r=n;break e}n=n.return}throw Error(ae(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(ft(o,""),r.flags&=-33),uc(e,lc(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;cc(e,lc(e),a);break;default:throw Error(ae(161))}}catch(i){Eu(e,e.return,i)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yc(e,t,n){Zl=e,wc(e)}function wc(e,t,n){for(var r=0!=(1&e.mode);null!==Zl;){var o=Zl,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Yl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ql;s=Yl;var c=Ql;if(Yl=i,(Ql=l)&&!c)for(Zl=o;null!==Zl;)l=(i=Zl).child,22===i.tag&&null!==i.memoizedState?kc(o):null!==l?(l.return=i,Zl=l):kc(o);for(;null!==a;)Zl=a,wc(a),a=a.sibling;Zl=o,Yl=s,Ql=c}xc(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Zl=a):xc(e)}}function xc(e){for(;null!==Zl;){var t=Zl;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ql||oc(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ql)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:bi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Li(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Li(t,i,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&Wn(d)}}}break;default:throw Error(ae(163))}Ql||512&t.flags&&ac(t)}catch(f){Eu(t,t.return,f)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function Sc(e){for(;null!==Zl;){var t=Zl;if(t===e){Zl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zl=n;break}Zl=t.return}}function kc(e){for(;null!==Zl;){var t=Zl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{oc(4,t)}catch(l){Eu(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Eu(t,o,l)}}var a=t.return;try{ac(t)}catch(l){Eu(t,a,l)}break;case 5:var i=t.return;try{ac(t)}catch(l){Eu(t,i,l)}}}catch(l){Eu(t,t.return,l)}if(t===e){Zl=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zl=s;break}Zl=t.return}}var Cc,Ec=Math.ceil,Oc=we.ReactCurrentDispatcher,Dc=we.ReactCurrentOwner,$c=we.ReactCurrentBatchConfig,jc=0,Pc=null,_c=null,Nc=0,Ic=0,Tc=Ea(0),Ac=0,Fc=null,Rc=0,Mc=0,Lc=0,Bc=null,zc=null,Hc=0,Wc=1/0,Uc=null,Vc=!1,Gc=null,qc=null,Kc=!1,Xc=null,Yc=0,Qc=0,Jc=null,Zc=-1,eu=0;function tu(){return 0!=(6&jc)?Qt():-1!==Zc?Zc:Zc=Qt()}function nu(e){return 0==(1&e.mode)?1:0!=(2&jc)&&0!==Nc?Nc&-Nc:null!==mi.transition?(0===eu&&(eu=mn()),eu):0!==(e=wn)?e:e=void 0===(e=window.event)?16:Qn(e.type)}function ru(e,t,n,r){if(50<Qc)throw Qc=0,Jc=null,Error(ae(185));vn(e,n,r),0!=(2&jc)&&e===Pc||(e===Pc&&(0==(2&jc)&&(Mc|=n),4===Ac&&lu(e,Nc)),ou(e,r),1===n&&0===jc&&0==(1&t.mode)&&(Wc=Qt()+500,Ba&&Wa()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-sn(a),s=1<<i,l=o[i];-1===l?0!=(s&n)&&0==(s&r)||(o[i]=hn(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=pn(e,e===Pc?Nc:0);if(0===r)null!==n&&Kt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Kt(n),1===t)0===e.tag?function(e){Ba=!0,Ha(e)}(cu.bind(null,e)):Ha(cu.bind(null,e)),sa((function(){0==(6&jc)&&Wa()})),n=null;else{switch(xn(r)){case 1:n=Zt;break;case 4:n=en;break;case 16:default:n=tn;break;case 536870912:n=rn}n=Pu(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Zc=-1,eu=0,0!=(6&jc))throw Error(ae(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=pn(e,e===Pc?Nc:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=bu(e,r);else{t=r;var o=jc;jc|=2;var a=gu();for(Pc===e&&Nc===t||(Uc=null,Wc=Qt()+500,pu(e,t));;)try{yu();break}catch(s){hu(e,s)}Si(),Oc.current=a,jc=o,null!==_c?t=0:(Pc=null,Nc=0,t=Ac)}if(0!==t){if(2===t&&(0!==(o=gn(e))&&(r=o,t=iu(e,o))),1===t)throw n=Fc,pu(e,0),lu(e,r),ou(e,Qt()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!so(a(),o))return!1}catch(i){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=bu(e,r))&&(0!==(a=gn(e))&&(r=a,t=iu(e,a))),1===t))throw n=Fc,pu(e,0),lu(e,r),ou(e,Qt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(ae(345));case 2:case 5:Su(e,zc,Uc);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Hc+500-Qt())){if(0!==pn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=oa(Su.bind(null,e,zc,Uc),t);break}Su(e,zc,Uc);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-sn(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=Qt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ec(r/1960))-r)){e.timeoutHandle=oa(Su.bind(null,e,zc,Uc),r);break}Su(e,zc,Uc);break;default:throw Error(ae(329))}}}return ou(e,Qt()),e.callbackNode===n?au.bind(null,e):null}function iu(e,t){var n=Bc;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=bu(e,t))&&(t=zc,zc=n,null!==t&&su(t)),e}function su(e){null===zc?zc=e:zc.push.apply(zc,e)}function lu(e,t){for(t&=~Lc,t&=~Mc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-sn(t),r=1<<n;e[n]=-1,t&=~r}}function cu(e){if(0!=(6&jc))throw Error(ae(327));ku();var t=pn(e,0);if(0==(1&t))return ou(e,Qt()),null;var n=bu(e,t);if(0!==e.tag&&2===n){var r=gn(e);0!==r&&(t=r,n=iu(e,r))}if(1===n)throw n=Fc,pu(e,0),lu(e,t),ou(e,Qt()),n;if(6===n)throw Error(ae(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Su(e,zc,Uc),ou(e,Qt()),null}function uu(e,t){var n=jc;jc|=1;try{return e(t)}finally{0===(jc=n)&&(Wc=Qt()+500,Ba&&Wa())}}function du(e){null!==Xc&&0===Xc.tag&&0==(6&jc)&&ku();var t=jc;jc|=1;var n=$c.transition,r=wn;try{if($c.transition=null,wn=1,e)return e()}finally{wn=r,$c.transition=n,0==(6&(jc=t))&&Wa()}}function fu(){Ic=Tc.current,Oa(Tc)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==_c)for(n=_c.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ta();break;case 3:as(),Oa(Pa),Oa(ja),ds();break;case 5:ss(r);break;case 4:as();break;case 13:case 19:Oa(ls);break;case 10:ki(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Pc=e,_c=e=Tu(e.current,null),Nc=Ic=t,Ac=0,Fc=null,Lc=Mc=Rc=0,zc=Bc=null,null!==Di){for(t=0;t<Di.length;t++)if(null!==(r=(n=Di[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Di=null}return e}function hu(e,t){for(;;){var n=_c;try{if(Si(),fs.current=il,vs){for(var r=gs.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}vs=!1}if(hs=0,bs=ms=gs=null,ys=!1,ws=0,Dc.current=null,null===n||null===n.return){Ac=1,Fc=t,_c=null;break}e:{var a=e,i=n.return,s=n,l=t;if(t=Nc,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=bl(i);if(null!==p){p.flags&=-257,vl(p,i,s,0,t),1&p.mode&&ml(a,c,t),l=c;var h=(t=p).updateQueue;if(null===h){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break e}if(0==(1&t)){ml(a,c,t),mu();break e}l=Error(ae(426))}else if(ai&&1&s.mode){var m=bl(i);if(null!==m){0==(65536&m.flags)&&(m.flags|=256),vl(m,i,s,0,t),gi(ul(l,s));break e}}a=l=ul(l,s),4!==Ac&&(Ac=2),null===Bc?Bc=[a]:Bc.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ri(a,hl(0,l,t));break e;case 1:s=l;var b=a.type,v=a.stateNode;if(0==(128&a.flags)&&("function"==typeof b.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===qc||!qc.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Ri(a,gl(a,s,t));break e}}a=a.return}while(null!==a)}xu(n)}catch(y){t=y,_c===n&&null!==n&&(_c=n=n.return);continue}break}}function gu(){var e=Oc.current;return Oc.current=il,null===e?il:e}function mu(){0!==Ac&&3!==Ac&&2!==Ac||(Ac=4),null===Pc||0==(268435455&Rc)&&0==(268435455&Mc)||lu(Pc,Nc)}function bu(e,t){var n=jc;jc|=2;var r=gu();for(Pc===e&&Nc===t||(Uc=null,pu(e,t));;)try{vu();break}catch(K4){hu(e,K4)}if(Si(),jc=n,Oc.current=r,null!==_c)throw Error(ae(261));return Pc=null,Nc=0,Ac}function vu(){for(;null!==_c;)wu(_c)}function yu(){for(;null!==_c&&!Xt();)wu(_c)}function wu(e){var t=Cc(e.alternate,e,Ic);e.memoizedProps=e.pendingProps,null===t?xu(e):_c=t,Dc.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Kl(n,t,Ic)))return void(_c=n)}else{if(null!==(n=Xl(n,t)))return n.flags&=32767,void(_c=n);if(null===e)return Ac=6,void(_c=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_c=t);_c=t=e}while(null!==t);0===Ac&&(Ac=5)}function Su(e,t,n){var r=wn,o=$c.transition;try{$c.transition=null,wn=1,function(e,t,n,r){do{ku()}while(null!==Xc);if(0!=(6&jc))throw Error(ae(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ae(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-sn(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Pc&&(_c=Pc=null,Nc=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Kc||(Kc=!0,Pu(tn,(function(){return ku(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=$c.transition,$c.transition=null;var i=wn;wn=1;var s=jc;jc|=4,Dc.current=null,function(e,t){if(ta=Vn,ho(e=po())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var i=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==r&&3!==d.nodeType||(l=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===o&&(s=i),f===a&&++u===r&&(l=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(na={focusedElem:e,selectionRange:n},Vn=!1,Zl=t;null!==Zl;)if(e=(t=Zl).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Zl=e;else for(;null!==Zl;){t=Zl;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,m=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:bi(t.type,g),m);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(ae(163))}}catch(w){Eu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zl=e;break}Zl=t.return}h=nc,nc=!1}(e,n),bc(n,e),go(na),Vn=!!ta,na=ta=null,e.current=n,yc(n),Yt(),jc=s,wn=i,$c.transition=a}else e.current=n;if(Kc&&(Kc=!1,Xc=e,Yc=o),a=e.pendingLanes,0===a&&(qc=null),function(e){if(an&&"function"==typeof an.onCommitFiberRoot)try{an.onCommitFiberRoot(on,e,void 0,128==(128&e.current.flags))}catch(t){}}(n.stateNode),ou(e,Qt()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Vc)throw Vc=!1,e=Gc,Gc=null,e;0!=(1&Yc)&&0!==e.tag&&ku(),a=e.pendingLanes,0!=(1&a)?e===Jc?Qc++:(Qc=0,Jc=e):Qc=0,Wa()}(e,t,n,r)}finally{$c.transition=o,wn=r}return null}function ku(){if(null!==Xc){var e=xn(Yc),t=$c.transition,n=wn;try{if($c.transition=null,wn=16>e?16:e,null===Xc)var r=!1;else{if(e=Xc,Xc=null,Yc=0,0!=(6&jc))throw Error(ae(331));var o=jc;for(jc|=4,Zl=e.current;null!==Zl;){var a=Zl,i=a.child;if(0!=(16&Zl.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Zl=c;null!==Zl;){var u=Zl;switch(u.tag){case 0:case 11:case 15:rc(8,u,a)}var d=u.child;if(null!==d)d.return=u,Zl=d;else for(;null!==Zl;){var f=(u=Zl).sibling,p=u.return;if(ic(u),u===c){Zl=null;break}if(null!==f){f.return=p,Zl=f;break}Zl=p}}}var h=a.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Zl=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,Zl=i;else e:for(;null!==Zl;){if(0!=(2048&(a=Zl).flags))switch(a.tag){case 0:case 11:case 15:rc(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Zl=b;break e}Zl=a.return}}var v=e.current;for(Zl=v;null!==Zl;){var y=(i=Zl).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,Zl=y;else e:for(i=v;null!==Zl;){if(0!=(2048&(s=Zl).flags))try{switch(s.tag){case 0:case 11:case 15:oc(9,s)}}catch(x){Eu(s,s.return,x)}if(s===i){Zl=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Zl=w;break e}Zl=s.return}}if(jc=o,Wa(),an&&"function"==typeof an.onPostCommitFiberRoot)try{an.onPostCommitFiberRoot(on,e)}catch(x){}r=!0}return r}finally{wn=n,$c.transition=t}}return!1}function Cu(e,t,n){e=Ai(e,t=hl(0,t=ul(n,t),1),1),t=tu(),null!==e&&(vn(e,1,t),ou(e,t))}function Eu(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qc||!qc.has(r))){t=Ai(t,e=gl(t,e=ul(n,e),1),1),e=tu(),null!==t&&(vn(t,1,e),ou(t,e));break}}t=t.return}}function Ou(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Pc===e&&(Nc&n)===n&&(4===Ac||3===Ac&&(130023424&Nc)===Nc&&500>Qt()-Hc?pu(e,0):Lc|=n),ou(e,t)}function Du(e,t){0===t&&(0==(1&e.mode)?t=1:(t=dn,0==(130023424&(dn<<=1))&&(dn=4194304)));var n=tu();null!==(e=Pi(e,t))&&(vn(e,t,n),ou(e,n))}function $u(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Du(e,n)}function ju(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ae(314))}null!==r&&r.delete(t),Du(e,n)}function Pu(e,t){return qt(e,t)}function _u(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 Nu(e,t,n,r){return new _u(e,t,n,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tu(e,t){var n=e.alternate;return null===n?((n=Nu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Au(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Iu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ke:return Fu(n.children,o,a,t);case Ce:i=8,o|=8;break;case Ee:return(e=Nu(12,n,t,2|o)).elementType=Ee,e.lanes=a,e;case je:return(e=Nu(13,n,t,o)).elementType=je,e.lanes=a,e;case Pe:return(e=Nu(19,n,t,o)).elementType=Pe,e.lanes=a,e;case Ie:return Ru(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Oe:i=10;break e;case De:i=9;break e;case $e:i=11;break e;case _e:i=14;break e;case Ne:i=16,r=null;break e}throw Error(ae(130,null==e?e:typeof e,""))}return(t=Nu(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Fu(e,t,n,r){return(e=Nu(7,e,r,t)).lanes=n,e}function Ru(e,t,n,r){return(e=Nu(22,e,r,t)).elementType=Ie,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function Lu(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(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=bn(0),this.expirationTimes=bn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bn(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,o,a,i,s,l){return e=new Bu(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Nu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ni(a),e}function Hu(e){if(!e)return $a;e:{if(Ht(e=e._reactInternals)!==e||1!==e.tag)throw Error(ae(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ia(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ae(171))}if(1===e.tag){var n=e.type;if(Ia(n))return Fa(e,n,t)}return t}function Wu(e,t,n,r,o,a,i,s,l){return(e=zu(n,r,!0,e,0,a,0,s,l)).context=Hu(null),n=e.current,(a=Ti(r=tu(),o=nu(n))).callback=null!=t?t:null,Ai(n,a,o),e.current.lanes=o,vn(e,o,r),ou(e,r),e}function Uu(e,t,n,r){var o=t.current,a=tu(),i=nu(o);return n=Hu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ti(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ai(o,t,i))&&(ru(e,o,i,a),Fi(e,o,i)),i}function Vu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qu(e,t){Gu(e,t),(e=e.alternate)&&Gu(e,t)}Cc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pa.current)wl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return wl=!1,function(e,t,n){switch(t.tag){case 3:Pl(t),hi();break;case 5:is(t);break;case 1:Ia(t.type)&&Ra(t);break;case 4:os(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Da(vi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Da(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ml(e,t,n):(Da(ls,1&ls.current),null!==(e=Vl(e,t,n))?e.sibling:null);Da(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Wl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Da(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return Vl(e,t,n)}(e,t,n);wl=0!=(131072&e.flags)}else wl=!1,ai&&0!=(1048576&t.flags)&&ei(t,qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var o=Na(t,ja.current);Ei(t,n),o=Cs(null,t,r,e,o,n);var a=Es();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ia(r)?(a=!0,Ra(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ni(t),o.updater=Hi,t.stateNode=o,o._reactInternals=t,Gi(t,r,e,n),t=jl(null,t,r,!0,a,n)):(t.tag=0,ai&&a&&ti(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Iu(e)?1:0;if(null!=e){if((e=e.$$typeof)===$e)return 11;if(e===_e)return 14}return 2}(r),e=bi(r,e),o){case 0:t=Dl(null,t,r,e,n);break e;case 1:t=$l(null,t,r,e,n);break e;case 11:t=Sl(null,t,r,e,n);break e;case 14:t=kl(null,t,r,bi(r.type,e),n);break e}throw Error(ae(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Dl(e,t,r,o=t.elementType===r?o:bi(r,o),n);case 1:return r=t.type,o=t.pendingProps,$l(e,t,r,o=t.elementType===r?o:bi(r,o),n);case 3:e:{if(Pl(t),null===e)throw Error(ae(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ii(e,t),Mi(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=_l(e,t,r,n,o=ul(Error(ae(423)),t));break e}if(r!==o){t=_l(e,t,r,n,o=ul(Error(ae(424)),t));break e}for(oi=ua(t.stateNode.containerInfo.firstChild),ri=t,ai=!0,ii=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Vl(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return is(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,ra(r,o)?i=null:null!==a&&ra(r,a)&&(t.flags|=32),Ol(e,t),xl(e,t,i,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ml(e,t,n);case 4:return os(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qi(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Sl(e,t,r,o=t.elementType===r?o:bi(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Da(vi,r._currentValue),r._currentValue=i,null!==a)if(so(a.value,i)){if(a.children===o.children&&!Pa.current){t=Vl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===a.tag){(l=Ti(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ci(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(ae(341));i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Ci(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),r=r(o=Oi(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=bi(r=t.type,t.pendingProps),kl(e,t,r,o=bi(r.type,o),n);case 15:return Cl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bi(r,o),Ul(e,t),t.tag=1,Ia(r)?(e=!0,Ra(t)):e=!1,Ei(t,n),Ui(t,r,o),Gi(t,r,o,n),jl(null,t,r,!0,e,n);case 19:return Wl(e,t,n);case 22:return El(e,t,n)}throw Error(ae(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Xu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ed(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Vu(i);s.call(e)}}Uu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=Vu(i);a.call(e)}}var i=Wu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=i,e[ga]=i.current,Wo(8===e.nodeType?e.parentNode:e),du(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Vu(l);s.call(e)}}var l=zu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[ga]=l.current,Wo(8===e.nodeType?e.parentNode:e),du((function(){Uu(t,l,n,r)})),l}(n,t,e,o,r);return Vu(i)}Yu.prototype.render=Xu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ae(409));Uu(e,t,null,null)},Yu.prototype.unmount=Xu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du((function(){Uu(null,e,null,null)})),t[ga]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=En();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tn.length&&0!==t&&t<Tn[n].priority;n++);Tn.splice(n,0,e),0===n&&Mn(e)}},Sn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=fn(t.pendingLanes);0!==n&&(yn(t,1|n),ou(t,Qt()),0==(6&jc)&&(Wc=Qt()+500,Wa()))}break;case 13:du((function(){var t=Pi(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),qu(e,1)}},kn=function(e){if(13===e.tag){var t=Pi(e,134217728);if(null!==t)ru(t,e,134217728,tu());qu(e,134217728)}},Cn=function(e){if(13===e.tag){var t=nu(e),n=Pi(e,t);if(null!==n)ru(n,e,t,tu());qu(e,t)}},En=function(){return wn},On=function(e,t){var n=wn;try{return wn=e,t()}finally{wn=n}},St=function(e,t,n){switch(t){case"input":if(Je(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Sa(r);if(!o)throw Error(ae(90));qe(r),Je(r,o)}}}break;case"textarea":at(e,n);break;case"select":null!=(t=n.value)&&nt(e,!!n.multiple,t,!1)}},$t=uu,jt=du;var td={usingClientEntryPoint:!1,Events:[wa,xa,Sa,Ot,Dt,uu]},nd={findFiberByHostInstance:ya,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rd={bundleType:nd.bundleType,version:nd.version,rendererPackageName:nd.rendererPackageName,rendererConfig:nd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:we.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Vt(e))?null:e.stateNode},findFiberByHostInstance:nd.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!od.isDisabled&&od.supportsFiber)try{on=od.inject(rd),an=od}catch(ut){}}Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=td,Z.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(ae(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Se,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},Z.createRoot=function(e,t){if(!Qu(e))throw Error(ae(299));var n=!1,r="",o=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zu(e,1,!1,null,0,n,0,r,o),e[ga]=t.current,Wo(8===e.nodeType?e.parentNode:e),new Xu(t)},Z.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(ae(188));throw e=Object.keys(e).join(","),Error(ae(268,e))}return e=null===(e=Vt(t))?null:e.stateNode},Z.flushSync=function(e){return du(e)},Z.hydrate=function(e,t,n){if(!Ju(t))throw Error(ae(200));return ed(null,e,t,!0,n)},Z.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(ae(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,o,0,a,i),e[ga]=t.current,Wo(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yu(t)},Z.render=function(e,t,n){if(!Ju(t))throw Error(ae(200));return ed(null,e,t,!1,n)},Z.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(ae(40));return!!e._reactRootContainer&&(du((function(){ed(null,null,e,!1,(function(){e._reactRootContainer=null,e[ga]=null}))})),!0)},Z.unstable_batchedUpdates=uu,Z.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(ae(200));if(null==e||void 0===e._reactInternals)throw Error(ae(38));return ed(e,t,n,!1,r)},Z.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),J.exports=Z;var ad=J.exports;const id=n(ad),sd=e({__proto__:null,default:id},[ad]);var ld,cd=ad;ld=cd.createRoot,cd.hydrateRoot;const ud={},dd=function(e,t,n){if(!t||0===t.length)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if((e=function(e){return"/dev/"+e}(e))in ud)return;ud[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!n)for(let n=r.length-1;n>=0;n--){const o=r[n];if(o.href===e&&(!t||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${e}"]${o}`))return;const a=document.createElement("link");return a.rel=t?"stylesheet":"modulepreload",t||(a.as="script",a.crossOrigin=""),a.href=e,document.head.appendChild(a),t?new Promise(((t,n)=>{a.addEventListener("load",t),a.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))};function fd(e){return(fd="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 pd(e){var t=function(e,t){if("object"!==fd(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fd(t)?t:String(t)}function hd(e,t,n){return(t=pd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var md={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 bd=(e,t)=>{const n=z.forwardRef((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:a,children:i,...s},l)=>{return z.createElement("svg",{ref:l,...md,width:r,height:r,stroke:n,strokeWidth:a?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])=>z.createElement(e,t))),...(Array.isArray(i)?i:[i])||[]]);var c}));return n.displayName=`${e}`,n},vd=bd("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"}]]),yd=bd("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"}]]),wd=bd("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),xd=bd("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Sd=bd("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),kd=bd("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Cd=bd("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"}]]),Ed=bd("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]),Od=bd("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"}]]),Dd=bd("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"}]]),$d=bd("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"}]]),jd=bd("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Pd=bd("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"}]]),_d=bd("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Nd=bd("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"}]]),Id=bd("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"}]]),Td=bd("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"}]]),Ad=bd("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"}]]),Fd=bd("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"}]]),Rd=bd("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"}]]),Md=bd("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"}]]),Ld=bd("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"}]]),Bd=bd("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"}]]),zd=bd("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Hd=bd("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"}]]),Wd=bd("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function Ud(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Vd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pd(r.key),r)}}function qd(e,t,n){return t&&Gd(e.prototype,t),n&&Gd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Kd=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(K4){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Xd="-ms-",Yd="-moz-",Qd="-webkit-",Jd="comm",Zd="rule",ef="decl",tf="@keyframes",nf=Math.abs,rf=String.fromCharCode,of=Object.assign;function af(e){return e.trim()}function sf(e,t,n){return e.replace(t,n)}function lf(e,t){return e.indexOf(t)}function cf(e,t){return 0|e.charCodeAt(t)}function uf(e,t,n){return e.slice(t,n)}function df(e){return e.length}function ff(e){return e.length}function pf(e,t){return t.push(e),e}var hf=1,gf=1,mf=0,bf=0,vf=0,yf="";function wf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:hf,column:gf,length:i,return:""}}function xf(e,t){return of(wf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Sf(){return vf=bf<mf?cf(yf,bf++):0,gf++,10===vf&&(gf=1,hf++),vf}function kf(){return cf(yf,bf)}function Cf(){return bf}function Ef(e,t){return uf(yf,e,t)}function Of(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Df(e){return hf=gf=1,mf=df(yf=e),bf=0,[]}function $f(e){return yf="",e}function jf(e){return af(Ef(bf-1,Nf(91===e?e+2:40===e?e+1:e)))}function Pf(e){for(;(vf=kf())&&vf<33;)Sf();return Of(e)>2||Of(vf)>3?"":" "}function _f(e,t){for(;--t&&Sf()&&!(vf<48||vf>102||vf>57&&vf<65||vf>70&&vf<97););return Ef(e,Cf()+(t<6&&32==kf()&&32==Sf()))}function Nf(e){for(;Sf();)switch(vf){case e:return bf;case 34:case 39:34!==e&&39!==e&&Nf(vf);break;case 40:41===e&&Nf(e);break;case 92:Sf()}return bf}function If(e,t){for(;Sf()&&e+vf!==57&&(e+vf!==84||47!==kf()););return"/*"+Ef(t,bf-1)+"*"+rf(47===e?e:Sf())}function Tf(e){for(;!Of(kf());)Sf();return Ef(e,bf)}function Af(e){return $f(Ff("",null,null,null,[""],e=Df(e),0,[0],e))}function Ff(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,p=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=a,S=r,k=y;m;)switch(h=v,v=Sf()){case 40:if(108!=h&&58==cf(k,d-1)){-1!=lf(k+=sf(jf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=jf(v);break;case 9:case 10:case 13:case 32:k+=Pf(h);break;case 92:k+=_f(Cf()-1,7);continue;case 47:switch(kf()){case 42:case 47:pf(Mf(If(Sf(),Cf()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=df(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=sf(k,/\f/g,"")),p>0&&df(k)-d&&pf(p>32?Lf(k+";",r,n,d-1):Lf(sf(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(pf(S=Rf(k,t,n,c,u,o,s,y,w=[],x=[],d),a),123===v)if(0===u)Ff(k,t,S,S,w,a,d,s,x);else switch(99===f&&110===cf(k,3)?100:f){case 100:case 108:case 109:case 115:Ff(e,S,S,r&&pf(Rf(e,S,S,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Ff(k,S,S,S,[""],x,0,s,x)}}c=u=p=0,g=b=1,y=k="",d=i;break;case 58:d=1+df(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(vf=bf>0?cf(yf,--bf):0,gf--,10===vf&&(gf=1,hf--),vf))continue;switch(k+=rf(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(df(k)-1)*b,b=1;break;case 64:45===kf()&&(k+=jf(Sf())),f=kf(),u=d=df(y=k+=Tf(Cf())),v++;break;case 45:45===h&&2==df(k)&&(g=0)}}return a}function Rf(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,f=0===o?a:[""],p=ff(f),h=0,g=0,m=0;h<r;++h)for(var b=0,v=uf(e,d+1,d=nf(g=i[h])),y=e;b<p;++b)(y=af(g>0?f[b]+" "+v:sf(v,/&\f/g,f[b])))&&(l[m++]=y);return wf(e,t,n,0===o?Zd:s,l,c,u)}function Mf(e,t,n){return wf(e,t,n,Jd,rf(vf),uf(e,2,-2),0)}function Lf(e,t,n,r){return wf(e,t,n,ef,uf(e,0,r),uf(e,r+1,-1),r)}function Bf(e,t){for(var n="",r=ff(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function zf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ef:return e.return=e.return||e.value;case Jd:return"";case tf:return e.return=e.value+"{"+Bf(e.children,r)+"}";case Zd:e.value=e.props.join(",")}return df(n=Bf(e.children,r))?e.return=e.value+"{"+n+"}":""}var Hf=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function Wf(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Uf=function(e,t,n){for(var r=0,o=0;r=o,o=kf(),38===r&&12===o&&(t[n]=1),!Of(o);)Sf();return Ef(e,bf)},Vf=function(e,t){return $f(function(e,t){var n=-1,r=44;do{switch(Of(r)){case 0:38===r&&12===kf()&&(t[n]=1),e[n]+=Uf(bf-1,t,n);break;case 2:e[n]+=jf(r);break;case 4:if(44===r){e[++n]=58===kf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=rf(r)}}while(r=Sf());return e}(Df(e),t))},Gf=new WeakMap,qf=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Gf.get(n))&&!r){Gf.set(e,!0);for(var o=[],a=Vf(t,o),i=n.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},Kf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Xf(e,t){switch(function(e,t){return 45^cf(e,0)?(((t<<2^cf(e,0))<<2^cf(e,1))<<2^cf(e,2))<<2^cf(e,3):0}(e,t)){case 5103:return Qd+"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 Qd+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qd+e+Yd+e+Xd+e+e;case 6828:case 4268:return Qd+e+Xd+e+e;case 6165:return Qd+e+Xd+"flex-"+e+e;case 5187:return Qd+e+sf(e,/(\w+).+(:[^]+)/,Qd+"box-$1$2"+Xd+"flex-$1$2")+e;case 5443:return Qd+e+Xd+"flex-item-"+sf(e,/flex-|-self/,"")+e;case 4675:return Qd+e+Xd+"flex-line-pack"+sf(e,/align-content|flex-|-self/,"")+e;case 5548:return Qd+e+Xd+sf(e,"shrink","negative")+e;case 5292:return Qd+e+Xd+sf(e,"basis","preferred-size")+e;case 6060:return Qd+"box-"+sf(e,"-grow","")+Qd+e+Xd+sf(e,"grow","positive")+e;case 4554:return Qd+sf(e,/([^-])(transform)/g,"$1"+Qd+"$2")+e;case 6187:return sf(sf(sf(e,/(zoom-|grab)/,Qd+"$1"),/(image-set)/,Qd+"$1"),e,"")+e;case 5495:case 3959:return sf(e,/(image-set\([^]*)/,Qd+"$1$`$1");case 4968:return sf(sf(e,/(.+:)(flex-)?(.*)/,Qd+"box-pack:$3"+Xd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qd+e+e;case 4095:case 3583:case 4068:case 2532:return sf(e,/(.+)-inline(.+)/,Qd+"$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(df(e)-1-t>6)switch(cf(e,t+1)){case 109:if(45!==cf(e,t+4))break;case 102:return sf(e,/(.+:)(.+)-([^]+)/,"$1"+Qd+"$2-$3$1"+Yd+(108==cf(e,t+3)?"$3":"$2-$3"))+e;case 115:return~lf(e,"stretch")?Xf(sf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==cf(e,t+1))break;case 6444:switch(cf(e,df(e)-3-(~lf(e,"!important")&&10))){case 107:return sf(e,":",":"+Qd)+e;case 101:return sf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qd+(45===cf(e,14)?"inline-":"")+"box$3$1"+Qd+"$2$3$1"+Xd+"$2box$3")+e}break;case 5936:switch(cf(e,t+11)){case 114:return Qd+e+Xd+sf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qd+e+Xd+sf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qd+e+Xd+sf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qd+e+Xd+e+e}return e}var Yf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ef:e.return=Xf(e.value,e.length);break;case tf:return Bf([xf(e,{value:sf(e.value,"@","@"+Qd)})],r);case Zd:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bf([xf(e,{props:[sf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Bf([xf(e,{props:[sf(t,/:(plac\w+)/,":"+Qd+"input-$1")]}),xf(e,{props:[sf(t,/:(plac\w+)/,":-moz-$1")]}),xf(e,{props:[sf(t,/:(plac\w+)/,Xd+"input-$1")]})],r)}return""}))}}],Qf=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Yf,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[zf,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[qf,Kf].concat(a,f),u=ff(c),function(e,t,n,r){for(var o="",a=0;a<u;a++)o+=c[a](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Bf(Af(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Kd({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return h.sheet.hydrate(s),h};var Jf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zf=/[A-Z]|^ms/g,ep=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tp=function(e){return 45===e.charCodeAt(1)},np=function(e){return null!=e&&"boolean"!=typeof e},rp=Wf((function(e){return tp(e)?e:e.replace(Zf,"-$&").toLowerCase()})),op=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ep,(function(e,t,n){return ip={name:t,styles:n,next:ip},t}))}return 1===Jf[e]||tp(e)||"number"!=typeof t||0===t?t:t+"px"};function ap(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ip={name:n.name,styles:n.styles,next:ip},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ip={name:r.name,styles:r.styles,next:ip},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ap(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":np(i)&&(r+=rp(a)+":"+op(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=ap(e,t,i);switch(a){case"animation":case"animationName":r+=rp(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)np(i[l])&&(r+=rp(a)+":"+op(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ip,a=n(e);return ip=o,ap(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var ip,sp=/label:\s*([^\s;\n{]+)\s*(;|$)/g,lp=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ip=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=ap(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=ap(n,t,e[i]),r&&(o+=a[i]);sp.lastIndex=0;for(var s,l="";null!==(s=sp.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ip}};function cp(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var up=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},dp=function(e,t,n){up(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function fp(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function pp(e,t,n){var r=[],o=cp(e,r,n);return r.length<2?n:o+t(r)}var hp=function(e){var t=Qf(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=lp(n,t.registered,void 0);return dp(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return pp(t.registered,n,gp(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=lp(n,t.registered);fp(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=lp(n,t.registered),a="animation-"+o.name;return fp(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:cp.bind(null,t.registered),merge:pp.bind(null,t.registered,n)}},gp=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},mp=hp({key:"css"});mp.flush,mp.hydrate;var bp=mp.cx;mp.merge,mp.getRegisteredStyles,mp.injectGlobal,mp.keyframes;var vp=mp.css;mp.sheet;var yp=mp.cache,wp=function(){function e(){Vd(this,e),hd(this,"_cacheList",[yp])}return qd(e,[{key:"add",value:function(e){var t=this.getCache(e.key);return t||(this._cacheList.push(e),e)}},{key:"delete",value:function(e){this._cacheList=this._cacheList.filter((function(t){return t.key!==e.key}))}},{key:"hasCache",value:function(e){return this._cacheList.some((function(t){return t.key===e.key}))}},{key:"getCache",value:function(e){return this._cacheList.find((function(t){return t.key===e}))}},{key:"getCacheList",value:function(){return this._cacheList}}]),e}(),xp="undefined"!=typeof document,Sp=function(e,t){return"".concat(e,"-").concat(t)},kp=function(e){return"object"===fd(e)&&"styles"in e&&"name"in e&&"toString"in e},Cp=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!==o){var a=void 0;switch(fd(o)){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},Ep=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=lp(r,e.registered,void 0);return function(e,t,n,r){var o=r.hashPriority||"high";up(e,t,n);var a=".".concat(Sp(e.key,t.name)),i="low"===o?":where(".concat(a,")"):a;if(void 0===e.inserted[t.name]){var s="",l=t;do{var c=e.insert(t===l?i:"",l,e.sheet,!0);xp||void 0===c||(s+=c),l=l.next}while(void 0!==l);if(!xp&&0!==s.length);}}(e,a,!1,t),Sp(e.key,a.name)}},Op=function(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=r.map((function(e){return kp(e)?t(e):e}));return function(e,t,n){var r=[],o=cp(e,r,n);return r.length<2?n:o+t(r)}(e.registered,t,Cp(a))}},Dp=function(e,t){var n=Ep(e,{hashPriority:t.hashPriority||"high",label:t.label});return{css:n,cx:Op(e,n)}},$p=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return lp(t)};function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jp.apply(this,arguments)}var Pp={exports:{}},_p={},Np="function"==typeof Symbol&&Symbol.for,Ip=Np?Symbol.for("react.element"):60103,Tp=Np?Symbol.for("react.portal"):60106,Ap=Np?Symbol.for("react.fragment"):60107,Fp=Np?Symbol.for("react.strict_mode"):60108,Rp=Np?Symbol.for("react.profiler"):60114,Mp=Np?Symbol.for("react.provider"):60109,Lp=Np?Symbol.for("react.context"):60110,Bp=Np?Symbol.for("react.async_mode"):60111,zp=Np?Symbol.for("react.concurrent_mode"):60111,Hp=Np?Symbol.for("react.forward_ref"):60112,Wp=Np?Symbol.for("react.suspense"):60113,Up=Np?Symbol.for("react.suspense_list"):60120,Vp=Np?Symbol.for("react.memo"):60115,Gp=Np?Symbol.for("react.lazy"):60116,qp=Np?Symbol.for("react.block"):60121,Kp=Np?Symbol.for("react.fundamental"):60117,Xp=Np?Symbol.for("react.responder"):60118,Yp=Np?Symbol.for("react.scope"):60119;function Qp(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ip:switch(e=e.type){case Bp:case zp:case Ap:case Rp:case Fp:case Wp:return e;default:switch(e=e&&e.$$typeof){case Lp:case Hp:case Gp:case Vp:case Mp:return e;default:return t}}case Tp:return t}}}function Jp(e){return Qp(e)===zp}_p.AsyncMode=Bp,_p.ConcurrentMode=zp,_p.ContextConsumer=Lp,_p.ContextProvider=Mp,_p.Element=Ip,_p.ForwardRef=Hp,_p.Fragment=Ap,_p.Lazy=Gp,_p.Memo=Vp,_p.Portal=Tp,_p.Profiler=Rp,_p.StrictMode=Fp,_p.Suspense=Wp,_p.isAsyncMode=function(e){return Jp(e)||Qp(e)===Bp},_p.isConcurrentMode=Jp,_p.isContextConsumer=function(e){return Qp(e)===Lp},_p.isContextProvider=function(e){return Qp(e)===Mp},_p.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ip},_p.isForwardRef=function(e){return Qp(e)===Hp},_p.isFragment=function(e){return Qp(e)===Ap},_p.isLazy=function(e){return Qp(e)===Gp},_p.isMemo=function(e){return Qp(e)===Vp},_p.isPortal=function(e){return Qp(e)===Tp},_p.isProfiler=function(e){return Qp(e)===Rp},_p.isStrictMode=function(e){return Qp(e)===Fp},_p.isSuspense=function(e){return Qp(e)===Wp},_p.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ap||e===zp||e===Rp||e===Fp||e===Wp||e===Up||"object"==typeof e&&null!==e&&(e.$$typeof===Gp||e.$$typeof===Vp||e.$$typeof===Mp||e.$$typeof===Lp||e.$$typeof===Hp||e.$$typeof===Kp||e.$$typeof===Xp||e.$$typeof===Yp||e.$$typeof===qp)},_p.typeOf=Qp,Pp.exports=_p;var Zp=Pp.exports,eh={};eh[Zp.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eh[Zp.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var th=!!W.useInsertionEffect&&W.useInsertionEffect||z.useLayoutEffect,nh=z.createContext("undefined"!=typeof HTMLElement?Qf({key:"css"}):null);nh.Provider;var rh=function(e){return z.forwardRef((function(t,n){var r=z.useContext(nh);return e(t,r,n)}))},oh=z.createContext({}),ah=Hf((function(e){return Hf((function(t){return function(e,t){return"function"==typeof t?t(e):jp({},e,t)}(e,t)}))})),ih=rh((function(e,t){var n=e.styles,r=lp([n],void 0,z.useContext(oh)),o=z.useRef();return th((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),o.current=[n,a],function(){n.flush()}}),[t]),th((function(){var e=o.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&dp(t,r.next,!0),n.tags.length){var a=n.tags[n.tags.length-1].nextElementSibling;n.before=a,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sh(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uh(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function dh(e,t){if(e){if("string"==typeof e)return ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ch(e,t):void 0}}function fh(e){return function(e){if(Array.isArray(e))return ch(e)}(e)||uh(e)||dh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gh(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function mh(e,t,n){var r=z.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var bh={};function vh(e,t){}function yh(e,t){}function wh(e,t,n){t||bh[n]||(e(!1,n),bh[n]=!0)}function xh(e,t){wh(vh,e,t)}function Sh(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.has(t);if(xh(!i,"Warning: There may be circular references"),i)return!1;if(t===o)return!0;if(n&&a>1)return!1;r.add(t);var s=a+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],o[l],s))return!1;return!0}if(t&&o&&"object"===fd(t)&&"object"===fd(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every((function(n){return e(t[n],o[n],s)}))}return!1}(e,t)}xh.preMessage=function(e){},xh.resetWarned=function(){bh={}},xh.noteOnce=function(e,t){wh(yh,e,t)};var kh=function(){function e(t){Vd(this,e),hd(this,"instanceId",void 0),hd(this,"cache",new Map),this.instanceId=t}return qd(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),Ch=["children"],Eh="data-token-hash",Oh="data-css-hash",Dh="__cssinjs_instance__";function $h(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Oh,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Dh]=t[Dh]||e,t[Dh]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Oh,"]"))).forEach((function(t){var n,o=t.getAttribute(Oh);r[o]?t[Dh]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new kh(e)}var jh=z.createContext({hashPriority:"low",cache:$h(),defaultCache:!0}),Ph=function(e){var t=e.children,n=gd(e,Ch),r=z.useContext(jh),o=mh((function(){var e=hh({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||$h(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!Sh(e[0],t[0],!0)||!Sh(e[1],t[1],!0)}));return z.createElement(jh.Provider,{value:o},t)};const _h=jh;function Nh(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ih(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var Th="data-rc-order",Ah="data-rc-priority",Fh="rc-util-key",Rh=new Map;function Mh(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Fh}function Lh(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Bh(e){return Array.from((Rh.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function zh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Nh())return null;var n=t.csp,r=t.prepend,o=t.priority,a=void 0===o?0:o,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===i,l=document.createElement("style");l.setAttribute(Th,i),s&&a&&l.setAttribute(Ah,"".concat(a)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=Lh(t),u=c.firstChild;if(r){if(s){var d=Bh(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Th)))return!1;var t=Number(e.getAttribute(Ah)||0);return a>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Hh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Bh(Lh(t)).find((function(n){return n.getAttribute(Mh(t))===e}))}function Wh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Hh(e,t);n&&Lh(t).removeChild(n)}function Uh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=Rh.get(e);if(!n||!Ih(document,n)){var r=zh("",t),o=r.parentNode;Rh.set(e,o),e.removeChild(r)}}(Lh(n),n);var r=Hh(t,n);if(r){var o,a,i;if(null!==(o=n.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(a=n.csp)||void 0===a?void 0:a.nonce))r.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var s=zh(e,n);return s.setAttribute(Mh(n),t),s}function Vh(e){if(Array.isArray(e))return e}function Gh(){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 qh(e,t){return Vh(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||dh(e,t)||Gh()}var Kh=function(){function e(){Vd(this,e),hd(this,"cache",void 0),hd(this,"keys",void 0),hd(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return qd(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t,n;o?o=null===(t=o)||void 0===t||null===(n=t.map)||void 0===n?void 0:n.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce((function(e,t){var n=qh(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),a=qh(o,1)[0];this.delete(a)}this.keys.push(t)}var i=this.cache;t.forEach((function(e,o){if(o===t.length-1)i.set(e,{value:[n,r.cacheCallTimes++]});else{var a=i.get(e);a?a.map||(a.map=new Map):i.set(e,{map:new Map}),i=i.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();hd(Kh,"MAX_CACHE_SIZE",20),hd(Kh,"MAX_CACHE_OFFSET",5);var Xh=0,Yh=function(){function e(t){Vd(this,e),hd(this,"derivatives",void 0),hd(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Xh,0===t.length&&t.length,Xh+=1}return qd(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Qh=new Kh;function Jh(e){var t=Array.isArray(e)?e:[e];return Qh.has(t)||Qh.set(t,new Yh(t)),Qh.get(t)}var Zh=new WeakMap,eg={};var tg=new WeakMap;function ng(e){var t=tg.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof Yh?t+=r.id:r&&"object"===fd(r)?t+=ng(r):t+=r})),tg.set(e,t)),t}var rg="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),og="_bAmBoO_";var ag=void 0;function ig(){return void 0===ag&&(ag=function(e,t,n){if(Nh()){var r,o;Uh(e,rg);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",null==t||t(a),document.body.appendChild(a);var i=n?n(a):null===(r=getComputedStyle(a).content)||void 0===r?void 0:r.includes(og);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),Wh(rg),i}return!1}("@layer ".concat(rg," { .").concat(rg,' { content: "').concat(og,'"!important; } }'),(function(e){e.className=rg}))),ag}var sg=Nh()?z.useLayoutEffect:z.useEffect,lg=function(e,t){var n=z.useRef(!0);sg((function(){return e(n.current)}),t),sg((function(){return n.current=!1,function(){n.current=!0}}),[])},cg=function(e,t){lg((function(t){if(!t)return e()}),t)},ug=hh({},W).useInsertionEffect;const dg=ug?function(e,t,n){return ug((function(){return e(),t()}),n)}:function(e,t,n){z.useMemo(e,n),lg((function(){return t(!0)}),n)};const fg=void 0!==hh({},W).useInsertionEffect?function(e){var t=[],n=!1;return z.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function pg(e,t,n,r,o){var a=z.useContext(_h).cache,i=[e].concat(fh(t)),s=i.join("_"),l=fg([s]),c=function(e){a.update(i,(function(t){var r=qh(t||[],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a}))};z.useMemo((function(){c()}),[s]);var u=a.get(i)[1];return dg((function(){null==o||o(u)}),(function(e){return c((function(t){var n=qh(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(u)),[r+1,a]})),function(){a.update(i,(function(e){var t=qh(e||[],2),n=t[0],o=void 0===n?0:n,a=t[1];return 0===o-1?(l((function(){return null==r?void 0:r(a,!1)})),null):[o-1,a]}))}}),[s]),u}var hg={},gg="css",mg=new Map;var bg=0;function vg(e,t){mg.set(e,(mg.get(e)||0)-1);var n=Array.from(mg.keys()),r=n.filter((function(e){return(mg.get(e)||0)<=0}));n.length-r.length>bg&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Eh,'="').concat(e,'"]')).forEach((function(e){var n;e[Dh]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),mg.delete(e)}))}var yg=function(e,t,n,r){var o=hh(hh({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o};function wg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=z.useContext(_h).cache.instanceId,o=n.salt,a=void 0===o?"":o,i=n.override,s=void 0===i?hg:i,l=n.formatToken,c=n.getComputedToken,u=function(e,t){for(var n=Zh,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(eg)||n.set(eg,e()),n.get(eg)}((function(){return Object.assign.apply(Object,[{}].concat(fh(t)))}),t),d=ng(u),f=ng(s),p=pg("token",[a,e.id,d,f],(function(){var t=c?c(u,s,e):yg(u,s,e,l),n=function(e,t){return gh("".concat(t,"_").concat(ng(e)))}(t,a);t._tokenKey=n,function(e){mg.set(e,(mg.get(e)||0)+1)}(n);var r="".concat(gg,"-").concat(gh(n));return t._hashId=r,[t,r]}),(function(e){vg(e[0]._tokenKey,r)}));return p}var xg={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Sg="comm",kg="rule",Cg="decl",Eg="@import",Og="@keyframes",Dg="@layer",$g=Math.abs,jg=String.fromCharCode;function Pg(e){return e.trim()}function _g(e,t,n){return e.replace(t,n)}function Ng(e,t){return e.indexOf(t)}function Ig(e,t){return 0|e.charCodeAt(t)}function Tg(e,t,n){return e.slice(t,n)}function Ag(e){return e.length}function Fg(e,t){return t.push(e),e}var Rg=1,Mg=1,Lg=0,Bg=0,zg=0,Hg="";function Wg(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Rg,column:Mg,length:i,return:"",siblings:s}}function Ug(){return zg=Bg<Lg?Ig(Hg,Bg++):0,Mg++,10===zg&&(Mg=1,Rg++),zg}function Vg(){return Ig(Hg,Bg)}function Gg(){return Bg}function qg(e,t){return Tg(Hg,e,t)}function Kg(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xg(e){return Pg(qg(Bg-1,Jg(91===e?e+2:40===e?e+1:e)))}function Yg(e){for(;(zg=Vg())&&zg<33;)Ug();return Kg(e)>2||Kg(zg)>3?"":" "}function Qg(e,t){for(;--t&&Ug()&&!(zg<48||zg>102||zg>57&&zg<65||zg>70&&zg<97););return qg(e,Gg()+(t<6&&32==Vg()&&32==Ug()))}function Jg(e){for(;Ug();)switch(zg){case e:return Bg;case 34:case 39:34!==e&&39!==e&&Jg(zg);break;case 40:41===e&&Jg(e);break;case 92:Ug()}return Bg}function Zg(e,t){for(;Ug()&&e+zg!==57&&(e+zg!==84||47!==Vg()););return"/*"+qg(t,Bg-1)+"*"+jg(47===e?e:Ug())}function em(e){for(;!Kg(Vg());)Ug();return qg(e,Bg)}function tm(e){return function(e){return Hg="",e}(nm("",null,null,null,[""],e=function(e){return Rg=Mg=1,Lg=Ag(Hg=e),Bg=0,[]}(e),0,[0],e))}function nm(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,p=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=a,S=r,k=y;m;)switch(h=v,v=Ug()){case 40:if(108!=h&&58==Ig(k,d-1)){-1!=Ng(k+=_g(Xg(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=Xg(v);break;case 9:case 10:case 13:case 32:k+=Yg(h);break;case 92:k+=Qg(Gg()-1,7);continue;case 47:switch(Vg()){case 42:case 47:Fg(om(Zg(Ug(),Gg()),t,n,l),l);break;default:k+="/"}break;case 123*g:s[c++]=Ag(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=_g(k,/\f/g,"")),p>0&&Ag(k)-d&&Fg(p>32?am(k+";",r,n,d-1,l):am(_g(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(Fg(S=rm(k,t,n,c,u,o,s,y,w=[],x=[],d,a),a),123===v)if(0===u)nm(k,t,S,S,w,a,d,s,x);else switch(99===f&&110===Ig(k,3)?100:f){case 100:case 108:case 109:case 115:nm(e,S,S,r&&Fg(rm(e,S,S,0,0,o,s,y,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:nm(k,S,S,S,[""],x,0,s,x)}}c=u=p=0,g=b=1,y=k="",d=i;break;case 58:d=1+Ag(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(zg=Bg>0?Ig(Hg,--Bg):0,Mg--,10===zg&&(Mg=1,Rg--),zg))continue;switch(k+=jg(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ag(k)-1)*b,b=1;break;case 64:45===Vg()&&(k+=Xg(Ug())),f=Vg(),u=d=Ag(y=k+=em(Gg())),v++;break;case 45:45===h&&2==Ag(k)&&(g=0)}}return a}function rm(e,t,n,r,o,a,i,s,l,c,u,d){for(var f=o-1,p=0===o?a:[""],h=function(e){return e.length}(p),g=0,m=0,b=0;g<r;++g)for(var v=0,y=Tg(e,f+1,f=$g(m=i[g])),w=e;v<h;++v)(w=Pg(m>0?p[v]+" "+y:_g(y,/&\f/g,p[v])))&&(l[b++]=w);return Wg(e,t,n,0===o?kg:s,l,c,u,d)}function om(e,t,n,r){return Wg(e,t,n,Sg,jg(zg),Tg(e,2,-2),0,r)}function am(e,t,n,r,o){return Wg(e,t,n,Cg,Tg(e,0,r),Tg(e,r+1,-1),r,o)}function im(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function sm(e,t,n,r){switch(e.type){case Dg:if(e.children.length)break;case Eg:case Cg:return e.return=e.return||e.value;case Sg:return"";case Og:return e.return=e.value+"{"+im(e.children,r)+"}";case kg:if(!Ag(e.value=e.props.join(",")))return""}return Ag(n=im(e.children,r))?e.return=e.value+"{"+n+"}":""}var lm,cm="data-ant-cssinjs-cache-path",um="_FILE_STYLE__",dm=!0;function fm(e){return function(){if(!lm&&(lm={},Nh())){var e=document.createElement("div");e.className=cm,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=qh(e.split(":"),2),n=t[0],r=t[1];lm[n]=r}));var n,r=document.querySelector("style[".concat(cm,"]"));r&&(dm=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!lm[e]}var pm=Nh(),hm="_multi_value_";function gm(e){return im(tm(e),sm).replace(/\{%%%\:[^;];}/g,";")}var mm=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,i=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=void 0===u?[]:u;n.linters;var f="",p={};function h(t){var r=t.getName(s);if(!p[r]){var o=qh(e(t.style,n,{root:!1,parentSelectors:i}),1)[0];p[r]="@keyframes ".concat(t.getName(s)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(g.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var l=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==fd(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===fd(e)&&e&&("_skip_check_"in e||hm in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;xg[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(s)),f+="".concat(n,":").concat(r,";")};var u,d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===fd(r)&&null!=r&&r[hm]&&Array.isArray(d)?d.forEach((function(n){e(t,n)})):e(t,d)}else{var g=!1,m=t.trim(),b=!1;(o||a)&&s?m.startsWith("@")?g=!0:m=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat(fh(n.slice(1))).join(" ")})).join(",")}(t,s,c):!o||s||"&"!==m&&""!==m||(m="",b=!0);var v=qh(e(r,n,{root:b,injectHash:g,parentSelectors:[].concat(fh(i),[m])}),2),y=v[0],w=v[1];p=hh(hh({},p),w),f+="".concat(m).concat(y)}}))}})),o){if(l&&ig()){var m=l.split(","),b=m[m.length-1].trim();f="@layer ".concat(b," {").concat(f,"}"),m.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f))}}else f="{".concat(f,"}");return[f,p]};function bm(){return null}function vm(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=void 0===l?0:l,u=z.useContext(_h),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,v=u.cache,y=n._tokenKey,w=[y].concat(fh(r)),x=pm,S=pg("style",w,(function(){var e=w.join("|");if(fm(e)){var n=function(e){var t=lm[e],n=null;if(t&&Nh())if(dm)n=um;else{var r=document.querySelector("style[".concat(Oh,'="').concat(lm[e],'"]'));r?n=r.innerHTML:delete lm[e]}return[n,t]}(e),i=qh(n,2),l=i[0],u=i[1];if(l)return[l,y,u,{},s,c]}var d=t(),f=qh(mm(d,{hashId:o,hashPriority:p,layer:a,path:r.join("-"),transformers:m,linters:b}),2),h=f[0],g=f[1],v=gm(h),x=function(e,t){return gh("".concat(e.join("%")).concat(t))}(w,v);return[v,y,x,g,s,c]}),(function(e,t){var n=qh(e,3)[2];(t||d)&&pm&&Wh(n,{mark:Oh})}),(function(e){var t=qh(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(x&&n!==um){var a={mark:Oh,prepend:"queue",attachTo:h,priority:c},s="function"==typeof i?i():i;s&&(a.csp={nonce:s});var l=Uh(n,r,a);l[Dh]=v.instanceId,l.setAttribute(Eh,y),Object.keys(o).forEach((function(e){Uh(gm(o[e]),"_effect-".concat(e),a)}))}})),k=qh(S,3),C=k[0],E=k[1],O=k[2];return function(e){var t,n;g&&!x&&f?t=z.createElement("style",jp({},(hd(n={},Eh,E),hd(n,Oh,O),n),{dangerouslySetInnerHTML:{__html:C}})):t=z.createElement(bm,null);return z.createElement(z.Fragment,null,t,e)}}var ym=function(){function e(t,n){Vd(this,e),hd(this,"name",void 0),hd(this,"style",void 0),hd(this,"_keyframe",!0),this.name=t,this.style=n}return qd(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function wm(e){return e.notSplit=!0,e}wm(["borderTop","borderBottom"]),wm(["borderTop"]),wm(["borderBottom"]),wm(["borderLeft","borderRight"]),wm(["borderLeft"]),wm(["borderRight"]);var xm=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"];function Sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function km(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sm(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cm,Em={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
Cm=Em,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var a=typeof o;if("string"===a||"number"===a)n.push(o);else if(Array.isArray(o)){if(o.length){var i=t.apply(null,o);i&&n.push(i)}}else if("object"===a){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var s in o)e.call(o,s)&&o[s]&&n.push(s)}}}return n.join(" ")}Cm.exports?(t.default=t,Cm.exports=t):window.classNames=t}();var Om=Em.exports;const Dm=n(Om);var $m,jm={exports:{}},Pm={},_m=Symbol.for("react.element"),Nm=Symbol.for("react.portal"),Im=Symbol.for("react.fragment"),Tm=Symbol.for("react.strict_mode"),Am=Symbol.for("react.profiler"),Fm=Symbol.for("react.provider"),Rm=Symbol.for("react.context"),Mm=Symbol.for("react.server_context"),Lm=Symbol.for("react.forward_ref"),Bm=Symbol.for("react.suspense"),zm=Symbol.for("react.suspense_list"),Hm=Symbol.for("react.memo"),Wm=Symbol.for("react.lazy"),Um=Symbol.for("react.offscreen");function Vm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _m:switch(e=e.type){case Im:case Am:case Tm:case Bm:case zm:return e;default:switch(e=e&&e.$$typeof){case Mm:case Rm:case Lm:case Wm:case Hm:case Fm:return e;default:return t}}case Nm:return t}}}$m=Symbol.for("react.module.reference"),Pm.ContextConsumer=Rm,Pm.ContextProvider=Fm,Pm.Element=_m,Pm.ForwardRef=Lm,Pm.Fragment=Im,Pm.Lazy=Wm,Pm.Memo=Hm,Pm.Portal=Nm,Pm.Profiler=Am,Pm.StrictMode=Tm,Pm.Suspense=Bm,Pm.SuspenseList=zm,Pm.isAsyncMode=function(){return!1},Pm.isConcurrentMode=function(){return!1},Pm.isContextConsumer=function(e){return Vm(e)===Rm},Pm.isContextProvider=function(e){return Vm(e)===Fm},Pm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_m},Pm.isForwardRef=function(e){return Vm(e)===Lm},Pm.isFragment=function(e){return Vm(e)===Im},Pm.isLazy=function(e){return Vm(e)===Wm},Pm.isMemo=function(e){return Vm(e)===Hm},Pm.isPortal=function(e){return Vm(e)===Nm},Pm.isProfiler=function(e){return Vm(e)===Am},Pm.isStrictMode=function(e){return Vm(e)===Tm},Pm.isSuspense=function(e){return Vm(e)===Bm},Pm.isSuspenseList=function(e){return Vm(e)===zm},Pm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Im||e===Am||e===Tm||e===Bm||e===zm||e===Um||"object"==typeof e&&null!==e&&(e.$$typeof===Wm||e.$$typeof===Hm||e.$$typeof===Fm||e.$$typeof===Rm||e.$$typeof===Lm||e.$$typeof===$m||void 0!==e.getModuleId)},Pm.typeOf=Vm,jm.exports=Pm;var Gm=jm.exports;function qm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return H.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(qm(e)):Gm.isFragment(e)&&e.props?n=n.concat(qm(e.props.children,t)):n.push(e))})),n}function Km(e){return e instanceof HTMLElement||e instanceof SVGElement}function Xm(e){return Km(e)?e:e instanceof H.Component?id.findDOMNode(e):null}function Ym(e,t){"function"==typeof e?e(t):"object"===fd(e)&&e&&"current"in e&&(e.current=t)}function Qm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){Ym(t,e)}))}}function Jm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mh((function(){return Qm.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function Zm(e){var t,n,r=Gm.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}var eb=z.createContext(null);var tb=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),nb="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,rb="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ob="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(rb):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ab=["top","right","bottom","left","width","height","size","weight"],ib="undefined"!=typeof MutationObserver,sb=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function i(){ob(a)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){nb&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ib?(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(){nb&&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;ab.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}(),lb=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},cb=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||rb},ub=mb(0,0,0,0);function db(e){return parseFloat(e)||0}function fb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+db(e["border-"+n+"-width"])}),0)}function pb(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ub;var r=cb(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=db(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,s=db(r.width),l=db(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=fb(r,"left","right")+a),Math.round(l+i)!==n&&(l-=fb(r,"top","bottom")+i)),!function(e){return e===cb(e).document.documentElement}(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return mb(o.left,o.top,s,l)}var hb="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof cb(e).SVGGraphicsElement}:function(e){return e instanceof cb(e).SVGElement&&"function"==typeof e.getBBox};function gb(e){return nb?hb(e)?function(e){var t=e.getBBox();return mb(0,0,t.width,t.height)}(e):pb(e):ub}function mb(e,t,n,r){return{x:e,y:t,width:n,height:r}}var bb=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=mb(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=gb(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),vb=function(e,t){var n,r,o,a,i,s,l,c=(r=(n=t).x,o=n.y,a=n.width,i=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),lb(l,{x:r,y:o,width:a,height:i,top:o,right:r+a,bottom:i+o,left:r}),l);lb(this,{target:e,contentRect:c})},yb=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new tb,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof cb(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new bb(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof cb(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new vb(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),wb="undefined"!=typeof WeakMap?new WeakMap:new tb,xb=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=sb.getInstance(),r=new yb(t,n,this);wb.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){xb.prototype[e]=function(){var t;return(t=wb.get(this))[e].apply(t,arguments)}}));var Sb=void 0!==rb.ResizeObserver?rb.ResizeObserver:xb,kb=new Map;var Cb=new Sb((function(e){e.forEach((function(e){var t,n=e.target;null===(t=kb.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Eb(e,t){return(Eb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ob(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eb(e,t)}function Db(e){return(Db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(K4){return!1}}function jb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pb(e){var t=$b();return function(){var n,r=Db(e);if(t){var o=Db(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jb(e)}(this,n)}}var _b=function(e){Ob(n,z.Component);var t=Pb(n);function n(){return Vd(this,n),t.apply(this,arguments)}return qd(n,[{key:"render",value:function(){return this.props.children}}]),n}();function Nb(e,t){var n=e.children,r=e.disabled,o=z.useRef(null),a=z.useRef(null),i=z.useContext(eb),s="function"==typeof n,l=s?n(o):n,c=z.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&z.isValidElement(l)&&Zm(l),d=Jm(u?l.ref:null,o),f=function(){var e;return Xm(o.current)||(o.current&&"object"===fd(o.current)?Xm(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||Xm(a.current)};z.useImperativeHandle(t,(function(){return f()}));var p=z.useRef(e);p.current=e;var h=z.useCallback((function(e){var t=p.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,s=o.height,l=e.offsetWidth,u=e.offsetHeight,d=Math.floor(a),f=Math.floor(s);if(c.current.width!==d||c.current.height!==f||c.current.offsetWidth!==l||c.current.offsetHeight!==u){var h={width:d,height:f,offsetWidth:l,offsetHeight:u};c.current=h;var g=l===Math.round(a)?a:l,m=u===Math.round(s)?s:u,b=hh(hh({},h),{},{offsetWidth:g,offsetHeight:m});null==i||i(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return z.useEffect((function(){var e,t,n=f();return n&&!r&&(e=n,t=h,kb.has(e)||(kb.set(e,new Set),Cb.observe(e)),kb.get(e).add(t)),function(){return function(e,t){kb.has(e)&&(kb.get(e).delete(t),kb.get(e).size||(Cb.unobserve(e),kb.delete(e)))}(n,h)}}),[o.current,r]),z.createElement(_b,{ref:a},u?z.cloneElement(l,{ref:d}):l)}var Ib=z.forwardRef(Nb);function Tb(e,t){var n=e.children;return("function"==typeof n?[n]:qm(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return z.createElement(Ib,jp({},e,{key:o,ref:0===r?t:void 0}),n)}))}var Ab=z.forwardRef(Tb);function Fb(e,t){var n=hh({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}Ab.Collection=function(e){var t=e.children,n=e.onBatchResize,r=z.useRef(0),o=z.useRef([]),a=z.useContext(eb),i=z.useCallback((function(e,t,i){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==a||a(e,t,i)}),[n,a]);return z.createElement(eb.Provider,{value:i},t)};var Rb=function(e){return+setTimeout(e,16)},Mb=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Rb=function(e){return window.requestAnimationFrame(e)},Mb=function(e){return window.cancelAnimationFrame(e)});var Lb=0,Bb=new Map;function zb(e){Bb.delete(e)}var Hb=function(e){var t=Lb+=1;return function n(r){if(0===r)zb(t),e();else{var o=Rb((function(){n(r-1)}));Bb.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Hb.cancel=function(e){var t=Bb.get(e);return zb(e),Mb(t)};const Wb=z.createContext({});function Ub(e){return Vh(e)||uh(e)||dh(e)||Gh()}function Vb(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Gb(e,t,n,r){if(!t.length)return n;var o,a=Ub(t),i=a[0],s=a.slice(1);return o=e||"number"!=typeof i?Array.isArray(e)?fh(e):hh({},e):[],r&&void 0===n&&1===s.length?delete o[i][s[0]]:o[i]=Gb(o[i],s,n,r),o}function qb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Vb(e,t.slice(0,-1))?e:Gb(e,t,n,r)}function Kb(e){return Array.isArray(e)?[]:{}}var Xb="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Yb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Kb(t[0]);return t.forEach((function(e){!function t(n,o){var a,i=new Set(o),s=Vb(e,n),l=Array.isArray(s);if(l||"object"===fd(a=s)&&null!==a&&Object.getPrototypeOf(a)===Object.prototype){if(!i.has(s)){i.add(s);var c=Vb(r,n);l?r=qb(r,n,[]):c&&"object"===fd(c)||(r=qb(r,n,Kb(s))),Xb(s).forEach((function(e){t([].concat(fh(n),[e]),i)}))}}else r=qb(r,n,s)}([])})),r}function Qb(){}const Jb=z.createContext({}),Zb=()=>{const e=()=>{};return e.deprecated=Qb,e},ev=z.createContext(void 0);const tv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},nv={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({},tv)},rv="${label} is not a valid ${type}",ov={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:nv,TimePicker:tv,Calendar:nv,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:rv,method:rv,array:rv,object:rv,number:rv,date:rv,boolean:rv,integer:rv,float:rv,regexp:rv,email:rv,url:rv,hex:rv},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 av=Object.assign({},ov.Modal),iv=[];const sv=()=>iv.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),ov.Modal);function lv(){return av}const cv=z.createContext(void 0),uv=(e,t)=>{const n=z.useContext(cv);return[z.useMemo((()=>{var r;const o=t||ov[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})}),[e,t,n]),z.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?ov.locale:e}),[n])]},dv=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;z.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return iv.push(t),av=sv(),()=>{iv=iv.filter((e=>e!==t)),av=sv()}}av=Object.assign({},ov.Modal)}(t&&t.Modal);return e}),[t]);const o=z.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return z.createElement(cv.Provider,{value:o},n)};function fv(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function pv(e){return Math.min(1,Math.max(0,e))}function hv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function gv(e){return e<=1?"".concat(100*Number(e),"%"):e}function mv(e){return 1===e.length?"0"+e:String(e)}function bv(e,t,n){e=fv(e,255),t=fv(t,255),n=fv(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,s=(r+o)/2;if(r===o)i=0,a=0;else{var l=r-o;switch(i=s>.5?l/(2-r-o):l/(r+o),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4}a/=6}return{h:a,s:i,l:s}}function vv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yv(e,t,n){e=fv(e,255),t=fv(t,255),n=fv(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,s=r-o,l=0===r?0:s/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}a/=6}return{h:a,s:l,v:i}}function wv(e,t,n,r){var o=[mv(Math.round(e).toString(16)),mv(Math.round(t).toString(16)),mv(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function xv(e){return Sv(e)/255}function Sv(e){return parseInt(e,16)}var kv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Cv(e){var t,n,r,o={r:0,g:0,b:0},a=1,i=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(kv[e])e=kv[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=$v.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=$v.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=$v.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=$v.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=$v.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=$v.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=$v.hex8.exec(e),n)return{r:Sv(n[1]),g:Sv(n[2]),b:Sv(n[3]),a:xv(n[4]),format:t?"name":"hex8"};if(n=$v.hex6.exec(e),n)return{r:Sv(n[1]),g:Sv(n[2]),b:Sv(n[3]),format:t?"name":"hex"};if(n=$v.hex4.exec(e),n)return{r:Sv(n[1]+n[1]),g:Sv(n[2]+n[2]),b:Sv(n[3]+n[3]),a:xv(n[4]+n[4]),format:t?"name":"hex8"};if(n=$v.hex3.exec(e),n)return{r:Sv(n[1]+n[1]),g:Sv(n[2]+n[2]),b:Sv(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(jv(e.r)&&jv(e.g)&&jv(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*fv(t,255),g:255*fv(n,255),b:255*fv(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):jv(e.h)&&jv(e.s)&&jv(e.v)?(i=gv(e.s),s=gv(e.v),o=function(e,t,n){e=6*fv(e,360),t=fv(t,100),n=fv(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,i,a,a,s,n][l],g:255*[s,n,n,i,a,a][l],b:255*[a,a,s,n,n,i][l]}}(e.h,i,s),c=!0,u="hsv"):jv(e.h)&&jv(e.s)&&jv(e.l)&&(i=gv(e.s),l=gv(e.l),o=function(e,t,n){var r,o,a;if(e=fv(e,360),t=fv(t,100),n=fv(n,100),0===t)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=vv(s,i,e+1/3),o=vv(s,i,e),a=vv(s,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,i,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=hv(a),{ok:c,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:a}}var Ev="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Ov="[\\s|\\(]+(".concat(Ev,")[,|\\s]+(").concat(Ev,")[,|\\s]+(").concat(Ev,")\\s*\\)?"),Dv="[\\s|\\(]+(".concat(Ev,")[,|\\s]+(").concat(Ev,")[,|\\s]+(").concat(Ev,")[,|\\s]+(").concat(Ev,")\\s*\\)?"),$v={CSS_UNIT:new RegExp(Ev),rgb:new RegExp("rgb"+Ov),rgba:new RegExp("rgba"+Dv),hsl:new RegExp("hsl"+Ov),hsla:new RegExp("hsla"+Dv),hsv:new RegExp("hsv"+Ov),hsva:new RegExp("hsva"+Dv),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function jv(e){return Boolean($v.CSS_UNIT.exec(String(e)))}var Pv=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Cv(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=hv(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=yv(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=yv(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=bv(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=bv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),wv(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var a,i=[mv(Math.round(e).toString(16)),mv(Math.round(t).toString(16)),mv(Math.round(n).toString(16)),mv((a=r,Math.round(255*parseFloat(a)).toString(16)))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*fv(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*fv(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+wv(this.r,this.g,this.b,!1),t=0,n=Object.entries(kv);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=pv(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=pv(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=pv(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=pv(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),_v=2,Nv=.16,Iv=.05,Tv=.05,Av=.15,Fv=5,Rv=4,Mv=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Lv(e){var t=yv(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Bv(e){var t=e.r,n=e.g,r=e.b;return"#".concat(wv(t,n,r,!1))}function zv(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-_v*t:Math.round(e.h)+_v*t:n?Math.round(e.h)+_v*t:Math.round(e.h)-_v*t)<0?r+=360:r>=360&&(r-=360),r}function Hv(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-Nv*t:t===Rv?e.s+Nv:e.s+Iv*t)>1&&(r=1),n&&t===Fv&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Wv(e,t,n){var r;return(r=n?e.v+Tv*t:e.v-Av*t)>1&&(r=1),Number(r.toFixed(2))}function Uv(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Cv(e),o=Fv;o>0;o-=1){var a=Lv(r),i=Bv(Cv({h:zv(a,o,!0),s:Hv(a,o,!0),v:Wv(a,o,!0)}));n.push(i)}n.push(Bv(r));for(var s=1;s<=Rv;s+=1){var l=Lv(r),c=Bv(Cv({h:zv(l,s),s:Hv(l,s),v:Wv(l,s)}));n.push(c)}return"dark"===t.theme?Mv.map((function(e){var r,o,a,i=e.index,s=e.opacity;return Bv((r=Cv(t.backgroundColor||"#141414"),o=Cv(n[i]),a=100*s/100,{r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b}))})):n}var Vv={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Gv={},qv={};Object.keys(Vv).forEach((function(e){Gv[e]=Uv(Vv[e]),Gv[e].primary=Gv[e][5],qv[e]=Uv(Vv[e],{theme:"dark",backgroundColor:"#141414"}),qv[e].primary=qv[e][5]}));var Kv=Gv.blue;const Xv=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const Yv={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"},Qv=Object.assign(Object.assign({},Yv),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Jv(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),p=n(a),h=n(i),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:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Pv("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Zv=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const ey=(e,t)=>new Pv(e).setAlpha(t).toRgbString(),ty=(e,t)=>new Pv(e).darken(t).toHexString(),ny=e=>{const t=Uv(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]}},ry=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ey(r,.88),colorTextSecondary:ey(r,.65),colorTextTertiary:ey(r,.45),colorTextQuaternary:ey(r,.25),colorFill:ey(r,.15),colorFillSecondary:ey(r,.06),colorFillTertiary:ey(r,.04),colorFillQuaternary:ey(r,.02),colorBgLayout:ty(n,4),colorBgContainer:ty(n,0),colorBgElevated:ty(n,0),colorBgSpotlight:ey(r,.85),colorBgBlur:"transparent",colorBorder:ty(n,15),colorBorderSecondary:ty(n,6)}};const oy=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),a=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(a/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:(e+8)/e})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight));return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function ay(e){const t=Object.keys(Yv).map((t=>{const n=Uv(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Jv(e,{generateColorPalettes:ny,generateNeutralColorPalettes:ry})),oy(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)),Xv(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},Zv(r))}(e))}const iy=Jh(ay),sy={token:Qv,override:{override:Qv},hashed:!0},ly=H.createContext(sy),cy="anticon",uy=z.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:cy}),dy=`-ant-${Date.now()}-${Math.random()}`;function fy(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Pv(e),a=Uv(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Pv(t.primaryColor),a=Uv(e.toRgbString());a.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 i=new Pv(a[0]);n["primary-color-active-deprecated-f-30"]=r(i,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(i,(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);Nh()&&Uh(n,`${dy}-dynamic-theme`)}const py=z.createContext(!1),hy=e=>{let{children:t,disabled:n}=e;const r=z.useContext(py);return z.createElement(py.Provider,{value:null!=n?n:r},t)},gy=py,my=z.createContext(void 0),by=e=>{let{children:t,size:n}=e;const r=z.useContext(my);return z.createElement(my.Provider,{value:n||r},t)},vy=my;const yy=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],wy="5.11.2";function xy(e){return e>=0&&e<=255}function Sy(e,t){const{r:n,g:r,b:o,a:a}=new Pv(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Pv(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-i*(1-c))/c),t=Math.round((r-s*(1-c))/c),a=Math.round((o-l*(1-c))/c);if(xy(e)&&xy(t)&&xy(a))return new Pv({r:e,g:t,b:a,a:Math.round(100*c)/100}).toRgbString()}return new Pv({r:n,g:r,b:o,a:1}).toRgbString()}var ky=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Cy(e){const{override:t}=e,n=ky(e,["override"]),r=Object.assign({},t);Object.keys(Qv).forEach((e=>{delete r[e]}));const o=Object.assign(Object.assign({},n),r),a=1200,i=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Sy(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:Sy(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Sy(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:Sy(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:a,screenXLMin:a,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Pv("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Pv("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Pv("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Ey=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Oy=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Ey(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Cy(i),a&&Object.entries(a).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Ey(n,["theme"]);let a=o;r&&(a=Oy(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a})),i};function Dy(){const{token:e,hashed:t,theme:n,override:r}=H.useContext(ly),o=`${wy}-${t||""}`,a=n||iy,[i,s]=wg(a,[Qv,e],{salt:o,override:r,getComputedToken:Oy,formatToken:Cy});return[a,i,t?s:""]}function $y(e){var t=z.useRef();t.current=e;var n=z.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function jy(e){var t=z.useRef(!1),n=qh(z.useState(e),2),r=n[0],o=n[1];return z.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[r,function(e,n){n&&t.current||o(e)}]}function Py(e){return void 0!==e}function _y(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=qh(jy((function(){return Py(o)?o:Py(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==o?o:l,d=i?i(u):u,f=$y(a),p=qh(jy([u]),2),h=p[0],g=p[1];return cg((function(){var e=h[0];l!==e&&f(l,e)}),[h]),cg((function(){Py(o)||c(o)}),[o]),[d,$y((function(e,t){c(e,t),g([u],t)}))]}const Ny=(e,t,n,r,o)=>{const a=e/2,i=a,s=1*n/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),c=a-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*a-c,f=u,p=2*a-s,h=l,g=2*a-0,m=i,b=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),v=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${v}px 100%, 50% ${v}px, ${2*a-v}px 100%, ${v}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${f} L ${p} ${h} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},Iy={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ty=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ay=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"}}}),Fy=(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"}}}}},Ry=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),My=e=>({"&:focus-visible":Object.assign({},Ry(e))}),Ly="undefined"!=typeof CSSINJS_STATISTIC;let By=!0;function zy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Ly)return Object.assign.apply(Object,[{}].concat(t));By=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),By=!0,r}const Hy={};function Wy(){}const Uy=(e,t)=>{const[n,r]=Dy();return vm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))};function Vy(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[a]=o,i=o.join("-");return e=>{const[o,s,l]=Dy(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=z.useContext(uy),f=c(),p={theme:o,token:s,hashId:l,nonce:()=>null==d?void 0:d.nonce,clientOnly:r.clientOnly,order:r.order||-999};return vm(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",f]}),(()=>[{"&":Ay(s)}])),Uy(u,d),[vm(Object.assign(Object.assign({},p),{path:[i,e,u]}),(()=>{const{token:o,flush:i}=function(e){let t,n=e,r=Wy;return Ly&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(By&&t.add(n),e[n])}),r=(e,n)=>{var r;Hy[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=Hy[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(s),c=Object.assign({},s[a]);if(r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==c?void 0:c[t])||(null==c?void 0:c[n]))&&(null!==(r=c[n])&&void 0!==r||(c[n]=null==c?void 0:c[t]))}))}const d="function"==typeof n?n(zy(o,null!=c?c:{})):n,p=Object.assign(Object.assign({},d),c),h=zy(o,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${f}`},p),g=t(h,{hashId:l,prefixCls:e,rootPrefixCls:f,iconPrefixCls:u,overrideComponentToken:c});return i(a,p),[!1===r.resetStyle?null:Fy(h,e),g]})),l]}}const Gy=(e,t,n,r)=>{const o=Vy(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}};function qy(e,t){return yy.reduce(((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))}),{})}var Ky=["children"],Xy=z.createContext({});function Yy(e){var t=e.children,n=gd(e,Ky);return z.createElement(Xy.Provider,{value:n},t)}var Qy=function(e){Ob(n,z.Component);var t=Pb(n);function n(){return Vd(this,n),t.apply(this,arguments)}return qd(n,[{key:"render",value:function(){return this.props.children}}]),n}(),Jy="none",Zy="appear",ew="enter",tw="leave",nw="none",rw="prepare",ow="start",aw="active",iw="end",sw="prepared";function lw(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var cw,uw,dw,fw=(cw=Nh(),uw="undefined"!=typeof window?window:{},dw={animationend:lw("Animation","AnimationEnd"),transitionend:lw("Transition","TransitionEnd")},cw&&("AnimationEvent"in uw||delete dw.animationend.animation,"TransitionEvent"in uw||delete dw.transitionend.transition),dw),pw={};if(Nh()){var hw=document.createElement("div");pw=hw.style}var gw={};function mw(e){if(gw[e])return gw[e];var t=fw[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in pw)return gw[e]=t[a],gw[e]}return""}var bw=mw("animationend"),vw=mw("transitionend"),yw=!(!bw||!vw),ww=bw||"animationend",xw=vw||"transitionend";function Sw(e,t){return e?"object"===fd(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const kw=function(e){var t=z.useRef(),n=z.useRef(e);n.current=e;var r=z.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(xw,r),e.removeEventListener(ww,r))}return z.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(xw,r),e.addEventListener(ww,r),t.current=e)},o]};var Cw=Nh()?z.useLayoutEffect:z.useEffect;var Ew=[rw,ow,aw,iw],Ow=[rw,sw],Dw=!1,$w=!0;function jw(e){return e===aw||e===iw}const Pw=function(e,t,n){var r=qh(jy(nw),2),o=r[0],a=r[1],i=function(){var e=z.useRef(null);function t(){Hb.cancel(e.current)}return z.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=Hb((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a},t]}(),s=qh(i,2),l=s[0],c=s[1];var u=t?Ow:Ew;return Cw((function(){if(o!==nw&&o!==iw){var e=u.indexOf(o),t=u[e+1],r=n(o);r===Dw?a(t,!0):t&&l((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),z.useEffect((function(){return function(){c()}}),[]),[function(){a(rw,!0)},o]};const _w=function(e){var t=e;"object"===fd(e)&&(t=e.transitionSupport);var n=z.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,a=e.removeOnLeave,i=void 0===a||a,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,z.useContext(Xy).motion),p=z.useRef(),h=z.useRef();var g=function(e,t,n,r){var o=r.motionEnter,a=void 0===o||o,i=r.motionAppear,s=void 0===i||i,l=r.motionLeave,c=void 0===l||l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,v=r.onAppearActive,y=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,S=r.onEnterEnd,k=r.onLeaveEnd,C=r.onVisibleChanged,E=qh(jy(),2),O=E[0],D=E[1],$=qh(jy(Jy),2),j=$[0],P=$[1],_=qh(jy(null),2),N=_[0],I=_[1],T=z.useRef(!1),A=z.useRef(null);function F(){return n()}var R=z.useRef(!1);function M(){P(Jy,!0),I(null,!0)}function L(e){var t=F();if(!e||e.deadline||e.target===t){var n,r=R.current;j===Zy&&r?n=null==x?void 0:x(t,e):j===ew&&r?n=null==S?void 0:S(t,e):j===tw&&r&&(n=null==k?void 0:k(t,e)),j!==Jy&&r&&!1!==n&&M()}}var B=qh(kw(L),1)[0],H=function(e){var t,n,r;switch(e){case Zy:return hd(t={},rw,f),hd(t,ow,g),hd(t,aw,v),t;case ew:return hd(n={},rw,p),hd(n,ow,m),hd(n,aw,y),n;case tw:return hd(r={},rw,h),hd(r,ow,b),hd(r,aw,w),r;default:return{}}},W=z.useMemo((function(){return H(j)}),[j]),U=qh(Pw(j,!e,(function(e){if(e===rw){var t=W[rw];return t?t(F()):Dw}var n;return G in W&&I((null===(n=W[G])||void 0===n?void 0:n.call(W,F(),null))||null),G===aw&&(B(F()),u>0&&(clearTimeout(A.current),A.current=setTimeout((function(){L({deadline:!0})}),u))),G===sw&&M(),$w})),2),V=U[0],G=U[1],q=jw(G);R.current=q,Cw((function(){D(t);var n,r=T.current;T.current=!0,!r&&t&&s&&(n=Zy),r&&t&&a&&(n=ew),(r&&!t&&c||!r&&d&&!t&&c)&&(n=tw);var o=H(n);n&&(e||o[rw])?(P(n),V()):P(Jy)}),[t]),z.useEffect((function(){(j===Zy&&!s||j===ew&&!a||j===tw&&!c)&&P(Jy)}),[s,a,c]),z.useEffect((function(){return function(){T.current=!1,clearTimeout(A.current)}}),[]);var K=z.useRef(!1);z.useEffect((function(){O&&(K.current=!0),void 0!==O&&j===Jy&&((K.current||O)&&(null==C||C(O)),K.current=!0)}),[O,j]);var X=N;return W[rw]&&G===ow&&(X=hh({transition:"none"},X)),[j,G,X,null!=O?O:t]}(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:Xm(h.current)}catch(K4){return null}}),e),m=qh(g,4),b=m[0],v=m[1],y=m[2],w=m[3],x=z.useRef(w);w&&(x.current=!0);var S,k=z.useCallback((function(e){p.current=e,Ym(n,e)}),[n]),C=hh(hh({},d),{},{visible:o});if(l)if(b===Jy)S=w?l(hh({},C),k):!i&&x.current&&u?l(hh(hh({},C),{},{className:u}),k):s||!i&&!u?l(hh(hh({},C),{},{style:{display:"none"}}),k):null;else{var E,O;v===rw?O="prepare":jw(v)?O="active":v===ow&&(O="start");var D=Sw(c,"".concat(b,"-").concat(O));S=l(hh(hh({},C),{},{className:Dm(Sw(c,b),(E={},hd(E,D,D&&O),hd(E,c,"string"==typeof c),E)),style:y}),k)}else S=null;z.isValidElement(S)&&Zm(S)&&(S.ref||(S=z.cloneElement(S,{ref:k})));return z.createElement(Qy,{ref:h},S)}));return n.displayName="CSSMotion",n}(yw);var Nw="add",Iw="keep",Tw="remove",Aw="removed";function Fw(e){var t;return hh(hh({},t=e&&"object"===fd(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Rw(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Fw)}var Mw=["component","children","onVisibleChanged","onAllRemoved"],Lw=["status"],Bw=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const zw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_w,n=function(e){Ob(r,z.Component);var n=Pb(r);function r(){var e;Vd(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return hd(jb(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),hd(jb(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:hh(hh({},e),{},{status:Aw})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Aw})).length})),e}return qd(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,a=r.children,i=r.onVisibleChanged,s=r.onAllRemoved,l=gd(r,Mw),c=o||z.Fragment,u={};return Bw.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,z.createElement(c,l,n.map((function(n,r){var o=n.status,l=gd(n,Lw),c=o===Nw||o===Iw;return z.createElement(t,jp({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(t){(null==i||i(t,{key:l.key}),t)||0===e.removeKey(l.key)&&s&&s()}}),(function(e,t){return a(hh(hh({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Rw(n),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=Rw(e),i=Rw(t);a.forEach((function(e){for(var t=!1,a=r;a<o;a+=1){var s=i[a];if(s.key===e.key){r<a&&(n=n.concat(i.slice(r,a).map((function(e){return hh(hh({},e),{},{status:Nw})}))),r=a),n.push(hh(hh({},s),{},{status:Iw})),r+=1,t=!0;break}}t||n.push(hh(hh({},e),{},{status:Tw}))})),r<o&&(n=n.concat(i.slice(r).map((function(e){return hh(hh({},e),{},{status:Nw})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Tw}))).forEach((function(t){t.key===e&&(t.status=Iw)}))})),n}(r,o);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Aw||e.status!==Tw}))}}}]),r}();return hd(n,"defaultProps",{component:"div"}),n}(yw);function Hw(e){const{children:t}=e,[,n]=Dy(),{motion:r}=n,o=z.useRef(!1);return o.current=o.current||!1===r,o.current?z.createElement(Yy,{motion:r},t):t}const Ww=()=>null;var Uw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Vw=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let Gw,qw,Kw;function Xw(){return Gw||"ant"}function Yw(){return qw||cy}const Qw=()=>({getPrefixCls:(e,t)=>t||(e?`${Xw()}-${e}`:Xw()),getIconPrefixCls:Yw,getRootPrefixCls:()=>Gw||Xw(),getTheme:()=>Kw}),Jw=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:g,parentContext:m,iconPrefixCls:b,theme:v,componentDisabled:y,segmented:w,statistic:x,spin:S,calendar:k,carousel:C,cascader:E,collapse:O,typography:D,checkbox:$,descriptions:j,divider:P,drawer:_,skeleton:N,steps:I,image:T,layout:A,list:F,mentions:R,modal:M,progress:L,result:B,slider:H,breadcrumb:W,menu:U,pagination:V,input:G,empty:q,badge:K,radio:X,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ae,timePicker:ie,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:ge,warning:me}=e,be=z.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||m.getPrefixCls("");return t?`${o}-${t}`:o}),[m.getPrefixCls,e.prefixCls]),ve=b||m.iconPrefixCls||cy,ye=n||m.csp;Uy(ve,ye);const we=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:sy;return mh((()=>{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)=>!Sh(e,t[n],!0)))))}(v,m.theme),xe={csp:ye,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:h,getPrefixCls:be,iconPrefixCls:ve,theme:we,segmented:w,statistic:x,spin:S,calendar:k,carousel:C,cascader:E,collapse:O,typography:D,checkbox:$,descriptions:j,divider:P,drawer:_,skeleton:N,steps:I,image:T,input:G,layout:A,list:F,mentions:R,modal:M,progress:L,result:B,slider:H,breadcrumb:W,menu:U,pagination:V,empty:q,badge:K,radio:X,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ae,timePicker:ie,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:ge,warning:me},Se=Object.assign({},m);Object.keys(xe).forEach((e=>{void 0!==xe[e]&&(Se[e]=xe[e])})),Vw.forEach((t=>{const n=e[t];n&&(Se[t]=n)}));const ke=mh((()=>Se),Se,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ce=z.useMemo((()=>({prefixCls:ve,csp:ye})),[ve,ye]);let Ee=z.createElement(z.Fragment,null,z.createElement(Ww,{dropdownMatchSelectWidth:f}),t);const Oe=z.useMemo((()=>{var e,t,n,r;return Yb((null===(e=ov.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ke.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=ke.form)||void 0===r?void 0:r.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})}),[ke,null==i?void 0:i.validateMessages]);Object.keys(Oe).length>0&&(Ee=z.createElement(ev.Provider,{value:Oe},Ee)),s&&(Ee=z.createElement(dv,{locale:s,_ANT_MARK__:"internalMark"},Ee)),(ve||ye)&&(Ee=z.createElement(Wb.Provider,{value:Ce},Ee)),l&&(Ee=z.createElement(by,{size:l},Ee)),Ee=z.createElement(Hw,null,Ee);const De=z.useMemo((()=>{const e=we||{},{algorithm:t,token:n,components:r}=e,o=Uw(e,["algorithm","token","components"]),a=t&&(!Array.isArray(t)||t.length>0)?Jh(t):iy,i={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=Jh(r.algorithm)),delete r.algorithm),i[t]=r}));const s=Object.assign(Object.assign({},Qv),n);return Object.assign(Object.assign({},o),{theme:a,token:s,components:i,override:Object.assign({override:s},i)})}),[we]);return v&&(Ee=z.createElement(ly.Provider,{value:De},Ee)),ke.warning&&(Ee=z.createElement(Jb.Provider,{value:ke.warning},Ee)),void 0!==y&&(Ee=z.createElement(hy,{disabled:y},Ee)),z.createElement(uy.Provider,{value:ke},Ee)},Zw=e=>{const t=z.useContext(uy),n=z.useContext(cv);return z.createElement(Jw,Object.assign({parentContext:t,legacyLocale:n},e))};Zw.ConfigContext=uy,Zw.SizeContext=vy,Zw.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(Gw=t),void 0!==n&&(qw=n),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?Kw=r:fy(Xw(),r))},Zw.useConfig=function(){return{componentDisabled:z.useContext(gy),componentSize:z.useContext(vy)}},Object.defineProperty(Zw,"SizeContext",{get:()=>vy});const ex=Zw;const tx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function nx(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function rx(e){return function(e){return nx(e)instanceof ShadowRoot}(e)?nx(e):null}function ox(e){return"object"===fd(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===fd(e.icon)||"function"==typeof e.icon)}function ax(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function ix(e,t,n){return n?H.createElement(e.tag,hh(hh({key:t},ax(e.attrs)),n),(e.children||[]).map((function(n,r){return ix(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):H.createElement(e.tag,hh({key:t},ax(e.attrs)),(e.children||[]).map((function(n,r){return ix(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function sx(e){return Uv(e)[0]}function lx(e){return e?Array.isArray(e)?e:[e]:[]}var cx=["icon","className","onClick","style","primaryColor","secondaryColor"],ux={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var dx=function(e){var t,n,r,o,a,i,s,l=e.icon,c=e.className,u=e.onClick,d=e.style,f=e.primaryColor,p=e.secondaryColor,h=gd(e,cx),g=z.useRef(),m=ux;if(f&&(m={primaryColor:f,secondaryColor:p||sx(f)}),t=g,n=z.useContext(Wb),r=n.csp,o=n.prefixCls,a="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(a=a.replace(/anticon/g,o)),z.useEffect((function(){var e=rx(t.current);Uh(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),i=ox(l),s="icon should be icon definiton, but got ".concat(l),xh(i,"[@ant-design/icons] ".concat(s)),!ox(l))return null;var b=l;return b&&"function"==typeof b.icon&&(b=hh(hh({},b),{},{icon:b.icon(m.primaryColor,m.secondaryColor)})),ix(b.icon,"svg-".concat(b.name),hh(hh({className:c,onClick:u,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:g}))};dx.displayName="IconReact",dx.getTwoToneColors=function(){return hh({},ux)},dx.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ux.primaryColor=t,ux.secondaryColor=n||sx(t),ux.calculated=!!n};const fx=dx;function px(e){var t=qh(lx(e),2),n=t[0],r=t[1];return fx.setTwoToneColors({primaryColor:n,secondaryColor:r})}var hx=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];px(Kv.primary);var gx=z.forwardRef((function(e,t){var n,r=e.className,o=e.icon,a=e.spin,i=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=gd(e,hx),d=z.useContext(Wb),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,g=Dm(h,p,(hd(n={},"".concat(p,"-").concat(o.name),!!o.name),hd(n,"".concat(p,"-spin"),!!a||"loading"===o.name),n),r),m=s;void 0===m&&l&&(m=-1);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=qh(lx(c),2),y=v[0],w=v[1];return z.createElement("span",jp({role:"img","aria-label":o.name},u,{ref:t,tabIndex:m,onClick:l,className:g}),z.createElement(fx,{icon:o,primaryColor:y,secondaryColor:w,style:b}))}));gx.displayName="AntdIcon",gx.getTwoToneColor=function(){var e=fx.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},gx.setTwoToneColor=px;const mx=gx;var bx=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:tx}))};const vx=z.forwardRef(bx);const yx={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var wx=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:yx}))};const xx=z.forwardRef(wx);const Sx={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var kx=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:Sx}))};const Cx=z.forwardRef(kx);const Ex={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var Ox=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:Ex}))};const Dx=z.forwardRef(Ox);const $x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var jx=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:$x}))};const Px=z.forwardRef(jx);var _x="".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]+/),Nx="aria-",Ix="data-";function Tx(e,t){return 0===e.indexOf(t)}function Ax(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:hh({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Tx(n,Nx))||t.data&&Tx(n,Ix)||t.attr&&_x.includes(n))&&(r[n]=e[n])})),r}const{isValidElement:Fx}=W;function Rx(e){return e&&Fx(e)&&e.type===z.Fragment}function Mx(e,t){return function(e,t,n){return Fx(e)?z.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}const Lx=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Bx=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,zx=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Bx(n.overflowY,t)||Bx(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Hx=(e,t,n,r,o,a,i,s)=>a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0,Wx=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},Ux=(e,t)=>{var n,r,o,a;if("undefined"==typeof document)return[];const{scrollMode:i,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Lx(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;Lx(h)&&d(h);){if(h=Wx(h),h===f){p.push(h);break}null!=h&&h===document.body&&zx(h)&&!zx(document.documentElement)||null!=h&&zx(h,u)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(a=null==(o=window.visualViewport)?void 0:o.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:w,top:x,right:S,bottom:k,left:C}=e.getBoundingClientRect(),{top:E,right:O,bottom:D,left:$}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let j="start"===s||"nearest"===s?x-E:"end"===s?k+D:x+y/2-E+D,P="center"===l?C+w/2-$+O:"end"===l?S+O:C-$;const _=[];for(let N=0;N<p.length;N++){const e=p[N],{height:t,width:n,top:r,right:o,bottom:a,left:c}=e.getBoundingClientRect();if("if-needed"===i&&x>=0&&C>=0&&k<=m&&S<=g&&x>=r&&k<=a&&C>=c&&S<=o)return _;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),O=parseInt(u.borderBottomWidth,10);let D=0,$=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-O:0,A="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,F="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(f===e)D="start"===s?j:"end"===s?j-m:"nearest"===s?Hx(v,v+m,m,h,O,v+j,v+j+y,y):j-m/2,$="start"===l?P:"center"===l?P-g/2:"end"===l?P-g:Hx(b,b+g,g,d,E,b+P,b+P+w,w),D=Math.max(0,D+v),$=Math.max(0,$+b);else{D="start"===s?j-r-h:"end"===s?j-a+O+T:"nearest"===s?Hx(r,a,t,h,O+T,j,j+y,y):j-(r+t/2)+T/2,$="start"===l?P-c-d:"center"===l?P-(c+n/2)+I/2:"end"===l?P-o+E+I:Hx(c,o,n,d,E+I,P,P+w,w);const{scrollLeft:i,scrollTop:u}=e;D=0===F?0:Math.max(0,Math.min(u+D/F,e.scrollHeight-t/F+T)),$=0===A?0:Math.max(0,Math.min(i+$/A,e.scrollWidth-n/A+I)),j+=u-D,P+=i-$}_.push({el:e,top:D,left:$})}return _},Vx=e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t};var Gx={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>=Gx.F1&&t<=Gx.F12)return!1;switch(t){case Gx.ALT:case Gx.CAPS_LOCK:case Gx.CONTEXT_MENU:case Gx.CTRL:case Gx.DOWN:case Gx.END:case Gx.ESC:case Gx.HOME:case Gx.INSERT:case Gx.LEFT:case Gx.MAC_FF_META:case Gx.META:case Gx.NUMLOCK:case Gx.NUM_CENTER:case Gx.PAGE_DOWN:case Gx.PAGE_UP:case Gx.PAUSE:case Gx.PRINT_SCREEN:case Gx.RIGHT:case Gx.SHIFT:case Gx.UP:case Gx.WIN_KEY:case Gx.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Gx.ZERO&&e<=Gx.NINE)return!0;if(e>=Gx.NUM_ZERO&&e<=Gx.NUM_MULTIPLY)return!0;if(e>=Gx.A&&e<=Gx.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Gx.SPACE:case Gx.QUESTION_MARK:case Gx.NUM_PLUS:case Gx.NUM_MINUS:case Gx.NUM_PERIOD:case Gx.NUM_DIVISION:case Gx.SEMICOLON:case Gx.DASH:case Gx.EQUALS:case Gx.COMMA:case Gx.PERIOD:case Gx.SLASH:case Gx.APOSTROPHE:case Gx.SINGLE_QUOTE:case Gx.OPEN_SQUARE_BRACKET:case Gx.BACKSLASH:case Gx.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},qx=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=void 0===a?4.5:a,s=e.eventKey,l=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,p=e.onClick,h=e.onNoticeClose,g=e.times,m=e.hovering,b=qh(z.useState(!1),2),v=b[0],y=b[1],w=m||v,x=function(){h(s)};z.useEffect((function(){if(!w&&i>0){var e=setTimeout((function(){x()}),1e3*i);return function(){clearTimeout(e)}}}),[i,w,g]);var S="".concat(n,"-notice");return z.createElement("div",jp({},f,{ref:t,className:Dm(S,o,hd({},"".concat(S,"-closable"),c)),style:r,onMouseEnter:function(e){var t;y(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;y(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:p}),z.createElement("div",{className:"".concat(S,"-content")},l),c&&z.createElement("a",{tabIndex:0,className:"".concat(S,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Gx.ENTER||x()},onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}},d))})),Kx=H.createContext({}),Xx=function(e){var t=e.children,n=e.classNames;return H.createElement(Kx.Provider,{value:{classNames:n}},t)},Yx=["className","style","classNames","styles"],Qx=function(e){var t,n,r,o,a,i,s=e.configList,l=e.placement,c=e.prefixCls,u=e.className,d=e.style,f=e.motion,p=e.onAllNoticeRemoved,h=e.onNoticeClose,g=e.stack,m=z.useContext(Kx).classNames,b=z.useRef({}),v=qh(z.useState(null),2),y=v[0],w=v[1],x=qh(z.useState([]),2),S=x[0],k=x[1],C=s.map((function(e){return{config:e,key:String(e.key)}})),E=qh((i={offset:8,threshold:3,gap:16},(n=g)&&"object"===fd(n)&&(i.offset=null!==(r=n.offset)&&void 0!==r?r:8,i.threshold=null!==(o=n.threshold)&&void 0!==o?o:3,i.gap=null!==(a=n.gap)&&void 0!==a?a:16),[!!n,i]),2),O=E[0],D=E[1],$=D.offset,j=D.threshold,P=D.gap,_=O&&(S.length>0||C.length<=j),N="function"==typeof f?f(l):f;return z.useEffect((function(){O&&S.length>1&&k((function(e){return e.filter((function(e){return C.some((function(t){var n=t.key;return e===n}))}))}))}),[S,C,O]),z.useEffect((function(){var e,t;O&&b.current[null===(e=C[C.length-1])||void 0===e?void 0:e.key]&&w(b.current[null===(t=C[C.length-1])||void 0===t?void 0:t.key])}),[C,O]),H.createElement(zw,jp({key:l,className:Dm(c,"".concat(c,"-").concat(l),null==m?void 0:m.list,u,(t={},hd(t,"".concat(c,"-stack"),!!O),hd(t,"".concat(c,"-stack-expanded"),_),t)),style:d,keys:C,motionAppear:!0},N,{onAllRemoved:function(){p(l)}}),(function(e,t){var n=e.config,r=e.className,o=e.style,a=e.index,i=n,s=i.key,u=i.times,d=String(s),f=n,p=f.className,g=f.style,v=f.classNames,w=f.styles,x=gd(f,Yx),E=C.findIndex((function(e){return e.key===d})),D={};if(O){var j=C.length-1-(E>-1?E:a-1),N="top"===l||"bottom"===l?"-50%":"0";if(j>0){var I,T,A;D.height=_?null===(I=b.current[d])||void 0===I?void 0:I.offsetHeight:null==y?void 0:y.offsetHeight;for(var F=0,R=0;R<j;R++){var M;F+=(null===(M=b.current[C[C.length-1-R].key])||void 0===M?void 0:M.offsetHeight)+P}var L=(_?F:j*$)*(l.startsWith("top")?1:-1),B=!_&&null!=y&&y.offsetWidth&&null!==(T=b.current[d])&&void 0!==T&&T.offsetWidth?((null==y?void 0:y.offsetWidth)-2*$*(j<3?j:3))/(null===(A=b.current[d])||void 0===A?void 0:A.offsetWidth):1;D.transform="translate3d(".concat(N,", ").concat(L,"px, 0) scaleX(").concat(B,")")}else D.transform="translate3d(".concat(N,", 0, 0)")}return H.createElement("div",{ref:t,className:Dm("".concat(c,"-notice-wrapper"),r,null==v?void 0:v.wrapper),style:hh(hh(hh({},o),D),null==w?void 0:w.wrapper),onMouseEnter:function(){return k((function(e){return e.includes(d)?e:[].concat(fh(e),[d])}))},onMouseLeave:function(){return k((function(e){return e.filter((function(e){return e!==d}))}))}},H.createElement(qx,jp({},x,{ref:function(e){E>-1?b.current[d]=e:delete b.current[d]},prefixCls:c,classNames:v,styles:w,className:Dm(p,null==m?void 0:m.notice),style:g,times:u,key:s,eventKey:s,onNoticeClose:h,hovering:O&&S.length>0})))}))},Jx=z.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,a=e.motion,i=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=qh(z.useState([]),2),p=f[0],h=f[1],g=function(e){var t,n=p.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),h((function(t){return t.filter((function(t){return t.key!==e}))}))};z.useImperativeHandle(t,(function(){return{open:function(e){h((function(t){var n,r=fh(t),o=r.findIndex((function(t){return t.key===e.key})),a=hh({},e);o>=0?(a.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=a):(a.times=0,r.push(a));return i>0&&r.length>i&&(r=r.slice(-i)),r}))},close:function(e){g(e)},destroy:function(){h([])}}}));var m=qh(z.useState({}),2),b=m[0],v=m[1];z.useEffect((function(){var e={};p.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),v(e)}),[p]);var y=function(e){v((function(t){var n=hh({},t);return(n[e]||[]).length||delete n[e],n}))},w=z.useRef(!1);if(z.useEffect((function(){Object.keys(b).length>0?w.current=!0:w.current&&(null==c||c(),w.current=!1)}),[b]),!o)return null;var x=Object.keys(b);return ad.createPortal(z.createElement(z.Fragment,null,x.map((function(e){var t=b[e],n=z.createElement(Qx,{key:e,configList:t,placement:e,prefixCls:r,className:null==s?void 0:s(e),style:null==l?void 0:l(e),motion:a,onNoticeClose:g,onAllNoticeRemoved:y,stack:u});return d?d(n,{prefixCls:r,key:e}):n}))),o)})),Zx=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],eS=function(){return document.body},tS=0;function nS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?eS:t,r=e.motion,o=e.prefixCls,a=e.maxCount,i=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=gd(e,Zx),f=qh(z.useState(),2),p=f[0],h=f[1],g=z.useRef(),m=z.createElement(Jx,{container:p,ref:g,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=qh(z.useState([]),2),v=b[0],y=b[1],w=z.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(tS),tS+=1),y((function(e){return[].concat(fh(e),[{type:"open",config:t}])}))},close:function(e){y((function(t){return[].concat(fh(t),[{type:"close",key:e}])}))},destroy:function(){y((function(e){return[].concat(fh(e),[{type:"destroy"}])}))}}}),[]);return z.useEffect((function(){h(n())})),z.useEffect((function(){g.current&&v.length&&(v.forEach((function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}})),y((function(e){return e.filter((function(e){return!v.includes(e)}))})))}),[v]),[w,m]}const rS={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"};var oS=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:rS}))};const aS=z.forwardRef(oS),iS=H.createContext(void 0),sS=100,lS=1e3,cS={Modal:sS,Drawer:sS,Popover:sS,Popconfirm:sS,Tooltip:sS,Tour:sS},uS={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50};function dS(e,t){const[,n]=Dy(),r=H.useContext(iS);let o=null!=r?r:0;return e in cS?(o+=(r?0:n.zIndexPopupBase)+cS[e],o=Math.min(o,n.zIndexPopupBase+lS)):o+=uS[e],[void 0===r?t:o,o]}const fS=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:i,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,v=`${t}-notice`,y=new ym("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new ym("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${v}-content`]:{display:"inline-block",padding:m,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Ty(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},pS=Vy("Message",(e=>{const t=zy(e,{height:150});return[fS(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+lS+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var hS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gS={info:z.createElement(Px,null),success:z.createElement(vx,null),error:z.createElement(xx,null),warning:z.createElement(Dx,null),loading:z.createElement(aS,null)},mS=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return z.createElement("div",{className:Dm(`${t}-custom-content`,`${t}-${n}`)},r||gS[n],z.createElement("span",null,o))},bS=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=hS(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=z.useContext(uy),l=t||s("message"),[,c]=pS(l);return z.createElement(qx,Object.assign({},i,{prefixCls:l,className:Dm(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:z.createElement(mS,{prefixCls:l,type:r,icon:o},a)}))};function vS(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var yS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wS=3,xS=e=>{let{children:t,prefixCls:n}=e;const[,r]=pS(n);return z.createElement(Xx,{classNames:{list:r,notice:r}},t)},SS=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(xS,{prefixCls:n,key:r},e)},kS=z.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=wS,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f}=z.useContext(uy),p=r||u("message"),h=z.createElement("span",{className:`${p}-close-x`},z.createElement(Cx,{className:`${p}-close-icon`})),[g,m]=nS({prefixCls:p,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>Dm({[`${p}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(p,l),closable:!1,closeIcon:h,duration:i,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:SS});return z.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:p,message:f}))),m}));let CS=0;function ES(e){const t=z.useRef(null);Zb();return[z.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:a}=t.current,i=`${o}-notice`,{content:s,icon:l,type:c,key:u,className:d,style:f,onClose:p}=n,h=yS(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(CS+=1,g=`antd-message-${CS}`),vS((t=>(r(Object.assign(Object.assign({},h),{key:g,content:z.createElement(mS,{prefixCls:o,type:c,icon:l},s),placement:"top",className:Dm(c&&`${i}-${c}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),f),onClose:()=>{null==p||p(),t()}})),()=>{e(g)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let a,i,s;a=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(i=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:i},a),{type:e});return n(l)}})),r}),[]),z.createElement(kS,Object.assign({key:"message-holder"},e,{ref:t}))]}function OS(e){return ES(e)}function DS(){DS=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(N){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),s=new P(r||[]);return o(i,"_invoke",{value:O(e,n,s)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",g="completed",m={};function b(){}function v(){}function y(){}var w={};c(w,i,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(_([])));S&&S!==n&&r.call(S,i)&&(w=S);var k=y.prototype=b.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==fd(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=f;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var l=D(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?g:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function D(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=d(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function _(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(fd(t)+" is not iterable")}return v.prototype=y,o(k,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(E.prototype),c(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new E(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(k),c(k,l,"Generator"),c(k,i,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=_,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function $S(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function jS(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){$S(a,r,o,i,s,"next",e)}function s(e){$S(a,r,o,i,s,"throw",e)}i(void 0)}))}}var PS,_S=hh({},sd),NS=_S.version,IS=_S.render,TS=_S.unmountComponentAtNode;try{Number((NS||"").split(".")[0])>=18&&(PS=_S.createRoot)}catch(K4){}function AS(e){var t=_S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===fd(t)&&(t.usingClientEntryPoint=e)}var FS="__rc_react_root__";function RS(e,t){PS?function(e,t){AS(!0);var n=t[FS]||PS(t);AS(!1),n.render(e),t[FS]=n}(e,t):function(e,t){IS(e,t)}(e,t)}function MS(e){return LS.apply(this,arguments)}function LS(){return(LS=jS(DS().mark((function e(t){return DS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[FS])||void 0===e||e.unmount(),delete t[FS]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function BS(e){TS(e)}function zS(e){return HS.apply(this,arguments)}function HS(){return(HS=jS(DS().mark((function e(t){return DS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===PS){e.next=2;break}return e.abrupt("return",MS(t));case 2:BS(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const WS=()=>({height:0,opacity:0}),US=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},VS=e=>({height:e?e.offsetHeight:0}),GS=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,qS=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:WS,onEnterStart:WS,onAppearActive:US,onEnterActive:US,onLeaveStart:VS,onLeaveActive:WS,onAppearEnd:GS,onEnterEnd:GS,onLeaveEnd:GS,motionDeadline:500}},KS=(e,t,n)=>void 0!==n?n:`${e}-${t}`,XS=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1},YS=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(",")}}}}},QS=Vy("Wave",(e=>[YS(e)]));function JS(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const ZS="ant-wave-target";function ek(e){return Number.isNaN(e)?0:e}const tk=e=>{const{className:t,target:n,component:r}=e,o=z.useRef(null),[a,i]=z.useState(null),[s,l]=z.useState([]),[c,u]=z.useState(0),[d,f]=z.useState(0),[p,h]=z.useState(0),[g,m]=z.useState(0),[b,v]=z.useState(!1),y={left:c,top:d,width:p,height:g,borderRadius:s.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);i(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return JS(t)?t:JS(n)?n:JS(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:ek(-parseFloat(r))),f(t?n.offsetTop:ek(-parseFloat(o))),h(n.offsetWidth),m(n.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;l([a,s,d,c].map((e=>ek(parseFloat(e)))))}if(a&&(y["--wave-color"]=a),z.useEffect((()=>{if(n){const e=Hb((()=>{w(),v(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{Hb.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(ZS));return z.createElement(_w,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;zS(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return z.createElement("div",{ref:o,className:Dm(t,{"wave-quick":x},n),style:y})}))},nk=(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),RS(z.createElement(tk,Object.assign({},t,{target:e})),o)};const rk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=z.useContext(uy),a=z.useRef(null),i=o("wave"),[,s]=QS(i),l=function(e,t,n){const{wave:r}=z.useContext(uy),[,o,a]=Dy(),i=$y((i=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${ZS}`)||s,{showEffect:c}=r||{};(c||nk)(l,{className:t,token:o,component:n,event:i,hashId:a})})),s=z.useRef();return e=>{Hb.cancel(s.current),s.current=Hb((()=>{i(e)}))}}(a,Dm(i,s),r);if(H.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!XS(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]),!H.isValidElement(t))return null!=t?t:null;return Mx(t,{ref:Zm(t)?Qm(t.ref,a):a})},ok=e=>{const t=H.useContext(vy);return H.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},ak=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},ik=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"}}}},sk=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}}}},lk=Vy("Space",(e=>{const t=zy(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[ik(t),sk(t),ak(t)]}),(()=>({})),{resetStyle:!1});var ck=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uk=z.createContext(null),dk=(e,t)=>{const n=z.useContext(uk),r=z.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,i="vertical"===r?"-vertical-":"-";return Dm(`${e}-compact${i}item`,{[`${e}-compact${i}first-item`]:o,[`${e}-compact${i}last-item`]:a,[`${e}-compact${i}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},fk=e=>{let{children:t}=e;return z.createElement(uk.Provider,{value:null},t)},pk=e=>{var{children:t}=e,n=ck(e,["children"]);return z.createElement(uk.Provider,{value:n},t)},hk=e=>{const{getPrefixCls:t,direction:n}=z.useContext(uy),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=ck(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=ok((e=>null!=r?r:e)),f=t("space-compact",i),[p,h]=lk(f),g=Dm(f,h,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:a,[`${f}-vertical`]:"vertical"===o},s,l),m=z.useContext(uk),b=qm(c),v=z.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return z.createElement(pk,{key:n,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!m||(null==m?void 0:m.isFirstItem)),isLastItem:t===b.length-1&&(!m||(null==m?void 0:m.isLastItem))},e)}))),[r,b,m]);return 0===b.length?null:p(z.createElement("div",Object.assign({className:g},u),v))};var gk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mk=z.createContext(void 0),bk=e=>{const{getPrefixCls:t,direction:n}=z.useContext(uy),{prefixCls:r,size:o,className:a}=e,i=gk(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Dy();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=Dm(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},a,l);return z.createElement(mk.Provider,{value:o},z.createElement("div",Object.assign({},i,{className:u})))},vk=/^[\u4e00-\u9fa5]{2}$/,yk=vk.test.bind(vk);function wk(e){return"danger"===e?{danger:!0}:{type:e}}function xk(e){return"string"==typeof e}function Sk(e){return"text"===e||"link"===e}function kk(e,t){let n=!1;const r=[];return H.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),H.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&xk(e.type)&&yk(e.props.children)?Mx(e,{children:e.props.children.split("").join(n)}):xk(e)?yk(e)?H.createElement("span",null,e.split("").join(n)):H.createElement("span",null,e):Rx(e)?H.createElement("span",null,e):e}(e,t)))}const Ck=z.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=Dm(`${a}-icon`,n);return H.createElement("span",{ref:t,className:i,style:r},o)})),Ek=z.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=Dm(`${n}-loading-icon`,r);return H.createElement(Ck,{prefixCls:n,className:i,style:o,ref:t},H.createElement(aS,{className:a}))})),Ok=()=>({width:0,opacity:0,transform:"scale(0)"}),Dk=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$k=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?H.createElement(Ek,{prefixCls:t,className:o,style:a}):H.createElement(_w,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:Ok,onAppearActive:Dk,onEnterStart:Ok,onEnterActive:Dk,onLeaveStart:Dk,onLeaveActive:Ok},((e,n)=>{let{className:r,style:i}=e;return H.createElement(Ek,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),i),ref:n,iconClassName:r})}))},jk=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Pk=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-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}},jk(`${t}-primary`,o),jk(`${t}-danger`,a)]}},_k=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({},My(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Nk=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Ik=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Tk=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Ak=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Fk=(e,t,n,r,o,a,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,backgroundColor:t,borderColor:r||void 0,boxShadow:"none"},Nk(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),Rk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Ak(e))}),Mk=e=>Object.assign({},Rk(e)),Lk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Bk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mk(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Nk(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Fk(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},Nk(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Fk(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Rk(e))}),zk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mk(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),Nk(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Fk(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},Nk(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Fk(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rk(e))}),Hk=e=>Object.assign(Object.assign({},Bk(e)),{borderStyle:"dashed"}),Wk=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Nk(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),Lk(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Nk(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Lk(e))}),Uk=e=>Object.assign(Object.assign(Object.assign({},Nk(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Lk(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Lk(e)),Nk(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Vk=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Bk(e),[`${t}-primary`]:zk(e),[`${t}-dashed`]:Hk(e),[`${t}-link`]:Wk(e),[`${t}-text`]:Uk(e),[`${t}-ghost`]:Fk(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Gk=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:a,lineWidth:i,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Math.max(0,(r-o*a)/2-i)}px ${l}px`,borderRadius:s,[`&${`${n}-icon-only`}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Ik(e)},{[`${n}${n}-round${t}`]:Tk(e)}]},qk=e=>Gk(zy(e,{fontSize:e.contentFontSize})),Kk=e=>{const t=zy(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Gk(t,`${e.componentCls}-sm`)},Xk=e=>{const t=zy(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Gk(t,`${e.componentCls}-lg`)},Yk=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Qk=e=>{const{paddingInline:t,onlyIconSize:n}=e;return zy(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},Jk=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}),Zk=Vy("Button",(e=>{const t=Qk(e);return[_k(t),Kk(t),qk(t),Xk(t),Yk(t),Vk(t),Pk(t)]}),Jk);function eC(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${i}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function tC(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 nC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},eC(e,r,t)),tC(n,r,t))}}function rC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function oC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},rC(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const aC=Gy(["Button","compact"],(e=>{const t=Qk(e);return[nC(t),oC(t)]}),Jk);var iC=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sC=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,type:i="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:p,children:h,icon:g,ghost:m=!1,block:b=!1,htmlType:v="button",classNames:y,style:w={}}=e,x=iC(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:S,autoInsertSpaceInButton:k,direction:C,button:E}=z.useContext(uy),O=S("btn",a),[D,$]=Zk(O),j=z.useContext(gy),P=null!=d?d:j,_=z.useContext(mk),N=z.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o)),[o]),[I,T]=z.useState(N.loading),[A,F]=z.useState(!1),R=Qm(t,z.createRef()),M=1===z.Children.count(h)&&!g&&!Sk(i);z.useEffect((()=>{let e=null;return N.delay>0?e=setTimeout((()=>{e=null,T(!0)}),N.delay):T(N.loading),function(){e&&(clearTimeout(e),e=null)}}),[N]),z.useEffect((()=>{if(!R||!R.current||!1===k)return;const e=R.current.textContent;M&&yk(e)?A||F(!0):A&&F(!1)}),[R]);const L=t=>{const{onClick:n}=e;I||P?t.preventDefault():null==n||n(t)},B=!1!==k,{compactSize:W,compactItemClassnames:U}=dk(O,C),V=ok((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:W)&&void 0!==t?t:_)&&void 0!==n?n:e})),G=V&&{large:"lg",small:"sm",middle:void 0}[V]||"",q=I?"loading":g,K=Fb(x,["navigate"]),X=Dm(O,$,{[`${O}-${l}`]:"default"!==l&&l,[`${O}-${i}`]:i,[`${O}-${G}`]:G,[`${O}-icon-only`]:!h&&0!==h&&!!q,[`${O}-background-ghost`]:m&&!Sk(i),[`${O}-loading`]:I,[`${O}-two-chinese-chars`]:A&&B&&!I,[`${O}-block`]:b,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:"rtl"===C},U,f,p,null==E?void 0:E.className),Y=Object.assign(Object.assign({},null==E?void 0:E.style),w),Q=Dm(null==y?void 0:y.icon,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.icon),J=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==E?void 0:E.styles)||void 0===r?void 0:r.icon)||{}),Z=g&&!I?H.createElement(Ck,{prefixCls:O,className:Q,style:J},g):H.createElement($k,{existIcon:!!g,prefixCls:O,loading:!!I}),ee=h||0===h?kk(h,M&&B):null;if(void 0!==K.href)return D(H.createElement("a",Object.assign({},K,{className:Dm(X,{[`${O}-disabled`]:P}),style:Y,onClick:L,ref:R,tabIndex:P?-1:0}),Z,ee));let te=H.createElement("button",Object.assign({},x,{type:v,className:X,style:Y,onClick:L,disabled:P,ref:R}),Z,ee,U&&H.createElement(aC,{key:"compact",prefixCls:O}));return Sk(i)||(te=H.createElement(rk,{component:"Button",disabled:!!I},te)),D(te)},lC=z.forwardRef(sC);lC.Group=bk,lC.__ANT_BUTTON=!0;const cC=lC;function uC(e){return!(!e||!e.then)}const dC=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:a,autoFocus:i,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=z.useRef(!1),f=z.useRef(null),[p,h]=jy(!1),g=function(){null==a||a.apply(void 0,arguments)};z.useEffect((()=>{let e=null;return i&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return z.createElement(cC,Object.assign({},wk(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!uC(t))return d.current=!1,void g(e)}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!t)return void g();(e=>{uC(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:p,prefixCls:r},o,{ref:f}),n)},fC=H.createContext({}),{Provider:pC}=fC,hC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:l}=z.useContext(fC);return o?H.createElement(dC,{isSilent:r,actionFn:s,close:function(){null==i||i.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},gC=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:l}=z.useContext(fC);return H.createElement(dC,{isSilent:n,type:i||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},a)};var mC,bC=z.createContext(null),vC=[];function yC(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===mC){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),mC=o-a}return mC}():n}var wC="rc-util-locker-".concat(Date.now()),xC=0;function SC(e){var t=!!e,n=qh(z.useState((function(){return xC+=1,"".concat(wC,"_").concat(xC)})),1)[0];lg((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:yC(n),height:yC(r)}}(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Uh("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Wh(n);return function(){Wh(n)}}),[t,n])}var kC=!1;var CC=function(e){return!1!==e&&(Nh()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},EC=z.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=void 0===a||a,s=e.children,l=qh(z.useState(n),2),c=l[0],u=l[1],d=c||n;z.useEffect((function(){(i||n)&&u(n)}),[n,i]);var f=qh(z.useState((function(){return CC(o)})),2),p=f[0],h=f[1];z.useEffect((function(){var e=CC(o);h(null!=e?e:null)}));var g=function(e,t){var n=qh(z.useState((function(){return Nh()?document.createElement("div"):null})),1)[0],r=z.useRef(!1),o=z.useContext(bC),a=qh(z.useState(vC),2),i=a[0],s=a[1],l=o||(r.current?void 0:function(e){s((function(t){return[e].concat(fh(t))}))});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return lg((function(){return e?o?o(c):c():u(),u}),[e]),lg((function(){i.length&&(i.forEach((function(e){return e()})),s(vC))}),[i]),[n,l]}(d&&!p),m=qh(g,2),b=m[0],v=m[1],y=null!=p?p:b;SC(r&&n&&Nh()&&(y===b||y===document.body));var w=null;s&&Zm(s)&&t&&(w=s.ref);var x=Jm(w,t);if(!d||!Nh()||void 0===p)return null;var S,k=!1===y||("boolean"==typeof S&&(kC=S),kC),C=s;return t&&(C=z.cloneElement(s,{ref:x})),z.createElement(bC.Provider,{value:v},k?C:ad.createPortal(C,y))})),OC=z.createContext({});var DC=0,$C=hh({},W).useId;const jC=$C?function(e){var t=$C();return e||t}:function(e){var t=qh(z.useState("ssr-id"),2),n=t[0],r=t[1];return z.useEffect((function(){var e=DC;DC+=1,r("rc_unique_".concat(e))}),[]),e||n};function PC(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function _C(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const NC=z.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var IC={width:0,height:0,overflow:"hidden",outline:"none"},TC=H.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,g=e.onMouseDown,m=e.onMouseUp,b=e.holderRef,v=e.visible,y=e.forceRender,w=e.width,x=e.height,S=e.classNames,k=e.styles,C=Jm(b,H.useContext(OC).panel),E=z.useRef(),O=z.useRef();H.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?E.current.focus():e||t!==E.current||O.current.focus()}}}));var D,$,j,P={};void 0!==w&&(P.width=w),void 0!==x&&(P.height=x),s&&(D=H.createElement("div",{className:Dm("".concat(n,"-footer"),null==S?void 0:S.footer),style:hh({},null==k?void 0:k.footer)},s)),a&&($=H.createElement("div",{className:Dm("".concat(n,"-header"),null==S?void 0:S.header),style:hh({},null==k?void 0:k.header)},H.createElement("div",{className:"".concat(n,"-title"),id:i},a))),l&&(j=H.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||H.createElement("span",{className:"".concat(n,"-close-x")})));var _=H.createElement("div",{className:Dm("".concat(n,"-content"),null==S?void 0:S.content),style:null==k?void 0:k.content},j,$,H.createElement("div",jp({className:Dm("".concat(n,"-body"),null==S?void 0:S.body),style:hh(hh({},f),null==k?void 0:k.body)},p),d),D);return H.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:C,style:hh(hh({},o),P),className:Dm(n,r),onMouseDown:g,onMouseUp:m},H.createElement("div",{tabIndex:0,ref:E,style:IC,"aria-hidden":"true"}),H.createElement(NC,{shouldUpdate:v||y},h?h(_):_),H.createElement("div",{tabIndex:0,ref:O,style:IC,"aria-hidden":"true"}))})),AC=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=z.useRef(),h=qh(z.useState(),2),g=h[0],m=h[1],b={};function v(){var e,t,n,r,o,a=(e=p.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=_C(o),n.top+=_C(o,!0),n);m(f?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return g&&(b.transformOrigin=g),z.createElement(_w,{visible:i,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:s,motionName:c,removeOnLeave:l,ref:p},(function(i,s){var l=i.className,c=i.style;return z.createElement(TC,jp({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:s,style:hh(hh(hh({},c),o),b),className:Dm(a,l)}))}))}));function FC(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return z.createElement(_w,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var a=e.className,s=e.style;return z.createElement("div",jp({ref:r,style:hh(hh({},s),n),className:Dm("".concat(t,"-mask"),a,i)},o))}))}function RC(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,a=void 0!==o&&o,i=e.keyboard,s=void 0===i||i,l=e.focusTriggerAfterClose,c=void 0===l||l,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,h=e.afterOpenChange,g=e.afterClose,m=e.transitionName,b=e.animation,v=e.closable,y=void 0===v||v,w=e.mask,x=void 0===w||w,S=e.maskTransitionName,k=e.maskAnimation,C=e.maskClosable,E=void 0===C||C,O=e.maskStyle,D=e.maskProps,$=e.rootClassName,j=e.classNames,P=e.styles,_=z.useRef(),N=z.useRef(),I=z.useRef(),T=qh(z.useState(a),2),A=T[0],F=T[1],R=jC();function M(e){null==p||p(e)}var L=z.useRef(!1),B=z.useRef(),H=null;return E&&(H=function(e){L.current?L.current=!1:N.current===e.target&&M(e)}),z.useEffect((function(){a&&(F(!0),Ih(N.current,document.activeElement)||(_.current=document.activeElement))}),[a]),z.useEffect((function(){return function(){clearTimeout(B.current)}}),[]),z.createElement("div",jp({className:Dm("".concat(n,"-root"),$)},Ax(e,{data:!0})),z.createElement(FC,{prefixCls:n,visible:x&&a,motionName:PC(n,S,k),style:hh(hh({zIndex:r},O),null==P?void 0:P.mask),maskProps:D,className:null==j?void 0:j.mask}),z.createElement("div",jp({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===Gx.ESC)return e.stopPropagation(),void M(e);a&&e.keyCode===Gx.TAB&&I.current.changeActive(!e.shiftKey)},className:Dm("".concat(n,"-wrap"),d,null==j?void 0:j.wrapper),ref:N,onClick:H,style:hh(hh(hh({zIndex:r},u),null==P?void 0:P.wrapper),{},{display:A?null:"none"})},f),z.createElement(AC,jp({},e,{onMouseDown:function(){clearTimeout(B.current),L.current=!0},onMouseUp:function(){B.current=setTimeout((function(){L.current=!1}))},ref:I,closable:y,ariaId:R,prefixCls:n,visible:a&&A,onClose:M,onVisibleChanged:function(e){if(e)Ih(N.current,document.activeElement)||null===(t=I.current)||void 0===t||t.focus();else{if(F(!1),x&&_.current&&c){try{_.current.focus({preventScroll:!0})}catch(K4){}_.current=null}A&&(null==g||g())}var t;null==h||h(e)},motionName:PC(n,m,b)}))))}AC.displayName="Content";var MC=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,i=e.afterClose,s=e.panelRef,l=qh(z.useState(t),2),c=l[0],u=l[1],d=z.useMemo((function(){return{panel:s}}),[s]);return z.useEffect((function(){t&&u(!0)}),[t]),r||!a||c?z.createElement(OC.Provider,{value:d},z.createElement(EC,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},z.createElement(RC,jp({},e,{destroyOnClose:a,afterClose:function(){null==i||i(),u(!1)}})))):null};function LC(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.createElement(Cx,null);const o=function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]);if(!o)return[!1,null];const a="boolean"==typeof t||null==t?r:t;return[!0,n?n(a):a]}MC.displayName="Dialog";var BC="RC_FORM_INTERNAL_HOOKS",zC=function(){xh(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},HC=z.createContext({getFieldValue:zC,getFieldsValue:zC,getFieldError:zC,getFieldWarning:zC,getFieldsError:zC,isFieldsTouched:zC,isFieldTouched:zC,isFieldValidating:zC,isFieldsValidating:zC,resetFields:zC,setFields:zC,setFieldValue:zC,setFieldsValue:zC,validateFields:zC,submit:zC,getInternalHooks:function(){return zC(),{dispatch:zC,initEntityValue:zC,registerField:zC,useSubscribe:zC,setInitialValues:zC,destroyForm:zC,setCallbacks:zC,registerWatch:zC,getFields:zC,setValidateMessages:zC,setPreserve:zC,getInitialValue:zC}}}),WC=z.createContext(null);function UC(e){return null==e?[]:Array.isArray(e)?e:[e]}function VC(){return VC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VC.apply(this,arguments)}function GC(e){return(GC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qC(e,t){return(qC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function KC(e,t,n){return KC=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(K4){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&qC(o,n.prototype),o},KC.apply(null,arguments)}function XC(e){var t="function"==typeof Map?new Map:void 0;return XC=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return KC(e,arguments,GC(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),qC(r,e)},XC(e)}var YC=/%[sdj%]/g,QC=function(){};function JC(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function ZC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(YC,(function(e){if("%%"===e)return"%";if(o>=a)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 eE(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function tE(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var s=r;r+=1,s<o?t(e[s],a):n([])}}([])}var nE=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,qC(t,n),r}(XC(Error));function rE(e,t,n,r,o){if(t.first){var a=new Promise((function(t,a){var i=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);tE(i,n,(function(e){return r(e),e.length?a(new nE(e,JC(e))):t(o)}))}));return a.catch((function(e){return e})),a}var i=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,a){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?a(new nE(u,JC(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?tE(r,n,d):function(e,t,n){var r=[],o=0,a=e.length;function i(e){r.push.apply(r,e||[]),++o===a&&n(r)}e.forEach((function(e){t(e,i)}))}(r,n,d)}))}));return d.catch((function(e){return e})),d}function oE(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function aE(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=VC({},e[n],r):e[n]=r}return e}var iE,sE=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!eE(t,a||e.type)||r.push(ZC(o.messages.required,e.fullField))},lE=/^(([^<>()\[\]\\.,;:\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,}))$/,cE=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,uE={integer:function(e){return uE.number(e)&&parseInt(e,10)===e},float:function(e){return uE.number(e)&&!uE.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(K4){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&&!uE.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(lE)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(iE)return iE;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};l.v4=function(e){return e&&e.exact?i: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")};var c=l.v4().source,u=l.v6().source;return iE=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(cE)}},dE="enum",fE={required:sE,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ZC(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)sE(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?uE[a](t)||r.push(ZC(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(ZC(o.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&r.push(ZC(o.messages[c].len,e.fullField,e.len)):i&&!s&&l<e.min?r.push(ZC(o.messages[c].min,e.fullField,e.min)):s&&!i&&l>e.max?r.push(ZC(o.messages[c].max,e.fullField,e.max)):i&&s&&(l<e.min||l>e.max)&&r.push(ZC(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[dE]=Array.isArray(e[dE])?e[dE]:[],-1===e[dE].indexOf(t)&&r.push(ZC(o.messages[dE],e.fullField,e[dE].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(ZC(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(ZC(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},pE=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t,a)&&!e.required)return n();fE.required(e,t,r,i,o,a),eE(t,a)||fE.type(e,t,r,i,o)}n(i)},hE={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t,"string")&&!e.required)return n();fE.required(e,t,r,a,o,"string"),eE(t,"string")||(fE.type(e,t,r,a,o),fE.range(e,t,r,a,o),fE.pattern(e,t,r,a,o),!0===e.whitespace&&fE.whitespace(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t)&&!e.required)return n();fE.required(e,t,r,a,o),void 0!==t&&fE.type(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),eE(t)&&!e.required)return n();fE.required(e,t,r,a,o),void 0!==t&&(fE.type(e,t,r,a,o),fE.range(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t)&&!e.required)return n();fE.required(e,t,r,a,o),void 0!==t&&fE.type(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t)&&!e.required)return n();fE.required(e,t,r,a,o),eE(t)||fE.type(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t)&&!e.required)return n();fE.required(e,t,r,a,o),void 0!==t&&(fE.type(e,t,r,a,o),fE.range(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t)&&!e.required)return n();fE.required(e,t,r,a,o),void 0!==t&&(fE.type(e,t,r,a,o),fE.range(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();fE.required(e,t,r,a,o,"array"),null!=t&&(fE.type(e,t,r,a,o),fE.range(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t)&&!e.required)return n();fE.required(e,t,r,a,o),void 0!==t&&fE.type(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t)&&!e.required)return n();fE.required(e,t,r,a,o),void 0!==t&&fE.enum(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t,"string")&&!e.required)return n();fE.required(e,t,r,a,o),eE(t,"string")||fE.pattern(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t,"date")&&!e.required)return n();var i;if(fE.required(e,t,r,a,o),!eE(t,"date"))i=t instanceof Date?t:new Date(t),fE.type(e,i,r,a,o),i&&fE.range(e,i.getTime(),r,a,o)}n(a)},url:pE,hex:pE,email:pE,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;fE.required(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(eE(t)&&!e.required)return n();fE.required(e,t,r,a,o)}n(a)}};function gE(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var mE=gE(),bE=function(){function e(e){this.rules=null,this._messages=mE,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=aE(gE(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var a=t,i=n,s=r;if("function"==typeof i&&(s=i,i={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,a),Promise.resolve(a);if(i.messages){var l=this.messages();l===mE&&(l=gE()),aE(l,i.messages),i.messages=l}else i.messages=this.messages();var c={};(i.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=a[e];n.forEach((function(n){var i=n;"function"==typeof i.transform&&(a===t&&(a=VC({},a)),r=a[e]=i.transform(r)),(i="function"==typeof i?{validator:i}:VC({},i)).validator=o.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=o.getType(i),c[e]=c[e]||[],c[e].push({rule:i,value:r,source:a,field:e}))}))}));var u={};return rE(c,i,(function(t,n){var r,o=t.rule,s=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function l(e,t){return VC({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!i.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(oE(o,a));if(i.first&&d.length)return u[o.field]=1,n(d);if(s){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(oE(o,a)):i.error&&(d=[i.error(o,ZC(i.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=VC({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.bind(null,e))}));var h=new e(p);h.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)}if(s=s&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,i);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,i)}catch(d){null==console.error||console.error(d),i.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},i=0;i<e.length;i++)t=e[i],n=void 0,Array.isArray(t)?r=(n=r).concat.apply(n,t):r.push(t);r.length?(o=JC(r),s(r,o)):s(null,a)}(e)}),a)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!hE.hasOwnProperty(e.type))throw new Error(ZC("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?hE.required:hE[this.getType(e)]||void 0},e}();bE.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");hE[e]=t},bE.warning=QC,bE.messages=mE,bE.validators=hE;var vE="'${name}' is not a valid ${type}",yE={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:vE,method:vE,array:vE,object:vE,number:vE,date:vE,boolean:vE,integer:vE,float:vE,regexp:vE,email:vE,url:vE,hex:vE},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},wE=bE;function xE(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var SE="CODE_LOGIC_ERROR";function kE(e,t,n,r,o){return CE.apply(this,arguments)}function CE(){return CE=jS(DS().mark((function e(t,n,r,o,a){var i,s,l,c,u,d,f,p,h;return DS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(i=hh({},r)).ruleIndex,wE.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(SE)}}),l=null,i&&"array"===i.type&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new wE(hd({},t,[i])),u=Yb(yE,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(hd({},t,n),hh({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,r=n===SE?u.default:n;return z.isValidElement(r)?z.cloneElement(r,{key:"error_".concat(t)}):r})));case 18:if(d.length||!l){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return kE("".concat(t,".").concat(n),e,l,o,a)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(fh(e),fh(t))}),[]));case 23:return p=hh(hh({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=d.map((function(e){return"string"==typeof e?xE(e,p):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),CE.apply(this,arguments)}function EE(e,t,n,r,o,a){var i,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=hh(hh({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,a=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){xh(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));xh(o=a&&"function"==typeof a.then&&"function"==typeof a.catch,"`callback` is deprecated. Please return a promise instead."),o&&a.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,a=t.ruleIndex;return!!n==!!o?r-a:n?1:-1}));if(!0===o)i=new Promise(function(){var e=jS(DS().mark((function e(n,o){var i,c,u;return DS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<l.length)){e.next=12;break}return c=l[i],e.next=5,kE(s,t,c,r,a);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:i+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return kE(s,t,e,r,a).then((function(t){return{errors:t,rule:e}}))}));i=(o?function(e){return DE.apply(this,arguments)}(c):function(e){return OE.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return i.catch((function(e){return e})),i}function OE(){return(OE=jS(DS().mark((function e(t){return DS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,fh(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function DE(){return(DE=jS(DS().mark((function e(t){var n;return DS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $E(e){return UC(e)}function jE(e,t){var n={};return t.forEach((function(t){var r=Vb(e,t);n=qb(n,t,r)})),n}function PE(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return _E(t,e,n)}))}function _E(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function NE(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===fd(t.target)&&e in t.target?t.target[e]:t}function IE(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(fh(e.slice(0,n)),[o],fh(e.slice(n,t)),fh(e.slice(t+1,r))):a<0?[].concat(fh(e.slice(0,t)),fh(e.slice(t+1,n+1)),[o],fh(e.slice(n+1,r))):e}var TE=["name"],AE=[];function FE(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var RE=function(e){Ob(n,z.Component);var t=Pb(n);function n(e){var r;(Vd(this,n),hd(jb(r=t.call(this,e)),"state",{resetCount:0}),hd(jb(r),"cancelRegisterFunc",null),hd(jb(r),"mounted",!1),hd(jb(r),"touched",!1),hd(jb(r),"dirty",!1),hd(jb(r),"validatePromise",void 0),hd(jb(r),"prevValidating",void 0),hd(jb(r),"errors",AE),hd(jb(r),"warnings",AE),hd(jb(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,$E(o)),r.cancelRegisterFunc=null})),hd(jb(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(fh(void 0===n?[]:n),fh(t)):[]})),hd(jb(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),hd(jb(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),hd(jb(r),"metaCache",null),hd(jb(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=hh(hh({},r.getMeta()),{},{destroy:e});Sh(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),hd(jb(r),"onStoreChange",(function(e,t,n){var o=r.props,a=o.shouldUpdate,i=o.dependencies,s=void 0===i?[]:i,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(c),p=t&&PE(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=AE,r.warnings=AE,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=AE,r.warnings=AE,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(a)return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||AE),"warnings"in h&&(r.warnings=h.warnings||AE),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&PE(t,u,!0))return void r.reRender();if(a&&!u.length&&FE(a,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map($E).some((function(e){return PE(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!s.length||u.length||a)&&FE(a,e,c,d,f,n))return void r.reRender()}!0===a&&r.reRender()})),hd(jb(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},a=o.triggerName,i=o.validateOnly,s=void 0!==i&&i,l=Promise.resolve().then(jS(DS().mark((function o(){var i,s,c,u,d,f,p;return DS().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(i=r.props,s=i.validateFirst,c=void 0!==s&&s,u=i.messageVariables,d=i.validateDebounce,f=r.getRules(),a&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||UC(t).includes(a)}))),!d||!a){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=EE(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AE;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,a=void 0===r?AE:r;t?o.push.apply(o,fh(a)):n.push.apply(n,fh(a))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=AE,r.warnings=AE,r.triggerMetaEvent(),r.reRender()),l})),hd(jb(r),"isFieldValidating",(function(){return!!r.validatePromise})),hd(jb(r),"isFieldTouched",(function(){return r.touched})),hd(jb(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(BC).getInitialValue)(r.getNamePath())})),hd(jb(r),"getErrors",(function(){return r.errors})),hd(jb(r),"getWarnings",(function(){return r.warnings})),hd(jb(r),"isListField",(function(){return r.props.isListField})),hd(jb(r),"isList",(function(){return r.props.isList})),hd(jb(r),"isPreserve",(function(){return r.props.preserve})),hd(jb(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),hd(jb(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return hh(hh({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=qm(e);return 1===n.length&&z.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),hd(jb(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Vb(e||t(!0),n)})),hd(jb(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,a=t.getValueFromEvent,i=t.normalize,s=t.valuePropName,l=t.getValueProps,c=t.fieldContext,u=void 0!==o?o:c.validateTrigger,d=r.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,h=f(BC).dispatch,g=r.getValue(),m=l||function(e){return hd({},s,e)},b=e[n],v=hh(hh({},e),m(g));return v[n]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):NE.apply(void 0,[s].concat(n)),i&&(e=i(e,g,p(!0))),h({type:"updateValue",namePath:d,value:e}),b&&b.apply(void 0,n)},UC(u||[]).forEach((function(e){var t=v[e];v[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&h({type:"validateField",namePath:d,triggerName:e})}})),v})),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(BC).initEntityValue)(jb(r));return r}return qd(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(BC).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:z.isValidElement(o)?e=z.cloneElement(o,this.getControlled(o.props)):(xh(!o,"`children` of Field is not validate ReactElement."),e=o),z.createElement(z.Fragment,{key:t},e)}}]),n}();function ME(e){var t=e.name,n=gd(e,TE),r=z.useContext(HC),o=z.useContext(WC),a=void 0!==t?$E(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),z.createElement(RE,jp({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function LE(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=z.useContext(HC),l=z.useContext(WC),c=z.useRef({keys:[],id:0}).current,u=z.useMemo((function(){var e=$E(s.prefixName)||[];return[].concat(fh(e),fh($E(t)))}),[s.prefixName,t]),d=z.useMemo((function(){return hh(hh({},s),{},{prefixName:u})}),[s,u]),f=z.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}}),[u]);if("function"!=typeof r)return xh(!1,"Form.List only accepts function as children."),null;return z.createElement(WC.Provider,{value:f},z.createElement(HC.Provider,{value:d},z.createElement(ME,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=i?i:!!l},(function(e,t){var n=e.value,o=void 0===n?[]:n,a=e.onChange,i=s.getFieldValue,l=function(){return i(u||[])||[]},d={add:function(e,t){var n=l();t>=0&&t<=n.length?(c.keys=[].concat(fh(c.keys.slice(0,t)),[c.id],fh(c.keys.slice(t))),a([].concat(fh(n.slice(0,t)),[e],fh(n.slice(t))))):(c.keys=[].concat(fh(c.keys),[c.id]),a([].concat(fh(n),[e]))),c.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),a(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(c.keys=IE(c.keys,e,t),a(IE(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))}hd(RE,"contextType",HC),hd(RE,"defaultProps",{trigger:"onChange",valuePropName:"value"});var BE="__@field_split__";function zE(e){return e.map((function(e){return"".concat(fd(e),":").concat(e)})).join(BE)}var HE=function(){function e(){Vd(this,e),hd(this,"kvs",new Map)}return qd(e,[{key:"set",value:function(e,t){this.kvs.set(zE(e),t)}},{key:"get",value:function(e){return this.kvs.get(zE(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(zE(e))}},{key:"map",value:function(e){return fh(this.kvs.entries()).map((function(t){var n=qh(t,2),r=n[0],o=n[1],a=r.split(BE);return e({key:a.map((function(e){var t=qh(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),WE=["name"],UE=qd((function e(t){var n=this;Vd(this,e),hd(this,"formHooked",!1),hd(this,"forceRootUpdate",void 0),hd(this,"subscribable",!0),hd(this,"store",{}),hd(this,"fieldEntities",[]),hd(this,"initialValues",{}),hd(this,"callbacks",{}),hd(this,"validateMessages",null),hd(this,"preserve",null),hd(this,"lastValidatePromise",null),hd(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),hd(this,"getInternalHooks",(function(e){return e===BC?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(xh(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),hd(this,"useSubscribe",(function(e){n.subscribable=e})),hd(this,"prevWithoutPreserves",null),hd(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Yb(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=qb(o,n,Vb(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),hd(this,"destroyForm",(function(){var e=new HE;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),hd(this,"getInitialValue",(function(e){var t=Vb(n.initialValues,e);return e.length?Yb(t):t})),hd(this,"setCallbacks",(function(e){n.callbacks=e})),hd(this,"setValidateMessages",(function(e){n.validateMessages=e})),hd(this,"setPreserve",(function(e){n.preserve=e})),hd(this,"watchList",[]),hd(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),hd(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),hd(this,"timeoutId",null),hd(this,"warningUnhooked",(function(){})),hd(this,"updateStore",(function(e){n.store=e})),hd(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),hd(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new HE;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),hd(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=$E(e);return t.get(n)||{INVALIDATE_NAME_PATH:$E(e)}}))})),hd(this,"getFieldsValue",(function(e,t){var r,o,a;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===fd(e)&&(a=e.strict,o=e.filter),!0===r&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return i.forEach((function(e){var t,n,i,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){if(null!==(i=(l=e).isList)&&void 0!==i&&i.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(c)}else s.push(c)})),jE(n.store,s.map($E))})),hd(this,"getFieldValue",(function(e){n.warningUnhooked();var t=$E(e);return Vb(n.store,t)})),hd(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:$E(e[n]),errors:[],warnings:[]}}))})),hd(this,"getFieldError",(function(e){n.warningUnhooked();var t=$E(e);return n.getFieldsError([t])[0].errors})),hd(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=$E(e);return n.getFieldsError([t])[0].warnings})),hd(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,a=t[0],i=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(a)?(o=a.map($E),s=!1):(o=null,s=a):(o=a.map($E),s=i);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return s?l.every(c):l.some(c);var u=new HE;o.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(fh(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return s?f.every(d):f.some(d)})),hd(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),hd(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map($E);return t.some((function(e){var t=e.getNamePath();return PE(r,t)&&e.isFieldValidating()}))})),hd(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),hd(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new HE,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,fh(fh(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))xh(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=t.get(o);if(a&&a.size>1)xh(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==i||n.updateStore(qb(n.store,o,fh(a)[0].value))}}}}))})),hd(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Yb(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map($E);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(qb(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),hd(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=gd(e,WE),i=$E(o);r.push(i),"value"in a&&n.updateStore(qb(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)})),hd(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=hh(hh({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),hd(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Vb(n.store,r)&&n.updateStore(qb(n.store,r,t))}})),hd(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),hd(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||a.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!_E(e.getNamePath(),t)}))){var s=n.store;n.updateStore(qb(s,t,i,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),hd(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,a=e.triggerName;n.validateFields([o],{triggerName:a})}})),hd(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=hh(hh({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),hd(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(fh(r))}),r})),hd(this,"updateValue",(function(e,t){var r=$E(e),o=n.store;n.updateStore(qb(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(o,r),i=n.callbacks.onValuesChange;i&&i(jE(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(fh(a)))})),hd(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Yb(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),hd(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),hd(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new HE;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=$E(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),hd(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new HE;t.forEach((function(e){var t=e.name,n=e.errors;a.set(t,n)})),o.forEach((function(e){e.errors=a.get(e.name)||e.errors}))}var i=o.filter((function(t){var n=t.name;return PE(e,n)}));i.length&&r(i,o)}})),hd(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var a=!!r,i=a?r.map($E):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(a||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!a||PE(i,t,d)){var r=e.validateRules(hh({validateMessages:hh(hh({},yE),n.validateMessages)},o));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,fh(n)):r.push.apply(r,fh(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,a){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var g=i.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),h})),hd(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function VE(e){var t=z.useRef(),n=qh(z.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new UE((function(){n({})}));t.current=r.getForm()}return[t.current]}var GE=z.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),qE=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=z.useContext(GE),i=z.useRef({});return z.createElement(GE.Provider,{value:hh(hh({},a),{},{validateMessages:hh(hh({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:i.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:i.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(i.current=hh(hh({},i.current),{},hd({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=hh({},i.current);delete t[e],i.current=t,a.unregisterForm(e)}})},o)},KE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],XE=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,a=e.form,i=e.preserve,s=e.children,l=e.component,c=void 0===l?"form":l,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=gd(e,KE),v=z.useContext(GE),y=qh(VE(a),1)[0],w=y.getInternalHooks(BC),x=w.useSubscribe,S=w.setInitialValues,k=w.setCallbacks,C=w.setValidateMessages,E=w.setPreserve,O=w.destroyForm;z.useImperativeHandle(t,(function(){return y})),z.useEffect((function(){return v.registerForm(n,y),function(){v.unregisterForm(n)}}),[v,y,n]),C(hh(hh({},v.validateMessages),u)),k({onValuesChange:p,onFieldsChange:function(e){if(v.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];h.apply(void 0,[e].concat(r))}},onFinish:function(e){v.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:m}),E(i);var D,$=z.useRef(null);S(r,!$.current),$.current||($.current=!0),z.useEffect((function(){return O}),[]);var j="function"==typeof s;j?D=s(y.getFieldsValue(!0),y):D=s;x(!j);var P=z.useRef();z.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==fd(e)||"object"!==fd(t))return!1;var n=Object.keys(e),r=Object.keys(t);return fh(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(P.current||[],o||[])||y.setFields(o||[]),P.current=o}),[o,y]);var _=z.useMemo((function(){return hh(hh({},y),{},{validateTrigger:f})}),[y,f]),N=z.createElement(WC.Provider,{value:null},z.createElement(HC.Provider,{value:_},D));return!1===c?N:z.createElement(c,jp({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),y.submit()},onReset:function(e){var t;e.preventDefault(),y.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),N)};function YE(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function QE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=void 0===r?[]:r,a=t[1],i=void 0===a?{}:a,s=function(e){return e&&!!e._init}(i)?{form:i}:i,l=s.form,c=qh(z.useState(),2),u=c[0],d=c[1],f=z.useMemo((function(){return YE(u)}),[u]),p=z.useRef(f);p.current=f;var h=z.useContext(HC),g=l||h,m=g&&g._init,b=$E(o),v=z.useRef(b);return v.current=b,z.useEffect((function(){if(m){var e=g.getFieldsValue,t=(0,(0,g.getInternalHooks)(BC).registerWatch)((function(e,t){var n=Vb(s.preserve?t:e,v.current),r=YE(n);p.current!==r&&(p.current=r,d(n))})),n=Vb(s.preserve?e(!0):e(),v.current);return u!==n&&d(n),t}}),[m]),u}var JE=z.forwardRef(XE);JE.FormProvider=qE,JE.Field=ME,JE.List=LE,JE.useForm=VE,JE.useWatch=QE;const ZE=z.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),eO=z.createContext(null),tO=e=>{const t=Fb(e,["prefixCls"]);return z.createElement(qE,Object.assign({},t))},nO=z.createContext({prefixCls:""}),rO=z.createContext({}),oO=e=>{let{children:t,status:n,override:r}=e;const o=z.useContext(rO),a=z.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 z.createElement(rO.Provider,{value:a},t)};function aO(){}const iO=z.createContext({add:aO,remove:aO});function sO(e){const t=z.useContext(iO),n=z.useRef();return $y((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const lO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=z.useContext(fC);return H.createElement(cC,Object.assign({onClick:n},e),t)},cO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=z.useContext(fC);return H.createElement(cC,Object.assign({},wk(n),{loading:e,onClick:o},t),r)};function uO(e,t){return H.createElement("span",{className:`${e}-close-x`},t||H.createElement(Cx,{className:`${e}-close-icon`}))}const dO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=uv("Modal",lv()),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:a,onCancel:i},f=H.useMemo((()=>d),fh(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=H.createElement(H.Fragment,null,H.createElement(lO,null),H.createElement(cO,null)),"function"==typeof c&&(p=c(p,{OkBtn:cO,CancelBtn:lO})),p=H.createElement(pC,{value:f},p)):p=c,H.createElement(hy,{disabled:!1},p)},fO=e=>({animationDuration:e,animationFillMode:"both"}),pO=e=>({animationDuration:e,animationFillMode:"both"}),hO=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},fO(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},pO(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},gO=new ym("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),mO=new ym("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),bO=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[hO(r,gO,mO,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},vO=new ym("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yO=new ym("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),wO=new ym("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xO=new ym("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SO=new ym("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kO=new ym("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),CO={"move-up":{inKeyframes:new ym("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 ym("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:vO,outKeyframes:yO},"move-left":{inKeyframes:wO,outKeyframes:xO},"move-right":{inKeyframes:SO,outKeyframes:kO}},EO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=CO[t];return[hO(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},OO=new ym("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),DO=new ym("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$O=new ym("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),jO=new ym("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),PO=new ym("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),_O=new ym("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),NO=new ym("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),IO=new ym("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),TO={"slide-up":{inKeyframes:OO,outKeyframes:DO},"slide-down":{inKeyframes:$O,outKeyframes:jO},"slide-left":{inKeyframes:PO,outKeyframes:_O},"slide-right":{inKeyframes:NO,outKeyframes:IO}},AO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=TO[t];return[hO(r,o,a,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}}]},FO=new ym("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),RO=new ym("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),MO=new ym("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),LO=new ym("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),BO=new ym("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zO=new ym("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),HO=new ym("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),WO=new ym("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),UO=new ym("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),VO=new ym("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),GO=new ym("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),qO=new ym("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),KO={zoom:{inKeyframes:FO,outKeyframes:RO},"zoom-big":{inKeyframes:MO,outKeyframes:LO},"zoom-big-fast":{inKeyframes:MO,outKeyframes:LO},"zoom-left":{inKeyframes:HO,outKeyframes:WO},"zoom-right":{inKeyframes:UO,outKeyframes:VO},"zoom-up":{inKeyframes:BO,outKeyframes:zO},"zoom-down":{inKeyframes:GO,outKeyframes:qO}},XO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=KO[t];return[hO(r,o,a,"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}}]},YO=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});function QO(e){return{position:e,inset:0}}const JO=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({},QO("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},QO("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:bO(e)}]},ZO=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({},Ty(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}},My(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"}}}]},eD=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body > ${e.iconCls}`]:{marginInlineEnd:e.margin},[`${r}-btns`]:{marginTop:e.marginLG}}}},tD=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},nD=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return zy(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:r*n+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight})},rD=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),oD=Vy("Modal",(e=>{const t=nD(e);return[ZO(t),tD(t),JO(t),e.wireframe&&eD(t),XO(t,"zoom")]}),rD);var aD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let iD;const sD=e=>{iD={x:e.pageX,y:e.pageY},setTimeout((()=>{iD=null}),100)};Nh()&&window.document.documentElement&&document.documentElement.addEventListener("click",sD,!0);const lD=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=z.useContext(uy),i=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:p,closeIcon:h,closable:g,focusTriggerAfterClose:m=!0,style:b,visible:v,width:y=520,footer:w,classNames:x,styles:S}=e,k=aD(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),C=r("modal",s),E=r(),[O,D]=oD(C),$=Dm(d,{[`${C}-centered`]:!!f,[`${C}-wrap-rtl`]:"rtl"===o}),j=null!==w&&z.createElement(dO,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:i})),[P,_]=LC(g,h,(e=>uO(C,e)),z.createElement(Cx,{className:`${C}-close-icon`}),!0),N=sO(`.${C}-content`),[I,T]=dS("Modal",k.zIndex);return O(z.createElement(fk,null,z.createElement(oO,{status:!0,override:!0},z.createElement(iS.Provider,{value:T},z.createElement(MC,Object.assign({width:y},k,{zIndex:I,getContainer:void 0===p?n:p,prefixCls:C,rootClassName:Dm(D,c),footer:j,visible:null!=u?u:v,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:iD,onClose:i,closable:P,closeIcon:_,focusTriggerAfterClose:m,transitionName:KS(E,"zoom",e.transitionName),maskTransitionName:KS(E,"fade",e.maskTransitionName),className:Dm(D,l,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),b),classNames:Object.assign(Object.assign({wrapper:$},null==a?void 0:a.classNames),x),styles:Object.assign(Object.assign({},null==a?void 0:a.styles),S),panelRef:N}))))))},cD=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:a,lineHeight:i}=e,s=`${t}-confirm`,l=Math.round(n*r),c=Math.round(a*i);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,maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`},[`${s}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${s}-content`]:{color:e.colorText,fontSize:a,lineHeight:i},[`${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}}},uD=Gy(["Modal","confirm"],(e=>{const t=nD(e);return[cD(t)]}),rD,{order:-1e3});var dD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function fD(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:l,locale:c}=e,u=dD(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(i){case"info":d=z.createElement(Px,null);break;case"success":d=z.createElement(vx,null);break;case"error":d=z.createElement(xx,null);break;default:d=z.createElement(Dx,null)}const f=null!=s?s:"confirm"===i,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=uv("Modal"),g=c||h,m=r||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=o||(null==g?void 0:g.cancelText),v=Object.assign({autoFocusButton:p,cancelTextLocale:b,okTextLocale:m,mergedOkCancel:f},u),y=z.useMemo((()=>v),fh(Object.values(v))),w=z.createElement(z.Fragment,null,z.createElement(hC,null),z.createElement(gC,null)),x=void 0!==e.title&&null!==e.title,S=`${a}-body`;return z.createElement("div",{className:`${a}-body-wrapper`},z.createElement("div",{className:Dm(S,{[`${S}-has-title`]:x})},d,z.createElement("div",{className:`${a}-paragraph`},x&&z.createElement("span",{className:`${a}-title`},e.title),z.createElement("div",{className:`${a}-content`},e.content))),void 0===l||"function"==typeof l?z.createElement(pC,{value:y},z.createElement("div",{className:`${a}-btns`},"function"==typeof l?l(w,{OkBtn:gC,CancelBtn:hC}):w)):l,z.createElement(uD,{prefixCls:t}))}const pD=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:h=!1,closeIcon:g,modalRender:m,focusTriggerAfterClose:b,onConfirm:v,styles:y}=e,w=`${u}-confirm`,x=e.width||416,S=e.style||{},k=void 0===e.mask||e.mask,C=void 0!==e.maskClosable&&e.maskClosable,E=Dm(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===c},e.className),[,O]=Dy(),D=z.useMemo((()=>void 0!==n?n:O.zIndexPopupBase+lS),[n,O]);return z.createElement(lD,{prefixCls:u,className:E,wrapClassName:Dm({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==v||v(!1)},open:o,title:"",footer:null,transitionName:KS(f||"","zoom",e.transitionName),maskTransitionName:KS(f||"","fade",e.maskTransitionName),mask:k,maskClosable:C,style:S,styles:Object.assign({body:p,mask:l},y),width:x,zIndex:D,afterClose:r,keyboard:a,centered:i,getContainer:s,closable:h,closeIcon:g,modalRender:m,focusTriggerAfterClose:b},z.createElement(fD,Object.assign({},e,{confirmPrefixCls:w})))},hD=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return z.createElement(ex,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},z.createElement(pD,Object.assign({},e)))},gD=[];var mD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let bD="";function vD(e){const t=document.createDocumentFragment();let n,r=Object.assign(Object.assign({},e),{close:i,open:!0});function o(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const a=r.some((e=>e&&e.triggerCancel));e.onCancel&&a&&e.onCancel.apply(e,[()=>{}].concat(fh(r.slice(1))));for(let e=0;e<gD.length;e++){if(gD[e]===i){gD.splice(e,1);break}}zS(t)}function a(e){var{okText:r,cancelText:o,prefixCls:a,getContainer:i}=e,s=mD(e,["okText","cancelText","prefixCls","getContainer"]);clearTimeout(n),n=setTimeout((()=>{const e=lv(),{getPrefixCls:n,getIconPrefixCls:l,getTheme:c}=Qw(),u=n(void 0,bD),d=a||`${u}-modal`,f=l(),p=c();let h=i;!1===h&&(h=void 0),RS(z.createElement(hD,Object.assign({},s,{getContainer:h,prefixCls:d,rootPrefixCls:u,iconPrefixCls:f,okText:r,locale:e,theme:p,cancelText:o||e.cancelText})),t)}))}function i(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),o.apply(this,n)}}),r.visible&&delete r.visible,a(r)}return a(r),gD.push(i),{destroy:i,update:function(e){r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e),a(r)}}}function yD(e){return Object.assign(Object.assign({},e),{type:"warning"})}function wD(e){return Object.assign(Object.assign({},e),{type:"info"})}function xD(e){return Object.assign(Object.assign({},e),{type:"success"})}function SD(e){return Object.assign(Object.assign({},e),{type:"error"})}function kD(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var CD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ED=(e,t)=>{var n,{afterClose:r,config:o}=e,a=CD(e,["afterClose","config"]);const[i,s]=z.useState(!0),[l,c]=z.useState(o),{direction:u,getPrefixCls:d}=z.useContext(uy),f=d("modal"),p=d(),h=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.some((e=>e&&e.triggerCancel));l.onCancel&&r&&l.onCancel.apply(l,[()=>{}].concat(fh(t.slice(1))))};z.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]=uv("Modal",ov.Modal);return z.createElement(hD,Object.assign({prefixCls:f,rootPrefixCls:p},l,{close:h,open:i,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)},a))},OD=z.forwardRef(ED);let DD=0;const $D=z.memo(z.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=z.useState([]);return[e,z.useCallback((e=>(t((t=>[].concat(fh(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return z.useImperativeHandle(t,(()=>({patchElement:r})),[]),z.createElement(z.Fragment,null,n)})));function jD(){const e=z.useRef(null),[t,n]=z.useState([]);z.useEffect((()=>{if(t.length){fh(t).forEach((e=>{e()})),n([])}}),[t]);const r=z.useCallback((t=>function(r){var o;DD+=1;const a=z.createRef();let i;const s=new Promise((e=>{i=e}));let l,c=!1;const u=z.createElement(OD,{key:`modal-${DD}`,config:t(r),ref:a,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{i(e)}});l=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),l&&gD.push(l);return{destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(fh(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(fh(e),[t])))},then:e=>(c=!0,s.then(e))}}),[]);return[z.useMemo((()=>({info:r(wD),success:r(xD),error:r(SD),warning:r(yD),confirm:r(kD)})),[]),z.createElement($D,{key:"modal-holder",ref:e})]}const PD=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new ym("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new ym("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new ym("antNotificationBottomFadeIn",{"0%":{bottom:-r,opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new ym("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},_D=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],ND={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},ID=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},TD=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},AD=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},ID(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},TD(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:-e.margin,background:"transparent",pointerEvents:"auto"}}}},_D.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[ND[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},FD=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:g,lineHeight:m,width:b,notificationIconSize:v,colorText:y}=e,w=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:f,borderRadius:i,boxShadow:r,[w]:{padding:p,width:b,maxWidth:`calc(100vw - ${2*h}px)`,overflow:"hidden",lineHeight:m,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:g,color:y},[`&${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+v,fontSize:o},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.marginSM+v,fontSize:g},[`${w}-icon`]:{position:"absolute",fontSize:v,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${w}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},RD=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,s=new ym("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Ty(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Object.assign({},FD(e))}}]},MD=e=>({zIndexPopup:e.zIndexPopupBase+lS+50,width:384}),LD=e=>{const t=e.paddingMD,n=e.paddingLG;return zy(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},BD=Vy("Notification",(e=>{const t=LD(e);return[RD(t),PD(t),AD(t)]}),MD),zD=Gy(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=LD(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},FD(n)),{width:n.width,maxWidth:`calc(100vw - ${2*n.notificationMarginEdge}px)`,margin:0})}}),MD);var HD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function WD(e,t){return null===t||!1===t?null:t||z.createElement("span",{className:`${e}-close-x`},z.createElement(Cx,{className:`${e}-close-icon`}))}const UD={success:vx,info:Px,error:xx,warning:Dx},VD=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i,role:s="alert"}=e;let l=null;return n?l=z.createElement("span",{className:`${t}-icon`},n):r&&(l=z.createElement(UD[r]||null,{className:Dm(`${t}-icon`,`${t}-icon-${r}`)})),z.createElement("div",{className:Dm({[`${t}-with-icon`]:l}),role:s},l,z.createElement("div",{className:`${t}-message`},o),z.createElement("div",{className:`${t}-description`},a),i&&z.createElement("div",{className:`${t}-btn`},i))};var GD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qD="topRight",KD=e=>{let{children:t,prefixCls:n}=e;const[,r]=BD(n);return z.createElement(Xx,{classNames:{list:r,notice:r}},t)},XD=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(KD,{prefixCls:n,key:r},e)},YD=z.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:i,rtl:s,onAllRemoved:l,stack:c}=e,{getPrefixCls:u,getPopupContainer:d,notification:f}=z.useContext(uy),[,p]=Dy(),h=o||u("notification"),[g,m]=nS({prefixCls:h,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>Dm({[`${h}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(h),closable:!0,closeIcon:WD(h),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:l,renderNotifications:XD,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:p.margin}});return z.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:h,notification:f}))),m}));function QD(e){const t=z.useRef(null);Zb();return[z.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:a,notification:i}=t.current,s=`${a}-notice`,{message:l,description:c,icon:u,type:d,btn:f,className:p,style:h,role:g="alert",closeIcon:m}=n,b=GD(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=WD(s,m);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:qD},b),{content:z.createElement(VD,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:f,role:g}),className:Dm(d&&`${s}-${d}`,p,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),h),closeIcon:v,closable:!!v}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]),z.createElement(YD,Object.assign({key:"notification-holder"},e,{ref:t}))]}function JD(e){return QD(e)}const ZD=H.createContext({}),e$=H.createContext({message:{},notification:{},modal:{}}),t$=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},n$=Vy("App",(e=>[t$(e)])),r$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:s,component:l="div"}=e,{getPrefixCls:c}=z.useContext(uy),u=c("app",t),[d,f]=n$(u),p=Dm(f,u,r,o),h=z.useContext(ZD),g=H.useMemo((()=>({message:Object.assign(Object.assign({},h.message),a),notification:Object.assign(Object.assign({},h.notification),i)})),[a,i,h.message,h.notification]),[m,b]=OS(g.message),[v,y]=JD(g.notification),[w,x]=jD(),S=H.useMemo((()=>({message:m,notification:v,modal:w})),[m,v,w]),k=!1===l?H.Fragment:l,C={className:p,style:s};return d(H.createElement(e$.Provider,{value:S},H.createElement(ZD.Provider,{value:g},H.createElement(k,Object.assign({},!1===l?void 0:C),x,b,y,n))))};r$.useApp=()=>H.useContext(e$);const o$=r$;function a$(e){return function(t){return z.createElement(ex,{theme:{token:{motion:!1,zIndexPopupBase:0}}},z.createElement(e,Object.assign({},t)))}}const i$=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var s$=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,a=e.onMouseDown,i=e.onClick,s=e.children;return t="function"==typeof r?r(o):r,z.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:z.createElement("span",{className:Dm(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))};var l$=z.createContext(null);function c$(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=z.useRef(null),n=z.useRef(null);return z.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var u$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],d$=void 0;function f$(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,i=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,h=e.order,g=e.component,m=void 0===g?"div":g,b=gd(e,u$),v=i&&!p;function y(e){l(c,e)}z.useEffect((function(){return function(){y(null)}}),[]);var w,x=a&&o!==d$?a(o):f;r||(w={opacity:v?0:1,height:v?0:d$,overflowY:v?"hidden":d$,order:i?h:d$,pointerEvents:v?"none":d$,position:v?"absolute":d$});var S={};v&&(S["aria-hidden"]=!0);var k=z.createElement(m,jp({className:Dm(!r&&n,u),style:hh(hh({},w),d)},S,b,{ref:t}),x);return i&&(k=z.createElement(Ab,{onResize:function(e){y(e.offsetWidth)},disabled:s},k)),k}var p$=z.forwardRef(f$);function h$(){var e=z.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Hb(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){ad.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function g$(e,t){var n=qh(z.useState(t),2),r=n[0],o=n[1];return[r,$y((function(t){e((function(){o(t)}))}))]}p$.displayName="Item";var m$=H.createContext(null),b$=["component"],v$=["className"],y$=["className"],w$=function(e,t){var n=z.useContext(m$);if(!n){var r=e.component,o=void 0===r?"div":r,a=gd(e,b$);return z.createElement(o,jp({},a,{ref:t}))}var i=n.className,s=gd(n,v$),l=e.className,c=gd(e,y$);return z.createElement(m$.Provider,{value:null},z.createElement(p$,jp({ref:t,className:Dm(i,l)},s,c)))},x$=z.forwardRef(w$);x$.displayName="RawItem";var S$=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],k$="responsive",C$="invalidate";function E$(e){return"+ ".concat(e.length," ...")}function O$(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,o=e.data,a=void 0===o?[]:o,i=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=void 0===c?10:c,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.suffix,v=e.component,y=void 0===v?"div":v,w=e.itemComponent,x=e.onVisibleChange,S=gd(e,S$),k="full"===d,C=h$(),E=qh(g$(C,null),2),O=E[0],D=E[1],$=O||0,j=qh(g$(C,new Map),2),P=j[0],_=j[1],N=qh(g$(C,0),2),I=N[0],T=N[1],A=qh(g$(C,0),2),F=A[0],R=A[1],M=qh(g$(C,0),2),L=M[0],B=M[1],H=qh(z.useState(null),2),W=H[0],U=H[1],V=qh(z.useState(null),2),G=V[0],q=V[1],K=z.useMemo((function(){return null===G&&k?Number.MAX_SAFE_INTEGER:G||0}),[G,O]),X=qh(z.useState(!1),2),Y=X[0],Q=X[1],J="".concat(r,"-item"),Z=Math.max(I,F),ee=h===k$,te=a.length&&ee,ne=h===C$,re=te||"number"==typeof h&&a.length>h,oe=z.useMemo((function(){var e=a;return te?e=null===O&&k?a:a.slice(0,Math.min(a.length,$/u)):"number"==typeof h&&(e=a.slice(0,h)),e}),[a,u,O,h,te]),ae=z.useMemo((function(){return te?a.slice(K+1):a.slice(oe.length)}),[a,oe,te,K]),ie=z.useCallback((function(e,t){var n;return"function"==typeof l?l(e):null!==(n=l&&(null==e?void 0:e[l]))&&void 0!==n?n:t}),[l]),se=z.useCallback(i||function(e){return e},[i]);function le(e,t,n){(G!==e||void 0!==t&&t!==W)&&(q(e),n||(Q(e<a.length-1),null==x||x(e)),void 0!==t&&U(t))}function ce(e,t){_((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ue(e){return P.get(ie(oe[e],e))}lg((function(){if($&&"number"==typeof Z&&oe){var e=L,t=oe.length,n=t-1;if(!t)return void le(0,null);for(var r=0;r<t;r+=1){var o=ue(r);if(k&&(o=o||0),void 0===o){le(r-1,void 0,!0);break}if(e+=o,0===n&&e<=$||r===n-1&&e+ue(n)<=$){le(n,null);break}if(e+Z>$){le(r-1,e-o-L+F);break}}b&&ue(0)+L>$&&U(null)}}),[$,P,F,L,ie,oe]);var de=Y&&!!ae.length,fe={};null!==W&&te&&(fe={position:"absolute",left:W,top:0});var pe,he={prefixCls:J,responsive:te,component:w,invalidate:ne},ge=s?function(e,t){var n=ie(e,t);return z.createElement(m$.Provider,{key:n,value:hh(hh({},he),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=K})},s(e,t))}:function(e,t){var n=ie(e,t);return z.createElement(p$,jp({},he,{order:t,key:n,item:e,renderItem:se,itemKey:n,registerSize:ce,display:t<=K}))},me={order:de?K:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){R(t),T(F)},display:de};if(m)m&&(pe=z.createElement(m$.Provider,{value:hh(hh({},he),me)},m(ae)));else{var be=g||E$;pe=z.createElement(p$,jp({},he,me),"function"==typeof be?be(ae):be)}var ve=z.createElement(y,jp({className:Dm(!ne&&r,p),style:f,ref:t},S),oe.map(ge),re?pe:null,b&&z.createElement(p$,jp({},he,{responsive:ee,responsiveDisabled:!te,order:K,className:"".concat(J,"-suffix"),registerSize:function(e,t){B(t)},display:!0,style:fe}),b));return ee&&(ve=z.createElement(Ab,{onResize:function(e,t){D(t.clientWidth)},disabled:!te},ve)),ve}var D$=z.forwardRef(O$);D$.displayName="Overflow",D$.Item=x$,D$.RESPONSIVE=k$,D$.INVALIDATE=C$;var $$=function(e,t){var n,r=e.prefixCls,o=e.id,a=e.inputElement,i=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,f=e.value,p=e.maxLength,h=e.onKeyDown,g=e.onMouseDown,m=e.onChange,b=e.onPaste,v=e.onCompositionStart,y=e.onCompositionEnd,w=e.open,x=e.attrs,S=a||z.createElement("input",null),k=S,C=k.ref,E=k.props,O=E.onKeyDown,D=E.onChange,$=E.onMouseDown,j=E.onCompositionStart,P=E.onCompositionEnd,_=E.style;return S.props,S=z.cloneElement(S,hh(hh(hh({type:"search"},E),{},{id:o,ref:Qm(t,C),disabled:i,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:Dm("".concat(r,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?d:void 0},x),{},{value:u?f:"",maxLength:p,readOnly:!u,unselectable:u?null:"on",style:hh(hh({},_),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),O&&O(e)},onMouseDown:function(e){g(e),$&&$(e)},onChange:function(e){m(e),D&&D(e)},onCompositionStart:function(e){v(e),j&&j(e)},onCompositionEnd:function(e){y(e),P&&P(e)},onPaste:b}))},j$=z.forwardRef($$);function P$(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}j$.displayName="Input";var _$="undefined"!=typeof window&&window.document&&window.document.documentElement;function N$(e){return["string","number"].includes(fd(e))}function I$(e){var t=void 0;return e&&(N$(e.title)?t=e.title.toString():N$(e.label)&&(t=e.label.toString())),t}function T$(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var A$=function(e){e.preventDefault(),e.stopPropagation()},F$=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,i=e.open,s=e.searchValue,l=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,p=e.showSearch,h=e.autoFocus,g=e.autoComplete,m=e.activeDescendantId,b=e.tabIndex,v=e.removeIcon,y=e.maxTagCount,w=e.maxTagTextLength,x=e.maxTagPlaceholder,S=void 0===x?function(e){return"+ ".concat(e.length," ...")}:x,k=e.tagRender,C=e.onToggleOpen,E=e.onRemove,O=e.onInputChange,D=e.onInputPaste,$=e.onInputKeyDown,j=e.onInputMouseDown,P=e.onInputCompositionStart,_=e.onInputCompositionEnd,N=z.useRef(null),I=qh(z.useState(0),2),T=I[0],A=I[1],F=qh(z.useState(!1),2),R=F[0],M=F[1],L="".concat(o,"-selection"),B=i||"multiple"===f&&!1===l||"tags"===f?s:"",H="tags"===f||"multiple"===f&&!1===l||p&&(i||R);function W(e,t,n,r,o){return z.createElement("span",{className:Dm("".concat(L,"-item"),hd({},"".concat(L,"-item-disabled"),n)),title:I$(e)},z.createElement("span",{className:"".concat(L,"-item-content")},t),r&&z.createElement(s$,{className:"".concat(L,"-item-remove"),onMouseDown:A$,onClick:o,customizeIcon:v},"×"))}t=function(){A(N.current.scrollWidth)},n=[B],_$?z.useLayoutEffect(t,n):z.useEffect(t,n);var U=z.createElement("div",{className:"".concat(L,"-search"),style:{width:T},onFocus:function(){M(!0)},onBlur:function(){M(!1)}},z.createElement(j$,{ref:c,open:i,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:H,activeDescendantId:m,value:B,onKeyDown:$,onMouseDown:j,onChange:O,onPaste:D,onCompositionStart:P,onCompositionEnd:_,tabIndex:b,attrs:Ax(e,!0)}),z.createElement("span",{ref:N,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},B," ")),V=z.createElement(D$,{prefixCls:"".concat(L,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,a=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var s=String(a);s.length>w&&(a="".concat(s.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),E(e)};return"function"==typeof k?function(e,t,n,r,o){return z.createElement("span",{onMouseDown:function(e){A$(e),C(!i)}},k({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,a,t,o,l):W(e,a,t,o,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return W({title:t},t,!1)},suffix:U,itemKey:T$,maxCount:y});return z.createElement(z.Fragment,null,V,!a.length&&!B&&z.createElement("span",{className:"".concat(L,"-placeholder")},u))},R$=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,f=e.placeholder,p=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,v=e.onInputKeyDown,y=e.onInputMouseDown,w=e.onInputChange,x=e.onInputPaste,S=e.onInputCompositionStart,k=e.onInputCompositionEnd,C=e.title,E=qh(z.useState(!1),2),O=E[0],D=E[1],$="combobox"===c,j=$||h,P=d[0],_=g||"";$&&m&&!O&&(_=m),z.useEffect((function(){$&&D(!1)}),[$,m]);var N=!("combobox"!==c&&!u&&!h)&&!!_,I=void 0===C?I$(P):C;return z.createElement(z.Fragment,null,z.createElement("span",{className:"".concat(n,"-selection-search")},z.createElement(j$,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:a,autoFocus:i,autoComplete:s,editable:j,activeDescendantId:l,value:_,onKeyDown:v,onMouseDown:y,onChange:function(e){D(!0),w(e)},onPaste:x,onCompositionStart:S,onCompositionEnd:k,tabIndex:p,attrs:Ax(e,!0),maxLength:$?b:void 0})),!$&&P?z.createElement("span",{className:"".concat(n,"-selection-item"),title:I,style:N?{visibility:"hidden"}:void 0},P.label):null,function(){if(P)return null;var e=N?{visibility:"hidden"}:void 0;return z.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},f)}())};var M$=function(e,t){var n=z.useRef(null),r=z.useRef(!1),o=e.prefixCls,a=e.open,i=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.autoClearSearchValue,u=e.onSearch,d=e.onSearchSubmit,f=e.onToggleOpen,p=e.onInputKeyDown,h=e.domRef;z.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=qh(c$(0),2),m=g[0],b=g[1],v=z.useRef(null),y=function(e){!1!==u(e,!0,r.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==Gx.UP&&n!==Gx.DOWN||e.preventDefault(),p&&p(e),n!==Gx.ENTER||"tags"!==i||r.current||a||null==d||d(e.target.value),t=n,[Gx.ESC,Gx.SHIFT,Gx.BACKSPACE,Gx.TAB,Gx.WIN_KEY,Gx.ALT,Gx.META,Gx.WIN_KEY_RIGHT,Gx.CTRL,Gx.SEMICOLON,Gx.EQUALS,Gx.CAPS_LOCK,Gx.CONTEXT_MENU,Gx.F1,Gx.F2,Gx.F3,Gx.F4,Gx.F5,Gx.F6,Gx.F7,Gx.F8,Gx.F9,Gx.F10,Gx.F11,Gx.F12].includes(t)||f(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(l&&v.current&&/[\r\n]/.test(v.current)){var n=v.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,v.current)}v.current=null,y(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");v.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==i&&y(e.target.value)}},x="multiple"===i||"tags"===i?z.createElement(F$,jp({},e,w)):z.createElement(R$,jp({},e,w));return z.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=m();e.target===n.current||t||"combobox"===i||e.preventDefault(),("combobox"===i||s&&t)&&a||(a&&!1!==c&&u("",!0,!1),f())}},x)},L$=z.forwardRef(M$);function B$(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,s=a.content,l=o.x,c=void 0===l?0:l,u=o.y,d=void 0===u?0:u,f=z.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],m=h[0],b=h[1],v=g[0],y=g[1];m!==v&&["t","b"].includes(m)?"t"===m?p.top=0:p.bottom=0:p.top=d,b!==y&&["l","r"].includes(b)?"l"===b?p.left=0:p.right=0:p.left=c}return z.createElement("div",{ref:f,className:Dm("".concat(t,"-arrow"),i),style:p},s)}function z$(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?z.createElement(_w,jp({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return z.createElement("div",{style:{zIndex:r},className:Dm("".concat(t,"-mask"),n)})})):null}L$.displayName="Selector";var H$=z.memo((function(e){return e.children}),(function(e,t){return t.cache})),W$=z.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,v=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,x=e.portal,S=e.zIndex,k=e.onMouseEnter,C=e.onMouseLeave,E=e.onPointerEnter,O=e.ready,D=e.offsetX,$=e.offsetY,j=e.offsetR,P=e.offsetB,_=e.onAlign,N=e.onPrepare,I=e.stretch,T=e.targetWidth,A=e.targetHeight,F="function"==typeof n?n():n,R=l||c,M=(null==y?void 0:y.length)>0,L=qh(z.useState(!y||!M),2),B=L[0],H=L[1];if(lg((function(){!B&&M&&i&&H(!0)}),[B,M,i]),!B)return null;var W="auto",U={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(O||!l){var V,G=g.points,q=g.dynamicInset||(null===(V=g._experimental)||void 0===V?void 0:V.dynamicInset),K=q&&"r"===G[0][1],X=q&&"b"===G[0][0];K?(U.right=j,U.left=W):(U.left=D,U.right=W),X?(U.bottom=P,U.top=W):(U.top=$,U.bottom=W)}var Y={};return I&&(I.includes("height")&&A?Y.height=A:I.includes("minHeight")&&A&&(Y.minHeight=A),I.includes("width")&&T?Y.width=T:I.includes("minWidth")&&T&&(Y.minWidth=T)),l||(Y.pointerEvents="none"),z.createElement(x,{open:v||R,getContainer:y&&function(){return y(i)},autoDestroy:w},z.createElement(z$,{prefixCls:o,open:l,zIndex:S,mask:f,motion:b}),z.createElement(Ab,{onResize:_,disabled:!l},(function(e){return z.createElement(_w,jp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(e){var t;null==m||null===(t=m.onVisibleChanged)||void 0===t||t.call(m,e),s(e)}}),(function(n,i){var s=n.className,c=n.style,f=Dm(o,s,r);return z.createElement("div",{ref:Qm(e,t,i),className:f,style:hh(hh(hh(hh({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),Y),c),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:C,onPointerEnter:E,onClick:d},p&&z.createElement(B$,{prefixCls:o,arrow:p,arrowPos:h,align:g}),z.createElement(H$,{cache:!l&&!u},F))}))})))})),U$=z.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Zm(n),a=Jm(z.useCallback((function(e){Ym(t,r?r(e):e)}),[r]),n.ref);return o?z.cloneElement(n,{ref:a}):n})),V$=z.createContext(null);function G$(e){return e?Array.isArray(e)?e:[e]:[]}function q$(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function K$(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function X$(e){return e.ownerDocument.defaultView}function Y$(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=X$(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function Q$(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function J$(e){return Q$(parseFloat(e),0)}function Z$(e,t){var n=hh({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=X$(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=J$(a),g=J$(i),m=J$(s),b=J$(l),v=Q$(Math.round(c.width/f*1e3)/1e3),y=Q$(Math.round(c.height/u*1e3)/1e3),w=(f-p-m-b)*v,x=(u-d-h-g)*y,S=h*y,k=g*y,C=m*v,E=b*v,O=0,D=0;if("clip"===r){var $=J$(o);O=$*v,D=$*y}var j=c.x+C-O,P=c.y+S-D,_=j+c.width+2*O-C-E-w,N=P+c.height+2*D-S-k-x;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,_),n.bottom=Math.min(n.bottom,N)}})),n}function ej(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function tj(e,t){var n=qh(t||[],2),r=n[0],o=n[1];return[ej(e.width,r),ej(e.height,o)]}function nj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function rj(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function oj(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var aj=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const ij=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:EC,t=z.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,a=t.children,i=t.action,s=void 0===i?"hover":i,l=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,m=void 0===g?.1:g,b=t.focusDelay,v=t.blurDelay,y=t.mask,w=t.maskClosable,x=void 0===w||w,S=t.getPopupContainer,k=t.forceRender,C=t.autoDestroy,E=t.destroyPopupOnHide,O=t.popup,D=t.popupClassName,$=t.popupStyle,j=t.popupPlacement,P=t.builtinPlacements,_=void 0===P?{}:P,N=t.popupAlign,I=t.zIndex,T=t.stretch,A=t.getPopupClassNameFromAlign,F=t.fresh,R=t.alignPoint,M=t.onPopupClick,L=t.onPopupAlign,B=t.arrow,H=t.popupMotion,W=t.maskMotion,U=t.popupTransitionName,V=t.popupAnimation,G=t.maskTransitionName,q=t.maskAnimation,K=t.className,X=t.getTriggerDOMNode,Y=gd(t,aj),Q=C||E||!1,J=qh(z.useState(!1),2),Z=J[0],ee=J[1];lg((function(){ee(i$())}),[]);var te=z.useRef({}),ne=z.useContext(V$),re=z.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=jC(),ae=qh(z.useState(null),2),ie=ae[0],se=ae[1],le=$y((function(e){Km(e)&&ie!==e&&se(e),null==ne||ne.registerSubPopup(oe,e)})),ce=qh(z.useState(null),2),ue=ce[0],de=ce[1],fe=z.useRef(null),pe=$y((function(e){Km(e)&&ue!==e&&(de(e),fe.current=e)})),he=z.Children.only(a),ge=(null==he?void 0:he.props)||{},me={},be=$y((function(e){var t,n,r=ue;return(null==r?void 0:r.contains(e))||(null===(t=rx(r))||void 0===t?void 0:t.host)===e||e===r||(null==ie?void 0:ie.contains(e))||(null===(n=rx(ie))||void 0===n?void 0:n.host)===e||e===ie||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ve=K$(o,H,V,U),ye=K$(o,W,q,G),we=qh(z.useState(d||!1),2),xe=we[0],Se=we[1],ke=null!=u?u:xe,Ce=$y((function(e){void 0===u&&Se(e)}));lg((function(){Se(u||!1)}),[u]);var Ee=z.useRef(ke);Ee.current=ke;var Oe=z.useRef([]);Oe.current=[];var De=$y((function(e){var t;Ce(e),(null!==(t=Oe.current[Oe.current.length-1])&&void 0!==t?t:ke)!==e&&(Oe.current.push(e),null==f||f(e))})),$e=z.useRef(),je=function(){clearTimeout($e.current)},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;je(),0===t?De(e):$e.current=setTimeout((function(){De(e)}),1e3*t)};z.useEffect((function(){return je}),[]);var _e=qh(z.useState(!1),2),Ne=_e[0],Ie=_e[1];lg((function(e){e&&!ke||Ie(!0)}),[ke]);var Te=qh(z.useState(null),2),Ae=Te[0],Fe=Te[1],Re=qh(z.useState([0,0]),2),Me=Re[0],Le=Re[1],Be=function(e){Le([e.clientX,e.clientY])},ze=function(e,t,n,r,o,a,i){var s=qh(z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),l=s[0],c=s[1],u=z.useRef(0),d=z.useMemo((function(){return t?Y$(t):[]}),[t]),f=z.useRef({});e||(f.current={});var p=$y((function(){if(t&&n&&e){let e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=D.x+e,o=D.y+t,a=r+F,i=o+A,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(a,n.right),u=Math.min(i,n.bottom);return Math.max(0,(c-s)*(u-l))},st=function(){ie=D.y+ve,se=ie+A,le=D.x+be,ce=le+F};var s,l,u,p=t,h=p.ownerDocument,g=X$(p).getComputedStyle(p),m=g.width,b=g.height,v=g.position,y=p.style.left,w=p.style.top,x=p.style.right,S=p.style.bottom,k=p.style.overflow,C=hh(hh({},o[r]),a),E=h.createElement("div");if(null===(s=p.parentElement)||void 0===s||s.appendChild(E),E.style.left="".concat(p.offsetLeft,"px"),E.style.top="".concat(p.offsetTop,"px"),E.style.position=v,E.style.height="".concat(p.offsetHeight,"px"),E.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))u={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();u={x:O.x,y:O.y,width:O.width,height:O.height}}var D=p.getBoundingClientRect(),$=h.documentElement,j=$.clientWidth,P=$.clientHeight,_=$.scrollWidth,N=$.scrollHeight,I=$.scrollTop,T=$.scrollLeft,A=D.height,F=D.width,R=u.height,M=u.width,L={left:0,top:0,right:j,bottom:P},B={left:-T,top:-I,right:_-T,bottom:N-I},z=C.htmlRegion,H="visible",W="visibleFirst";"scroll"!==z&&z!==W&&(z=H);var U=z===W,V=Z$(B,d),G=Z$(L,d),q=z===H?G:V,K=U?G:q;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var X=p.getBoundingClientRect();p.style.left=y,p.style.top=w,p.style.right=x,p.style.bottom=S,p.style.overflow=k,null===(l=p.parentElement)||void 0===l||l.removeChild(E);var Y=Q$(Math.round(F/parseFloat(m)*1e3)/1e3),Q=Q$(Math.round(A/parseFloat(b)*1e3)/1e3);if(0===Y||0===Q||Km(n)&&!XS(n))return;var J=C.offset,Z=C.targetOffset,ee=qh(tj(D,J),2),te=ee[0],ne=ee[1],re=qh(tj(u,Z),2),oe=re[0],ae=re[1];u.x-=oe,u.y-=ae;var ie,se,le,ce,ue=qh(C.points||[],2),de=ue[0],fe=nj(ue[1]),pe=nj(de),he=rj(u,fe),ge=rj(D,pe),me=hh({},C),be=he.x-ge.x+te,ve=he.y-ge.y+ne,ye=e(be,ve),we=e(be,ve,G),xe=rj(u,["t","l"]),Se=rj(D,["t","l"]),ke=rj(u,["b","r"]),Ce=rj(D,["b","r"]),Ee=C.overflow||{},Oe=Ee.adjustX,De=Ee.adjustY,$e=Ee.shiftX,je=Ee.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};st();var _e=Pe(De),Ne=pe[0]===fe[0];if(_e&&"t"===pe[0]&&(se>K.bottom||f.current.bt)){var Ie=ve;Ne?Ie-=A-R:Ie=xe.y-Ce.y-ne;var Te=e(be,Ie),Ae=e(be,Ie,G);Te>ye||Te===ye&&(!U||Ae>=we)?(f.current.bt=!0,ve=Ie,ne=-ne,me.points=[oj(pe,0),oj(fe,0)]):f.current.bt=!1}if(_e&&"b"===pe[0]&&(ie<K.top||f.current.tb)){var Fe=ve;Ne?Fe+=A-R:Fe=ke.y-Se.y-ne;var Re=e(be,Fe),Me=e(be,Fe,G);Re>ye||Re===ye&&(!U||Me>=we)?(f.current.tb=!0,ve=Fe,ne=-ne,me.points=[oj(pe,0),oj(fe,0)]):f.current.tb=!1}var Le=Pe(Oe),Be=pe[1]===fe[1];if(Le&&"l"===pe[1]&&(ce>K.right||f.current.rl)){var ze=be;Be?ze-=F-M:ze=xe.x-Ce.x-te;var He=e(ze,ve),We=e(ze,ve,G);He>ye||He===ye&&(!U||We>=we)?(f.current.rl=!0,be=ze,te=-te,me.points=[oj(pe,1),oj(fe,1)]):f.current.rl=!1}if(Le&&"r"===pe[1]&&(le<K.left||f.current.lr)){var Ue=be;Be?Ue+=F-M:Ue=ke.x-Se.x-te;var Ve=e(Ue,ve),Ge=e(Ue,ve,G);Ve>ye||Ve===ye&&(!U||Ge>=we)?(f.current.lr=!0,be=Ue,te=-te,me.points=[oj(pe,1),oj(fe,1)]):f.current.lr=!1}st();var qe=!0===$e?0:$e;"number"==typeof qe&&(le<G.left&&(be-=le-G.left-te,u.x+M<G.left+qe&&(be+=u.x-G.left+M-qe)),ce>G.right&&(be-=ce-G.right-te,u.x>G.right-qe&&(be+=u.x-G.right+qe)));var Ke=!0===je?0:je;"number"==typeof Ke&&(ie<G.top&&(ve-=ie-G.top-ne,u.y+R<G.top+Ke&&(ve+=u.y-G.top+R-Ke)),se>G.bottom&&(ve-=se-G.bottom-ne,u.y>G.bottom-Ke&&(ve+=u.y-G.bottom+Ke)));var Xe=D.x+be,Ye=Xe+F,Qe=D.y+ve,Je=Qe+A,Ze=u.x,et=Ze+M,tt=u.y,nt=tt+R,rt=(Math.max(Xe,Ze)+Math.min(Ye,et))/2-Xe,ot=(Math.max(Qe,tt)+Math.min(Je,nt))/2-Qe;null==i||i(t,me);var at=X.right-D.x-(be+D.width),it=X.bottom-D.y-(ve+D.height);c({ready:!0,offsetX:be/Y,offsetY:ve/Q,offsetR:at/Y,offsetB:it/Q,arrowX:rt/Y,arrowY:ot/Q,scaleX:Y,scaleY:Q,align:me})}})),h=function(){c((function(e){return hh(hh({},e),{},{ready:!1})}))};return lg(h,[r]),lg((function(){e||h()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(ke,ie,R?Me:ue,j,_,N,L),He=qh(ze,11),We=He[0],Ue=He[1],Ve=He[2],Ge=He[3],qe=He[4],Ke=He[5],Xe=He[6],Ye=He[7],Qe=He[8],Je=He[9],Ze=He[10],et=function(e,t,n,r){return z.useMemo((function(){var o=G$(null!=n?n:t),a=G$(null!=r?r:t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]}),[e,t,n,r])}(Z,s,l,c),tt=qh(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),at=rt.has("click")||rt.has("contextMenu"),it=$y((function(){Ne||Ze()}));!function(e,t,n,r,o){lg((function(){if(e&&t&&n){let e=function(){r(),o()};var a=n,i=Y$(t),s=Y$(a),l=X$(a),c=new Set([l].concat(fh(i),fh(s)));return c.forEach((function(t){t.addEventListener("scroll",e,{passive:!0})})),l.addEventListener("resize",e,{passive:!0}),r(),function(){c.forEach((function(t){t.removeEventListener("scroll",e),l.removeEventListener("resize",e)}))}}}),[e,t,n])}(ke,ue,ie,it,(function(){Ee.current&&R&&at&&Pe(!1)})),lg((function(){it()}),[Me,j]),lg((function(){!ke||null!=_&&_[j]||it()}),[JSON.stringify(N)]);var st=z.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(q$(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(_,o,Je,R);return Dm(e,null==A?void 0:A(Je))}),[Je,A,_,o,R]);z.useImperativeHandle(n,(function(){return{nativeElement:fe.current,forceAlign:it}}));var lt=qh(z.useState(0),2),ct=lt[0],ut=lt[1],dt=qh(z.useState(0),2),ft=dt[0],pt=dt[1],ht=function(){if(T&&ue){var e=ue.getBoundingClientRect();ut(e.width),pt(e.height)}};function gt(e,t,n,r){me[e]=function(o){var a;null==r||r(o),Pe(t,n);for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];null===(a=ge[e])||void 0===a||a.call.apply(a,[ge,o].concat(s))}}lg((function(){Ae&&(Ze(),Ae(),Fe(null))}),[Ae]),(ot||at)&&(me.onClick=function(e){var t;Ee.current&&at?Pe(!1):!Ee.current&&ot&&(Be(e),Pe(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onClick)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),function(e,t,n,r,o,a,i,s){var l=z.useRef(e),c=z.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),z.useEffect((function(){var e=Hb((function(){c.current=!1}));return function(){Hb.cancel(e)}}),[e]),z.useEffect((function(){if(t&&r&&(!o||a)){var e=function(){var e=!1;return[function(t){var n=t.target;e=i(n)},function(t){var n=t.target;c.current||!l.current||e||i(n)||s(!1)}]},u=qh(e(),2),d=u[0],f=u[1],p=qh(e(),2),h=p[0],g=p[1],m=X$(r);m.addEventListener("mousedown",d,!0),m.addEventListener("click",f,!0),m.addEventListener("contextmenu",f,!0);var b=rx(n);return b&&(b.addEventListener("mousedown",h,!0),b.addEventListener("click",g,!0),b.addEventListener("contextmenu",g,!0)),function(){m.removeEventListener("mousedown",d,!0),m.removeEventListener("click",f,!0),m.removeEventListener("contextmenu",f,!0),b&&(b.removeEventListener("mousedown",h,!0),b.removeEventListener("click",g,!0),b.removeEventListener("contextmenu",g,!0))}}}),[t,n,r,o,a])}(ke,at,ue,ie,y,x,be,Pe);var mt,bt,vt=nt.has("hover"),yt=rt.has("hover");vt&&(gt("onMouseEnter",!0,h,(function(e){Be(e)})),gt("onPointerEnter",!0,h,(function(e){Be(e)})),mt=function(){(ke||Ne)&&Pe(!0,h)},R&&(me.onMouseMove=function(e){var t;null===(t=ge.onMouseMove)||void 0===t||t.call(ge,e)})),yt&&(gt("onMouseLeave",!1,m),gt("onPointerLeave",!1,m),bt=function(){Pe(!1,m)}),nt.has("focus")&&gt("onFocus",!0,b),rt.has("focus")&&gt("onBlur",!1,v),nt.has("contextMenu")&&(me.onContextMenu=function(e){var t;Ee.current&&rt.has("contextMenu")?Pe(!1):(Be(e),Pe(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=ge.onContextMenu)||void 0===t||t.call.apply(t,[ge,e].concat(r))}),K&&(me.className=Dm(ge.className,K));var wt=hh(hh({},ge),me),xt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(xt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=wt[e])||void 0===t||t.call.apply(t,[wt].concat(r)),Y[e].apply(Y,r)})}));var St=z.cloneElement(he,hh(hh({},wt),xt)),kt={x:Ke,y:Xe},Ct=B?hh({},!0!==B?B:{}):null;return z.createElement(z.Fragment,null,z.createElement(Ab,{disabled:!ke,ref:pe,onResize:function(){ht(),it()}},z.createElement(U$,{getTriggerDOMNode:X},St)),z.createElement(V$.Provider,{value:re},z.createElement(W$,{portal:e,ref:le,prefixCls:o,popup:O,className:Dm(D,st),style:$,target:ue,onMouseEnter:mt,onMouseLeave:bt,onPointerEnter:mt,zIndex:I,open:ke,keepDom:Ne,fresh:F,onClick:M,mask:y,motion:ve,maskMotion:ye,onVisibleChanged:function(e){Ie(!1),Ze(),null==p||p(e)},onPrepare:function(){return new Promise((function(e){ht(),Fe((function(){return e}))}))},forceRender:k,autoDestroy:Q,getPopupContainer:S,align:Je,arrow:Ct,arrowPos:kt,ready:We,offsetX:Ue,offsetY:Ve,offsetR:Ge,offsetB:qe,onAlign:it,stretch:T,targetWidth:ct/Ye,targetHeight:ft/Qe})))}));return t}(EC);var sj=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],lj=function(e,t){var n=e.prefixCls;e.disabled;var r=e.visible,o=e.children,a=e.popupElement,i=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,f=e.placement,p=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,v=e.empty,y=e.getTriggerDOMNode,w=e.onPopupVisibleChange,x=e.onPopupMouseEnter,S=gd(e,sj),k="".concat(n,"-dropdown"),C=a;g&&(C=g(a));var E=z.useMemo((function(){return p||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(h)}),[p,h]),O=i?"".concat(k,"-").concat(i):s,D="number"==typeof h,$=z.useMemo((function(){return D?null:!1===h?"minWidth":"width"}),[h,D]),j=l;D&&(j=hh(hh({},j),{},{width:h}));var P=z.useRef(null);return z.useImperativeHandle(t,(function(){return{getPopupElement:function(){return P.current}}})),z.createElement(ij,jp({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:k,popupTransitionName:O,popup:z.createElement("div",{ref:P,onMouseEnter:x},C),stretch:$,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:Dm(c,hd({},"".concat(k,"-empty"),v)),popupStyle:j,getTriggerDOMNode:y,onPopupVisibleChange:w}),o)},cj=z.forwardRef(lj);function uj(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 dj(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 fj(e){var t=hh({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return xh(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}cj.displayName="SelectTrigger";var pj=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],hj=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function gj(e){return"tags"===e||"multiple"===e}var mj=z.forwardRef((function(e,t){var n,r,o=e.id,a=e.prefixCls,i=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,g=void 0===h?"Not Found":h,m=e.onClear,b=e.mode,v=e.disabled,y=e.loading,w=e.getInputElement,x=e.getRawInputElement,S=e.open,k=e.defaultOpen,C=e.onDropdownVisibleChange,E=e.activeValue,O=e.onActiveValueChange,D=e.activeDescendantId,$=e.searchValue,j=e.autoClearSearchValue,P=e.onSearch,_=e.onSearchSplit,N=e.tokenSeparators,I=e.allowClear,T=e.suffixIcon,A=e.clearIcon,F=e.OptionList,R=e.animation,M=e.transitionName,L=e.dropdownStyle,B=e.dropdownClassName,W=e.dropdownMatchSelectWidth,U=e.dropdownRender,V=e.dropdownAlign,G=e.placement,q=e.builtinPlacements,K=e.getPopupContainer,X=e.showAction,Y=void 0===X?[]:X,Q=e.onFocus,J=e.onBlur,Z=e.onKeyUp,ee=e.onKeyDown,te=e.onMouseDown,ne=gd(e,pj),re=gj(b),oe=(void 0!==s?s:re)||"combobox"===b,ae=hh({},ne);hj.forEach((function(e){delete ae[e]})),null==u||u.forEach((function(e){delete ae[e]}));var ie=qh(z.useState(!1),2),se=ie[0],le=ie[1];z.useEffect((function(){le(i$())}),[]);var ce=z.useRef(null),ue=z.useRef(null),de=z.useRef(null),fe=z.useRef(null),pe=z.useRef(null),he=z.useRef(!1),ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=qh(z.useState(!1),2),n=t[0],r=t[1],o=z.useRef(null),a=function(){window.clearTimeout(o.current)};return z.useEffect((function(){return a}),[]),[n,function(t,n){a(),o.current=window.setTimeout((function(){r(t),n&&n()}),e)},a]}(),me=qh(ge,3),be=me[0],ve=me[1],ye=me[2];z.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=fe.current)||void 0===e?void 0:e.focus,blur:null===(t=fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var we=z.useMemo((function(){var e;if("combobox"!==b)return $;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[$,b,d]),xe="combobox"===b&&"function"==typeof w&&w()||null,Se="function"==typeof x&&x(),ke=Jm(ue,null==Se||null===(n=Se.props)||void 0===n?void 0:n.ref),Ce=qh(z.useState(!1),2),Ee=Ce[0],Oe=Ce[1];lg((function(){Oe(!0)}),[]);var De=qh(_y(!1,{defaultValue:k,value:S}),2),$e=De[0],je=De[1],Pe=!!Ee&&$e,_e=!g&&p;(v||_e&&Pe&&"combobox"===b)&&(Pe=!1);var Ne=!_e&&Pe,Ie=z.useCallback((function(e){var t=void 0!==e?e:!Pe;v||(je(t),Pe!==t&&(null==C||C(t)))}),[v,Pe,je,C]),Te=z.useMemo((function(){return(N||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[N]),Ae=function(e,t,n){var r=!0,o=e;null==O||O(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=Ub(r),a=o[0],i=o.slice(1);if(!a)return[t];var s=t.split(a);return n=n||s.length>1,s.reduce((function(t,n){return[].concat(fh(t),fh(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,N);return"combobox"!==b&&a&&(o="",null==_||_(a),Ie(!1),r=!1),P&&we!==o&&P(o,{source:t?"typing":"effect"}),r};z.useEffect((function(){Pe||re||"combobox"===b||Ae("",!1,!1)}),[Pe]),z.useEffect((function(){$e&&v&&je(!1),v&&!he.current&&ve(!1)}),[v]);var Fe=qh(c$(),2),Re=Fe[0],Me=Fe[1],Le=z.useRef(!1),Be=[];z.useEffect((function(){return function(){Be.forEach((function(e){return clearTimeout(e)})),Be.splice(0,Be.length)}}),[]);var ze,He=qh(z.useState({}),2)[1];Se&&(ze=function(e){Ie(e)}),function(e,t,n,r){var o=z.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},z.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ce.current,null===(e=de.current)||void 0===e?void 0:e.getPopupElement()]}),Ne,Ie,!!Se);var We,Ue=z.useMemo((function(){return hh(hh({},e),{},{notFoundContent:g,open:Pe,triggerOpen:Ne,id:o,showSearch:oe,multiple:re,toggleOpen:Ie})}),[e,g,Ne,Pe,o,oe,re,Ie]),Ve=!!T||y;Ve&&(We=z.createElement(s$,{className:Dm("".concat(a,"-arrow"),hd({},"".concat(a,"-arrow-loading"),y)),customizeIcon:T,customizeIconProps:{loading:y,searchValue:we,open:Pe,focused:be,showSearch:oe}}));var Ge,qe=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=H.useMemo((function(){return"object"===fd(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:H.useMemo((function(){return!(a||!r||!n.length&&!i||"combobox"===s&&""===i)}),[r,a,n.length,i,s]),clearIcon:H.createElement(s$,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(a,(function(){var e;null==m||m(),null===(e=fe.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Ae("",!1,!1)}),d,I,A,v,we,b),Ke=qe.allowClear,Xe=qe.clearIcon,Ye=z.createElement(F,{ref:pe}),Qe=Dm(a,i,(hd(r={},"".concat(a,"-focused"),be),hd(r,"".concat(a,"-multiple"),re),hd(r,"".concat(a,"-single"),!re),hd(r,"".concat(a,"-allow-clear"),I),hd(r,"".concat(a,"-show-arrow"),Ve),hd(r,"".concat(a,"-disabled"),v),hd(r,"".concat(a,"-loading"),y),hd(r,"".concat(a,"-open"),Pe),hd(r,"".concat(a,"-customize-input"),xe),hd(r,"".concat(a,"-show-search"),oe),r)),Je=z.createElement(cj,{ref:de,disabled:v,prefixCls:a,visible:Ne,popupElement:Ye,animation:R,transitionName:M,dropdownStyle:L,dropdownClassName:B,direction:c,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:V,placement:G,builtinPlacements:q,getPopupContainer:K,empty:p,getTriggerDOMNode:function(){return ue.current},onPopupVisibleChange:ze,onPopupMouseEnter:function(){He({})}},Se?z.cloneElement(Se,{ref:ke}):z.createElement(L$,jp({},e,{domRef:ue,prefixCls:a,inputElement:xe,ref:fe,id:o,showSearch:oe,autoClearSearchValue:j,mode:b,activeDescendantId:D,tagRender:l,values:d,open:Pe,onToggleOpen:Ie,activeValue:E,searchValue:we,onSearch:Ae,onSearchSubmit:function(e){e&&e.trim()&&P(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:Te})));return Ge=Se?Je:z.createElement("div",jp({className:Qe},ae,{ref:ce,onMouseDown:function(e){var t,n=e.target,r=null===(t=de.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=Be.indexOf(o);-1!==t&&Be.splice(t,1),ye(),se||r.contains(document.activeElement)||null===(e=fe.current)||void 0===e||e.focus()}));Be.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];null==te||te.apply(void 0,[e].concat(i))},onKeyDown:function(e){var t,n=Re(),r=e.which;if(r===Gx.ENTER&&("combobox"!==b&&e.preventDefault(),Pe||Ie(!0)),Me(!!we),r===Gx.BACKSPACE&&!n&&re&&!we&&d.length){for(var o=fh(d),a=null,i=o.length-1;i>=0;i-=1){var s=o[i];if(!s.disabled){o.splice(i,1),a=s;break}}a&&f(o,{type:"remove",values:[a]})}for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];Pe&&pe.current&&(t=pe.current).onKeyDown.apply(t,[e].concat(c)),null==ee||ee.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Pe&&pe.current&&(o=pe.current).onKeyUp.apply(o,[e].concat(n)),null==Z||Z.apply(void 0,[e].concat(n))},onFocus:function(){ve(!0),v||(Q&&!Le.current&&Q.apply(void 0,arguments),Y.includes("focus")&&Ie(!0)),Le.current=!0},onBlur:function(){he.current=!0,ve(!1,(function(){Le.current=!1,he.current=!1,Ie(!1)})),v||(we&&("tags"===b?P(we,{source:"submit"}):"multiple"===b&&P("",{source:"blur"})),J&&J.apply(void 0,arguments))}}),be&&!Pe&&z.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(d.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(fd(t))?t:n})).join(", "))),Je,We,Ke&&Xe),z.createElement(l$.Provider,{value:Ue},Ge)})),bj=function(){return null};bj.isSelectOptGroup=!0;var vj=function(){return null};vj.isSelectOption=!0;var yj=z.forwardRef((function(e,t){var n,r=e.height,o=e.offsetY,a=e.offsetX,i=e.children,s=e.prefixCls,l=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};void 0!==o&&(f={height:r,position:"relative",overflow:"hidden"},p=hh(hh({},p),{},(hd(n={transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-a),hd(n,"position","absolute"),hd(n,"left",0),hd(n,"right",0),hd(n,"top",0),n)));return z.createElement("div",{style:f},z.createElement(Ab,{onResize:function(e){e.offsetHeight&&l&&l()}},z.createElement("div",jp({style:p,className:Dm(hd({},"".concat(s,"-holder-inner"),s)),ref:t},c),i,d)))}));function wj(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}yj.displayName="Filler";var xj=z.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.rtl,a=e.scrollOffset,i=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,g=qh(z.useState(!1),2),m=g[0],b=g[1],v=qh(z.useState(null),2),y=v[0],w=v[1],x=qh(z.useState(null),2),S=x[0],k=x[1],C=!o,E=z.useRef(),O=z.useRef(),D=qh(z.useState(!1),2),$=D[0],j=D[1],P=z.useRef(),_=function(){clearTimeout(P.current),j(!0),P.current=setTimeout((function(){j(!1)}),3e3)},N=i-f||0,I=f-d||0,T=N>0,A=z.useMemo((function(){return 0===a||0===N?0:a/N*I}),[a,N,I]),F=z.useRef({top:A,dragging:m,pageY:y,startTop:S});F.current={top:A,dragging:m,pageY:y,startTop:S};var R=function(e){b(!0),w(wj(e,u)),k(F.current.top),s(),e.stopPropagation(),e.preventDefault()};z.useEffect((function(){var e=function(e){e.preventDefault()},t=E.current,n=O.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",R),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",R)}}),[]);var M=z.useRef();M.current=N;var L=z.useRef();L.current=I,z.useEffect((function(){if(m){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,a=n.startTop;if(Hb.cancel(e),r){var i=wj(t,u)-o,s=a;!C&&u?s-=i:s+=i;var l=M.current,d=L.current,f=d?s/d:0,p=Math.ceil(f*l);p=Math.max(p,0),p=Math.min(p,l),e=Hb((function(){c(p,u)}))}},n=function(){b(!1),l()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Hb.cancel(e)}}}),[m]),z.useEffect((function(){_()}),[a]),z.useImperativeHandle(t,(function(){return{delayHidden:_}}));var B="".concat(r,"-scrollbar"),H={position:"absolute",visibility:$&&T?null:"hidden"},W={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(H.height=8,H.left=0,H.right=0,H.bottom=0,W.height="100%",W.width=d,C?W.left=A:W.right=A):(H.width=8,H.top=0,H.bottom=0,C?H.right=0:H.left=0,W.width="100%",W.height=d,W.top=A),z.createElement("div",{ref:E,className:Dm(B,(n={},hd(n,"".concat(B,"-horizontal"),u),hd(n,"".concat(B,"-vertical"),!u),hd(n,"".concat(B,"-visible"),$),n)),style:hh(hh({},H),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:_},z.createElement("div",{ref:O,className:Dm("".concat(B,"-thumb"),hd({},"".concat(B,"-thumb-moving"),m)),style:hh(hh({},W),h),onMouseDown:R}))}));function Sj(e){var t=e.children,n=e.setRef,r=z.useCallback((function(e){n(e)}),[]);return z.cloneElement(t,{ref:r})}var kj=function(){function e(){Vd(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return qd(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var Cj=10;function Ej(e,t,n){var r=qh(z.useState(e),2),o=r[0],a=r[1],i=qh(z.useState(null),2),s=i[0],l=i[1];return z.useEffect((function(){var r=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(a-i),d=0;d<o.length;d+=1){var f=l(r[d]);if(f!==l(o[d])){c=d,u=u||f!==l(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),l(e[r.index])),a(e)}),[e]),[s]}var Oj="object"===("undefined"==typeof navigator?"undefined":fd(navigator))&&/Firefox/i.test(navigator.userAgent);const Dj=function(e,t){var n=z.useRef(!1),r=z.useRef(null);var o=z.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e<0&&o.current.top||e>0&&o.current.bottom;return t&&a?(clearTimeout(r.current),n.current=!1):a&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&a}};function $j(e,t,n,r,o){var a=z.useRef(0),i=z.useRef(null),s=z.useRef(null),l=z.useRef(!1),c=Dj(t,n);var u=z.useRef(null),d=z.useRef(null);return[function(t){if(e){Hb.cancel(d.current),d.current=Hb((function(){u.current=null}),2);var n=t.deltaX,f=t.deltaY,p=t.shiftKey,h=n,g=f;("sx"===u.current||!u.current&&p&&f&&!n)&&(h=f,g=0,u.current="sx");var m=Math.abs(h),b=Math.abs(g);null===u.current&&(u.current=r&&m>b?"x":"y"),"y"===u.current?function(e,t){Hb.cancel(i.current),a.current+=t,s.current=t,c(t)||(Oj||e.preventDefault(),i.current=Hb((function(){var e=l.current?10:1;o(a.current*e),a.current=0})))}(t,g):function(e,t){o(t,!0),Oj||e.preventDefault()}(t,h)}},function(t){e&&(l.current=t.detail===s.current)}]}var jj=14/15;var Pj=20;function _j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,Pj),t=Math.min(t,e/2),Math.floor(t)}var Nj=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Ij=[],Tj={overflowY:"auto",overflowAnchor:"none"};function Aj(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,u=e.data,d=e.children,f=e.itemKey,p=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=void 0===m?"div":m,v=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,S=e.extraRender,k=e.styles,C=gd(e,Nj),E=!(!1===p||!a||!i),O=E&&u&&(i*u.length>a||!!g),D="rtl"===h,$=Dm(r,hd({},"".concat(r,"-rtl"),D),o),j=u||Ij,P=z.useRef(),_=z.useRef(),N=qh(z.useState(0),2),I=N[0],T=N[1],A=qh(z.useState(0),2),F=A[0],R=A[1],M=qh(z.useState(!1),2),L=M[0],B=M[1],H=function(){B(!0)},W=function(){B(!1)},U=z.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),V={getKey:U};function G(e){T((function(t){var n=function(e){var t=e;Number.isNaN(ge.current)||(t=Math.min(t,ge.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return P.current.scrollTop=n,n}))}var q=z.useRef({start:0,end:j.length}),K=z.useRef(),X=qh(Ej(j,U),1)[0];K.current=X;var Y=function(e,t,n){var r=qh(z.useState(0),2),o=r[0],a=r[1],i=z.useRef(new Map),s=z.useRef(new kj),l=z.useRef();function c(){Hb.cancel(l.current)}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){i.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Xm(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():l.current=Hb(t)}return z.useEffect((function(){return c}),[]),[function(r,o){var a=e(r),s=i.current.get(a);o?(i.current.set(a,o),u()):i.current.delete(a),!s!=!o&&(o?null==t||t(r):null==n||n(r))},u,s.current,o]}(U,null,null),Q=qh(Y,4),J=Q[0],Z=Q[1],ee=Q[2],te=Q[3],ne=z.useMemo((function(){if(!E)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};var e;if(!O)return{scrollHeight:(null===(e=_.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:j.length-1,offset:void 0};for(var t,n,r,o=0,s=j.length,l=0;l<s;l+=1){var c=j[l],u=U(c),d=ee.get(u),f=o+(void 0===d?i:d);f>=I&&void 0===t&&(t=l,n=o),f>I+a&&void 0===r&&(r=l),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/i)),void 0===r&&(r=j.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,j.length-1),offset:n}}),[O,E,I,j,te,a]),re=ne.scrollHeight,oe=ne.start,ae=ne.end,ie=ne.offset;q.current.start=oe,q.current.end=ae;var se=qh(z.useState({width:0,height:a}),2),le=se[0],ce=se[1],ue=z.useRef(),de=z.useRef(),fe=z.useMemo((function(){return _j(le.width,g)}),[le.width,g]),pe=z.useMemo((function(){return _j(le.height,re)}),[le.height,re]),he=re-a,ge=z.useRef(he);ge.current=he;var me=I<=0,be=I>=he,ve=Dj(me,be),ye=function(){return{x:D?-F:F,y:I}},we=z.useRef(ye()),xe=$y((function(){if(y){var e=ye();we.current.x===e.x&&we.current.y===e.y||(y(e),we.current=e)}}));function Se(e,t){var n=e;t?(ad.flushSync((function(){R(n)})),xe()):G(n)}var ke=function(e){var t=e,n=g-le.width;return t=Math.max(t,0),t=Math.min(t,n)},Ce=$y((function(e,t){t?(ad.flushSync((function(){R((function(t){return ke(t+(D?-e:e))}))})),xe()):G((function(t){return t+e}))})),Ee=qh($j(E,me,be,!!g,Ce),2),Oe=Ee[0],De=Ee[1];!function(e,t,n){var r,o=z.useRef(!1),a=z.useRef(0),i=z.useRef(null),s=z.useRef(null),l=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=a.current-t;a.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=jj,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},c=function(){o.current=!1,r()},u=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,a.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c))};r=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c))},lg((function(){return e&&t.current.addEventListener("touchstart",u),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),r(),clearInterval(s.current)}}),[e])}(E,P,(function(e,t){return!ve(e,t)&&(Oe({preventDefault:function(){},deltaY:e}),!0)})),lg((function(){function e(e){E&&e.preventDefault()}var t=P.current;return t.addEventListener("wheel",Oe),t.addEventListener("DOMMouseScroll",De),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Oe),t.removeEventListener("DOMMouseScroll",De),t.removeEventListener("MozMousePixelScroll",e)}}),[E]),lg((function(){g&&R((function(e){return ke(e)}))}),[le.width,g]);var $e=function(){var e,t;null===(e=ue.current)||void 0===e||e.delayHidden(),null===(t=de.current)||void 0===t||t.delayHidden()},je=function(e,t,n,r,o,a,i,s){var l=z.useRef(),c=qh(z.useState(null),2),u=c[0],d=c[1];return lg((function(){if(u&&u.times<Cj){if(!e.current)return void d((function(e){return hh({},e)}));a();var s=u.targetAlign,l=u.originAlign,c=u.index,f=u.offset,p=e.current.clientHeight,h=!1,g=s,m=null;if(p){for(var b=s||l,v=0,y=0,w=0,x=Math.min(t.length-1,c),S=0;S<=x;S+=1){var k=o(t[S]);y=v;var C=n.get(k);v=w=y+(void 0===C?r:C)}for(var E="top"===b?f:p-f,O=x;O>=0;O-=1){var D=o(t[O]),$=n.get(D);if(void 0===$){h=!0;break}if((E-=$)<=0)break}switch(b){case"top":m=y-f;break;case"bottom":m=w-p+f;break;default:var j=e.current.scrollTop;y<j?g="top":w>j+p&&(g="bottom")}null!==m&&i(m),m!==u.lastTop&&(h=!0)}h&&d(hh(hh({},u),{},{times:u.times+1,targetAlign:g,lastTop:m}))}}),[u,e.current]),function(e){if(null!=e){if(Hb.cancel(l.current),"number"==typeof e)i(e);else if(e&&"object"===fd(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var a=e.offset;d({times:0,index:n,offset:void 0===a?0:a,originAlign:r})}}else s()}}(P,j,ee,i,U,(function(){return Z(!0)}),G,$e);z.useImperativeHandle(t,(function(){return{getScrollInfo:ye,scrollTo:function(e){var t;(t=e)&&"object"===fd(t)&&("left"in t||"top"in t)?(void 0!==e.left&&R(ke(e.left)),je(e.top)):je(e)}}})),lg((function(){if(w){var e=j.slice(oe,ae+1);w(e,j)}}),[oe,ae,j]);var Pe=function(e,t,n,r){var o=qh(z.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),2),a=o[0],i=o[1];return function(o){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,l=a.get(o),c=a.get(s);if(void 0===l||void 0===c)for(var u=e.length,d=i.length;d<u;d+=1){var f,p=e[d],h=t(p);a.set(h,d);var g=null!==(f=n.get(h))&&void 0!==f?f:r;if(i[d]=(i[d-1]||0)+g,h===o&&(l=d),h===s&&(c=d),void 0!==l&&void 0!==c)break}return{top:i[l-1]||0,bottom:i[c]}}}(j,U,ee,i),_e=null==S?void 0:S({start:oe,end:ae,virtual:O,offsetX:F,offsetY:ie,rtl:D,getSize:Pe}),Ne=function(e,t,n,r,o,a,i){var s=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=a(e,t+n,{style:{width:r}}),l=s(e);return z.createElement(Sj,{key:l,setRef:function(t){return o(e,t)}},i)}))}(j,oe,ae,g,J,d,V),Ie=null;a&&(Ie=hh(hd({},l?"height":"maxHeight",a),Tj),E&&(Ie.overflowY="hidden",g&&(Ie.overflowX="hidden"),L&&(Ie.pointerEvents="none")));var Te={};return D&&(Te.dir="rtl"),z.createElement("div",jp({style:hh(hh({},c),{},{position:"relative"}),className:$},Te,C),z.createElement(Ab,{onResize:function(e){ce({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},z.createElement(b,{className:"".concat(r,"-holder"),style:Ie,ref:P,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==I&&G(t),null==v||v(e),xe()},onMouseEnter:$e},z.createElement(yj,{prefixCls:r,height:re,offsetX:F,offsetY:ie,scrollWidth:g,onInnerResize:Z,ref:_,innerProps:x,rtl:D,extra:_e},Ne))),O&&re>a&&z.createElement(xj,{ref:ue,prefixCls:r,scrollOffset:I,scrollRange:re,rtl:D,onScroll:Se,onStartMove:H,onStopMove:W,spinSize:pe,containerSize:le.height,style:null==k?void 0:k.verticalScrollBar,thumbStyle:null==k?void 0:k.verticalScrollBarThumb}),O&&g&&z.createElement(xj,{ref:de,prefixCls:r,scrollOffset:F,scrollRange:g,rtl:D,onScroll:Se,onStartMove:H,onStopMove:W,spinSize:fe,containerSize:le.width,horizontal:!0,style:null==k?void 0:k.horizontalScrollBar,thumbStyle:null==k?void 0:k.horizontalScrollBarThumb}))}var Fj=z.forwardRef(Aj);Fj.displayName="List";var Rj=z.createContext(null);var Mj=["disabled","title","children","style","className"];function Lj(e){return"string"==typeof e||"number"==typeof e}var Bj=function(e,t){var n=z.useContext(l$),r=n.prefixCls,o=n.id,a=n.open,i=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=z.useContext(Rj),p=f.flattenOptions,h=f.onActiveValue,g=f.defaultActiveFirstOption,m=f.onSelect,b=f.menuItemSelectedIcon,v=f.rawValues,y=f.fieldNames,w=f.virtual,x=f.direction,S=f.listHeight,k=f.listItemHeight,C=f.optionRender,E="".concat(r,"-item"),O=mh((function(){return p}),[a,p],(function(e,t){return t[0]&&e[1]!==t[1]})),D=z.useRef(null),$=function(e){e.preventDefault()},j=function(e){D.current&&D.current.scrollTo("number"==typeof e?{index:e}:e)},P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,a=O[o],i=a.group,s=a.data;if(!i&&!s.disabled)return o}return-1},_=qh(z.useState((function(){return P(0)})),2),N=_[0],I=_[1],T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];I(e);var n={source:t?"keyboard":"mouse"},r=O[e];r?h(r.value,e,n):h(null,-1,n)};z.useEffect((function(){T(!1!==g?P(0):-1)}),[O.length,l]);var A=z.useCallback((function(e){return v.has(e)&&"combobox"!==s}),[s,fh(v).toString(),v.size]);z.useEffect((function(){var e,t=setTimeout((function(){if(!i&&a&&1===v.size){var e=Array.from(v)[0],t=O.findIndex((function(t){return t.data.value===e}));-1!==t&&(T(t),j(t))}}));a&&(null===(e=D.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,l]);var F=function(e){void 0!==e&&m(e,{selected:!v.has(e)}),i||c(!1)};if(z.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Gx.N:case Gx.P:case Gx.UP:case Gx.DOWN:var r=0;if(t===Gx.UP?r=-1:t===Gx.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Gx.N?r=1:t===Gx.P&&(r=-1)),0!==r){var o=P(N+r,r);j(o),T(o,!0)}break;case Gx.ENTER:var i=O[N];i&&!i.data.disabled?F(i.value):F(void 0),a&&e.preventDefault();break;case Gx.ESC:c(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===O.length)return z.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(E,"-empty"),onMouseDown:$},u);var R=Object.keys(y).map((function(e){return y[e]})),M=function(e){return e.label};function L(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var B=function(e){var t=O[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,a=Ax(n,!0),i=M(t);return t?z.createElement("div",jp({"aria-label":"string"!=typeof i||o?null:i},a,{key:e},L(t,e),{"aria-selected":A(r)}),r):null},H={role:"listbox",id:"".concat(o,"_list")};return z.createElement(z.Fragment,null,w&&z.createElement("div",jp({},H,{style:{height:0,width:0,overflow:"hidden"}}),B(N-1),B(N),B(N+1)),z.createElement(Fj,{itemKey:"key",ref:D,data:O,height:S,itemHeight:k,fullHeight:!1,onMouseDown:$,onScroll:d,virtual:w,direction:x,innerProps:w?null:H},(function(e,t){var n,r=e.group,o=e.groupOption,a=e.data,i=e.label,s=e.value,l=a.key;if(r){var c,u=null!==(c=a.title)&&void 0!==c?c:Lj(i)?i.toString():void 0;return z.createElement("div",{className:Dm(E,"".concat(E,"-group")),title:u},void 0!==i?i:l)}var d=a.disabled,f=a.title;a.children;var p=a.style,h=a.className,g=Fb(gd(a,Mj),R),m=A(s),v="".concat(E,"-option"),y=Dm(E,v,h,(hd(n={},"".concat(v,"-grouped"),o),hd(n,"".concat(v,"-active"),N===t&&!d),hd(n,"".concat(v,"-disabled"),d),hd(n,"".concat(v,"-selected"),m),n)),x=M(e),S=!b||"function"==typeof b||m,k="number"==typeof x?x:x||s,O=Lj(k)?k.toString():void 0;return void 0!==f&&(O=f),z.createElement("div",jp({},Ax(g),w?{}:L(e,t),{"aria-selected":m,className:y,title:O,onMouseMove:function(){N===t||d||T(t)},onClick:function(){d||F(s)},style:p}),z.createElement("div",{className:"".concat(v,"-content")},"function"==typeof C?C(e,{index:t}):k),z.isValidElement(b)||m,S&&z.createElement(s$,{className:"".concat(E,"-option-state"),customizeIcon:b,customizeIconProps:{value:s,disabled:d,isSelected:m}},m?"✓":null))})))},zj=z.forwardRef(Bj);zj.displayName="OptionList";function Hj(e,t){return P$(e).join("").toUpperCase().includes(t)}var Wj=0,Uj=Nh();function Vj(e){var t=qh(z.useState(),2),n=t[0],r=t[1];return z.useEffect((function(){var e;r("rc_select_".concat((Uj?(e=Wj,Wj+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var Gj=["children","value"],qj=["children"];function Kj(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return qm(e).map((function(e,n){if(!z.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,a=r.key,i=r.props,s=i.children,l=gd(i,qj);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value;return hh({key:n,value:void 0!==a?a:n,children:o},gd(r,Gj))}(e):hh(hh({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},l),{},{options:Kj(s)})})).filter((function(e){return e}))}function Xj(e){var t=z.useRef();t.current=e;var n=z.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Yj=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Qj=["inputValue"];var Jj=z.forwardRef((function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=void 0===o?"rc-select":o,i=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,p=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=void 0===g||g,b=e.filterOption,v=e.filterSort,y=e.optionFilterProp,w=e.optionLabelProp,x=e.options,S=e.optionRender,k=e.children,C=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,O=e.virtual,D=e.direction,$=e.listHeight,j=void 0===$?200:$,P=e.listItemHeight,_=void 0===P?20:P,N=e.value,I=e.defaultValue,T=e.labelInValue,A=e.onChange,F=gd(e,Yj),R=Vj(n),M=gj(r),L=!(x||!k),B=z.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),H=z.useMemo((function(){return dj(s,L)}),[JSON.stringify(s),L]),W=qh(_y("",{value:void 0!==c?c:l,postState:function(e){return e||""}}),2),U=W[0],V=W[1],G=function(e,t,n,r,o){return z.useMemo((function(){var a=e;!e&&(a=Kj(t));var i=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||a?(i.set(u[n.value],u),l(s,u,n.label),l(s,u,r),l(s,u,o)):e(u[n.options],!0)}}(a),{options:a,valueOptions:i,labelOptions:s}}),[e,t,n,r,o])}(x,k,H,y,w),q=G.valueOptions,K=G.labelOptions,X=G.options,Y=z.useCallback((function(e){return P$(e).map((function(e){var t,n,r,o,a,i;(function(e){return!e||"object"!==fd(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(i=e.value)&&void 0!==i?i:r);var s,l=q.get(t);l&&(void 0===n&&(n=null==l?void 0:l[w||H.label]),void 0===r&&(r=null!==(s=null==l?void 0:l.key)&&void 0!==s?s:t),o=null==l?void 0:l.disabled,a=null==l?void 0:l.title);return{label:n,value:t,key:r,disabled:o,title:a}}))}),[H,w,q]),Q=qh(_y(I,{value:N}),2),J=Q[0],Z=Q[1],ee=z.useMemo((function(){var e,t=Y(J);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[J,Y,r]),te=function(e,t){var n=z.useRef({values:new Map,options:new Map});return[z.useMemo((function(){var r=n.current,o=r.values,a=r.options,i=e.map((function(e){var t;return void 0===e.label?hh(hh({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return i.forEach((function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||a.get(e.value))})),n.current.values=s,n.current.options=l,i}),[e,t]),z.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ee,q),ne=qh(te,2),re=ne[0],oe=ne[1],ae=z.useMemo((function(){if(!r&&1===re.length){var e=re[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return re.map((function(e){var t;return hh(hh({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[r,re]),ie=z.useMemo((function(){return new Set(re.map((function(e){return e.value})))}),[re]);z.useEffect((function(){if("combobox"===r){var e,t=null===(e=re[0])||void 0===e?void 0:e.value;V(function(e){return null!=e}(t)?String(t):"")}}),[re]);var se=Xj((function(e,t){var n,r=null!=t?t:e;return hd(n={},H.value,e),hd(n,H.label,r),n})),le=z.useMemo((function(){if("tags"!==r)return X;var e=fh(X);return fh(re).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return q.has(e)})(n)||e.push(se(n,t.label))})),e}),[se,X,q,re,r]),ce=function(e,t,n,r,o){return z.useMemo((function(){if(!n||!1===r)return e;var a=t.options,i=t.label,s=t.value,l=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:function(e,t){return o?Hj(t[o],u):t[a]?Hj(t["children"!==i?i:"label"],u):Hj(t[s],u)},f=c?function(e){return fj(e)}:function(e){return e};return e.forEach((function(e){if(e[a])if(d(n,f(e)))l.push(e);else{var t=e[a].filter((function(e){return d(n,f(e))}));t.length&&l.push(hh(hh({},e),{},hd({},a,t)))}else d(n,f(e))&&l.push(e)})),l}),[e,r,o,n,t])}(le,H,U,B,y),ue=z.useMemo((function(){return"tags"!==r||!U||ce.some((function(e){return e[y||"value"]===U}))||ce.some((function(e){return e[H.value]===U}))?ce:[se(U)].concat(fh(ce))}),[se,y,r,ce,U,H]),de=z.useMemo((function(){return v?fh(ue).sort((function(e,t){return v(e,t)})):ue}),[ue,v]),fe=z.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=dj(n,!1),i=a.label,s=a.value,l=a.options,c=a.groupLabel;return function e(t,n){t.forEach((function(t){if(n||!(l in t)){var a=t[s];o.push({key:uj(t,o.length),groupOption:n,data:t,label:t[i],value:a})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:uj(t,o.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),o}(de,{fieldNames:H,childrenAsData:L})}),[de,H,L]),pe=function(e){var t=Y(e);if(Z(t),A&&(t.length!==re.length||t.some((function(e,t){var n;return(null===(n=re[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=T?t:t.map((function(e){return e.value})),r=t.map((function(e){return fj(oe(e.value))}));A(M?n:n[0],M?r:r[0])}},he=qh(z.useState(null),2),ge=he[0],me=he[1],be=qh(z.useState(0),2),ve=be[0],ye=be[1],we=void 0!==C?C:"combobox"!==r,xe=z.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;ye(t),i&&"combobox"===r&&null!==e&&"keyboard"===o&&me(String(e))}),[i,r]),Se=function(e,t,n){var r=function(){var t,n=oe(e);return[T?{label:null==n?void 0:n[H.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,fj(n)]};if(t&&p){var o=qh(r(),2),a=o[0],i=o[1];p(a,i)}else if(!t&&h&&"clear"!==n){var s=qh(r(),2),l=s[0],c=s[1];h(l,c)}},ke=Xj((function(e,t){var n,o=!M||t.selected;n=o?M?[].concat(fh(re),[e]):[e]:re.filter((function(t){return t.value!==e})),pe(n),Se(e,o),"combobox"===r?me(""):gj&&!f||(V(""),me(""))})),Ce=z.useMemo((function(){var e=!1!==O&&!1!==m;return hh(hh({},G),{},{flattenOptions:fe,onActiveValue:xe,defaultActiveFirstOption:we,onSelect:ke,menuItemSelectedIcon:E,rawValues:ie,fieldNames:H,virtual:e,direction:D,listHeight:j,listItemHeight:_,childrenAsData:L,optionRender:S})}),[G,fe,xe,we,ke,E,ie,H,O,m,j,_,L,S]);return z.createElement(Rj.Provider,{value:Ce},z.createElement(mj,jp({},F,{id:R,prefixCls:a,ref:t,omitDomProps:Qj,mode:r,displayValues:ae,onDisplayValuesChange:function(e,t){pe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Se(e.value,!1,n)}))},direction:D,searchValue:U,onSearch:function(e,t){if(V(e),me(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&pe(e),null==u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(fh(ie),[n])));pe(o),Se(n,!0),V("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=K.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(fh(ie),fh(t))));pe(n),n.forEach((function(e){Se(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:zj,emptyOptions:!fe.length,activeValue:ge,activeDescendantId:"".concat(R,"_list_").concat(ve)})))})),Zj=Jj;function eP(e,t,n){return Dm({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}Zj.Option=vj,Zj.OptGroup=bj;const tP=(e,t)=>t||e,nP=()=>{const[,e]=Dy(),t=new Pv(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.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"}),z.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)"}),z.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"}),z.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"})),z.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"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},rP=()=>{const[,e]=Dy(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=z.useMemo((()=>({borderColor:new Pv(t).onBackground(o).toHexShortString(),shadowColor:new Pv(n).onBackground(o).toHexShortString(),contentColor:new Pv(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:a},z.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"}),z.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}))))},oP=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,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}}}}},aP=Vy("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=zy(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[oP(r)]}));var iP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sP=z.createElement(nP,null),lP=z.createElement(rP,null),cP=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=sP,description:a,children:i,imageStyle:s,style:l}=e,c=iP(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=z.useContext(uy),p=u("empty",r),[h,g]=aP(p),[m]=uv("Empty"),b=void 0!==a?a:null==m?void 0:m.description,v="string"==typeof b?b:"empty";let y=null;return y="string"==typeof o?z.createElement("img",{alt:v,src:o}):o,h(z.createElement("div",Object.assign({className:Dm(g,p,null==f?void 0:f.className,{[`${p}-normal`]:o===lP,[`${p}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),l)},c),z.createElement("div",{className:`${p}-image`,style:s},y),b&&z.createElement("div",{className:`${p}-description`},b),i&&z.createElement("div",{className:`${p}-footer`},i)))};cP.PRESENTED_IMAGE_DEFAULT=sP,cP.PRESENTED_IMAGE_SIMPLE=lP;const uP=cP,dP=e=>{const{componentName:t}=e,{getPrefixCls:n}=z.useContext(uy),r=n("empty");switch(t){case"Table":case"List":return H.createElement(uP,{image:uP.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return H.createElement(uP,{image:uP.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return H.createElement(uP,null)}},fP=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"}},pP=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ty(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${s}bottomLeft,\n ${a}${s}bottomLeft\n `]:{animationName:OO},[`\n ${o}${s}topLeft,\n ${a}${s}topLeft,\n ${o}${s}topRight,\n ${a}${s}topRight\n `]:{animationName:$O},[`${i}${s}bottomLeft`]:{animationName:DO},[`\n ${i}${s}topLeft,\n ${i}${s}topRight\n `]:{animationName:jO},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},fP(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"},Iy),"&-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"}})},AO(e,"slide-up"),AO(e,"slide-down"),EO(e,"move-up"),EO(e,"move-down")]},hP=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function gP(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=hP(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",padding:i-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:`${a}px`,visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:a-2*e.lineWidth+"px",background:e.multipleItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.multipleItemBorderColor}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const mP=e=>{const{componentCls:t}=e,n=zy(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=zy(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=hP(e);return[gP(e),gP(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},gP(r,"lg")]};function bP(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-2*e.lineWidth,i=Math.ceil(1.25*e.fontSize);return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ty(e,!0)),{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:`${a}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}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 vP(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[bP(e),bP(zy(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}}}},bP(zy(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const yP=e=>{const{componentCls:t,selectorBg:n}=e;return{position:"relative",backgroundColor:n,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},wP=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,antCls:a,borderActiveColor:i,outlineColor:s,controlOutlineWidth:l}=t,c=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},c),{[`&:hover ${r}-selector`]:{borderColor:o},[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${l}px ${s}`,outline:0}})}}},xP=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},SP=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Ty(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yP(e)),xP(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Iy),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Iy),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.clearBg,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXS}}}},kP=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%"}}},SP(e),vP(e),mP(e),pP(e),{[`${t}-rtl`]:{direction:"rtl"}},wP(t,zy(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),wP(`${t}-status-error`,zy(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),wP(`${t}-status-warning`,zy(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),nC(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},CP=Vy("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=zy(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[kP(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:a,colorText:i,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:g}=e;return{zIndexPopup:a+50,optionSelectedColor:i,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:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}));function EP(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const OP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var DP=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:OP}))};const $P=z.forwardRef(DP);const jP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var PP=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:jP}))};const _P=z.forwardRef(PP);const NP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var IP=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:NP}))};const TP=z.forwardRef(IP);var AP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const FP="SECRET_COMBOBOX_MODE_DO_NOT_USE",RP=(e,t)=>{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p=24,size:h,disabled:g,notFoundContent:m,status:b,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:S,allowClear:k}=e,C=AP(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:E,getPrefixCls:O,renderEmpty:D,direction:$,virtual:j,popupMatchSelectWidth:P,popupOverflow:_,select:N}=z.useContext(uy),I=O("select",o),T=O(),A=null!=x?x:$,{compactSize:F,compactItemClassnames:R}=dk(I,A),[M,L]=CP(I),B=z.useMemo((()=>{const{mode:e}=C;if("combobox"!==e)return e===FP?"combobox":e}),[C.mode]),H="multiple"===B||"tags"===B,W=function(e,t){return void 0!==t?t:null!==e}(C.suffixIcon,C.showArrow),U=null!==(n=null!=w?w:y)&&void 0!==n?n:P,{status:V,hasFeedback:G,isFormItemInput:q,feedbackIcon:K}=z.useContext(rO),X=tP(V,b);let Y;Y=void 0!==m?m:"combobox"===B?null:(null==D?void 0:D("Select"))||z.createElement(dP,{componentName:"Select"});const{suffixIcon:Q,itemIcon:J,removeIcon:Z,clearIcon:ee}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:a,multiple:i,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const p=null!=n?n:z.createElement(xx,null),h=e=>null!==t||s||d?z.createElement(z.Fragment,null,!1!==c&&e,s&&u):null;let g=null;if(void 0!==t)g=h(t);else if(a)g=h(z.createElement(aS,{spin:!0}));else{const e=`${l}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return h(n&&r?z.createElement(TP,{className:e}):z.createElement(_P,{className:e}))}}let m=null;m=void 0!==r?r:i?z.createElement($P,null):null;let b=null;return b=void 0!==o?o:z.createElement(Cx,null),{clearIcon:p,suffixIcon:g,itemIcon:m,removeIcon:b}}(Object.assign(Object.assign({},C),{multiple:H,hasFeedback:G,feedbackIcon:K,showSuffixIcon:W,prefixCls:I,showArrow:C.showArrow,componentName:"Select"})),te=!0===k?{clearIcon:ee}:k,ne=Fb(C,["suffixIcon","itemIcon"]),re=Dm(c||u,{[`${I}-dropdown-${A}`]:"rtl"===A},s,L),oe=ok((e=>{var t;return null!==(t=null!=h?h:F)&&void 0!==t?t:e})),ae=z.useContext(gy),ie=null!=g?g:ae,se=Dm({[`${I}-lg`]:"large"===oe,[`${I}-sm`]:"small"===oe,[`${I}-rtl`]:"rtl"===A,[`${I}-borderless`]:!a,[`${I}-in-form-item`]:q},eP(I,X,G),R,null==N?void 0:N.className,i,s,L),le=z.useMemo((()=>void 0!==f?f:"rtl"===A?"bottomRight":"bottomLeft"),[f,A]),ce=EP(v,_),[ue]=dS("SelectLike",null===(r=C.dropdownStyle)||void 0===r?void 0:r.zIndex);return M(z.createElement(Zj,Object.assign({ref:t,virtual:j,showSearch:null==N?void 0:N.showSearch},ne,{style:Object.assign(Object.assign({},null==N?void 0:N.style),S),dropdownMatchSelectWidth:U,builtinPlacements:ce,transitionName:KS(T,"slide-up",C.transitionName),listHeight:d,listItemHeight:p,mode:B,prefixCls:I,placement:le,direction:A,suffixIcon:Q,menuItemSelectedIcon:J,removeIcon:Z,allowClear:te,notFoundContent:Y,className:se,getPopupContainer:l||E,dropdownClassName:re,disabled:ie,dropdownStyle:Object.assign(Object.assign({},null==C?void 0:C.dropdownStyle),{zIndex:ue})})))},MP=z.forwardRef(RP),LP=(BP=MP,a$((function(e){const{prefixCls:t,style:n}=e,r=z.useRef(null),[o,a]=z.useState(0),[i,s]=z.useState(0),[l,c]=_y(!1,{value:e.open}),{getPrefixCls:u}=z.useContext(uy),d=u(zP||"select",t);z.useEffect((()=>{if(c(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;a(t.offsetHeight+8),s(t.offsetWidth)})),t=setInterval((()=>{var n;const o=HP?`.${HP(d)}`:`.${d}-dropdown`,a=null===(n=r.current)||void 0===n?void 0:n.querySelector(o);a&&(clearInterval(t),e.observe(a))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let f=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:l,visible:l,getPopupContainer:()=>r.current});return WP&&(f=WP(f)),z.createElement("div",{ref:r,style:{paddingBottom:o,position:"relative",minWidth:i}},z.createElement(BP,Object.assign({},f)))})));var BP,zP,HP,WP;MP.SECRET_COMBOBOX_MODE_DO_NOT_USE=FP,MP.Option=vj,MP.OptGroup=bj,MP._InternalPanelDoNotUseOrYouWillBeFired=LP;const UP=MP,VP=["xxl","xl","lg","md","sm","xs"],GP=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)`}),qP=e=>{const t=e,n=[].concat(VP).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),a=`screen${o}Min`,i=`screen${o}`;if(!(t[a]<=t[i]))throw new Error(`${a}<=${i} fails : !(${t[a]}<=${t[i]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[i]<=t[e]))throw new Error(`${i}<=${e} fails : !(${t[i]}<=${t[e]})`);const a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw new Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}})),e};function KP(){const[,e]=Dy(),t=GP(qP(e));return H.useMemo((()=>{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},a=window.matchMedia(n);a.addListener(o),this.matchHandlers[n]={mql:a,listener:o},o(a)}))},responsiveMap:t}}),[e])}function XP(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=z.useRef({}),n=function(){const[,e]=z.useReducer((e=>e+1),0);return e}(),r=KP();return lg((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}function YP(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.className,i=e.style;return z.createElement("div",{className:Dm("".concat(n,"-content"),a),style:i},z.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var QP={shiftX:64,adjustY:1},JP={adjustX:1,shiftY:!0},ZP=[0,0],e_={left:{points:["cr","cl"],overflow:JP,offset:[-4,0],targetOffset:ZP},right:{points:["cl","cr"],overflow:JP,offset:[4,0],targetOffset:ZP},top:{points:["bc","tc"],overflow:QP,offset:[0,-4],targetOffset:ZP},bottom:{points:["tc","bc"],overflow:QP,offset:[0,4],targetOffset:ZP},topLeft:{points:["bl","tl"],overflow:QP,offset:[0,-4],targetOffset:ZP},leftTop:{points:["tr","tl"],overflow:JP,offset:[-4,0],targetOffset:ZP},topRight:{points:["br","tr"],overflow:QP,offset:[0,-4],targetOffset:ZP},rightTop:{points:["tl","tr"],overflow:JP,offset:[4,0],targetOffset:ZP},bottomRight:{points:["tr","br"],overflow:QP,offset:[0,4],targetOffset:ZP},rightBottom:{points:["bl","br"],overflow:JP,offset:[4,0],targetOffset:ZP},bottomLeft:{points:["tl","bl"],overflow:QP,offset:[0,4],targetOffset:ZP},leftBottom:{points:["br","bl"],overflow:JP,offset:[-4,0],targetOffset:ZP}},t_=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],n_=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,a=e.mouseEnterDelay,i=void 0===a?0:a,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,v=e.placement,y=void 0===v?"right":v,w=e.align,x=void 0===w?{}:w,S=e.destroyTooltipOnHide,k=void 0!==S&&S,C=e.defaultVisible,E=e.getTooltipContainer,O=e.overlayInnerStyle;e.arrowContent;var D=e.overlay,$=e.id,j=e.showArrow,P=void 0===j||j,_=gd(e,t_),N=z.useRef(null);z.useImperativeHandle(t,(function(){return N.current}));var I=hh({},_);"visible"in e&&(I.popupVisible=e.visible);return z.createElement(ij,jp({popupClassName:n,prefixCls:d,popup:function(){return z.createElement(YP,{key:"content",prefixCls:d,id:$,overlayInnerStyle:O},D)},action:o,builtinPlacements:e_,popupPlacement:y,ref:N,popupAlign:x,getPopupContainer:E,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:C,autoDestroy:k,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:i,arrow:P},I),f)};const r_=z.forwardRef(n_),o_=8;function a_(e){const t=o_,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function i_(e,t){return e?t:{}}function s_(e,t){const{componentCls:n,sizePopupArrow:r,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:i}=e,{colorBg:s,contentRadius:l=e.borderRadiusLG,limitVerticalRadius:c,arrowDistance:u=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=a_({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"},Ny(r,o,a,s,i)),{"&:before":{background:s}})]},i_(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),i_(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}}})),i_(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f}})),i_(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f}}))}}const l_={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},c_={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},u_=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function d_(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(l_).forEach((e=>{const c=r&&c_[e]||l_[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,u_.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const d=a_({contentRadius:a,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":u.offset[0]=d.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":u.offset[1]=-d.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":u.offset[1]=d.dropdownArrowOffset+s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=2*t.dropdownArrowOffset+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=2*t.dropdownArrowOffsetVertical+n,a.shiftX=!0,a.adjustX=!0}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,d,t,n),i&&(u.htmlRegion="visibleFirst")})),l}const f_=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ty(e)),{position:"absolute",zIndex:i,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:a,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,o_)}},[`${t}-content`]:{position:"relative"}}),qy(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},s_(zy(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},p_=(e,t)=>Vy("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:a}=e,i=zy(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:a>4?4:a});return[f_(i),XO(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),h_=yy.map((e=>`${e}-inverse`)),g_=["success","processing","error","default","warning"];function m_(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(fh(h_),fh(yy)).includes(e):yy.includes(e)}function b_(e,t){const n=m_(t),r=Dm({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const v_=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=z.useContext(uy),l=s("tooltip",t),[c,u]=p_(l,!0),d=b_(l,a),f=d.arrowStyle,p=Object.assign(Object.assign({},i),d.overlayStyle),h=Dm(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(z.createElement("div",{className:h,style:f},z.createElement("div",{className:`${l}-arrow`}),z.createElement(YP,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),o)))};var y_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const w_=z.forwardRef(((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:i,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0}=e,w=!!h,[,x]=Dy(),{getPopupContainer:S,getPrefixCls:k,direction:C}=z.useContext(uy),E=Zb(),O=z.useRef(null),D=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};z.useImperativeHandle(t,(()=>({forceAlign:D,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),D()}})));const[$,j]=_y(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),P=!g&&!m&&0!==g,_=z.useMemo((()=>{var e,t;let n=v;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:v),b||d_({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[v,h,b,x]),N=z.useMemo((()=>0===g?g:m||g||""),[m,g]),I=z.createElement(fk,null,"function"==typeof N?N():N),{getPopupContainer:T,placement:A="top",mouseEnterDelay:F=.1,mouseLeaveDelay:R=.1,overlayStyle:M,rootClassName:L}=e,B=y_(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=k("tooltip",o),W=k(),U=e["data-popover-inject"];let V=$;"open"in e||"visible"in e||!P||(V=!1);const G=Fx(u)&&!Rx(u)?u:z.createElement("span",null,u),q=G.props,K=q.className&&"string"!=typeof q.className?q.className:Dm(q.className,a||`${H}-open`),[X,Y]=p_(H,!U),Q=b_(H,l),J=Q.arrowStyle,Z=Object.assign(Object.assign({},c),Q.overlayStyle),ee=Dm(s,{[`${H}-rtl`]:"rtl"===C},Q.className,L,Y),[te,ne]=dS("Tooltip",B.zIndex),re=z.createElement(r_,Object.assign({},B,{zIndex:te,showArrow:w,placement:A,mouseEnterDelay:F,mouseLeaveDelay:R,prefixCls:H,overlayClassName:ee,overlayStyle:Object.assign(Object.assign({},J),M),getTooltipContainer:T||i||S,ref:O,builtinPlacements:_,overlay:I,visible:V,onVisibleChange:t=>{var n,r;j(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:Z,arrowContent:z.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:KS(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),V?Mx(G,{className:K}):G);return X(z.createElement(iS.Provider,{value:ne},re))}));w_._InternalPanelDoNotUseOrYouWillBeFired=v_;const x_=w_;const S_={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"};var k_=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:S_}))};const C_=z.forwardRef(k_);var E_=Gx.ESC,O_=Gx.TAB;var D_=z.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=z.useMemo((function(){return"function"==typeof n?n():n}),[n]),i=Qm(t,null==a?void 0:a.ref);return H.createElement(H.Fragment,null,r&&H.createElement("div",{className:"".concat(o,"-arrow")}),H.cloneElement(a,{ref:Zm(a)?i:void 0}))})),$_={adjustX:1,adjustY:1},j_=[0,0],P_={topLeft:{points:["bl","tl"],overflow:$_,offset:[0,-4],targetOffset:j_},top:{points:["bc","tc"],overflow:$_,offset:[0,-4],targetOffset:j_},topRight:{points:["br","tr"],overflow:$_,offset:[0,-4],targetOffset:j_},bottomLeft:{points:["tl","bl"],overflow:$_,offset:[0,4],targetOffset:j_},bottom:{points:["tc","bc"],overflow:$_,offset:[0,4],targetOffset:j_},bottomRight:{points:["tr","br"],overflow:$_,offset:[0,4],targetOffset:j_}},__=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function N_(e,t){var n,r=e.arrow,o=void 0!==r&&r,a=e.prefixCls,i=void 0===a?"rc-dropdown":a,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,p=void 0===f?P_:f,h=e.getPopupContainer,g=e.showAction,m=e.hideAction,b=e.overlayClassName,v=e.overlayStyle,y=e.visible,w=e.trigger,x=void 0===w?["hover"]:w,S=e.autoFocus,k=e.overlay,C=e.children,E=e.onVisibleChange,O=gd(e,__),D=qh(H.useState(),2),$=D[0],j=D[1],P="visible"in e?y:$,_=H.useRef(null),N=H.useRef(null),I=H.useRef(null);H.useImperativeHandle(t,(function(){return _.current}));var T=function(e){j(e),null==E||E(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=z.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=a.current)||void 0===e||!e.focus||(a.current.focus(),i.current=!0,0))},c=function(e){switch(e.keyCode){case E_:s();break;case O_:var t=!1;i.current||(t=l()),t?e.preventDefault():s()}};z.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&Hb(l,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}}),[t])}({visible:P,triggerRef:I,onVisibleChange:T,autoFocus:S,overlayRef:N});var A,F,R,M=function(){return H.createElement(D_,{ref:N,overlay:k,prefixCls:i,arrow:o})},L=H.cloneElement(C,{className:Dm(null===(n=C.props)||void 0===n?void 0:n.className,P&&(A=e.openClassName,void 0!==A?A:"".concat(i,"-open"))),ref:Zm(C)?Qm(I,C.ref):void 0}),B=m;return B||-1===x.indexOf("contextMenu")||(B=["click"]),H.createElement(ij,jp({builtinPlacements:p},O,{prefixCls:i,ref:_,popupClassName:Dm(b,hd({},"".concat(i,"-show-arrow"),o)),popupStyle:v,action:x,showAction:g,hideAction:B,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:P,stretch:(F=e.minOverlayWidthMatchTrigger,R=e.alignPoint,("minOverlayWidthMatchTrigger"in e?F:!R)?"minWidth":""),popup:"function"==typeof k?M:M(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;j(!1),n&&n(t)},getPopupContainer:h}),L)}const I_=H.forwardRef(N_);var T_=z.createContext(null);function A_(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function F_(e){return A_(z.useContext(T_),e)}var R_=["children","locked"],M_=z.createContext(null);function L_(e){var t=e.children,n=e.locked,r=gd(e,R_),o=z.useContext(M_),a=mh((function(){return e=r,t=hh({},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]&&Sh(e[1],t[1],!0))}));return z.createElement(M_.Provider,{value:a},t)}var B_=[],z_=z.createContext(null);function H_(){return z.useContext(z_)}var W_=z.createContext(B_);function U_(e){var t=z.useContext(W_);return z.useMemo((function(){return void 0!==e?[].concat(fh(t),[e]):t}),[t,e])}var V_=z.createContext(null),G_=z.createContext({});function q_(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(XS(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var K_=Gx.LEFT,X_=Gx.RIGHT,Y_=Gx.UP,Q_=Gx.DOWN,J_=Gx.ENTER,Z_=Gx.ESC,eN=Gx.HOME,tN=Gx.END,nN=[Y_,Q_,K_,X_];function rN(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=fh(e.querySelectorAll("*")).filter((function(e){return q_(e,t)}));return q_(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function oN(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=rN(e,t),a=o.length,i=o.findIndex((function(e){return n===e}));return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}function aN(e,t,n,r,o,a,i,s,l,c){var u=z.useRef(),d=z.useRef();d.current=t;var f=function(){Hb.cancel(u.current)};return z.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(nN,[J_,Z_,eN,tN]).includes(h)){var g,m,b,v=function(){return g=new Set,m=new Map,b=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(A_(r,e),"']"));t&&(g.add(t),b.set(t,e),m.set(e,t))})),g};v();var y=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(m.get(t),g),w=b.get(y),x=function(e,t,n,r){var o,a,i,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&r===J_)return{inlineTrigger:!0};var f=(hd(o={},Y_,l),hd(o,Q_,c),o),p=(hd(a={},K_,n?c:l),hd(a,X_,n?l:c),hd(a,Q_,u),hd(a,J_,u),a),h=(hd(i={},Y_,l),hd(i,Q_,c),hd(i,J_,u),hd(i,Z_,d),hd(i,K_,n?u:d),hd(i,X_,n?d:u),i);switch(null===(s={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===i(w,!0).length,n,h);if(!x&&h!==eN&&h!==tN)return;(nN.includes(h)||[eN,tN].includes(h))&&p.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=b.get(e);s(r),f(),u.current=Hb((function(){d.current===r&&t.focus()}))}};if([eN,tN].includes(h)||x.sibling||!y){var k,C,E=rN(k=y&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(y):o.current,g);C=h===eN?E[0]:h===tN?E[E.length-1]:oN(k,g,y,x.offset),S(C)}else if(x.inlineTrigger)l(w);else if(x.offset>0)l(w,!0),f(),u.current=Hb((function(){v();var e=y.getAttribute("aria-controls"),t=oN(document.getElementById(e),g);S(t)}),5);else if(x.offset<0){var O=i(w,!0),D=O[O.length-2],$=m.get(D);l(D,!1),S($)}}null==c||c(p)}}var iN="__RC_UTIL_PATH_SPLIT__",sN=function(e){return e.join(iN)},lN="rc-menu-more";function cN(){var e=qh(z.useState({}),2)[1],t=z.useRef(new Map),n=z.useRef(new Map),r=qh(z.useState([]),2),o=r[0],a=r[1],i=z.useRef(0),s=z.useRef(!1),l=z.useCallback((function(r,o){var a=sN(o);n.current.set(a,r),t.current.set(r,a),i.current+=1;var l,c=i.current;l=function(){c===i.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=z.useCallback((function(e,r){var o=sN(r);n.current.delete(o),t.current.delete(e)}),[]),u=z.useCallback((function(e){a(e)}),[]),d=z.useCallback((function(e,n){var r=t.current.get(e)||"",a=r.split(iN);return n&&o.includes(a[0])&&a.unshift(lN),a}),[o]),f=z.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=z.useCallback((function(e){var r="".concat(t.current.get(e)).concat(iN),o=new Set;return fh(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return z.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=fh(t.current.keys());return o.length&&e.push(lN),e},getSubPathKeys:p}}function uN(e){var t=z.useRef(e);t.current=e;var n=z.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var dN=Math.random().toFixed(5).toString().slice(2),fN=0;function pN(e,t,n,r){var o=z.useContext(M_),a=o.activeKey,i=o.onActive,s=o.onInactive,l={active:a===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),i(e)},l.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),s(e)}),l}function hN(e){var t=z.useContext(M_),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function gN(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"==typeof n?t=z.createElement(n,hh({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var mN=["item"];function bN(e){var t=e.item,n=gd(e,mN);return Object.defineProperty(n,"item",{get:function(){return xh(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var vN=["title","attribute","elementRef"],yN=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],wN=["active"],xN=function(e){Ob(n,z.Component);var t=Pb(n);function n(){return Vd(this,n),t.apply(this,arguments)}return qd(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Fb(gd(e,vN),["eventKey","popupClassName","popupOffset","onTitleClick"]);return xh(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),z.createElement(D$.Item,jp({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(),SN=z.forwardRef((function(e,t){var n,r=e.style,o=e.className,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,h=e.onFocus,g=gd(e,yN),m=F_(a),b=z.useContext(M_),v=b.prefixCls,y=b.onItemClick,w=b.disabled,x=b.overflowDisabled,S=b.itemIcon,k=b.selectedKeys,C=b.onActive,E=z.useContext(G_)._internalRenderMenuItem,O="".concat(v,"-item"),D=z.useRef(),$=z.useRef(),j=w||i,P=Jm(t,$),_=U_(a),N=function(e){return{key:a,keyPath:fh(_).reverse(),item:D.current,domEvent:e}},I=s||S,T=pN(a,j,u,d),A=T.active,F=gd(T,wN),R=k.includes(a),M=hN(_.length),L={};"option"===e.role&&(L["aria-selected"]=R);var B=z.createElement(xN,jp({ref:D,elementRef:P,role:null===c?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&m?null:m},g,F,L,{component:"li","aria-disabled":i,style:hh(hh({},M),r),className:Dm(O,(n={},hd(n,"".concat(O,"-active"),A),hd(n,"".concat(O,"-selected"),R),hd(n,"".concat(O,"-disabled"),j),n),o),onClick:function(e){if(!j){var t=N(e);null==f||f(bN(t)),y(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===Gx.ENTER){var t=N(e);null==f||f(bN(t)),y(t)}},onFocus:function(e){C(a),null==h||h(e)}}),l,z.createElement(gN,{props:hh(hh({},e),{},{isSelected:R}),icon:I}));return E&&(B=E(B,e,{selected:R})),B}));function kN(e,t){var n=e.eventKey,r=H_(),o=U_(n);return z.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:z.createElement(SN,jp({},e,{ref:t}))}const CN=z.forwardRef(kN);var EN=["className","children"],ON=function(e,t){var n=e.className,r=e.children,o=gd(e,EN),a=z.useContext(M_),i=a.prefixCls,s=a.mode,l=a.rtl;return z.createElement("ul",jp({className:Dm(i,l&&"".concat(i,"-rtl"),"".concat(i,"-sub"),"".concat(i,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},DN=z.forwardRef(ON);function $N(e,t){return qm(e).map((function(e,n){if(z.isValidElement(e)){var r,o,a=e.key,i=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:a;null==i&&(i="tmp_key-".concat([].concat(fh(t),[n]).join("-")));var s={key:i,eventKey:i};return z.cloneElement(e,s)}return e}))}DN.displayName="SubMenuList";var jN={adjustX:1,adjustY:1},PN={topLeft:{points:["bl","tl"],overflow:jN},topRight:{points:["br","tr"],overflow:jN},bottomLeft:{points:["tl","bl"],overflow:jN},bottomRight:{points:["tr","br"],overflow:jN},leftTop:{points:["tr","tl"],overflow:jN},leftBottom:{points:["br","bl"],overflow:jN},rightTop:{points:["tl","tr"],overflow:jN},rightBottom:{points:["bl","br"],overflow:jN}},_N={topLeft:{points:["bl","tl"],overflow:jN},topRight:{points:["br","tr"],overflow:jN},bottomLeft:{points:["tl","bl"],overflow:jN},bottomRight:{points:["tr","br"],overflow:jN},rightTop:{points:["tr","tl"],overflow:jN},rightBottom:{points:["br","bl"],overflow:jN},leftTop:{points:["tl","tr"],overflow:jN},leftBottom:{points:["bl","br"],overflow:jN}};function NN(e,t,n){return t||(n?n[e]||n.other:void 0)}var IN={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function TN(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,i=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=z.useContext(M_),f=d.getPopupContainer,p=d.rtl,h=d.subMenuOpenDelay,g=d.subMenuCloseDelay,m=d.builtinPlacements,b=d.triggerSubMenuAction,v=d.forceSubMenuRender,y=d.rootClassName,w=d.motion,x=d.defaultMotions,S=qh(z.useState(!1),2),k=S[0],C=S[1],E=hh(hh({},p?_N:PN),m),O=IN[c],D=NN(c,w,x),$=z.useRef(D);"inline"!==c&&($.current=D);var j=hh(hh({},$.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=z.useRef();return z.useEffect((function(){return P.current=Hb((function(){C(n)})),function(){Hb.cancel(P.current)}}),[n]),z.createElement(ij,{prefixCls:t,popupClassName:Dm("".concat(t,"-popup"),hd({},"".concat(t,"-rtl"),p),i,y),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:f,builtinPlacements:E,popupPlacement:O,popupVisible:k,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:v,popupMotion:j,fresh:!0},r)}function AN(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=z.useContext(M_),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,f=z.useRef(!1);f.current=d===a;var p=qh(z.useState(!f.current),2),h=p[0],g=p[1],m=!!f.current&&n;z.useEffect((function(){f.current&&g(!1)}),[d]);var b=hh({},NN(a,c,u));r.length>1&&(b.motionAppear=!1);var v=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||g(!0),null==v?void 0:v(e)},h?null:z.createElement(L_,{mode:a,locked:!f.current},z.createElement(_w,jp({visible:m},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,r=e.style;return z.createElement(DN,{id:t,className:n,style:r},o)})))}var FN=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],RN=["active"],MN=function(e){var t,n=e.style,r=e.className,o=e.title,a=e.eventKey;e.warnKey;var i=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,p=e.popupStyle,h=e.onClick,g=e.onMouseEnter,m=e.onMouseLeave,b=e.onTitleClick,v=e.onTitleMouseEnter,y=e.onTitleMouseLeave,w=gd(e,FN),x=F_(a),S=z.useContext(M_),k=S.prefixCls,C=S.mode,E=S.openKeys,O=S.disabled,D=S.overflowDisabled,$=S.activeKey,j=S.selectedKeys,P=S.itemIcon,_=S.expandIcon,N=S.onItemClick,I=S.onOpenChange,T=S.onActive,A=z.useContext(G_)._internalRenderSubMenuItem,F=z.useContext(V_).isSubPathKey,R=U_(),M="".concat(k,"-submenu"),L=O||i,B=z.useRef(),H=z.useRef(),W=null!=c?c:P,U=null!=u?u:_,V=E.includes(a),G=!D&&V,q=F(j,a),K=pN(a,L,v,y),X=K.active,Y=gd(K,RN),Q=qh(z.useState(!1),2),J=Q[0],Z=Q[1],ee=function(e){L||Z(e)},te=z.useMemo((function(){return X||"inline"!==C&&(J||F([$],a))}),[C,X,$,J,a,F]),ne=hN(R.length),re=uN((function(e){null==h||h(bN(e)),N(e)})),oe=x&&"".concat(x,"-popup"),ae=z.createElement("div",jp({role:"menuitem",style:ne,className:"".concat(M,"-title"),tabIndex:L?null:-1,ref:B,title:"string"==typeof o?o:null,"data-menu-id":D&&x?null:x,"aria-expanded":G,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":L,onClick:function(e){L||(null==b||b({key:a,domEvent:e}),"inline"===C&&I(a,!V))},onFocus:function(){T(a)}},Y),o,z.createElement(gN,{icon:"horizontal"!==C?U:void 0,props:hh(hh({},e),{},{isOpen:G,isSubMenu:!0})},z.createElement("i",{className:"".concat(M,"-arrow")}))),ie=z.useRef(C);if("inline"!==C&&R.length>1?ie.current="vertical":ie.current=C,!D){var se=ie.current;ae=z.createElement(TN,{mode:se,prefixCls:M,visible:!s&&G&&"inline"!==C,popupClassName:d,popupOffset:f,popupStyle:p,popup:z.createElement(L_,{mode:"horizontal"===se?"vertical":se},z.createElement(DN,{id:oe,ref:H},l)),disabled:L,onVisibleChange:function(e){"inline"!==C&&I(a,e)}},ae)}var le=z.createElement(D$.Item,jp({role:"none"},w,{component:"li",style:n,className:Dm(M,"".concat(M,"-").concat(C),r,(t={},hd(t,"".concat(M,"-open"),G),hd(t,"".concat(M,"-active"),te),hd(t,"".concat(M,"-selected"),q),hd(t,"".concat(M,"-disabled"),L),t)),onMouseEnter:function(e){ee(!0),null==g||g({key:a,domEvent:e})},onMouseLeave:function(e){ee(!1),null==m||m({key:a,domEvent:e})}}),ae,!D&&z.createElement(AN,{id:oe,open:G,keyPath:R},l));return A&&(le=A(le,e,{selected:q,active:te,open:G,disabled:L})),z.createElement(L_,{onItemClick:re,mode:"horizontal"===C?"vertical":C,itemIcon:W,expandIcon:U},le)};function LN(e){var t,n=e.eventKey,r=e.children,o=U_(n),a=$N(r,o),i=H_();return z.useEffect((function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}}),[o]),t=i?a:z.createElement(MN,e,a),z.createElement(W_.Provider,{value:o},t)}var BN=["className","title","eventKey","children"],zN=["children"],HN=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=gd(e,BN),a=z.useContext(M_).prefixCls,i="".concat(a,"-item-group");return z.createElement("li",jp({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:Dm(i,t)}),z.createElement("div",{role:"presentation",className:"".concat(i,"-title"),title:"string"==typeof n?n:void 0},n),z.createElement("ul",{role:"group",className:"".concat(i,"-list")},r))};function WN(e){var t=e.children,n=gd(e,zN),r=$N(t,U_(n.eventKey));return H_()?r:z.createElement(HN,Fb(n,["warnKey"]),r)}function UN(e){var t=e.className,n=e.style,r=z.useContext(M_).prefixCls;return H_()?null:z.createElement("li",{role:"separator",className:Dm("".concat(r,"-item-divider"),t),style:n})}var VN=["label","children","key","type"];function GN(e){return(e||[]).map((function(e,t){if(e&&"object"===fd(e)){var n=e,r=n.label,o=n.children,a=n.key,i=n.type,s=gd(n,VN),l=null!=a?a:"tmp-".concat(t);return o||"group"===i?"group"===i?z.createElement(WN,jp({key:l},s,{title:r}),GN(o)):z.createElement(LN,jp({key:l},s,{title:r}),GN(o)):"divider"===i?z.createElement(UN,jp({key:l},s)):z.createElement(CN,jp({key:l},s),r)}return null})).filter((function(e){return e}))}function qN(e,t,n){var r=e;return t&&(r=GN(t)),$N(r,n)}var KN=["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"],XN=[],YN=z.forwardRef((function(e,t){var n,r,o=e,a=o.prefixCls,i=void 0===a?"rc-menu":a,s=o.rootClassName,l=o.style,c=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,h=o.direction,g=o.id,m=o.mode,b=void 0===m?"vertical":m,v=o.inlineCollapsed,y=o.disabled,w=o.disabledOverflow,x=o.subMenuOpenDelay,S=void 0===x?.1:x,k=o.subMenuCloseDelay,C=void 0===k?.1:k,E=o.forceSubMenuRender,O=o.defaultOpenKeys,D=o.openKeys,$=o.activeKey,j=o.defaultActiveFirst,P=o.selectable,_=void 0===P||P,N=o.multiple,I=void 0!==N&&N,T=o.defaultSelectedKeys,A=o.selectedKeys,F=o.onSelect,R=o.onDeselect,M=o.inlineIndent,L=void 0===M?24:M,B=o.motion,H=o.defaultMotions,W=o.triggerSubMenuAction,U=void 0===W?"hover":W,V=o.builtinPlacements,G=o.itemIcon,q=o.expandIcon,K=o.overflowedIndicator,X=void 0===K?"...":K,Y=o.overflowedIndicatorPopupClassName,Q=o.getPopupContainer,J=o.onClick,Z=o.onOpenChange,ee=o.onKeyDown;o.openAnimation,o.openTransitionName;var te=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,re=gd(o,KN),oe=z.useMemo((function(){return qN(p,f,XN)}),[p,f]),ae=qh(z.useState(!1),2),ie=ae[0],se=ae[1],le=z.useRef(),ce=function(e){var t=qh(_y(e,{value:e}),2),n=t[0],r=t[1];return z.useEffect((function(){fN+=1;var e="".concat(dN,"-").concat(fN);r("rc-menu-uuid-".concat(e))}),[]),n}(g),ue="rtl"===h,de=qh(_y(O,{value:D,postState:function(e){return e||XN}}),2),fe=de[0],pe=de[1],he=function(e){function t(){pe(e),null==Z||Z(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?ad.flushSync(t):t()},ge=qh(z.useState(fe),2),me=ge[0],be=ge[1],ve=z.useRef(!1),ye=qh(z.useMemo((function(){return"inline"!==b&&"vertical"!==b||!v?[b,!1]:["vertical",v]}),[b,v]),2),we=ye[0],xe=ye[1],Se="inline"===we,ke=qh(z.useState(we),2),Ce=ke[0],Ee=ke[1],Oe=qh(z.useState(xe),2),De=Oe[0],$e=Oe[1];z.useEffect((function(){Ee(we),$e(xe),ve.current&&(Se?pe(me):he(XN))}),[we,xe]);var je=qh(z.useState(0),2),Pe=je[0],_e=je[1],Ne=Pe>=oe.length-1||"horizontal"!==Ce||w;z.useEffect((function(){Se&&be(fe)}),[fe]),z.useEffect((function(){return ve.current=!0,function(){ve.current=!1}}),[]);var Ie=cN(),Te=Ie.registerPath,Ae=Ie.unregisterPath,Fe=Ie.refreshOverflowKeys,Re=Ie.isSubPathKey,Me=Ie.getKeyPath,Le=Ie.getKeys,Be=Ie.getSubPathKeys,ze=z.useMemo((function(){return{registerPath:Te,unregisterPath:Ae}}),[Te,Ae]),He=z.useMemo((function(){return{isSubPathKey:Re}}),[Re]);z.useEffect((function(){Fe(Ne?XN:oe.slice(Pe+1).map((function(e){return e.key})))}),[Pe,Ne]);var We=qh(_y($||j&&(null===(n=oe[0])||void 0===n?void 0:n.key),{value:$}),2),Ue=We[0],Ve=We[1],Ge=uN((function(e){Ve(e)})),qe=uN((function(){Ve(void 0)}));z.useImperativeHandle(t,(function(){return{list:le.current,focus:function(e){var t,n,r,o,a=null!=Ue?Ue:null===(t=oe.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;a&&(null===(n=le.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(A_(ce,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var Ke=qh(_y(T||[],{value:A,postState:function(e){return Array.isArray(e)?e:null==e?XN:[e]}}),2),Xe=Ke[0],Ye=Ke[1],Qe=uN((function(e){null==J||J(bN(e)),function(e){if(_){var t,n=e.key,r=Xe.includes(n);t=I?r?Xe.filter((function(e){return e!==n})):[].concat(fh(Xe),[n]):[n],Ye(t);var o=hh(hh({},e),{},{selectedKeys:t});r?null==R||R(o):null==F||F(o)}!I&&fe.length&&"inline"!==Ce&&he(XN)}(e)})),Je=uN((function(e,t){var n=fe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ce){var r=Be(e);n=n.filter((function(e){return!r.has(e)}))}Sh(fe,n,!0)||he(n,!0)})),Ze=aN(Ce,Ue,ue,ce,le,Le,Me,Ve,(function(e,t){var n=null!=t?t:!fe.includes(e);Je(e,n)}),ee);z.useEffect((function(){se(!0)}),[]);var et=z.useMemo((function(){return{_internalRenderMenuItem:te,_internalRenderSubMenuItem:ne}}),[te,ne]),tt="horizontal"!==Ce||w?oe:oe.map((function(e,t){return z.createElement(L_,{key:e.key,overflowDisabled:t>Pe},e)})),nt=z.createElement(D$,jp({id:g,ref:le,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:CN,className:Dm(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ce),c,(r={},hd(r,"".concat(i,"-inline-collapsed"),De),hd(r,"".concat(i,"-rtl"),ue),r),s),dir:h,style:l,role:"menu",tabIndex:d,data:tt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?oe.slice(-t):null;return z.createElement(LN,{eventKey:lN,title:X,disabled:Ne,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==Ce||w?D$.INVALIDATE:D$.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){_e(e)},onKeyDown:Ze},re));return z.createElement(G_.Provider,{value:et},z.createElement(T_.Provider,{value:ce},z.createElement(L_,{prefixCls:i,rootClassName:s,mode:Ce,openKeys:fe,rtl:ue,disabled:y,motion:ie?B:null,defaultMotions:ie?H:null,activeKey:Ue,onActive:Ge,onInactive:qe,selectedKeys:Xe,inlineIndent:L,subMenuOpenDelay:S,subMenuCloseDelay:C,forceSubMenuRender:E,builtinPlacements:V,triggerSubMenuAction:U,getPopupContainer:Q,itemIcon:G,expandIcon:q,onItemClick:Qe,onOpenChange:Je},z.createElement(V_.Provider,{value:He},nt),z.createElement("div",{style:{display:"none"},"aria-hidden":!0},z.createElement(z_.Provider,{value:ze},oe)))))}));YN.Item=CN,YN.SubMenu=LN,YN.ItemGroup=WN,YN.Divider=UN,globalThis&&globalThis.__rest;const QN=z.createContext({});var JN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ZN=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=JN(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=z.useContext(uy),i=a("menu",t),s=Dm({[`${i}-item-divider-dashed`]:!!r},n);return z.createElement(UN,Object.assign({className:s},o))},eI=z.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),tI=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:i}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=z.useContext(eI),{siderCollapsed:f}=z.useContext(QN);let p=a;void 0===a?p=l?r:"":!1===a&&(p="");const h={title:p};f||d||(h.title=null,h.open=!1);const g=qm(r).length;let m=z.createElement(CN,Object.assign({},Fb(e,["title","icon","danger"]),{className:Dm({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof a?a:void 0}),Mx(o,{className:Dm(Fx(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=z.createElement("span",{className:`${s}-title-content`},r);return(!o||Fx(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?z.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(m=z.createElement(x_,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),m)),m},nI=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=z.useContext(eI),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=U_();let d;if(r){const e=Fx(o)&&"span"===o.type;d=z.createElement(z.Fragment,null,Mx(r,{className:Dm(Fx(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:z.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?z.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):z.createElement("span",{className:`${s}-title-content`},o);const f=z.useMemo((()=>Object.assign(Object.assign({},i),{firstLevel:!1})),[i]),[p]=dS("Menu");return z.createElement(eI.Provider,{value:f},z.createElement(LN,Object.assign({},Fb(e,["icon"]),{title:d,popupClassName:Dm(s,n,`${s}-${a||c}`),popupStyle:{zIndex:p}})))};const rI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var oI=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:rI}))};const aI=z.forwardRef(oI);var iI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function sI(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:a,type:i}=n,s=iI(n,["label","children","key","type"]),l=null!=a?a:`tmp-${t}`;return o||"group"===i?"group"===i?z.createElement(WN,Object.assign({key:l},s,{title:r}),sI(o)):z.createElement(nI,Object.assign({key:l},s,{title:r}),sI(o)):"divider"===i?z.createElement(ZN,Object.assign({key:l},s)):z.createElement(tI,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function lI(e){return z.useMemo((()=>e?sI(e):e),[e])}globalThis&&globalThis.__rest;const cI=z.createContext(null),uI=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${a}px ${i} ${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"}}}},dI=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})`}}}}},fI=e=>Object.assign({},Ry(e)),pI=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:S,dangerItemSelectedColor:k,dangerItemActiveBg:C,dangerItemSelectedBg:E,itemHoverBg:O,itemActiveBg:D,menuSubMenuBg:$,horizontalItemSelectedColor:j,horizontalItemSelectedBg:P,horizontalItemBorderRadius:_,horizontalItemHoverBg:N,popupBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},fI(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},fI(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:$},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:c,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:c,borderBottomColor:j}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background: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:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(",")}}}}}},hI=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,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+a+i}}},gI=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},hI(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},hI(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${2.5*i}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${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({},Iy),{paddingInline:p})}}]},mI=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:i,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, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`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`]:{[`> ${i}, > ${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"}}}},bI=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*a,height:.15*a,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},vI=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:g,lineType:m,menuPanelMaskInset:b,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ty(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:y,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mI(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:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},mI(e)),bI(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),bI(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"}}}]};var yI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wI=z.forwardRef(((e,t)=>{var n,r;const o=z.useContext(cI),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=z.useContext(uy),u=i(),{prefixCls:d,className:f,style:p,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:b,siderCollapsed:v,items:y,children:w,rootClassName:x,mode:S,selectable:k,onClick:C,overflowedIndicatorPopupClassName:E}=e,O=Fb(yI(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),D=lI(y)||w;null===(n=a.validator)||void 0===n||n.call(a,{mode:S});const $=$y((function(){var e;null==C||C.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),j=a.mode||S,P=null!=k?k:a.selectable,_=z.useMemo((()=>void 0!==v?v:b),[b,v]),N={horizontal:{motionName:`${u}-slide-up`},inline:qS(u),other:{motionName:`${u}-zoom-big`}},I=i("menu",d||a.prefixCls),[T,A]=((e,t)=>Vy("Menu",(e=>{if(!1===t)return[];const{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:a,fontSize:i,darkItemColor:s,darkDangerItemColor:l,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:d,darkItemSelectedBg:f,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:b,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:w}=e,x=i/7*5,S=zy(e,{menuArrowSize:x,menuHorizontalHeight:1.15*a,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),k=zy(S,{itemColor:s,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:v,dangerItemSelectedColor:y,dangerItemActiveBg:w,dangerItemSelectedBg:p,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[vI(S),uI(S),gI(S),pI(S,"light"),pI(k,"dark"),dI(S),YO(S),AO(S,"slide-up"),AO(S,"slide-down"),XO(S,"zoom-big")]}),(e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:a,colorTextDescription:i,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:h,lineHeight:g,colorBgElevated:m,marginXXS:b,padding:v,fontSize:y,controlHeightSM:w,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:k}=e,C=new Pv(S).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:i,groupTitleColor:i,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:c,itemActiveBg:f,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:g,collapsedWidth:2*h,popupBg:m,itemMarginBlock:b,itemPaddingInline:v,horizontalLineHeight:1.15*h+"px",iconSize:y,iconMarginInlineEnd:w-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new Pv(S).setAlpha(.25).toRgbString(),darkItemColor:C,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:C,darkItemHoverColor:S,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e))(I,!o),F=Dm(`${I}-${h}`,null==c?void 0:c.className,f);let R;if("function"==typeof g)R=g;else if(null===g||!1===g)R=null;else if(null===a.expandIcon||!1===a.expandIcon)R=null;else{const e=null!=g?g:a.expandIcon;R=Mx(e,{className:Dm(`${I}-submenu-expand-icon`,Fx(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const M=z.useMemo((()=>({prefixCls:I,inlineCollapsed:_||!1,direction:l,firstLevel:!0,theme:h,mode:j,disableMenuItemTitleTooltip:m})),[I,_,l,m,h]);return T(z.createElement(cI.Provider,{value:null},z.createElement(eI.Provider,{value:M},z.createElement(YN,Object.assign({getPopupContainer:s,overflowedIndicator:z.createElement(aI,null),overflowedIndicatorPopupClassName:Dm(I,`${I}-${h}`,E),mode:j,selectable:P,onClick:$},O,{inlineCollapsed:_,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:F,prefixCls:I,direction:l,defaultMotions:N,expandIcon:R,ref:t,rootClassName:Dm(x,A)}),D))))})),xI=z.forwardRef(((e,t)=>{const n=z.useRef(null),r=z.useContext(QN);return z.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),z.createElement(wI,Object.assign({ref:n},e,r))}));xI.Item=tI,xI.SubMenu=nI,xI.Divider=ZN,xI.ItemGroup=WN;const SI=xI,kI=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),CI=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),EI=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),OI=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},CI(zy(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),DI=e=>{const{paddingBlockLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,paddingInlineLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},$I=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),jI=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,errorActiveShadow:a,warningActiveShadow:i,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &:focus-within":Object.assign({},EI(zy(e,{activeBorderColor:r,activeShadow:a}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:l},"&:focus, &:focus-within":Object.assign({},EI(zy(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},PI=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}`},kI(e.colorTextPlaceholder)),{"&:hover":Object.assign({},CI(e)),"&:focus, &:focus-within":Object.assign({},EI(e)),"&-disabled, &[disabled]":Object.assign({},OI(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({},DI(e)),"&-sm":Object.assign({},$I(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),_I=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({},DI(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},$I(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.paddingInline}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.addonBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.paddingBlock+1}px -${e.paddingInline}px`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.paddingInline}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},NI=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({},Ty(e)),PI(e)),jI(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"}})}},II=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`}}}},TI=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},PI(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),II(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),jI(e,`${t}-affix-wrapper`))}},AI=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ty(e)),_I(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:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},OI(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}}}})}},FI=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}}}}},RI=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"}}}}}},MI=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function LI(e){return zy(e,{inputAffixPadding:e.paddingXXS})}const BI=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:b,colorWarningOutline:v}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${v}`,hoverBg:"",activeBg:""}},zI=Vy("Input",(e=>{const t=zy(e,LI(e));return[NI(t),RI(t),TI(t),AI(t),FI(t),MI(t),nC(t)]}),BI),HI=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=Dm({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=Dm({[`${t}-circle`]:"circle"===a,[`${t}-square`]:"square"===a,[`${t}-round`]:"round"===a}),l=z.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return z.createElement("span",{className:Dm(t,i,s,n),style:Object.assign(Object.assign({},l),r)})},WI=new ym("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),UI=e=>({height:e,lineHeight:`${e}px`}),VI=e=>Object.assign({width:e},UI(e)),GI=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:WI,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),qI=e=>Object.assign({width:5*e,minWidth:5*e},UI(e)),KI=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},VI(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},VI(o)),[`${t}${t}-sm`]:Object.assign({},VI(a))}},XI=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},qI(t)),[`${r}-lg`]:Object.assign({},qI(o)),[`${r}-sm`]:Object.assign({},qI(a))}},YI=e=>Object.assign({width:e},UI(e)),QI=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},YI(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},YI(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},JI=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},ZI=e=>Object.assign({width:2*e,minWidth:2*e},UI(e)),eT=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:i}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:2*r,minWidth:2*r},ZI(r))},JI(e,r,n)),{[`${n}-lg`]:Object.assign({},ZI(o))}),JI(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ZI(a))}),JI(e,a,`${n}-sm`))},tT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:b,controlHeightXS:v,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},VI(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},VI(c)),[`${n}-sm`]:Object.assign({},VI(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:v}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},eT(e)),KI(e)),XI(e)),QI(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${a},\n ${i},\n ${s}\n `]:Object.assign({},GI(e))}}},nT=Vy("Skeleton",(e=>{const{componentCls:t}=e,n=zy(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[tT(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"]]}),rT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=z.useContext(uy),l=s("skeleton",t),[c,u]=nT(l),d=Fb(e,["prefixCls","className"]),f=Dm(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(z.createElement("div",{className:f},z.createElement(HI,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:i},d))))},oT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=z.useContext(uy),l=s("skeleton",t),[c,u]=nT(l),d=Fb(e,["prefixCls"]),f=Dm(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(z.createElement("div",{className:f},z.createElement(HI,Object.assign({prefixCls:`${l}-button`,size:i},d))))},aT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=z.useContext(uy),s=i("skeleton",t),[l,c]=nT(s),u=Dm(s,`${s}-element`,{[`${s}-active`]:a},n,r,c);return l(z.createElement("div",{className:u},z.createElement("div",{className:Dm(`${s}-image`,n),style:o},z.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},z.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`})))))},iT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=z.useContext(uy),l=s("skeleton",t),[c,u]=nT(l),d=Fb(e,["prefixCls"]),f=Dm(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(z.createElement("div",{className:f},z.createElement(HI,Object.assign({prefixCls:`${l}-input`,size:i},d))))};const sT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var lT=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:sT}))};const cT=z.forwardRef(lT),uT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=z.useContext(uy),l=s("skeleton",t),[c,u]=nT(l),d=Dm(l,`${l}-element`,{[`${l}-active`]:a},u,n,r),f=null!=i?i:z.createElement(cT,null);return c(z.createElement("div",{className:d},z.createElement("div",{className:Dm(`${l}-image`,n),style:o},f)))},dT=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:a}=e,i=fh(Array(a)).map(((e,n)=>z.createElement("li",{key:n,style:{width:t(n)}})));return z.createElement("ul",{className:Dm(n,r),style:o},i)},fT=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return z.createElement("h3",{className:Dm(t,n),style:Object.assign({width:r},o)})};function pT(e){return e&&"object"==typeof e?e:{}}const hT=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:i,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p,skeleton:h}=z.useContext(uy),g=f("skeleton",t),[m,b]=nT(g);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let i,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),pT(s));i=z.createElement("div",{className:`${g}-header`},z.createElement(HI,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)),pT(l));r=z.createElement(fT,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)),pT(c));o=z.createElement(dT,Object.assign({},n))}f=z.createElement("div",{className:`${g}-content`},r,o)}const v=Dm(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===p,[`${g}-round`]:d},null==h?void 0:h.className,r,o,b);return m(z.createElement("div",{className:v,style:Object.assign(Object.assign({},null==h?void 0:h.style),a)},i,f))}return void 0!==i?i:null};hT.Button=oT,hT.Avatar=rT,hT.Input=iT,hT.Image=aT,hT.Node=uT;const gT=hT;const mT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var bT=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:mT}))};const vT=z.forwardRef(bT),yT=z.createContext(null);var wT=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,s=e.tabKey,l=e.children;return z.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!i,style:o,className:Dm(n,i&&"".concat(n,"-active"),r),ref:t},l)})),xT=["key","forceRender","style","className","destroyInactiveTabPane"];function ST(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=z.useContext(yT),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return z.createElement("div",{className:Dm("".concat(s,"-content-holder"))},z.createElement("div",{className:Dm("".concat(s,"-content"),"".concat(s,"-content-").concat(o),hd({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,i=e.forceRender,s=e.style,l=e.className,d=e.destroyInactiveTabPane,f=gd(e,xT),p=o===n;return z.createElement(_w,jp({key:o,visible:p,forceRender:i,removeOnLeave:!(!a&&!d),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return z.createElement(wT,jp({},f,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:hh(hh({},s),r),className:Dm(l,a),ref:n}))}))}))))}var kT={width:0,height:0,left:0,top:0};function CT(e,t){var n=z.useRef(e),r=qh(z.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var ET=.1,OT=.01,DT=20,$T=Math.pow(.995,DT);function jT(e){var t=qh(z.useState(0),2),n=t[0],r=t[1],o=z.useRef(0),a=z.useRef();return a.current=e,cg((function(){var e;null===(e=a.current)||void 0===e||e.call(a)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var PT={width:0,height:0,left:0,top:0,right:0};function _T(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}var NT="TABS_DQ";function IT(e){return String(e).replace(/"/g,NT)}function TT(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function AT(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return r&&!1!==r.showAdd?z.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}const FT=z.forwardRef(AT);var RT=z.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var i={};return"object"!==fd(a)||z.isValidElement(a)?i.right=a:i=a,"right"===r&&(n=i.right),"left"===r&&(n=i.left),n?z.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}));function MT(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,i=e.mobile,s=e.moreIcon,l=void 0===s?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,m=e.onTabClick,b=e.getPopupContainer,v=e.popupClassName,y=qh(z.useState(!1),2),w=y[0],x=y[1],S=qh(z.useState(null),2),k=S[0],C=S[1],E="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),D=null!==k?"".concat(E,"-").concat(k):null,$=null==a?void 0:a.dropdownAriaLabel;var j=z.createElement(YN,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),x(!1)},prefixCls:"".concat(O,"-menu"),id:E,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[k],"aria-label":void 0!==$?$:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,i=e.label,s=TT(t,o,f,n);return z.createElement(CN,{key:a,id:"".concat(E,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},z.createElement("span",null,i),s&&z.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,a)}},o||f.removeIcon||"×"))})));function P(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,a=0;a<r;a+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void C(i.key)}}z.useEffect((function(){var e=document.getElementById(D);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),z.useEffect((function(){w||C(null)}),[w]);var _=hd({},h?"marginRight":"marginLeft",p);o.length||(_.visibility="hidden",_.order=1);var N=Dm(hd({},"".concat(O,"-rtl"),h)),I=i?null:z.createElement(I_,{prefixCls:O,overlay:j,trigger:["hover"],visible:!!o.length&&w,transitionName:c,onVisibleChange:x,overlayClassName:Dm(N,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},z.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:_,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":E,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case Gx.UP:P(-1),e.preventDefault();break;case Gx.DOWN:P(1),e.preventDefault();break;case Gx.ESC:x(!1);break;case Gx.SPACE:case Gx.ENTER:null!==k&&m(k,e)}else[Gx.DOWN,Gx.SPACE,Gx.ENTER].includes(t)&&(x(!0),e.preventDefault())}},l));return z.createElement("div",{className:Dm("".concat(n,"-nav-operations"),d),style:u,ref:t},I,z.createElement(FT,{prefixCls:n,locale:a,editable:f}))}const LT=z.memo(z.forwardRef(MT),(function(e,t){return t.tabMoving}));function BT(e){var t,n=e.prefixCls,r=e.id,o=e.active,a=e.tab,i=a.key,s=a.label,l=a.disabled,c=a.closeIcon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,p=e.editable,h=e.onClick,g=e.onFocus,m=e.style,b="".concat(n,"-tab"),v=TT(u,c,p,l);function y(e){l||h(e)}var w=z.createElement("div",{key:i,"data-node-key":IT(i),className:Dm(b,(t={},hd(t,"".concat(b,"-with-remove"),v),hd(t,"".concat(b,"-active"),o),hd(t,"".concat(b,"-disabled"),l),t)),style:m,onClick:y},z.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(i),className:"".concat(b,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(i),"aria-disabled":l,tabIndex:l?null:0,onClick:function(e){e.stopPropagation(),y(e)},onKeyDown:function(e){[Gx.SPACE,Gx.ENTER].includes(e.which)&&(e.preventDefault(),y(e))},onFocus:g},s),v&&z.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),p.onEdit("remove",{key:i,event:t})}},c||p.removeIcon||"×"));return d?d(w):w}var zT=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,a=void 0===o?0:o;if(e.current){var i=e.current.getBoundingClientRect(),s=i.width,l=i.height;if(Math.abs(s-r)<1)return[s,l]}return[r,a]},HT=function(e,t){return e[t?0:1]};function WT(e,t){var n,r,o,a,i,s,l=z.useContext(yT),c=l.prefixCls,u=l.tabs,d=e.className,f=e.style,p=e.id,h=e.animated,g=e.activeKey,m=e.rtl,b=e.extra,v=e.editable,y=e.locale,w=e.tabPosition,x=e.tabBarGutter,S=e.children,k=e.onTabClick,C=e.onTabScroll,E=e.indicatorSize,O=z.useRef(),D=z.useRef(),$=z.useRef(),j=z.useRef(),P=z.useRef(),_=z.useRef(),N=z.useRef(),I="top"===w||"bottom"===w,T=qh(CT(0,(function(e,t){I&&C&&C({direction:e>t?"left":"right"})})),2),A=T[0],F=T[1],R=qh(CT(0,(function(e,t){!I&&C&&C({direction:e>t?"top":"bottom"})})),2),M=R[0],L=R[1],B=qh(z.useState([0,0]),2),H=B[0],W=B[1],U=qh(z.useState([0,0]),2),V=U[0],G=U[1],q=qh(z.useState([0,0]),2),K=q[0],X=q[1],Y=qh(z.useState([0,0]),2),Q=Y[0],J=Y[1],Z=(r=new Map,o=z.useRef([]),a=qh(z.useState({}),2)[1],i=z.useRef("function"==typeof r?r():r),s=jT((function(){var e=i.current;o.current.forEach((function(t){e=t(e)})),o.current=[],i.current=e,a({})})),[i.current,function(e){o.current.push(e),s()}]),ee=qh(Z,2),te=ee[0],ne=ee[1],re=function(e,t,n){return z.useMemo((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||kT,a=o.left+o.width,i=0;i<e.length;i+=1){var s,l=e[i].key,c=t.get(l);c||(c=t.get(null===(s=e[i-1])||void 0===s?void 0:s.key)||kT);var u=r.get(l)||hh({},c);u.right=a-u.left-u.width,r.set(l,u)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(u,te,V[0]),oe=HT(H,I),ae=HT(V,I),ie=HT(K,I),se=HT(Q,I),le=oe<ae+ie,ce=le?oe-se:oe-ie,ue="".concat(c,"-nav-operations-hidden"),de=0,fe=0;function pe(e){return e<de?de:e>fe?fe:e}I&&m?(de=0,fe=Math.max(0,ae-ce)):(de=Math.min(0,ce-ae),fe=0);var he=z.useRef(),ge=qh(z.useState(),2),me=ge[0],be=ge[1];function ve(){be(Date.now())}function ye(){window.clearTimeout(he.current)}!function(e,t){var n=qh(z.useState(),2),r=n[0],o=n[1],a=qh(z.useState(0),2),i=a[0],s=a[1],l=qh(z.useState(0),2),c=l[0],u=l[1],d=qh(z.useState(),2),f=d[0],p=d[1],h=z.useRef(),g=z.useRef(),m=z.useRef(null);m.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],a=n.screenX,l=n.screenY;o({x:a,y:l});var c=a-r.x,d=l-r.y;t(c,d);var f=Date.now();s(f),u(f-i),p({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),p(null),f)){var e=f.x/c,n=f.y/c,a=Math.abs(e),i=Math.abs(n);if(Math.max(a,i)<ET)return;var s=e,l=n;h.current=window.setInterval((function(){Math.abs(s)<OT&&Math.abs(l)<OT?window.clearInterval(h.current):t((s*=$T)*DT,(l*=$T)*DT)}),DT)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,a=Math.abs(n),i=Math.abs(r);a===i?o="x"===g.current?n:r:a>i?(o=n,g.current="x"):(o=r,g.current="y"),t(-o,-o)&&e.preventDefault()}},z.useEffect((function(){function t(e){m.current.onTouchMove(e)}function n(e){m.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){m.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){m.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(j,(function(e,t){function n(e,t){e((function(e){return pe(e+t)}))}return!!le&&(I?n(F,e):n(L,t),ye(),ve(),!0)})),z.useEffect((function(){return ye(),me&&(he.current=window.setTimeout((function(){be(0)}),100)),ye}),[me]);var we=function(e,t,n,r,o,a,i){var s,l,c,u=i.tabs,d=i.tabPosition,f=i.rtl;return["top","bottom"].includes(d)?(s="width",l=f?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),z.useMemo((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;o<n;o+=1){var a=e.get(u[o].key)||PT;if(a[l]+a[s]>c+t){r=o-1;break}}for(var i=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||PT)[l]<c){i=d+1;break}return i>=r?[0,0]:[i,r]}),[e,t,r,o,a,c,d,u.map((function(e){return e.key})).join("_"),f])}(re,ce,I?A:M,ae,ie,se,hh(hh({},e),{},{tabs:u})),xe=qh(we,2),Se=xe[0],ke=xe[1],Ce=$y((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(I){var n=A;m?t.right<A?n=t.right:t.right+t.width>A+ce&&(n=t.right+t.width-ce):t.left<-A?n=-t.left:t.left+t.width>-A+ce&&(n=-(t.left+t.width-ce)),L(0),F(pe(n))}else{var r=M;t.top<-M?r=-t.top:t.top+t.height>-M+ce&&(r=-(t.top+t.height-ce)),F(0),L(pe(r))}})),Ee={};"top"===w||"bottom"===w?Ee[m?"marginRight":"marginLeft"]=x:Ee.marginTop=x;var Oe=u.map((function(e,t){var n=e.key;return z.createElement(BT,{id:p,prefixCls:c,key:n,tab:e,style:0===t?void 0:Ee,closable:e.closable,editable:v,active:n===g,renderWrapper:S,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){k(n,e)},onFocus:function(){Ce(n),ve(),j.current&&(m||(j.current.scrollLeft=0),j.current.scrollTop=0)}})})),De=function(){return ne((function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return u.forEach((function(e){var r,o=e.key,a=null===(r=P.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(IT(o),'"]'));if(a){var i=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,a=e.offsetLeft,i=e.getBoundingClientRect(),s=i.width,l=i.height,c=i.x,u=i.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,r,a,o]}(a,n),s=qh(i,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(o,{width:l,height:c,left:u,top:d})}})),t}))};z.useEffect((function(){De()}),[u.map((function(e){return e.key})).join("_")]);var $e=jT((function(){var e=zT(O),t=zT(D),n=zT($);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=zT(N);X(r);var o=zT(_);J(o);var a=zT(P);G([a[0]-r[0],a[1]-r[1]]),De()})),je=u.slice(0,Se),Pe=u.slice(ke+1),_e=[].concat(fh(je),fh(Pe)),Ne=re.get(g),Ie=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicatorSize,a=qh(z.useState(),2),i=a[0],s=a[1],l=z.useRef(),c=function(e){return"function"==typeof o?o(e):"number"==typeof o?o:e};function u(){Hb.cancel(l.current)}return z.useEffect((function(){var e={};return t&&(n?(r?(e.right=t.right+t.width/2,e.transform="translateX(50%)"):(e.left=t.left+t.width/2,e.transform="translateX(-50%)"),e.width=c(t.width)):(e.top=t.top+t.height/2,e.transform="translateY(-50%)",e.height=c(t.height))),u(),l.current=Hb((function(){s(e)})),u}),[t,n,r,o]),{style:i}}({activeTabOffset:Ne,horizontal:I,rtl:m,indicatorSize:E}),Te=Ie.style;z.useEffect((function(){Ce()}),[g,de,fe,_T(Ne),_T(re),I]),z.useEffect((function(){$e()}),[m]);var Ae,Fe,Re,Me,Le=!!_e.length,Be="".concat(c,"-nav-wrap");return I?m?(Fe=A>0,Ae=A!==fe):(Ae=A<0,Fe=A!==de):(Re=M<0,Me=M!==de),z.createElement(Ab,{onResize:$e},z.createElement("div",{ref:Jm(t,O),role:"tablist",className:Dm("".concat(c,"-nav"),d),style:f,onKeyDown:function(){ve()}},z.createElement(RT,{ref:D,position:"left",extra:b,prefixCls:c}),z.createElement(Ab,{onResize:$e},z.createElement("div",{className:Dm(Be,(n={},hd(n,"".concat(Be,"-ping-left"),Ae),hd(n,"".concat(Be,"-ping-right"),Fe),hd(n,"".concat(Be,"-ping-top"),Re),hd(n,"".concat(Be,"-ping-bottom"),Me),n)),ref:j},z.createElement(Ab,{onResize:$e},z.createElement("div",{ref:P,className:"".concat(c,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(M,"px)"),transition:me?"none":void 0}},Oe,z.createElement(FT,{ref:N,prefixCls:c,locale:y,editable:v,style:hh(hh({},0===Oe.length?void 0:Ee),{},{visibility:Le?"hidden":null})}),z.createElement("div",{className:Dm("".concat(c,"-ink-bar"),hd({},"".concat(c,"-ink-bar-animated"),h.inkBar)),style:Te}))))),z.createElement(LT,jp({},e,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:_,prefixCls:c,tabs:_e,className:!Le&&ue,tabMoving:!!me})),z.createElement(RT,{ref:$,position:"right",extra:b,prefixCls:c})))}const UT=z.forwardRef(WT);var VT=["renderTabBar"],GT=["label","key"];function qT(e){var t=e.renderTabBar,n=gd(e,VT),r=z.useContext(yT).tabs;return t?t(hh(hh({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=gd(e,GT);return z.createElement(wT,jp({tab:t,key:n,tabKey:n},r))}))}),UT):z.createElement(UT,n)}var KT=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],XT=0;function YT(e,t){var n,r=e.id,o=e.prefixCls,a=void 0===o?"rc-tabs":o,i=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=void 0===p?"top":p,g=e.tabBarGutter,m=e.tabBarStyle,b=e.tabBarExtraContent,v=e.locale,y=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,S=e.renderTabBar,k=e.onChange,C=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,D=e.popupClassName,$=e.indicatorSize,j=gd(e,KT),P=z.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===fd(e)&&"key"in e}))}),[s]),_="rtl"===l,N=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:hh({inkBar:!0},"object"===fd(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),I=qh(z.useState(!1),2),T=I[0],A=I[1];z.useEffect((function(){A(i$())}),[]);var F=qh(_y((function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:u}),2),R=F[0],M=F[1],L=qh(z.useState((function(){return P.findIndex((function(e){return e.key===R}))})),2),B=L[0],H=L[1];z.useEffect((function(){var e,t=P.findIndex((function(e){return e.key===R}));-1===t&&(t=Math.max(0,Math.min(B,P.length-1)),M(null===(e=P[t])||void 0===e?void 0:e.key));H(t)}),[P.map((function(e){return e.key})).join("_"),R,B]);var W=qh(_y(null,{value:r}),2),U=W[0],V=W[1];z.useEffect((function(){r||(V("rc-tabs-".concat(XT)),XT+=1)}),[]);var G={id:U,activeKey:R,animated:N,tabPosition:h,rtl:_,mobile:T},q=hh(hh({},G),{},{editable:d,locale:v,moreIcon:y,moreTransitionName:w,tabBarGutter:g,onTabClick:function(e,t){null==C||C(e,t);var n=e!==R;M(e),n&&(null==k||k(e))},onTabScroll:E,extra:b,style:m,panes:null,getPopupContainer:O,popupClassName:D,indicatorSize:$});return z.createElement(yT.Provider,{value:{tabs:P,prefixCls:a}},z.createElement("div",jp({ref:t,id:r,className:Dm(a,"".concat(a,"-").concat(h),(n={},hd(n,"".concat(a,"-mobile"),T),hd(n,"".concat(a,"-editable"),d),hd(n,"".concat(a,"-rtl"),_),n),i)},j),z.createElement(qT,jp({},q,{renderTabBar:S})),z.createElement(ST,jp({destroyInactiveTabPane:x},G,{animated:N}))))}var QT=z.forwardRef(YT);const JT={motionAppear:!1,motionEnter:!0,motionLeave:!0};var ZT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const eA=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[AO(e,"slide-up"),AO(e,"slide-down")]]},tA=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,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}}}}}}},nA=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ty(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({},Iy),{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"}}})}})}},rA=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=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:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${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}}}}}},oA=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,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}}}}}},aA=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},My(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:a}}}},iA=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"}}}}},sA=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ty(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:a},"&:active, &:focus:not(:focus-visible)":{color:i}},My(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),aA(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"}}}}}},lA=Vy("Tabs",(e=>{const t=zy(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[oA(t),iA(t),rA(t),nA(t),tA(t),sA(t),eA(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}})),cA=()=>null;var uA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dA=e=>{const{type:t,className:n,rootClassName:r,size:o,onEdit:a,hideAdd:i,centered:s,addIcon:l,popupClassName:c,children:u,items:d,animated:f,style:p,indicatorSize:h}=e,g=uA(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:m,moreIcon:b=z.createElement(aI,null)}=g,{direction:v,tabs:y,getPrefixCls:w,getPopupContainer:x}=z.useContext(uy),S=w("tabs",m),[k,C]=lA(S);let E;"editable-card"===t&&(E={onEdit:(e,t)=>{let{key:n,event:r}=t;null==a||a("add"===e?r:n,e)},removeIcon:z.createElement(Cx,null),addIcon:l||z.createElement(vT,null),showAdd:!0!==i});const O=w(),D=function(e,t){return e||function(e){return e.filter((e=>e))}(qm(t).map((e=>{if(z.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,a=ZT(r,["tab"]);return Object.assign(Object.assign({key:String(t)},a),{label:o})}return null})))}(d,u),$=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},JT),{motionName:KS(e,"switch")})),t}(S,f),j=ok(o),P=Object.assign(Object.assign({},null==y?void 0:y.style),p);return k(z.createElement(QT,Object.assign({direction:v,getPopupContainer:x,moreTransitionName:`${O}-slide-up`},g,{items:D,className:Dm({[`${S}-${j}`]:j,[`${S}-card`]:["card","editable-card"].includes(t),[`${S}-editable-card`]:"editable-card"===t,[`${S}-centered`]:s},null==y?void 0:y.className,n,r,C),popupClassName:Dm(c,C),style:P,editable:E,moreIcon:b,prefixCls:S,animated:$,indicatorSize:null!=h?h:null==y?void 0:y.indicatorSize})))};dA.TabPane=cA;const fA=dA,pA=z.createContext({}),hA=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"}}}},gA=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},mA=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let a=r;a>=0;a--)0===a?(o[`${n}${t}-${a}`]={display:"none"},o[`${n}-push-${a}`]={insetInlineStart:"auto"},o[`${n}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${a}`]={marginInlineStart:0},o[`${n}${t}-order-${a}`]={order:0}):(o[`${n}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/r*100}%`,maxWidth:a/r*100+"%"}],o[`${n}${t}-push-${a}`]={insetInlineStart:a/r*100+"%"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:a/r*100+"%"},o[`${n}${t}-offset-${a}`]={marginInlineStart:a/r*100+"%"},o[`${n}${t}-order-${a}`]={order:a});return o})(e,t),bA=Vy("Grid",(e=>[hA(e)])),vA=Vy("Grid",(e=>{const t=zy(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[gA(t),mA(t,""),mA(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},mA(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));var yA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wA=["xs","sm","md","lg","xl","xxl"],xA=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=z.useContext(uy),{gutter:o,wrap:a}=z.useContext(pA),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:h,style:g}=e,m=yA(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",i),[v,y]=vA(b);let w={};wA.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=Dm(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},f,w,y),S={};if(o&&o[0]>0){const e=o[0]/2;S.paddingLeft=e,S.paddingRight=e}return h&&(S.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(h),!1!==a||S.minWidth||(S.minWidth=0)),v(z.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign({},S),g),className:x,ref:t}),p))}));var SA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function kA(e,t){const[n,r]=z.useState("string"==typeof e?e:"");return z.useEffect((()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n<VP.length;n++){const o=VP[n];if(!t[o])continue;const a=e[o];if(void 0!==a)return void r(a)}})()}),[JSON.stringify(e),t]),n}const CA=z.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=SA(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=z.useContext(uy),[p,h]=z.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,m]=z.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=kA(o,g),v=kA(r,g),y=z.useRef(l),w=KP();z.useEffect((()=>{const e=w.subscribe((e=>{m(e);const t=y.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&h(e)}));return()=>w.unsubscribe(e)}),[]);const x=d("row",n),[S,k]=bA(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;r<VP.length;r++){const o=VP[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),E=Dm(x,{[`${x}-no-wrap`]:!1===c,[`${x}-${v}`]:v,[`${x}-${b}`]:b,[`${x}-rtl`]:"rtl"===f},a,k),O={},D=null!=C[0]&&C[0]>0?C[0]/-2:void 0;D&&(O.marginLeft=D,O.marginRight=D),[,O.rowGap]=C;const[$,j]=C,P=z.useMemo((()=>({gutter:[$,j],wrap:c})),[$,j,c]);return S(z.createElement(pA.Provider,{value:P},z.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},O),i),ref:t}),s)))}));const EA={useBreakpoint:function(){return XP()}};var OA=H.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.forceRender,a=e.className,i=e.style,s=e.children,l=e.isActive,c=e.role,u=qh(H.useState(l||o),2),d=u[0],f=u[1];return H.useEffect((function(){(o||l)&&f(!0)}),[o,l]),d?H.createElement("div",{ref:t,className:Dm("".concat(r,"-content"),(n={},hd(n,"".concat(r,"-content-active"),l),hd(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},H.createElement("div",{className:"".concat(r,"-content-box")},s)):null}));OA.displayName="PanelContent";var DA=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],$A=H.forwardRef((function(e,t){var n,r,o=e.showArrow,a=void 0===o||o,i=e.headerClass,s=e.isActive,l=e.onItemClick,c=e.forceRender,u=e.className,d=e.prefixCls,f=e.collapsible,p=e.accordion,h=e.panelKey,g=e.extra,m=e.header,b=e.expandIcon,v=e.openMotion,y=e.destroyInactivePanel,w=e.children,x=gd(e,DA),S="disabled"===f,k="header"===f,C="icon"===f,E=null!=g&&"boolean"!=typeof g,O=function(){null==l||l(h)},D="function"==typeof b?b(e):H.createElement("i",{className:"arrow"});D&&(D=H.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?O:void 0},D));var $=Dm((hd(n={},"".concat(d,"-item"),!0),hd(n,"".concat(d,"-item-active"),s),hd(n,"".concat(d,"-item-disabled"),S),n),u),j={className:Dm(i,(hd(r={},"".concat(d,"-header"),!0),hd(r,"".concat(d,"-header-collapsible-only"),k),hd(r,"".concat(d,"-icon-collapsible-only"),C),r)),"aria-expanded":s,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Gx.ENTER&&e.which!==Gx.ENTER||O()}};return k||C||(j.onClick=O,j.role=p?"tab":"button",j.tabIndex=S?-1:0),H.createElement("div",jp({},x,{ref:t,className:$}),H.createElement("div",j,a&&D,H.createElement("span",{className:"".concat(d,"-header-text"),onClick:"header"===f?O:void 0},m),E&&H.createElement("div",{className:"".concat(d,"-extra")},g)),H.createElement(_w,jp({visible:s,leavedClassName:"".concat(d,"-content-hidden")},v,{forceRender:c,removeOnLeave:y}),(function(e,t){var n=e.className,r=e.style;return H.createElement(OA,{ref:t,prefixCls:d,className:n,style:r,isActive:s,forceRender:c,role:p?"tabpanel":void 0},w)})))})),jA=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function PA(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,r=t.accordion,o=t.collapsible,a=t.destroyInactivePanel,i=t.onItemClick,s=t.activeKey,l=t.openMotion,c=t.expandIcon;return e.map((function(e,t){var u=e.children,d=e.label,f=e.key,p=e.collapsible,h=e.onItemClick,g=e.destroyInactivePanel,m=gd(e,jA),b=String(null!=f?f:t),v=null!=p?p:o,y=null!=g?g:a,w=!1;return w=r?s[0]===b:s.indexOf(b)>-1,H.createElement($A,jp({},m,{prefixCls:n,key:b,panelKey:b,isActive:w,accordion:r,openMotion:l,expandIcon:c,header:d,collapsible:v,onItemClick:function(e){"disabled"!==v&&(i(e),null==h||h(e))},destroyInactivePanel:y}),u)}))}(e,n):qm(t).map((function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon,d=e.key||String(t),f=e.props,p=f.header,h=f.headerClass,g=f.destroyInactivePanel,m=f.collapsible,b=f.onItemClick,v=!1;v=o?l[0]===d:l.indexOf(d)>-1;var y=null!=m?m:a,w={key:d,panelKey:d,header:p,headerClass:h,isActive:v,prefixCls:r,destroyInactivePanel:null!=g?g:i,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==y&&(s(e),null==b||b(e))},expandIcon:u,collapsible:y};return"string"==typeof e.type?e:(Object.keys(w).forEach((function(e){void 0===w[e]&&delete w[e]})),H.cloneElement(e,w))}(e,t,n)}))}function _A(e){var t=e;if(!Array.isArray(t)){var n=fd(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var NA=H.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,o=e.destroyInactivePanel,a=void 0!==o&&o,i=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,f=e.expandIcon,p=e.activeKey,h=e.defaultActiveKey,g=e.onChange,m=e.items,b=Dm(r,l),v=qh(_y([],{value:p,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:_A}),2),y=v[0],w=v[1];xh(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=PA(m,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:f,collapsible:u,destroyInactivePanel:a,onItemClick:function(e){return w((function(){return s?y[0]===e?[]:[e]:y.indexOf(e)>-1?y.filter((function(t){return t!==e})):[].concat(fh(y),[e])}))},activeKey:y});return H.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},x)}));const IA=Object.assign(NA,{Panel:$A});IA.Panel;const TA=z.forwardRef(((e,t)=>{const{getPrefixCls:n}=z.useContext(uy),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=Dm({[`${i}-no-arrow`]:!a},o);return z.createElement(IA.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))})),AA=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:v,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:S,fontSizeIcon:k,contentPadding:C}=e,E=`${c}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Ty(e)),{backgroundColor:o,border:E,borderBottom:0,borderRadius:`${l}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:E,"&: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:a,color:p,lineHeight:b,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{fontSize:k,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-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:f,backgroundColor:n,borderTop:E,[`& > ${t}-content-box`]:{padding:C},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:y-x}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-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:v}}}}})}},FA=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},RA=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},MA=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}}}}}},LA=Vy("Collapse",(e=>{const t=zy(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[AA(t),RA(t),MA(t),FA(t),YO(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),BA=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=z.useContext(uy),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,g=ok((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",a),b=n(),[v,y]=LA(m),w=z.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),x=Dm(`${m}-icon-position-${w}`,{[`${m}-borderless`]:!c,[`${m}-rtl`]:"rtl"===r,[`${m}-ghost`]:!!u,[`${m}-${g}`]:"middle"!==g},null==o?void 0:o.className,i,s,y),S=Object.assign(Object.assign({},qS(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),k=z.useMemo((()=>p?qm(p).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:a}=e.props;return Mx(e,Object.assign(Object.assign({},Fb(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0}))}return e})):null),[p]);return v(z.createElement(IA,Object.assign({ref:t,openMotion:S},Fb(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=h?h(e):z.createElement(C_,{rotate:e.isActive?90:void 0});return Mx(t,(()=>({className:Dm(t.props.className,`${m}-arrow`)})))},prefixCls:m,className:x,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),k))})),zA=Object.assign(BA,{Panel:TA}),HA=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Ty(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*i+"%"},"&::after":{width:100-100*i+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*i+"%"},"&::after":{width:100*i+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-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}}})}},WA=Vy("Divider",(e=>{const t=zy(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[HA(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));var UA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const VA=e=>{const{getPrefixCls:t,direction:n,divider:r}=z.useContext(uy),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:p}=e,h=UA(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[m,b]=WA(g),v=i.length>0?`-${i}`:i,y=!!u,w="left"===i&&null!=s,x="right"===i&&null!=s,S=Dm(g,null==r?void 0:r.className,b,`${g}-${a}`,{[`${g}-with-text`]:y,[`${g}-with-text${v}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!f,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:w,[`${g}-no-default-orientation-margin-right`]:x},l,c),k=z.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),C=Object.assign(Object.assign({},w&&{marginLeft:k}),x&&{marginRight:k});return m(z.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==r?void 0:r.style),p)},h,{role:"separator"}),u&&"vertical"!==a&&z.createElement("span",{className:`${g}-inner-text`,style:C},u)))};const GA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var qA=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:GA}))};const KA=z.forwardRef(qA);function XA(){return"function"==typeof BigInt}function YA(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function QA(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(s).concat(r)}}function JA(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ZA(e){var t=String(e);if(JA(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&tF(t)?t.length-t.indexOf(".")-1:0}function eF(e){var t=String(e);if(JA(e)){if(e>Number.MAX_SAFE_INTEGER)return String(XA()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(XA()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(ZA(t))}return QA(t).fullStr}function tF(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var nF=function(){function e(t){if(Vd(this,e),hd(this,"origin",""),hd(this,"negative",void 0),hd(this,"integer",void 0),hd(this,"decimal",void 0),hd(this,"decimalLen",void 0),hd(this,"empty",void 0),hd(this,"nan",void 0),YA(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(JA(n)&&(n=Number(n)),tF(n="string"==typeof n?n:eF(n))){var r=QA(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}}return qd(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),a=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),i=r(o),s=QA(a),l=s.negativeStr,c=s.trimStr,u="".concat(l).concat(c.padStart(i+1,"0"));return new e("".concat(u.slice(0,-i),".").concat(u.slice(-i)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,(function(e,t){return e+t}),(function(e){return e}))}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,(function(e,t){return e*t}),(function(e){return 2*e}))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":QA("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),rF=function(){function e(t){Vd(this,e),hd(this,"origin",""),hd(this,"number",void 0),hd(this,"empty",void 0),YA(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return qd(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(ZA(this.number),ZA(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(ZA(this.number),ZA(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":eF(this.number):this.origin}}]),e}();function oF(e){return XA()?new nF(e):new rF(e)}function aF(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=QA(e),a=o.negativeStr,i=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(a).concat(i);if(n>=0){var u=Number(s[n]);return u>=5&&!r?aF(oF(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}function iF(e){return!(!e.addonBefore&&!e.addonAfter)}function sF(e){return!!(e.prefix||e.suffix||e.allowClear)}function lF(e,t,n,r){if(n){var o=t;if("click"===t.type){var a=e.cloneNode(!0);return o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),"file"!==e.type&&(e.value=r),void n(o);n(o)}}function cF(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var uF=function(e){var t,n,r=e.inputElement,o=e.prefixCls,a=e.prefix,i=e.suffix,s=e.addonBefore,l=e.addonAfter,c=e.className,u=e.style,d=e.disabled,f=e.readOnly,p=e.focused,h=e.triggerFocus,g=e.allowClear,m=e.value,b=e.handleReset,v=e.hidden,y=e.classes,w=e.classNames,x=e.dataAttrs,S=e.styles,k=e.components,C=(null==k?void 0:k.affixWrapper)||"span",E=(null==k?void 0:k.groupWrapper)||"span",O=(null==k?void 0:k.wrapper)||"span",D=(null==k?void 0:k.groupAddon)||"span",$=z.useRef(null),j=z.cloneElement(r,{value:m,hidden:v,className:Dm(null===(t=r.props)||void 0===t?void 0:t.className,!sF(e)&&!iF(e)&&c)||null,style:hh(hh({},null===(n=r.props)||void 0===n?void 0:n.style),sF(e)||iF(e)?{}:u)});if(sF(e)){var P,_="".concat(o,"-affix-wrapper"),N=Dm(_,(hd(P={},"".concat(_,"-disabled"),d),hd(P,"".concat(_,"-focused"),p),hd(P,"".concat(_,"-readonly"),f),hd(P,"".concat(_,"-input-with-clear-btn"),i&&g&&m),P),!iF(e)&&c,null==y?void 0:y.affixWrapper,null==w?void 0:w.affixWrapper),I=(i||g)&&H.createElement("span",{className:Dm("".concat(o,"-suffix"),null==w?void 0:w.suffix),style:null==S?void 0:S.suffix},function(){var e;if(!g)return null;var t=!d&&!f&&m,n="".concat(o,"-clear-icon"),r="object"===fd(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";return H.createElement("span",{onClick:b,onMouseDown:function(e){return e.preventDefault()},className:Dm(n,(e={},hd(e,"".concat(n,"-hidden"),!t),hd(e,"".concat(n,"-has-suffix"),!!i),e)),role:"button",tabIndex:-1},r)}(),i);j=H.createElement(C,jp({className:N,style:hh(hh({},iF(e)?void 0:u),null==S?void 0:S.affixWrapper),hidden:!iF(e)&&v,onClick:function(e){var t;null!==(t=$.current)&&void 0!==t&&t.contains(e.target)&&(null==h||h())}},null==x?void 0:x.affixWrapper,{ref:$}),a&&H.createElement("span",{className:Dm("".concat(o,"-prefix"),null==w?void 0:w.prefix),style:null==S?void 0:S.prefix},a),z.cloneElement(r,{value:m,hidden:null}),I)}if(iF(e)){var T="".concat(o,"-group"),A="".concat(T,"-addon"),F=Dm("".concat(o,"-wrapper"),T,null==y?void 0:y.wrapper),R=Dm("".concat(o,"-group-wrapper"),c,null==y?void 0:y.group);return H.createElement(E,{className:R,style:u,hidden:v},H.createElement(O,{className:F},s&&H.createElement(D,{className:A},s),z.cloneElement(j,{hidden:null}),l&&H.createElement(D,{className:A},l)))}return j},dF=["show"];function fF(e,t){return z.useMemo((function(){var n={};t&&(n.show="object"===fd(t)&&t.formatter?t.formatter:!!t);var r=n=hh(hh({},n),e),o=r.show,a=gd(r,dF);return hh(hh({},a),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:a.strategy||function(e){return e.length}})}),[e,t])}var pF=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hF=z.forwardRef((function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=void 0===l?"rc-input":l,u=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,g=e.showCount,m=e.count,b=e.type,v=void 0===b?"text":b,y=e.classes,w=e.classNames,x=e.styles,S=e.onCompositionStart,k=e.onCompositionEnd,C=gd(e,pF),E=qh(z.useState(!1),2),O=E[0],D=E[1],$=H.useRef(!1),j=z.useRef(null),P=function(e){j.current&&cF(j.current,e)},_=qh(_y(e.defaultValue,{value:e.value}),2),N=_[0],I=_[1],T=null==N?"":String(N),A=qh(H.useState(null),2),F=A[0],R=A[1],M=fF(m,g),L=M.max||p,B=M.strategy(T),W=!!L&&B>L;z.useImperativeHandle(t,(function(){return{focus:P,blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=j.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=j.current)||void 0===e||e.select()},input:j.current}})),z.useEffect((function(){D((function(e){return(!e||!u)&&e}))}),[u]);var U=function(e,t){var n,o,a=t;!$.current&&M.exceedFormatter&&M.max&&M.strategy(t)>M.max&&(t!==(a=M.exceedFormatter(t,{max:M.max}))&&R([(null===(n=j.current)||void 0===n?void 0:n.selectionStart)||0,(null===(o=j.current)||void 0===o?void 0:o.selectionEnd)||0]));I(a),j.current&&lF(j.current,e,r,a)};H.useEffect((function(){var e;F&&(null===(e=j.current)||void 0===e||e.setSelectionRange.apply(e,fh(F)))}),[F]);var V,G=function(e){U(e,e.target.value)},q=function(e){$.current=!1,U(e,e.currentTarget.value),null==k||k(e)},K=function(e){i&&"Enter"===e.key&&i(e),null==s||s(e)},X=function(e){D(!0),null==o||o(e)},Y=function(e){D(!1),null==a||a(e)},Q=W&&"".concat(c,"-out-of-range");return H.createElement(uF,jp({},C,{prefixCls:c,className:Dm(f,Q),inputElement:(V=Fb(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),H.createElement("input",jp({autoComplete:n},V,{onChange:G,onFocus:X,onBlur:Y,onKeyDown:K,className:Dm(c,hd({},"".concat(c,"-disabled"),u),null==w?void 0:w.input),style:null==x?void 0:x.input,ref:j,size:d,type:v,onCompositionStart:function(e){$.current=!0,null==S||S(e)},onCompositionEnd:q}))),handleReset:function(e){I(""),P(),j.current&&lF(j.current,e,r)},value:T,focused:O,triggerFocus:P,suffix:function(){var e=Number(L)>0;if(h||M.show){var t=M.showFormatter?M.showFormatter({value:T,count:B,maxLength:L}):"".concat(B).concat(e?" / ".concat(L):"");return H.createElement(H.Fragment,null,M.show&&H.createElement("span",{className:Dm("".concat(c,"-show-count-suffix"),hd({},"".concat(c,"-show-count-has-suffix"),!!h),null==w?void 0:w.count),style:hh({},null==x?void 0:x.count)},t),h)}return null}(),disabled:u,classes:y,classNames:w,styles:x}))}));function gF(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,a=e.downDisabled,i=e.onStep,s=z.useRef(),l=z.useRef([]),c=z.useRef();c.current=i;var u,d,f,p=function(){clearTimeout(s.current)},h=function(e,t){e.preventDefault(),p(),c.current(t),s.current=setTimeout((function e(){c.current(t),s.current=setTimeout(e,200)}),600)};if(z.useEffect((function(){return function(){p(),l.current.forEach((function(e){return Hb.cancel(e)}))}}),[]),u=qh(z.useState(!1),2),d=u[0],f=u[1],lg((function(){f(i$())}),[]),d)return null;var g="".concat(t,"-handler"),m=Dm(g,"".concat(g,"-up"),hd({},"".concat(g,"-up-disabled"),o)),b=Dm(g,"".concat(g,"-down"),hd({},"".concat(g,"-down-disabled"),a)),v=function(){return l.current.push(Hb(p))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return z.createElement("div",{className:"".concat(g,"-wrap")},z.createElement("span",jp({},y,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||z.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),z.createElement("span",jp({},y,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:b}),r||z.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function mF(e){var t="number"==typeof e?eF(e):QA(e).fullStr;return t.includes(".")?QA(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var bF=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],vF=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],yF=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},wF=function(e){var t=oF(e);return t.isInvalidate()?null:t},xF=z.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,a=e.className,i=e.style,s=e.min,l=e.max,c=e.step,u=void 0===c?1:c,d=e.defaultValue,f=e.value,p=e.disabled,h=e.readOnly,g=e.upHandler,m=e.downHandler,b=e.keyboard,v=e.controls,y=void 0===v||v,w=e.classNames,x=e.stringMode,S=e.parser,k=e.formatter,C=e.precision,E=e.decimalSeparator,O=e.onChange,D=e.onInput,$=e.onPressEnter,j=e.onStep,P=e.changeOnBlur,_=void 0===P||P,N=gd(e,bF),I="".concat(o,"-input"),T=z.useRef(null),A=qh(z.useState(!1),2),F=A[0],R=A[1],M=z.useRef(!1),L=z.useRef(!1),B=z.useRef(!1),H=qh(z.useState((function(){return oF(null!=f?f:d)})),2),W=H[0],U=H[1];var V=z.useCallback((function(e,t){if(!t)return C>=0?C:Math.max(ZA(e),ZA(u))}),[C,u]),G=z.useCallback((function(e){var t=String(e);if(S)return S(t);var n=t;return E&&(n=n.replace(E,".")),n.replace(/[^\w.-]+/g,"")}),[S,E]),q=z.useRef(""),K=z.useCallback((function(e,t){if(k)return k(e,{userTyping:t,input:String(q.current)});var n="number"==typeof e?eF(e):e;if(!t){var r=V(n,t);if(tF(n)&&(E||r>=0))n=aF(n,E||".",r)}return n}),[k,V,E]),X=qh(z.useState((function(){var e=null!=d?d:f;return W.isInvalidate()&&["string","number"].includes(fd(e))?Number.isNaN(e)?"":e:K(W.toString(),!1)})),2),Y=X[0],Q=X[1];function J(e,t){Q(K(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}q.current=Y;var Z,ee,te,ne,re,oe=z.useMemo((function(){return wF(l)}),[l,C]),ae=z.useMemo((function(){return wF(s)}),[s,C]),ie=z.useMemo((function(){return!(!oe||!W||W.isInvalidate())&&oe.lessEquals(W)}),[oe,W]),se=z.useMemo((function(){return!(!ae||!W||W.isInvalidate())&&W.lessEquals(ae)}),[ae,W]),le=(Z=T.current,ee=F,te=z.useRef(null),[function(){try{var e=Z.selectionStart,t=Z.selectionEnd,n=Z.value,r=n.substring(0,e),o=n.substring(t);te.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(K4){}},function(){if(Z&&te.current&&ee)try{var e=Z.value,t=te.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,a=e.length;if(e.endsWith(r))a=e.length-te.current.afterTxt.length;else if(e.startsWith(n))a=n.length;else{var i=n[o-1],s=e.indexOf(i,o-1);-1!==s&&(a=s+1)}Z.setSelectionRange(a,a)}catch(K4){xh(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(K4.message))}}]),ce=qh(le,2),ue=ce[0],de=ce[1],fe=function(e){return oe&&!e.lessEquals(oe)?oe:ae&&!ae.lessEquals(e)?ae:null},pe=function(e){return!fe(e)},he=function(e,t){var n,r=e,o=pe(r)||r.isEmpty();if(r.isEmpty()||t||(r=fe(r)||r,o=!0),!h&&!p&&o){var a=r.toString(),i=V(a,t);return i>=0&&(r=oF(aF(a,".",i)),pe(r)||(r=oF(aF(a,".",i,!0)))),r.equals(W)||(n=r,void 0===f&&U(n),null==O||O(r.isEmpty()?null:yF(x,r)),void 0===f&&J(r,t)),r}return W},ge=(ne=z.useRef(0),re=function(){Hb.cancel(ne.current)},z.useEffect((function(){return re}),[]),function(e){re(),ne.current=Hb((function(){e()}))}),me=function e(t){if(ue(),q.current=t,Q(t),!L.current){var n=oF(G(t));n.isNaN()||he(n,!0)}null==D||D(t),ge((function(){var n=t;S||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},be=function(e){var t;if(!(e&&ie||!e&&se)){M.current=!1;var n=oF(B.current?mF(u):u);e||(n=n.negate());var r=(W||oF(0)).add(n.toString()),o=he(r,!1);null==j||j(yF(x,o),{offset:B.current?mF(u):u,type:e?"up":"down"}),null===(t=T.current)||void 0===t||t.focus()}},ve=function(e){var t=oF(G(Y)),n=t;n=t.isNaN()?he(W,e):he(t,e),void 0!==f?J(W,!1):n.isNaN()||J(n,!1)};return cg((function(){W.isInvalidate()||J(W,!1)}),[C,k]),cg((function(){var e=oF(f);U(e);var t=oF(G(Y));e.equals(t)&&M.current&&!k||J(e,M.current)}),[f]),cg((function(){k&&de()}),[Y]),z.createElement("div",{className:Dm(o,null==w?void 0:w.input,a,(n={},hd(n,"".concat(o,"-focused"),F),hd(n,"".concat(o,"-disabled"),p),hd(n,"".concat(o,"-readonly"),h),hd(n,"".concat(o,"-not-a-number"),W.isNaN()),hd(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!pe(W)),n)),style:i,onFocus:function(){R(!0)},onBlur:function(){_&&ve(!1),R(!1),M.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;M.current=!0,B.current=n,"Enter"===t&&(L.current||(M.current=!1),ve(!1),null==$||$(e)),!1!==b&&!L.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(be("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){M.current=!1,B.current=!1},onCompositionStart:function(){L.current=!0},onCompositionEnd:function(){L.current=!1,me(T.current.value)},onBeforeInput:function(){M.current=!0}},y&&z.createElement(gF,{prefixCls:o,upNode:g,downNode:m,upDisabled:ie,downDisabled:se,onStep:be}),z.createElement("div",{className:"".concat(I,"-wrap")},z.createElement("input",jp({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},N,{ref:Qm(T,t),className:I,value:Y,onChange:function(e){me(e.target.value)},disabled:p,readOnly:h}))))})),SF=z.forwardRef((function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,a=e.value,i=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.classes,d=e.className,f=e.classNames,p=gd(e,vF),h=z.useRef(null);return z.createElement(uF,{inputElement:z.createElement(xF,jp({prefixCls:o,disabled:n,classNames:f,ref:Qm(h,t)},p)),className:d,triggerFocus:function(e){h.current&&cF(h.current,e)},prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}));SF.displayName="InputNumber";const kF=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},CF=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,colorTextDescription:d,motionDurationMid:f,handleHoverColor:p,paddingInline:h,paddingBlock:g,handleBg:m,handleActiveBg:b,colorTextDisabled:v,borderRadiusSM:y,borderRadiusLG:w,controlWidth:x,handleVisible:S,handleBorderColor:k}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ty(e)),PI(e)),jI(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:y,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Ty(e)),_I(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:w,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:y}},[`${t}-wrapper-disabled > ${t}-group-addon`]:Object.assign({},OI(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ty(e)),{width:"100%",padding:`${g}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",fontSize:"inherit"}),kI(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:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:!0===S?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${k}`,transition:`all ${f} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${k}`,borderEndEndRadius:a}},kF(e,"lg")),kF(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:v}})},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},EF=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},PI(e)),jI(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i},"&-sm":{borderRadius:s},[`&:not(${t}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:`${n}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},OF=Vy("InputNumber",(e=>{const t=zy(e,LI(e));return[CF(t),EF(t),nC(t)]}),(e=>Object.assign(Object.assign({},BI(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})));var DF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $F=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=z.useContext(uy),o=z.useRef(null);z.useImperativeHandle(t,(()=>o.current));const{className:a,rootClassName:i,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,bordered:p=!0,readOnly:h,status:g,controls:m}=e,b=DF(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),v=n("input-number",c),[y,w]=OF(v),{compactSize:x,compactItemClassnames:S}=dk(v,r);let k=z.createElement(KA,{className:`${v}-handler-up-inner`}),C=z.createElement(_P,{className:`${v}-handler-down-inner`});const E="boolean"==typeof m?m:void 0;"object"==typeof m&&(k=void 0===m.upIcon?k:z.createElement("span",{className:`${v}-handler-up-inner`},m.upIcon),C=void 0===m.downIcon?C:z.createElement("span",{className:`${v}-handler-down-inner`},m.downIcon));const{hasFeedback:O,status:D,isFormItemInput:$,feedbackIcon:j}=z.useContext(rO),P=tP(D,g),_=ok((e=>{var t;return null!==(t=null!=s?s:x)&&void 0!==t?t:e})),N=z.useContext(gy),I=null!=l?l:N,T=Dm({[`${v}-lg`]:"large"===_,[`${v}-sm`]:"small"===_,[`${v}-rtl`]:"rtl"===r,[`${v}-borderless`]:!p,[`${v}-in-form-item`]:$},eP(v,P),w),A=`${v}-group`,F=O&&z.createElement(z.Fragment,null,j);return y(z.createElement(SF,Object.assign({ref:o,disabled:I,className:Dm(a,i,S),upHandler:k,downHandler:C,prefixCls:v,readOnly:h,controls:E,prefix:f,suffix:F,addonAfter:d&&z.createElement(fk,null,z.createElement(oO,{override:!0,status:!0},d)),addonBefore:u&&z.createElement(fk,null,z.createElement(oO,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:Dm(eP(`${v}-affix-wrapper`,P,O),{[`${v}-affix-wrapper-sm`]:"small"===_,[`${v}-affix-wrapper-lg`]:"large"===_,[`${v}-affix-wrapper-rtl`]:"rtl"===r,[`${v}-affix-wrapper-borderless`]:!p},w),wrapper:Dm({[`${A}-rtl`]:"rtl"===r,[`${v}-wrapper-disabled`]:I},w),group:Dm({[`${v}-group-wrapper-sm`]:"small"===_,[`${v}-group-wrapper-lg`]:"large"===_,[`${v}-group-wrapper-rtl`]:"rtl"===r},eP(`${v}-group-wrapper`,P,O),w)}},b)))})),jF=$F;jF._InternalPanelDoNotUseOrYouWillBeFired=e=>z.createElement(ex,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement($F,Object.assign({},e)));const PF=jF,_F=e=>{const{getPrefixCls:t,direction:n}=z.useContext(uy),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=zI(i),c=Dm(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},l,o),u=z.useContext(rO),d=z.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(z.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},z.createElement(rO.Provider,{value:d},e.children)))};function NF(e,t){const n=z.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 z.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var IF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const TF=z.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:a,size:i,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:g,styles:m,rootClassName:b,onChange:v,classNames:y}=e,w=IF(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:S,input:k}=H.useContext(uy),C=x("input",r),E=z.useRef(null),[O,D]=zI(C),{compactSize:$,compactItemClassnames:j}=dk(C,S),P=ok((e=>{var t;return null!==(t=null!=i?i:$)&&void 0!==t?t:e})),_=H.useContext(gy),N=null!=s?s:_,{status:I,hasFeedback:T,feedbackIcon:A}=z.useContext(rO),F=tP(I,a),R=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!T;z.useRef(R);const M=NF(E,!0),L=(T||u)&&H.createElement(H.Fragment,null,u,T&&A);let B;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?B=d:d&&(B={clearIcon:H.createElement(xx,null)}),O(H.createElement(hF,Object.assign({ref:Qm(t,E),prefixCls:C,autoComplete:null==k?void 0:k.autoComplete},w,{disabled:N,onBlur:e=>{M(),null==l||l(e)},onFocus:e=>{M(),null==c||c(e)},style:Object.assign(Object.assign({},null==k?void 0:k.style),g),styles:Object.assign(Object.assign({},null==k?void 0:k.styles),m),suffix:L,allowClear:B,className:Dm(h,b,j,null==k?void 0:k.className),onChange:e=>{M(),null==v||v(e)},addonAfter:f&&H.createElement(fk,null,H.createElement(oO,{override:!0,status:!0},f)),addonBefore:p&&H.createElement(fk,null,H.createElement(oO,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),null==k?void 0:k.classNames),{input:Dm({[`${C}-sm`]:"small"===P,[`${C}-lg`]:"large"===P,[`${C}-rtl`]:"rtl"===S,[`${C}-borderless`]:!o},!R&&eP(C,F),null==y?void 0:y.input,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.input,D)}),classes:{affixWrapper:Dm({[`${C}-affix-wrapper-sm`]:"small"===P,[`${C}-affix-wrapper-lg`]:"large"===P,[`${C}-affix-wrapper-rtl`]:"rtl"===S,[`${C}-affix-wrapper-borderless`]:!o},eP(`${C}-affix-wrapper`,F,T),D),wrapper:Dm({[`${C}-group-rtl`]:"rtl"===S},D),group:Dm({[`${C}-group-wrapper-sm`]:"small"===P,[`${C}-group-wrapper-lg`]:"large"===P,[`${C}-group-wrapper-rtl`]:"rtl"===S,[`${C}-group-wrapper-disabled`]:N},eP(`${C}-group-wrapper`,F,T),D)}})))})),AF=TF;const FF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var RF=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:FF}))};const MF=z.forwardRef(RF);const LF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var BF=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:LF}))};const zF=z.forwardRef(BF);var HF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const WF=e=>e?z.createElement(zF,null):z.createElement(MF,null),UF={click:"onClick",hover:"onMouseOver"},VF=z.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,a]=z.useState((()=>!!r&&n.visible)),i=z.useRef(null);z.useEffect((()=>{r&&a(n.visible)}),[r,n]);const s=NF(i),l=()=>{const{disabled:t}=e;t||(o&&s(),a((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:f}=e,p=HF(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=z.useContext(uy),g=h("input",d),m=h("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=WF}=e,a=UF[n]||"",i=r(o),s={[a]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return z.cloneElement(z.isValidElement(i)?i:z.createElement("span",null,i),s)})(m),v=Dm(m,c,{[`${m}-${f}`]:!!f}),y=Object.assign(Object.assign({},Fb(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:v,prefixCls:g,suffix:b});return f&&(y.size=f),z.createElement(AF,Object.assign({ref:Qm(t,i)},y))})),GF=VF;var qF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const KF=z.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:i,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,g=qF(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:m,direction:b}=z.useContext(uy),v=z.useRef(!1),y=m("input-search",n),w=m("input",r),{compactSize:x}=dk(y,b),S=ok((e=>{var t;return null!==(t=null!=a?a:x)&&void 0!==t?t:e})),k=z.useRef(null),C=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof s?z.createElement(TP,null):null,D=`${y}-button`;let $;const j=s||{},P=j.type&&!0===j.type.__ANT_BUTTON;$=P||"button"===j.type?Mx(j,Object.assign({onMouseDown:C,onClick:e=>{var t,n;null===(n=null===(t=null==j?void 0:j.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},P?{className:D,size:S}:{})):z.createElement(cC,{className:D,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:C,onClick:E,loading:c,icon:O},s),l&&($=[$,Mx(l,{key:"addonAfter"})]);const _=Dm(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${S}`]:!!S,[`${y}-with-button`]:!!s},o);return z.createElement(AF,Object.assign({ref:Qm(k,t),onPressEnter:e=>{v.current||c||E(e)}},g,{size:S,onCompositionStart:e=>{v.current=!0,null==p||p(e)},onCompositionEnd:e=>{v.current=!1,null==h||h(e)},prefixCls:w,addonAfter:$,suffix:i,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:_,disabled:u}))})),XF=KF;var YF,QF=["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"],JF={};function ZF(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;YF||((YF=document.createElement("textarea")).setAttribute("tab-index","-1"),YF.setAttribute("aria-hidden","true"),document.body.appendChild(YF)),e.getAttribute("wrap")?YF.setAttribute("wrap",e.getAttribute("wrap")):YF.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&JF[n])return JF[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:QF.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(JF[n]=s),s}(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;YF.setAttribute("style","".concat(l,";").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")),YF.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=YF.scrollHeight;if("border-box"===s?f+=i:"content-box"===s&&(f-=a),null!==n||null!==r){YF.value=" ";var p=YF.scrollHeight-a;null!==n&&(u=p*n,"border-box"===s&&(u=u+a+i),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===s&&(d=d+a+i),c=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var eR=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],tR=z.forwardRef((function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,a=n.value,i=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=gd(n,eR),p=qh(_y(o,{value:a,postState:function(e){return null!=e?e:""}}),2),h=p[0],g=p[1],m=z.useRef();z.useImperativeHandle(t,(function(){return{textArea:m.current}}));var b=qh(z.useMemo((function(){return i&&"object"===fd(i)?[i.minRows,i.maxRows]:[]}),[i]),2),v=b[0],y=b[1],w=!!i,x=qh(z.useState(2),2),S=x[0],k=x[1],C=qh(z.useState(),2),E=C[0],O=C[1],D=function(){k(0)};lg((function(){w&&D()}),[a,v,y,w]),lg((function(){if(0===S)k(1);else if(1===S){var e=ZF(m.current,!1,v,y);k(2),O(e)}else!function(){try{if(document.activeElement===m.current){var e=m.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;m.current.setSelectionRange(t,n),m.current.scrollTop=r}}catch(K4){}}()}),[S]);var $=z.useRef(),j=function(){Hb.cancel($.current)};z.useEffect((function(){return j}),[]);var P=w?E:null,_=hh(hh({},c),P);return 0!==S&&1!==S||(_.overflowY="hidden",_.overflowX="hidden"),z.createElement(Ab,{onResize:function(e){2===S&&(null==s||s(e),i&&(j(),$.current=Hb((function(){D()}))))},disabled:!(i||s)},z.createElement("textarea",jp({},f,{ref:m,style:_,className:Dm(r,l,hd({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){g(e.target.value),null==d||d(e)}})))})),nR=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],rR=H.forwardRef((function(e,t){var n,r,o=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,g=void 0===h?"rc-textarea":h,m=e.classes,b=e.showCount,v=e.count,y=e.className,w=e.style,x=e.disabled,S=e.hidden,k=e.classNames,C=e.styles,E=e.onResize,O=gd(e,nR),D=qh(_y(o,{value:a,defaultValue:o}),2),$=D[0],j=D[1],P=null==$?"":String($),_=qh(H.useState(!1),2),N=_[0],I=_[1],T=H.useRef(!1),A=qh(H.useState(null),2),F=A[0],R=A[1],M=z.useRef(null),L=function(){var e;return null===(e=M.current)||void 0===e?void 0:e.textArea},B=function(){L().focus()};z.useImperativeHandle(t,(function(){return{resizableTextArea:M.current,focus:B,blur:function(){L().blur()}}})),z.useEffect((function(){I((function(e){return!x&&e}))}),[x]);var W=qh(H.useState(null),2),U=W[0],V=W[1];H.useEffect((function(){var e;U&&(e=L()).setSelectionRange.apply(e,fh(U))}),[U]);var G,q=fF(v,b),K=null!==(n=q.max)&&void 0!==n?n:u,X=Number(K)>0,Y=q.strategy(P),Q=!!K&&Y>K,J=function(e,t){var n=t;!T.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&V([L().selectionStart||0,L().selectionEnd||0]),j(n),lF(e.currentTarget,e,l,n)},Z=p;q.show&&(G=q.showFormatter?q.showFormatter({value:P,count:Y,maxLength:K}):"".concat(Y).concat(X?" / ".concat(K):""),Z=H.createElement(H.Fragment,null,Z,H.createElement("span",{className:Dm("".concat(g,"-data-count"),null==k?void 0:k.count),style:null==C?void 0:C.count},G)));var ee=!O.autoSize&&!b&&!c;return H.createElement(uF,{value:P,allowClear:c,handleReset:function(e){j(""),B(),lF(L(),e,l)},suffix:Z,prefixCls:g,classes:{affixWrapper:Dm(null==m?void 0:m.affixWrapper,(r={},hd(r,"".concat(g,"-show-count"),b),hd(r,"".concat(g,"-textarea-allow-clear"),c),r))},disabled:x,focused:N,className:Dm(y,Q&&"".concat(g,"-out-of-range")),style:hh(hh({},w),F&&!ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof G?G:void 0}},hidden:S,inputElement:H.createElement(tR,jp({},O,{maxLength:u,onKeyDown:function(e){var t=O.onPressEnter,n=O.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){J(e,e.target.value)},onFocus:function(e){I(!0),null==i||i(e)},onBlur:function(e){I(!1),null==s||s(e)},onCompositionStart:function(e){T.current=!0,null==d||d(e)},onCompositionEnd:function(e){T.current=!1,J(e,e.currentTarget.value),null==f||f(e)},className:Dm(null==k?void 0:k.textarea),style:hh(hh({},null==C?void 0:C.textarea),{},{resize:null==w?void 0:w.resize}),disabled:x,prefixCls:g,onResize:function(e){var t;null==E||E(e),null!==(t=L())&&void 0!==t&&t.style.height&&R(!0)},ref:M}))})})),oR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const aR=z.forwardRef(((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:d}=e,f=oR(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:p,direction:h}=z.useContext(uy),g=ok(a),m=z.useContext(gy),b=null!=i?i:m,{status:v,hasFeedback:y,feedbackIcon:w}=z.useContext(rO),x=tP(v,s),S=z.useRef(null);z.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 k=p("input",r);let C;"object"==typeof l&&(null==l?void 0:l.clearIcon)?C=l:l&&(C={clearIcon:z.createElement(xx,null)});const[E,O]=zI(k);return E(z.createElement(rR,Object.assign({},f,{disabled:b,allowClear:C,className:Dm(d,u),classes:{affixWrapper:Dm(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===h,[`${k}-affix-wrapper-borderless`]:!o,[`${k}-affix-wrapper-sm`]:"small"===g,[`${k}-affix-wrapper-lg`]:"large"===g,[`${k}-textarea-show-count`]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},eP(`${k}-affix-wrapper`,x),O)},classNames:Object.assign(Object.assign({},c),{textarea:Dm({[`${k}-borderless`]:!o,[`${k}-sm`]:"small"===g,[`${k}-lg`]:"large"===g},eP(k,x),O,null==c?void 0:c.textarea)}),prefixCls:k,suffix:y&&z.createElement("span",{className:`${k}-textarea-suffix`},w),ref:S})))})),iR=AF;iR.Group=_F,iR.Search=XF,iR.TextArea=aR,iR.Password=GF;const sR=iR;var lR=z.createContext(null),cR=z.createContext({}),uR=function(e){var t=e.prefixCls,n=e.className,r=e.style,o=e.children,a=e.containerRef,i=e.id,s={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},l=Jm(z.useContext(cR).panel,a);return z.createElement(z.Fragment,null,z.createElement("div",jp({id:i,className:Dm("".concat(t,"-content"),n),style:hh({},r),"aria-modal":"true",role:"dialog",ref:l},s),o))};function dR(e){return"string"==typeof e&&String(Number(e))===e?(xh(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var fR={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function pR(e,t){var n,r,o,a,i=e.prefixCls,s=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,g=e.rootClassName,m=e.rootStyle,b=e.zIndex,v=e.className,y=e.id,w=e.style,x=e.motion,S=e.width,k=e.height,C=e.children,E=e.contentWrapperStyle,O=e.mask,D=e.maskClosable,$=e.maskMotion,j=e.maskClassName,P=e.maskStyle,_=e.afterOpenChange,N=e.onClose,I=e.onMouseEnter,T=e.onMouseOver,A=e.onMouseLeave,F=e.onClick,R=e.onKeyDown,M=e.onKeyUp,L=e.styles,B=z.useRef(),H=z.useRef(),W=z.useRef();z.useImperativeHandle(t,(function(){return B.current}));z.useEffect((function(){var e;s&&f&&(null===(e=B.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);var U=qh(z.useState(!1),2),V=U[0],G=U[1],q=z.useContext(lR),K=null!==(n=null!==(r=null===(o=!1===u?{distance:0}:!0===u?{}:u||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==q?void 0:q.pushDistance)&&void 0!==n?n:180,X=z.useMemo((function(){return{pushDistance:K,push:function(){G(!0)},pull:function(){G(!1)}}}),[K]);z.useEffect((function(){var e,t;s?null==q||null===(e=q.push)||void 0===e||e.call(q):null==q||null===(t=q.pull)||void 0===t||t.call(q)}),[s]),z.useEffect((function(){return function(){var e;null==q||null===(e=q.pull)||void 0===e||e.call(q)}}),[]);var Y=O&&z.createElement(_w,jp({key:"mask"},$,{visible:s}),(function(e,t){var n=e.className,r=e.style;return z.createElement("div",{className:Dm("".concat(i,"-mask"),n,null==h?void 0:h.mask,j),style:hh(hh(hh({},r),P),null==L?void 0:L.mask),onClick:D&&s?N:void 0,ref:t})})),Q="function"==typeof x?x(l):x,J={};if(V&&K)switch(l){case"top":J.transform="translateY(".concat(K,"px)");break;case"bottom":J.transform="translateY(".concat(-K,"px)");break;case"left":J.transform="translateX(".concat(K,"px)");break;default:J.transform="translateX(".concat(-K,"px)")}"left"===l||"right"===l?J.width=dR(S):J.height=dR(k);var Z={onMouseEnter:I,onMouseOver:T,onMouseLeave:A,onClick:F,onKeyDown:R,onKeyUp:M},ee=z.createElement(_w,jp({key:"panel"},Q,{visible:s,forceRender:d,onVisibleChanged:function(e){null==_||_(e)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return z.createElement("div",jp({className:Dm("".concat(i,"-content-wrapper"),null==h?void 0:h.wrapper,r),style:hh(hh(hh(hh({},J),o),E),null==L?void 0:L.wrapper)},Ax(e,{data:!0})),z.createElement(uR,jp({id:y,containerRef:n,prefixCls:i,className:Dm(v,null==h?void 0:h.content),style:hh(hh({},w),null==L?void 0:L.content)},Z),C))})),te=hh({},m);return b&&(te.zIndex=b),z.createElement(lR.Provider,{value:X},z.createElement("div",{className:Dm(i,"".concat(i,"-").concat(l),g,(a={},hd(a,"".concat(i,"-open"),s),hd(a,"".concat(i,"-inline"),c),a)),style:te,tabIndex:-1,ref:B,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case Gx.TAB:var r;if(t===Gx.TAB)if(n||document.activeElement!==W.current){if(n&&document.activeElement===H.current){var o;null===(o=W.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=H.current)||void 0===r||r.focus({preventScroll:!0});break;case Gx.ESC:N&&p&&(e.stopPropagation(),N(e))}}},Y,z.createElement("div",{tabIndex:0,ref:H,style:fR,"aria-hidden":"true","data-sentinel":"start"}),ee,z.createElement("div",{tabIndex:0,ref:W,style:fR,"aria-hidden":"true","data-sentinel":"end"})))}var hR=z.forwardRef(pR),gR=function(e){var t=e.open,n=void 0!==t&&t,r=e.prefixCls,o=void 0===r?"rc-drawer":r,a=e.placement,i=void 0===a?"right":a,s=e.autoFocus,l=void 0===s||s,c=e.keyboard,u=void 0===c||c,d=e.width,f=void 0===d?378:d,p=e.mask,h=void 0===p||p,g=e.maskClosable,m=void 0===g||g,b=e.getContainer,v=e.forceRender,y=e.afterOpenChange,w=e.destroyOnClose,x=e.onMouseEnter,S=e.onMouseOver,k=e.onMouseLeave,C=e.onClick,E=e.onKeyDown,O=e.onKeyUp,D=e.panelRef,$=qh(z.useState(!1),2),j=$[0],P=$[1],_=qh(z.useState(!1),2),N=_[0],I=_[1];lg((function(){I(!0)}),[]);var T=!!N&&n,A=z.useRef(),F=z.useRef();lg((function(){T&&(F.current=document.activeElement)}),[T]);var R=z.useMemo((function(){return{panel:D}}),[D]);if(!v&&!j&&!T&&w)return null;var M={onMouseEnter:x,onMouseOver:S,onMouseLeave:k,onClick:C,onKeyDown:E,onKeyUp:O},L=hh(hh({},e),{},{open:T,prefixCls:o,placement:i,autoFocus:l,keyboard:u,width:f,mask:h,maskClosable:m,inline:!1===b,afterOpenChange:function(e){var t,n;(P(e),null==y||y(e),e||!F.current||null!==(t=A.current)&&void 0!==t&&t.contains(F.current))||(null===(n=F.current)||void 0===n||n.focus({preventScroll:!0}))},ref:A},M);return z.createElement(cR.Provider,{value:R},z.createElement(EC,{open:T||v||j,autoDestroy:!1,getContainer:b,autoLock:h&&(T||j)},z.createElement(hR,L)))};const mR=e=>{var t,n;const{prefixCls:r,title:o,footer:a,extra:i,closeIcon:s,closable:l,onClose:c,headerStyle:u,drawerStyle:d,bodyStyle:f,footerStyle:p,children:h,classNames:g,styles:m}=e,{drawer:b}=z.useContext(uy),v=z.useCallback((e=>z.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},e)),[c]),[y,w]=LC(l,s,v,void 0,!0),x=z.useMemo((()=>{var e,t;return o||y?z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==b?void 0:b.styles)||void 0===e?void 0:e.header),u),null==m?void 0:m.header),className:Dm(`${r}-header`,{[`${r}-header-close-only`]:y&&!o&&!i},null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.header,null==g?void 0:g.header)},z.createElement("div",{className:`${r}-header-title`},w,o&&z.createElement("div",{className:`${r}-title`},o)),i&&z.createElement("div",{className:`${r}-extra`},i)):null}),[y,w,i,u,r,o]),S=z.useMemo((()=>{var e,t;if(!a)return null;const n=`${r}-footer`;return z.createElement("div",{className:Dm(n,null===(e=null==b?void 0:b.classNames)||void 0===e?void 0:e.footer,null==g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==b?void 0:b.styles)||void 0===t?void 0:t.footer),p),null==m?void 0:m.footer)},a)}),[a,p,r]);return z.createElement("div",{className:`${r}-wrapper-body`,style:d},x,z.createElement("div",{className:Dm(`${r}-body`,null==g?void 0:g.body,null===(t=null==b?void 0:b.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==b?void 0:b.styles)||void 0===n?void 0:n.body),f),null==m?void 0:m.body)},h),S)},bR=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%)"}}}]}}}},vR=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:i,padding:s,paddingLG:l,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:p,marginSM:h,colorIcon:g,colorIconHover:m,colorText:b,fontWeightStrong:v,footerPaddingBlock:y,footerPaddingInline:w}=e,x=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[x]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${a}`,"&-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 ${f} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:g,fontWeight:v,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,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:`${y}px ${w}px`,borderTop:`${d}px ${f} ${p}`},"&-rtl":{direction:"rtl"}}}},yR=Vy("Drawer",(e=>{const t=zy(e,{});return[vR(t),bR(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var wR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xR={distance:180},SR=e=>{var t,n,r,o,a,i,s,l;const{rootClassName:c,width:u,height:d,size:f="default",mask:p=!0,push:h=xR,open:g,afterOpenChange:m,onClose:b,prefixCls:v,getContainer:y,style:w,className:x,visible:S,afterVisibleChange:k}=e,C=wR(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:E,getPrefixCls:O,direction:D,drawer:$}=z.useContext(uy),j=O("drawer",v),[P,_]=yR(j),N=void 0===y&&E?()=>E(document.body):y,I=Dm({"no-mask":!p,[`${j}-rtl`]:"rtl"===D},c,_),T=z.useMemo((()=>null!=u?u:"large"===f?736:378),[u,f]),A=z.useMemo((()=>null!=d?d:"large"===f?736:378),[d,f]),F={motionName:KS(j,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},R=sO(),[M,L]=dS("Drawer",C.zIndex);return P(z.createElement(fk,null,z.createElement(oO,{status:!0,override:!0},z.createElement(iS.Provider,{value:L},z.createElement(gR,Object.assign({prefixCls:j,onClose:b,maskMotion:F,motion:e=>({motionName:KS(j,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{classNames:{mask:Dm(null===(t=C.classNames)||void 0===t?void 0:t.mask,null===(n=null==$?void 0:$.classNames)||void 0===n?void 0:n.mask),content:Dm(null===(r=C.classNames)||void 0===r?void 0:r.content,null===(o=null==$?void 0:$.classNames)||void 0===o?void 0:o.content)},styles:{mask:Object.assign(Object.assign({},null===(a=C.styles)||void 0===a?void 0:a.mask),null===(i=null==$?void 0:$.styles)||void 0===i?void 0:i.mask),content:Object.assign(Object.assign({},null===(s=C.styles)||void 0===s?void 0:s.content),null===(l=null==$?void 0:$.styles)||void 0===l?void 0:l.content)},open:null!=g?g:S,mask:p,push:h,width:T,height:A,style:Object.assign(Object.assign({},null==$?void 0:$.style),w),className:Dm(null==$?void 0:$.className,x),rootClassName:I,getContainer:N,afterOpenChange:null!=m?m:k,panelRef:R,zIndex:M}),z.createElement(mR,Object.assign({prefixCls:j},C,{onClose:b})))))))};SR._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,a=wR(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=z.useContext(uy),s=i("drawer",t),[l,c]=yR(s),u=Dm(s,`${s}-pure`,`${s}-${o}`,c,r);return l(z.createElement("div",{className:u,style:n},z.createElement(mR,Object.assign({prefixCls:s},a))))};const kR=SR;function CR(e){return["small","middle","large"].includes(e)}function ER(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const OR=H.createContext({latestIndex:0}),DR=OR.Provider,$R=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=z.useContext(OR);return null==r?null:z.createElement(z.Fragment,null,z.createElement("div",{className:t,style:a},r),n<i&&o&&z.createElement("span",{className:`${t}-split`},o))};var jR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const PR=z.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=z.useContext(uy),{size:s=(null==a?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:p,split:h,style:g,wrap:m=!1,classNames:b,styles:v}=e,y=jR(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(s)?s:[s,s],S=CR(x),k=CR(w),C=ER(x),E=ER(w),O=qm(d,{keepEmpty:!0}),D=void 0===l&&"horizontal"===f?"center":l,$=o("space",p),[j,P]=lk($),_=Dm($,null==a?void 0:a.className,P,`${$}-${f}`,{[`${$}-rtl`]:"rtl"===i,[`${$}-align-${D}`]:D,[`${$}-gap-row-${x}`]:S,[`${$}-gap-col-${w}`]:k},c,u),N=Dm(`${$}-item`,null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==a?void 0:a.classNames)||void 0===r?void 0:r.item);let I=0;const T=O.map(((e,t)=>{var n,r;null!=e&&(I=t);const o=e&&e.key||`${N}-${t}`;return z.createElement($R,{className:N,key:o,index:t,split:h,style:null!==(n=null==v?void 0:v.item)&&void 0!==n?n:null===(r=null==a?void 0:a.styles)||void 0===r?void 0:r.item},e)})),A=z.useMemo((()=>({latestIndex:I})),[I]);if(0===O.length)return null;const F={};return m&&(F.flexWrap="wrap"),!k&&E&&(F.columnGap=w),!S&&C&&(F.rowGap=x),j(z.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},F),null==a?void 0:a.style),g)},y),z.createElement(DR,{value:A},T)))}));PR.Compact=hk;const _R=PR;function NR(e){const[t,n]=z.useState(e);return z.useEffect((()=>{const t=setTimeout((()=>{n(e)}),e.length?0:10);return()=>{clearTimeout(t)}}),[e]),t}const IR=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)"}}}}},TR=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}}),AR=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},FR=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ty(e)),TR(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},AR(e,e.controlHeightSM)),"&-large":Object.assign({},AR(e,e.controlHeightLG))})}},RR=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:a,labelColor:i,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Ty(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:i,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,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:FO,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},MR=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"}}}}},LR=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"}}}}},BR=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zR=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:BR(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},HR=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`]:BR(e),[`@media (max-width: ${e.screenXSMax}px)`]:[zR(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:BR(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:BR(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:BR(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:BR(e)}}}},WR=(e,t)=>zy(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),UR=Vy("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=WR(e,n);return[FR(r),RR(r),IR(r),MR(r),LR(r),HR(r),YO(r),FO]}),(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}),VR=[];function GR(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const qR=e=>{let{help:t,helpStatus:n,errors:r=VR,warnings:o=VR,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:l}=z.useContext(nO),c=`${l}-item-explain`,[,u]=UR(l),d=z.useMemo((()=>qS(l)),[l]),f=NR(r),p=NR(o),h=z.useMemo((()=>null!=t?[GR(t,"help",n)]:[].concat(fh(f.map(((e,t)=>GR(e,"error","error",t)))),fh(p.map(((e,t)=>GR(e,"warning","warning",t)))))),[t,n,f,p]),g={};return i&&(g.id=`${i}_help`),z.createElement(_w,{motionDeadline:d.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:s},(e=>{const{className:t,style:n}=e;return z.createElement("div",Object.assign({},g,{className:Dm(c,t,a,u),style:n,role:"alert"}),z.createElement(zw,Object.assign({keys:h},qS(l),{motionName:`${l}-show-help-item`,component:!1}),(e=>{const{key:t,error:n,errorStatus:r,className:o,style:a}=e;return z.createElement("div",{key:t,className:Dm(o,{[`${c}-${r}`]:r}),style:a},n)})))}))},KR=["parentNode"],XR="form_item";function YR(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function QR(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return KR.includes(n)?`${XR}_${n}`:n}function JR(e,t,n,r,o,a){let i=r;return void 0!==a?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function ZR(e){return YR(e).join("_")}function eM(e){const[t]=VE(),n=z.useRef({}),r=z.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=ZR(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=QR(YR(e),r.__INTERNAL__.name),o=n?document.getElementById(n):null;o&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(Ux(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:a,top:i,left:s}of Ux(e,Vx(t))){const e=i-n.top+n.bottom,t=s-n.left+n.right;a.scroll({top:e,left:t,behavior:o})}}(o,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=ZR(e);return n.current[t]}})),[e,t]);return[r]}var tM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nM=(e,t)=>{const n=z.useContext(gy),{getPrefixCls:r,direction:o,form:a}=z.useContext(uy),{prefixCls:i,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:h,labelCol:g,wrapperCol:m,hideRequiredMark:b,layout:v="horizontal",scrollToFirstError:y,requiredMark:w,onFinishFailed:x,name:S,style:k,feedbackIcons:C}=e,E=tM(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),O=ok(c),D=z.useContext(ev),$=z.useMemo((()=>void 0!==w?w:a&&void 0!==a.requiredMark?a.requiredMark:!b),[b,w,a]),j=null!=f?f:null==a?void 0:a.colon,P=r("form",i),[_,N]=UR(P),I=Dm(P,`${P}-${v}`,{[`${P}-hide-required-mark`]:!1===$,[`${P}-rtl`]:"rtl"===o,[`${P}-${O}`]:O},N,null==a?void 0:a.className,s,l),[T]=eM(d),{__INTERNAL__:A}=T;A.name=S;const F=z.useMemo((()=>({name:S,labelAlign:p,labelCol:g,labelWrap:h,wrapperCol:m,vertical:"vertical"===v,colon:j,requiredMark:$,itemRef:A.itemRef,form:T,feedbackIcons:C})),[S,p,g,m,v,j,$,T,C]);z.useImperativeHandle(t,(()=>T));const R=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),T.scrollToField(t,n)}};return _(z.createElement(hy,{disabled:u},z.createElement(vy.Provider,{value:O},z.createElement(tO,{validateMessages:D},z.createElement(ZE.Provider,{value:F},z.createElement(JE,Object.assign({id:S},E,{name:S,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void R(y,t);a&&void 0!==a.scrollToFirstError&&R(a.scrollToFirstError,t)}},form:T,style:Object.assign(Object.assign({},null==a?void 0:a.style),k),className:I})))))))},rM=z.forwardRef(nM);const oM=()=>{const{status:e,errors:t=[],warnings:n=[]}=z.useContext(rO);return{status:e,errors:t,warnings:n}};oM.Context=rO;const aM=oM;const iM=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},sM=Gy(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=WR(e,n);return[iM(r)]})),lM=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:a,warnings:i,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,h=z.useContext(ZE),g=r||h.wrapperCol||{},m=Dm(`${p}-control`,g.className),b=z.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const v=z.createElement("div",{className:`${p}-control-input`},z.createElement("div",{className:`${p}-control-input-content`},o)),y=z.useMemo((()=>({prefixCls:t,status:n})),[t,n]),w=null!==d||a.length||i.length?z.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},z.createElement(nO.Provider,{value:y},z.createElement(qR,{fieldId:u,errors:a,warnings:i,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&z.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id=`${u}_extra`);const S=l?z.createElement("div",Object.assign({},x,{className:`${p}-extra`}),l):null,k=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:v,errorList:w,extra:S}):z.createElement(z.Fragment,null,v,w,S);return z.createElement(ZE.Provider,{value:b},z.createElement(xA,Object.assign({},g,{className:m}),k),z.createElement(sM,{prefixCls:t}))};const cM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var uM=function(e,t){return z.createElement(mx,jp({},e,{ref:t,icon:cM}))};const dM=z.forwardRef(uM);var fM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pM=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:a,colon:i,required:s,requiredMark:l,tooltip:c}=e;var u;const[d]=uv("Form"),{vertical:f,labelAlign:p,labelCol:h,labelWrap:g,colon:m}=z.useContext(ZE);if(!n)return null;const b=o||h||{},v=`${t}-item-label`,y=Dm(v,"left"===(a||p)&&`${v}-left`,b.className,{[`${v}-wrap`]:!!g});let w=n;const x=!0===i||!1!==m&&!1!==i;x&&!f&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|]\s*$/,""));const S=function(e){return e?"object"!=typeof e||z.isValidElement(e)?{title:e}:e:null}(c);if(S){const{icon:e=z.createElement(dM,null)}=S,n=fM(S,["icon"]),r=z.createElement(x_,Object.assign({},n),z.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));w=z.createElement(z.Fragment,null,w,r)}const k="optional"===l,C="function"==typeof l;C?w=l(w,{required:!!s}):k&&!s&&(w=z.createElement(z.Fragment,null,w,z.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=ov.Form)||void 0===u?void 0:u.optional))));const E=Dm({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:k||C,[`${t}-item-no-colon`]:!x});return z.createElement(xA,Object.assign({},b,{className:y}),z.createElement("label",{htmlFor:r,className:E,title:"string"==typeof n?n:""},w))},hM={success:vx,warning:Dx,error:xx,validating:aS};function gM(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:a,prefixCls:i,meta:s,noStyle:l}=e;const c=`${i}-item`,{feedbackIcons:u}=z.useContext(ZE),d=JR(n,r,s,null,!!o,a),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:g}=z.useContext(rO),m=z.useMemo((()=>{var e;let t;if(o){const a=!0!==o&&o.icons||u,i=d&&(null===(e=null==a?void 0:a({status:d,errors:n,warnings:r}))||void 0===e?void 0:e[d]),s=d&&hM[d];t=!1!==i&&s?z.createElement("span",{className:Dm(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},i||z.createElement(s,null)):null}const a={status:d||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0};return l&&(a.status=(null!=d?d:p)||"",a.isFormItemInput=f,a.hasFeedback=!!(null!=o?o:h),a.feedbackIcon=void 0!==o?a.feedbackIcon:g),a}),[d,o,l,f,p]);return z.createElement(rO.Provider,{value:m},t)}var mM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function bM(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:i,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:f,fieldId:p,required:h,isRequired:g,onSubItemMetaChange:m}=e,b=mM(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),v=`${t}-item`,{requiredMark:y}=z.useContext(ZE),w=z.useRef(null),x=NR(i),S=NR(s),k=null!=a,C=!!(k||i.length||s.length),E=!!w.current&&XS(w.current),[O,D]=z.useState(null);lg((()=>{if(C&&w.current){const e=getComputedStyle(w.current);D(parseInt(e.marginBottom,10))}}),[C,E]);const $=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return JR(e?x:c.errors,e?S:c.warnings,c,"",!!u,l)}(),j=Dm(v,n,r,{[`${v}-with-help`]:k||x.length||S.length,[`${v}-has-feedback`]:$&&u,[`${v}-has-success`]:"success"===$,[`${v}-has-warning`]:"warning"===$,[`${v}-has-error`]:"error"===$,[`${v}-is-validating`]:"validating"===$,[`${v}-hidden`]:d});return z.createElement("div",{className:j,style:o,ref:w},z.createElement(CA,Object.assign({className:`${v}-row`},Fb(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"])),z.createElement(pM,Object.assign({htmlFor:p},e,{requiredMark:y,required:null!=h?h:g,prefixCls:t})),z.createElement(lM,Object.assign({},e,c,{errors:x,warnings:S,prefixCls:t,status:$,help:a,marginBottom:O,onErrorVisibleChanged:e=>{e||D(null)}}),z.createElement(eO.Provider,{value:m},z.createElement(gM,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:$},f)))),!!O&&z.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-O}}))}const vM=z.memo((e=>{let{children:t}=e;return t}),((e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const yM=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:i,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:h,help:g}=e,{getPrefixCls:m}=z.useContext(uy),{name:b}=z.useContext(ZE),v=function(e){if("function"==typeof e)return e;const t=qm(e);return t.length<=1?t[0]:t}(l),y="function"==typeof v,w=z.useContext(eO),{validateTrigger:x}=z.useContext(HC),S=void 0!==p?p:x,k=!(null==t),C=m("form",a),[E,O]=UR(C);Zb();const D=z.useContext(WC),$=z.useRef(),[j,P]=function(e){const[t,n]=z.useState(e),r=z.useRef(null),o=z.useRef([]),a=z.useRef(!1);return z.useEffect((()=>(a.current=!1,()=>{a.current=!0,Hb.cancel(r.current),r.current=null})),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=Hb((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[_,N]=jy((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{P((n=>{const r=Object.assign({},n),o=[].concat(fh(e.name.slice(0,-1)),fh(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[T,A]=z.useMemo((()=>{const e=fh(_.errors),t=fh(_.warnings);return Object.values(j).forEach((n=>{e.push.apply(e,fh(n.errors||[])),t.push.apply(t,fh(n.warnings||[]))})),[e,t]}),[j,_.errors,_.warnings]),F=function(){const{itemRef:e}=z.useContext(ZE),t=z.useRef({});return function(n,r){const o=r&&"object"==typeof r&&r.ref,a=n.join("_");return t.current.name===a&&t.current.originRef===o||(t.current.name=a,t.current.originRef=o,t.current.ref=Qm(e(n),o)),t.current.ref}}();function R(t,o,a){return n&&!h?z.createElement(gM,{prefixCls:C,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:_,errors:T,warnings:A,noStyle:!0},t):z.createElement(bM,Object.assign({key:"row"},e,{className:Dm(r,O),prefixCls:C,fieldId:o,isRequired:a,errors:T,warnings:A,meta:_,onSubItemMetaChange:I}),t)}if(!k&&!y&&!o)return E(R(v));let M={};return"string"==typeof u?M.label=u:t&&(M.label=String(t)),d&&(M=Object.assign(Object.assign({},M),d)),E(z.createElement(ME,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:S,onMetaChange:e=>{const t=null==D?void 0:D.getKey(e.name);if(N(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==g&&w){let n=e.name;if(e.destroy)n=$.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(fh(r)),$.current=n}w(e,n)}}}),((n,r,a)=>{const l=YR(t).length&&r?r.name:[],u=QR(l,b),d=void 0!==c?c:!(!s||!s.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}))),p=Object.assign({},n);let h=null;if(Array.isArray(v)&&k)h=v;else if(y&&(!i&&!o||k));else if(!o||y||k)if(Fx(v)){const t=Object.assign(Object.assign({},v.props),p);if(t.id||(t.id=u),g||T.length>0||A.length>0||e.extra){const n=[];(g||T.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}T.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),Zm(v)&&(t.ref=F(l,v));new Set([].concat(fh(YR(f)),fh(YR(S)))).forEach((e=>{t[e]=function(){for(var t,n,r,o,a,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];null===(r=p[e])||void 0===r||(t=r).call.apply(t,[p].concat(s)),null===(a=(o=v.props)[e])||void 0===a||(n=a).call.apply(n,[o].concat(s))}}));const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];h=z.createElement(vM,{value:p[e.valuePropName||"value"],update:v,childProps:n},Mx(v,t))}else h=y&&(i||o)&&!k?v(a):v;else;return R(h,u,d)})))};yM.useStatus=aM;const wM=yM;var xM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const SM=e=>{var{prefixCls:t,children:n}=e,r=xM(e,["prefixCls","children"]);const{getPrefixCls:o}=z.useContext(uy),a=o("form",t),i=z.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return z.createElement(LE,Object.assign({},r),((e,t,r)=>z.createElement(nO.Provider,{value:i},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const kM=rM;kM.Item=wM,kM.List=SM,kM.ErrorList=qR,kM.useForm=eM,kM.useFormInstance=function(){const{form:e}=z.useContext(ZE);return e},kM.useWatch=QE,kM.Provider=tO,kM.create=()=>{};const CM=kM;let EM=null,OM=e=>e(),DM=[],$M={};function jM(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:a}=$M,i=null!=e?e:Qw().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:a}}const PM=z.forwardRef(((e,t)=>{const[n,r]=z.useState(jM),[o,a]=ES(n),i=Qw(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=()=>{r(jM)};return z.useEffect(u,[]),z.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}})),z.createElement(ex,{prefixCls:s,iconPrefixCls:l,theme:c},a)}));function _M(){if(!EM){const e=document.createDocumentFragment(),t={fragment:e};return EM=t,void OM((()=>{RS(z.createElement(PM,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,_M())}))}}),e)}))}EM.instance&&(DM.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":OM((()=>{const t=EM.instance.open(Object.assign(Object.assign({},$M),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":OM((()=>{null==EM||EM.instance.destroy(e.key)}));break;default:OM((()=>{var n;const r=(n=EM.instance)[t].apply(n,fh(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),DM=[])}const NM={open:function(e){const t=vS((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return DM.push(r),()=>{n?OM((()=>{n()})):r.skipped=!0}}));return _M(),t},destroy:function(e){DM.push({type:"destroy",key:e}),_M()},config:function(e){$M=Object.assign(Object.assign({},$M),e),OM((()=>{var e;null===(e=null==EM?void 0:EM.sync)||void 0===e||e.call(EM)}))},useMessage:OS,_InternalPanelDoNotUseOrYouWillBeFired:bS};["success","info","warning","error","loading"].forEach((e=>{NM[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){const n=vS((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return DM.push(o),()=>{r?OM((()=>{r()})):o.skipped=!0}}));return _M(),n}(e,n)}}));const IM=NM;var TM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const AM=a$((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:l}=e,c=TM(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=z.useContext(uy),d=u(),f=t||u("modal"),[,p]=oD(f),h=`${f}-confirm`;let g={};return g=a?{closable:null!=o&&o,title:"",footer:"",children:z.createElement(fD,Object.assign({},e,{prefixCls:f,confirmPrefixCls:h,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:i,footer:null!==l&&z.createElement(dO,Object.assign({},e)),children:s},z.createElement(TC,Object.assign({prefixCls:f,className:Dm(p,`${f}-pure-panel`,a&&h,a&&`${h}-${a}`,n)},c,{closeIcon:uO(f,r),closable:o},g))}));function FM(e){return vD(yD(e))}const RM=lD;RM.useModal=jD,RM.info=function(e){return vD(wD(e))},RM.success=function(e){return vD(xD(e))},RM.error=function(e){return vD(SD(e))},RM.warning=FM,RM.warn=FM,RM.confirm=function(e){return vD(kD(e))},RM.destroyAll=function(){for(;gD.length;){const e=gD.pop();e&&e()}},RM.config=function(e){let{rootPrefixCls:t}=e;bD=t},RM._InternalPanelDoNotUseOrYouWillBeFired=AM;const MM=RM;let LM=null,BM=e=>e(),zM=[],HM={};function WM(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:a}=HM,i=null!=e?e:Qw().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:a}}const UM=z.forwardRef(((e,t)=>{const[n,r]=z.useState(WM),[o,a]=QD(n),i=Qw(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=()=>{r(WM)};return z.useEffect(u,[]),z.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}})),z.createElement(ex,{prefixCls:s,iconPrefixCls:l,theme:c},a)}));function VM(){if(!LM){const e=document.createDocumentFragment(),t={fragment:e};return LM=t,void BM((()=>{RS(z.createElement(UM,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,VM())}))}}),e)}))}LM.instance&&(zM.forEach((e=>{switch(e.type){case"open":BM((()=>{LM.instance.open(Object.assign(Object.assign({},HM),e.config))}));break;case"destroy":BM((()=>{null==LM||LM.instance.destroy(e.key)}))}})),zM=[])}function GM(e){zM.push({type:"open",config:e}),VM()}const qM={open:GM,destroy:function(e){zM.push({type:"destroy",key:e}),VM()},config:function(e){HM=Object.assign(Object.assign({},HM),e),BM((()=>{var e;null===(e=null==LM?void 0:LM.sync)||void 0===e||e.call(LM)}))},useNotification:JD,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:s,closable:l=!0,closeIcon:c}=e,u=HD(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=z.useContext(uy),f=t||d("notification"),p=`${f}-notice`,[,h]=BD(f);return z.createElement("div",{className:Dm(`${p}-pure-panel`,h,n)},z.createElement(zD,{prefixCls:f}),z.createElement(qx,Object.assign({},u,{prefixCls:f,eventKey:"pure",duration:null,closable:l,closeIcon:WD(f,c),content:z.createElement(VD,{prefixCls:p,icon:r,type:o,message:a,description:i,btn:s})})))}};["success","info","warning","error"].forEach((e=>{qM[e]=t=>GM(Object.assign(Object.assign({},t),{type:e}))}));const KM=qM;var XM=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},YM=function(e){return void 0!==e?"".concat(e,"px"):void 0};function QM(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,a=e.motionName,i=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=z.useRef(null),u=qh(z.useState(r),2),d=u[0],f=u[1],p=function(e){var r,a=o(e),i=null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[a];return(null==i?void 0:i.offsetParent)&&i},h=qh(z.useState(null),2),g=h[0],m=h[1],b=qh(z.useState(null),2),v=b[0],y=b[1];lg((function(){if(d!==r){var e=p(d),t=p(r),n=XM(e),o=XM(t);f(r),m(n),y(o),e&&t?i():s()}}),[r]);var w=z.useMemo((function(){return YM("rtl"===l?-(null==g?void 0:g.right):null==g?void 0:g.left)}),[l,g]),x=z.useMemo((function(){return YM("rtl"===l?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[l,v]);return g&&v?z.createElement(_w,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){m(null),y(null),s()}},(function(e,n){var r=e.className,o=hh(hh({},e.style),{},{"--thumb-start-left":w,"--thumb-start-width":YM(null==g?void 0:g.width),"--thumb-active-left":x,"--thumb-active-width":YM(null==v?void 0:v.width)}),a={ref:Qm(c,n),style:o,className:Dm("".concat(t,"-thumb"),r)};return z.createElement("div",a)})):null}var JM=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function ZM(e){return e.map((function(e){if("object"===fd(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==fd(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return hh(hh({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var eL=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,o=e.checked,a=e.label,i=e.title,s=e.value,l=e.onChange;return z.createElement("label",{className:Dm(n,hd({},"".concat(t,"-item-disabled"),r))},z.createElement("input",{className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:o,onChange:function(e){r||l(e,s)}}),z.createElement("div",{className:"".concat(t,"-item-label"),title:i},a))},tL=z.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=void 0===o?"rc-segmented":o,i=e.direction,s=e.options,l=e.disabled,c=e.defaultValue,u=e.value,d=e.onChange,f=e.className,p=void 0===f?"":f,h=e.motionName,g=void 0===h?"thumb-motion":h,m=gd(e,JM),b=z.useRef(null),v=z.useMemo((function(){return Qm(b,t)}),[b,t]),y=z.useMemo((function(){return ZM(s)}),[s]),w=qh(_y(null===(n=y[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),x=w[0],S=w[1],k=qh(z.useState(!1),2),C=k[0],E=k[1],O=function(e,t){l||(S(t),null==d||d(t))},D=Fb(m,["children"]);return z.createElement("div",jp({},D,{className:Dm(a,(r={},hd(r,"".concat(a,"-rtl"),"rtl"===i),hd(r,"".concat(a,"-disabled"),l),r),p),ref:v}),z.createElement("div",{className:"".concat(a,"-group")},z.createElement(QM,{prefixCls:a,value:x,containerRef:b,motionName:"".concat(a,"-").concat(g),direction:i,getValueIndex:function(e){return y.findIndex((function(t){return t.value===e}))},onMotionStart:function(){E(!0)},onMotionEnd:function(){E(!1)}}),y.map((function(e){return z.createElement(eL,jp({},e,{key:e.value,prefixCls:a,className:Dm(e.className,"".concat(a,"-item"),hd({},"".concat(a,"-item-selected"),e.value===x&&!C)),checked:e.value===x,onChange:O,disabled:!!l||!!e.disabled}))}))))}));function nL(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function rL(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}tL.displayName="Segmented",tL.defaultProps={options:[]};const oL=Object.assign({overflow:"hidden"},Iy),aL=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ty(e)),{display:"inline-block",padding:e.segmentedPadding,color:e.itemColor,backgroundColor:e.segmentedBgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},rL(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`},oL),"&-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({},rL(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}}}),nL(`&-disabled ${t}-item`,e)),nL(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},iL=Vy("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=zy(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[aL(o)]}),(e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:a}=e;return{itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:n}}));var sL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lL=z.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,block:a,options:i=[],size:s="middle",style:l}=e,c=sL(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:f}=z.useContext(uy),p=u("segmented",n),[h,g]=iL(p),m=ok(s),b=z.useMemo((()=>i.map((e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=sL(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:z.createElement(z.Fragment,null,z.createElement("span",{className:`${p}-item-icon`},t),n&&z.createElement("span",null,n))})}return e}))),[i,p]),v=Dm(r,o,null==f?void 0:f.className,{[`${p}-block`]:a,[`${p}-sm`]:"small"===m,[`${p}-lg`]:"large"===m},g),y=Object.assign(Object.assign({},null==f?void 0:f.style),l);return h(z.createElement(tL,Object.assign({},c,{className:v,style:y,options:b,ref:t,prefixCls:p,direction:d})))}));var cL=z.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function uL(e,t,n){return(e-t)/(n-t)}function dL(e,t,n,r){var o=uL(t,n,r),a={};switch(e){case"rtl":a.right="".concat(100*o,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(100*o,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(100*o,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(100*o,"%"),a.transform="translateX(-50%)"}return a}function fL(e,t){return Array.isArray(e)?e[t]:e}var pL=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],hL=z.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=e.value,i=e.valueIndex,s=e.onStartMove,l=e.style,c=e.render,u=e.dragging,d=e.onOffsetChange,f=gd(e,pL),p=z.useContext(cL),h=p.min,g=p.max,m=p.direction,b=p.disabled,v=p.keyboard,y=p.range,w=p.tabIndex,x=p.ariaLabelForHandle,S=p.ariaLabelledByForHandle,k=p.ariaValueTextFormatterForHandle,C=p.styles,E=p.classNames,O="".concat(o,"-handle"),D=function(e){b||s(e,i)},$=dL(m,a,h,g),j=z.createElement("div",jp({ref:t,className:Dm(O,(n={},hd(n,"".concat(O,"-").concat(i+1),y),hd(n,"".concat(O,"-dragging"),u),n),E.handle),style:hh(hh(hh({},$),l),C.handle),onMouseDown:D,onTouchStart:D,onKeyDown:function(e){if(!b&&v){var t=null;switch(e.which||e.keyCode){case Gx.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case Gx.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case Gx.UP:t="ttb"!==m?1:-1;break;case Gx.DOWN:t="ttb"!==m?-1:1;break;case Gx.HOME:t="min";break;case Gx.END:t="max";break;case Gx.PAGE_UP:t=2;break;case Gx.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,i))}},tabIndex:b?null:fL(w,i),role:"slider","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":a,"aria-disabled":b,"aria-label":fL(x,i),"aria-labelledby":fL(S,i),"aria-valuetext":null===(r=fL(k,i))||void 0===r?void 0:r(a),"aria-orientation":"ltr"===m||"rtl"===m?"horizontal":"vertical"},f));return c&&(j=c(j,{index:i,prefixCls:o,value:a,dragging:u})),j})),gL=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],mL=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,i=e.values,s=e.handleRender,l=e.draggingIndex,c=gd(e,gL),u=z.useRef({});return z.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=u.current[e])||void 0===t||t.focus()}}})),z.createElement(z.Fragment,null,i.map((function(e,t){return z.createElement(hL,jp({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:fL(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:a,render:s},c))})))}));function bL(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function vL(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=z.useContext(cL),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,f=i.included,p="".concat(t,"-text"),h=dL(c,o,s,l);return z.createElement("span",{className:Dm(p,hd({},"".concat(p,"-active"),f&&u<=o&&o<=d)),style:hh(hh({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(o)}},r)}function yL(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?z.createElement("div",{className:o},n.map((function(e){var t=e.value,n=e.style,a=e.label;return z.createElement(vL,{key:t,prefixCls:o,style:n,value:t,onClick:r},a)}))):null}function wL(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=z.useContext(cL),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,f="".concat(t,"-dot"),p=c&&u<=n&&n<=d,h=hh(hh({},dL(l,n,i,s)),"function"==typeof r?r(n):r);return p&&(h=hh(hh({},h),"function"==typeof o?o(n):o)),z.createElement("span",{className:Dm(f,hd({},"".concat(f,"-active"),p)),style:h})}function xL(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=z.useContext(cL),s=i.min,l=i.max,c=i.step,u=z.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==c)for(var t=s;t<=l;)e.add(t),t+=c;return Array.from(e)}),[s,l,c,r,n]);return z.createElement("div",{className:"".concat(t,"-step")},u.map((function(e){return z.createElement(wL,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})})))}function SL(e){var t,n=e.prefixCls,r=e.style,o=e.start,a=e.end,i=e.index,s=e.onStartMove,l=e.replaceCls,c=z.useContext(cL),u=c.direction,d=c.min,f=c.max,p=c.disabled,h=c.range,g=c.classNames,m="".concat(n,"-track"),b=uL(o,d,f),v=uL(a,d,f),y=function(e){!p&&s&&s(e,-1)},w={};switch(u){case"rtl":w.right="".concat(100*b,"%"),w.width="".concat(100*v-100*b,"%");break;case"btt":w.bottom="".concat(100*b,"%"),w.height="".concat(100*v-100*b,"%");break;case"ttb":w.top="".concat(100*b,"%"),w.height="".concat(100*v-100*b,"%");break;default:w.left="".concat(100*b,"%"),w.width="".concat(100*v-100*b,"%")}var x=l||Dm(m,(hd(t={},"".concat(m,"-").concat(i+1),null!==i&&h),hd(t,"".concat(n,"-track-draggable"),s),t),g.track);return z.createElement("div",{className:x,style:hh(hh({},w),r),onMouseDown:y,onTouchStart:y})}function kL(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=z.useContext(cL),s=i.included,l=i.range,c=i.min,u=i.styles,d=i.classNames,f=z.useMemo((function(){if(!l){if(0===r.length)return[];var e=null!=o?o:c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],a=0;a<r.length-1;a+=1)n.push({start:r[a],end:r[a+1]});return n}),[r,l,o,c]),p=null;return(d.tracks||u.tracks)&&(p=z.createElement(SL,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:Dm(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),s?z.createElement(z.Fragment,null,p,f.map((function(e,r){var o=e.start,i=e.end;return z.createElement(SL,{index:r,prefixCls:t,style:hh(hh({},fL(n,r)),u.track),start:o,end:i,key:r,onStartMove:a})}))):null}var CL=z.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-slider":r,a=e.className,i=e.style,s=e.classNames,l=e.styles,c=e.disabled,u=void 0!==c&&c,d=e.keyboard,f=void 0===d||d,p=e.autoFocus,h=e.onFocus,g=e.onBlur,m=e.min,b=void 0===m?0:m,v=e.max,y=void 0===v?100:v,w=e.step,x=void 0===w?1:w,S=e.value,k=e.defaultValue,C=e.range,E=e.count,O=e.onChange,D=e.onBeforeChange,$=e.onAfterChange,j=e.allowCross,P=void 0===j||j,_=e.pushable,N=void 0!==_&&_,I=e.draggableTrack,T=e.reverse,A=e.vertical,F=e.included,R=void 0===F||F,M=e.startPoint,L=e.trackStyle,B=e.handleStyle,H=e.railStyle,W=e.dotStyle,U=e.activeDotStyle,V=e.marks,G=e.dots,q=e.handleRender,K=e.tabIndex,X=void 0===K?0:K,Y=e.ariaLabelForHandle,Q=e.ariaLabelledByForHandle,J=e.ariaValueTextFormatterForHandle,Z=z.useRef(),ee=z.useRef(),te=z.useMemo((function(){return A?T?"ttb":"btt":T?"rtl":"ltr"}),[T,A]),ne=z.useMemo((function(){return isFinite(b)?b:0}),[b]),re=z.useMemo((function(){return isFinite(y)?y:100}),[y]),oe=z.useMemo((function(){return null!==x&&x<=0?1:x}),[x]),ae=z.useMemo((function(){return"boolean"==typeof N?!!N&&oe:N>=0&&N}),[N,oe]),ie=z.useMemo((function(){return Object.keys(V||{}).map((function(e){var t=V[e],n={value:Number(e)};return t&&"object"===fd(t)&&!z.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[V]),se=function(e,t,n,r,o,a){var i=z.useCallback((function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),Math.max(e,r)}),[e,t]),s=z.useCallback((function(r){if(null!==n){var o=e+Math.round((i(r)-e)/n)*n,a=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(a(n),a(t),a(e)),l=Number(o.toFixed(s));return e<=l&&l<=t?l:null}return null}),[n,e,t,i]),l=z.useCallback((function(o){var a=i(o),l=r.map((function(e){return e.value}));null!==n&&l.push(s(o)),l.push(e,t);var c=l[0],u=t-e;return l.forEach((function(e){var t=Math.abs(a-e);t<=u&&(c=e,u=t)})),c}),[e,t,r,n,i,s]),c=function o(a,i,l){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof i){var u,d=a[l],f=d+i,p=[];r.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(s(d));var h=i>0?1:-1;"unit"===c?p.push(s(d+h*n)):p.push(s(f)),p=p.filter((function(e){return null!==e})).filter((function(e){return i<0?e<=d:e>=d})),"unit"===c&&(p=p.filter((function(e){return e!==d})));var g="unit"===c?d:f;u=p[0];var m=Math.abs(u-g);if(p.forEach((function(e){var t=Math.abs(e-g);t<m&&(u=e,m=t)})),void 0===u)return i<0?e:t;if("dist"===c)return u;if(Math.abs(i)>1){var b=fh(a);return b[l]=u,o(b,i-h,l,c)}return u}return"min"===i?e:"max"===i?t:void 0},u=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],a=c(e,t,n,r);return{value:a,changed:a!==o}},d=function(e){return null===a&&0===e||"number"==typeof a&&e<a};return[l,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",i=e.map(l),s=i[n],f=c(i,t,n,r);if(i[n]=f,!1===o){var p=a||0;n>0&&i[n-1]!==s&&(i[n]=Math.max(i[n],i[n-1]+p)),n<i.length-1&&i[n+1]!==s&&(i[n]=Math.min(i[n],i[n+1]-p))}else if("number"==typeof a||null===a){for(var h=n+1;h<i.length;h+=1)for(var g=!0;d(i[h]-i[h-1])&&g;){var m=u(i,1,h);i[h]=m.value,g=m.changed}for(var b=n;b>0;b-=1)for(var v=!0;d(i[b]-i[b-1])&&v;){var y=u(i,-1,b-1);i[b-1]=y.value,v=y.changed}for(var w=i.length-1;w>0;w-=1)for(var x=!0;d(i[w]-i[w-1])&&x;){var S=u(i,-1,w-1);i[w-1]=S.value,x=S.changed}for(var k=0;k<i.length-1;k+=1)for(var C=!0;d(i[k+1]-i[k])&&C;){var E=u(i,1,k+1);i[k+1]=E.value,C=E.changed}}return{value:i[n],values:i}}]}(ne,re,oe,ie,P,ae),le=qh(se,2),ce=le[0],ue=le[1],de=qh(_y(k,{value:S}),2),fe=de[0],pe=de[1],he=z.useMemo((function(){var e=null==fe?[]:Array.isArray(fe)?fe:[fe],t=qh(e,1)[0],n=null===fe?[]:[void 0===t?ne:t];if(C){if(n=fh(e),E||void 0===fe){var r=E>=0?E+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:ne)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ce(e)})),n}),[fe,C,ne,E,ce]),ge=z.useRef(he);ge.current=he;var me=function(e){return C?e:e[0]},be=function(e){var t=fh(e).sort((function(e,t){return e-t}));O&&!Sh(t,ge.current,!0)&&O(me(t)),pe(t)},ve=function(e,t,n,r,o,a,i,s,l){var c=qh(z.useState(null),2),u=c[0],d=c[1],f=qh(z.useState(-1),2),p=f[0],h=f[1],g=qh(z.useState(n),2),m=g[0],b=g[1],v=qh(z.useState(n),2),y=v[0],w=v[1],x=z.useRef(null),S=z.useRef(null);z.useEffect((function(){-1===p&&b(n)}),[n,p]),z.useEffect((function(){return function(){document.removeEventListener("mousemove",x.current),document.removeEventListener("mouseup",S.current),document.removeEventListener("touchmove",x.current),document.removeEventListener("touchend",S.current)}}),[]);var k=function(e,t){m.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&d(t),b(e),i(e))},C=function(e,t){if(-1===e){var n=y[0],i=y[y.length-1],s=r-n,c=o-i,u=t*(o-r);u=Math.max(u,s),u=Math.min(u,c);var d=a(n+u);u=d-n;var f=y.map((function(e){return e+u}));k(f)}else{var p=(o-r)*t,h=fh(m);h[e]=y[e];var g=l(h,p,e,"dist");k(g.values,g.value)}},E=z.useRef(C);E.current=C;var O=z.useMemo((function(){var e=fh(n).sort((function(e,t){return e-t})),t=fh(m).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?m:n}),[n,m]);return[p,u,O,function(r,o,a){r.stopPropagation();var i=a||n,l=i[o];h(o),d(l),w(i);var c=bL(r),u=c.pageX,f=c.pageY,p=function(n){n.preventDefault();var r,a=bL(n),i=a.pageX,s=a.pageY,l=i-u,c=s-f,d=e.current.getBoundingClientRect(),p=d.width,h=d.height;switch(t){case"btt":r=-c/h;break;case"ttb":r=c/h;break;case"rtl":r=-l/p;break;default:r=l/p}E.current(o,r)},g=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",p),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",p),x.current=null,S.current=null,h(-1),s()};document.addEventListener("mouseup",g),document.addEventListener("mousemove",p),document.addEventListener("touchend",g),document.addEventListener("touchmove",p),x.current=p,S.current=g}]}(ee,te,he,ne,re,ce,be,(function(){null==$||$(me(ge.current))}),ue),ye=qh(ve,4),we=ye[0],xe=ye[1],Se=ye[2],ke=ye[3],Ce=function(e,t){if(!u){var n=0,r=re-ne;he.forEach((function(t,o){var a=Math.abs(e-t);a<=r&&(r=a,n=o)}));var o=fh(he);o[n]=e,C&&!he.length&&void 0===E&&o.push(e),null==D||D(me(o)),be(o),null==$||$(me(o)),t&&ke(t,n,o)}},Ee=qh(z.useState(null),2),Oe=Ee[0],De=Ee[1];z.useEffect((function(){if(null!==Oe){var e=he.indexOf(Oe);e>=0&&Z.current.focus(e)}De(null)}),[Oe]);var $e=z.useMemo((function(){return(!I||null!==oe)&&I}),[I,oe]),je=function(e,t){ke(e,t),null==D||D(me(ge.current))},Pe=-1!==we;z.useEffect((function(){if(!Pe){var e=he.lastIndexOf(xe);Z.current.focus(e)}}),[Pe]);var _e=z.useMemo((function(){return fh(Se).sort((function(e,t){return e-t}))}),[Se]),Ne=qh(z.useMemo((function(){return C?[_e[0],_e[_e.length-1]]:[ne,_e[0]]}),[_e,C,ne]),2),Ie=Ne[0],Te=Ne[1];z.useImperativeHandle(t,(function(){return{focus:function(){Z.current.focus(0)},blur:function(){var e=document.activeElement;ee.current.contains(e)&&(null==e||e.blur())}}})),z.useEffect((function(){p&&Z.current.focus(0)}),[]);var Ae=z.useMemo((function(){return{min:ne,max:re,direction:te,disabled:u,keyboard:f,step:oe,included:R,includedStart:Ie,includedEnd:Te,range:C,tabIndex:X,ariaLabelForHandle:Y,ariaLabelledByForHandle:Q,ariaValueTextFormatterForHandle:J,styles:l||{},classNames:s||{}}}),[ne,re,te,u,f,oe,R,Ie,Te,C,X,Y,Q,J,l,s]);return z.createElement(cL.Provider,{value:Ae},z.createElement("div",{ref:ee,className:Dm(o,a,(n={},hd(n,"".concat(o,"-disabled"),u),hd(n,"".concat(o,"-vertical"),A),hd(n,"".concat(o,"-horizontal"),!A),hd(n,"".concat(o,"-with-marks"),ie.length),n)),style:i,onMouseDown:function(e){e.preventDefault();var t,n=ee.current.getBoundingClientRect(),r=n.width,o=n.height,a=n.left,i=n.top,s=n.bottom,l=n.right,c=e.clientX,u=e.clientY;switch(te){case"btt":t=(s-u)/o;break;case"ttb":t=(u-i)/o;break;case"rtl":t=(l-c)/r;break;default:t=(c-a)/r}Ce(ce(ne+t*(re-ne)),e)}},z.createElement("div",{className:Dm("".concat(o,"-rail"),null==s?void 0:s.rail),style:hh(hh({},H),null==l?void 0:l.rail)}),z.createElement(kL,{prefixCls:o,style:L,values:_e,startPoint:M,onStartMove:$e?je:null}),z.createElement(xL,{prefixCls:o,marks:ie,dots:G,style:W,activeStyle:U}),z.createElement(mL,{ref:Z,prefixCls:o,style:B,values:Se,draggingIndex:we,onStartMove:je,onOffsetChange:function(e,t){if(!u){var n=ue(he,e,t);null==D||D(me(he)),be(n.values),null==$||$(me(n.values)),De(n.value)}},onFocus:h,onBlur:g,handleRender:q}),z.createElement(yL,{prefixCls:o,marks:ie,onClick:Ce})))}));const EL=z.forwardRef(((e,t)=>{const{open:n}=e,r=z.useRef(null),o=z.useRef(null);function a(){Hb.cancel(o.current),o.current=null}return z.useEffect((()=>(n?o.current=Hb((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),o.current=null})):a(),a)),[n,e.title]),z.createElement(x_,Object.assign({ref:Qm(r,t)},e))})),OL=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},Ty(e)),{position:"relative",height:r,margin:`${i}px ${a}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${a}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor: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","&::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 Pv(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"}})}},DL=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"width":"height",s=t?"height":"width",l=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart",u=(3*r-o)/2,d=(o-r)/2,f=t?{borderWidth:`${d}px 0`,transform:`translateY(-${d}px)`}:{borderWidth:`0 ${d}px`,transform:`translateX(-${d}px)`};return{[t?"paddingBlock":"paddingInline"]:r,[s]:3*r,[`${n}-rail`]:{[i]:"100%",[s]:r},[`${n}-track,${n}-tracks`]:{[s]:r},[`${n}-track-draggable`]:Object.assign({},f),[`${n}-handle`]:{[l]:u},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:3*r+(t?0:e.marginFull),[i]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[i]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[l]:(r-a)/2}}},$L=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},DL(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},jL=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},DL(e,!1)),{height:"100%"})}},PL=Vy("Slider",(e=>{const t=zy(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[OL(t),$L(t),jL(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}}));var _L=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const NL=H.forwardRef(((e,t)=>{const{prefixCls:n,range:r,className:o,rootClassName:a,style:i,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f}=e,p=_L(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:g,getPrefixCls:m,getPopupContainer:b}=H.useContext(uy),v=H.useContext(gy),y=null!=s?s:v,[w,x]=H.useState({}),S=(e,t)=>{x((n=>Object.assign(Object.assign({},n),{[e]:t})))},k=(e,t)=>e||(t?"rtl"===h?"left":"right":"top"),C=m("slider",n),[E,O]=PL(C),D=Dm(o,null==g?void 0:g.className,a,{[`${C}-rtl`]:"rtl"===h},O);"rtl"!==h||p.vertical||(p.reverse=!p.reverse);const[$,j]=H.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),P=Object.assign(Object.assign({},null==g?void 0:g.style),i);return E(H.createElement(CL,Object.assign({},p,{step:p.step,range:$,draggableTrack:j,className:D,style:P,disabled:y,ref:t,prefixCls:C,handleRender:(t,n)=>{var r;const{index:o,dragging:a}=n,{tooltip:i={},vertical:s}=e,h=Object.assign({},i),{open:g,placement:v,getPopupContainer:y,prefixCls:x,formatter:E}=h,O=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(E,c),D=!!O&&(w[o]||a),$=null!==(r=null!=g?g:u)&&void 0!==r?r:void 0===g&&D,j=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>S(o,!0),onMouseLeave:()=>S(o,!1),onFocus:e=>{var t;S(o,!0),null===(t=p.onFocus)||void 0===t||t.call(p,e)},onBlur:e=>{var t;S(o,!1),null===(t=p.onBlur)||void 0===t||t.call(p,e)}});return H.createElement(EL,Object.assign({},h,{prefixCls:m("tooltip",null!=x?x:l),title:O?O(n.value):"",open:$,placement:k(null!=v?v:f,s),key:o,overlayClassName:`${C}-tooltip`,getPopupContainer:y||d||b}),H.cloneElement(t,j))}})))})),IL=NL;var TL=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],AL=z.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-switch":r,a=e.className,i=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,g=gd(e,TL),m=qh(_y(!1,{value:i,defaultValue:s}),2),b=m[0],v=m[1];function y(e,t){var n=b;return l||(v(n=e),null==p||p(n,t)),n}var w=Dm(o,a,(hd(n={},"".concat(o,"-checked"),b),hd(n,"".concat(o,"-disabled"),l),n));return z.createElement("button",jp({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:w,ref:t,onKeyDown:function(e){e.which===Gx.LEFT?y(!1,e):e.which===Gx.RIGHT&&y(!0,e),null==h||h(e)},onClick:function(e){var t=y(!b,e);null==f||f(t,e)}}),c,z.createElement("span",{className:"".concat(o,"-inner")},z.createElement("span",{className:"".concat(o,"-inner-checked")},u),z.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))}));AL.displayName="Switch";const FL=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:i,handleSizeSM:s}=e,l=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:`${n}px`,[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${s+2*r}px - ${2*i}px)`,marginInlineEnd:`calc(100% - ${s+2*r}px + ${2*i}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:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${s+2*r}px + ${2*i}px)`,marginInlineEnd:`calc(-100% + ${s+2*r}px - ${2*i}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}}}}}}},RL=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}}}},ML=e=>{const{componentCls:t,motion:n,trackPadding:r,handleBg:o,handleShadow:a,handleSize:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:i/2,boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${i+r}px)`},[`&:not(${t}-disabled):active`]:n?{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},LL=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:a,handleSize:i}=e,s=`${t}-inner`;return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,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% + ${i+2*r}px - ${2*a}px)`,marginInlineEnd:`calc(100% - ${i+2*r}px + ${2*a}px)`},[`${s}-unchecked`]:{marginTop:-n,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${i+2*r}px + ${2*a}px)`,marginInlineEnd:`calc(-100% + ${i+2*r}px - ${2*a}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}}}}}},BL=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ty(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}}),My(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"}})}},zL=Vy("Switch",(e=>{const t=zy(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[BL(t),LL(t),ML(t),RL(t),FL(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,a=t*n,i=r/2,s=a-4,l=i-4;return{trackHeight:a,trackHeightSM:i,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Pv("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));var HL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const WL=z.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=HL(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=z.useContext(uy),p=z.useContext(gy),h=(null!=o?o:p)||a,g=u("switch",n),m=z.createElement("div",{className:`${g}-handle`},a&&z.createElement(aS,{className:`${g}-loading-icon`})),[b,v]=zL(g),y=ok(r),w=Dm(null==f?void 0:f.className,{[`${g}-small`]:"small"===y,[`${g}-loading`]:a,[`${g}-rtl`]:"rtl"===d},i,s,v),x=Object.assign(Object.assign({},null==f?void 0:f.style),l);return b(z.createElement(rk,{component:"Switch"},z.createElement(AL,Object.assign({},c,{prefixCls:g,className:w,style:x,disabled:h,ref:t,loadingIcon:m}))))}));WL.__ANT_SWITCH=!0;const UL=WL;function VL(e){if(null==e)throw new TypeError("Cannot destructure "+e)}const GL=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return zy(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},qL=e=>({defaultBg:new Pv(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),KL=Vy("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return{[o]:Object.assign(Object.assign({},Ty(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,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:i,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:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(GL(e))),qL);var XL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const YL=z.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=XL(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=z.useContext(uy),d=c("tag",n),[f,p]=KL(d),h=Dm(d,`${d}-checkable`,{[`${d}-checkable-checked`]:a},null==u?void 0:u.className,o,p);return f(z.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),null==u?void 0:u.style),className:h,onClick:e=>{null==i||i(!a),null==s||s(e)}})))})),QL=YL,JL=Gy(["Tag","preset"],(e=>(e=>qy(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(GL(e))),qL);const ZL=(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"}}}},eB=Gy(["Tag","status"],(e=>{const t=GL(e);return[ZL(t,"success","Success"),ZL(t,"processing","Info"),ZL(t,"error","Error"),ZL(t,"warning","Warning")]}),qL);var tB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nB=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:f=!0}=e,p=tB(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:g,tag:m}=z.useContext(uy),[b,v]=z.useState(!0);z.useEffect((()=>{"visible"in p&&v(p.visible)}),[p.visible]);const y=m_(l),w=function(e){return g_.includes(e)}(l),x=y||w,S=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},null==m?void 0:m.style),a),k=h("tag",n),[C,E]=KL(k),O=Dm(k,null==m?void 0:m.className,{[`${k}-${l}`]:x,[`${k}-has-color`]:l&&!x,[`${k}-hidden`]:!b,[`${k}-rtl`]:"rtl"===g,[`${k}-borderless`]:!f},r,o,E),D=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||v(!1)},[,$]=LC(d,u,(e=>null===e?z.createElement(Cx,{className:`${k}-close-icon`,onClick:D}):z.createElement("span",{className:`${k}-close-icon`,onClick:D},e)),null,!1),j="function"==typeof p.onClick||i&&"a"===i.type,P=s||null,_=P?z.createElement(z.Fragment,null,P,i&&z.createElement("span",null,i)):i,N=z.createElement("span",Object.assign({},p,{ref:t,className:O,style:S}),_,$,y&&z.createElement(JL,{key:"preset",prefixCls:k}),w&&z.createElement(eB,{key:"status",prefixCls:k}));return C(j?z.createElement(rk,{component:"Tag"},N):N)},rB=z.forwardRef(nB);rB.CheckableTag=QL;const oB=rB;const aB=(e,t)=>{const n=null!=t?t:ay(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)),oy(r)),{controlHeight:o}),Xv(Object.assign(Object.assign({},n),{controlHeight:o})))},iB=(e,t)=>new Pv(e).setAlpha(t).toRgbString(),sB=(e,t)=>new Pv(e).lighten(t).toHexString(),lB=e=>{const t=Uv(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]}},cB=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:iB(r,.85),colorTextSecondary:iB(r,.65),colorTextTertiary:iB(r,.45),colorTextQuaternary:iB(r,.25),colorFill:iB(r,.18),colorFillSecondary:iB(r,.12),colorFillTertiary:iB(r,.08),colorFillQuaternary:iB(r,.04),colorBgElevated:sB(n,12),colorBgContainer:sB(n,8),colorBgLayout:sB(n,0),colorBgSpotlight:sB(n,26),colorBgBlur:iB(r,.04),colorBorder:sB(n,26),colorBorderSecondary:sB(n,19)}},uB=(e,t)=>{const n=Object.keys(Yv).map((t=>{const n=Uv(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:ay(e);return Object.assign(Object.assign(Object.assign({},r),n),Jv(e,{generateColorPalettes:lB,generateNeutralColorPalettes:cB}))};const dB={defaultConfig:sy,defaultSeed:sy.token,useToken:function(){const[e,t,n]=Dy();return{theme:e,token:t,hashId:n}},defaultAlgorithm:ay,darkAlgorithm:uB,compactAlgorithm:aB,getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?Jh(e.algorithm):Jh(ay),n=Object.assign(Object.assign({},Qv),null==e?void 0:e.token);return yg(n,{override:null==e?void 0:e.token},t,Cy)}};var fB,pB=function(){return dB.useToken().token},hB=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},gB=z.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(fB=hB("dark"))&&void 0!==fB&&fB.matches?"dark":"light"}),mB=function(){return z.useContext(gB)},bB=function(){var e=pB(),t=mB(),n=t.appearance,r=t.isDarkMode;return z.useMemo((function(){return t=function(e){var t=e.css,n=e.token;return{buttonDefaultHover:t({backgroundColor:n.colorBgContainer,border:"1px solid ".concat(n.colorBorder),cursor:"pointer",":hover":{color:n.colorPrimaryHover,borderColor:n.colorPrimaryHover},":active":{color:n.colorPrimaryActive,borderColor:n.colorPrimaryActive}})}}({token:e,css:$p,appearance:n,isDarkMode:r}),Object.fromEntries(Object.entries(t).map((function(e){var t=qh(e,2);return[t[0],t[1].styles]})));var t}),[e,n,r])};function vB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vB(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wB=function(){var e=pB(),t=bB();return z.useMemo((function(){return yB(yB({},e),{},{stylish:t})}),[e,t])};function xB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xB(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kB=function(e){return SB(SB({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},CB=function(){var e=EA.useBreakpoint();return z.useMemo((function(){return kB(e)}),[e])},EB=["stylish","appearance","isDarkMode","prefixCls"],OB=["prefixCls"],DB=function(e){var t=e.hashPriority,n=e.useTheme,r=e.EmotionContext;return function(e,o){var a=null==o?void 0:o.__BABEL_FILE_NAME__,i=!!a;return function(s){var l,c,u=n(),d=z.useContext(r).cache,f=Dp(d,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),p=f.cx,h=f.css,g=(l=pB(),c={xs:"@media (max-width: ".concat(l.screenXSMax,"px)"),sm:"@media (max-width: ".concat(l.screenSMMax,"px)"),md:"@media (max-width: ".concat(l.screenMDMax,"px)"),lg:"@media (max-width: ".concat(l.screenLGMax,"px)"),xl:"@media (max-width: ".concat(l.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(l.screenXXLMin,"px)")},z.useMemo((function(){return kB(c)}),[l])),m=z.useMemo((function(){var t;if(e instanceof Function){var n=u.stylish,r=u.appearance,o=u.isDarkMode,l=u.prefixCls,c=gd(u,EB),d=function(e){return t=e,n=g,Object.entries(t).map((function(e){var t=qh(e,2),r=t[0],o=t[1],a=o;return kp(o)||(a=$p(o)),n[r]?"".concat(n[r]," {").concat(a.styles,"}"):""})).join("");var t,n};Object.assign(d,g),t=e({token:c,stylish:n,appearance:r,isDarkMode:o,prefixCls:l,cx:p,css:$p,responsive:d},s)}else t=e;return"object"===fd(t)&&(t=kp(t)?h(t):Object.fromEntries(Object.entries(t).map((function(e){var t=qh(e,2),n=t[0],r=t[1],o=i?"".concat(a,"-").concat(n):void 0;return"object"===fd(r)?i?[n,h(r,"label:".concat(o))]:[n,h(r)]:[n,r]})))),t}),[s,u]);return z.useMemo((function(){var e=u.prefixCls,t=gd(u,OB);return{styles:m,cx:p,theme:t,prefixCls:e}}),[m,u])}}},$B=function(e){if(e.ThemeProvider)return e.ThemeProvider;var t=e.ThemeContext;return function(e){return Q.jsx(t.Provider,{value:e.theme,children:e.children})}},jB=function(e){var t=z.useContext(oh);return e.theme!==t&&(t=ah(t)(e.theme)),z.createElement(oh.Provider,{value:t},e.children)},PB=oh;function _B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_B(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const IB=z.memo((function(e){var t=e.children,n=e.theme,r=e.prefixCls,o=e.getStaticInstance,a=e.staticInstanceConfig,i=mB(),s=i.appearance,l=i.isDarkMode,c=qh(IM.useMessage(null==a?void 0:a.message),2),u=c[0],d=c[1],f=qh(KM.useNotification(null==a?void 0:a.notification),2),p=f[0],h=f[1],g=qh(MM.useModal(),2),m=g[0],b=g[1];z.useEffect((function(){null==o||o({message:u,modal:m,notification:p})}),[]);var v=z.useMemo((function(){var e=l?dB.darkAlgorithm:dB.defaultAlgorithm,t=n;if("function"==typeof n&&(t=n(s)),!t)return{algorithm:e};var r=t.algorithm?t.algorithm instanceof Array?t.algorithm:[t.algorithm]:[];return NB(NB({},t),{},{algorithm:t.algorithm?[e].concat(fh(r)):e})}),[n,l]);return Q.jsxs(ex,{prefixCls:r,theme:v,children:[d,h,b,t]})}));function TB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return AB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AB(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FB(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=TB(H.useState((function(){return void 0!==o?o:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==o?o:l;return i&&(u=i(u)),[u,function(e){c(e),u!==e&&a&&a(e,u)}]}var RB,MB=function(e){"function"==typeof z.startTransition?z.startTransition(e):e()},LB=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){MB((function(){hB("dark").matches?n("dark"):n("light")}))},a=function(){MB((function(){hB("dark").matches?r("dark"):r("light")}))};return z.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),RB||(RB=hB("dark")),RB.addEventListener("change",o),function(){RB.removeEventListener("change",o)};MB((function(){n(t)}))}),[t]),z.useLayoutEffect((function(){return RB||(RB=hB("dark")),RB.addEventListener("change",a),function(){RB.removeEventListener("change",a)}}),[]),null};const BB=z.memo((function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,a=e.onAppearanceChange,i=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=(0,e.useTheme)(),u=c.appearance,d=c.themeMode,f=qh(FB("light",{value:i,defaultValue:null!=s?s:d,onChange:function(e){return null==l?void 0:l(e)}}),2),p=f[0],h=f[1],g=qh(FB("light",{value:r,defaultValue:null!=o?o:u,onChange:function(e){return null==a?void 0:a(e)}}),2),m=g[0],b=g[1],v=qh(z.useState(null!==(t=hB("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=v[0],w=v[1],x=qh(z.useState(!1),2),S=x[0],k=x[1];return z.useEffect((function(){MB((function(){k(!0)}))}),[]),Q.jsxs(gB.Provider,{value:{themeMode:p,setThemeMode:h,appearance:m,setAppearance:b,isDarkMode:"dark"===m,browserPrefers:y},children:[S&&Q.jsx(LB,{themeMode:p,setAppearance:b,setBrowserPrefers:w}),n]})}));var zB=["stylish"];function HB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HB(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const UB=function(e){var t=e.children,n=e.customToken,r=e.defaultCustomToken,o=e.customStylish,a=e.prefixCls,i=void 0===a?"ant":a,s=e.StyledThemeProvider,l=mB(),c=l.appearance,u=l.isDarkMode,d=wB(),f=d.stylish,p=gd(d,zB),h=z.useMemo((function(){return r?r instanceof Function?r({token:p,appearance:c,isDarkMode:u}):r:{}}),[r,p,c]),g=z.useMemo((function(){return WB(WB({},h),n instanceof Function?n({token:p,appearance:c,isDarkMode:u}):n)}),[h,n,p,c]),m=z.useMemo((function(){return o?o({token:WB(WB({},p),g),stylish:f,appearance:c,isDarkMode:u,css:$p}):{}}),[o,p,g,f,c]),b=z.useMemo((function(){return WB(WB({},m),f)}),[m,f]),v=WB(WB(WB(WB({},p),g),{},{stylish:b},l),{},{prefixCls:i});return Q.jsx(s,{theme:v,children:t})};function VB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VB(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qB(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var XB=new wp;"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=XB);var YB,QB,JB=function(e){var t,n,r,o=KB(KB({},e),{},{key:null!==(t=e.key)&&void 0!==t?t:"zcss",speedy:null!==(n=e.speedy)&&void 0!==n&&n}),a=hp({key:o.key,speedy:o.speedy,container:o.container}),i=function(e){return z.createContext(e)}(a),s=function(e){return z.memo((function(t){var n=t.children,r=t.prefix,o=t.speedy,a=t.getStyleManager,i=t.container,s=t.nonce,l=t.insertionPoint,c=t.stylisPlugins,u=t.linters,d=gd(t,xm),f=z.useContext(e),p=null!=r?r:f.sheet.key,h=null!=i?i:f.sheet.container,g=null!=o?o:f.sheet.isSpeedy,m=z.useMemo((function(){var e=hp({speedy:null!=g&&g,key:p,container:h,nonce:s,insertionPoint:l,stylisPlugins:c});if("undefined"!=typeof global){var t=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;t&&(e.cache=t.add(e.cache))}return e}),[p,g,h,s,l,c]);z.useEffect((function(){null==a||a(m)}),[m]);var b=Q.jsx(e.Provider,{value:m,children:n});return Boolean(Object.keys(d).length)||h?Q.jsx(Ph,km(km({linters:u,container:h},d),{},{children:b})):b}))}(i);a.cache=XB.add(a.cache);var l=z.createContext(o.customToken?o.customToken:{}),c=null===(r=o.styled)||void 0===r?void 0:r.ThemeContext,u=z.createContext({CustomThemeContext:l,StyledThemeContext:c,prefixCls:null==o?void 0:o.prefixCls}),d=function(e){return function(){var t=e.StyleEngineContext,n=z.useContext(t),r=n.StyledThemeContext,o=n.CustomThemeContext,a=n.prefixCls,i=wB(),s=mB(),l=z.useContext(o),c=z.useContext(null!=r?r:PB)||{},u=z.useMemo((function(){return GB(GB(GB(GB({},i),s),l),{},{prefixCls:a||"ant"})}),[i,s,a,l]);return c&&0!==Object.keys(c).length?c:u}}({StyleEngineContext:u}),f=DB({hashPriority:o.hashPriority,useTheme:d,EmotionContext:i}),p=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return z.memo((function(t){var r=e();return Q.jsx(ih,{styles:lp(n,void 0,lh(lh({},t),{},{theme:r}))})}))}}(d),h=function(e){return function(t){var n=e(t);return function(e){return n(e).styles}}}(f),g=function(e){var t=e.styledConfig?$B(e.styledConfig):void 0,n=e.StyleEngineContext;return z.memo((function(r){var o=r.children,a=r.customToken,i=r.customStylish,s=r.theme,l=r.getStaticInstance,c=r.prefixCls,u=r.staticInstanceConfig,d=r.appearance,f=r.defaultAppearance,p=r.onAppearanceChange,h=r.themeMode,g=r.defaultThemeMode,m=r.onThemeModeChange,b=r.styled,v=z.useContext(n),y=v.prefixCls,w=v.StyledThemeContext,x=v.CustomThemeContext,S=z.useContext(x),k=b?$B(b):t||jB,C=c||y;return Q.jsx(n.Provider,{value:{prefixCls:C,StyledThemeContext:(null==b?void 0:b.ThemeContext)||w||PB,CustomThemeContext:x},children:Q.jsx(BB,{themeMode:h,defaultThemeMode:g,onThemeModeChange:m,defaultAppearance:f,appearance:d,onAppearanceChange:p,useTheme:e.useTheme,children:Q.jsx(IB,{prefixCls:C,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:Q.jsx(UB,{prefixCls:C,customToken:a,defaultCustomToken:S,customStylish:i,StyledThemeProvider:k,children:o})})})})}))}({styledConfig:o.styled,StyleEngineContext:u,useTheme:d}),m=Dp(a.cache,{hashPriority:o.hashPriority}).cx,b=a.injectGlobal,v=a.keyframes;return{createStyles:f,createGlobalStyle:p,createStylish:h,css:$p,cx:m,keyframes:v,injectGlobal:b,styleManager:a,useTheme:d,StyleProvider:s,ThemeProvider:g}}({key:"acss",speedy:!1}),ZB=JB.createStyles,ez=JB.createGlobalStyle,tz=JB.css,nz=JB.cx,rz=JB.keyframes,oz=JB.ThemeProvider,az=JB.StyleProvider,iz=JB.useTheme,sz=ZB((function(e){var t=e.css,n=rz(YB||(YB=Ud(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(QB||(QB=Ud(["\n animation: "," 1s linear infinite;\n "])),n)}})),lz=["icon","size","color","fill","className","focusable","spin","fillRule","fillOpacity"],cz=["fontSize"];function uz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uz(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fz=z.forwardRef((function(e,t){var n=e.icon,r=e.size,o=e.color,a=e.fill,i=void 0===a?"transparent":a,s=e.className,l=e.focusable,c=e.spin,u=e.fillRule,d=e.fillOpacity,f=gd(e,lz),p=sz(),h=p.styles,g=p.cx,m=n,b=z.useMemo((function(){return function(e){var t,n;switch(e){case"large":t=24,n=2;break;case"normal":t=20,n=2;break;case"small":t=14,n=1.5;break;default:e?(t=(null==e?void 0:e.fontSize)||24,n=(null==e?void 0:e.strokeWidth)||2):(t="1em",n=2)}return{fontSize:t,strokeWidth:n}}(r)}),[r]),v=b.fontSize,y=gd(b,cz);return Q.jsx("span",dz(dz({className:g("anticon",c&&h.spin,s),role:"img"},f),{},{children:Q.jsx(m,dz({color:o,fill:i,fillOpacity:d,fillRule:u,focusable:l,height:v,ref:t,size:v,width:v},y))}))}));var pz,hz,gz=ZB((function(e,t){var n=e.css,r=e.token,o=e.stylish,a=e.cx,i=t.active;return{block:a(t.glass&&o.blur,n(pz||(pz=Ud(["\n cursor: pointer;\n\n position: relative;\n\n display: flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n color: ",";\n\n background: ",";\n\n transition:\n color 600ms ",",\n scale 400ms ",",\n background-color 100ms ",";\n\n &:hover {\n color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n "])),i?r.colorText:r.colorTextTertiary,i?r.colorFillTertiary:"transparent",r.motionEaseOut,r.motionEaseOut,r.motionEaseOut,r.colorText,r.colorFillSecondary,r.colorText,r.colorFill)),icon:n(hz||(hz=Ud(["\n transition: scale 400ms ",";\n\n &:active {\n scale: 0.8;\n }\n "])),r.motionEaseOut)}})),mz=["color","fill","className","active","icon","size","style","glass","title","placement","arrow","spotlight","onClick","children","loading","tooltipDelay","fillOpacity","fillRule","focusable"];function bz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bz(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yz=z.lazy((function(){return dd((()=>Promise.resolve().then((()=>m0))),void 0)})),wz=z.lazy((function(){return dd((()=>import("./index.js")),[])}));const xz=z.forwardRef((function(e,t){var n=e.color,r=e.fill,o=e.className,a=e.active,i=e.icon,s=e.size,l=void 0===s?"normal":s,c=e.style,u=e.glass,d=e.title,f=e.placement,p=e.arrow,h=void 0!==p&&p,g=e.spotlight,m=e.onClick,b=e.children,v=e.loading,y=e.tooltipDelay,w=void 0===y?.5:y,x=e.fillOpacity,S=e.fillRule,k=e.focusable,C=gd(e,mz),E=gz({active:Boolean(a),glass:Boolean(u)}),O=E.styles,D=E.cx,$=z.useMemo((function(){return function(e){var t,n;switch(e){case"large":t=44,n=8;break;case"normal":t=36,n=5;break;case"small":t=24,n=5;break;case"site":t=34,n=5;break;default:t=(null==e?void 0:e.blockSize)||36,n=(null==e?void 0:e.borderRadius)||5}return{blockSize:t,borderRadius:n}}(l)}),[l]),j=$.blockSize,P=$.borderRadius,_={color:n,fill:r,fillOpacity:x,fillRule:S,focusable:k,size:"site"===l?"normal":l},N=i&&Q.jsx(fz,vz({className:O.icon,icon:i},_)),I=Q.jsx(fz,vz(vz({icon:jd},_),{},{spin:!0})),T=Q.jsxs("div",vz(vz({className:D(O.block,o),onClick:v?void 0:m,ref:t,style:vz({borderRadius:P,height:j,width:j},c)},C),{},{children:[Q.jsx(z.Suspense,{fallback:null,children:g&&Q.jsx(wz,{})}),v?I:N,b]}));return d?Q.jsx(z.Suspense,{fallback:T,children:Q.jsx(yz,{arrow:h,mouseEnterDelay:w,overlayStyle:{pointerEvents:"none"},placement:f,title:d,children:T})}):T}));const Sz="object"==typeof global&&global&&global.Object===Object&&global;var kz="object"==typeof self&&self&&self.Object===Object&&self;const Cz=(Sz||kz||Function("return this")()).Symbol;var Ez=Object.prototype,Oz=Ez.hasOwnProperty,Dz=Ez.toString,$z=Cz?Cz.toStringTag:void 0;var jz=Object.prototype.toString;var Pz="[object Null]",_z="[object Undefined]",Nz=Cz?Cz.toStringTag:void 0;function Iz(e){return null==e?void 0===e?_z:Pz:Nz&&Nz in Object(e)?function(e){var t=Oz.call(e,$z),n=e[$z];try{e[$z]=void 0;var r=!0}catch(K4){}var o=Dz.call(e);return r&&(t?e[$z]=n:delete e[$z]),o}(e):function(e){return jz.call(e)}(e)}function Tz(e){return null!=e&&"object"==typeof e}var Az="[object Symbol]";const Fz=Array.isArray;var Rz=1/0,Mz=Cz?Cz.prototype:void 0,Lz=Mz?Mz.toString:void 0;function Bz(e){if("string"==typeof e)return e;if(Fz(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,Bz)+"";if(function(e){return"symbol"==typeof e||Tz(e)&&Iz(e)==Az}(e))return Lz?Lz.call(e):"";var t=e+"";return"0"==t&&1/e==-Rz?"-0":t}function zz(e){return null==e?"":Bz(e)}function Hz(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}(e,t,n)}var Wz=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Uz(e){return Wz.test(e)}var Vz,Gz="\\ud800-\\udfff",qz="["+Gz+"]",Kz="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Xz="\\ud83c[\\udffb-\\udfff]",Yz="[^"+Gz+"]",Qz="(?:\\ud83c[\\udde6-\\uddff]){2}",Jz="[\\ud800-\\udbff][\\udc00-\\udfff]",Zz="(?:"+Kz+"|"+Xz+")"+"?",eH="[\\ufe0e\\ufe0f]?",tH=eH+Zz+("(?:\\u200d(?:"+[Yz,Qz,Jz].join("|")+")"+eH+Zz+")*"),nH="(?:"+[Yz+Kz+"?",Kz,Qz,Jz,qz].join("|")+")",rH=RegExp(Xz+"(?="+Xz+")|"+nH+tH,"g");function oH(e){return Uz(e)?function(e){return e.match(rH)||[]}(e):function(e){return e.split("")}(e)}const aH=(Vz="toUpperCase",function(e){var t=Uz(e=zz(e))?oH(e):void 0,n=t?t[0]:e.charAt(0),r=t?Hz(t,1).join(""):e.slice(1);return n[Vz]()+r});function iH(e){return aH(zz(e).toLowerCase())}var sH;const lH=(sH={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},function(e){return null==sH?void 0:sH[e]});var cH=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uH=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var dH=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var fH=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var pH="\\ud800-\\udfff",hH="\\u2700-\\u27bf",gH="a-z\\xdf-\\xf6\\xf8-\\xff",mH="A-Z\\xc0-\\xd6\\xd8-\\xde",bH="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vH="["+bH+"]",yH="\\d+",wH="["+hH+"]",xH="["+gH+"]",SH="[^"+pH+bH+yH+hH+gH+mH+"]",kH="(?:\\ud83c[\\udde6-\\uddff]){2}",CH="[\\ud800-\\udbff][\\udc00-\\udfff]",EH="["+mH+"]",OH="(?:"+xH+"|"+SH+")",DH="(?:"+EH+"|"+SH+")",$H="(?:['](?:d|ll|m|re|s|t|ve))?",jH="(?:['](?:D|LL|M|RE|S|T|VE))?",PH="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",_H="[\\ufe0e\\ufe0f]?",NH=_H+PH+("(?:\\u200d(?:"+["[^"+pH+"]",kH,CH].join("|")+")"+_H+PH+")*"),IH="(?:"+[wH,kH,CH].join("|")+")"+NH,TH=RegExp([EH+"?"+xH+"+"+$H+"(?="+[vH,EH,"$"].join("|")+")",DH+"+"+jH+"(?="+[vH,EH+OH,"$"].join("|")+")",EH+"?"+OH+"+"+$H,EH+"+"+jH,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yH,IH].join("|"),"g");function AH(e,t,n){return e=zz(e),void 0===(t=n?void 0:t)?function(e){return fH.test(e)}(e)?function(e){return e.match(TH)||[]}(e):function(e){return e.match(dH)||[]}(e):e.match(t)||[]}var FH=RegExp("[']","g");function RH(e){return function(t){return function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}(AH(function(e){return(e=zz(e))&&e.replace(cH,lH).replace(uH,"")}(t).replace(FH,"")),e,"")}}const MH=RH((function(e,t,n){return t=t.toLowerCase(),e+(n?iH(t):t)}));const LH=RH((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));const BH=RH((function(e,t,n){return e+(n?" ":"")+aH(t)}));var zH,HH=function(e){return e||"layoutkit"},WH=function(e,t){if(t)return"row";switch(e){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},UH=function(e){return"number"==typeof e?"".concat(e,"px"):e},VH=["visible","flex","gap","direction","horizontal","align","justify","distribution","height","width","padding","paddingInline","paddingBlock","as","internalClassName","className","children"];function GH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GH(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const KH=z.forwardRef((function(e,t){var n=e.visible,r=e.flex,o=e.gap,a=e.direction,i=e.horizontal,s=e.align,l=e.justify,c=e.distribution,u=e.height,d=e.width,f=e.padding,p=e.paddingInline,h=e.paddingBlock,g=e.as,m=e.internalClassName,b=e.className,v=e.children,y=gd(e,VH),w=l||c,x=z.useMemo((function(){return function(e,t){return"row"===WH(e,t)}(a,i)&&!d&&function(e){if(e)return["space-between","space-around","space-evenly"].includes(e)}(w)?"100%":UH(d)}),[a,i,w,d]),S=z.useMemo((function(){return function(e){return z.forwardRef((function(t,n){return z.createElement(e,qH(qH({},t),{},{ref:n}))}))}(g||"div")}),[g]);return Q.jsx(S,qH(qH({ref:t},y),{},{className:bp(m,vp(zH||(zH=Ud(["\n // 是否显示\n display: ",";\n\n flex: ",";\n\n flex-direction: ",";\n justify-content: ",";\n align-items: ",";\n\n width: ",";\n height: ",";\n\n padding: ",";\n\n padding-inline: ",";\n padding-block: ",";\n\n gap: ",";\n "])),!1===n?"none":"flex",r,WH(a,i),w,s,x,UH(u),UH(f),UH(p),UH(h),UH(o)),b),children:v}))}));var XH=["children","className","prefixCls"];function YH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YH(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const JH=z.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.prefixCls,a=gd(e,XH);return Q.jsx(KH,QH(QH({ref:t,internalClassName:"".concat(HH(o),"-center"),className:r},a),{},{align:"center",justify:"center",children:n}))}));var ZH=["className","prefixCls","children"];function eW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eW(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nW=z.forwardRef((function(e,t){var n=e.className,r=e.prefixCls,o=e.children,a=gd(e,ZH);return Q.jsx(KH,tW(tW({ref:t},a),{},{internalClassName:"".concat(HH(r),"-flexbox"),className:n,children:o}))}));function rW(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=r<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var a=t.join("/"),i=(a=a.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return i.shift()+(i.length>0?"?":"")+i.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}var oW=function(e){var t=e.pkg,n=e.version,r=void 0===n?"latest":n,o=e.path;return"unpkg"===e.proxy?rW("https://unpkg.com","".concat(t,"@").concat(r),o):rW("https://registry.npmmirror.com",t,r,"files",o)},aW=z.createContext(null),iW=function(e){var t=e.pkg,n=e.version,r=e.path;return oW({path:r,pkg:t,proxy:"aliyun",version:n})},sW=function(){var e=z.useContext(aW);return e?"custom"!==(null==e?void 0:e.proxy)?function(t){var n=t.pkg,r=t.version,o=t.path;return oW({path:o,pkg:n,proxy:e.proxy,version:r})}:(null==e?void 0:e.customCdnFn)||iW:iW};function lW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lW(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const uW=z.forwardRef((function(e,t){var n=z.useContext(aW),r=z.useMemo((function(){return e=(null==n?void 0:n.imgAs)||"img",z.forwardRef((function(t,n){return z.createElement(e,cW(cW({},t),{},{ref:n}))}));var e}),[n]);return Q.jsx(r,cW({ref:t},e))})),dW={"😀":"grinning-face","😃":"grinning-face-with-big-eyes","😄":"grinning-face-with-smiling-eyes","😁":"beaming-face-with-smiling-eyes","😆":"grinning-squinting-face","😅":"grinning-face-with-sweat","🤣":"rolling-on-the-floor-laughing","😂":"face-with-tears-of-joy","🙂":"slightly-smiling-face","🙃":"upside-down-face","🫠":"melting-face","😉":"winking-face","😊":"smiling-face-with-smiling-eyes","😇":"smiling-face-with-halo","🥰":"smiling-face-with-hearts","😍":"smiling-face-with-heart-eyes","🤩":"star-struck","😘":"face-blowing-a-kiss","😗":"kissing-face","☺️":"smiling-face","😚":"kissing-face-with-closed-eyes","😙":"kissing-face-with-smiling-eyes","🥲":"smiling-face-with-tear","😋":"face-savoring-food","😛":"face-with-tongue","😜":"winking-face-with-tongue","🤪":"zany-face","😝":"squinting-face-with-tongue","🤑":"money-mouth-face","🤗":"smiling-face-with-open-hands","🤭":"face-with-hand-over-mouth","🫢":"face-with-open-eyes-and-hand-over-mouth","🫣":"face-with-peeking-eye","🤫":"shushing-face","🤔":"thinking-face","🫡":"saluting-face","🤐":"zipper-mouth-face","🤨":"face-with-raised-eyebrow","😐":"neutral-face","😑":"expressionless-face","😶":"face-without-mouth","🫥":"dotted-line-face","😶‍🌫️":"face-in-clouds","😏":"smirking-face","😒":"unamused-face","🙄":"face-with-rolling-eyes","😬":"grimacing-face","😮‍💨":"face-exhaling","🤥":"lying-face","🫨":"shaking-face","😌":"relieved-face","😔":"pensive-face","😪":"sleepy-face","🤤":"drooling-face","😴":"sleeping-face","😷":"face-with-medical-mask","🤒":"face-with-thermometer","🤕":"face-with-head-bandage","🤢":"nauseated-face","🤮":"face-vomiting","🤧":"sneezing-face","🥵":"hot-face","🥶":"cold-face","🥴":"woozy-face","😵":"face-with-crossed-out-eyes","😵‍💫":"face-with-spiral-eyes","🤯":"exploding-head","🤠":"cowboy-hat-face","🥳":"partying-face","🥸":"disguised-face","😎":"smiling-face-with-sunglasses","🤓":"nerd-face","🧐":"face-with-monocle","😕":"confused-face","🫤":"face-with-diagonal-mouth","😟":"worried-face","🙁":"slightly-frowning-face","☹️":"frowning-face","😮":"face-with-open-mouth","😯":"hushed-face","😲":"astonished-face","😳":"flushed-face","🥺":"pleading-face","🥹":"face-holding-back-tears","😦":"frowning-face-with-open-mouth","😧":"anguished-face","😨":"fearful-face","😰":"anxious-face-with-sweat","😥":"sad-but-relieved-face","😢":"crying-face","😭":"loudly-crying-face","😱":"face-screaming-in-fear","😖":"confounded-face","😣":"persevering-face","😞":"disappointed-face","😓":"downcast-face-with-sweat","😩":"weary-face","😫":"tired-face","🥱":"yawning-face","😤":"face-with-steam-from-nose","😡":"enraged-face","😠":"angry-face","🤬":"face-with-symbols-on-mouth","😈":"smiling-face-with-horns","👿":"angry-face-with-horns","💀":"skull","☠️":"skull-and-crossbones","💩":"pile-of-poo","🤡":"clown-face","👹":"ogre","👺":"goblin","👻":"ghost","👽":"alien","👾":"alien-monster","🤖":"robot","😺":"grinning-cat","😸":"grinning-cat-with-smiling-eyes","😹":"cat-with-tears-of-joy","😻":"smiling-cat-with-heart-eyes","😼":"cat-with-wry-smile","😽":"kissing-cat","🙀":"weary-cat","😿":"crying-cat","😾":"pouting-cat","🙈":"see-no-evil-monkey","🙉":"hear-no-evil-monkey","🙊":"speak-no-evil-monkey","💌":"love-letter","💘":"heart-with-arrow","💝":"heart-with-ribbon","💖":"sparkling-heart","💗":"growing-heart","💓":"beating-heart","💞":"revolving-hearts","💕":"two-hearts","💟":"heart-decoration","❣️":"heart-exclamation","💔":"broken-heart","❤️‍🔥":"heart-on-fire","❤️‍🩹":"mending-heart","❤️":"red-heart","🩷":"pink-heart","🧡":"orange-heart","💛":"yellow-heart","💚":"green-heart","💙":"blue-heart","🩵":"light-blue-heart","💜":"purple-heart","🤎":"brown-heart","🖤":"black-heart","🩶":"grey-heart","🤍":"white-heart","💋":"kiss-mark","💯":"hundred-points","💢":"anger-symbol","💥":"collision","💫":"dizzy","💦":"sweat-droplets","💨":"dashing-away","🕳️":"hole","💬":"speech-balloon","👁️‍🗨️":"eye-in-speech-bubble","🗨️":"left-speech-bubble","🗯️":"right-anger-bubble","💭":"thought-balloon","💤":"zzz","👋":"waving-hand","🤚":"raised-back-of-hand","🖐️":"hand-with-fingers-splayed","✋":"raised-hand","🖖":"vulcan-salute","🫱":"rightwards-hand","🫲":"leftwards-hand","🫳":"palm-down-hand","🫴":"palm-up-hand","🫷":"leftwards-pushing-hand","🫸":"rightwards-pushing-hand","👌":"ok-hand","🤌":"pinched-fingers","🤏":"pinching-hand","✌️":"victory-hand","🤞":"crossed-fingers","🫰":"hand-with-index-finger-and-thumb-crossed","🤟":"love-you-gesture","🤘":"sign-of-the-horns","🤙":"call-me-hand","👈":"backhand-index-pointing-left","👉":"backhand-index-pointing-right","👆":"backhand-index-pointing-up","🖕":"middle-finger","👇":"backhand-index-pointing-down","☝️":"index-pointing-up","🫵":"index-pointing-at-the-viewer","👍":"thumbs-up","👎":"thumbs-down","✊":"raised-fist","👊":"oncoming-fist","🤛":"left-facing-fist","🤜":"right-facing-fist","👏":"clapping-hands","🙌":"raising-hands","🫶":"heart-hands","👐":"open-hands","🤲":"palms-up-together","🤝":"handshake","🙏":"folded-hands","✍️":"writing-hand","💅":"nail-polish","🤳":"selfie","💪":"flexed-biceps","🦾":"mechanical-arm","🦿":"mechanical-leg","🦵":"leg","🦶":"foot","👂":"ear","🦻":"ear-with-hearing-aid","👃":"nose","🧠":"brain","🫀":"anatomical-heart","🫁":"lungs","🦷":"tooth","🦴":"bone","👀":"eyes","👁️":"eye","👅":"tongue","👄":"mouth","🫦":"biting-lip","👶":"baby","🧒":"child","👦":"boy","👧":"girl","🧑":"person","👱":"person-blond-hair","👨":"man","🧔":"person-beard","🧔‍♂️":"man-beard","🧔‍♀️":"woman-beard","👨‍🦰":"man-red-hair","👨‍🦱":"man-curly-hair","👨‍🦳":"man-white-hair","👨‍🦲":"man-bald","👩":"woman","👩‍🦰":"woman-red-hair","🧑‍🦰":"person-red-hair","👩‍🦱":"woman-curly-hair","🧑‍🦱":"person-curly-hair","👩‍🦳":"woman-white-hair","🧑‍🦳":"person-white-hair","👩‍🦲":"woman-bald","🧑‍🦲":"person-bald","👱‍♀️":"woman-blond-hair","👱‍♂️":"man-blond-hair","🧓":"older-person","👴":"old-man","👵":"old-woman","🙍":"person-frowning","🙍‍♂️":"man-frowning","🙍‍♀️":"woman-frowning","🙎":"person-pouting","🙎‍♂️":"man-pouting","🙎‍♀️":"woman-pouting","🙅":"person-gesturing-no","🙅‍♂️":"man-gesturing-no","🙅‍♀️":"woman-gesturing-no","🙆":"person-gesturing-ok","🙆‍♂️":"man-gesturing-ok","🙆‍♀️":"woman-gesturing-ok","💁":"person-tipping-hand","💁‍♂️":"man-tipping-hand","💁‍♀️":"woman-tipping-hand","🙋":"person-raising-hand","🙋‍♂️":"man-raising-hand","🙋‍♀️":"woman-raising-hand","🧏":"deaf-person","🧏‍♂️":"deaf-man","🧏‍♀️":"deaf-woman","🙇":"person-bowing","🙇‍♂️":"man-bowing","🙇‍♀️":"woman-bowing","🤦":"person-facepalming","🤦‍♂️":"man-facepalming","🤦‍♀️":"woman-facepalming","🤷":"person-shrugging","🤷‍♂️":"man-shrugging","🤷‍♀️":"woman-shrugging","🧑‍⚕️":"health-worker","👨‍⚕️":"man-health-worker","👩‍⚕️":"woman-health-worker","🧑‍🎓":"student","👨‍🎓":"man-student","👩‍🎓":"woman-student","🧑‍🏫":"teacher","👨‍🏫":"man-teacher","👩‍🏫":"woman-teacher","🧑‍⚖️":"judge","👨‍⚖️":"man-judge","👩‍⚖️":"woman-judge","🧑‍🌾":"farmer","👨‍🌾":"man-farmer","👩‍🌾":"woman-farmer","🧑‍🍳":"cook","👨‍🍳":"man-cook","👩‍🍳":"woman-cook","🧑‍🔧":"mechanic","👨‍🔧":"man-mechanic","👩‍🔧":"woman-mechanic","🧑‍🏭":"factory-worker","👨‍🏭":"man-factory-worker","👩‍🏭":"woman-factory-worker","🧑‍💼":"office-worker","👨‍💼":"man-office-worker","👩‍💼":"woman-office-worker","🧑‍🔬":"scientist","👨‍🔬":"man-scientist","👩‍🔬":"woman-scientist","🧑‍💻":"technologist","👨‍💻":"man-technologist","👩‍💻":"woman-technologist","🧑‍🎤":"singer","👨‍🎤":"man-singer","👩‍🎤":"woman-singer","🧑‍🎨":"artist","👨‍🎨":"man-artist","👩‍🎨":"woman-artist","🧑‍✈️":"pilot","👨‍✈️":"man-pilot","👩‍✈️":"woman-pilot","🧑‍🚀":"astronaut","👨‍🚀":"man-astronaut","👩‍🚀":"woman-astronaut","🧑‍🚒":"firefighter","👨‍🚒":"man-firefighter","👩‍🚒":"woman-firefighter","👮":"police-officer","👮‍♂️":"man-police-officer","👮‍♀️":"woman-police-officer","🕵️":"detective","🕵️‍♂️":"man-detective","🕵️‍♀️":"woman-detective","💂":"guard","💂‍♂️":"man-guard","💂‍♀️":"woman-guard","🥷":"ninja","👷":"construction-worker","👷‍♂️":"man-construction-worker","👷‍♀️":"woman-construction-worker","🫅":"person-with-crown","🤴":"prince","👸":"princess","👳":"person-wearing-turban","👳‍♂️":"man-wearing-turban","👳‍♀️":"woman-wearing-turban","👲":"person-with-skullcap","🧕":"woman-with-headscarf","🤵":"person-in-tuxedo","🤵‍♂️":"man-in-tuxedo","🤵‍♀️":"woman-in-tuxedo","👰":"person-with-veil","👰‍♂️":"man-with-veil","👰‍♀️":"woman-with-veil","🤰":"pregnant-woman","🫃":"pregnant-man","🫄":"pregnant-person","🤱":"breast-feeding","👩‍🍼":"woman-feeding-baby","👨‍🍼":"man-feeding-baby","🧑‍🍼":"person-feeding-baby","👼":"baby-angel","🎅":"santa-claus","🤶":"mrs-claus","🧑‍🎄":"mx-claus","🦸":"superhero","🦸‍♂️":"man-superhero","🦸‍♀️":"woman-superhero","🦹":"supervillain","🦹‍♂️":"man-supervillain","🦹‍♀️":"woman-supervillain","🧙":"mage","🧙‍♂️":"man-mage","🧙‍♀️":"woman-mage","🧚":"fairy","🧚‍♂️":"man-fairy","🧚‍♀️":"woman-fairy","🧛":"vampire","🧛‍♂️":"man-vampire","🧛‍♀️":"woman-vampire","🧜":"merperson","🧜‍♂️":"merman","🧜‍♀️":"mermaid","🧝":"elf","🧝‍♂️":"man-elf","🧝‍♀️":"woman-elf","🧞":"genie","🧞‍♂️":"man-genie","🧞‍♀️":"woman-genie","🧟":"zombie","🧟‍♂️":"man-zombie","🧟‍♀️":"woman-zombie","🧌":"troll","💆":"person-getting-massage","💆‍♂️":"man-getting-massage","💆‍♀️":"woman-getting-massage","💇":"person-getting-haircut","💇‍♂️":"man-getting-haircut","💇‍♀️":"woman-getting-haircut","🚶":"person-walking","🚶‍♂️":"man-walking","🚶‍♀️":"woman-walking","🧍":"person-standing","🧍‍♂️":"man-standing","🧍‍♀️":"woman-standing","🧎":"person-kneeling","🧎‍♂️":"man-kneeling","🧎‍♀️":"woman-kneeling","🧑‍🦯":"person-with-white-cane","👨‍🦯":"man-with-white-cane","👩‍🦯":"woman-with-white-cane","🧑‍🦼":"person-in-motorized-wheelchair","👨‍🦼":"man-in-motorized-wheelchair","👩‍🦼":"woman-in-motorized-wheelchair","🧑‍🦽":"person-in-manual-wheelchair","👨‍🦽":"man-in-manual-wheelchair","👩‍🦽":"woman-in-manual-wheelchair","🏃":"person-running","🏃‍♂️":"man-running","🏃‍♀️":"woman-running","💃":"woman-dancing","🕺":"man-dancing","🕴️":"person-in-suit-levitating","👯":"people-with-bunny-ears","👯‍♂️":"men-with-bunny-ears","👯‍♀️":"women-with-bunny-ears","🧖":"person-in-steamy-room","🧖‍♂️":"man-in-steamy-room","🧖‍♀️":"woman-in-steamy-room","🧗":"person-climbing","🧗‍♂️":"man-climbing","🧗‍♀️":"woman-climbing","🤺":"person-fencing","🏇":"horse-racing","⛷️":"skier","🏂":"snowboarder","🏌️":"person-golfing","🏌️‍♂️":"man-golfing","🏌️‍♀️":"woman-golfing","🏄":"person-surfing","🏄‍♂️":"man-surfing","🏄‍♀️":"woman-surfing","🚣":"person-rowing-boat","🚣‍♂️":"man-rowing-boat","🚣‍♀️":"woman-rowing-boat","🏊":"person-swimming","🏊‍♂️":"man-swimming","🏊‍♀️":"woman-swimming","⛹️":"person-bouncing-ball","⛹️‍♂️":"man-bouncing-ball","⛹️‍♀️":"woman-bouncing-ball","🏋️":"person-lifting-weights","🏋️‍♂️":"man-lifting-weights","🏋️‍♀️":"woman-lifting-weights","🚴":"person-biking","🚴‍♂️":"man-biking","🚴‍♀️":"woman-biking","🚵":"person-mountain-biking","🚵‍♂️":"man-mountain-biking","🚵‍♀️":"woman-mountain-biking","🤸":"person-cartwheeling","🤸‍♂️":"man-cartwheeling","🤸‍♀️":"woman-cartwheeling","🤼":"people-wrestling","🤼‍♂️":"men-wrestling","🤼‍♀️":"women-wrestling","🤽":"person-playing-water-polo","🤽‍♂️":"man-playing-water-polo","🤽‍♀️":"woman-playing-water-polo","🤾":"person-playing-handball","🤾‍♂️":"man-playing-handball","🤾‍♀️":"woman-playing-handball","🤹":"person-juggling","🤹‍♂️":"man-juggling","🤹‍♀️":"woman-juggling","🧘":"person-in-lotus-position","🧘‍♂️":"man-in-lotus-position","🧘‍♀️":"woman-in-lotus-position","🛀":"person-taking-bath","🛌":"person-in-bed","🧑‍🤝‍🧑":"people-holding-hands","👭":"women-holding-hands","👫":"woman-and-man-holding-hands","👬":"men-holding-hands","💏":"kiss","👩‍❤️‍💋‍👨":"kiss-woman-man","👨‍❤️‍💋‍👨":"kiss-man-man","👩‍❤️‍💋‍👩":"kiss-woman-woman","💑":"couple-with-heart","👩‍❤️‍👨":"couple-with-heart-woman-man","👨‍❤️‍👨":"couple-with-heart-man-man","👩‍❤️‍👩":"couple-with-heart-woman-woman","👪":"family","👨‍👩‍👦":"family-man-woman-boy","👨‍👩‍👧":"family-man-woman-girl","👨‍👩‍👧‍👦":"family-man-woman-girl-boy","👨‍👩‍👦‍👦":"family-man-woman-boy-boy","👨‍👩‍👧‍👧":"family-man-woman-girl-girl","👨‍👨‍👦":"family-man-man-boy","👨‍👨‍👧":"family-man-man-girl","👨‍👨‍👧‍👦":"family-man-man-girl-boy","👨‍👨‍👦‍👦":"family-man-man-boy-boy","👨‍👨‍👧‍👧":"family-man-man-girl-girl","👩‍👩‍👦":"family-woman-woman-boy","👩‍👩‍👧":"family-woman-woman-girl","👩‍👩‍👧‍👦":"family-woman-woman-girl-boy","👩‍👩‍👦‍👦":"family-woman-woman-boy-boy","👩‍👩‍👧‍👧":"family-woman-woman-girl-girl","👨‍👦":"family-man-boy","👨‍👦‍👦":"family-man-boy-boy","👨‍👧":"family-man-girl","👨‍👧‍👦":"family-man-girl-boy","👨‍👧‍👧":"family-man-girl-girl","👩‍👦":"family-woman-boy","👩‍👦‍👦":"family-woman-boy-boy","👩‍👧":"family-woman-girl","👩‍👧‍👦":"family-woman-girl-boy","👩‍👧‍👧":"family-woman-girl-girl","🗣️":"speaking-head","👤":"bust-in-silhouette","👥":"busts-in-silhouette","🫂":"people-hugging","👣":"footprints","🐵":"monkey-face","🐒":"monkey","🦍":"gorilla","🦧":"orangutan","🐶":"dog-face","🐕":"dog","🦮":"guide-dog","🐕‍🦺":"service-dog","🐩":"poodle","🐺":"wolf","🦊":"fox","🦝":"raccoon","🐱":"cat-face","🐈":"cat","🐈‍⬛":"black-cat","🦁":"lion","🐯":"tiger-face","🐅":"tiger","🐆":"leopard","🐴":"horse-face","🫎":"moose","🫏":"donkey","🐎":"horse","🦄":"unicorn","🦓":"zebra","🦌":"deer","🦬":"bison","🐮":"cow-face","🐂":"ox","🐃":"water-buffalo","🐄":"cow","🐷":"pig-face","🐖":"pig","🐗":"boar","🐽":"pig-nose","🐏":"ram","🐑":"ewe","🐐":"goat","🐪":"camel","🐫":"two-hump-camel","🦙":"llama","🦒":"giraffe","🐘":"elephant","🦣":"mammoth","🦏":"rhinoceros","🦛":"hippopotamus","🐭":"mouse-face","🐁":"mouse","🐀":"rat","🐹":"hamster","🐰":"rabbit-face","🐇":"rabbit","🐿️":"chipmunk","🦫":"beaver","🦔":"hedgehog","🦇":"bat","🐻":"bear","🐻‍❄️":"polar-bear","🐨":"koala","🐼":"panda","🦥":"sloth","🦦":"otter","🦨":"skunk","🦘":"kangaroo","🦡":"badger","🐾":"paw-prints","🦃":"turkey","🐔":"chicken","🐓":"rooster","🐣":"hatching-chick","🐤":"baby-chick","🐥":"front-facing-baby-chick","🐦":"bird","🐧":"penguin","🕊️":"dove","🦅":"eagle","🦆":"duck","🦢":"swan","🦉":"owl","🦤":"dodo","🪶":"feather","🦩":"flamingo","🦚":"peacock","🦜":"parrot","🪽":"wing","🐦‍⬛":"black-bird","🪿":"goose","🐸":"frog","🐊":"crocodile","🐢":"turtle","🦎":"lizard","🐍":"snake","🐲":"dragon-face","🐉":"dragon","🦕":"sauropod","🦖":"t-rex","🐳":"spouting-whale","🐋":"whale","🐬":"dolphin","🦭":"seal","🐟":"fish","🐠":"tropical-fish","🐡":"blowfish","🦈":"shark","🐙":"octopus","🐚":"spiral-shell","🪸":"coral","🪼":"jellyfish","🐌":"snail","🦋":"butterfly","🐛":"bug","🐜":"ant","🐝":"honeybee","🪲":"beetle","🐞":"lady-beetle","🦗":"cricket","🪳":"cockroach","🕷️":"spider","🕸️":"spider-web","🦂":"scorpion","🦟":"mosquito","🪰":"fly","🪱":"worm","🦠":"microbe","💐":"bouquet","🌸":"cherry-blossom","💮":"white-flower","🪷":"lotus","🏵️":"rosette","🌹":"rose","🥀":"wilted-flower","🌺":"hibiscus","🌻":"sunflower","🌼":"blossom","🌷":"tulip","🪻":"hyacinth","🌱":"seedling","🪴":"potted-plant","🌲":"evergreen-tree","🌳":"deciduous-tree","🌴":"palm-tree","🌵":"cactus","🌾":"sheaf-of-rice","🌿":"herb","☘️":"shamrock","🍀":"four-leaf-clover","🍁":"maple-leaf","🍂":"fallen-leaf","🍃":"leaf-fluttering-in-wind","🪹":"empty-nest","🪺":"nest-with-eggs","🍄":"mushroom","🍇":"grapes","🍈":"melon","🍉":"watermelon","🍊":"tangerine","🍋":"lemon","🍌":"banana","🍍":"pineapple","🥭":"mango","🍎":"red-apple","🍏":"green-apple","🍐":"pear","🍑":"peach","🍒":"cherries","🍓":"strawberry","🫐":"blueberries","🥝":"kiwi-fruit","🍅":"tomato","🫒":"olive","🥥":"coconut","🥑":"avocado","🍆":"eggplant","🥔":"potato","🥕":"carrot","🌽":"ear-of-corn","🌶️":"hot-pepper","🫑":"bell-pepper","🥒":"cucumber","🥬":"leafy-green","🥦":"broccoli","🧄":"garlic","🧅":"onion","🥜":"peanuts","🫘":"beans","🌰":"chestnut","🫚":"ginger-root","🫛":"pea-pod","🍞":"bread","🥐":"croissant","🥖":"baguette-bread","🫓":"flatbread","🥨":"pretzel","🥯":"bagel","🥞":"pancakes","🧇":"waffle","🧀":"cheese-wedge","🍖":"meat-on-bone","🍗":"poultry-leg","🥩":"cut-of-meat","🥓":"bacon","🍔":"hamburger","🍟":"french-fries","🍕":"pizza","🌭":"hot-dog","🥪":"sandwich","🌮":"taco","🌯":"burrito","🫔":"tamale","🥙":"stuffed-flatbread","🧆":"falafel","🥚":"egg","🍳":"cooking","🥘":"shallow-pan-of-food","🍲":"pot-of-food","🫕":"fondue","🥣":"bowl-with-spoon","🥗":"green-salad","🍿":"popcorn","🧈":"butter","🧂":"salt","🥫":"canned-food","🍱":"bento-box","🍘":"rice-cracker","🍙":"rice-ball","🍚":"cooked-rice","🍛":"curry-rice","🍜":"steaming-bowl","🍝":"spaghetti","🍠":"roasted-sweet-potato","🍢":"oden","🍣":"sushi","🍤":"fried-shrimp","🍥":"fish-cake-with-swirl","🥮":"moon-cake","🍡":"dango","🥟":"dumpling","🥠":"fortune-cookie","🥡":"takeout-box","🦀":"crab","🦞":"lobster","🦐":"shrimp","🦑":"squid","🦪":"oyster","🍦":"soft-ice-cream","🍧":"shaved-ice","🍨":"ice-cream","🍩":"doughnut","🍪":"cookie","🎂":"birthday-cake","🍰":"shortcake","🧁":"cupcake","🥧":"pie","🍫":"chocolate-bar","🍬":"candy","🍭":"lollipop","🍮":"custard","🍯":"honey-pot","🍼":"baby-bottle","🥛":"glass-of-milk","☕":"hot-beverage","🫖":"teapot","🍵":"teacup-without-handle","🍶":"sake","🍾":"bottle-with-popping-cork","🍷":"wine-glass","🍸":"cocktail-glass","🍹":"tropical-drink","🍺":"beer-mug","🍻":"clinking-beer-mugs","🥂":"clinking-glasses","🥃":"tumbler-glass","🫗":"pouring-liquid","🥤":"cup-with-straw","🧋":"bubble-tea","🧃":"beverage-box","🧉":"mate","🧊":"ice","🥢":"chopsticks","🍽️":"fork-and-knife-with-plate","🍴":"fork-and-knife","🥄":"spoon","🔪":"kitchen-knife","🫙":"jar","🏺":"amphora","🌍":"globe-showing-europe-africa","🌎":"globe-showing-americas","🌏":"globe-showing-asia-australia","🌐":"globe-with-meridians","🗺️":"world-map","🗾":"map-of-japan","🧭":"compass","🏔️":"snow-capped-mountain","⛰️":"mountain","🌋":"volcano","🗻":"mount-fuji","🏕️":"camping","🏖️":"beach-with-umbrella","🏜️":"desert","🏝️":"desert-island","🏞️":"national-park","🏟️":"stadium","🏛️":"classical-building","🏗️":"building-construction","🧱":"brick","🪨":"rock","🪵":"wood","🛖":"hut","🏘️":"houses","🏚️":"derelict-house","🏠":"house","🏡":"house-with-garden","🏢":"office-building","🏣":"japanese-post-office","🏤":"post-office","🏥":"hospital","🏦":"bank","🏨":"hotel","🏩":"love-hotel","🏪":"convenience-store","🏫":"school","🏬":"department-store","🏭":"factory","🏯":"japanese-castle","🏰":"castle","💒":"wedding","🗼":"tokyo-tower","🗽":"statue-of-liberty","⛪":"church","🕌":"mosque","🛕":"hindu-temple","🕍":"synagogue","⛩️":"shinto-shrine","🕋":"kaaba","⛲":"fountain","⛺":"tent","🌁":"foggy","🌃":"night-with-stars","🏙️":"cityscape","🌄":"sunrise-over-mountains","🌅":"sunrise","🌆":"cityscape-at-dusk","🌇":"sunset","🌉":"bridge-at-night","♨️":"hot-springs","🎠":"carousel-horse","🛝":"playground-slide","🎡":"ferris-wheel","🎢":"roller-coaster","💈":"barber-pole","🎪":"circus-tent","🚂":"locomotive","🚃":"railway-car","🚄":"high-speed-train","🚅":"bullet-train","🚆":"train","🚇":"metro","🚈":"light-rail","🚉":"station","🚊":"tram","🚝":"monorail","🚞":"mountain-railway","🚋":"tram-car","🚌":"bus","🚍":"oncoming-bus","🚎":"trolleybus","🚐":"minibus","🚑":"ambulance","🚒":"fire-engine","🚓":"police-car","🚔":"oncoming-police-car","🚕":"taxi","🚖":"oncoming-taxi","🚗":"automobile","🚘":"oncoming-automobile","🚙":"sport-utility-vehicle","🛻":"pickup-truck","🚚":"delivery-truck","🚛":"articulated-lorry","🚜":"tractor","🏎️":"racing-car","🏍️":"motorcycle","🛵":"motor-scooter","🦽":"manual-wheelchair","🦼":"motorized-wheelchair","🛺":"auto-rickshaw","🚲":"bicycle","🛴":"kick-scooter","🛹":"skateboard","🛼":"roller-skate","🚏":"bus-stop","🛣️":"motorway","🛤️":"railway-track","🛢️":"oil-drum","⛽":"fuel-pump","🛞":"wheel","🚨":"police-car-light","🚥":"horizontal-traffic-light","🚦":"vertical-traffic-light","🛑":"stop-sign","🚧":"construction","⚓":"anchor","🛟":"ring-buoy","⛵":"sailboat","🛶":"canoe","🚤":"speedboat","🛳️":"passenger-ship","⛴️":"ferry","🛥️":"motor-boat","🚢":"ship","✈️":"airplane","🛩️":"small-airplane","🛫":"airplane-departure","🛬":"airplane-arrival","🪂":"parachute","💺":"seat","🚁":"helicopter","🚟":"suspension-railway","🚠":"mountain-cableway","🚡":"aerial-tramway","🛰️":"satellite","🚀":"rocket","🛸":"flying-saucer","🛎️":"bellhop-bell","🧳":"luggage","⌛":"hourglass-done","⏳":"hourglass-not-done","⌚":"watch","⏰":"alarm-clock","⏱️":"stopwatch","⏲️":"timer-clock","🕰️":"mantelpiece-clock","🕛":"twelve-o-clock","🕧":"twelve-thirty","🕐":"one-o-clock","🕜":"one-thirty","🕑":"two-o-clock","🕝":"two-thirty","🕒":"three-o-clock","🕞":"three-thirty","🕓":"four-o-clock","🕟":"four-thirty","🕔":"five-o-clock","🕠":"five-thirty","🕕":"six-o-clock","🕡":"six-thirty","🕖":"seven-o-clock","🕢":"seven-thirty","🕗":"eight-o-clock","🕣":"eight-thirty","🕘":"nine-o-clock","🕤":"nine-thirty","🕙":"ten-o-clock","🕥":"ten-thirty","🕚":"eleven-o-clock","🕦":"eleven-thirty","🌑":"new-moon","🌒":"waxing-crescent-moon","🌓":"first-quarter-moon","🌔":"waxing-gibbous-moon","🌕":"full-moon","🌖":"waning-gibbous-moon","🌗":"last-quarter-moon","🌘":"waning-crescent-moon","🌙":"crescent-moon","🌚":"new-moon-face","🌛":"first-quarter-moon-face","🌜":"last-quarter-moon-face","🌡️":"thermometer","☀️":"sun","🌝":"full-moon-face","🌞":"sun-with-face","🪐":"ringed-planet","⭐":"star","🌟":"glowing-star","🌠":"shooting-star","🌌":"milky-way","☁️":"cloud","⛅":"sun-behind-cloud","⛈️":"cloud-with-lightning-and-rain","🌤️":"sun-behind-small-cloud","🌥️":"sun-behind-large-cloud","🌦️":"sun-behind-rain-cloud","🌧️":"cloud-with-rain","🌨️":"cloud-with-snow","🌩️":"cloud-with-lightning","🌪️":"tornado","🌫️":"fog","🌬️":"wind-face","🌀":"cyclone","🌈":"rainbow","🌂":"closed-umbrella","☂️":"umbrella","☔":"umbrella-with-rain-drops","⛱️":"umbrella-on-ground","⚡":"high-voltage","❄️":"snowflake","☃️":"snowman","⛄":"snowman-without-snow","☄️":"comet","🔥":"fire","💧":"droplet","🌊":"water-wave","🎃":"jack-o-lantern","🎄":"christmas-tree","🎆":"fireworks","🎇":"sparkler","🧨":"firecracker","✨":"sparkles","🎈":"balloon","🎉":"party-popper","🎊":"confetti-ball","🎋":"tanabata-tree","🎍":"pine-decoration","🎎":"japanese-dolls","🎏":"carp-streamer","🎐":"wind-chime","🎑":"moon-viewing-ceremony","🧧":"red-envelope","🎀":"ribbon","🎁":"wrapped-gift","🎗️":"reminder-ribbon","🎟️":"admission-tickets","🎫":"ticket","🎖️":"military-medal","🏆":"trophy","🏅":"sports-medal","🥇":"1st-place-medal","🥈":"2nd-place-medal","🥉":"3rd-place-medal","⚽":"soccer-ball","⚾":"baseball","🥎":"softball","🏀":"basketball","🏐":"volleyball","🏈":"american-football","🏉":"rugby-football","🎾":"tennis","🥏":"flying-disc","🎳":"bowling","🏏":"cricket-game","🏑":"field-hockey","🏒":"ice-hockey","🥍":"lacrosse","🏓":"ping-pong","🏸":"badminton","🥊":"boxing-glove","🥋":"martial-arts-uniform","🥅":"goal-net","⛳":"flag-in-hole","⛸️":"ice-skate","🎣":"fishing-pole","🤿":"diving-mask","🎽":"running-shirt","🎿":"skis","🛷":"sled","🥌":"curling-stone","🎯":"bullseye","🪀":"yo-yo","🪁":"kite","🔫":"water-pistol","🎱":"pool-8-ball","🔮":"crystal-ball","🪄":"magic-wand","🎮":"video-game","🕹️":"joystick","🎰":"slot-machine","🎲":"game-die","🧩":"puzzle-piece","🧸":"teddy-bear","🪅":"pinata","🪩":"mirror-ball","🪆":"nesting-dolls","♠️":"spade-suit","♥️":"heart-suit","♦️":"diamond-suit","♣️":"club-suit","♟️":"chess-pawn","🃏":"joker","🀄":"mahjong-red-dragon","🎴":"flower-playing-cards","🎭":"performing-arts","🖼️":"framed-picture","🎨":"artist-palette","🧵":"thread","🪡":"sewing-needle","🧶":"yarn","🪢":"knot","👓":"glasses","🕶️":"sunglasses","🥽":"goggles","🥼":"lab-coat","🦺":"safety-vest","👔":"necktie","👕":"t-shirt","👖":"jeans","🧣":"scarf","🧤":"gloves","🧥":"coat","🧦":"socks","👗":"dress","👘":"kimono","🥻":"sari","🩱":"one-piece-swimsuit","🩲":"briefs","🩳":"shorts","👙":"bikini","👚":"woman-s-clothes","🪭":"folding-hand-fan","👛":"purse","👜":"handbag","👝":"clutch-bag","🛍️":"shopping-bags","🎒":"backpack","🩴":"thong-sandal","👞":"man-s-shoe","👟":"running-shoe","🥾":"hiking-boot","🥿":"flat-shoe","👠":"high-heeled-shoe","👡":"woman-s-sandal","🩰":"ballet-shoes","👢":"woman-s-boot","🪮":"hair-pick","👑":"crown","👒":"woman-s-hat","🎩":"top-hat","🎓":"graduation-cap","🧢":"billed-cap","🪖":"military-helmet","⛑️":"rescue-worker-s-helmet","📿":"prayer-beads","💄":"lipstick","💍":"ring","💎":"gem-stone","🔇":"muted-speaker","🔈":"speaker-low-volume","🔉":"speaker-medium-volume","🔊":"speaker-high-volume","📢":"loudspeaker","📣":"megaphone","📯":"postal-horn","🔔":"bell","🔕":"bell-with-slash","🎼":"musical-score","🎵":"musical-note","🎶":"musical-notes","🎙️":"studio-microphone","🎚️":"level-slider","🎛️":"control-knobs","🎤":"microphone","🎧":"headphone","📻":"radio","🎷":"saxophone","🪗":"accordion","🎸":"guitar","🎹":"musical-keyboard","🎺":"trumpet","🎻":"violin","🪕":"banjo","🥁":"drum","🪘":"long-drum","🪇":"maracas","🪈":"flute","📱":"mobile-phone","📲":"mobile-phone-with-arrow","☎️":"telephone","📞":"telephone-receiver","📟":"pager","📠":"fax-machine","🔋":"battery","🪫":"low-battery","🔌":"electric-plug","💻":"laptop","🖥️":"desktop-computer","🖨️":"printer","⌨️":"keyboard","🖱️":"computer-mouse","🖲️":"trackball","💽":"computer-disk","💾":"floppy-disk","💿":"optical-disk","📀":"dvd","🧮":"abacus","🎥":"movie-camera","🎞️":"film-frames","📽️":"film-projector","🎬":"clapper-board","📺":"television","📷":"camera","📸":"camera-with-flash","📹":"video-camera","📼":"videocassette","🔍":"magnifying-glass-tilted-left","🔎":"magnifying-glass-tilted-right","🕯️":"candle","💡":"light-bulb","🔦":"flashlight","🏮":"red-paper-lantern","🪔":"diya-lamp","📔":"notebook-with-decorative-cover","📕":"closed-book","📖":"open-book","📗":"green-book","📘":"blue-book","📙":"orange-book","📚":"books","📓":"notebook","📒":"ledger","📃":"page-with-curl","📜":"scroll","📄":"page-facing-up","📰":"newspaper","🗞️":"rolled-up-newspaper","📑":"bookmark-tabs","🔖":"bookmark","🏷️":"label","💰":"money-bag","🪙":"coin","💴":"yen-banknote","💵":"dollar-banknote","💶":"euro-banknote","💷":"pound-banknote","💸":"money-with-wings","💳":"credit-card","🧾":"receipt","💹":"chart-increasing-with-yen","✉️":"envelope","📧":"e-mail","📨":"incoming-envelope","📩":"envelope-with-arrow","📤":"outbox-tray","📥":"inbox-tray","📦":"package","📫":"closed-mailbox-with-raised-flag","📪":"closed-mailbox-with-lowered-flag","📬":"open-mailbox-with-raised-flag","📭":"open-mailbox-with-lowered-flag","📮":"postbox","🗳️":"ballot-box-with-ballot","✏️":"pencil","✒️":"black-nib","🖋️":"fountain-pen","🖊️":"pen","🖌️":"paintbrush","🖍️":"crayon","📝":"memo","💼":"briefcase","📁":"file-folder","📂":"open-file-folder","🗂️":"card-index-dividers","📅":"calendar","📆":"tear-off-calendar","🗒️":"spiral-notepad","🗓️":"spiral-calendar","📇":"card-index","📈":"chart-increasing","📉":"chart-decreasing","📊":"bar-chart","📋":"clipboard","📌":"pushpin","📍":"round-pushpin","📎":"paperclip","🖇️":"linked-paperclips","📏":"straight-ruler","📐":"triangular-ruler","✂️":"scissors","🗃️":"card-file-box","🗄️":"file-cabinet","🗑️":"wastebasket","🔒":"locked","🔓":"unlocked","🔏":"locked-with-pen","🔐":"locked-with-key","🔑":"key","🗝️":"old-key","🔨":"hammer","🪓":"axe","⛏️":"pick","⚒️":"hammer-and-pick","🛠️":"hammer-and-wrench","🗡️":"dagger","⚔️":"crossed-swords","💣":"bomb","🪃":"boomerang","🏹":"bow-and-arrow","🛡️":"shield","🪚":"carpentry-saw","🔧":"wrench","🪛":"screwdriver","🔩":"nut-and-bolt","⚙️":"gear","🗜️":"clamp","⚖️":"balance-scale","🦯":"white-cane","🔗":"link","⛓️":"chains","🪝":"hook","🧰":"toolbox","🧲":"magnet","🪜":"ladder","⚗️":"alembic","🧪":"test-tube","🧫":"petri-dish","🧬":"dna","🔬":"microscope","🔭":"telescope","📡":"satellite-antenna","💉":"syringe","🩸":"drop-of-blood","💊":"pill","🩹":"adhesive-bandage","🩼":"crutch","🩺":"stethoscope","🩻":"x-ray","🚪":"door","🛗":"elevator","🪞":"mirror","🪟":"window","🛏️":"bed","🛋️":"couch-and-lamp","🪑":"chair","🚽":"toilet","🪠":"plunger","🚿":"shower","🛁":"bathtub","🪤":"mouse-trap","🪒":"razor","🧴":"lotion-bottle","🧷":"safety-pin","🧹":"broom","🧺":"basket","🧻":"roll-of-paper","🪣":"bucket","🧼":"soap","🫧":"bubbles","🪥":"toothbrush","🧽":"sponge","🧯":"fire-extinguisher","🛒":"shopping-cart","🚬":"cigarette","⚰️":"coffin","🪦":"headstone","⚱️":"funeral-urn","🧿":"nazar-amulet","🪬":"hamsa","🗿":"moai","🪧":"placard","🪪":"identification-card","🏧":"atm-sign","🚮":"litter-in-bin-sign","🚰":"potable-water","♿":"wheelchair-symbol","🚹":"men-s-room","🚺":"women-s-room","🚻":"restroom","🚼":"baby-symbol","🚾":"water-closet","🛂":"passport-control","🛃":"customs","🛄":"baggage-claim","🛅":"left-luggage","⚠️":"warning","🚸":"children-crossing","⛔":"no-entry","🚫":"prohibited","🚳":"no-bicycles","🚭":"no-smoking","🚯":"no-littering","🚱":"non-potable-water","🚷":"no-pedestrians","📵":"no-mobile-phones","🔞":"no-one-under-eighteen","☢️":"radioactive","☣️":"biohazard","⬆️":"up-arrow","↗️":"up-right-arrow","➡️":"right-arrow","↘️":"down-right-arrow","⬇️":"down-arrow","↙️":"down-left-arrow","⬅️":"left-arrow","↖️":"up-left-arrow","↕️":"up-down-arrow","↔️":"left-right-arrow","↩️":"right-arrow-curving-left","↪️":"left-arrow-curving-right","⤴️":"right-arrow-curving-up","⤵️":"right-arrow-curving-down","🔃":"clockwise-vertical-arrows","🔄":"counterclockwise-arrows-button","🔙":"back-arrow","🔚":"end-arrow","🔛":"on-arrow","🔜":"soon-arrow","🔝":"top-arrow","🛐":"place-of-worship","⚛️":"atom-symbol","🕉️":"om","✡️":"star-of-david","☸️":"wheel-of-dharma","☯️":"yin-yang","✝️":"latin-cross","☦️":"orthodox-cross","☪️":"star-and-crescent","☮️":"peace-symbol","🕎":"menorah","🔯":"dotted-six-pointed-star","🪯":"khanda","♈":"aries","♉":"taurus","♊":"gemini","♋":"cancer","♌":"leo","♍":"virgo","♎":"libra","♏":"scorpio","♐":"sagittarius","♑":"capricorn","♒":"aquarius","♓":"pisces","⛎":"ophiuchus","🔀":"shuffle-tracks-button","🔁":"repeat-button","🔂":"repeat-single-button","▶️":"play-button","⏩":"fast-forward-button","⏭️":"next-track-button","⏯️":"play-or-pause-button","◀️":"reverse-button","⏪":"fast-reverse-button","⏮️":"last-track-button","🔼":"upwards-button","⏫":"fast-up-button","🔽":"downwards-button","⏬":"fast-down-button","⏸️":"pause-button","⏹️":"stop-button","⏺️":"record-button","⏏️":"eject-button","🎦":"cinema","🔅":"dim-button","🔆":"bright-button","📶":"antenna-bars","🛜":"wireless","📳":"vibration-mode","📴":"mobile-phone-off","♀️":"female-sign","♂️":"male-sign","⚧️":"transgender-symbol","✖️":"multiply","":"plus","":"minus","➗":"divide","🟰":"heavy-equals-sign","♾️":"infinity","‼️":"double-exclamation-mark","⁉️":"exclamation-question-mark","❓":"red-question-mark","❔":"white-question-mark","❕":"white-exclamation-mark","❗":"red-exclamation-mark","〰️":"wavy-dash","💱":"currency-exchange","💲":"heavy-dollar-sign","⚕️":"medical-symbol","♻️":"recycling-symbol","⚜️":"fleur-de-lis","🔱":"trident-emblem","📛":"name-badge","🔰":"japanese-symbol-for-beginner","⭕":"hollow-red-circle","✅":"check-mark-button","☑️":"check-box-with-check","✔️":"check-mark","❌":"cross-mark","❎":"cross-mark-button","➰":"curly-loop","➿":"double-curly-loop","〽️":"part-alternation-mark","✳️":"eight-spoked-asterisk","✴️":"eight-pointed-star","❇️":"sparkle","©️":"copyright","®️":"registered","™️":"trade-mark","#️⃣":"keycap-number-sign","*️⃣":"keycap-asterisk","0⃣":"keycap-0","1⃣":"keycap-1","2⃣":"keycap-2","3⃣":"keycap-3","4⃣":"keycap-4","5⃣":"keycap-5","6⃣":"keycap-6","7⃣":"keycap-7","8⃣":"keycap-8","9⃣":"keycap-9","🔟":"keycap-10","🔠":"input-latin-uppercase","🔡":"input-latin-lowercase","🔢":"input-numbers","🔣":"input-symbols","🔤":"input-latin-letters","🅰️":"a-button","🆎":"ab-button","🅱️":"b-button","🆑":"cl-button","🆒":"cool-button","🆓":"free-button","":"information","🆔":"id-button","Ⓜ️":"circled-m","🆕":"new-button","🆖":"ng-button","🅾️":"o-button","🆗":"ok-button","🅿️":"p-button","🆘":"sos-button","🆙":"up-button","🆚":"vs-button","🈁":"japanese-here-button","🈂️":"japanese-service-charge-button","🈷️":"japanese-monthly-amount-button","🈶":"japanese-not-free-of-charge-button","🈯":"japanese-reserved-button","🉐":"japanese-bargain-button","🈹":"japanese-discount-button","🈚":"japanese-free-of-charge-button","🈲":"japanese-prohibited-button","🉑":"japanese-acceptable-button","🈸":"japanese-application-button","🈴":"japanese-passing-grade-button","🈳":"japanese-vacancy-button","㊗️":"japanese-congratulations-button","㊙️":"japanese-secret-button","🈺":"japanese-open-for-business-button","🈵":"japanese-no-vacancy-button","🔴":"red-circle","🟠":"orange-circle","🟡":"yellow-circle","🟢":"green-circle","🔵":"blue-circle","🟣":"purple-circle","🟤":"brown-circle","⚫":"black-circle","⚪":"white-circle","🟥":"red-square","🟧":"orange-square","🟨":"yellow-square","🟩":"green-square","🟦":"blue-square","🟪":"purple-square","🟫":"brown-square","⬛":"black-large-square","⬜":"white-large-square","◼️":"black-medium-square","◻️":"white-medium-square","◾":"black-medium-small-square","◽":"white-medium-small-square","▪️":"black-small-square","▫️":"white-small-square","🔶":"large-orange-diamond","🔷":"large-blue-diamond","🔸":"small-orange-diamond","🔹":"small-blue-diamond","🔺":"red-triangle-pointed-up","🔻":"red-triangle-pointed-down","💠":"diamond-with-a-dot","🔘":"radio-button","🔳":"white-square-button","🔲":"black-square-button","🏁":"chequered-flag","🚩":"triangular-flag","🎌":"crossed-flags","🏴":"black-flag","🏳️":"white-flag","🏳️‍🌈":"rainbow-flag","🏳️‍⚧️":"transgender-flag","🏴‍☠️":"pirate-flag","🇦🇨":"flag-ascension-island","🇦🇩":"flag-andorra","🇦🇪":"flag-united-arab-emirates","🇦🇫":"flag-afghanistan","🇦🇬":"flag-antigua-barbuda","🇦🇮":"flag-anguilla","🇦🇱":"flag-albania","🇦🇲":"flag-armenia","🇦🇴":"flag-angola","🇦🇶":"flag-antarctica","🇦🇷":"flag-argentina","🇦🇸":"flag-american-samoa","🇦🇹":"flag-austria","🇦🇺":"flag-australia","🇦🇼":"flag-aruba","🇦🇽":"flag-aland-islands","🇦🇿":"flag-azerbaijan","🇧🇦":"flag-bosnia-herzegovina","🇧🇧":"flag-barbados","🇧🇩":"flag-bangladesh","🇧🇪":"flag-belgium","🇧🇫":"flag-burkina-faso","🇧🇬":"flag-bulgaria","🇧🇭":"flag-bahrain","🇧🇮":"flag-burundi","🇧🇯":"flag-benin","🇧🇱":"flag-st-barthelemy","🇧🇲":"flag-bermuda","🇧🇳":"flag-brunei","🇧🇴":"flag-bolivia","🇧🇶":"flag-caribbean-netherlands","🇧🇷":"flag-brazil","🇧🇸":"flag-bahamas","🇧🇹":"flag-bhutan","🇧🇻":"flag-bouvet-island","🇧🇼":"flag-botswana","🇧🇾":"flag-belarus","🇧🇿":"flag-belize","🇨🇦":"flag-canada","🇨🇨":"flag-cocos-islands","🇨🇩":"flag-congo-kinshasa","🇨🇫":"flag-central-african-republic","🇨🇬":"flag-congo-brazzaville","🇨🇭":"flag-switzerland","🇨🇮":"flag-cote-d-ivoire","🇨🇰":"flag-cook-islands","🇨🇱":"flag-chile","🇨🇲":"flag-cameroon","🇨🇳":"flag-china","🇨🇴":"flag-colombia","🇨🇵":"flag-clipperton-island","🇨🇷":"flag-costa-rica","🇨🇺":"flag-cuba","🇨🇻":"flag-cape-verde","🇨🇼":"flag-curacao","🇨🇽":"flag-christmas-island","🇨🇾":"flag-cyprus","🇨🇿":"flag-czechia","🇩🇪":"flag-germany","🇩🇬":"flag-diego-garcia","🇩🇯":"flag-djibouti","🇩🇰":"flag-denmark","🇩🇲":"flag-dominica","🇩🇴":"flag-dominican-republic","🇩🇿":"flag-algeria","🇪🇦":"flag-ceuta-melilla","🇪🇨":"flag-ecuador","🇪🇪":"flag-estonia","🇪🇬":"flag-egypt","🇪🇭":"flag-western-sahara","🇪🇷":"flag-eritrea","🇪🇸":"flag-spain","🇪🇹":"flag-ethiopia","🇪🇺":"flag-european-union","🇫🇮":"flag-finland","🇫🇯":"flag-fiji","🇫🇰":"flag-falkland-islands","🇫🇲":"flag-micronesia","🇫🇴":"flag-faroe-islands","🇫🇷":"flag-france","🇬🇦":"flag-gabon","🇬🇧":"flag-united-kingdom","🇬🇩":"flag-grenada","🇬🇪":"flag-georgia","🇬🇫":"flag-french-guiana","🇬🇬":"flag-guernsey","🇬🇭":"flag-ghana","🇬🇮":"flag-gibraltar","🇬🇱":"flag-greenland","🇬🇲":"flag-gambia","🇬🇳":"flag-guinea","🇬🇵":"flag-guadeloupe","🇬🇶":"flag-equatorial-guinea","🇬🇷":"flag-greece","🇬🇸":"flag-south-georgia-south-sandwich-islands","🇬🇹":"flag-guatemala","🇬🇺":"flag-guam","🇬🇼":"flag-guinea-bissau","🇬🇾":"flag-guyana","🇭🇰":"flag-hong-kong-sar-china","🇭🇲":"flag-heard-mcdonald-islands","🇭🇳":"flag-honduras","🇭🇷":"flag-croatia","🇭🇹":"flag-haiti","🇭🇺":"flag-hungary","🇮🇨":"flag-canary-islands","🇮🇩":"flag-indonesia","🇮🇪":"flag-ireland","🇮🇱":"flag-israel","🇮🇲":"flag-isle-of-man","🇮🇳":"flag-india","🇮🇴":"flag-british-indian-ocean-territory","🇮🇶":"flag-iraq","🇮🇷":"flag-iran","🇮🇸":"flag-iceland","🇮🇹":"flag-italy","🇯🇪":"flag-jersey","🇯🇲":"flag-jamaica","🇯🇴":"flag-jordan","🇯🇵":"flag-japan","🇰🇪":"flag-kenya","🇰🇬":"flag-kyrgyzstan","🇰🇭":"flag-cambodia","🇰🇮":"flag-kiribati","🇰🇲":"flag-comoros","🇰🇳":"flag-st-kitts-nevis","🇰🇵":"flag-north-korea","🇰🇷":"flag-south-korea","🇰🇼":"flag-kuwait","🇰🇾":"flag-cayman-islands","🇰🇿":"flag-kazakhstan","🇱🇦":"flag-laos","🇱🇧":"flag-lebanon","🇱🇨":"flag-st-lucia","🇱🇮":"flag-liechtenstein","🇱🇰":"flag-sri-lanka","🇱🇷":"flag-liberia","🇱🇸":"flag-lesotho","🇱🇹":"flag-lithuania","🇱🇺":"flag-luxembourg","🇱🇻":"flag-latvia","🇱🇾":"flag-libya","🇲🇦":"flag-morocco","🇲🇨":"flag-monaco","🇲🇩":"flag-moldova","🇲🇪":"flag-montenegro","🇲🇫":"flag-st-martin","🇲🇬":"flag-madagascar","🇲🇭":"flag-marshall-islands","🇲🇰":"flag-north-macedonia","🇲🇱":"flag-mali","🇲🇲":"flag-myanmar","🇲🇳":"flag-mongolia","🇲🇴":"flag-macao-sar-china","🇲🇵":"flag-northern-mariana-islands","🇲🇶":"flag-martinique","🇲🇷":"flag-mauritania","🇲🇸":"flag-montserrat","🇲🇹":"flag-malta","🇲🇺":"flag-mauritius","🇲🇻":"flag-maldives","🇲🇼":"flag-malawi","🇲🇽":"flag-mexico","🇲🇾":"flag-malaysia","🇲🇿":"flag-mozambique","🇳🇦":"flag-namibia","🇳🇨":"flag-new-caledonia","🇳🇪":"flag-niger","🇳🇫":"flag-norfolk-island","🇳🇬":"flag-nigeria","🇳🇮":"flag-nicaragua","🇳🇱":"flag-netherlands","🇳🇴":"flag-norway","🇳🇵":"flag-nepal","🇳🇷":"flag-nauru","🇳🇺":"flag-niue","🇳🇿":"flag-new-zealand","🇴🇲":"flag-oman","🇵🇦":"flag-panama","🇵🇪":"flag-peru","🇵🇫":"flag-french-polynesia","🇵🇬":"flag-papua-new-guinea","🇵🇭":"flag-philippines","🇵🇰":"flag-pakistan","🇵🇱":"flag-poland","🇵🇲":"flag-st-pierre-miquelon","🇵🇳":"flag-pitcairn-islands","🇵🇷":"flag-puerto-rico","🇵🇸":"flag-palestinian-territories","🇵🇹":"flag-portugal","🇵🇼":"flag-palau","🇵🇾":"flag-paraguay","🇶🇦":"flag-qatar","🇷🇪":"flag-reunion","🇷🇴":"flag-romania","🇷🇸":"flag-serbia","🇷🇺":"flag-russia","🇷🇼":"flag-rwanda","🇸🇦":"flag-saudi-arabia","🇸🇧":"flag-solomon-islands","🇸🇨":"flag-seychelles","🇸🇩":"flag-sudan","🇸🇪":"flag-sweden","🇸🇬":"flag-singapore","🇸🇭":"flag-st-helena","🇸🇮":"flag-slovenia","🇸🇯":"flag-svalbard-jan-mayen","🇸🇰":"flag-slovakia","🇸🇱":"flag-sierra-leone","🇸🇲":"flag-san-marino","🇸🇳":"flag-senegal","🇸🇴":"flag-somalia","🇸🇷":"flag-suriname","🇸🇸":"flag-south-sudan","🇸🇹":"flag-sao-tome-principe","🇸🇻":"flag-el-salvador","🇸🇽":"flag-sint-maarten","🇸🇾":"flag-syria","🇸🇿":"flag-eswatini","🇹🇦":"flag-tristan-da-cunha","🇹🇨":"flag-turks-caicos-islands","🇹🇩":"flag-chad","🇹🇫":"flag-french-southern-territories","🇹🇬":"flag-togo","🇹🇭":"flag-thailand","🇹🇯":"flag-tajikistan","🇹🇰":"flag-tokelau","🇹🇱":"flag-timor-leste","🇹🇲":"flag-turkmenistan","🇹🇳":"flag-tunisia","🇹🇴":"flag-tonga","🇹🇷":"flag-turkey","🇹🇹":"flag-trinidad-tobago","🇹🇻":"flag-tuvalu","🇹🇼":"flag-taiwan","🇹🇿":"flag-tanzania","🇺🇦":"flag-ukraine","🇺🇬":"flag-uganda","🇺🇲":"flag-u-s-outlying-islands","🇺🇳":"flag-united-nations","🇺🇸":"flag-united-states","🇺🇾":"flag-uruguay","🇺🇿":"flag-uzbekistan","🇻🇦":"flag-vatican-city","🇻🇨":"flag-st-vincent-grenadines","🇻🇪":"flag-venezuela","🇻🇬":"flag-british-virgin-islands","🇻🇮":"flag-u-s-virgin-islands","🇻🇳":"flag-vietnam","🇻🇺":"flag-vanuatu","🇼🇫":"flag-wallis-futuna","🇼🇸":"flag-samoa","🇽🇰":"flag-kosovo","🇾🇪":"flag-yemen","🇾🇹":"flag-mayotte","🇿🇦":"flag-south-africa","🇿🇲":"flag-zambia","🇿🇼":"flag-zimbabwe","🏴󠁧󠁢󠁥󠁮󠁧󠁿":"flag-england","🏴󠁧󠁢󠁳󠁣󠁴󠁿":"flag-scotland","🏴󠁧󠁢󠁷󠁬󠁳󠁿":"flag-wales"};var fW,pW,hW=function(e){var t,n=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;return null===(t=e.match(n))||void 0===t?void 0:t[0]},gW=ZB((function(e){var t=e.css,n=e.token;return{container:t(fW||(fW=Ud(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "]))),loading:t(pW||(pW=Ud(["\n position: absolute;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n width: 100%;\n height: 100%;\n\n color: ",";\n "])),n.colorText)}}));function mW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mW(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vW=z.memo((function(e){var t=e.emoji,n=e.className,r=e.style,o=e.type,a=void 0===o?"3d":o,i=e.size,s=void 0===i?40:i,l=sW(),c=qh(z.useState(!1),2),u=c[0],d=c[1],f=gW(),p=f.cx,h=f.styles,g=z.useMemo((function(){if("pure"!==a){var e=function(e){var t=hW(e);if(t)return null==dW?void 0:dW[t]}(t);if(e)switch(a){case"modern":case"flat":case"high-contrast":return l({path:"icons/".concat(a,"/").concat(LH(e),".svg"),pkg:"fluentui-emoji",version:"0.0.8"});case"anim":return l({path:"assets/".concat(e,".webp"),pkg:"@lobehub/assets-emoji-anim",version:"1.0.0"});case"3d":return l({path:"assets/".concat(e,".webp"),pkg:"@lobehub/assets-emoji",version:"1.3.0"})}}}),[a,t]);return"pure"===a||!g||u?Q.jsx("div",{className:p(h.container,n),style:bW({fontSize:.9*s,height:s,width:s},r),children:t}):Q.jsx("div",{className:p(h.container,n),style:bW({height:s,width:s},r),children:Q.jsx(uW,{alt:t,height:s,onError:function(){return d(!0)},src:g,width:s})})}));function yW(e,t,n){return yW=$b()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Eb(o,n.prototype),o},yW.apply(null,arguments)}function wW(e){var t="function"==typeof Map?new Map:void 0;return wW=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(K4){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return yW(e,arguments,Db(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Eb(n,e)},wW(e)}var xW=function(e){var t,n;function r(t){return jb(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Eb(t,n),r}(wW(Error));function SW(e){return Math.round(255*e)}function kW(e,t,n){return SW(e)+","+SW(t)+","+SW(n)}function CW(e,t,n,r){if(void 0===r&&(r=kW),0===t)return r(n,n,n);var o=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,i=a*(1-Math.abs(o%2-1)),s=0,l=0,c=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,c=i):o>=3&&o<4?(l=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i);var u=n-a/2;return r(s+u,l+u,c+u)}var EW={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var OW=/^#[a-fA-F0-9]{6}$/,DW=/^#[a-fA-F0-9]{8}$/,$W=/^#[a-fA-F0-9]{3}$/,jW=/^#[a-fA-F0-9]{4}$/,PW=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,_W=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,NW=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,IW=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function TW(e){if("string"!=typeof e)throw new xW(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return EW[t]?"#"+EW[t]:e}(e);if(t.match(OW))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(DW)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match($W))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(jW)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=PW.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=_W.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=NW.exec(t);if(i){var s="rgb("+CW(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=PW.exec(s);if(!l)throw new xW(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=IW.exec(t.substring(0,50));if(c){var u="rgb("+CW(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=PW.exec(u);if(!d)throw new xW(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 xW(5)}function AW(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l=a-i,c=s>.5?l/(2-a-i):l/(a+i);switch(a){case n:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-n)/l+2;break;default:t=(n-r)/l+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:s,alpha:e.alpha}:{hue:t,saturation:c,lightness:s}}(TW(e))}var FW=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function RW(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function MW(e){return RW(Math.round(255*e))}function LW(e,t,n){return FW("#"+MW(e)+MW(t)+MW(n))}function BW(e,t,n){return CW(e,t,n,LW)}function zW(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return FW("#"+RW(e)+RW(t)+RW(n));if("object"==typeof e&&void 0===t&&void 0===n)return FW("#"+RW(e.red)+RW(e.green)+RW(e.blue));throw new xW(6)}function HW(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=TW(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?zW(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?zW(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new xW(7)}var WW=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},UW=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},VW=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},GW=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function qW(e){if("object"!=typeof e)throw new xW(8);if(UW(e))return HW(e);if(WW(e))return zW(e);if(GW(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?BW(e,t,n):"rgba("+CW(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?BW(e.hue,e.saturation,e.lightness):"rgba("+CW(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new xW(2)}(e);if(VW(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return BW(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return BW(e.hue,e.saturation,e.lightness);throw new xW(1)}(e);throw new xW(8)}function KW(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):KW(e,t,r)}}function XW(e){return KW(e,e.length,[])}function YW(e,t){if("transparent"===t)return t;var n=AW(t);return qW(jp({},n,{hue:n.hue+parseFloat(e)}))}var QW=XW(YW);function JW(e){if("transparent"===e)return 0;var t=TW(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],o=n[1],a=n[2];return parseFloat((.2126*r+.7152*o+.0722*a).toFixed(3))}function ZW(e,t){if("transparent"===t)return t;var n,r,o,a=AW(t);return qW(jp({},a,{lightness:(n=0,r=1,o=a.lightness+parseFloat(e),Math.max(n,Math.min(r,o)))}))}var eU=XW(ZW),tU="#000",nU="#fff";function rU(e,t,n,r){void 0===t&&(t=tU),void 0===n&&(n=nU),void 0===r&&(r=!0);var o,a,i,s=JW(e)>.179,l=s?t:n;return!r||(o=l,a=JW(e),i=JW(o),parseFloat((a>i?(a+.05)/(i+.05):(i+.05)/(a+.05)).toFixed(2))>=4.5)?l:s?tU:nU}function oU(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}"function"==typeof SuppressedError&&SuppressedError;var aU=function(e){return"function"==typeof e};function iU(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function sU(e){var t=z.useRef(e);return t.current=e,t}const lU=function(e){var t=sU(e);z.useEffect((function(){return function(){t.current()}}),[])};var cU=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},uU="object"==typeof t&&t&&t.Object===Object&&t,dU=uU,fU="object"==typeof self&&self&&self.Object===Object&&self,pU=dU||fU||Function("return this")(),hU=pU.Symbol,gU=hU,mU=Object.prototype,bU=mU.hasOwnProperty,vU=mU.toString,yU=gU?gU.toStringTag:void 0;var wU=function(e){var t=bU.call(e,yU),n=e[yU];try{e[yU]=void 0;var r=!0}catch(K4){}var o=vU.call(e);return r&&(t?e[yU]=n:delete e[yU]),o},xU=Object.prototype.toString;var SU=wU,kU=function(e){return xU.call(e)},CU=hU?hU.toStringTag:void 0;var EU=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":CU&&CU in Object(e)?SU(e):kU(e)};var OU=function(e){return null!=e&&"object"==typeof e},DU=EU,$U=OU;var jU=function(e){return"symbol"==typeof e||$U(e)&&"[object Symbol]"==DU(e)};const PU=!("undefined"==typeof window||!window.document||!window.document.createElement);function _U(e){void 0===e&&(e=!1);var t=oU(function(e,t){void 0===e&&(e=!1);var n=oU(z.useState(e),2),r=n[0],o=n[1];return[r,z.useMemo((function(){var n=void 0===t?!e:t;return{toggle:function(){return o((function(t){return t===e?n:e}))},set:function(e){return o(e)},setLeft:function(){return o(e)},setRight:function(){return o(n)}}}),[])]}(!!e),2),n=t[0],r=t[1],o=r.toggle,a=r.set;return[n,z.useMemo((function(){return{toggle:o,set:function(e){return a(!!e)},setTrue:function(){return a(!0)},setFalse:function(){return a(!1)}}}),[])]}function NU(e,t){if(PU)return e?aU(e)?e():"current"in e?e.current:e:t}const IU=function(e){return function(t,n,r){var o=z.useRef(!1),a=z.useRef([]),i=z.useRef([]),s=z.useRef();e((function(){var e,l=(Array.isArray(r)?r:[r]).map((function(e){return NU(e)}));if(!o.current)return o.current=!0,a.current=l,i.current=n,void(s.current=t());l.length===a.current.length&&iU(l,a.current)&&iU(n,i.current)||(null===(e=s.current)||void 0===e||e.call(s),a.current=l,i.current=n,s.current=t())})),lU((function(){var e;null===(e=s.current)||void 0===e||e.call(s),o.current=!1}))}};const TU=IU(z.useEffect);var AU=function(){this.__data__=[],this.size=0};var FU=function(e,t){return e===t||e!=e&&t!=t},RU=FU;var MU=function(e,t){for(var n=e.length;n--;)if(RU(e[n][0],t))return n;return-1},LU=MU,BU=Array.prototype.splice;var zU=MU;var HU=MU;var WU=MU;var UU=AU,VU=function(e){var t=this.__data__,n=LU(t,e);return!(n<0)&&(n==t.length-1?t.pop():BU.call(t,n,1),--this.size,!0)},GU=function(e){var t=this.__data__,n=zU(t,e);return n<0?void 0:t[n][1]},qU=function(e){return HU(this.__data__,e)>-1},KU=function(e,t){var n=this.__data__,r=WU(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function XU(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}XU.prototype.clear=UU,XU.prototype.delete=VU,XU.prototype.get=GU,XU.prototype.has=qU,XU.prototype.set=KU;var YU=XU,QU=YU;var JU=function(){this.__data__=new QU,this.size=0};var ZU=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var eV=function(e){return this.__data__.get(e)};var tV=function(e){return this.__data__.has(e)},nV=EU,rV=cU;var oV,aV=function(e){if(!rV(e))return!1;var t=nV(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},iV=pU["__core-js_shared__"],sV=(oV=/[^.]+$/.exec(iV&&iV.keys&&iV.keys.IE_PROTO||""))?"Symbol(src)_1."+oV:"";var lV=function(e){return!!sV&&sV in e},cV=Function.prototype.toString;var uV=function(e){if(null!=e){try{return cV.call(e)}catch(K4){}try{return e+""}catch(K4){}}return""},dV=aV,fV=lV,pV=cU,hV=uV,gV=/^\[object .+?Constructor\]$/,mV=Function.prototype,bV=Object.prototype,vV=mV.toString,yV=bV.hasOwnProperty,wV=RegExp("^"+vV.call(yV).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var xV=function(e,t){return null==e?void 0:e[t]},SV=function(e){return!(!pV(e)||fV(e))&&(dV(e)?wV:gV).test(hV(e))},kV=xV;var CV=function(e,t){var n=kV(e,t);return SV(n)?n:void 0},EV=CV(pU,"Map"),OV=CV(Object,"create"),DV=OV;var $V=function(){this.__data__=DV?DV(null):{},this.size=0};var jV=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},PV=OV,_V=Object.prototype.hasOwnProperty;var NV=function(e){var t=this.__data__;if(PV){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _V.call(t,e)?t[e]:void 0},IV=OV,TV=Object.prototype.hasOwnProperty;var AV=OV;var FV=$V,RV=jV,MV=NV,LV=function(e){var t=this.__data__;return IV?void 0!==t[e]:TV.call(t,e)},BV=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=AV&&void 0===t?"__lodash_hash_undefined__":t,this};function zV(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zV.prototype.clear=FV,zV.prototype.delete=RV,zV.prototype.get=MV,zV.prototype.has=LV,zV.prototype.set=BV;var HV=zV,WV=YU,UV=EV;var VV=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var GV=function(e,t){var n=e.__data__;return VV(t)?n["string"==typeof t?"string":"hash"]:n.map},qV=GV;var KV=GV;var XV=GV;var YV=GV;var QV=function(){this.size=0,this.__data__={hash:new HV,map:new(UV||WV),string:new HV}},JV=function(e){var t=qV(this,e).delete(e);return this.size-=t?1:0,t},ZV=function(e){return KV(this,e).get(e)},eG=function(e){return XV(this,e).has(e)},tG=function(e,t){var n=YV(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function nG(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nG.prototype.clear=QV,nG.prototype.delete=JV,nG.prototype.get=ZV,nG.prototype.has=eG,nG.prototype.set=tG;var rG=nG,oG=YU,aG=EV,iG=rG;var sG=YU,lG=JU,cG=ZU,uG=eV,dG=tV,fG=function(e,t){var n=this.__data__;if(n instanceof oG){var r=n.__data__;if(!aG||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new iG(r)}return n.set(e,t),this.size=n.size,this};function pG(e){var t=this.__data__=new sG(e);this.size=t.size}pG.prototype.clear=lG,pG.prototype.delete=cG,pG.prototype.get=uG,pG.prototype.has=dG,pG.prototype.set=fG;var hG=pG;var gG=rG,mG=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},bG=function(e){return this.__data__.has(e)};function vG(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new gG;++t<n;)this.add(e[t])}vG.prototype.add=vG.prototype.push=mG,vG.prototype.has=bG;var yG=vG;var wG=function(e,t){return e.has(t)},xG=yG,SG=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},kG=wG;var CG=function(e,t,n,r,o,a){var i=1&n,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new xG:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var m=i?r(g,h,d,t,e,a):r(h,g,d,e,t,a);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!SG(t,(function(e,t){if(!kG(p,t)&&(h===e||o(h,e,n,r,a)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!o(h,g,n,r,a)){f=!1;break}}return a.delete(e),a.delete(t),f};var EG=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},OG=pU.Uint8Array,DG=FU,$G=CG,jG=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},PG=EG,_G=hU?hU.prototype:void 0,NG=_G?_G.valueOf:void 0;var IG=function(e,t,n,r,o,a,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new OG(e),new OG(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return DG(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=jG;case"[object Set]":var l=1&r;if(s||(s=PG),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=2,i.set(e,t);var u=$G(s(e),s(t),r,o,a,i);return i.delete(e),u;case"[object Symbol]":if(NG)return NG.call(e)==NG.call(t)}return!1};var TG=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},AG=Array.isArray,FG=TG,RG=AG;var MG=function(e,t,n){var r=t(e);return RG(e)?r:FG(r,n(e))};var LG=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a},BG=function(){return[]},zG=Object.prototype.propertyIsEnumerable,HG=Object.getOwnPropertySymbols,WG=HG?function(e){return null==e?[]:(e=Object(e),LG(HG(e),(function(t){return zG.call(e,t)})))}:BG,UG=WG;var VG=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},GG=EU,qG=OU;var KG=function(e){return qG(e)&&"[object Arguments]"==GG(e)},XG=OU,YG=Object.prototype,QG=YG.hasOwnProperty,JG=YG.propertyIsEnumerable,ZG=KG(function(){return arguments}())?KG:function(e){return XG(e)&&QG.call(e,"callee")&&!JG.call(e,"callee")},eq={exports:{}};var tq=function(){return!1};!function(e,t){var n=pU,r=tq,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r;e.exports=s}(eq,eq.exports);var nq=eq.exports,rq=/^(?:0|[1-9]\d*)$/;var oq=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&rq.test(e))&&e>-1&&e%1==0&&e<t};var aq=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},iq=EU,sq=aq,lq=OU,cq={};cq["[object Float32Array]"]=cq["[object Float64Array]"]=cq["[object Int8Array]"]=cq["[object Int16Array]"]=cq["[object Int32Array]"]=cq["[object Uint8Array]"]=cq["[object Uint8ClampedArray]"]=cq["[object Uint16Array]"]=cq["[object Uint32Array]"]=!0,cq["[object Arguments]"]=cq["[object Array]"]=cq["[object ArrayBuffer]"]=cq["[object Boolean]"]=cq["[object DataView]"]=cq["[object Date]"]=cq["[object Error]"]=cq["[object Function]"]=cq["[object Map]"]=cq["[object Number]"]=cq["[object Object]"]=cq["[object RegExp]"]=cq["[object Set]"]=cq["[object String]"]=cq["[object WeakMap]"]=!1;var uq=function(e){return lq(e)&&sq(e.length)&&!!cq[iq(e)]};var dq=function(e){return function(t){return e(t)}},fq={exports:{}};!function(e,t){var n=uU,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(K4){}}();e.exports=i}(fq,fq.exports);var pq=fq.exports,hq=uq,gq=dq,mq=pq&&pq.isTypedArray,bq=mq?gq(mq):hq,vq=VG,yq=ZG,wq=AG,xq=nq,Sq=oq,kq=bq,Cq=Object.prototype.hasOwnProperty;var Eq=function(e,t){var n=wq(e),r=!n&&yq(e),o=!n&&!r&&xq(e),a=!n&&!r&&!o&&kq(e),i=n||r||o||a,s=i?vq(e.length,String):[],l=s.length;for(var c in e)!t&&!Cq.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Sq(c,l))||s.push(c);return s},Oq=Object.prototype;var Dq=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oq)};var $q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),jq=Dq,Pq=$q,_q=Object.prototype.hasOwnProperty;var Nq=function(e){if(!jq(e))return Pq(e);var t=[];for(var n in Object(e))_q.call(e,n)&&"constructor"!=n&&t.push(n);return t},Iq=aV,Tq=aq;var Aq=Eq,Fq=Nq,Rq=function(e){return null!=e&&Tq(e.length)&&!Iq(e)};var Mq=function(e){return Rq(e)?Aq(e):Fq(e)},Lq=MG,Bq=UG,zq=Mq;var Hq=function(e){return Lq(e,zq,Bq)},Wq=Hq,Uq=Object.prototype.hasOwnProperty;var Vq=function(e,t,n,r,o,a){var i=1&n,s=Wq(e),l=s.length;if(l!=Wq(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:Uq.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=i;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var b=i?r(m,g,u,t,e,a):r(g,m,u,e,t,a);if(!(void 0===b?g===m||o(g,m,n,r,a):b)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return a.delete(e),a.delete(t),p},Gq=CV(pU,"DataView"),qq=CV(pU,"Promise"),Kq=CV(pU,"Set"),Xq=Gq,Yq=EV,Qq=qq,Jq=Kq,Zq=CV(pU,"WeakMap"),eK=EU,tK=uV,nK="[object Map]",rK="[object Promise]",oK="[object Set]",aK="[object WeakMap]",iK="[object DataView]",sK=tK(Xq),lK=tK(Yq),cK=tK(Qq),uK=tK(Jq),dK=tK(Zq),fK=eK;(Xq&&fK(new Xq(new ArrayBuffer(1)))!=iK||Yq&&fK(new Yq)!=nK||Qq&&fK(Qq.resolve())!=rK||Jq&&fK(new Jq)!=oK||Zq&&fK(new Zq)!=aK)&&(fK=function(e){var t=eK(e),n="[object Object]"==t?e.constructor:void 0,r=n?tK(n):"";if(r)switch(r){case sK:return iK;case lK:return nK;case cK:return rK;case uK:return oK;case dK:return aK}return t});var pK=hG,hK=CG,gK=IG,mK=Vq,bK=fK,vK=AG,yK=nq,wK=bq,xK="[object Arguments]",SK="[object Array]",kK="[object Object]",CK=Object.prototype.hasOwnProperty;var EK=function(e,t,n,r,o,a){var i=vK(e),s=vK(t),l=i?SK:bK(e),c=s?SK:bK(t),u=(l=l==xK?kK:l)==kK,d=(c=c==xK?kK:c)==kK,f=l==c;if(f&&yK(e)){if(!yK(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new pK),i||wK(e)?hK(e,t,n,r,o,a):gK(e,t,l,n,r,o,a);if(!(1&n)){var p=u&&CK.call(e,"__wrapped__"),h=d&&CK.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return a||(a=new pK),o(g,m,n,r,a)}}return!!f&&(a||(a=new pK),mK(e,t,n,r,o,a))},OK=EK,DK=OU;var $K=function e(t,n,r,o,a){return t===n||(null==t||null==n||!DK(t)&&!DK(n)?t!=t&&n!=n:OK(t,n,r,o,e,a))},jK=$K;var PK=function(e,t){return jK(e,t)};function _K(e,t,n){void 0===n&&(n={});var r=sU(t);TU((function(){var t=NU(n.target,window);if(null==t?void 0:t.addEventListener){var o=function(e){return r.current(e)};return t.addEventListener(e,o,{capture:n.capture,once:n.once,passive:n.passive}),function(){t.removeEventListener(e,o,{capture:n.capture})}}}),[e,n.capture,n.once,n.passive],n.target)}function NK(e){var t=z.useRef(0),n=oU(z.useState(e),2),r=n[0],o=n[1],a=z.useCallback((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){o(e)}))}),[]);return lU((function(){cancelAnimationFrame(t.current)})),[r,a]}var IK=IU(z.useLayoutEffect);const TK=PU?IK:TU;const AK=function(e,t){var n=function(e){var t=z.useRef(e);t.current=z.useMemo((function(){return e}),[e]);var n=z.useRef();return n.current||(n.current=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(this,e)}),n.current}(e),r=z.useRef(null),o=z.useCallback((function(){r.current&&clearTimeout(r.current)}),[]);return z.useEffect((function(){if(!("number"!=typeof t||t<0))return r.current=setTimeout(n,t),o}),[t]),o};var FK,RK,MK,LK,BK,zK=ZB((function(e,t){var n=e.token,r=e.css,o=e.stylish,a=e.prefixCls;return{container:r(FK||(FK=Ud(["\n cursor: pointer;\n width: ","px;\n height: ","px;\n border-radius: ","px;\n "])),n.controlHeight,n.controlHeight,n.borderRadius),drawer:r(RK||(RK=Ud(["\n &.","-drawer-content {\n background: transparent;\n }\n\n .","-drawer-body {\n display: flex;\n flex-direction: column;\n }\n "])),a,a),drawerRoot:r(MK||(MK=Ud(["\n top: ","px;\n\n :focus-visible {\n outline: none;\n }\n\n .","-drawer {\n &-mask {\n ",";\n background-color: ",";\n }\n\n &-content-wrapper {\n box-shadow: none;\n }\n }\n "])),t+1,a,o.blur,HW(n.colorBgLayout,.5)),fillRect:r(LK||(LK=Ud(["\n flex: 1;\n width: 100%;\n border-top: none;\n "]))),menu:r(BK||(BK=Ud(["\n background: transparent;\n border-inline-end: transparent !important;\n\n > .","-menu-item-only-child, .","-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-top: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .","-menu-item-only-child:first-child {\n border-top: none;\n }\n\n .","-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .","-menu-item-group-title {\n padding-top: 8px;\n padding-bottom: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .","-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .","-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .","-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),a,a,n.colorText,n.colorFill,a,a,n.colorText,a,n.colorFillSecondary,a,n.borderRadius,n.colorText,n.colorFillSecondary,a,n.colorFillSecondary,n.borderRadius,a,n.colorBgLayout,n.colorText,n.colorBgLayout,n.colorText)}})),HK=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];function WK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WK(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const VK=z.memo((function(e){var t=e.items,n=e.openKeys,r=e.selectedKeys,o=e.opened,a=e.setOpened,i=e.className,s=e.headerHeight,l=void 0===s?64:s,c=gd(e,HK),u=zK(l),d=u.cx,f=u.styles;return Q.jsxs(JH,UK(UK({className:d(f.container,i),onClick:function(){a(!o)}},c),{},{children:[Q.jsx(xz,{icon:o?zd:Pd,size:"site"}),Q.jsxs(kR,{className:f.drawer,closeIcon:void 0,open:o,placement:"left",rootClassName:f.drawerRoot,styles:{body:{padding:0},header:{display:"none"}},width:"100vw",children:[Q.jsx(SI,{className:f.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),Q.jsx("div",{className:f.fillRect})]})]}))}));var GK={exports:{}};function qK(){}function KK(){}KK.resetWarningCache=qK;GK.exports=function(){function e(e,t,n,r,o,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:KK,resetWarningCache:qK};return n.PropTypes=n,n}();var XK=GK.exports;const YK=n(XK);var QK,JK,ZK=["icon","children","size"];function eX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eX(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nX=ZB((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(QK||(QK=Ud(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(JK||(JK=Ud(["\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 rX=z.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,a=gd(e,ZK),i=nX(),s=i.styles,l=i.cx;return Q.jsx(oB,tX(tX({bordered:!1,className:l(s.tag,"small"===o&&s.small)},a),{},{children:Q.jsxs(nW,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}));var oX={exports:{}},aX={},iX=z;var sX="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lX=iX.useState,cX=iX.useEffect,uX=iX.useLayoutEffect,dX=iX.useDebugValue;function fX(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sX(e,n)}catch(r){return!0}}var pX="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=lX({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return uX((function(){o.value=n,o.getSnapshot=t,fX(o)&&a({inst:o})}),[e,n,t]),cX((function(){return fX(o)&&a({inst:o}),e((function(){fX(o)&&a({inst:o})}))}),[e]),dX(n),n};aX.useSyncExternalStore=void 0!==iX.useSyncExternalStore?iX.useSyncExternalStore:pX,oX.exports=aX;var hX,gX,mX=oX.exports,bX={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},vX=["children","title","className","wrapClassName","width","onCancel","open","destroyOnClose"];function yX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yX(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xX=ZB((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{content:t(hX||(hX=Ud(["\n .","-modal-body {\n overflow: hidden;\n padding: 0 16px 16px;\n }\n .","-modal-footer {\n padding: 0 16px 16px;\n }\n .","-modal-header {\n display: flex;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n margin-bottom: 0;\n padding: 16px;\n }\n .","-modal-content {\n overflow: hidden;\n padding: 0;\n border: 1px solid ",";\n border-radius: ","px;\n }\n "])),r,r,r,r,n.colorSplit,n.borderRadiusLG),wrap:t(gX||(gX=Ud(["\n overflow: hidden auto;\n backdrop-filter: blur(2px);\n "])))}}));const SX=z.memo((function(e){var t=e.children,n=e.title,r=e.className,o=e.wrapClassName,a=e.width,i=void 0===a?700:a,s=e.onCancel,l=e.open,c=e.destroyOnClose,u=gd(e,vX),d=CB().mobile,f=xX(),p=f.styles,h=f.cx,g=f.theme;return d?Q.jsx(kR,{closeIcon:Q.jsx(xz,{icon:zd,size:{blockSize:32,fontSize:20}}),destroyOnClose:c,drawerStyle:{background:"linear-gradient(to bottom, ".concat(g.colorBgContainer,", ").concat(g.colorBgLayout,")")},height:"75vh",maskClassName:h(p.wrap,o),onClose:s,open:l,placement:"bottom",styles:wX({body:{padding:0},header:{padding:"8px 4px"}},u.styles),title:n,children:t}):Q.jsx(ex,{theme:{token:{colorBgElevated:eU(.005,g.colorBgContainer)}},children:Q.jsx(MM,wX(wX({className:h(p.content,r),closable:!0,closeIcon:Q.jsx(fz,{icon:zd,size:{fontSize:20}}),destroyOnClose:c,maskClosable:!0,onCancel:s,open:l,title:n,width:i,wrapClassName:h(p.wrap,o)},u),{},{children:t}))})}));var kX,CX,EX,OX,DX,$X,jX,PX,_X,NX,IX,TX,AX,FX,RX,MX,LX,BX,zX,HX,WX,UX=globalThis&&globalThis.__extends||(kX=function(e,t){return(kX=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}kX(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),VX=globalThis&&globalThis.__assign||function(){return VX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},VX.apply(this,arguments)},GX={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},qX={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},KX={width:"20px",height:"20px",position:"absolute"},XX={top:VX(VX({},GX),{top:"-5px"}),right:VX(VX({},qX),{left:void 0,right:"-5px"}),bottom:VX(VX({},GX),{top:void 0,bottom:"-5px"}),left:VX(VX({},qX),{left:"-5px"}),topRight:VX(VX({},KX),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:VX(VX({},KX),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:VX(VX({},KX),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:VX(VX({},KX),{left:"-10px",top:"-10px",cursor:"nw-resize"})},YX=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return UX(t,e),t.prototype.render=function(){return z.createElement("div",{className:this.props.className||"",style:VX(VX({position:"absolute",userSelect:"none"},XX[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(z.PureComponent),QX=globalThis&&globalThis.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),JX=globalThis&&globalThis.__assign||function(){return JX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JX.apply(this,arguments)},ZX={width:"auto",height:"auto"},eY=function(e,t,n){return Math.max(Math.min(e,n),t)},tY=function(e,t){return Math.round(e/t)*t},nY=function(e,t){return new RegExp(e,"i").test(t)},rY=function(e){return Boolean(e.touches&&e.touches.length)},oY=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},aY=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},iY=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},sY=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],lY="__resizable_base__",cY=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(lY):t.className+=lY,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return QX(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||ZX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return aY(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?aY(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?aY(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,a=this.state.direction,i=o&&nY("left",a),s=o&&nY("top",a);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=i?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=i?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=i?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,a=o.direction,i=o.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=i.width,f=i.height,p=c||0,h=u||0;return nY("right",a)&&(d=i.width+(e-i.x)*r/n,l&&(f=(d-h)/this.ratio+p)),nY("left",a)&&(d=i.width-(e-i.x)*r/n,l&&(f=(d-h)/this.ratio+p)),nY("bottom",a)&&(f=i.height+(t-i.y)*r/n,l&&(d=(f-p)*this.ratio+h)),nY("top",a)&&(f=i.height-(t-i.y)*r/n,l&&(d=(f-p)*this.ratio+h)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,a=o.lockAspectRatio,i=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=i||0,p=s||0;if(a){var h=(u-f)*this.ratio+p,g=(d-f)*this.ratio+p,m=(l-p)/this.ratio+f,b=(c-p)/this.ratio+f,v=Math.max(l,h),y=Math.min(c,g),w=Math.max(u,m),x=Math.min(d,b);e=eY(e,v,y),t=eY(t,w,x)}else e=eY(e,l,c),t=eY(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,a=r.top,i=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=i,this.resizableTop=a,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&rY(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var a=this.window.getComputedStyle(this.resizable);if("auto"!==a.flexBasis){var i=this.parentNode;if(i){var s=this.window.getComputedStyle(i).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:JX(JX({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&rY(e))try{e.preventDefault(),e.stopPropagation()}catch(K4){}var n=this.props,r=n.maxWidth,o=n.maxHeight,a=n.minWidth,i=n.minHeight,s=rY(e)?e.touches[0].clientX:e.clientX,l=rY(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,p=c.height,h=this.getParentSize(),g=function(e,t,n,r,o,a,i){return r=iY(r,e.width,t,n),o=iY(o,e.height,t,n),a=iY(a,e.width,t,n),i=iY(i,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===a?void 0:Number(a),minHeight:void 0===i?void 0:Number(i)}}(h,this.window.innerWidth,this.window.innerHeight,r,o,a,i);r=g.maxWidth,o=g.maxHeight,a=g.minWidth,i=g.minHeight;var m=this.calculateNewSizeFromDirection(s,l),b=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(v=oY(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(b=oY(b,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(v,b,{width:y.maxWidth,height:y.maxHeight},{width:a,height:i});if(v=w.newWidth,b=w.newHeight,this.props.grid){var x=tY(v,this.props.grid[0]),S=tY(b,this.props.grid[1]),k=this.props.snapGap||0;v=0===k||Math.abs(x-v)<=k?x:v,b=0===k||Math.abs(S-b)<=k?S:b}var C={width:v-d.width,height:b-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))v=v/h.width*100+"%";else if(f.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(p.endsWith("%"))b=b/h.height*100+"%";else if(p.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}var E={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(b,"height")};"row"===this.flexDir?E.flexBasis=E.width:"column"===this.flexDir&&(E.flexBasis=E.height),ad.flushSync((function(){t.setState(E)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var a={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,a),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:JX(JX({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,a=t.handleWrapperStyle,i=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?z.createElement(YX,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return z.createElement("div",{className:i,style:a},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==sY.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=JX(JX(JX({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return z.createElement(r,JX({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&z.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(z.PureComponent),uY=16,dY="draggable-panel",fY=ZB((function(e,t){var n=e.token,r=tz(CX||(CX=Ud(["\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n z-index: 50;\n transition: all 0.2s ",";\n }\n\n &:hover,\n &:active {\n &::before {\n background: "," !important;\n }\n }\n "])),n.motionEaseOut,n.colorPrimary),o=tz(EX||(EX=Ud(["\n position: absolute;\n z-index: 101;\n opacity: 0;\n transition: all 0.2s ",";\n\n &:hover {\n opacity: 1 !important;\n }\n\n &:active {\n opacity: 1 !important;\n }\n\n > div {\n 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),a=tz(OX||(OX=Ud(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:nz(a,tz(DX||(DX=Ud(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:nz("".concat(dY,"-bottom-handle"),tz($X||($X=Ud(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:nz(dY,tz(jX||(jX=Ud(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,dY)),fixed:tz(PX||(PX=Ud(["\n position: relative;\n "]))),fullscreen:tz(_X||(_X=Ud(["\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:tz(NX||(NX=Ud(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:nz(a,tz(IX||(IX=Ud(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:nz(tz(TX||(TX=Ud(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(dY,"-left-handle")),panel:nz("".concat(dY,"-fixed"),tz(AX||(AX=Ud(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:nz(a,tz(FX||(FX=Ud(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:nz(tz(RX||(RX=Ud(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(dY,"-right-handle")),toggleBottom:nz("".concat(dY,"-toggle"),"".concat(dY,"-toggle-bottom"),o,tz(MX||(MX=Ud(["\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,uY,40)),toggleLeft:nz("".concat(dY,"-toggle"),"".concat(dY,"-toggle-left"),o,tz(LX||(LX=Ud(["\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,uY,uY,40)),toggleRight:nz("".concat(dY,"-toggle"),"".concat(dY,"-toggle-right"),o,tz(BX||(BX=Ud(["\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,uY,uY,40)),toggleTop:nz("".concat(dY,"-toggle"),"".concat(dY,"-toggle-top"),o,tz(zX||(zX=Ud(["\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,uY,40,uY)),topFloat:nz(a,tz(HX||(HX=Ud(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:nz("".concat(dY,"-top-handle"),tz(WX||(WX=Ud(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),pY=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};function hY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hY(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mY=z.memo((function(e){var t,n,r,o,a,i,s,l,c,u,d,f=e.headerHeight,p=void 0===f?0:f,h=e.fullscreen,g=e.maxHeight,m=e.pin,b=void 0===m||m,v=e.mode,y=void 0===v?"fixed":v,w=e.children,x=e.placement,S=void 0===x?"right":x,k=e.resize,C=e.style,E=e.size,O=e.defaultSize,D=e.minWidth,$=e.minHeight,j=e.maxWidth,P=e.onSizeChange,_=e.onSizeDragging,N=e.expandable,I=void 0===N||N,T=e.expand,A=e.defaultExpand,F=void 0===A||A,R=e.onExpandChange,M=e.className,L=e.showHandlerWhenUnexpand,B=e.destroyOnClose,H=e.hanlderStyle,W=e.classNames,U=void 0===W?{}:W,V=z.useRef(),G=(t=V,o=(r=n||{}).onEnter,a=r.onLeave,i=r.onChange,s=oU(_U(!1),2),l=s[0],c=s[1],u=c.setTrue,d=c.setFalse,_K("mouseenter",(function(){null==o||o(),u(),null==i||i(!0)}),{target:t}),_K("mouseleave",(function(){null==a||a(),d(),null==i||i(!1)}),{target:t}),l),q="top"===S||"bottom"===S,K=fY(p),X=K.styles,Y=K.cx,J=qh(FB(F,{onChange:R,value:T}),2),Z=J[0],ee=J[1];z.useEffect((function(){b||(G&&!Z?ee(!0):!G&&Z&&ee(!1))}),[b,G,Z]);var te=qh(z.useState(!0),2),ne=te[0],re=te[1],oe=qh(z.useState(!1),2),ae=oe[0],ie=oe[1],se=!1!==k&&Z,le=z.useMemo((function(){return se?hd({},pY(S),X["".concat(pY(S),"Handle")]):{}}),[se,S]),ce=gY(hd({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},pY(S),!0),k),ue=z.useMemo((function(){return gY(q?{height:180,width:"100%"}:{height:"100%",width:280},O)}),[q]),de=Z?{defaultSize:ue,maxHeight:"number"==typeof g?Math.max(g,0):g,maxWidth:"number"==typeof j?Math.max(j,0):j,minHeight:"number"==typeof $?Math.max($,0):$,minWidth:"number"==typeof D?Math.max(D,0):D,size:E}:q?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},fe=z.useMemo((function(){switch(S){case"top":return{Arrow:wd,className:"Bottom"};case"bottom":return{Arrow:kd,className:"Top"};case"right":return{Arrow:xd,className:"Left"};case"left":return{Arrow:Sd,className:"Right"}}}),[X,S]),pe=fe.Arrow,he=fe.className,ge=Q.jsx(JH,{className:Y(X["toggle".concat(he)],U.handle),style:{opacity:Z?b?void 0:0:L?1:0},children:Q.jsx(JH,{onClick:function(){ee(!Z)},style:H,children:Q.jsx("div",{className:X.handlerIcon,style:{transform:"rotate(".concat(Z?180:0,"deg)")},children:Q.jsx(pe,{size:16,strokeWidth:1.5})})})}),me=Q.jsx(cY,gY(gY({},de),{},{className:Y(X.panel,U.content),enable:se?ce:void 0,handleClasses:le,onResize:function(e,t,n,r){null==_||_(r,{height:n.style.height,width:n.style.width})},onResizeStart:function(){ie(!0),re(!1)},onResizeStop:function(e,t,n,r){ie(!1),re(!0),null==P||P(r,{height:n.style.height,width:n.style.width})},style:gY({transition:ae?"unset":void 0},C),children:w}));return h?Q.jsx("div",{className:Y(X.fullscreen,M),children:w}):Q.jsxs("aside",{className:Y(X.container,X["fixed"===y?"fixed":"".concat(S,"Float")],M),ref:V,style:Z?hd({},"border".concat(he,"Width"),1):{},children:[I&&ne&&ge,B?Z&&me:me]})}));var bY,vY,yY,wY,xY=ZB((function(e){var t=e.css,n=e.token;return{body:t(bY||(bY=Ud(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(vY||(vY=Ud(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(yY||(yY=Ud(["\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(wY||(wY=Ud(["\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)}})),SY=["className","children"];function kY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kY(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const EY=z.memo((function(e){var t=e.className,n=e.children,r=gd(e,SY),o=xY(),a=o.cx,i=o.styles;return Q.jsx("div",CY(CY({className:a(i.body,t)},r),{},{children:n}))}));var OY=["className","children"];function DY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DY(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jY=z.memo((function(e){var t=e.className,n=e.children,r=gd(e,OY),o=xY(),a=o.cx,i=o.styles;return Q.jsx("div",$Y($Y({className:a(i.container,t)},r),{},{children:n}))}));var PY=["className","children"];function _Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_Y(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const IY=z.memo((function(e){var t=e.className,n=e.children,r=gd(e,PY),o=xY(),a=o.cx,i=o.styles;return Q.jsx("div",NY(NY({className:a(i.footer,t)},r),{},{children:n}))}));var TY=["pin","setPin","className","setExpand","title","position"];function AY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AY(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const RY=z.memo((function(e){var t=e.pin,n=e.setPin,r=e.className,o=e.setExpand,a=e.title,i=e.position,s=void 0===i?"left":i,l=gd(e,TY),c=xY(),u=c.cx,d=c.styles,f=Q.jsx(xz,{icon:Td,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),p=Q.jsx(xz,{active:t,icon:t?Rd:Fd,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return Q.jsxs("div",FY(FY({className:u(d.header,r)},l),{},{children:["left"===s?f:p,a,"left"===s?p:f]}))}));var MY=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;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=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!=o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n};const LY=n(MY);const BY=z.memo((function(e){var t=e.url,n=z.useRef(!1);return z.useEffect((function(){if(!n.current){n.current=!0;var e=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}(t);document.head.append(e)}}),[]),null}));var zY,HY,WY=function(e){var t=e.prefixCls,n=e.icon,r=e.title,o=e.items,a=void 0===o?[]:o,i=e.style,s=e.className;return H.createElement("div",{className:Dm("".concat(t,"-column"),s),style:i},(r||n)&&H.createElement("h2",null,n&&H.createElement("span",{className:"".concat(t,"-column-icon")},n),r),a.map((function(e,n){var r=e.LinkComponent||"a";return H.createElement("div",{className:Dm("".concat(t,"-item"),e.className),style:e.style,key:n},H.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&&H.createElement("span",{className:"".concat(t,"-item-icon")},e.icon),e.title),e.description&&H.createElement(H.Fragment,null,H.createElement("span",{className:"".concat(t,"-item-separator")},"-"),H.createElement("span",{className:"".concat(t,"-item-description")},e.description)))})))},UY=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],VY=function(e){var t=e.prefixCls,n=void 0===t?"rc-footer":t,r=e.className,o=e.style,a=e.bottom,i=e.columns,s=e.maxColumnsPerRow,l=e.backgroundColor,c=e.columnLayout,u=e.theme,d=void 0===u?"dark":u,f=gd(e,UY),p=Dm("".concat(n),r,hd({},"".concat(n,"-").concat(d),!!d)),h="number"==typeof s&&s>0;return H.createElement("footer",hh(hh({},f),{},{className:p,style:hh(hh({},o),{},{backgroundColor:l})}),H.createElement("section",{className:"".concat(n,"-container")},i&&i.length>0&&H.createElement("section",{className:"".concat(n,"-columns"),style:{justifyContent:c,flexWrap:h?"wrap":void 0}},i.map((function(e,t){var r=e.title,o=e.icon,a=e.style,i=e.className,l=e.items,c=void 0===l?[]:l,u=hh({},a);return h&&(u.flex="0 0 ".concat(100/(s+1)+.1,"%")),H.createElement(WY,{key:t,prefixCls:n,title:r,icon:o,items:c,style:u,className:i})})))),a&&H.createElement("section",{className:"".concat(n,"-bottom")},H.createElement("div",{className:"".concat(n,"-bottom-container")},a)))},GY=ZB((function(e,t){var n=e.css,r=e.responsive,o=e.token,a=t.isEmpty,i=t.contentMaxWidth,s="rc-footer";return{container:n(zY||(zY=Ud(["\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(HY||(HY=Ud(["\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,i,a?"0":"60px 0 20px",o.colorText,o.colorTextDescription,i,r.mobile,s)}}));const qY=z.memo((function(e){var t=e.columns,n=e.bottom,r=e.theme,o=e.contentMaxWidth,a=void 0===o?960:o,i=!t||0===(null==t?void 0:t.length),s=GY({contentMaxWidth:a,isEmpty:i}).styles;return Q.jsx("section",{className:s.container,children:Q.jsx(VY,{bottom:n,className:s.footer,columns:t,theme:r})})}));var KY,XY,YY,QY,JY,ZY,eQ,tQ,nQ,rQ,oQ,aQ,iQ,sQ=ZB((function(e,t){var n,r=e.css,o=e.cx,a=e.token,i=e.isDarkMode,s=e.responsive,l=e.prefixCls;return{footer:r(KY||(KY=Ud(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(XY||(XY=Ud(["\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 .","-tag {\n font-family: ",";\n }\n "])),a.colorTextDescription,l,a.fontFamilyCode),group:o(i&&r(YY||(YY=Ud(["\n .","-collapse-content {\n background: transparent;\n }\n\n .","-collapse-header {\n background: ",";\n }\n "])),l,l,a.colorFillTertiary),r(QY||(QY=Ud(["\n .","-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content-box {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n }\n\n .","-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])),l,l,l)),icon:r(JY||(JY=Ud(["\n transition: all 100ms ",";\n "])),a.motionEaseOut),item:r(ZY||(ZY=Ud(["\n padding: 16px 0;\n\n .","-row {\n justify-content: space-between;\n\n > div {\n flex: unset !important;\n flex-grow: unset !important;\n }\n }\n\n .","-form-item-required::before {\n align-self: flex-start;\n }\n\n ","\n\n "," {\n padding: 16px 0;\n\n ","\n }\n "])),l,l,t&&r(eQ||(eQ=Ud(["\n .","-form-item-control {\n width: ",";\n }\n "])),l,(n=t,"number"==typeof n||Tz(n)&&"[object Number]"==Iz(n)?"".concat(t,"px"):t)),s.mobile,t?r(tQ||(tQ=Ud(["\n .","-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .","-form-item-control {\n flex: 1;\n width: 100%;\n }\n "])),l,l):r(nQ||(nQ=Ud(["\n .","-row {\n flex-wrap: wrap;\n gap: 4px;\n }\n "])),l)),itemNoDivider:r(rQ||(rQ=Ud(["\n &:not(:first-child) {\n padding-top: 0;\n }\n "]))),mobileGroupBody:r(oQ||(oQ=Ud(["\n padding: 0 16px;\n background: ",";\n "])),a.colorBgContainer),mobileGroupHeader:r(aQ||(aQ=Ud(["\n padding: 16px;\n background: ",";\n "])),a.colorBgLayout),title:r(iQ||(iQ=Ud(["\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\n "," {\n font-size: 14px;\n font-weight: 400;\n opacity: 0.5;\n }\n "])),a.colorPrimary,s.mobile)}})),lQ=["className","children"];function cQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cQ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const dQ=z.memo((function(e){var t=e.className,n=e.children,r=gd(e,lQ),o=sQ(),a=o.cx,i=o.styles;return Q.jsx("div",uQ(uQ({className:a(i.footer,t)},r),{},{children:n}))}));var fQ=["className","icon","title","children","extra"];function pQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var hQ=z.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,a=e.extra,i=gd(e,fQ),s=CB().mobile,l=sQ(),c=l.cx,u=l.styles,d=Q.jsxs("div",{className:u.title,children:[n&&Q.jsx(fz,{icon:n}),r]});return s?Q.jsxs(nW,{className:t,children:[Q.jsxs(nW,{className:u.mobileGroupHeader,horizontal:!0,justify:"space-between",children:[d,a]}),Q.jsx("div",{className:u.mobileGroupBody,children:o})]}):Q.jsx(zA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pQ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:c(u.group,t),defaultActiveKey:[1],expandIcon:function(e){var t=e.isActive;return Q.jsx(fz,{className:u.icon,icon:wd,size:{fontSize:16},style:t?{}:{rotate:"-90deg"}})},items:[{children:o,extra:a,key:1,label:d}]},i),1)}));const gQ=hQ;var mQ=["style"];function bQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bQ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yQ=z.memo((function(e){var t=e.style,n=gd(e,mQ);return Q.jsx(VA,vQ({style:vQ({margin:0,opacity:.5},t)},n))}));const wQ=z.memo((function(e){var t=e.className,n=e.tag,r=e.title,o=e.desc,a=e.avatar,i=sQ(),s=i.cx,l=i.styles,c=Q.jsxs("div",{className:s(l.formTitle,t),children:[Q.jsxs(nW,{align:"center",direction:"horizontal",gap:8,children:[r,n&&Q.jsx(rX,{children:n})]}),o&&Q.jsx("small",{children:o})]});return a?Q.jsxs(nW,{align:"center",gap:8,horizontal:!0,children:[a,c]}):c}));var xQ=["desc","tag","minWidth","avatar","className","label","children","divider"];function SQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SQ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var CQ=CM.Item;const EQ=z.memo((function(e){var t=e.desc,n=e.tag,r=e.minWidth,o=e.avatar,a=e.className,i=e.label,s=e.children,l=e.divider,c=gd(e,xQ),u=sQ(r),d=u.cx,f=u.styles;return Q.jsxs(Q.Fragment,{children:[l&&Q.jsx(yQ,{}),Q.jsx(CQ,kQ(kQ({className:d(f.item,!l&&f.itemNoDivider,a),label:Q.jsx(wQ,{avatar:o,desc:t,tag:n,title:i})},c),{},{children:s}))]})}));var OQ,DQ,$Q=ZB((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=e.responsive;return{footer:t(OQ||(OQ=Ud(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),form:t(DQ||(DQ=Ud(["\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n "," {\n gap: 0;\n }\n\n .","-form-item {\n margin: 0 !important;\n }\n\n .","-form-item .","-form-item-label > label {\n height: unset;\n }\n\n .","-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .","-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .","-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .","-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),o.mobile,r,r,r,r,r,r,r,n.borderRadius)}})),jQ=["className","itemMinWidth","footer","form","items","children"];function PQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PQ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NQ=z.forwardRef((function(e,t){var n=e.className,r=e.itemMinWidth,o=e.footer,a=e.form,i=e.items,s=e.children,l=gd(e,jQ),c=$Q(),u=c.cx,d=c.styles;return Q.jsxs(CM,_Q(_Q({className:u(d.form,n),colon:!1,form:a,layout:"horizontal",ref:t},l),{},{children:[null==i?void 0:i.map((function(e,t){return Q.jsx(gQ,{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 Q.jsx(EQ,_Q({divider:0!==t,minWidth:r},e),t)}))},t)})),s,o&&Q.jsx(dQ,{children:o})]}))}));NQ.Item=EQ,NQ.Group=gQ;const IQ=NQ;var TQ,AQ={};function FQ(){return TQ||(TQ=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const t=window,n=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;let a=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(n&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=o.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&o.set(t,e))}return e}toString(){return this.cssText}};const i=n?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new a("string"==typeof e?e:e+"",void 0,r))(t)})(e):e
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/;var s;const l=window,c=l.trustedTypes,u=c?c.emptyScript:"",d=l.reactiveElementPolyfillSupport,f={toAttribute(e,t){switch(t){case Boolean:e=e?u: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}},p=(e,t)=>t!==e&&(t==t||e==e),h={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:p},g="finalized";let m=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=h){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)||h}static finalize(){if(this.hasOwnProperty(g))return!1;this[g]=!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(i(e))}else void 0!==e&&t.push(i(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 r=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,r)=>{n?e.adoptedStyleSheets=r.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):r.forEach((n=>{const r=document.createElement("style"),o=t.litNonce;void 0!==o&&r.setAttribute("nonce",o),r.textContent=n.cssText,e.appendChild(r)}))})(r,this.constructor.elementStyles),r}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=h){var r;const o=this.constructor._$Ep(e,n);if(void 0!==o&&!0===n.reflect){const a=(void 0!==(null===(r=n.converter)||void 0===r?void 0:r.toAttribute)?n.converter:f).toAttribute(t,n.type);this._$El=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),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),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:f;this._$El=o,this[o]=a.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||p)(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(K4){Promise.reject(K4)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,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(G4){throw t=!1,this._$Ek(),G4}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){}};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var b;m[g]=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:m}),(null!==(s=l.reactiveElementVersions)&&void 0!==s?s:l.reactiveElementVersions=[]).push("1.6.2");const v=window,y=v.trustedTypes,w=y?y.createPolicy("lit-html",{createHTML:e=>e}):void 0,x="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,k="?"+S,C=`<${k}>`,E=document,O=()=>E.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,$=Array.isArray,j="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,N=/>/g,I=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,A=/"/g,F=/^(?:script|style|textarea|title)$/i,R=(H=1,(e,...t)=>({_$litType$:H,strings:e,values:t})),M=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),B=new WeakMap,z=E.createTreeWalker(E,129,null,!1);var H;class W{constructor({strings:e,_$litType$:t},n){let r;this.parts=[];let o=0,a=0;const i=e.length-1,s=this.parts,[l,c]=((e,t)=>{const n=e.length-1,r=[];let o,a=2===t?"<svg>":"",i=P;for(let l=0;l<n;l++){const t=e[l];let n,s,c=-1,u=0;for(;u<t.length&&(i.lastIndex=u,s=i.exec(t),null!==s);)u=i.lastIndex,i===P?"!--"===s[1]?i=_:void 0!==s[1]?i=N:void 0!==s[2]?(F.test(s[2])&&(o=RegExp("</"+s[2],"g")),i=I):void 0!==s[3]&&(i=I):i===I?">"===s[0]?(i=o??P,c=-1):void 0===s[1]?c=-2:(c=i.lastIndex-s[2].length,n=s[1],i=void 0===s[3]?I:'"'===s[3]?A:T):i===A||i===T?i=I:i===_||i===N?i=P:(i=I,o=void 0);const d=i===I&&e[l+1].startsWith("/>")?" ":"";a+=i===P?t+C:c>=0?(r.push(n),t.slice(0,c)+x+t.slice(c)+S+d):t+S+(-2===c?(r.push(void 0),l):d)}const s=a+(e[n]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(s):s,r]})(e,t);if(this.el=W.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.length<i;){if(1===r.nodeType){if(r.hasAttributes()){const e=[];for(const t of r.getAttributeNames())if(t.endsWith(x)||t.startsWith(S)){const n=c[a++];if(e.push(t),void 0!==n){const e=r.getAttribute(n.toLowerCase()+x).split(S),t=/([.?@])?(.*)/.exec(n);s.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?K:"?"===t[1]?Y:"@"===t[1]?Q:q})}else s.push({type:6,index:o})}for(const t of e)r.removeAttribute(t)}if(F.test(r.tagName)){const e=r.textContent.split(S),t=e.length-1;if(t>0){r.textContent=y?y.emptyScript:"";for(let n=0;n<t;n++)r.append(e[n],O()),z.nextNode(),s.push({type:2,index:++o});r.append(e[t],O())}}}else if(8===r.nodeType)if(r.data===k)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=r.data.indexOf(S,e+1));)s.push({type:7,index:o}),e+=S.length-1}o++}}static createElement(e,t){const n=E.createElement("template");return n.innerHTML=e,n}}function U(e,t,n=e,r){var o,a,i,s;if(t===M)return t;let l=void 0!==r?null===(o=n._$Co)||void 0===o?void 0:o[r]:n._$Cl;const c=D(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(a=null==l?void 0:l._$AO)||void 0===a||a.call(l,!1),void 0===c?l=void 0:(l=new c(e),l._$AT(e,n,r)),void 0!==r?(null!==(i=(s=n)._$Co)&&void 0!==i?i:s._$Co=[])[r]=l:n._$Cl=l),void 0!==l&&(t=U(e,l._$AS(e,t.values),l,r)),t}let V=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:r}=this._$AD,o=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:E).importNode(n,!0);z.currentNode=o;let a=z.nextNode(),i=0,s=0,l=r[0];for(;void 0!==l;){if(i===l.index){let t;2===l.type?t=new G(a,a.nextSibling,this,e):1===l.type?t=new l.ctor(a,l.name,l.strings,this,e):6===l.type&&(t=new J(a,this,e)),this._$AV.push(t),l=r[++s]}i!==(null==l?void 0:l.index)&&(a=z.nextNode(),i++)}return z.currentNode=E,o}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}};class G{constructor(e,t,n,r){var o;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=U(this,e,t),D(e)?e===L||null==e||""===e?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==M&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>$(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!==L&&D(this._$AH)?this._$AA.nextSibling.data=e:this.$(E.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=W.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 V(o,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=B.get(e.strings);return void 0===t&&B.set(e.strings,t=new W(e)),t}T(e){$(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 G(this.k(O()),this.k(O()),this,this.options)):n=t[r],n._$AI(o),r++;r<t.length&&(this._$AR(n&&n._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class q{constructor(e,t,n,r,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,r){const o=this.strings;let a=!1;if(void 0===o)e=U(this,e,t,0),a=!D(e)||e!==this._$AH&&e!==M,a&&(this._$AH=e);else{const r=e;let i,s;for(e=o[0],i=0;i<o.length-1;i++)s=U(this,r[n+i],t,i),s===M&&(s=this._$AH[i]),a||(a=!D(s)||s!==this._$AH[i]),s===L?e=L:e!==L&&(e+=(s??"")+o[i+1]),this._$AH[i]=s}a&&!r&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class K extends q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}}const X=y?y.emptyScript:"";class Y extends q{constructor(){super(...arguments),this.type=4}j(e){e&&e!==L?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class Q extends q{constructor(e,t,n,r,o){super(e,t,n,r,o),this.type=5}_$AI(e,t=this){var n;if((e=null!==(n=U(this,e,t,0))&&void 0!==n?n:L)===M)return;const r=this._$AH,o=e===L&&r!==L||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==L&&(r===L||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}class J{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){U(this,e)}}const Z=v.litHtmlPolyfillSupport;null==Z||Z(W,G),(null!==(b=v.litHtmlVersions)&&void 0!==b?b:v.litHtmlVersions=[]).push("2.7.4");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var ee,te;let ne=class extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,n)=>{var r,o;const a=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t;let i=a._$litPart$;if(void 0===i){const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;a._$litPart$=i=new G(t.insertBefore(O(),e),e,void 0,n??{})}return i._$AI(e),i})(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 M}};ne.finalized=!0,ne._$litElement$=!0,null===(ee=globalThis.litElementHydrateSupport)||void 0===ee||ee.call(globalThis,{LitElement:ne});const re=globalThis.litElementPolyfillSupport;null==re||re({LitElement:ne}),(null!==(te=globalThis.litElementVersions)&&void 0!==te?te:globalThis.litElementVersions=[]).push("3.3.2");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const oe=(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)}};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function ae(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):oe(e,t)}
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/var ie;null===(ie=window.HTMLSlotElement)||void 0===ie||ie.prototype.assignedElements;
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const se=2;
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/let le=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)}};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const ce=(e,t)=>{var n,r;const o=e._$AN;if(void 0===o)return!1;for(const a of o)null===(r=(n=a)._$AO)||void 0===r||r.call(n,t,!1),ce(a,t);return!0},ue=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))},de=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),he(t)}};function fe(e){void 0!==this._$AN?(ue(this),this._$AM=e,de(this)):this._$AM=e}function pe(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 a=n;a<r.length;a++)ce(r[a],!1),ue(r[a]);else null!=r&&(ce(r,!1),ue(r));else ce(this,e)}const he=e=>{var t,n,r,o;e.type==se&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=pe),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=fe))};class ge extends le{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),de(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&&(ce(this,e),ue(this))}setValue(e){if((e=>void 0===e.strings)(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/class me{}const be=new WeakMap,ve=(e=>(...t)=>({_$litDirective$:e,values:t}))(class extends ge{render(e){return L}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)),L}ot(e){var t;if("function"==typeof this.G){const n=null!==(t=this.ct)&&void 0!==t?t:globalThis;let r=be.get(n);void 0===r&&(r=new WeakMap,be.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=be.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)}});var ye=Object.defineProperty,we=Object.getOwnPropertyDescriptor,xe=(e,t,n,r)=>{for(var o,a=r>1?void 0:r?we(t,n):t,i=e.length-1;i>=0;i--)(o=e[i])&&(a=(r?o(t,n,a):o(a))||a);return r&&a&&ye(t,n,a),a};e.GiscusWidget=class extends ne{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 me,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 e=location.href,t=new URL(e),n=localStorage.getItem(this.GISCUS_SESSION_KEY),r=t.searchParams.get("giscus")||"";if(this.__session="",r)return localStorage.setItem(this.GISCUS_SESSION_KEY,JSON.stringify(r)),this.__session=r,t.searchParams.delete("giscus"),t.hash="",void history.replaceState(void 0,document.title,t.toString());if(n)try{this.__session=JSON.parse(n)}catch(o){localStorage.removeItem(this.GISCUS_SESSION_KEY),console.warn(`${this._formatError(null==o?void 0:o.message)} Session has been cleared.`)}}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 console.log("[giscus] User has logged out. Session has been cleared."),void this.signOut();if(!t.giscus.error)return;const n=t.giscus.error;if(n.includes("Bad credentials")||n.includes("Invalid state value")||n.includes("State has expired")){if(null!==localStorage.getItem(this.GISCUS_SESSION_KEY))return console.warn(`${this._formatError(n)} Session has been cleared.`),void this.signOut();console.error(`${this._formatError(n)} No session is stored initially. ${this.ERROR_SUGGESTION}`)}n.includes("Discussion not found")?console.warn(`[giscus] ${n}. A new discussion will be created if a comment/reaction is submitted.`):console.error(`${this._formatError(n)} ${this.ERROR_SUGGESTION}`)}sendMessage(e){!this.iframeRef||!this.iframeRef.contentWindow||!this.hasLoaded||(console.log({host:this.host,_host:this._host}),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=t?`meta[property='og:${e}'],`:"",r=document.querySelector(n+`meta[name='${e}']`);return r?r.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 R`
<iframe
title="Comments"
scrolling="no"
class="loading"
${ve(this._iframeRef)}
src=${this.getIframeSrc()}
loading=${this.loading}
allow="clipboard-write"
part="iframe"
></iframe>
`}},e.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 a(n,e,r)})`
:host,
iframe {
width: 100%;
border: none;
min-height: 150px;
color-scheme: light dark;
}
iframe.loading {
opacity: 0;
}
`,xe([ae({reflect:!0})],e.GiscusWidget.prototype,"host",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"repo",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"repoId",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"category",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"categoryId",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"mapping",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"term",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"strict",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"reactionsEnabled",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"emitMetadata",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"inputPosition",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"theme",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"lang",2),xe([ae({reflect:!0})],e.GiscusWidget.prototype,"loading",2),e.GiscusWidget=xe([function(e){return customElements.get(e)?e=>e:(e=>t=>{return"function"==typeof t?(n=e,r=t,customElements.define(n,r),r):((e,t)=>{const{kind:n,elements:r}=t;return{kind:n,elements:r,finisher(t){customElements.define(e,t)}}})(e,t);var n,r})(e)}("giscus-widget")],e.GiscusWidget)}(AQ)),AQ}const RQ=Q,MQ=z;var LQ=function({id:e,host:t,repo:n,repoId:r,category:o,categoryId:a,mapping:i,term:s,strict:l,reactionsEnabled:c,emitMetadata:u,inputPosition:d,theme:f,lang:p,loading:h}){const[g,m]=MQ.useState(!1);return MQ.useEffect((()=>{g||(Promise.resolve().then((()=>FQ())),m(!0))}),[]),g?RQ.jsx("giscus-widget",{id:e,host:t,repo:n,repoid:r,category:o,categoryid:a,mapping:i,term:s,strict:l,reactionsenabled:c,emitmetadata:u,inputposition:d,theme:f,lang:p,loading:h}):null};const BQ=n(LQ);var zQ,HQ=function(e){return["zh_CN","zh_TW"].includes(e)?e.replace("_","-"):"zh_HK"===e?"zh-TW":e.split("_")[0]},WQ=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"];function UQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UQ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const GQ=z.memo((function(e){var t=e.style,n=e.className,r=e.reactionsEnabled,o=void 0===r?"1":r,a=e.mapping,i=void 0===a?"title":a,s=e.lang,l=void 0===s?"en_US":s,c=e.inputPosition,u=void 0===c?"top":c,d=e.id,f=void 0===d?"giscus":d,p=e.loading,h=void 0===p?"lazy":p,g=e.emitMetadata,m=void 0===g?"0":g,b=gd(e,WQ),v=iz(),y=mB().isDarkMode,w=z.useMemo((function(){return btoa(function(e,t){var n=t?"dark":"light",r=bX.gray[n][11],o=bX.gray[n][10],a=bX.gray[n][7],i=t?bX.red[n][9]:bX.volcano[n][9],s=t?bX.gold[n][9]:bX.orange[n][9],l=t?bX.lime[n][9]:bX.green[n][9],c=t?bX.blue[n][9]:bX.geekblue[n][9],u=t?"https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg":"https://github.com/images/modules/pulls/progressive-disclosure-line.svg",d=t?"https://github.githubassets.com/images/mona-loading-dark.gif":"https://github.githubassets.com/images/mona-loading-default.gif";return tz(zQ||(zQ=Ud(["\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 "])),a,l,s,i,c,c,l,i,i,o,HW(i,.4),o,HW(i,.6),l,s,c,o,o,o,HW(i,.2),l,HW(l,.2),s,HW(i,.2),o,HW(c,.2),s,o,a,c,e.colorText,e.colorFillTertiary,e.colorBorderSecondary,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,rU(e.colorPrimary),e.colorPrimary,e.colorPrimaryBorder,e.colorPrimaryHover,e.colorPrimaryBorderHover,e.colorPrimaryActive,HW(rU(e.colorPrimary),.5),HW(e.colorPrimary,.5),HW(e.colorPrimaryBorder,.5),e.colorFillQuaternary,e.colorFillTertiary,e.colorBorder,e.colorText,e.colorTextSecondary,e.colorTextQuaternary,e.colorBgElevated,e.colorFillQuaternary,e.colorBorder,e.colorBorderSecondary,e.colorFillQuaternary,e.colorFillTertiary,e.colorInfo,e.colorInfoBorderHover,e.colorInfoBorder,e.colorInfoBg,e.colorSuccess,e.colorWarning,e.colorWarningBorder,e.colorWarningBg,e.colorError,e.colorErrorBorder,e.colorErrorBg,e.colorBgContainer,e.colorInfoBg,e.colorFillSecondary,e.colorInfoBgHover,r,u,e.colorInfoBorderHover,e.borderRadius,d)}(v,y).styles)}),[y,v]);return Q.jsx("div",{className:n,style:t,children:Q.jsx(BQ,VQ({emitMetadata:m,id:f,inputPosition:u,lang:HQ(l),loading:h,mapping:i,reactionsEnabled:o,theme:"data:text/css;base64,".concat(w)},b))})}));var qQ,KQ,XQ=ZB((function(e,t){var n,r=e.css,o=e.token,a=e.isDarkMode,i=e.stylish;switch(t){case"large":n=o.borderRadiusLG;break;case"middle":default:n=o.borderRadius;break;case"small":n=o.borderRadiusSM}return{button:r(qQ||(qQ=Ud(["\n position: relative;\n z-index: 1;\n ","\n border: none;\n border-radius: ","px !important;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: -1;\n top: 1px;\n left: 1px;\n\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n\n background: ",";\n border-radius: ","px;\n }\n "])),i.gradientAnimation,n,o.colorBgLayout,n-1),glow:r(KQ||(KQ=Ud(["\n ","\n position: absolute;\n z-index: -2;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: ",";\n filter: blur(","em);\n border-radius: inherit;\n "])),i.gradientAnimation,a?.5:.3,a?1.5:1)}})),YQ=["glow","children","className","size"];function QQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QQ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ZQ=z.memo((function(e){var t=e.glow,n=void 0===t||t,r=e.children,o=e.className,a=e.size,i=void 0===a?"large":a,s=gd(e,YQ),l=XQ(i),c=l.styles,u=l.cx;return Q.jsxs(cC,JQ(JQ({className:u(c.button,o),size:i},s),{},{children:[n&&Q.jsx("div",{className:c.glow}),r]}))}));var eJ,tJ,nJ,rJ,oJ=ZB((function(e){var t=e.css,n=e.responsive,r=e.token,o=e.cx;return{content:t(eJ||(eJ=Ud(["\n height: 64px;\n padding: 0 24px;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n "," {\n padding: 0 12px;\n }\n "])),HW(r.colorBgLayout,.4),r.colorSplit,n.mobile),header:o(t(tJ||(tJ=Ud(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:t(nJ||(nJ=Ud(["\n z-index: 10;\n "]))),right:t(rJ||(rJ=Ud(["\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)}})),aJ=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"];function iJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iJ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const lJ=z.memo((function(e){var t=e.actionsClassName,n=e.navClassName,r=e.logoClassName,o=e.nav,a=e.logo,i=e.actions,s=e.actionsStyle,l=e.logoStyle,c=e.navStyle,u=e.className,d=gd(e,aJ),f=CB().mobile,p=oJ(),h=p.cx,g=p.styles;return Q.jsx("section",sJ(sJ({className:h(g.header,u)},d),{},{children:Q.jsx(nW,{align:"center",className:g.content,distribution:"space-between",horizontal:!0,width:"auto",children:f?Q.jsxs(Q.Fragment,{children:[Q.jsx(nW,{className:t,style:sJ({flex:0},c),children:o}),Q.jsx(nW,{className:h(g.left,r),horizontal:!0,style:sJ({flex:1,overflow:"hidden"},l),children:a}),Q.jsx(nW,{className:t,style:sJ({flex:0},s),children:i})]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(nW,{className:h(g.left,r),horizontal:!0,style:sJ({flex:0},l),children:a}),Q.jsx(nW,{className:n,style:sJ({flex:1,marginLeft:48,overflow:"hidden"},c),children:o}),Q.jsxs("section",{className:h(g.right,t),style:s,children:[Q.jsx("div",{}),Q.jsx(nW,{align:"center",gap:8,horizontal:!0,children:i})]})]})})}))}));function cJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var uJ=bd("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 dJ=function(e){return Q.jsx(uJ,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cJ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({style:{overflow:"visible"}},e))};var fJ,pJ,hJ,gJ,mJ,bJ,vJ,yJ,wJ,xJ,SJ=ZB((function(e,t){var n=e.css,r=e.stylish,o=e.responsive,a=n(fJ||(fJ=Ud(["\n pointer-events: none;\n content: '';\n user-select: none;\n\n position: absolute;\n z-index: -1;\n inset: -1px 0 ",";\n "])),o.mobile?"-25%":"-50%");return{app:n(pJ||(pJ=Ud(["\n overflow-x: hidden;\n overflow-y: auto;\n height: 100vh;\n "]))),aside:n(hJ||(hJ=Ud(["\n position: sticky;\n z-index: 2;\n height: 100%;\n "]))),asideInner:n(gJ||(gJ=Ud(["\n overflow-x: hidden;\n overflow-y: auto;\n width: 100%;\n height: calc(100vh - ","px);\n "])),t),content:n(mJ||(mJ=Ud(["\n position: relative;\n flex: 1;\n max-width: 100%;\n "]))),footer:n(bJ||(bJ=Ud(["\n position: relative;\n max-width: 100%;\n "]))),glass:n(vJ||(vJ=Ud(["\n z-index: 0;\n\n &::before {\n ",";\n ",";\n mask-image: linear-gradient(to bottom, black ","px, transparent);\n }\n\n &::after {\n ",";\n }\n "])),r.blur,a,t,a),header:n(yJ||(yJ=Ud(["\n position: sticky;\n z-index: 999;\n top: 0;\n max-width: 100%;\n "]))),main:n(wJ||(wJ=Ud(["\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n "]))),toc:n(xJ||(xJ=Ud([""])))}})),kJ=["headerHeight","children","className","style"],CJ=["children","className"],EJ=["headerHeight","children","className","style"],OJ=["headerHeight","children","className"];function DJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DJ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jJ=z.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,a=gd(e,kJ),i=SJ(t),s=i.cx,l=i.styles;return Q.jsxs("header",$J($J({className:s(l.header,r),style:$J({height:t},o)},a),{},{children:[Q.jsx("div",{className:l.glass}),n]}))})),PJ=z.memo((function(e){var t=e.children,n=e.className,r=gd(e,CJ),o=SJ(),a=o.cx,i=o.styles;return Q.jsx("main",$J($J({className:a(i.main,n)},r),{},{children:t}))})),_J=z.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,a=gd(e,EJ),i=SJ(t),s=i.cx,l=i.styles;return Q.jsx("aside",$J($J({className:s(l.aside,r),style:$J({top:t},o)},a),{},{children:n}))})),NJ=z.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=gd(e,OJ),a=SJ(t),i=a.cx,s=a.styles;return Q.jsx("div",$J($J({className:i(s.asideInner,r)},o),{},{children:n}))}));function IJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IJ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const AJ=z.memo((function(e){var t=Object.assign({},(VL(e),e));return Q.jsx("svg",TJ(TJ({fill:"none",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},t),{},{children:Q.jsx("path",{d:"M16.88 3.549L7.12 20.451"})}))}));function FJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FJ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const MJ=z.memo((function(e){var t=Object.assign({},(VL(e),e));return Q.jsxs("svg",RJ(RJ({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 320 320"},t),{},{children:[Q.jsx("path",{d:"M25.401 140.14c3.71-5.453 8.81-9.628 15.313-12.838A23.89 23.89 0 0055 132.015a23.91 23.91 0 0016.053-6.159 48.924 48.924 0 0010.603-.294 56.54 56.54 0 006.809 6.555c-8.655 1.087-18.202 2.821-29.05 5.494-11.996 2.956-17.707 7.005-20.785 11.53-3.227 4.743-4.63 11.518-4.63 22.374 0 70.838 55.45 121.5 126 121.5 70.564 0 125.889-49.642 126-120.286-.751-13.724-2.613-20.518-5.764-24.763-3.023-4.073-8.262-7.153-19.898-10.42-9.615-2.7-20.317-4.252-31.506-5.103a48.977 48.977 0 006.306-6.763c2.995-1.106 6.948-.684 12.998.332l.321.054c2.498.421 5.641.95 8.543.95 5.214 0 10.234-.927 14.879-2.626 8.925 3.124 16.138 7.213 21.205 14.041 6.227 8.389 8.147 19.524 8.905 33.656l.011.214v.214c0 80.552-63.518 136.5-142 136.5-78.567 0-142-57.028-142-137.5 0-11.644 1.368-22.506 7.401-31.375z"}),Q.jsx("path",{d:"M195.5 145.016a50.53 50.53 0 0018.014-3.295C238.551 143.519 255 146.556 255 150c0 4.335-26.066 8.026-62.517 9.413-.201-5.525-.323-10.211-.316-14.505 1.102.071 2.214.108 3.333.108zM125 145.016a58.278 58.278 0 01-19.063-3.182C81.773 143.646 66 146.628 66 150c0 4.295 25.591 7.958 61.52 9.374.238-5.823.186-10.311-.246-14.402a59.24 59.24 0 01-2.274.044zM122.87 228c9.79-4.353 16.63-14.277 16.63-25.823 0-15.562-12.424-28.177-27.75-28.177S84 186.615 84 202.177c0 10.646 5.815 19.913 14.396 24.705 2.902-.349 5.839-.554 8.729-.554 5.259 0 10.673.678 15.745 1.672zM236 202.177c0 10.646-5.815 19.913-14.396 24.705-2.902-.349-5.839-.554-8.729-.554-5.259 0-10.673.678-15.745 1.672-9.79-4.353-16.63-14.277-16.63-25.823 0-15.562 12.424-28.177 27.75-28.177S236 186.615 236 202.177zM127 248.787S133.923 245 160 245c26.077 0 33 3.787 33 3.787S189.769 278 160 278s-33-29.213-33-29.213z"}),Q.jsx("path",{clipRule:"evenodd",d:"M173 19.016c-6.188 0-10.711-2.238-15.68-4.697-6.295-3.114-13.305-6.583-25.32-6.303-20.261 0-30.93 9.751-40.896 18.86-1.54 1.408-3.064 2.8-4.604 4.14-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 3.789.584 7.447 1.672 10.895A23.93 23.93 0 0155 84.016c13.255 0 24 10.745 24 24 0 3.552-.772 6.925-2.157 9.959a40.472 40.472 0 008.042-1.174c8.866 12.225 23.528 20.215 40.115 20.215 3.041 0 6.018-.269 8.906-.783 1.675 7.287 2.007 14.011 1.594 23.782h49c-.359-9.741-.486-17.161-.085-24.451a42.76 42.76 0 0011.085 1.452c14.294 0 26.9-7.006 34.364-17.668 6.059-3.498 13.291-2.284 19.597-1.225 2.746.461 5.317.893 7.539.893 18.778 0 34-14.551 34-32.5 0-8.333-3.281-15.934-8.675-21.686-4.31 5.012-10.697 8.186-17.825 8.186-12.979 0-23.5-10.522-23.5-23.5 0-12.98-30.137-31.5-45-31.5-5.31 0-10.313.325-14.617.604-3.249.21-6.099.396-8.383.396zM234.307 82.5c1.181 3.012-2.694 4.293-4.517 1.62l-.021-.03-.032-.047-.031-.043c-7.483-10.536-20.012-17.444-34.206-17.444a42.498 42.498 0 00-16.163 3.166c-6.41 2.63-14.55 1.24-19.499-3.61-8.882-8.704-21.21-14.096-34.838-14.096-17.152 0-32.245 8.542-41 21.478-1.966 2.365-5.65 1.323-4.535-1.543.06-.155.12-.305.182-.451C86.968 54.2 104.516 42.016 125 42.016c13.628 0 25.956 5.392 34.838 14.097 4.949 4.85 13.089 6.24 19.499 3.609a42.498 42.498 0 0116.163-3.166c17.73 0 32.863 10.778 38.807 25.944z"}),Q.jsx("path",{d:"M83 20.516a9.5 9.5 0 11-19 0 9.5 9.5 0 0119 0zM264.5 65.016c8.56 0 15.5-6.94 15.5-15.5 0-8.56-6.94-15.5-15.5-15.5-8.56 0-15.5 6.94-15.5 15.5 0 8.56 6.94 15.5 15.5 15.5zM55 124.016c8.837 0 16-7.164 16-16 0-8.837-7.163-16-16-16s-16 7.163-16 16c0 8.836 7.163 16 16 16z"})]}))}));function LJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LJ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zJ=z.memo((function(e){var t=Object.assign({},(VL(e),e));return Q.jsx("svg",BJ(BJ({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 940 320",xmlns:"http://www.w3.org/2000/svg"},t),{},{children:Q.jsx("path",{d:"M15 240.035V87.172h39.24V205.75h66.192v34.285H15zM183.731 242c-11.759 0-22.196-2.621-31.313-7.862-9.116-5.241-16.317-12.447-21.601-21.619-5.153-9.317-7.729-19.945-7.729-31.883 0-11.937 2.576-22.492 7.729-31.664 5.164-8.963 12.159-15.98 20.982-21.05l.619-.351c9.117-5.241 19.554-7.861 31.313-7.861s22.196 2.62 31.313 7.861c9.248 5.096 16.449 12.229 21.601 21.401 5.153 9.172 7.729 19.727 7.729 31.664 0 11.938-2.576 22.566-7.729 31.883-5.152 9.172-12.353 16.378-21.601 21.619-9.117 5.241-19.554 7.862-31.313 7.862zm0-32.975c4.36 0 8.191-1.092 11.494-3.275 3.436-2.184 6.144-5.387 8.126-9.609 1.982-4.367 2.973-9.536 2.973-15.505 0-5.968-.991-10.991-2.973-15.067-1.906-4.06-4.483-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.134-3.276-11.494-3.276-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275zM295.508 78l-.001 54.042a34.071 34.071 0 016.541-5.781c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.557 7.424 7.872 4.835 14.105 11.684 18.7 20.546l.325.637c4.756 9.026 7.135 19.799 7.135 32.319 0 12.666-2.379 23.585-7.135 32.757-4.624 9.026-10.966 16.087-19.025 21.182-7.928 4.95-16.78 7.425-26.557 7.425-9.644 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.355-7.532-7.226l.001 11.812h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.494 3.276-3.303 2.184-6.012 5.387-8.126 9.609-1.982 4.076-2.972 9.099-2.972 15.067 0 5.969.99 11.138 2.972 15.505 2.114 4.222 4.823 7.425 8.126 9.609 3.435 2.183 7.266 3.275 11.494 3.275s7.994-1.092 11.297-3.275c3.435-2.184 6.143-5.387 8.125-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.483-7.177-7.732-9.352l-.393-.257c-3.303-2.184-7.069-3.276-11.297-3.276zm105.335 38.653l.084.337a27.857 27.857 0 002.057 5.559c2.246 4.222 5.417 7.498 9.513 9.827 4.096 2.184 8.984 3.276 14.665 3.276 5.285 0 9.777-.801 13.477-2.403 3.579-1.632 7.1-4.025 10.564-7.182l.732-.679 19.818 22.711c-5.153 6.26-11.494 11.064-19.025 14.413-7.531 3.203-16.449 4.804-26.755 4.804-12.683 0-23.782-2.621-33.294-7.862-9.381-5.386-16.713-12.665-21.998-21.837-5.153-9.317-7.729-19.872-7.729-31.665 0-11.792 2.51-22.274 7.53-31.446 5.036-9.105 11.902-16.195 20.596-21.268l.61-.351c8.984-5.241 19.091-7.861 30.322-7.861 10.311 0 19.743 2.286 28.294 6.859l.64.347c8.72 4.659 15.656 11.574 20.809 20.746 5.153 9.172 7.729 20.309 7.729 33.411 0 1.294-.052 2.761-.156 4.4l-.042.623-.17 2.353c-.075 1.01-.151 1.973-.227 2.888h-78.044zm21.365-42.147c-4.492 0-8.456 1.092-11.891 3.276-3.303 2.184-5.879 5.314-7.729 9.39a26.04 26.04 0 00-1.117 2.79 30.164 30.164 0 00-1.121 4.499l-.058.354h43.96l-.015-.106c-.401-2.638-1.122-5.055-2.163-7.252l-.246-.503c-1.776-3.774-4.282-6.742-7.519-8.906l-.409-.266c-3.303-2.184-7.2-3.276-11.692-3.276zm111.695-62.018l-.001 57.432h53.51V87.172h39.24v152.863h-39.24v-59.617H555.9l.001 59.617h-39.24V87.172h39.24zM715.766 242c-8.72 0-16.581-1.893-23.583-5.678-6.87-3.785-12.287-9.681-16.251-17.688-3.832-8.153-5.747-18.417-5.747-30.791v-66.168h37.654v59.398c0 9.172 1.519 15.723 4.558 19.654 3.171 3.931 7.597 5.896 13.278 5.896 3.7 0 7.069-.946 10.108-2.839 3.038-1.892 5.483-4.877 7.332-8.953 1.85-4.222 2.775-9.609 2.775-16.16v-56.996h37.654v118.36h-35.871l.004-12.38c-2.642 3.197-5.682 5.868-9.12 8.012-7.002 4.222-14.599 6.333-22.791 6.333zM841.489 78l-.001 54.041a34.1 34.1 0 016.541-5.78c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.556 7.424 7.873 4.835 14.106 11.684 18.701 20.546l.325.637c4.756 9.026 7.134 19.799 7.134 32.319 0 12.666-2.378 23.585-7.134 32.757-4.624 9.026-10.966 16.087-19.026 21.182-7.927 4.95-16.779 7.425-26.556 7.425-9.645 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.354-7.531-7.224v11.81h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275 4.228 0 7.993-1.092 11.296-3.275 3.435-2.184 6.144-5.387 8.126-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.484-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.068-3.276-11.296-3.276z"})}))}));var HJ,WJ={path:"assets/logo-3d.webp",pkg:"@lobehub/assets-logo",version:"1.1.0"},UJ={path:"assets/logo-flat.svg",pkg:"@lobehub/assets-logo",version:"1.1.0"},VJ=ZB((function(e){return{extraTitle:(0,e.css)(HJ||(HJ=Ud(["\n font-weight: 300;\n white-space: nowrap;\n "])))}})),GJ=["type","size","style","extra","className"];function qJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function KJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qJ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const XJ=z.memo((function(e){var t,n=e.type,r=void 0===n?"3d":n,o=e.size,a=void 0===o?32:o,i=e.style,s=e.extra,l=e.className,c=gd(e,GJ),u=sW(),d=iz(),f=VJ().styles;switch(r){case"3d":t=Q.jsx(uW,KJ({alt:"lobehub",height:a,src:u(WJ),style:i,width:a},c));break;case"flat":t=Q.jsx(uW,{alt:"lobehub",height:a,src:u(UJ),style:i,width:a});break;case"high-contrast":t=Q.jsx(MJ,KJ({height:a,style:i,width:a},c));break;case"text":t=Q.jsx(zJ,KJ({className:l,height:a,style:i,width:2.9375*a},c));break;case"combine":t=Q.jsxs(Q.Fragment,{children:[Q.jsx(uW,{alt:"lobehub",height:a,src:u(WJ),width:a}),Q.jsx(zJ,{style:{height:a,marginLeft:Math.round(a/4),width:"auto"}})]})}if(!s)return t;var p=Math.round(a/3*1.9);return Q.jsxs(nW,KJ(KJ({align:"center",className:l,horizontal:!0,style:i},c),{},{children:[t,Q.jsx(AJ,{style:{color:d.colorFill,height:p,width:p}}),Q.jsx("div",{className:f.extraTitle,style:{fontSize:p},children:s})]}))}));var YJ,QJ,JJ,ZJ,eZ,tZ,nZ,rZ,oZ,aZ=function(e){var t,n=e.type,r=e.scale,o=e.appearance,a=iH(n),i="dark"===o;return hd(t={},"color".concat(a,"Bg"),r[o][1]),hd(t,"color".concat(a,"BgHover"),r[o][2]),hd(t,"color".concat(a,"Border"),r[o][4]),hd(t,"color".concat(a,"BorderHover"),r[o][i?5:3]),hd(t,"color".concat(a,"Hover"),r[o][i?10:8]),hd(t,"color".concat(a),r[o][9]),hd(t,"color".concat(a,"Active"),r[o][i?7:10]),hd(t,"color".concat(a,"TextHover"),r[o][i?10:8]),hd(t,"color".concat(a,"Text"),r[o][9]),hd(t,"color".concat(a,"TextActive"),r[o][i?7:10]),t},iZ=function(e){var t=e.scale,n=e.appearance;return{colorBgContainer:"dark"===n?t[n][1]:t[n][0],colorBgElevated:"dark"===n?t[n][2]:t[n][0],colorBgLayout:"dark"===n?t[n][0]:t[n][1],colorBgMask:t.lightA[8],colorBgSpotlight:t[n][5],colorBorder:t[n][4],colorBorderSecondary:t[n][3],colorFill:t["".concat(n,"A")][3],colorFillQuaternary:t["".concat(n,"A")][0],colorFillSecondary:t["".concat(n,"A")][2],colorFillTertiary:t["".concat(n,"A")][1],colorText:t[n][12],colorTextQuaternary:t[n][6],colorTextSecondary:t[n][10],colorTextTertiary:t[n][8]}},sZ={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"]}},lZ={blue:bX.blue.dark[9],cyan:bX.cyan.dark[9],geekblue:bX.geekblue.dark[9],gold:bX.gold.dark[9],green:bX.green.dark[9],lime:bX.lime.dark[9],magenta:bX.magenta.dark[9],orange:bX.orange.dark[9],purple:bX.purple.dark[9],red:bX.red.dark[9],volcano:bX.volcano.dark[9],yellow:bX.yellow.dark[9]},cZ=[lZ.red,lZ.orange,lZ.gold,lZ.yellow,lZ.lime,lZ.green,lZ.cyan,lZ.blue,lZ.geekblue,lZ.purple,lZ.magenta,lZ.volcano],uZ={mauve:sZ.mauve.dark[9],olive:sZ.olive.dark[9],sage:sZ.sage.dark[9],sand:sZ.sand.dark[9],slate:sZ.slate.dark[9]},dZ=[uZ.mauve,uZ.slate,uZ.sage,uZ.olive,uZ.sand];function fZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fZ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hZ(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return gZ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gZ(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function gZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mZ,bZ,vZ=function(e){var t,n=e.name,r=e.scale,o=e.appearance,a={},i=hZ(r[o].entries());try{for(i.s();!(t=i.n()).done;){var s=qh(t.value,2),l=s[0],c=s[1];0!==l&&12!==l&&(a["".concat(n).concat(l)]=c)}}catch(g){i.e(g)}finally{i.f()}var u,d=hZ(r["".concat(o,"A")].entries());try{for(d.s();!(u=d.n()).done;){var f=qh(u.value,2),p=f[0],h=f[1];0!==p&&12!==p&&(a["".concat(n).concat(p,"A")]=h)}}catch(g){d.e(g)}finally{d.f()}return pZ(pZ({},a),function(e){var t,n=e.name,r=e.scale,o=e.appearance;return hd(t={},"".concat(n,"Bg"),r["".concat(o,"A")][1]),hd(t,"".concat(n,"BgHover"),r["".concat(o,"A")][2]),hd(t,"".concat(n,"Border"),r[o][4]),hd(t,"".concat(n,"BorderSecondary"),r[o][3]),hd(t,"".concat(n,"BorderHover"),r[o][5]),hd(t,"".concat(n,"Hover"),r[o][10]),hd(t,"".concat(n),r[o][9]),hd(t,"".concat(n,"Active"),r[o][7]),hd(t,"".concat(n,"TextHover"),r["".concat(o,"A")][10]),hd(t,"".concat(n,"Text"),r["".concat(o,"A")][9]),hd(t,"".concat(n,"TextActive"),r["".concat(o,"A")][7]),t}({appearance:o,name:n,scale:r}))},yZ=ZB((function(e,t){var n=e.css,r=e.token;return{active:n(mZ||(mZ=Ud(["\n box-shadow: 0 0 0 2px ",";\n "])),r.colorTextTertiary),container:n(bZ||(bZ=Ud(["\n cursor: pointer;\n\n width: ","px;\n height: ","px;\n\n background: ",";\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px ",";\n\n transition:\n scale 400ms ",",\n box-shadow 100ms ",";\n\n &:hover {\n box-shadow: 0 0 0 3px ",";\n }\n\n &:active {\n scale: 0.8;\n }\n "])),t,t,r.colorBgContainer,r.colorSplit,r.motionEaseOut,r.motionEaseOut,r.colorText)}}));const wZ=z.memo((function(e){var t=e.colors,n=e.activeColor,r=e.onSelect,o=e.size,a=void 0===o?24:o,i=iz(),s=yZ(a),l=s.cx,c=s.styles;return Q.jsxs(nW,{gap:8,horizontal:!0,style:{flexWrap:"wrap"},children:[Q.jsx(nW,{className:l(c.container,!n&&c.active),onClick:function(){null==r||r()},style:{background:i.colorBgContainer}}),t.map((function(e){var t=e===n;return Q.jsx(nW,{className:l(c.container,t&&c.active),onClick:function(){null==r||r(e)},style:{background:e}},e)}))]})}));var xZ,SZ=ZB((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=".".concat(r,"-tabs");return{tabs:t(xZ||(xZ=Ud(["\n ","-tab + ","-tab {\n margin: ","px 4px !important;\n padding: 0 12px !important;\n }\n\n ","-tab {\n color: ",";\n transition: background-color 100ms ease-out;\n\n &:first-child {\n margin: ","px 4px ","px 0;\n padding: ","px 12px !important;\n }\n\n &:hover {\n color: "," !important;\n background: ",";\n border-radius: ","px;\n }\n }\n\n ","-nav {\n margin-bottom: 0;\n\n &::before {\n display: none;\n }\n }\n "])),o,o,16,o,n.colorTextSecondary,16,16,6,n.colorText,n.colorFillTertiary,n.borderRadius,o)}})),kZ=["className"];function CZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var EZ=z.memo((function(e){var t=e.className,n=gd(e,kZ),r=SZ(),o=r.styles,a=r.cx;return Q.jsx(fA,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CZ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:a(o.tabs,t)},n))}));const OZ=EZ;function DZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DZ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jZ=aZ({appearance:"dark",scale:bX.bnw,type:"Primary"}),PZ=iZ({appearance:"dark",scale:bX.gray}),_Z=aZ({appearance:"dark",scale:bX.lime,type:"Success"}),NZ=aZ({appearance:"dark",scale:bX.gold,type:"Warning"}),IZ=aZ({appearance:"dark",scale:bX.red,type:"Error"}),TZ=aZ({appearance:"dark",scale:bX.blue,type:"Info"});const AZ=$Z($Z($Z($Z($Z($Z($Z({},jZ),PZ),_Z),NZ),IZ),TZ),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:TZ.colorInfoText,colorLinkActive:TZ.colorInfoTextActive,colorLinkHover:TZ.colorInfoTextHover,colorTextLightSolid:PZ.colorBgLayout});function FZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FZ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var MZ=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},a={},i=bX[n];i&&(o=aZ({appearance:"dark",scale:i,type:"Primary"}));var s=sZ[r];return s&&(a=iZ({appearance:"dark",scale:s})),RZ(RZ(RZ(RZ({},t),AZ),o),a)};function LZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LZ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zZ=aZ({appearance:"light",scale:bX.bnw,type:"Primary"}),HZ=iZ({appearance:"light",scale:bX.gray}),WZ=aZ({appearance:"light",scale:bX.green,type:"Success"}),UZ=aZ({appearance:"light",scale:bX.orange,type:"Warning"}),VZ=aZ({appearance:"light",scale:bX.volcano,type:"Error"}),GZ=aZ({appearance:"light",scale:bX.geekblue,type:"Info"});const qZ=BZ(BZ(BZ(BZ(BZ(BZ(BZ({},zZ),HZ),WZ),UZ),VZ),GZ),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:GZ.colorInfoText,colorLinkActive:GZ.colorInfoTextActive,colorLinkHover:GZ.colorInfoTextHover,colorTextLightSolid:HZ.colorBgLayout});function KZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KZ(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var YZ=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},a={},i=bX[n];i&&(o=aZ({appearance:"light",scale:i,type:"Primary"}));var s=sZ[r];return s&&(a=iZ({appearance:"light",scale:s})),XZ(XZ(XZ(XZ({},t),qZ),o),a)},QZ='"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',JZ='"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif',ZZ={borderRadius:5,borderRadiusLG:8,borderRadiusSM:3,borderRadiusXS:3,controlHeight:36,fontFamily:['"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',JZ,QZ].join(","),fontFamilyCode:["Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",JZ,QZ].join(",")};function e0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e0(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var n0;const r0=function(e){return tz(n0||(n0=Ud(["\n .","-btn {\n box-shadow: none;\n }\n\n .","-btn-primary {\n color: "," !important;\n\n &:hover {\n color: "," !important;\n }\n\n &:active {\n color: "," !important;\n }\n }\n\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding: 4px 8px;\n\n color: "," !important;\n\n background-color: "," !important;\n border-radius: ","px !important;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: "," !important;\n }\n }\n\n .","-switch-handle::before {\n background: "," !important;\n }\n\n @media (max-width: 575px) {\n .","-tooltip {\n display: none !important;\n }\n }\n"])),e.prefixCls,e.prefixCls,rU(e.colorPrimary),rU(e.colorPrimary),rU(e.colorPrimaryActive),e.prefixCls,e.colorBgLayout,e.colorText,e.borderRadiusSM,e.prefixCls,e.colorText,e.prefixCls,e.colorBgContainer,e.prefixCls)};var o0;const a0=ez((function(e){var t,n=e.theme;return[(t=n,tz(o0||(o0=Ud(["\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 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)),r0(n)]}));var i0=["children","customStylish","customToken","enableWebfonts","webfonts","customTheme"];function s0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s0(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const c0=z.memo((function(e){var t=e.children,n=e.customStylish,r=e.customToken,o=e.enableWebfonts,a=void 0===o||o,i=e.webfonts,s=e.customTheme,l=void 0===s?{}:s,c=gd(e,i0),u=sW(),d=i||[u({path:"css/index.css",pkg:"@lobehub/webfont-mono",version:"1.0.0"}),u({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans",version:"1.0.0"}),u({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans-sc",version:"1.0.0"}),u({path:"dist/katex.min.css",pkg:"katex",version:"0.16.8"})],f=z.useCallback((function(e){return l0(l0({},function(e){var t=e.css,n=e.token,r=e.isDarkMode,o=rz(YJ||(YJ=Ud(["\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n "]))),a=r?n.cyan9A:n.cyan11A,i=r?n.cyan2A:n.cyan6A;return{blur:t(QJ||(QJ=Ud(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),blurStrong:t(JJ||(JJ=Ud(["\n backdrop-filter: blur(36px);\n "]))),bottomScrollbar:t(ZJ||(ZJ=Ud(["\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n background-color: ",";\n border-radius: 4px;\n transition: background-color 500ms ",";\n }\n\n &-corner {\n display: none;\n width: 0;\n height: 0;\n }\n }\n "])),n.colorFill,n.motionEaseOut),gradientAnimation:t(eZ||(eZ=Ud(["\n background-image: linear-gradient(\n -45deg,\n ",",\n ",",\n ",",\n ","\n );\n background-size: 400% 400%;\n border-radius: inherit;\n animation: 5s "," 5s ease infinite;\n "])),n.gold,n.magenta,n.geekblue,n.cyan,o),markdown:t(tZ||(tZ=Ud(["\n color: ",";\n\n h1,\n h2,\n h3,\n h4,\n h5 {\n font-weight: 600;\n }\n\n p {\n margin-block: 0 0;\n\n font-size: 14px;\n line-height: 2;\n color: ",";\n word-break: break-all;\n word-wrap: break-word;\n\n + * {\n margin-block-end: 1em;\n }\n\n &:not(:last-child) {\n margin-bottom: 1.5em;\n }\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 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: 1em 1em;\n margin-inline: 0 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: 10px 10px;\n padding-inline: 16px 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\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,a,i,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),markdownInChat:t(nZ||(nZ=Ud(["\n h1 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1.6em;\n }\n\n h2 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1.4em;\n }\n\n h3 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1.2em;\n }\n\n h4 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1.1em;\n }\n\n h5 {\n margin-top: 0;\n margin-block-start: 0;\n font-size: 1em;\n }\n\n > *:last-child {\n margin-bottom: 0 !important;\n }\n\n p {\n line-height: 1.8 !important;\n\n + * {\n margin-block-end: 0.5em !important;\n }\n\n &:not(:last-child) {\n margin-bottom: 1em !important;\n }\n }\n "]))),noScrollbar:t(rZ||(rZ=Ud(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:t(oZ||(oZ=Ud(["\n cursor: pointer;\n color: ",";\n\n &:hover {\n color: ",";\n }\n "])),n.colorTextSecondary,n.colorText)}}(e)),null==n?void 0:n(e))}),[n]),p=z.useCallback((function(e){return l0(l0({},function(e){for(var t=e.isDarkMode,n={},r=0,o=Object.entries(bX);r<o.length;r++){var a=qh(o[r],2),i=a[0],s=a[1];n=pZ(pZ({},n),vZ({appearance:t?"dark":"light",name:MH(i),scale:s}))}return n}(e)),null==r?void 0:r(e))}),[r]),h=z.useCallback((function(e){return function(e){var t=e.neutralColor,n=e.appearance,r=e.primaryColor;return{algorithm:"dark"===n?MZ:YZ,token:t0(t0({},ZZ),{},{neutralColor:t,primaryColor:r})}}({appearance:e,neutralColor:l.neutralColor,primaryColor:l.primaryColor})}),[l.primaryColor,l.neutralColor]);return Q.jsxs(Q.Fragment,{children:[a&&(null==d?void 0:d.length)>0&&d.map((function(e){return Q.jsx(BY,{url:e},e)})),Q.jsx(az,{speedy:!0,children:Q.jsxs(oz,l0(l0({customStylish:f,customToken:p},c),{},{theme:h,children:[Q.jsx(a0,{}),Q.jsx(o$,{style:{minHeight:"inherit",width:"inherit"},children:t})]}))})]})}));var u0,d0=ZB((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{tooltip:t(u0||(u0=Ud(["\n .","-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: ",";\n\n background-color: ",";\n border-radius: ","px;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: ",";\n }\n }\n "])),r,n.colorBgLayout,n.colorText,n.borderRadiusSM,r,n.colorText)}})),f0=["className","arrow"];function p0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h0=z.memo((function(e){var t=e.className,n=e.arrow,r=void 0!==n&&n,o=gd(e,f0),a=d0(),i=a.styles,s=a.cx;return Q.jsx(x_,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p0(Object(n),!0).forEach((function(t){hd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({arrow:r,overlayClassName:s(i.tooltip,t)},o))}));const g0=h0,m0=Object.freeze(Object.defineProperty({__proto__:null,default:g0},Symbol.toStringTag,{value:"Module"})),b0={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class v0{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||b0,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new v0(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new v0(this.logger,e)}}var y0=new v0;class w0{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{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<t;r++)n[r-1]=arguments[r];if(this.observers[e]){[].concat(this.observers[e]).forEach((e=>{e(...n)}))}if(this.observers["*"]){[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}}function x0(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function S0(e){return null==e?"":""+e}function k0(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}const a="string"!=typeof t?[].concat(t):t.split(".");for(;a.length>1;){if(o())return{};const t=r(a.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function C0(e,t,n){const{obj:r,k:o}=k0(e,t,Object);r[o]=n}function E0(e,t){const{obj:n,k:r}=k0(e,t);if(n)return n[r]}function O0(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]):O0(e[r],t[r],n):e[r]=t[r]);return e}function D0(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var $0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function j0(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>$0[e])):e}const P0=[" ",",","?","!",";"];function _0(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let a=0;a<r.length;++a){if(!o)return;if("string"==typeof o[r[a]]&&a+1<r.length)return;if(void 0===o[r[a]]){let e=2,i=r.slice(a,a+e).join(n),s=o[i];for(;void 0===s&&r.length>a+e;)e++,i=r.slice(a,a+e).join(n),s=o[i];if(void 0===s)return;if(null===s)return null;if(t.endsWith(i)){if("string"==typeof s)return s;if(i&&"string"==typeof s[i])return s[i]}const l=r.slice(a+e).join(n);return l?_0(s,l,n):void 0}o=o[r[a]]}return o}function N0(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class I0 extends w0{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."));const s=E0(this.data,i);return s||!a||"string"!=typeof n?s:_0(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(i=e.split("."),r=t,t=i[1]),this.addNamespaces(t),C0(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),r=n,n=t,t=i[1]),this.addNamespaces(t);let s=E0(this.data,i)||{};r?O0(s,n,o):s={...s,...n},C0(this.data,i,s),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}}var T0={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 A0={};class F0 extends w0{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=y0.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=P0.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 a=!o.test(e);if(!a){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(a=!0)}return a}(e,n,r));if(a&&!i){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.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:a,namespaces:i}=this.extractFromKey(e[e.length-1],t),s=i[i.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}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${a}`}return r?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:a}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||a,p=u&&u.exactUsedKey||a,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:i}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?p:f;for(const a in d)if(Object.prototype.hasOwnProperty.call(d,a)){const e=`${r}${o}${a}`;n[a]=this.translate(e,{...t,joinArrays:!1,ns:i}),n[a]===e&&(n[a]=d[a])}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,i=!1;const c=void 0!==t.count&&"string"!=typeof t.count,f=F0.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=g),this.isValidLookup(d)||(i=!0,d=a);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:d,b=f&&g!==d&&this.options.updateMissing;if(i||r||b){if(this.logger.log(b?"updateKey":"missingKey",l,s,a,b?g:d),o){const e=this.resolve(a,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const o=f&&r!==d?r: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],a+n,t[`defaultValue${n}`]||g)}))})):r(e,a,g))}d=this.extendTranslation(d,e,t,u,n),i&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${a}`),(i||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${a}`:a,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,o){var a=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 i="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(i){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),i){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),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):a.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,s="string"==typeof i?[i]:i;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=T0.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,o,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,i),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==i.count&&"string"!=typeof i.count,d=u&&!i.ordinal&&0===i.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==i.context&&("string"==typeof i.context||"number"==typeof i.context)&&""!==i.context,p=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(a=e,!A0[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(A0[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.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!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;o=n;const a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,n,e,i);else{let e;u&&(e=this.pluralResolver.getSuffix(n,i.count,i));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(a.push(l+e),i.ordinal&&0===e.indexOf(r)&&a.push(l+e.replace(r,this.options.pluralSeparator)),d&&a.push(l+t)),f){const n=`${l}${this.options.contextSeparator}${i.context}`;a.push(n),u&&(a.push(n+e),i.ordinal&&0===e.indexOf(r)&&a.push(n+e.replace(r,this.options.pluralSeparator)),d&&a.push(n+t))}}let s;for(;s=a.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,i))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function R0(e){return e.charAt(0).toUpperCase()+e.slice(1)}class M0{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y0.create("languageUtils")}getScriptPartFromCode(e){if(!(e=N0(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=N0(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]=R0(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]=R0(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=R0(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 L0=[{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}],B0={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const z0=["v1","v2","v3"],H0=["v4"],W0={zero:0,one:1,two:2,few:3,many:4,other:5};class U0{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=y0.create("pluralResolver"),this.options.compatibilityJSON&&!H0.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 L0.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:B0[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(N0(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>W0[e]-W0[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!z0.includes(this.options.compatibilityJSON)}}function V0(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=function(e,t,n){const r=E0(e,n);return void 0!==r?r:E0(t,n)}(e,t,n);return!a&&o&&"string"==typeof n&&(a=_0(e,n,r),void 0===a&&(a=_0(t,n,r))),a}class G0{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=y0.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:j0,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?D0(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?D0(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?D0(t.nestingPrefix):t.nestingPrefixEscaped||D0("$t("),this.nestingSuffix=t.nestingSuffix?D0(t.nestingSuffix):t.nestingSuffixEscaped||D0(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(e,t,n,r){let o,a,i;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=V0(t,s,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),a=o.shift().trim(),i=o.join(this.formatSeparator).trim();return this.format(V0(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),i,n,{...r,...t,interpolationkey:a})};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=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach((t=>{for(i=0;o=t.regex.exec(e);){const n=o[1].trim();if(a=c(n),void 0===a)if("function"==typeof u){const t=u(e,o,r);a="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(d){a=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=""}else"string"==typeof a||this.useRawValueToEscape||(a=S0(a));const s=t.safeValue(a);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,i++,i>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let a=`{${r[1]}`;e=r[0],a=this.interpolate(a,o);const i=a.match(/'/g),s=a.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(a=a.replace(/'/g,'"'));try{o=JSON.parse(a),t&&(o={...t,...o})}catch(K4){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,K4),`${e}${n}${a}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];o={...a},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(i.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=S0(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function q0(e){const t={};return function(n,r,o){const a=r+JSON.stringify(o);let i=t[a];return i||(i=e(N0(r),o),t[a]=i),i(n)}}class K0{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=y0.create("formatter"),this.options=e,this.formats={number:q0(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:q0(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:q0(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:q0(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:q0(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=q0(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:a}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const i=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=i.locale||i.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...a,...r,...i})}catch(i){this.logger.warn(i)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}}class X0 extends w0{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=y0.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},a={},i={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const i=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===a[i]&&(a[i]=!0):(this.state[i]=1,r=!1,void 0===a[i]&&(a[i]=!0),void 0===o[i]&&(o[i]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(i[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],a=r[1];t&&this.emit("failedLoading",o,a,t),n&&this.store.addResourceBundle(o,a,n),this.state[e]=t?-1:2;const i={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:a}=k0(e,t,Object);o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[o],a),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=>{i[e]||(i[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===i[e][t]&&(i[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:a});this.readingCalls++;const i=(i,s)=>{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)}i&&s&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*o,a)}),o):a(i,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,i);try{const n=s(e,t);n&&"function"==typeof n.then?n.then((e=>i(null,e))).catch(i):i(null,n)}catch(l){i(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,a)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,a),this.loaded(e,n,a)}))}saveMissing(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;o=5===c.length?c(e,t,n,r,l):c(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>i(null,e))).catch(i):i(null,o)}catch(s){i(s)}else c(e,t,n,r,i,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function Y0(){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,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Q0(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 J0(){}class Z0 extends w0{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=Q0(e),this.services={},this.logger=y0,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Y0();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...Q0(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?y0.init(o(this.modules.logger),this.options):y0.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=K0);const n=new M0(this.options);this.store=new I0(this.options.resources,this.options);const a=this.services;a.logger=y0,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new U0(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new G0(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new X0(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.languageDetector&&(a.languageDetector=o(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=o(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new F0(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=J0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=x0(),i=()=>{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),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?i():setTimeout(i,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J0;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=x0();return e||(e=this.languages),t||(t=this.options.ns),n||(n=J0),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&&T0.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=x0();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(o(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},i=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=>{a(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(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let a;if("object"!=typeof t){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l<i;l++)s[l-2]=arguments[l];a=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else a={...t};a.lng=a.lng||o.lng,a.lngs=a.lngs||o.lngs,a.ns=a.ns||o.ns,a.keyPrefix=a.keyPrefix||n||o.keyPrefix;const c=r.options.keySeparator||".";let u;return u=a.keyPrefix&&Array.isArray(e)?e.map((e=>`${a.keyPrefix}${c}${e}`)):a.keyPrefix?`${a.keyPrefix}${c}${e}`:e,r.t(u,a)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const a=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,a);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(n,e)||r&&!a(o,e)))}loadNamespaces(e,t){const n=x0();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=x0();"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 M0(Y0());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new Z0(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J0;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Z0(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new I0(this.store.data,r),o.services.resourceStore=o.store),o.translator=new F0(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit(e,...n)})),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const e1=Z0.createInstance();function t1(e){return(t1="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)}e1.createInstance=Z0.createInstance,e1.createInstance,e1.dir,e1.init,e1.loadResources,e1.reloadResources,e1.use,e1.changeLanguage,e1.getFixedT,e1.t,e1.exists,e1.setDefaultNamespace,e1.hasLoadedNamespace,e1.loadNamespaces,e1.loadLanguages;var n1=[],r1=n1.forEach,o1=n1.slice;function a1(e){return r1.call(o1.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function i1(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":t1(XMLHttpRequest))}function s1(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.')}var l1,c1={exports:{}},u1={exports:{}};function d1(){return l1||(l1=1,function(e,n){var r,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t,a=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();r=a,function(e){var t=void 0!==r&&r||"undefined"!=typeof self&&self||void 0!==t&&t,n="URLSearchParams"in t,o="Symbol"in t&&"iterator"in Symbol,a="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(K4){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=d(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},o&&(p.prototype[Symbol.iterator]=p.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),y.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},v.call(w.prototype),v.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];S.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(E){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function C(n,r){return new Promise((function(o,i){var l=new w(n,r);if(l.signal&&l.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}c.onload=function(){var e,t,n={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){o(new S(r,n))}),0)},c.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){i(new e.DOMException("Aborted","AbortError"))}),0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(K4){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":s&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof p?l.headers.forEach((function(e,t){c.setRequestHeader(t,e)})):Object.getOwnPropertyNames(r.headers).forEach((function(e){c.setRequestHeader(e,d(r.headers[e]))})),l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)}))}C.polyfill=!0,t.fetch||(t.fetch=C,t.Headers=p,t.Request=w,t.Response=S),e.Headers=p,e.Request=w,e.Response=S,e.fetch=C}({}),a.fetch.ponyfill=!0,delete a.fetch.polyfill;var i=o.fetch?o:a;(n=i.fetch).default=i.fetch,n.fetch=i.fetch,n.Headers=i.Headers,n.Request=i.Request,n.Response=i.Response,e.exports=n}(u1,u1.exports)),u1.exports}!function(e,n){var r;if("function"==typeof fetch&&(r=void 0!==t&&t.fetch?t.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),void 0!==s1&&("undefined"==typeof window||void 0===window.document)){var o=r||d1();o.default&&(o=o.default),n.default=o,e.exports=n.default}}(c1,c1.exports);var f1=c1.exports;const p1=n(f1),h1=e({__proto__:null,default:p1},[f1]);function g1(e){return(g1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var m1,b1,v1;"function"==typeof fetch&&(m1="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),i1()&&("undefined"!=typeof global&&global.XMLHttpRequest?b1=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(b1=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?v1=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(v1=window.ActiveXObject)),m1||!h1||b1||v1||(m1=p1||h1),"function"!=typeof m1&&(m1=void 0);var y1=function(e,t){if(t&&"object"===g1(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},w1=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):m1(e,t).then(r).catch(n)},x1=!1,S1=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},m1&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=y1(t,e.queryStringParams));var o=a1({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var a="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,i=a1({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},x1?{}:a);try{w1(t,i,r)}catch(K4){if(!a||0===Object.keys(a).length||!K4.message||K4.message.indexOf("not implemented")<0)return r(K4);try{Object.keys(a).forEach((function(e){delete i[e]})),w1(t,i,r),x1=!0}catch(s){r(s)}}}(e,t,n,r):i1()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===g1(n)&&(n=y1("",n).slice(1)),e.queryStringParams&&(t=y1(t,e.queryStringParams));try{var o;(o=b1?new b1:new v1("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a="function"==typeof a?a():a)for(var i in a)o.setRequestHeader(i,a[i]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(K4){console&&console.log(K4)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function k1(e){return(k1="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 C1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E1(r.key),r)}}function E1(e){var t=function(e,t){if("object"!==k1(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==k1(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===k1(t)?t:String(t)}var O1=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=E1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n||"")},parseLoadPayload:function(e,t){},request:S1,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},D1=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}var t,n,r;return t=e,n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=a1(n,this.options||{},O1()),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var a,i=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}(a=s)?a:Promise.resolve(a)).then((function(a){if(!a)return o(null,{});var s=i.services.interpolator.interpolate(a,{lng:e.join("+"),ns:n.join("+")});i.loadUrl(s,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this,a="string"==typeof n?[n]:n,i="string"==typeof r?[r]:r,s=this.options.parseLoadPayload(a,i);this.options.request(this.options,e,s,(function(a,i){if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+e+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+e+"; status code: "+i.status,!1);if(!i&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+a.message,!0);if(a)return t(a,!1);var s,l;try{s="string"==typeof i.data?o.options.parse(i.data,n,r):i.data}catch(K4){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 a=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var i=this.options.parsePayload(t,n,r),s=0,l=[],c=[];e.forEach((function(n){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(n,t));var u=a.services.interpolator.interpolate(r,{lng:n,ns:t});a.options.request(a.options,u,i,(function(t,n){s+=1,l.push(t),c.push(n),s===e.length&&"function"==typeof o&&o(l,c)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,a=n.language;if(!a||"cimode"!==a.toLowerCase()){var i=[],s=function(e){r.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};s(a),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,a){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&a&&o.log("loaded namespace ".concat(e," for language ").concat(t),a),n.loaded("".concat(t,"|").concat(e),r,a)}))}))}))}}}],n&&C1(t.prototype,n),r&&C1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();D1.type="backend";const $1={};function j1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&$1[t[0]]||("string"==typeof t[0]&&($1[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}const P1=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function _1(e,t,n){e.loadNamespaces(t,P1(e,n))}function N1(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,P1(e,r))}const I1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,T1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},A1=e=>T1[e];let F1,R1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(I1,A1)};const M1={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};R1={...R1,...e}}(e.options.react),function(e){F1=e}(e)}},L1=z.createContext();class B1{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function z1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=z.useContext(L1)||{},a=n||r||F1;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new B1),!a){j1("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}a.options.react&&void 0!==a.options.react.wait&&j1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...R1,...a.options.react,...t},{useSuspense:s,keyPrefix:l}=i;let c=e||o||a.options&&a.options.defaultNS;c="string"==typeof c?[c]:c||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(c);const u=(a.isInitialized||a.initializedStoreOnce)&&c.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const i=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!i(r,e)||o&&!i(a,e)))}(e,t,n):(j1("i18n.languages were undefined or empty",t.languages),!0)}(e,a,i)));function d(){return a.getFixedT(t.lng||null,"fallback"===i.nsMode?c:c[0],l)}const[f,p]=z.useState(d);let h=c.join();t.lng&&(h=`${t.lng}${h}`);const g=((e,t)=>{const n=z.useRef();return z.useEffect((()=>{n.current=t?n.current:e}),[e,t]),n.current})(h),m=z.useRef(!0);z.useEffect((()=>{const{bindI18n:e,bindI18nStore:n}=i;function r(){m.current&&p(d)}return m.current=!0,u||s||(t.lng?N1(a,t.lng,c,(()=>{m.current&&p(d)})):_1(a,c,(()=>{m.current&&p(d)}))),u&&g&&g!==h&&m.current&&p(d),e&&a&&a.on(e,r),n&&a&&a.store.on(n,r),()=>{m.current=!1,e&&a&&e.split(" ").forEach((e=>a.off(e,r))),n&&a&&n.split(" ").forEach((e=>a.store.off(e,r)))}}),[a,h]);const b=z.useRef(!0);z.useEffect((()=>{m.current&&!b.current&&p(d),b.current=!1}),[a,l]);const v=[f,a,u];if(v.t=f,v.i18n=a,v.ready=u,u)return v;if(!u&&!s)return v;throw new Promise((e=>{t.lng?N1(a,t.lng,c,(()=>e())):_1(a,c,(()=>e()))}))}const H1=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,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}};return t=e(r,o,a),a},W1=e=>e?H1(e):H1;var U1={exports:{}},V1={},G1=z,q1=mX;var K1="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},X1=q1.useSyncExternalStore,Y1=G1.useRef,Q1=G1.useEffect,J1=G1.useMemo,Z1=G1.useDebugValue;V1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=Y1(null);if(null===a.current){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=J1((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&i.hasValue){var t=i.value;if(o(t,e))return s=t}return s=e}if(t=s,K1(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}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]);var s=X1(e,a[0],a[1]);return Q1((function(){i.hasValue=!0,i.value=s}),[s]),Z1(s),s},U1.exports=V1;const e2=n(U1.exports),{useDebugValue:t2}=H,{useSyncExternalStoreWithSelector:n2}=e2;const r2=e=>{const t="function"==typeof e?W1(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=n2(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return t2(r),r}(t,e,n);return Object.assign(n,t),n},o2=new Map,a2=e=>{const t=o2.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},i2=(e,t={})=>(n,r,o)=>{const{enabled:a,anonymousActionType:i,store:s,...l}=t;let c;try{c=null!=a&&a&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(K4){}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=o2.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return o2.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let f=!0;o.setState=(e,t,a)=>{const c=n(e,t);if(!f)return c;const d=void 0===a?{type:i||"anonymous"}:"string"==typeof a?{type:a}:a;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...a2(l.name),[s]:o.getState()}),c)};const p=(...e)=>{const t=f;f=!1,n(...e),f=t},h=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(h):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?h:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){const e=o.dispatch;o.dispatch=(...t)=>{e(...t)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):s2(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void p(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(h),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(a2(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(a2(l.name));case"ROLLBACK":return s2(e.state,(e=>{if(void 0===s)return p(e),void(null==u||u.init(o.getState()));p(e[s]),null==u||u.init(a2(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return s2(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&p(e[s]):p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return f=!f}return}})),h},s2=(e,t)=>{let n;try{n=JSON.parse(e)}catch(K4){console.error("[zustand devtools middleware] Could not parse the received json",K4)}void 0!==n&&t(n)};var l2={exports:{}};var c2={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};var u2="object"==typeof process&&{ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\Konstantin\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_12168_VFNJOEZPJGTVZARY",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LENOVO",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\Windows\\notepad.exe",EFC_6792:"1",GIT_ASKPASS:"c:\\Users\\Konstantin\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\Konstantin",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\Konstantin",INIT_CWD:"D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\sd-webui-lobe-theme",INTEL_DEV_REDIST:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\Konstantin\\AppData\\Local",LOGONSERVER:"\\\\LENOVO",MIC_LD_LIBRARY_PATH:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Program Files\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\Program Files\\nodejs\\\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\Konstantin\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\Konstantin\\AppData\\Roaming\\npm\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\Konstantin\\AppData\\Roaming\\npm",npm_config_init_module:"C:\\Users\\Konstantin\\.npm-init.js",npm_config_local_prefix:"D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\sd-webui-lobe-theme",npm_config_lockfile:"",npm_config_node_gyp:"C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.2.3",npm_config_prefix:"C:\\Users\\Konstantin\\AppData\\Roaming\\npm",npm_config_public_hoist_pattern:"*@umijs/lint*\n\n*changelog*\n\n*remark*\n\n*eslint*\n\n*stylelint*\n\n*prettier*\n\n*commitlint*\n\n*postcss*\n\n*semantic-release*",npm_config_resolution_mode:"highest",npm_config_userconfig:"C:\\Users\\Konstantin\\.npmrc",npm_config_user_agent:"npm/10.2.3 node/v21.2.0 win32 x64 workspaces/false",npm_execpath:"C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_lifecycle_event:"build",npm_lifecycle_script:"vite build",npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_json:"D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\sd-webui-lobe-theme\\package.json",npm_package_name:"sd-webui-lobe-theme",npm_package_version:"3.0.12",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\Konstantin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"12",OneDrive:"D:\\OneDrive",OneDriveConsumer:"D:\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin;D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\node_modules\\.bin;D:\\AI\\SD\\stable-diffusion-webui-dev\\node_modules\\.bin;D:\\AI\\SD\\node_modules\\.bin;D:\\AI\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;c:\\program files (x86)\\common files\\intel\\shared libraries\\redist\\intel64\\compiler;c:\\windows\\system32;c:\\windows;c:\\windows\\system32\\wbem;c:\\windows\\system32\\windowspowershell\\v1.0\\;c:\\windows\\system32\\openssh\\;c:\\program files\\git\\cmd;c:\\program files (x86)\\winscp\\;d:\\xampp\\php\\;c:\\adb;;c:\\program files\\dotnet\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\nodejs\\;C:\\Users\\Konstantin\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\Konstantin\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\Konstantin\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\Konstantin\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Konstantin\\.dotnet\\tools;C:\\Users\\Konstantin\\AppData\\Roaming\\npm",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD",PROCESSOR_LEVEL:"25",PROCESSOR_REVISION:"5000",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"C:\\Users\\KONSTA~1\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.84.2",TMP:"C:\\Users\\KONSTA~1\\AppData\\Local\\Temp",USERDOMAIN:"LENOVO",USERDOMAIN_ROAMINGPROFILE:"LENOVO",USERNAME:"Konstantin",USERPROFILE:"C:\\Users\\Konstantin",VBOX_MSI_INSTALL_PATH:"C:\\Program Files\\Oracle\\VirtualBox\\",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\Konstantin\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\Konstantin\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4343fc792d-sock",windir:"C:\\Windows"}.NODE_DEBUG&&/\bsemver\b/i.test({ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\Konstantin\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_12168_VFNJOEZPJGTVZARY",COLOR:"1",COLORTERM:"truecolor",CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"LENOVO",ComSpec:"C:\\Windows\\system32\\cmd.exe",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",EDITOR:"C:\\Windows\\notepad.exe",EFC_6792:"1",GIT_ASKPASS:"c:\\Users\\Konstantin\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass.sh",HOME:"C:\\Users\\Konstantin",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\Konstantin",INIT_CWD:"D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\sd-webui-lobe-theme",INTEL_DEV_REDIST:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",LANG:"en_US.UTF-8",LOCALAPPDATA:"C:\\Users\\Konstantin\\AppData\\Local",LOGONSERVER:"\\\\LENOVO",MIC_LD_LIBRARY_PATH:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_EXE:"C:\\Program Files\\nodejs\\\\node.exe",NPM_CLI_JS:"C:\\Program Files\\nodejs\\\\node_modules\\npm\\bin\\npm-cli.js",npm_command:"run-script",npm_config_cache:"C:\\Users\\Konstantin\\AppData\\Local\\npm-cache",npm_config_globalconfig:"C:\\Users\\Konstantin\\AppData\\Roaming\\npm\\etc\\npmrc",npm_config_global_prefix:"C:\\Users\\Konstantin\\AppData\\Roaming\\npm",npm_config_init_module:"C:\\Users\\Konstantin\\.npm-init.js",npm_config_local_prefix:"D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\sd-webui-lobe-theme",npm_config_lockfile:"",npm_config_node_gyp:"C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_noproxy:"",npm_config_npm_version:"10.2.3",npm_config_prefix:"C:\\Users\\Konstantin\\AppData\\Roaming\\npm",npm_config_public_hoist_pattern:"*@umijs/lint*\n\n*changelog*\n\n*remark*\n\n*eslint*\n\n*stylelint*\n\n*prettier*\n\n*commitlint*\n\n*postcss*\n\n*semantic-release*",npm_config_resolution_mode:"highest",npm_config_userconfig:"C:\\Users\\Konstantin\\.npmrc",npm_config_user_agent:"npm/10.2.3 node/v21.2.0 win32 x64 workspaces/false",npm_execpath:"C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js",npm_lifecycle_event:"build",npm_lifecycle_script:"vite build",npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_json:"D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\sd-webui-lobe-theme\\package.json",npm_package_name:"sd-webui-lobe-theme",npm_package_version:"3.0.12",NPM_PREFIX_NPM_CLI_JS:"C:\\Users\\Konstantin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js",NUMBER_OF_PROCESSORS:"12",OneDrive:"D:\\OneDrive",OneDriveConsumer:"D:\\OneDrive",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",OS:"Windows_NT",Path:"D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin;D:\\AI\\SD\\stable-diffusion-webui-dev\\extensions\\node_modules\\.bin;D:\\AI\\SD\\stable-diffusion-webui-dev\\node_modules\\.bin;D:\\AI\\SD\\node_modules\\.bin;D:\\AI\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;c:\\program files (x86)\\common files\\intel\\shared libraries\\redist\\intel64\\compiler;c:\\windows\\system32;c:\\windows;c:\\windows\\system32\\wbem;c:\\windows\\system32\\windowspowershell\\v1.0\\;c:\\windows\\system32\\openssh\\;c:\\program files\\git\\cmd;c:\\program files (x86)\\winscp\\;d:\\xampp\\php\\;c:\\adb;;c:\\program files\\dotnet\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\nodejs\\;C:\\Users\\Konstantin\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\Konstantin\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\Konstantin\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\Konstantin\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Konstantin\\.dotnet\\tools;C:\\Users\\Konstantin\\AppData\\Roaming\\npm",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD",PROCESSOR_LEVEL:"25",PROCESSOR_REVISION:"5000",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SESSIONNAME:"Console",SystemDrive:"C:",SystemRoot:"C:\\Windows",TEMP:"C:\\Users\\KONSTA~1\\AppData\\Local\\Temp",TERM_PROGRAM:"vscode",TERM_PROGRAM_VERSION:"1.84.2",TMP:"C:\\Users\\KONSTA~1\\AppData\\Local\\Temp",USERDOMAIN:"LENOVO",USERDOMAIN_ROAMINGPROFILE:"LENOVO",USERNAME:"Konstantin",USERPROFILE:"C:\\Users\\Konstantin",VBOX_MSI_INSTALL_PATH:"C:\\Program Files\\Oracle\\VirtualBox\\",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"--ms-enable-electron-run-as-node",VSCODE_GIT_ASKPASS_MAIN:"c:\\Users\\Konstantin\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app\\extensions\\git\\dist\\askpass-main.js",VSCODE_GIT_ASKPASS_NODE:"C:\\Users\\Konstantin\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe",VSCODE_GIT_IPC_HANDLE:"\\\\.\\pipe\\vscode-git-4343fc792d-sock",windir:"C:\\Windows"}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=c2,a=u2,i=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=u++;a(e,o,t),c[e]=o,l[o]=t,i[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),p("FULL",`^${l[c.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),p("LOOSE",`^${l[c.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),p("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),p("COERCERTL",l[c.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(l2,l2.exports);var d2=l2.exports;const f2=Object.freeze({loose:!0}),p2=Object.freeze({});var h2=e=>e?"object"!=typeof e?f2:e:p2;const g2=/^[0-9]+$/,m2=(e,t)=>{const n=g2.test(e),r=g2.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var b2={compareIdentifiers:m2,rcompareIdentifiers:(e,t)=>m2(t,e)};const v2=u2,{MAX_LENGTH:y2,MAX_SAFE_INTEGER:w2}=c2,{safeRe:x2,t:S2}=d2,k2=h2,{compareIdentifiers:C2}=b2;var E2=class e{constructor(t,n){if(n=k2(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>y2)throw new TypeError(`version is longer than ${y2} characters`);v2("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?x2[S2.LOOSE]:x2[S2.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>w2||this.major<0)throw new TypeError("Invalid major version");if(this.minor>w2||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>w2||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<w2)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(v2("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),C2(this.major,t.major)||C2(this.minor,t.minor)||C2(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(v2("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return C2(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(v2("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return C2(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===C2(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 O2=E2;var D2=(e,t,n=!1)=>{if(e instanceof O2)return e;try{return new O2(e,t)}catch(r){if(!n)return null;throw r}};const $2=D2;var j2=(e,t)=>{const n=$2(e,t);return n?n.version:null};const P2=D2;var _2=(e,t)=>{const n=P2(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const N2=E2;var I2=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new N2(e instanceof N2?e.version:e,n).inc(t,r,o).version}catch(a){return null}};const T2=D2;var A2=(e,t)=>{const n=T2(e,null,!0),r=T2(t,null,!0),o=n.compare(r);if(0===o)return null;const a=o>0,i=a?n:r,s=a?r:n,l=!!i.prerelease.length;if(!!s.prerelease.length&&!l)return s.patch||s.minor?i.patch?"patch":i.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 F2=E2;var R2=(e,t)=>new F2(e,t).major;const M2=E2;var L2=(e,t)=>new M2(e,t).minor;const B2=E2;var z2=(e,t)=>new B2(e,t).patch;const H2=D2;var W2=(e,t)=>{const n=H2(e,t);return n&&n.prerelease.length?n.prerelease:null};const U2=E2;var V2=(e,t,n)=>new U2(e,n).compare(new U2(t,n));const G2=V2;var q2=(e,t,n)=>G2(t,e,n);const K2=V2;var X2=(e,t)=>K2(e,t,!0);const Y2=E2;var Q2=(e,t,n)=>{const r=new Y2(e,n),o=new Y2(t,n);return r.compare(o)||r.compareBuild(o)};const J2=Q2;var Z2=(e,t)=>e.sort(((e,n)=>J2(e,n,t)));const e5=Q2;var t5=(e,t)=>e.sort(((e,n)=>e5(n,e,t)));const n5=V2;var r5=(e,t,n)=>n5(e,t,n)>0;const o5=V2;var a5=(e,t,n)=>o5(e,t,n)<0;const i5=V2;var s5=(e,t,n)=>0===i5(e,t,n);const l5=V2;var c5=(e,t,n)=>0!==l5(e,t,n);const u5=V2;var d5=(e,t,n)=>u5(e,t,n)>=0;const f5=V2;var p5=(e,t,n)=>f5(e,t,n)<=0;const h5=s5,g5=c5,m5=r5,b5=d5,v5=a5,y5=p5;var w5=(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 h5(e,n,r);case"!=":return g5(e,n,r);case">":return m5(e,n,r);case">=":return b5(e,n,r);case"<":return v5(e,n,r);case"<=":return y5(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const x5=E2,S5=D2,{safeRe:k5,t:C5}=d2;var E5,O5,D5=(e,t)=>{if(e instanceof x5)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=k5[C5.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),k5[C5.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;k5[C5.COERCERTL].lastIndex=-1}else n=e.match(k5[C5.COERCE]);return null===n?null:S5(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var $5=j5;function j5(e){var t=this;if(t instanceof j5||(t=new j5),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function P5(e,t,n){var r=t===e.head?new I5(n,null,t,e):new I5(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function _5(e,t){e.tail=new I5(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function N5(e,t){e.head=new I5(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function I5(e,t,n,r){if(!(this instanceof I5))return new I5(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}j5.Node=I5,j5.create=j5,j5.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(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},j5.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++}},j5.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++}},j5.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)_5(this,arguments[e]);return this.length},j5.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)N5(this,arguments[e]);return this.length},j5.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},j5.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},j5.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},j5.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},j5.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},j5.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},j5.prototype.map=function(e,t){t=t||this;for(var n=new j5,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},j5.prototype.mapReverse=function(e,t){t=t||this;for(var n=new j5,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},j5.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},j5.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},j5.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},j5.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},j5.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new j5;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},j5.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new j5;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var 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},j5.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=P5(this,o,n[r]);return a},j5.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(O5?E5:(O5=1,E5=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(j5)}catch(eoe){}const T5=$5,A5=Symbol("max"),F5=Symbol("length"),R5=Symbol("lengthCalculator"),M5=Symbol("allowStale"),L5=Symbol("maxAge"),B5=Symbol("dispose"),z5=Symbol("noDisposeOnSet"),H5=Symbol("lruList"),W5=Symbol("cache"),U5=Symbol("updateAgeOnGet"),V5=()=>1;const G5=(e,t,n)=>{const r=e[W5].get(t);if(r){const t=r.value;if(q5(e,t)){if(X5(e,r),!e[M5])return}else n&&(e[U5]&&(r.value.now=Date.now()),e[H5].unshiftNode(r));return t.value}},q5=(e,t)=>{if(!t||!t.maxAge&&!e[L5])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[L5]&&n>e[L5]},K5=e=>{if(e[F5]>e[A5])for(let t=e[H5].tail;e[F5]>e[A5]&&null!==t;){const n=t.prev;X5(e,t),t=n}},X5=(e,t)=>{if(t){const n=t.value;e[B5]&&e[B5](n.key,n.value),e[F5]-=n.length,e[W5].delete(n.key),e[H5].removeNode(t)}};class Y5{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const Q5=(e,t,n,r)=>{let o=n.value;q5(e,o)&&(X5(e,n),e[M5]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var J5,Z5,e3,t3,n3=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[A5]=e.max||1/0;const t=e.length||V5;if(this[R5]="function"!=typeof t?V5:t,this[M5]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[L5]=e.maxAge||0,this[B5]=e.dispose,this[z5]=e.noDisposeOnSet||!1,this[U5]=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[A5]=e||1/0,K5(this)}get max(){return this[A5]}set allowStale(e){this[M5]=!!e}get allowStale(){return this[M5]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[L5]=e,K5(this)}get maxAge(){return this[L5]}set lengthCalculator(e){"function"!=typeof e&&(e=V5),e!==this[R5]&&(this[R5]=e,this[F5]=0,this[H5].forEach((e=>{e.length=this[R5](e.value,e.key),this[F5]+=e.length}))),K5(this)}get lengthCalculator(){return this[R5]}get length(){return this[F5]}get itemCount(){return this[H5].length}rforEach(e,t){t=t||this;for(let n=this[H5].tail;null!==n;){const r=n.prev;Q5(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[H5].head;null!==n;){const r=n.next;Q5(this,e,n,t),n=r}}keys(){return this[H5].toArray().map((e=>e.key))}values(){return this[H5].toArray().map((e=>e.value))}reset(){this[B5]&&this[H5]&&this[H5].length&&this[H5].forEach((e=>this[B5](e.key,e.value))),this[W5]=new Map,this[H5]=new T5,this[F5]=0}dump(){return this[H5].map((e=>!q5(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[H5]}set(e,t,n){if((n=n||this[L5])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[R5](t,e);if(this[W5].has(e)){if(o>this[A5])return X5(this,this[W5].get(e)),!1;const a=this[W5].get(e).value;return this[B5]&&(this[z5]||this[B5](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[F5]+=o-a.length,a.length=o,this.get(e),K5(this),!0}const a=new Y5(e,t,o,r,n);return a.length>this[A5]?(this[B5]&&this[B5](e,t),!1):(this[F5]+=a.length,this[H5].unshift(a),this[W5].set(e,this[H5].head),K5(this),!0)}has(e){if(!this[W5].has(e))return!1;const t=this[W5].get(e).value;return!q5(this,t)}get(e){return G5(this,e,!0)}peek(e){return G5(this,e,!1)}pop(){const e=this[H5].tail;return e?(X5(this,e),e.value):null}del(e){X5(this,this[W5].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[W5].forEach(((e,t)=>G5(this,t,!1)))}};function r3(){if(Z5)return J5;Z5=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&h(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&f))+":"+e,a=t.get(n);if(a)return a;const h=this.options.loose,g=h?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(g,O(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(i[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(i[s.CARETTRIM],u),o("caret trim",e);let b=e.split(" ").map((e=>m(e,this.options))).join(" ").split(/\s+/).map((e=>E(e,this.options)));h&&(b=b.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(i[s.COMPARATORLOOSE]))))),o("range list",b);const v=new Map,y=b.map((e=>new r(e,this.options)));for(const t of y){if(p(t))return[t];v.set(t.value,t)}v.size>1&&v.has("")&&v.delete("");const w=[...v.values()];return t.set(n,w),w}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(eoe){return!1}for(let t=0;t<this.set.length;t++)if(D(this.set[t],e,this.options))return!0;return!1}}J5=e;const t=new n3({max:1e3}),n=h2,r=o3(),o=u2,a=E2,{safeRe:i,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:u}=d2,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:f}=c2,p=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},m=(e,t)=>(o("comp",e,t),e=w(e,t),o("caret",e),e=v(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(n,((t,n,r,a,i)=>{let s;return o("tilde",e,t,n,r,a,i),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(a)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:i?(o("replaceTilde pr",i),s=`>=${n}.${r}.${a}-${i} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${a} <${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.loose?i[s.CARETLOOSE]:i[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,i,s)=>{let l;return o("caret",e,t,n,a,i,s),b(n)?l="":b(a)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(i)?l="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===a?`>=${n}.${a}.${i}-${s} <${n}.${a}.${+i+1}-0`:`>=${n}.${a}.${i}-${s} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${i}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===a?`>=${n}.${a}.${i}${r} <${n}.${a}.${+i+1}-0`:`>=${n}.${a}.${i}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${i} <${+n+1}.0.0-0`),o("caret return",l),l}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(n,((n,r,a,i,s,l)=>{o("xRange",e,n,r,a,i,s,l);const c=b(a),u=c||b(i),d=u||b(s),f=d;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(i=0),s=0,">"===r?(r=">=",u?(a=+a+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(l="-0"),n=`${r+a}.${i}.${s}${l}`):u?n=`>=${a}.0.0${l} <${+a+1}.0.0-0`:d&&(n=`>=${a}.${i}.0${l} <${a}.${+i+1}.0-0`),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(i[s.STAR],"")),E=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(i[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),O=e=>(t,n,r,o,a,i,s,l,c,u,d,f,p)=>`${n=b(r)?"":b(o)?`>=${r}.0.0${e?"-0":""}`:b(a)?`>=${r}.${o}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${d}-${f}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),D=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return J5}function o3(){if(t3)return e3;t3=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(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],a=t.match(n);if(!a)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new s(a[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("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(eoe){return!1}return a(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("="))||(!!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e3=t;const n=h2,{safeRe:r,t:o}=d2,a=w5,i=u2,s=E2,l=r3();return e3}const a3=r3();var i3=(e,t,n)=>{try{t=new a3(t,n)}catch(eoe){return!1}return t.test(e)};const s3=r3();var l3=(e,t)=>new s3(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const c3=E2,u3=r3();var d3=(e,t,n)=>{let r=null,o=null,a=null;try{a=new u3(t,n)}catch(eoe){return null}return e.forEach((e=>{a.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new c3(r,n)))})),r};const f3=E2,p3=r3();var h3=(e,t,n)=>{let r=null,o=null,a=null;try{a=new p3(t,n)}catch(eoe){return null}return e.forEach((e=>{a.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new f3(r,n)))})),r};const g3=E2,m3=r3(),b3=r5;var v3=(e,t)=>{e=new m3(e,t);let n=new g3("0.0.0");if(e.test(n))return n;if(n=new g3("0.0.0-0"),e.test(n))return n;n=null;for(let r=0;r<e.set.length;++r){const t=e.set[r];let o=null;t.forEach((e=>{const t=new g3(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!b3(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!b3(n,o)||(n=o)}return n&&e.test(n)?n:null};const y3=r3();var w3=(e,t)=>{try{return new y3(e,t).range||"*"}catch(eoe){return null}};const x3=E2,S3=o3(),{ANY:k3}=S3,C3=r3(),E3=i3,O3=r5,D3=a5,$3=p5,j3=d5;var P3=(e,t,n,r)=>{let o,a,i,s,l;switch(e=new x3(e,r),t=new C3(t,r),n){case">":o=O3,a=$3,i=D3,s=">",l=">=";break;case"<":o=D3,a=j3,i=O3,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(E3(e,t,r))return!1;for(let c=0;c<t.set.length;++c){const n=t.set[c];let u=null,d=null;if(n.forEach((e=>{e.semver===k3&&(e=new S3(">=0.0.0")),u=u||e,d=d||e,o(e.semver,u.semver,r)?u=e:i(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&a(e,d.semver))return!1;if(d.operator===l&&i(e,d.semver))return!1}return!0};const _3=P3;var N3=(e,t,n)=>_3(e,t,">",n);const I3=P3;var T3=(e,t,n)=>I3(e,t,"<",n);const A3=r3();var F3=(e,t,n)=>(e=new A3(e,n),t=new A3(t,n),e.intersects(t,n));const R3=i3,M3=V2;const L3=r3(),B3=o3(),{ANY:z3}=B3,H3=i3,W3=V2,U3=[new B3(">=0.0.0-0")],V3=[new B3(">=0.0.0")],G3=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===z3){if(1===t.length&&t[0].semver===z3)return!0;e=n.includePrerelease?U3:V3}if(1===t.length&&t[0].semver===z3){if(n.includePrerelease)return!0;t=V3}const r=new Set;let o,a,i,s,l,c,u;for(const p of e)">"===p.operator||">="===p.operator?o=q3(o,p,n):"<"===p.operator||"<="===p.operator?a=K3(a,p,n):r.add(p.semver);if(r.size>1)return null;if(o&&a){if(i=W3(o.semver,a.semver,n),i>0)return null;if(0===i&&(">="!==o.operator||"<="!==a.operator))return null}for(const p of r){if(o&&!H3(p,String(o),n))return null;if(a&&!H3(p,String(a),n))return null;for(const e of t)if(!H3(p,String(e),n))return!1;return!0}let d=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver,f=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===a.operator&&0===d.prerelease[0]&&(d=!1);for(const p of t){if(u=u||">"===p.operator||">="===p.operator,c=c||"<"===p.operator||"<="===p.operator,o)if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),">"===p.operator||">="===p.operator){if(s=q3(o,p,n),s===p&&s!==o)return!1}else if(">="===o.operator&&!H3(o.semver,String(p),n))return!1;if(a)if(d&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===d.major&&p.semver.minor===d.minor&&p.semver.patch===d.patch&&(d=!1),"<"===p.operator||"<="===p.operator){if(l=K3(a,p,n),l===p&&l!==a)return!1}else if("<="===a.operator&&!H3(a.semver,String(p),n))return!1;if(!p.operator&&(a||o)&&0!==i)return!1}return!(o&&c&&!a&&0!==i)&&(!(a&&u&&!o&&0!==i)&&(!f&&!d))},q3=(e,t,n)=>{if(!e)return t;const r=W3(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},K3=(e,t,n)=>{if(!e)return t;const r=W3(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var X3=(e,t,n={})=>{if(e===t)return!0;e=new L3(e,n),t=new L3(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=G3(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const Y3=d2,Q3=c2,J3=E2,Z3=b2,e4=(e,t,n)=>{const r=[];let o=null,a=null;const i=e.sort(((e,t)=>M3(e,t,n)));for(const u of i){R3(u,t,n)?(a=u,o||(o=u)):(a&&r.push([o,a]),a=null,o=null)}o&&r.push([o,null]);const s=[];for(const[u,d]of r)u===d?s.push(u):d||u!==i[0]?d?u===i[0]?s.push(`<=${d}`):s.push(`${u} - ${d}`):s.push(`>=${u}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};const t4=n({parse:D2,valid:j2,clean:_2,inc:I2,diff:A2,major:R2,minor:L2,patch:z2,prerelease:W2,compare:V2,rcompare:q2,compareLoose:X2,compareBuild:Q2,sort:Z2,rsort:t5,gt:r5,lt:a5,eq:s5,neq:c5,gte:d5,lte:p5,cmp:w5,coerce:D5,Comparator:o3(),Range:r3(),satisfies:i3,toComparators:l3,maxSatisfying:d3,minSatisfying:h3,minVersion:v3,validRange:w3,outside:P3,gtr:N3,ltr:T3,intersects:F3,simplifyRange:e4,subset:X3,SemVer:J3,re:Y3.re,src:Y3.src,tokens:Y3.t,SEMVER_SPEC_VERSION:Q3.SEMVER_SPEC_VERSION,RELEASE_TYPES:Q3.RELEASE_TYPES,compareIdentifiers:Z3.compareIdentifiers,rcompareIdentifiers:Z3.rcompareIdentifiers}),n4="https://github.com/lobehub/sd-webui-lobe-theme",r4="3.0.12",o4=[{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"},{label:"Español",value:"es_ES"}],a4=async e=>{await fetch("/lobe/config",{body:JSON.stringify(e),headers:{"Content-Type":"application/json"},method:"POST"})},i4={confirmPageUnload:!1,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},s4={currentTab:"tab_txt2img",latestVersion:r4,loading:!0,localeOptions:o4,setting:i4,themeMode:"dark",version:r4},l4="SD-LOBE-SETTING",c4=(e,t)=>({onInit:async()=>{e((()=>({loading:!0})),!1,"onInit");const{onLoadSetting:n,onLoadVersion:r,onLoadLatestVersion:o,onLoadLocalOptions:a}=t();await a(),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/${n4.replace("https://github.com/","")}/releases/latest`),t=await e.json();return t&&t.tag_name&&t4.clean(t.tag_name)||r4})();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:o4})();e((()=>({localeOptions:t})),!1,"onLoadLocalOptions")},onLoadSetting:async()=>{let t;console.time("🤯 [setting] loaded");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&&(console.info("🤯 [setting] loaded webui setting"),t=n),!t){const e=localStorage.getItem(l4);e&&(console.info("🤯 [setting] loaded local setting"),t=JSON.parse(e))}if(!t){const e=localStorage.getItem("SD-KITCHEN-SETTING");e&&(console.info("🤯 [setting] loaded fallback local setting"),t=JSON.parse(e))}t||(console.info("🤯 [setting] loaded default setting"),t=i4);const r={...i4,...t};await a4(r),e((()=>({setting:r})),!1,"onLoadSetting"),console.table(r),console.timeEnd("🤯 [setting] loaded")},onLoadVersion:async()=>{const t=await(async()=>{const e=await fetch("/lobe/package"),t=await e.json();return t&&!t.empty&&t.version?t.version:r4})();e((()=>({version:t})),!1,"onLoadVersion")},onSetSetting:async n=>{const r={...t().setting,...n};localStorage.setItem(l4,JSON.stringify(r)),await a4(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;console.debug("🤯 [tab] onChange",r),r&&r!==t().currentTab&&e({currentTab:r},!1,"setCurrentTab")}}),u4=e=>({...i4,...e.setting}),d4=e=>e.currentTab,f4=e=>e.themeMode,p4=(h4?r2(h4):r2)(i2(((...e)=>({...s4,...c4(...e)}))));var h4;const g4=JSON.parse(localStorage.getItem(l4));function m4(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}e1.use(M1).use(D1).init({backend:{loadPath:"/lobe/locales/{{lng}}"},debug:!1,fallbackLng:"en_US",lng:(null==g4?void 0:g4.i18n)||"en_US"});const b4="%[a-f0-9]{2}",v4=new RegExp("("+b4+")|([^%]+?)","gi"),y4=new RegExp("("+b4+")+","gi");function w4(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],w4(n),w4(r))}function x4(e){try{return decodeURIComponent(e)}catch{let t=e.match(v4)||[];for(let n=1;n<t.length;n++)t=(e=w4(t,n).join("")).match(v4)||[];return e}}function S4(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"<22><>","%FF%FE":"<22><>"};let n=y4.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=x4(n[0]);e!==n[0]&&(t[n[0]]=e)}n=y4.exec(e)}t["%C2"]="<22>";const r=Object.keys(t);for(const o of r)e=e.replace(new RegExp(o,"g"),t[o]);return e}(e)}}function k4(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function C4(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);(null==t?void 0:t.enumerable)&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);if(o.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,o)}}return n}const E4=e=>null==e,O4=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),D4=Symbol("encodeFragmentIdentifier");function $4(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function j4(e,t){return t.encode?t.strict?O4(e):encodeURIComponent(e):e}function P4(e,t){return t.decode?S4(e):e}function _4(e){return Array.isArray(e)?e.sort():"object"==typeof e?_4(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function N4(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function I4(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 T4(e){const t=(e=N4(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function A4(e,t){$4((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!o&&P4(n,e).includes(e.arrayFormatSeparator);n=a?P4(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>P4(t,e))):null===n?n:P4(n,e);r[t]=i};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?P4(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>P4(t,e)));void 0!==r[t]?r[t]=[...r[t],...a]:r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[a,i]=k4(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:P4(i,t),n(P4(a,t),i,r)}for(const[o,a]of Object.entries(r))if("object"==typeof a&&null!==a)for(const[e,n]of Object.entries(a))a[e]=I4(n,t);else r[o]=I4(a,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 Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=_4(n):e[t]=n,e}),Object.create(null))}function F4(e,t){if(!e)return"";$4((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&E4(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,[j4(t,e),"[",o,"]"].join("")]:[...n,[j4(t,e),"[",j4(o,e),"]=",j4(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[j4(t,e),"[]"].join("")]:[...n,[j4(t,e),"[]=",j4(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,[j4(t,e),":list="].join("")]:[...n,[j4(t,e),":list=",j4(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?[[j4(n,e),t,j4(o,e)].join("")]:[[r,j4(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,j4(t,e)]:[...n,[j4(t,e),"=",j4(r,e)].join("")]}}(t),o={};for(const[i,s]of Object.entries(e))n(i)||(o[i]=s);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const o=e[n];return void 0===o?"":null===o?j4(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?j4(n,t)+"[]":o.reduce(r(n),[]).join("&"):j4(n,t)+"="+j4(o,t)})).filter((e=>e.length>0)).join("&")}function R4(e,t){var n;t={decode:!0,...t};let[r,o]=k4(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:A4(T4(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:P4(o,t)}:{}}}function M4(e,t){t={encode:!0,strict:!0,[D4]:!0,...t};const n=N4(e.url).split("?")[0]||"";let r=F4({...A4(T4(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[D4]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function L4(e,t,n){n={parseFragmentIdentifier:!0,[D4]:!1,...n};const{url:r,query:o,fragmentIdentifier:a}=R4(e,n);return M4({url:r,query:C4(o,t),fragmentIdentifier:a},n)}const B4=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(e,t,n){return L4(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:T4,parse:A4,parseUrl:R4,pick:L4,stringify:F4,stringifyUrl:M4},Symbol.toStringTag,{value:"Module"})),z4=()=>{const[e,t]=z.useState((()=>{try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}})());return z.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)"),n=e=>{t(e.matches)};return e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}}),[]),e},H4={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"}},W4={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%)"}},U4=z.memo((({children:e})=>{const{onSetThemeMode:t,themeMode:n}=p4((e=>({onInit:e.onInit,onSetThemeMode:e.onSetThemeMode,themeMode:e.themeMode})),m4),r=p4(u4,LY),o=z4();z.useEffect((()=>{const e=String(B4.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 a=z.useCallback((()=>{let e={},t={};if(r.primaryColor)if("kitchen"===r.primaryColor)e=H4[n];else{const t=bX[r.primaryColor];e=aZ({appearance:n,scale:t,type:"Primary"})}if(r.neutralColor)if("kitchen"===r.neutralColor)t=W4[n];else{const e=sZ[r.neutralColor];t=iZ({appearance:n,scale:e})}return{...e,...t}}),[r.primaryColor,r.neutralColor,n]);return r&&Q.jsx(c0,{customToken:a,enableWebfonts:r.enableWebFont,themeMode:n,children:e})})),V4=ZB((({css:e,token:t,cx:n,stylish:r,prefixCls:o})=>{const a=`${o}-highlighter`;return{container:e`
pointer-events: none;
position: absolute;
overflow: hidden auto;
padding: calc(8px + var(--input-border-width));
pre {
font-family: var(--font) !important;
font-size: var(--input-text-size) !important;
line-height: 1.5 !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(`${a}-shiki`,e`
margin: 0;
.shiki {
overflow-x: auto;
padding: 0;
background: none !important;
code,
code span {
font-family: var(--font) !important;
}
}
`)}}));"undefined"!=typeof globalThis?globalThis:void 0!=={}||("undefined"!=typeof global?global:"undefined"!=typeof self&&self);var G4,q4={exports:{}};G4=()=>{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 a=null,i=!1;class s{static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){const o=e.charCodeAt(n);let a=o,i=!1;if(o>=55296&&o<=56319&&n+1<r){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=65536+(o-55296<<10)|t-56320,i=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,i&&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 a=r?new Uint32Array(n+1):null;r&&(a[n]=t);const i=new Uint8Array(n);let l=0;for(let s=0;s<t;s++){const n=e.charCodeAt(s);let c=n,u=!1;if(n>=55296&&n<=56319&&s+1<t){const t=e.charCodeAt(s+1);t>=56320&&t<=57343&&(c=65536+(n-55296<<10)|t-56320,u=!0)}r&&(o[s]=l,u&&(o[s+1]=l),c<=127?a[l+0]=s:c<=2047?(a[l+0]=s,a[l+1]=s):c<=65535?(a[l+0]=s,a[l+1]=s,a[l+2]=s):(a[l+0]=s,a[l+1]=s,a[l+2]=s,a[l+3]=s)),c<=127?i[l++]=c:c<=2047?(i[l++]=192|(1984&c)>>>6,i[l++]=128|(63&c)>>>0):c<=65535?(i[l++]=224|(61440&c)>>>12,i[l++]=128|(4032&c)>>>6,i[l++]=128|(63&c)>>>0):(i[l++]=240|(1835008&c)>>>18,i[l++]=128|(258048&c)>>>12,i[l++]=128|(4032&c)>>>6,i[l++]=128|(63&c)>>>0),u&&s++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=i,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}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,!a)throw new Error("Must invoke loadWASM first.");this._onigBinding=a,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=a._omalloc(1e4)),l._sharedPtrInUse=!0,a.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(a)}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(!a)throw new Error("Must invoke loadWASM first.");const t=[],n=[];for(let l=0,c=e.length;l<c;l++){const r=new s(e[l]);t[l]=r.createString(a),n[l]=r.utf8Length}const r=a._omalloc(4*e.length);a.HEAPU32.set(t,r/4);const o=a._omalloc(4*e.length);a.HEAPU32.set(n,o/4);const i=a._createOnigScanner(r,o,e.length);for(let s=0,l=e.length;s<l;s++)a._ofree(t[s]);a._ofree(o),a._ofree(r),0===i&&function(e){throw new Error(e.UTF8ToString(e._getLastOnigError()))}(a),this._onigBinding=a,this._ptr=i}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=i,o=0;if("number"==typeof n?(8&n&&(r=!0),o=n):"boolean"==typeof n&&(r=n),"string"==typeof e){e=new l(e);const n=this._findNextMatchSync(e,t,r,o);return e.dispose(),n}return this._findNextMatchSync(e,t,r,o)}_findNextMatchSync(e,t,n,r){const o=this._onigBinding;let a;if(a=n?o._findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r):o._findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r),0===a)return null;const i=o.HEAPU32;let s=a/4;const l=i[s++],c=i[s++];let u=[];for(let d=0;d<c;d++){const t=e.convertUtf8OffsetToUtf16(i[s++]),n=e.convertUtf8OffsetToUtf16(i[s++]);u[d]={start:t,end:n,length:n-t}}return{index:l,captureIndices:u}}}t.OnigScanner=c;let u=!1,d=null;t.loadWASM=function(e){if(u)return d;let t,n,r,i;if(u=!0,"function"==typeof e.instantiator)t=e.instantiator,n=e.print;else{let r;!function(e){return void 0!==e.data}(e)?r=e:(r=e.data,n=e.print),t=function(e){return"undefined"!=typeof Response&&e instanceof Response}(r)?"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(r):function(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}(r):function(e){return t=>WebAssembly.instantiate(e,t)}(r)}return d=new Promise(((e,t)=>{r=e,i=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=>{a=e,n()}))}(t,n,r,i),d},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new c(e)},t.setDefaultDebugCall=function(e){i=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,n,r=void 0!==(e=e||{})?e:{};r.ready=new Promise((function(e,r){t=e,n=r}));var o,a=Object.assign({},r),i=!1;o=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),function(e,t){e||k(t)}("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);var s,l,c=r.print||console.log.bind(console),u=r.printErr||console.warn.bind(console);Object.assign(r,a),a=null,r.arguments&&r.arguments,r.thisProgram&&r.thisProgram,r.quit&&r.quit,r.wasmBinary&&(s=r.wasmBinary),r.noExitRuntime,"object"!=typeof WebAssembly&&k("no native wasm support detected");var d,f,p,h=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function m(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&g)return g.decode(e.subarray(t,o));for(var a="";t<o;){var i=e[t++];if(128&i){var s=63&e[t++];if(192!=(224&i)){var l=63&e[t++];if((i=224==(240&i)?(15&i)<<12|s<<6|l:(7&i)<<18|s<<12|l<<6|63&e[t++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a}function b(e){d=e,r.HEAP8=new Int8Array(e),r.HEAP16=new Int16Array(e),r.HEAP32=new Int32Array(e),r.HEAPU8=f=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=p=new Uint32Array(e),r.HEAPF32=new Float32Array(e),r.HEAPF64=new Float64Array(e)}r.INITIAL_MEMORY;var v=[],y=[],w=[],x=0,S=null;function k(e){r.onAbort&&r.onAbort(e),u(e="Aborted("+e+")"),h=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}var C,E,O,D="data:application/octet-stream;base64,";function $(e){return e.startsWith(D)}function j(e){try{if(e==C&&s)return new Uint8Array(s);if(o)return o(e);throw"both async and sync fetching of the wasm failed"}catch(t){k(t)}}function P(e){for(;e.length>0;)e.shift()(r)}function _(e){try{return l.grow(e-d.byteLength+65535>>>16),b(l.buffer),1}catch(t){}}$(C="onig.wasm")||(O=C,C=r.locateFile?r.locateFile(O,""):""+O),E="undefined"!=typeof dateNow?dateNow:()=>performance.now();var N=[null,[],[]];function I(e,t){var n=N[e];0===t||10===t?((1===e?c:u)(m(n,0)),n.length=0):n.push(t)}var T,A={emscripten_get_now:E,emscripten_memcpy_big:function(e,t,n){f.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=f.length,r=2147483648;if((e>>>=0)>r)return!1;for(var o=1;o<=4;o*=2){var a=n*(1+.2/o);if(a=Math.min(a,e+100663296),_(Math.min(r,(t=Math.max(e,a))+(65536-t%65536)%65536)))return!0}return!1},fd_write:function(e,t,n,r){for(var o=0,a=0;a<n;a++){var i=p[t>>2],s=p[t+4>>2];t+=8;for(var l=0;l<s;l++)I(e,f[i+l]);o+=s}return p[r>>2]=o,0}};function F(e){function n(){T||(T=!0,r.calledRun=!0,h||(P(y),t(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),w.unshift(e);var e;P(w)}()))}x>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),v.unshift(e);var e;P(v)}(),x>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:A,wasi_snapshot_preview1:A};function t(e,t){var n=e.exports;r.asm=n,b((l=r.asm.memory).buffer),r.asm.__indirect_function_table,function(e){y.unshift(e)}(r.asm.__wasm_call_ctors),function(e){if(x--,r.monitorRunDependencies&&r.monitorRunDependencies(x),0==x&&S){var t=S;S=null,t()}}()}function o(e){t(e.instance)}function a(t){return(s||!i||"function"!=typeof fetch?Promise.resolve().then((function(){return j(C)})):fetch(C,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+C+"'";return e.arrayBuffer()})).catch((function(){return j(C)}))).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){u("failed to asynchronously prepare wasm: "+e),k(e)}))}if(x++,r.monitorRunDependencies&&r.monitorRunDependencies(x),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(c){u("Module.instantiateWasm callback failed with error: "+c),n(c)}(s||"function"!=typeof WebAssembly.instantiateStreaming||$(C)||"function"!=typeof fetch?a(o):fetch(C,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(o,(function(e){return u("wasm streaming compile failed: "+e),u("falling back to ArrayBuffer instantiation"),a(o)}))}))).catch(n)}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r.___errno_location=function(){return(r.___errno_location=r.asm.__errno_location).apply(null,arguments)},r._omalloc=function(){return(r._omalloc=r.asm.omalloc).apply(null,arguments)},r._ofree=function(){return(r._ofree=r.asm.ofree).apply(null,arguments)},r._getLastOnigError=function(){return(r._getLastOnigError=r.asm.getLastOnigError).apply(null,arguments)},r._createOnigScanner=function(){return(r._createOnigScanner=r.asm.createOnigScanner).apply(null,arguments)},r._freeOnigScanner=function(){return(r._freeOnigScanner=r.asm.freeOnigScanner).apply(null,arguments)},r._findNextOnigScannerMatch=function(){return(r._findNextOnigScannerMatch=r.asm.findNextOnigScannerMatch).apply(null,arguments)},r._findNextOnigScannerMatchDbg=function(){return(r._findNextOnigScannerMatchDbg=r.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},r.stackSave=function(){return(r.stackSave=r.asm.stackSave).apply(null,arguments)},r.stackRestore=function(){return(r.stackRestore=r.asm.stackRestore).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.dynCall_jiji).apply(null,arguments)},r.UTF8ToString=function(e,t){return e?m(f,e,t):""},S=function e(){T||F(),T||(S=e)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return F(),e.ready});e.exports=t}},t={},function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}(770);var e,t};var K4,X4,Y4=q4.exports=G4(),Q4={exports:{}};Q4.exports=(K4={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){const t=n.getLanguageId(e),r=n.getTokenType(e),o=n.getFontStyle(e),a=n.getForeground(e),i=n.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:o,foreground:a,background:i})},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,a,i,s){let l=n.getLanguageId(e),c=n.getTokenType(e),u=n.containsBalancedBrackets(e)?1:0,d=n.getFontStyle(e),f=n.getForeground(e),p=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==a&&(d=a),0!==i&&(f=i),0!==s&&(p=s),(l<<0|c<<8|u<<10|d<<11|f<<15|p<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class a{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 i(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?a._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(a.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=a,a._NULL_SCOPE_METADATA=new o(0,0),a.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;class i{constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map((([e,t])=>r.escapeRegExpCharacters(e)));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);return t?this.values.get(t[1]):void 0}}},947:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LineTokens=t.BalancedBracketSelectors=t.StateStack=t.AttributedScopeStack=t.Grammar=t.createGrammar=void 0;const r=n(350),o=n(36),a=n(736),i=n(44),s=n(792),l=n(583),c=n(878),u=n(996),d=n(47);function f(e,t,n,r,o){const i=a.createMatchers(t,p),l=s.RuleFactory.getCompiledRuleId(n,r,o.repository);for(const a of i)e.push({debugSelector:t,matcher:a.matcher,ruleId:l,grammar:o,priority:a.priority})}function p(e,t){if(t.length<e.length)return!1;let n=0;return e.every((e=>{for(let r=n;r<t.length;r++)if(h(t[r],e))return n=r+1,!0;return!1}))}function h(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}t.createGrammar=function(e,t,n,r,o,a,i,s){return new g(e,t,n,r,o,a,i,s)};class g{constructor(e,t,n,r,o,i,s,l){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=l,this._basicScopeAttributesProvider=new u.BasicScopeAttributesProvider(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=m(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const c of Object.keys(o)){const e=a.createMatchers(c,p);for(const t of e)this._tokenTypeMatchers.push({matcher:t.matcher,type:o[c]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e=[],t=this._rootScopeName,n=(e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e))(t);if(n){const r=n.injections;if(r)for(let t in r)f(e,t,r[t],this,n);const o=this._grammarRepository.injections(t);o&&o.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&f(e,t,n,this,n)}}))}return e.sort(((e,t)=>e.priority-t.priority)),e}getInjections(){if(null===this._injections&&(this._injections=this._collectInjections(),r.DebugFlags.InDebugMode&&this._injections.length>0)){console.log(`Grammar ${this._rootScopeName} contains the following injections:`);for(const e of this._injections)console.log(` - ${e.debugSelector}`)}return this._injections}registerRule(e){const t=++this._lastRuleId,n=e(s.ruleIdFromNumber(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[s.ruleIdToNumber(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=m(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let a;if(-1===this._rootId&&(this._rootId=s.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),t&&t!==v.NULL)a=!1,t.reset();else{a=!0;const e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=o.EncodedTokenAttributes.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),i=this.getRule(this._rootId).getName(null,null);let s;s=i?b.createRootAndLookUpScopeName(i,r,this):b.createRoot("unknown",r),t=new v(null,this._rootId,-1,-1,!1,null,s,s)}e+="\n";const l=this.createOnigString(e),c=l.content.length,u=new y(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=d._tokenizeString(this,l,a,0,t,u,!0,r);return i.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}}function m(e,t){return(e=c.clone(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}t.Grammar=g;class b{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static createRoot(e,t){return new b(null,new l.ScopeStack(null,e),t)}static createRootAndLookUpScopeName(e,t,n){const r=n.getMetadataForScope(e),o=new l.ScopeStack(null,e),a=n.themeProvider.themeMatch(o),i=b.mergeAttributes(t,r,a);return new b(null,o,i)}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,a=0,i=0;return null!==n&&(r=n.fontStyle,a=n.foregroundId,i=n.backgroundId),o.EncodedTokenAttributes.set(e,t.languageId,t.tokenType,null,r,a,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),a=n.themeProvider.themeMatch(o),i=b.mergeAttributes(e.tokenAttributes,r,a);return new b(e,o,i)}getScopeNames(){return this.scopePath.getSegments()}}t.AttributedScopeStack=b;class v{constructor(e,t,n,r,o,a,i,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=i,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&&v._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(){v._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,r,o,a,i){return new v(this,e,t,n,r,o,a,i)}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 v(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}}t.StateStack=v,v.NULL=new v(null,0,0,0,!1,null,null,null),t.BalancedBracketSelectors=class{constructor(e,t){this.allowAny=!1,this.balancedBracketScopes=e.flatMap((e=>"*"===e?(this.allowAny=!0,[]):a.createMatchers(e,p).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>a.createMatchers(e,p).map((e=>e.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}};class y{constructor(e,t,n,o){this.balancedBracketSelectors=o,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,r.DebugFlags.InDebugMode?this._lineText=t:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let a=e.tokenAttributes,i=!1;if((null==(n=this.balancedBracketSelectors)?void 0:n.matchesAlways)&&(i=!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)&&(a=o.EncodedTokenAttributes.set(a,0,o.toOptionalTokenType(e.type),null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(t))}if(i&&(a=o.EncodedTokenAttributes.set(a,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a)return void(this._lastTokenEndIndex=t);if(r.DebugFlags.InDebugMode){const n=e.getScopeNames();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<n.length;e++)console.log(" * "+n[e])}return this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),void(this._lastTokenEndIndex=t)}const a=e.getScopeNames();if(r.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(let e=0;e<a.length;e++)console.log(" * "+a[e])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:a}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,o=this._binaryTokens.length;r<o;r++)n[r]=this._binaryTokens[r];return n}}t.LineTokens=y},965:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseInclude=t.TopLevelRepositoryReference=t.TopLevelReference=t.RelativeReference=t.SelfReference=t.BaseReference=t.ScopeDependencyProcessor=t.ExternalReferenceCollector=t.TopLevelRepositoryRuleReference=t.TopLevelRuleReference=void 0;const r=n(878);class o{constructor(e){this.scopeName=e}toKey(){return this.scopeName}}t.TopLevelRuleReference=o;class a{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}}t.TopLevelRepositoryRuleReference=a;class i{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}}function s(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 i=n.lookup(t);e instanceof o?c({baseGrammar:i,selfGrammar:a},r):l(e.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},r);const s=n.injections(e.scopeName);if(s)for(const l of s)r.add(new o(l))}function l(e,t,n){t.repository&&t.repository[e]&&u([t.repository[e]],t,n)}function c(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&u(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&u(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function u(e,t,n){for(const i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const e=i.repository?r.mergeObjects({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&u(i.patterns,{...t,repository:e},n);const s=i.include;if(!s)continue;const d=m(s);switch(d.kind){case 0:c({...t,selfGrammar:t.baseGrammar},n);break;case 1:c(t,n);break;case 2:l(d.ruleName,{...t,repository:e},n);break;case 3:case 4:const r=d.scopeName===t.selfGrammar.scopeName?t.selfGrammar:d.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){const o={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};4===d.kind?l(d.ruleName,o,n):c(o,n)}else 4===d.kind?n.add(new a(d.scopeName,d.ruleName)):n.add(new o(d.scopeName))}}}t.ExternalReferenceCollector=i,t.ScopeDependencyProcessor=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new o(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new i;for(const n of e)s(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof o){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName))continue;if(this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};class d{constructor(){this.kind=0}}t.BaseReference=d;class f{constructor(){this.kind=1}}t.SelfReference=f;class p{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=p;class h{constructor(e){this.scopeName=e,this.kind=3}}t.TopLevelReference=h;class g{constructor(e,t){this.scopeName=e,this.ruleName=t,this.kind=4}}function m(e){if("$base"===e)return new d;if("$self"===e)return new f;const t=e.indexOf("#");if(-1===t)return new h(e);if(0===t)return new p(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new g(n,r)}}t.TopLevelRepositoryReference=g,t.parseInclude=m},391:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(947),t)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStackElement=t._tokenizeString=void 0;const r=n(350),o=n(44),a=n(792),i=n(878);class s{constructor(e,t){this.stack=e,this.stoppedEarly=t}}function l(e,t,n,o,l,d,p,h){const g=t.content.length;let m=!1,b=-1;if(p){const i=function(e,t,n,o,i,s){let l=i.beginRuleCapturedEOL?0:-1;const c=[];for(let r=i;r;r=r.pop()){const t=r.getRule(e);t instanceof a.BeginWhileRule&&c.push({rule:t,stack:r})}for(let d=c.pop();d;d=c.pop()){const{ruleScanner:c,findOptions:p}=u(d.rule,e,d.stack.endRule,n,o===l),h=c.findNextMatchSync(t,o,p);if(r.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(c.toString())),!h){r.DebugFlags.InDebugMode&&console.log(" popping "+d.rule.debugName+" - "+d.rule.debugWhileRegExp),i=d.stack.pop();break}if(h.ruleId!==a.whileRuleId){i=d.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(s.produce(d.stack,h.captureIndices[0].start),f(e,t,n,d.stack,s,d.rule.whileCaptures,h.captureIndices),s.produce(d.stack,h.captureIndices[0].end),l=h.captureIndices[0].end,h.captureIndices[0].end>o&&(o=h.captureIndices[0].end,n=!1))}return{stack:i,linePos:o,anchorPosition:l,isFirstLine:n}}(e,t,n,o,l,d);l=i.stack,o=i.linePos,n=i.isFirstLine,b=i.anchorPosition}const v=Date.now();for(;!m;){if(0!==h&&Date.now()-v>h)return new s(l,!0);y()}return new s(l,!1);function y(){r.DebugFlags.InDebugMode&&(console.log(""),console.log(`@@scanNext ${o}: |${t.content.substr(o).replace(/\n$/,"\\n")}|`));const s=function(e,t,n,o,a,s){const l=function(e,t,n,o,a,s){const l=a.getRule(e),{ruleScanner:u,findOptions:d}=c(l,e,a.endRule,n,o===s);let f=0;r.DebugFlags.InDebugMode&&(f=i.performanceNow());const p=u.findNextMatchSync(t,o,d);if(r.DebugFlags.InDebugMode){const e=i.performanceNow()-f;e>5&&console.warn(`Rule ${l.debugName} (${l.id}) matching took ${e} against '${t}'`),console.log(` scanning for (linePos: ${o}, anchorPosition: ${s})`),console.log(u.toString()),p&&console.log(`matched rule id: ${p.ruleId} from ${p.captureIndices[0].start} to ${p.captureIndices[0].end}`)}return p?{captureIndices:p.captureIndices,matchedRuleId:p.ruleId}:null}(e,t,n,o,a,s),u=e.getInjections();if(0===u.length)return l;const d=function(e,t,n,o,a,i,s){let l,u=Number.MAX_VALUE,d=null,f=0;const p=i.contentNameScopesList.getScopeNames();for(let h=0,g=e.length;h<g;h++){const i=e[h];if(!i.matcher(p))continue;const g=t.getRule(i.ruleId),{ruleScanner:m,findOptions:b}=c(g,t,null,o,a===s),v=m.findNextMatchSync(n,a,b);if(!v)continue;r.DebugFlags.InDebugMode&&(console.log(` matched injection: ${i.debugSelector}`),console.log(m.toString()));const y=v.captureIndices[0].start;if(!(y>=u)&&(u=y,d=v.captureIndices,l=v.ruleId,f=i.priority,u===a))break}return d?{priorityMatch:-1===f,captureIndices:d,matchedRuleId:l}:null}(u,e,t,n,o,a,s);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,p=d.captureIndices[0].start;return p<f||d.priorityMatch&&p===f?d:l}(e,t,n,o,l,b);if(!s)return r.DebugFlags.InDebugMode&&console.log(" no more matches."),d.produce(l,g),void(m=!0);const u=s.captureIndices,p=s.matchedRuleId,h=!!(u&&u.length>0)&&u[0].end>o;if(p===a.endRuleId){const a=l.getRule(e);r.DebugFlags.InDebugMode&&console.log(" popping "+a.debugName+" - "+a.debugEndRegExp),d.produce(l,u[0].start),l=l.withContentNameScopesList(l.nameScopesList),f(e,t,n,l,d,a.endCaptures,u),d.produce(l,u[0].end);const i=l;if(l=l.parent,b=i.getAnchorPos(),!h&&i.getEnterPos()===o)return r.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),l=i,d.produce(l,g),void(m=!0)}else{const i=e.getRule(p);d.produce(l,u[0].start);const s=l,c=i.getName(t.content,u),v=l.contentNameScopesList.pushAttributed(c,e);if(l=l.push(p,o,b,u[0].end===g,null,v,v),i instanceof a.BeginEndRule){const o=i;r.DebugFlags.InDebugMode&&console.log(" pushing "+o.debugName+" - "+o.debugBeginRegExp),f(e,t,n,l,d,o.beginCaptures,u),d.produce(l,u[0].end),b=u[0].end;const a=o.getContentName(t.content,u),c=v.pushAttributed(a,e);if(l=l.withContentNameScopesList(c),o.endHasBackReferences&&(l=l.withEndRule(o.getEndWithResolvedBackReferences(t.content,u))),!h&&s.hasSameRuleAs(l))return r.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),d.produce(l,g),void(m=!0)}else if(i instanceof a.BeginWhileRule){const o=i;r.DebugFlags.InDebugMode&&console.log(" pushing "+o.debugName),f(e,t,n,l,d,o.beginCaptures,u),d.produce(l,u[0].end),b=u[0].end;const a=o.getContentName(t.content,u),c=v.pushAttributed(a,e);if(l=l.withContentNameScopesList(c),o.whileHasBackReferences&&(l=l.withEndRule(o.getWhileWithResolvedBackReferences(t.content,u))),!h&&s.hasSameRuleAs(l))return r.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),l=l.pop(),d.produce(l,g),void(m=!0)}else{const o=i;if(r.DebugFlags.InDebugMode&&console.log(" matched "+o.debugName+" - "+o.debugMatchRegExp),f(e,t,n,l,d,o.captures,u),d.produce(l,u[0].end),l=l.pop(),!h)return r.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),l=l.safePop(),d.produce(l,g),void(m=!0)}}u[0].end>o&&(o=u[0].end,n=!1)}}function c(e,t,n,o,a){return r.UseOnigurumaFindOptions?{ruleScanner:e.compile(t,n),findOptions:d(o,a)}:{ruleScanner:e.compileAG(t,n,o,a),findOptions:0}}function u(e,t,n,o,a){return r.UseOnigurumaFindOptions?{ruleScanner:e.compileWhile(t,n),findOptions:d(o,a)}:{ruleScanner:e.compileWhileAG(t,n,o,a),findOptions:0}}function d(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function f(e,t,n,r,a,i,s){if(0===i.length)return;const c=t.content,u=Math.min(i.length,s.length),d=[],f=s[0].end;for(let h=0;h<u;h++){const t=i[h];if(null===t)continue;const u=s[h];if(0===u.length)continue;if(u.start>f)break;for(;d.length>0&&d[d.length-1].endPos<=u.start;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?a.produceFromScopes(d[d.length-1].scopes,u.start):a.produce(r,u.start),t.retokenizeCapturedWithRuleId){const i=t.getName(c,s),d=r.contentNameScopesList.pushAttributed(i,e),f=t.getContentName(c,s),p=d.pushAttributed(f,e),h=r.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,p),g=e.createOnigString(c.substring(0,u.end));l(e,g,n&&0===u.start,u.start,h,a,!1,0),o.disposeOnigString(g);continue}const g=t.getName(c,s);if(null!==g){const t=(d.length>0?d[d.length-1].scopes:r.contentNameScopesList).pushAttributed(g,e);d.push(new p(t,u.end))}}for(;d.length>0;)a.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}t._tokenizeString=l;class p{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=p},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parseJSON=void 0,t.parseJSON=function(e,t,i){let s=new r(e),l=new o,c=0,u=null,d=[],f=[];function p(){d.push(c),f.push(u)}function h(){c=d.pop(),u=f.pop()}function g(e){n(s,e)}for(;a(s,l);){if(0===c){if(null!==u&&g("too many constructs in root"),3===l.type){u={},i&&(u.$vscodeTextmateLocation=l.toLocation(t)),p(),c=1;continue}if(2===l.type){u=[],p(),c=4;continue}g("unexpected token in root")}if(2===c){if(5===l.type){h();continue}if(7===l.type){c=3;continue}g("expected , or }")}if(1===c||3===c){if(1===c&&5===l.type){h();continue}if(1===l.type){let e=l.value;if(a(s,l)&&6===l.type||g("expected colon"),a(s,l)||g("expected value"),c=2,1===l.type){u[e]=l.value;continue}if(8===l.type){u[e]=null;continue}if(9===l.type){u[e]=!0;continue}if(10===l.type){u[e]=!1;continue}if(11===l.type){u[e]=parseFloat(l.value);continue}if(2===l.type){let t=[];u[e]=t,p(),c=4,u=t;continue}if(3===l.type){let n={};i&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,p(),c=1,u=n;continue}}g("unexpected token in dict")}if(5===c){if(4===l.type){h();continue}if(7===l.type){c=6;continue}g("expected , or ]")}if(4===c||6===c){if(4===c&&4===l.type){h();continue}if(c=5,1===l.type){u.push(l.value);continue}if(8===l.type){u.push(null);continue}if(9===l.type){u.push(!0);continue}if(10===l.type){u.push(!1);continue}if(11===l.type){u.push(parseFloat(l.value));continue}if(2===l.type){let e=[];u.push(e),p(),c=4,u=e;continue}if(3===l.type){let e={};i&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),p(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==f.length&&g("unclosed constructs"),u};class r{constructor(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0}}class o{constructor(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}toLocation(e){return{filename:e,line:this.line,char:this.char}}}function a(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,a=e.pos,i=e.len,s=e.line,l=e.char;for(;;){if(a>=i)return!1;if(r=o.charCodeAt(a),32!==r&&9!==r&&13!==r){if(10!==r)break;a++,s++,l=0}else a++,l++}if(t.offset=a,t.line=s,t.char=l,34===r){for(t.type=1,a++,l++;;){if(a>=i)return!1;if(r=o.charCodeAt(a),a++,l++,92!==r){if(34===r)break}else a++,l++}t.value=o.substring(t.offset+1,a-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,a++,l++;else if(123===r)t.type=3,a++,l++;else if(93===r)t.type=4,a++,l++;else if(125===r)t.type=5,a++,l++;else if(58===r)t.type=6,a++,l++;else if(44===r)t.type=7,a++,l++;else if(110===r){if(t.type=8,a++,l++,r=o.charCodeAt(a),117!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;a++,l++}else if(116===r){if(t.type=9,a++,l++,r=o.charCodeAt(a),114!==r)return!1;if(a++,l++,r=o.charCodeAt(a),117!==r)return!1;if(a++,l++,r=o.charCodeAt(a),101!==r)return!1;a++,l++}else if(102===r){if(t.type=10,a++,l++,r=o.charCodeAt(a),97!==r)return!1;if(a++,l++,r=o.charCodeAt(a),108!==r)return!1;if(a++,l++,r=o.charCodeAt(a),115!==r)return!1;if(a++,l++,r=o.charCodeAt(a),101!==r)return!1;a++,l++}else for(t.type=11;;){if(a>=i)return!1;if(r=o.charCodeAt(a),!(46===r||r>=48&&r<=57||101===r||69===r||45===r||43===r))break;a++,l++}return t.len=a-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=a,e.line=s,e.char=l,!0}},787:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=t.INITIAL=t.Registry=void 0;const a=n(391),i=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 a.BalancedBracketSelectors(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}async _loadGrammar(e,t,n,r,o){const a=new c.ScopeDependencyProcessor(this._syncRegistry,e);for(;a.Q.length>0;)await Promise.all(a.Q.map((e=>this._loadSingleGrammar(e.scopeName)))),a.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=a.StateStack.NULL,t.parseRawGrammar=i.parseRawGrammar},736:(e,t)=>{function n(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){const r=[],o=function(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}(e);let a=o.next();for(;null!==a;){let e=0;if(2===a.length&&":"===a.charAt(1)){switch(a.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=o.next()}let t=s();if(r.push({matcher:t,priority:e}),","!==a)break;a=o.next()}return r;function i(){if("-"===a){a=o.next();const e=i();return t=>!!e&&!e(t)}if("("===a){a=o.next();const e=function(){const e=[];let t=s();for(;t&&(e.push(t),"|"===a||","===a);){do{a=o.next()}while("|"===a||","===a);t=s()}return t=>e.some((e=>e(t)))}();return")"===a&&(a=o.next()),e}if(n(a)){const e=[];do{e.push(a),a=o.next()}while(n(a));return n=>t(e,n)}return null}function s(){const e=[];let t=i();for(;t;)e.push(t),t=i();return t=>e.every((e=>e(t)))}}},44:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.disposeOnigString=void 0,t.disposeOnigString=function(e){"function"==typeof e.dispose&&e.dispose()}},50:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;const r=n(69),o=n(350),a=n(974);t.parseRawGrammar=function(e,t=null){return null!==t&&/\.json$/.test(t)?(s=e,l=t,o.DebugFlags.InDebugMode?a.parseJSON(s,l,!0):JSON.parse(s)):(n=e,i=t,o.DebugFlags.InDebugMode?r.parseWithLocation(n,i,"$vscodeTextmateLocation"):r.parsePLIST(n));var n,i,s,l}},69:(e,t)=>{function n(e,t,n){const r=e.length;let o=0,a=1,i=0;function s(t){if(null===n)o+=t;else for(;t>0;)10===e.charCodeAt(o)?(o++,a++,i=0):(o++,i++),t--}function l(e){null===n?o=e:s(e-o)}function c(){for(;o<r;){let t=e.charCodeAt(o);if(32!==t&&9!==t&&13!==t&&10!==t)break;s(1)}}function u(t){return e.substr(o,t.length)===t&&(s(t.length),!0)}function d(t){let n=e.indexOf(t,o);l(-1!==n?n+t.length:r)}function f(t){let n=e.indexOf(t,o);if(-1!==n){let r=e.substring(o,n);return l(n+t.length),r}{let t=e.substr(o);return l(r),t}}r>0&&65279===e.charCodeAt(0)&&(o=1);let p=0,h=null,g=[],m=[],b=null;function v(e,t){g.push(p),m.push(h),p=e,h=t}function y(){if(0===g.length)return w("illegal state stack");p=g.pop(),h=m.pop()}function w(t){throw new Error("Near offset "+o+": "+t+" ~~~"+e.substr(o,50)+"~~~")}const x=function(){if(null===b)return w("missing <key>");let e={};null!==n&&(e[n]={filename:t,line:a,char:i}),h[b]=e,b=null,v(1,e)},S=function(){if(null===b)return w("missing <key>");let e=[];h[b]=e,b=null,v(2,e)},k=function(){let e={};null!==n&&(e[n]={filename:t,line:a,char:i}),h.push(e),v(1,e)},C=function(){let e=[];h.push(e),v(2,e)};function E(){if(1!==p)return w("unexpected </dict>");y()}function O(){return 1===p||2!==p?w("unexpected </array>"):void y()}function D(e){if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function $(e){if(isNaN(e))return w("cannot parse float");if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function j(e){if(isNaN(e))return w("cannot parse integer");if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function P(e){if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function _(e){if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function N(e){if(1===p){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===p?h.push(e):h=e}function I(){let e=f(">"),t=!1;return 47===e.charCodeAt(e.length-1)&&(t=!0,e=e.substring(0,e.length-1)),{name:e.trim(),isClosed:t}}function T(e){if(e.isClosed)return"";let t=f("</");return d(">"),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&amp;|&lt;|&gt;|&quot;|&apos;/g,(function(e){switch(e){case"&amp;":return"&";case"&lt;":return"<";case"&gt;":return">";case"&quot;":return'"';case"&apos;":return"'"}return e}))}for(;o<r&&(c(),!(o>=r));){const l=e.charCodeAt(o);if(s(1),60!==l)return w("expected <");if(o>=r)return w("unexpected end of input");const f=e.charCodeAt(o);if(63===f){s(1),d("?>");continue}if(33===f){if(s(1),u("--")){d("--\x3e");continue}d(">");continue}if(47===f){if(s(1),c(),u("plist")){d(">");continue}if(u("dict")){d(">"),E();continue}if(u("array")){d(">"),O();continue}return w("unexpected closed tag")}let g=I();switch(g.name){case"dict":1===p?x():2===p?k():(h={},null!==n&&(h[n]={filename:t,line:a,char:i}),v(1,h)),g.isClosed&&E();continue;case"array":1===p?S():2===p?C():(h=[],v(2,h)),g.isClosed&&O();continue;case"key":A=T(g),1!==p?w("unexpected <key>"):null!==b?w("too many <key>"):b=A;continue;case"string":D(T(g));continue;case"real":$(parseFloat(T(g)));continue;case"integer":j(parseInt(T(g),10));continue;case"date":P(new Date(T(g)));continue;case"data":_(T(g));continue;case"true":T(g),N(!0);continue;case"false":T(g),N(!1);continue}if(!/^plist/.test(g.name))return w("unexpected opened tag "+g.name)}var A;return h}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,a){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,r.createGrammar(e,i,t,n,o,a,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),a=/\\(\d+)/,i=/\\(\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,a,i,s,l,c){super(e,t,n,r),this._begin=new h(o,this.id),this.beginCaptures=a,this._end=new h(i||"￿",-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.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}}t.BeginEndRule=d;class f extends s{constructor(e,n,r,o,a,i,s,l,c){super(e,n,r,o),this._begin=new h(a,this.id),this.beginCaptures=i,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=f;class p{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,p._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,p._compilePatterns(o,t,n))}return e.while?new f(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,p._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,p._compileCaptures(e.whileCaptures||e.captures,t,n),p._compilePatterns(e.patterns,t,n)):new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,p._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,p._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,p._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 a in e){if("$vscodeTextmateLocation"===a)continue;const o=parseInt(a,10);let i=0;e[a].patterns&&(i=p.getCompiledRuleId(e[a],t,n)),r[o]=p.createCaptureRule(t,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,i)}}return r}static _compilePatterns(e,t,n){let r=[];if(e)for(let a=0,i=e.length;a<i;a++){const i=e[a];let s=-1;if(i.include){const e=o.parseInclude(i.include);switch(e.kind){case 0:case 1:s=p.getCompiledRuleId(n[i.include],t,n);break;case 2:let r=n[e.ruleName];r&&(s=p.getCompiledRuleId(r,t,n));break;case 3:case 4:const o=e.scopeName,a=4===e.kind?e.ruleName:null,l=t.getExternalGrammar(o,n);if(l)if(a){let e=l.repository[a];e&&(s=p.getCompiledRuleId(e,t,l.repository))}else s=p.getCompiledRuleId(l.repository.$self,t,l.repository)}}else s=p.getCompiledRuleId(i,t,n);if(-1!==s){const e=t.getRule(s);let n=!1;if((e instanceof u||e instanceof d||e instanceof f)&&e.hasMissingPatterns&&0===e.patterns.length&&(n=!0),n)continue;r.push(s)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}}t.RuleFactory=p;class h{constructor(e,t){if(e){const t=e.length;let n=0,r=[],o=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):"A"!==t&&"G"!==t||(o=!0),a++}this.hasAnchor=o,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,this.hasBackReferences=a.test(this.source)}clone(){return new h(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){let n=t.map((t=>e.substring(t.start,t.end)));return i.lastIndex=0,this.source.replace(i,((e,t)=>r.escapeRegExpCharacters(n[parseInt(t,10)]||"")))}_buildAnchorCache(){let e,t,n,r,o=[],a=[],i=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),o[e]=n,a[e]=n,i[e]=n,s[e]=n,"\\"===n&&e+1<t&&(r=this.source.charAt(e+1),"A"===r?(o[e+1]="￿",a[e+1]="￿",i[e+1]="A",s[e+1]="A"):"G"===r?(o[e+1]="￿",a[e+1]="G",i[e+1]="￿",s[e+1]="G"):(o[e+1]=r,a[e+1]=r,i[e+1]=r,s[e+1]=r),e++);return{A0_G0:o.join(""),A0_G1:a.join(""),A1_G0:i.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}t.RegExpSource=h;class g{constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map((e=>e.source));this._cached=new 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<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}}t.CompiledRule=m},583:(e,t,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 r=n(878);class o{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n,this._cachedMatchRoot=new r.CachedFn((e=>this._root.match(e)))}static createFromRawTheme(e,t){return this.createFromParsedTheme(l(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort(((e,t)=>{let n=r.strcmp(e.scope,t.scope);return 0!==n?n:(n=r.strArrCmp(e.parentScopes,t.parentScopes),0!==n?n:e.index-t.index)}));let n=0,a="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(a=t.foreground),null!==t.background&&(i=t.background)}let l=new u(t),c=new s(n,l.getId(a),l.getId(i)),p=new f(new d(0,null,-1,0,0),[]);for(let r=0,o=e.length;r<o;r++){let t=e[r];p.insert(0,t.scope,t.parentScopes,t.fontStyle,l.getId(t.foreground),l.getId(t.background))}return new o(l,c,p)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find((t=>function(e,t){if(null===t)return!0;let n=0,r=t[n];for(;e;){if(i(e.scopeName,r)){if(n++,n===t.length)return!0;r=t[n]}e=e.parent}return!1}(e.parent,t.parentScopes)));return n?new s(n.fontStyle,n.foreground,n.background):null}}t.Theme=o;class a{constructor(e,t){this.parent=e,this.scopeName=t}static from(...e){let t=null;for(let n=0;n<e.length;n++)t=new a(t,e[n]);return t}push(e){return new a(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}}function i(e,t){return t===e||e.startsWith(t)&&"."===e[t.length]}t.ScopeStack=a;class s{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}}function l(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],o=0;for(let a=0,i=t.length;a<i;a++){let e,i=t[a];if(!i.settings)continue;if("string"==typeof i.scope){let t=i.scope;t=t.replace(/^[,]+/,""),t=t.replace(/[,]+$/,""),e=t.split(",")}else e=Array.isArray(i.scope)?i.scope:[""];let s=-1;if("string"==typeof i.settings.fontStyle){s=0;let e=i.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let l=null;"string"==typeof i.settings.foreground&&r.isValidHexColor(i.settings.foreground)&&(l=i.settings.foreground);let u=null;"string"==typeof i.settings.background&&r.isValidHexColor(i.settings.background)&&(u=i.settings.background);for(let t=0,r=e.length;t<r;t++){let r=e[t].trim().split(" "),i=r[r.length-1],d=null;r.length>1&&(d=r.slice(0,r.length-1),d.reverse()),n[o++]=new c(i,d,a,s,l,u)}}return n}t.StyleAttributes=s,t.parseTheme=l;class c{constructor(e,t,n,r,o,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=o,this.background=a}}t.ParsedThemeRule=c,t.fontStyleToString=function(e){if(-1===e)return"not set";let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),""===t&&(t="none"),t.trim()};class u{constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}}t.ColorMap=u;class d{constructor(e,t,n,r,o){this.scopeDepth=e,this.parentScopes=t,this.fontStyle=n,this.foreground=r,this.background=o}clone(){return new d(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}}t.ThemeTrieElementRule=d;class f{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,a=null===r?0:r.length;if(o===a)for(let e=0;e<o;e++){const t=n[e].length,o=r[e].length;if(t!==o)return o-t}return a-o}return t.scopeDepth-e.scopeDepth}match(e){if(""===e)return f._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let t,n,r=e.indexOf(".");return-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1)),this._children.hasOwnProperty(t)?this._children[t].match(n):f._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(e,t,n,r,o,a){if(""===t)return void this._doInsertHere(e,n,r,o,a);let i,s,l,c=t.indexOf(".");-1===c?(i=t,s=""):(i=t.substring(0,c),s=t.substring(c+1)),this._children.hasOwnProperty(i)?l=this._children[i]:(l=new f(this._mainRule.clone(),d.cloneArr(this._rulesWithParentScopes)),this._children[i]=l),l.insert(e+1,s,n,r,o,a)}_doInsertHere(e,t,n,o,a){if(null!==t){for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let s=this._rulesWithParentScopes[i];if(0===r.strArrCmp(s.parentScopes,t))return void s.acceptOverwrite(e,n,o,a)}-1===n&&(n=this._mainRule.fontStyle),0===o&&(o=this._mainRule.foreground),0===a&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new d(e,t,n,o,a))}else this._mainRule.acceptOverwrite(e,n,o,a)}}t.ThemeTrieElement=f},878:(e,t)=>{function n(e){return Array.isArray(e)?function(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=n(e[r]);return t}(e):"object"==typeof e?function(e){let t={};for(let r in e)t[r]=n(e[r]);return t}(e):e}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 r=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function o(e,t){return e<t?-1:e>t?1:0}t.RegexSource=class{static hasCaptures(e){return null!==e&&(r.lastIndex=0,r.test(e))}static replaceCaptures(e,t,n){return e.replace(r,((e,r,o,a)=>{let i=n[parseInt(r||o,10)];if(!i)return e;{let e=t.substring(i.start,i.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}}))}},t.strcmp=o,t.strArrCmp=function(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=o(e[r],t[r]);if(0!==n)return n}return 0}return n-r},t.isValidHexColor=function(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))},t.escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},t.CachedFn=class{constructor(e){this.fn=e,this.cache=new Map}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},t.performanceNow="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()}}},X4={},function e(t){var n=X4[t];if(void 0!==n)return n.exports;var r=X4[t]={exports:{}};return K4[t].call(r.exports,r,r.exports,e),r.exports}(787));var J4=Q4.exports;const Z4=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",displayName:"ABAP",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",displayName:"ActionScript",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",displayName:"Ada",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json",displayName:"Apache Conf"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",displayName:"Apex",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",displayName:"APL",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",displayName:"AppleScript",samplePath:"applescript.sample"},{id:"ara",scopeName:"source.ara",path:"ara.tmLanguage.json",displayName:"Ara",samplePath:"ara.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",displayName:"Assembly",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",displayName:"Astro",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","stylus","sass","css","scss","less","postcss","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",displayName:"AWK",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",displayName:"Ballerina",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",displayName:"Batch",samplePath:"bat.sample",aliases:["batch"]},{id:"beancount",scopeName:"text.beancount",path:"beancount.tmLanguage.json",displayName:"Beancount",samplePath:"beancount.sample"},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",displayName:"Berry",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json",displayName:"BibTeX"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",displayName:"Bicep",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",displayName:"Blade",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",displayName:"C",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",displayName:"Cadence",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",displayName:"Clarity",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",displayName:"Clojure",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",displayName:"CMake",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",displayName:"COBOL",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",displayName:"CodeQL",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",displayName:"CoffeeScript",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",displayName:"C++",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",displayName:"Crystal",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",displayName:"C#",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",displayName:"CSS",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",displayName:"CUE",samplePath:"cue.sample"},{id:"cypher",scopeName:"source.cypher",path:"cypher.tmLanguage.json",displayName:"Cypher",samplePath:"cypher.sample",aliases:["cql"]},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",displayName:"D",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",displayName:"Dart",samplePath:"dart.sample"},{id:"dax",scopeName:"source.dax",path:"dax.tmLanguage.json",displayName:"DAX",samplePath:"dax.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",displayName:"Diff",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",displayName:"Docker",samplePath:"docker.sample",aliases:["dockerfile"]},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json",displayName:"Dream Maker"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",displayName:"Elixir",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",displayName:"Elm",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",displayName:"ERB",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",displayName:"Erlang",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",displayName:"Fish",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",displayName:"F#",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gdresource",scopeName:"source.gdresource",path:"gdresource.tmLanguage.json",displayName:"GDResource",samplePath:"gdresource.sample",embeddedLangs:["gdshader","gdscript"]},{id:"gdscript",scopeName:"source.gdscript",path:"gdscript.tmLanguage.json",displayName:"GDScript",samplePath:"gdscript.sample"},{id:"gdshader",scopeName:"source.gdshader",path:"gdshader.tmLanguage.json",displayName:"GDShader",samplePath:"gdshader.sample"},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json",displayName:"Gherkin"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",displayName:"Git Commit Message",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",displayName:"Git Rebase Message",embeddedLangs:["shellscript"]},{id:"glimmer-js",scopeName:"source.gjs",path:"glimmer-js.tmLanguage.json",displayName:"Glimmer JS",aliases:["gjs"],embeddedLangs:["javascript","handlebars"]},{id:"glimmer-ts",scopeName:"source.gts",path:"glimmer-ts.tmLanguage.json",displayName:"Glimmer TS",aliases:["gts"],embeddedLangs:["typescript","handlebars"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",displayName:"GLSL",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json",displayName:"Gnuplot"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",displayName:"Go",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",displayName:"GraphQL",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json",displayName:"Groovy"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",displayName:"Hack",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",displayName:"Ruby Haml",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",displayName:"Handlebars",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",displayName:"Haskell",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",displayName:"HashiCorp HCL",samplePath:"hcl.sample"},{id:"hjson",scopeName:"source.hjson",path:"hjson.tmLanguage.json",displayName:"Hjson",samplePath:"hjson.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json",displayName:"HLSL"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",displayName:"HTML",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"http",scopeName:"source.http",path:"http.tmLanguage.json",displayName:"HTTP",samplePath:"http.sample",embeddedLangs:["shellscript","json","xml","graphql"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",displayName:"Imba",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json",displayName:"INI",aliases:["properties"]},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",displayName:"Java",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",displayName:"JavaScript",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",displayName:"Jinja",embeddedLangs:["html"]},{id:"jison",scopeName:"source.jison",path:"jison.tmLanguage.json",displayName:"Jison",samplePath:"jison.sample",embeddedLangs:["javascript"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json",displayName:"JSON"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",displayName:"JSON5",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json",displayName:"JSON with Comments"},{id:"jsonl",scopeName:"source.json.lines",path:"jsonl.tmLanguage.json",displayName:"JSON Lines"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json",displayName:"Jsonnet"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",displayName:"JSSM",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json",displayName:"JSX"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",displayName:"Julia",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json",displayName:"Kotlin",samplePath:"kotlin.sample"},{id:"kusto",scopeName:"source.kusto",path:"kusto.tmLanguage.json",displayName:"Kusto",samplePath:"kusto.sample",aliases:["kql"]},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",displayName:"LaTeX",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",displayName:"Less",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",displayName:"Liquid",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json",displayName:"Lisp"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json",displayName:"Logo"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",displayName:"Lua",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",displayName:"Makefile",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",displayName:"Markdown",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",displayName:"Marko",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json",displayName:"MATLAB"},{id:"mdx",scopeName:"source.mdx",path:"mdx.tmLanguage.json",displayName:"MDX",embeddedLangs:["tsx","toml","yaml","c","clojure","coffee","cpp","csharp","css","diff","docker","elixir","elm","erlang","go","graphql","haskell","html","ini","java","javascript","json","julia","kotlin","less","lua","make","markdown","objective-c","perl","python","r","ruby","rust","scala","scss","shellscript","sql","xml","swift","typescript"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json",displayName:"Mermaid"},{id:"narrat",scopeName:"source.narrat",path:"narrat.tmLanguage.json",displayName:"Narrat Language",samplePath:"narrat.sample",aliases:["nar"]},{id:"nextflow",scopeName:"source.nextflow",path:"nextflow.tmLanguage.json",displayName:"Nextflow",samplePath:"nextflow.sample",aliases:["nf"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",displayName:"Nginx",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",displayName:"Nim",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json",displayName:"Nix"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",displayName:"Objective-C",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json",displayName:"Objective-C++"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json",displayName:"OCaml"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json",displayName:"Pascal"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",displayName:"Perl",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",displayName:"PHP",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json",displayName:"PL/SQL"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json",displayName:"PostCSS"},{id:"powerquery",scopeName:"source.powerquery",path:"powerquery.tmLanguage.json",displayName:"PowerQuery",samplePath:"powerquery.sample"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",displayName:"PowerShell",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",displayName:"Prisma",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json",displayName:"Prolog"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",displayName:"Protocol Buffer 3",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",displayName:"Pug",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json",displayName:"Puppet"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json",displayName:"PureScript"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",displayName:"Python",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json",displayName:"R"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",displayName:"Perl 6",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",displayName:"ASP.NET Razor",embeddedLangs:["html","csharp"]},{id:"reg",scopeName:"source.reg",path:"reg.tmLanguage.json",displayName:"Windows Registry Script",samplePath:"reg.sample"},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",displayName:"Rel",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json",displayName:"RISC-V"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",displayName:"reStructuredText",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",displayName:"Ruby",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",displayName:"Rust",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",displayName:"SAS",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json",displayName:"Sass"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json",displayName:"Scala"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json",displayName:"Scheme"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",displayName:"SCSS",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",displayName:"ShaderLab",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",displayName:"Shell",aliases:["bash","console","sh","shell","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json",displayName:"Smalltalk"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json",displayName:"Solidity"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",displayName:"SPARQL",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json",displayName:"SQL"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json",displayName:"SSH Config"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",displayName:"Stata",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",displayName:"Stylus",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",displayName:"Svelte",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json",displayName:"Swift"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json",displayName:"SystemVerilog"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",displayName:"Tasl",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json",displayName:"Tcl"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",displayName:"TeX",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json",displayName:"TOML"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",displayName:"TSX",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",displayName:"Turtle",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",displayName:"Twig",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",displayName:"TypeScript",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",displayName:"V",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",displayName:"Visual Basic",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json",displayName:"Verilog"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json",displayName:"VHDL"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",displayName:"Vim Script",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",displayName:"Vue HTML",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",displayName:"Vue",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","json5","yaml","toml","graphql"]},{id:"vyper",scopeName:"source.vyper",path:"vyper.tmLanguage.json",displayName:"Vyper",samplePath:"vyper.sample",aliases:["vy"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json",displayName:"WebAssembly"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",displayName:"Wenyan",aliases:["文言"]},{id:"wgsl",scopeName:"source.wgsl",path:"wgsl.tmLanguage.json",displayName:"WGSL",samplePath:"wgsl.sample"},{id:"wolfram",scopeName:"source.wolfram",path:"wolfram.tmLanguage.json",displayName:"Wolfram",samplePath:"wolfram.sample"},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",displayName:"XML",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",displayName:"XSL",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json",displayName:"YAML",aliases:["yml"]},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",displayName:"ZenScript",samplePath:"zenscript.sample"}];var e6,t6,n6,r6,o6,a6,i6,s6=(e=>(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))(s6||{});class l6{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=l6.getLanguageId(e),n=l6.getTokenType(e),r=l6.getFontStyle(e),o=l6.getForeground(e),a=l6.getBackground(e);console.log({languageId:t,tokenType:n,fontStyle:r,foreground:o,background:a})}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,a){let i=l6.getLanguageId(e),s=l6.getTokenType(e),l=l6.getFontStyle(e),c=l6.getForeground(e),u=l6.getBackground(e);return 0!==t&&(i=t),0!==n&&(s=8===n?0:n),-1!==r&&(l=r),0!==o&&(c=o),0!==a&&(u=a),(i<<0|s<<8|l<<11|(l6.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function c6(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function u6(e){return e.startsWith("./")?e.slice(2):e}function d6(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function f6(...e){return e.map(c6).map(u6).join("/")}function p6(e,t=!1){const n=e.length;let r=0,o="",a=0,i=16,s=0,l=0,c=0,u=0,d=0;function f(t,n){let o=0,a=0;for(;o<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)a=16*a+t-48;else if(t>=65&&t<=70)a=16*a+t-65+10;else{if(!(t>=97&&t<=102))break;a=16*a+t-97+10}r++,o++}return o<t&&(a=-1),a}function p(){if(o="",d=0,a=r,l=s,u=c,r>=n)return a=n,i=17;let t=e.charCodeAt(r);if(h6(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(h6(t));return i=15}if(g6(t))return r++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,o+="\n"),s++,c=r,i=14;switch(t){case 123:return r++,i=1;case 125:return r++,i=2;case 91:return r++,i=3;case 93:return r++,i=4;case 58:return r++,i=6;case 44:return r++,i=5;case 34:return r++,o=function(){let t="",o=r;for(;;){if(r>=n){t+=e.substring(o,r),d=2;break}const a=e.charCodeAt(r);if(34===a){t+=e.substring(o,r),r++;break}if(92!==a){if(a>=0&&a<=31){if(g6(a)){t+=e.substring(o,r),d=2;break}d=6}r++}else{if(t+=e.substring(o,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){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=f(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}o=r}}return t}(),i=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!g6(e.charCodeAt(r));)r++;return o=e.substring(l,r),i=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let a=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,a=!0;break}r++,g6(t)&&(13===t&&10===e.charCodeAt(r)&&r++,s++,c=r)}return a||(r++,d=1),o=e.substring(l,r),i=13}return o+=String.fromCharCode(t),r++,i=16;case 45:if(o+=String.fromCharCode(t),r++,r===n||!m6(e.charCodeAt(r)))return i=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&m6(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&m6(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&m6(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&m6(e.charCodeAt(r))){for(r++;r<e.length&&m6(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}(),i=11;default:for(;r<n&&h(t);)r++,t=e.charCodeAt(r);if(a!==r){switch(o=e.substring(a,r),o){case"true":return i=8;case"false":return i=9;case"null":return i=7}return i=16}return o+=String.fromCharCode(t),r++,i=16}}function h(e){if(h6(e)||g6(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,o="",a=0,i=16,d=0},getPosition:()=>r,scan:t?function(){let e;do{e=p()}while(e>=12&&e<=15);return e}:p,getToken:()=>i,getTokenValue:()=>o,getTokenOffset:()=>a,getTokenLength:()=>r-a,getTokenStartLine:()=>l,getTokenStartCharacter:()=>a-u,getTokenError:()=>d}}function h6(e){return 32===e||9===e}function g6(e){return 10===e||13===e}function m6(e){return e>=48&&e<=57}(t6=e6||(e6={}))[t6.lineFeed=10]="lineFeed",t6[t6.carriageReturn=13]="carriageReturn",t6[t6.space=32]="space",t6[t6._0=48]="_0",t6[t6._1=49]="_1",t6[t6._2=50]="_2",t6[t6._3=51]="_3",t6[t6._4=52]="_4",t6[t6._5=53]="_5",t6[t6._6=54]="_6",t6[t6._7=55]="_7",t6[t6._8=56]="_8",t6[t6._9=57]="_9",t6[t6.a=97]="a",t6[t6.b=98]="b",t6[t6.c=99]="c",t6[t6.d=100]="d",t6[t6.e=101]="e",t6[t6.f=102]="f",t6[t6.g=103]="g",t6[t6.h=104]="h",t6[t6.i=105]="i",t6[t6.j=106]="j",t6[t6.k=107]="k",t6[t6.l=108]="l",t6[t6.m=109]="m",t6[t6.n=110]="n",t6[t6.o=111]="o",t6[t6.p=112]="p",t6[t6.q=113]="q",t6[t6.r=114]="r",t6[t6.s=115]="s",t6[t6.t=116]="t",t6[t6.u=117]="u",t6[t6.v=118]="v",t6[t6.w=119]="w",t6[t6.x=120]="x",t6[t6.y=121]="y",t6[t6.z=122]="z",t6[t6.A=65]="A",t6[t6.B=66]="B",t6[t6.C=67]="C",t6[t6.D=68]="D",t6[t6.E=69]="E",t6[t6.F=70]="F",t6[t6.G=71]="G",t6[t6.H=72]="H",t6[t6.I=73]="I",t6[t6.J=74]="J",t6[t6.K=75]="K",t6[t6.L=76]="L",t6[t6.M=77]="M",t6[t6.N=78]="N",t6[t6.O=79]="O",t6[t6.P=80]="P",t6[t6.Q=81]="Q",t6[t6.R=82]="R",t6[t6.S=83]="S",t6[t6.T=84]="T",t6[t6.U=85]="U",t6[t6.V=86]="V",t6[t6.W=87]="W",t6[t6.X=88]="X",t6[t6.Y=89]="Y",t6[t6.Z=90]="Z",t6[t6.asterisk=42]="asterisk",t6[t6.backslash=92]="backslash",t6[t6.closeBrace=125]="closeBrace",t6[t6.closeBracket=93]="closeBracket",t6[t6.colon=58]="colon",t6[t6.comma=44]="comma",t6[t6.dot=46]="dot",t6[t6.doubleQuote=34]="doubleQuote",t6[t6.minus=45]="minus",t6[t6.openBrace=123]="openBrace",t6[t6.openBracket=91]="openBracket",t6[t6.plus=43]="plus",t6[t6.slash=47]="slash",t6[t6.formFeed=12]="formFeed",t6[t6.tab=9]="tab",(n6||(n6={})).DEFAULT={allowTrailingComma:!1},(o6=r6||(r6={}))[o6.None=0]="None",o6[o6.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",o6[o6.UnexpectedEndOfString=2]="UnexpectedEndOfString",o6[o6.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",o6[o6.InvalidUnicode=4]="InvalidUnicode",o6[o6.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",o6[o6.InvalidCharacter=6]="InvalidCharacter",(i6=a6||(a6={}))[i6.OpenBraceToken=1]="OpenBraceToken",i6[i6.CloseBraceToken=2]="CloseBraceToken",i6[i6.OpenBracketToken=3]="OpenBracketToken",i6[i6.CloseBracketToken=4]="CloseBracketToken",i6[i6.CommaToken=5]="CommaToken",i6[i6.ColonToken=6]="ColonToken",i6[i6.NullKeyword=7]="NullKeyword",i6[i6.TrueKeyword=8]="TrueKeyword",i6[i6.FalseKeyword=9]="FalseKeyword",i6[i6.StringLiteral=10]="StringLiteral",i6[i6.NumericLiteral=11]="NumericLiteral",i6[i6.LineCommentTrivia=12]="LineCommentTrivia",i6[i6.BlockCommentTrivia=13]="BlockCommentTrivia",i6[i6.LineBreakTrivia=14]="LineBreakTrivia",i6[i6.Trivia=15]="Trivia",i6[i6.Unknown=16]="Unknown",i6[i6.EOF=17]="EOF";const b6=function(e,t=[],n=n6.DEFAULT){let r=null,o=[];const a=[];function i(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}const s={onObjectBegin:()=>{const e={};i(e),a.push(o),o=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{o=a.pop()},onArrayBegin:()=>{const e=[];i(e),a.push(o),o=e,r=null},onArrayEnd:()=>{o=a.pop()},onLiteralValue:i,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}};return function(e,t,n=n6.DEFAULT){const r=p6(e,!1),o=[];function a(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function i(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>o.slice())):()=>!0}function s(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>o.slice())):()=>!0}const c=i(t.onObjectBegin),u=l(t.onObjectProperty),d=a(t.onObjectEnd),f=i(t.onArrayBegin),p=a(t.onArrayEnd),h=l(t.onLiteralValue),g=s(t.onSeparator),m=a(t.onComment),b=s(t.onError),v=n&&n.disallowComments,y=n&&n.allowTrailingComma;function w(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:x(14);break;case 5:x(15);break;case 3:x(13);break;case 1:v||x(11);break;case 2:x(12);break;case 6:x(16)}switch(e){case 12:case 13:v?x(10):m();break;case 16:x(1);break;case 15:case 14:break;default:return e}}}function x(e,t=[],n=[]){if(b(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function S(e){const t=r.getTokenValue();return e?h(t):(u(t),o.push(t)),w(),!0}function k(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(x(2),t=0),h(t);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return w(),!0}function C(){return 10!==r.getToken()?(x(3,[],[2,5]),!1):(S(!1),6===r.getToken()?(g(":"),w(),D()||x(4,[],[2,5])):x(5,[],[2,5]),o.pop(),!0)}function E(){c(),w();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||x(4,[],[]),g(","),w(),2===r.getToken()&&y)break}else e&&x(6,[],[]);C()||x(4,[],[2,5]),e=!0}return d(),2!==r.getToken()?x(7,[2],[]):w(),!0}function O(){f(),w();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||x(4,[],[]),g(","),w(),4===r.getToken()&&y)break}else t&&x(6,[],[]);e?(o.push(0),e=!1):o[o.length-1]++,D()||x(4,[],[4,5]),t=!0}return p(),e||o.pop(),4!==r.getToken()?x(8,[4],[]):w(),!0}function D(){switch(r.getToken()){case 3:return O();case 1:return E();case 10:return S(!0);default:return k()}}if(w(),17===r.getToken())return!!n.allowEmptyContent||(x(4,[],[]),!1);if(!D())return x(4,[],[]),!1;17!==r.getToken()&&x(9,[],[])}(e,s,n),o[0]};var v6,y6;(y6=v6||(v6={}))[y6.InvalidSymbol=1]="InvalidSymbol",y6[y6.InvalidNumberFormat=2]="InvalidNumberFormat",y6[y6.PropertyNameExpected=3]="PropertyNameExpected",y6[y6.ValueExpected=4]="ValueExpected",y6[y6.ColonExpected=5]="ColonExpected",y6[y6.CommaExpected=6]="CommaExpected",y6[y6.CloseBraceExpected=7]="CloseBraceExpected",y6[y6.CloseBracketExpected=8]="CloseBracketExpected",y6[y6.EndOfFileExpected=9]="EndOfFileExpected",y6[y6.InvalidCommentToken=10]="InvalidCommentToken",y6[y6.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",y6[y6.UnexpectedEndOfString=12]="UnexpectedEndOfString",y6[y6.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",y6[y6.InvalidUnicode=14]="InvalidUnicode",y6[y6.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",y6[y6.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let w6="";const x6="dist/";let S6=null;function k6(e){return`${w6}${e}`}async function C6(e){const t=[],n=await async function(e){const t=k6(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(K4){if(r=b6(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function E6(e){const t=O6(await C6(e));if(t.include){const n=await E6(f6(...d6(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 O6(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...j6(e)};var r;return e.include&&(n.include=e.include),e.tokenColors&&(n.settings=e.tokenColors,delete n.tokenColors),(r=n).settings||(r.settings=[]),r.settings[0]&&r.settings[0].settings&&!r.settings[0].scope||r.settings.unshift({settings:{foreground:r.fg,background:r.bg}}),n}const D6={light:"#333333",dark:"#bbbbbb"},$6={light:"#fffffe",dark:"#1e1e1e"};function j6(e){var t,n,r,o;let a,i,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)&&(a=l.settings.foreground),(null==(n=null==l?void 0:l.settings)?void 0:n.background)&&(i=l.settings.background),!a&&(null==(r=null==e?void 0:e.colors)?void 0:r["editor.foreground"])&&(a=e.colors["editor.foreground"]),!i&&(null==(o=null==e?void 0:e.colors)?void 0:o["editor.background"])&&(i=e.colors["editor.background"]),a||(a="light"===e.type?D6.light:D6.dark),i||(i="light"===e.type?$6.light:$6.dark),{fg:a,bg:i}}class P6{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 C6(e)}(Z4.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}}function _6(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let o=t.slice(0,r),a=t[r];n[r]={scopeName:a,themeMatches:T6(e,a,o)}}return n}function N6(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function I6(e,t,n,r){if(!N6(e,n))return!1;let o=t.length-1,a=r.length-1;for(;o>=0&&a>=0;)N6(t[o],r[a])&&o--,a--;return-1===o}function T6(e,t,n){let r=[],o=0;for(let a=0,i=e.settings.length;a<i;a++){let i,s=e.settings[a];if("string"==typeof s.scope)i=s.scope.split(/,/).map((e=>e.trim()));else{if(!Array.isArray(s.scope))continue;i=s.scope}for(let e=0,a=i.length;e<a;e++){let l=i[e].split(/ /);I6(l[l.length-1],l.slice(0,l.length-1),t,n)&&(r[o++]=s,e=a)}}return r}var A6=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],F6={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function R6(e,t){const n=e.indexOf("",t);if(-1!==n&&"["===e[n+1]){const t=e.indexOf("m",n);return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}function M6(e){const t=e.shift();if("2"===t){const t=e.splice(0,3).map((e=>Number.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 L6(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){F6[r]&&t.push({type:"setDecoration",value:F6[r]})}else if(r<=29){const e=F6[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:A6[r-30]}});else if(38===r){const n=M6(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:A6[r-40]}});else if(48===r){const n=M6(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:A6[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:A6[r-100+8]}})}return t}var B6={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function z6(e=B6){function t(t){return e[t]}function n(e){return`#${e.map((e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0"))).join("")}`}let r;function o(e){return function(){if(r)return r;r=[];for(let n=0;n<A6.length;n++)r.push(t(A6[n]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let o=0;o<6;o++)for(let a=0;a<6;a++)r.push(n([e[t],e[o],e[a]]));let o=8;for(let t=0;t<24;t++,o+=10)r.push(n([o,o,o]));return r}()[e]}return{value:function(e){switch(e.type){case"named":return t(e.name);case"rgb":return n(e.rgb);case"table":return o(e.index)}}}}function H6(e,t){const n=t.split(/\r?\n/),r=z6(Object.fromEntries(A6.map((t=>[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 a=0;do{const i=R6(r,a),s=i.sequence?r.substring(a,i.startPosition):r.substring(a);if(s.length>0&&o.push({value:s,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const r=L6(i.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)}a=i.position}while(a<r.length);return o}}}();return n.map((t=>o.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-]+)\)/);if(n)return`var(${n[1]}-dim)`;return e}(n));let o=s6.None;return t.decorations.has("bold")&&(o|=s6.Bold),t.decorations.has("italic")&&(o|=s6.Italic),t.decorations.has("underline")&&(o|=s6.Underline),{content:t.value,color:n,fontStyle:o}}))))}const W6={pre:({className:e,style:t,children:n})=>`<pre class="${e}" style="${t}" tabindex="0">${n}</pre>`,code:({children:e})=>`<code>${e}</code>`,line:({className:e,children:t})=>`<span class="${e}">${t}</span>`,token:({style:e,children:t})=>`<span style="${e}">${t}</span>`};function U6(e,t={}){const n=t.bg||"#fff",r=function(e,t){const n=new Map;for(const r of e){const e=t(r);n.has(e)?n.get(e).push(r):n.set(e,[r])}return n}(t.lineOptions??[],(e=>e.line)),o=t.elements||{};function a(e="",t={},n){const r=o[e]||W6[e];return r?(n=n.filter(Boolean),r({...t,children:"code"===e?n.join("\n"):n.join("")})):""}return a("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${n}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",a("code",{},e.map(((n,o)=>{const i=o+1,s=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)}(r.get(i)??[]).join(" ");return a("line",{className:s,lines:e,line:n,index:o},n.map(((e,r)=>{const o=[`color: ${e.color||t.fg}`];return e.fontStyle&s6.Italic&&o.push("font-style: italic"),e.fontStyle&s6.Bold&&o.push("font-weight: bold"),e.fontStyle&s6.Underline&&o.push("text-decoration: underline"),a("token",{style:o.join("; "),tokens:n,token:e,index:r},[(i=e.content,i.replace(/[&<>"']/g,(e=>V6[e])))]);var i})))})))])}const V6={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class G6 extends J4.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Z4.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 E6(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=O6(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 q6(e){return"string"==typeof e?Z4.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function K6(e){var t,n;const{_languages:r,_themes:o,_wasmPath:a}=function(e){var t;let n=Z4,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":x6;return e.langs&&(n=e.langs.map(q6)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),i=new P6(async function(e){if(!S6){let t;t=Y4.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(k6(f6(...d6(e),"onig.wasm")))}),S6=t.then((()=>({createOnigScanner:e=>Y4.createOnigScanner(e),createOnigString:e=>Y4.createOnigString(e)})))}return S6}(a),"vscode-oniguruma"),s=new G6(i);(null==(t=e.paths)?void 0:t.themes)&&(s.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),(null==(n=e.paths)?void 0:n.languages)&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const l=(await s.loadThemes(o))[0];let c;await s.loadLanguages(r);let u=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;t<A6.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,r=A6[t].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();e[n]=`var(--shiki-color-ansi-${r})`}return e}();function d(e){const t=e?s.getTheme(e):l;if(!t)throw Error(`No theme registration for ${e}`);c&&c.name===t.name||(s.setTheme(t),c=t);const n=s.getColorMap();return"css"===t.type&&function(e,t){e.bg=u[e.bg]||e.bg,e.fg=u[e.fg]||e.fg,Object.entries(e.colors).forEach((([t,n])=>{e.colors[t]=u[n]||n})),t.forEach(((e,n)=>{t[n]=u[e]||e}))}(t,n),{_theme:t,_colorMap:n}}function f(e,t="text",n,r={includeExplanation:!0}){if(function(e){return!e||["plaintext","txt","text"].includes(e)}(t)){return[...e.split(/\r\n|\r|\n/).map((e=>[{content:e}]))]}const{_grammar:o}=function(e){const t=s.getGrammar(e);if(!t)throw Error(`No language registration for ${e}`);return{_grammar:t}}(t),{_theme:a,_colorMap:i}=d(n);return function(e,t,n,r,o){let a=n.split(/\r\n|\r|\n/),i=J4.INITIAL,s=[],l=[];for(let c=0,u=a.length;c<u;c++){let n,u,d,f=a[c];if(""===f){s=[],l.push([]);continue}o.includeExplanation&&(n=r.tokenizeLine(f,i),u=n.tokens,d=0);let p=r.tokenizeLine2(f,i),h=p.tokens.length/2;for(let r=0;r<h;r++){let n=p.tokens[2*r],a=r+1<h?p.tokens[2*r+2]:f.length;if(n===a)continue;let i=p.tokens[2*r+1],l=t[l6.getForeground(i)],c=l6.getFontStyle(i),g=[];if(o.includeExplanation){let t=0;for(;n+t<a;){let n=u[d],r=f.substring(n.startIndex,n.endIndex);t+=r.length,g.push({content:r,scopes:_6(e,n.scopes)}),d++}}s.push({content:f.substring(n,a),color:l,fontStyle:c,explanation:g})}l.push(s),s=[],i=p.ruleStack}return l}(a,i,e,o,r)}function p(e,t){const{_theme:n}=d(t);return H6(n,e)}return{codeToThemedTokens:f,codeToHtml:function(e,t="text",n){let r;r="object"==typeof t?t:{lang:t,theme:n};const o=f(e,r.lang,r.theme,{includeExplanation:!1}),{_theme:a}=d(r.theme);return U6(o,{fg:a.fg,bg:a.bg,lineOptions:null==r?void 0:r.lineOptions,themeName:a.name})},ansiToThemedTokens:p,ansiToHtml:function(e,t){const n=p(e,null==t?void 0:t.theme),{_theme:r}=d(null==t?void 0:t.theme);return U6(n,{fg:r.fg,bg:r.bg,lineOptions:null==t?void 0:t.lineOptions,themeName:r.name})},getTheme:e=>d(e)._theme,loadTheme:async function(e){await s.loadTheme(e)},loadLanguage:async function(e){const t=q6(e);i.addLanguage(t),await s.loadLanguage(t)},getBackgroundColor:function(e){const{_theme:t}=d(e);return t.bg},getForegroundColor:function(e){const{_theme:t}=d(e);return t.fg},getLoadedThemes:function(){return s.getLoadedThemes()},getLoadedLanguages:function(){return s.getLoadedLanguages()},setColorReplacements:function(e){u=e}}}var X6;w6=(X6="https://cdn.jsdelivr.net/npm/shiki-es@0.14.0/dist/assets/").endsWith("/")?X6:X6+"/";const{useDebugValue:Y6}=H,{useSyncExternalStoreWithSelector:Q6}=e2;const J6=(e,t)=>{const n=W1(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=Q6(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Y6(r),r}(n,e,r);return Object.assign(r,n),r},Z6=((e,t)=>e?J6(e,t):J6)(((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 K6({langs:null==n?void 0:n.langs,themes:null==n?void 0:n.themes});e({highlighter:t})}}})),m4),e8=z.memo((({children:e,language:t,options:n})=>{const{styles:r}=V4(),{isDarkMode:o}=mB(),[a,i]=Z6((e=>[e.codeToHtml,!e.highlighter]));return z.useEffect((()=>{Z6.getState().initHighlighter(n)}),[n]),Q.jsxs(Q.Fragment,{children:[i?Q.jsx("code",{children:e}):Q.jsx("div",{className:r.shiki,dangerouslySetInnerHTML:{__html:a(e,t,o)||""}}),i&&Q.jsxs(JH,{className:r.loading,gap:8,horizontal:!0,children:[Q.jsx(fz,{icon:jd,spin:!0}),"Highlighting..."]})]})})),t8=e=>{const t=e?"dark":"light",n=e?bX.yellow[t][9]:bX.gold[t][10],r=e?bX.gold[t][9]:bX.orange[t][10],o=e?bX.volcano[t][10]:bX.volcano[t][8],a=e?bX.lime[t][9]:bX.green[t][10],i=e?bX.blue[t][9]:bX.geekblue[t][9],s=e?bX.purple[t][11]:bX.purple[t][8];return{colors:{"editor.foreground":a},name:t,tokenColors:[{scope:"comma",settings:{foreground:a}},{scope:"func",settings:{foreground:s}},{scope:["and","break"],settings:{foreground:i}},{scope:"bracket",settings:{foreground:s}},{scope:"model-type",settings:{fontStyle:"italic",foreground:o}},{scope:"model-name",settings:{foreground:r}},{scope:"model-bracket",settings:{foreground:s}},{scope:"number",settings:{foreground:s}},{scope:"wildcards",settings:{foreground:n}}],type:t}},n8={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:"BREAK",name:"break"},{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:"(?<!\\w)(\\d*\\.?\\d+|\\.\\d+)(?!\\w)",name:"number"},{match:"__.*__",name:"wildcards"}],scopeName:"source.prompt"},id:"prompt",scopeName:"source.prompt"}],themes:[t8(!0),t8(!1)]},r8=z.memo((({parentId:e})=>{const t=z.useRef(null),[n,r]=z.useState(""),{styles:o,theme:a}=V4(),i=(e=>{const[t,n]=z.useState("");return z.useEffect((()=>{const t={attributes:!0,characterData:!0,childList:!0,subtree:!0},r=new MutationObserver((t=>{for(const r of t)if("attributes"===r.type){const t=document.querySelector(e);n(t.value)}})),o=document.querySelector(e);return o&&(r.observe(o,t),n(o.value)),()=>{r.disconnect()}}),[e]),t})(`${e} label textarea`),s=z.useMemo((()=>gradioApp().querySelector(`${e} label textarea`)),[e]),l=(c=s,u=oU(NK((function(){var e=NU(c);return e?{width:e.clientWidth,height:e.clientHeight}:void 0})),2),d=u[0],f=u[1],TK((function(){var e=NU(c);if(e){var t=new Sb((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;f({width:n,height:r})}))}));return t.observe(e),function(){t.disconnect()}}}),[],c),d);var c,u,d,f;const p=function(e,t){void 0===t&&(t=function(){return!0});var n=oU(NK(),2),r=n[0],o=n[1],a=sU(t);return TU((function(){var t=NU(e,document);if(t){var n=function(){var e;e=t===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:t.scrollLeft,top:t.scrollTop},a.current(e)&&o(e)};return n(),t.addEventListener("scroll",n),function(){t.removeEventListener("scroll",n)}}}),[],e),r}(s),h=z.useCallback((e=>{r(e.target.value)}),[]),g=z.useCallback((()=>s.clientHeight<s.scrollHeight?void 0===(null==l?void 0:l.width)?"":(null==l?void 0:l.width)+6:void 0===(null==l?void 0:l.width)?"":(null==l?void 0:l.width)+2),[s.clientWidth]);return z.useEffect((()=>{t.current.scroll(0,(null==p?void 0:p.top)||0)}),[null==p?void 0:p.top]),z.useEffect((()=>(s.addEventListener("change",h),()=>{s.removeEventListener("change",h)})),[]),z.useEffect((()=>{a&&(s.style.color="transparent",s.style.caretColor=a.colorSuccess)}),[a]),z.useEffect((()=>{r(i)}),[i]),Q.jsx("div",{className:o.container,"data-code-type":"highlighter",ref:t,style:{height:null==l?void 0:l.height,width:g()},children:Q.jsx(e8,{language:"prompt",options:n8,children:n.trim()})})})),o8=z.memo((({parentId:e})=>{const{loading:t}=p4((e=>({loading:e.loading})),m4);return Q.jsx(U4,{children:!1===t&&Q.jsx(r8,{parentId:e})})})),a8=(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),ld(n).render(Q.jsx(z.StrictMode,{children:Q.jsx(z.Suspense,{fallback:"loading...",children:Q.jsx(o8,{parentId:e})})}))};var i8='<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M5 12h14" />\n <path d="m12 5 7 7-7 7" />\n</svg>\n';const s8=(e,t,n,r)=>{var o;if((null==e?void 0:e.textContent)&&n)for(const a of t)(null==(o=null==e?void 0:e.textContent)?void 0:o.includes(a))&&(e.innerHTML=n.replace('width="24"',`width="${r}"`).replace('height="24"',`height="${r}"`))},l8=e=>tz`
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: ${rU(e.colorPrimary)};
background: ${e.colorPrimary};
&:hover {
color: ${rU(e.colorPrimary)} !important;
background: ${e.colorPrimaryHover} !important;
}
&:active {
color: ${rU(e.colorPrimaryActive)} !important;
background: ${e.colorPrimaryActive} !important;
}
}
`,c8=e=>tz`
button {
cursor: pointer;
min-width: fit-content !important;
&.gradio-button {
&.tool:not(.hidden) {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
min-width: 36px !important;
max-width: 36px !important;
height: var(--button-lg-tool-height);
min-height: var(--button-lg-tool-height) !important;
max-height: var(--button-lg-tool-height);
padding: 0;
font-size: var(--text-md);
line-height: 1;
background: ${e.colorFillSecondary};
border: 1px solid ${e.colorBorderSecondary};
border-radius: ${e.borderRadius}px;
&:hover {
background: ${e.colorFill};
}
&.secondary,
&.primary {
overflow: hidden;
flex: 1;
font-size: var(--text-md);
line-height: 1;
text-overflow: ellipsis;
&:active {
box-shadow: ${e.boxShadowSecondary};
}
}
}
&.secondary {
font-weight: 500;
background: ${e.colorFillTertiary};
border: 1px solid ${e.colorBorderSecondary};
border-radius: ${e.borderRadius}px !important;
&:hover {
color: ${e.colorText};
background: ${e.colorFill};
border-color: ${e.colorBorder};
}
}
&:not(.tool, .svelte-1p4r00v) {
&.primary,
&.secondary {
&.lg {
height: var(--button-lg-height) !important;
min-height: var(--button-lg-height) !important;
max-height: var(--button-lg-height) !important;
}
}
}
&[id$='_generate'] {
height: var(--button-lg-height) !important;
min-height: var(--button-lg-height) !important;
max-height: var(--button-lg-height) !important;
}
&[id$='_interrupt'] {
min-width: 0;
color: var(--button-cancel-text-color) !important;
background: ${e.colorError} !important;
border: 1px solid ${e.colorError};
border-right: none !important;
border-radius: ${e.borderRadius}px 0 0 ${e.borderRadius}px !important;
&:hover,
&:active {
background: ${e.colorErrorHover} !important;
border: 1px solid ${e.colorErrorHover};
}
}
&[id$='_skip'] {
min-width: 0;
background: ${e.colorBorderSecondary} !important;
border-radius: 0 ${e.borderRadius}px ${e.borderRadius}px 0 !important;
&:hover,
&:active {
background: ${e.colorBorder} !important;
}
}
&#interrogate,
&#deepbooru {
height: auto !important;
max-height: fit-content !important;
line-height: inherit;
white-space: break-spaces;
}
}
}
div[id^='image_buttons_'] {
flex-wrap: wrap;
button.gradio-button.tool {
flex: 1;
max-width: max(36px, 100%) !important;
font-size: var(--text-md) !important;
}
}
`,u8=e=>tz`
.label-wrap {
transition: padding 400ms ${e.motionEaseOut};
> span:not(.icon) {
display: flex;
gap: 8px;
align-items: center;
font-size: var(--text-md);
font-weight: 600;
line-height: 1;
transition: color 400ms ${e.motionEaseOut};
&::before {
content: '';
display: block;
width: 8px;
height: 8px;
background: ${e.colorPrimary};
border-radius: 4px;
}
}
&.open {
padding-bottom: 16px;
border-bottom: 1px dashed ${e.colorBorderSecondary};
span {
color: ${e.colorText};
}
}
}
`,d8=e=>tz`
.gradio-group,
.gradio-row {
gap: 12px !important;
}
&.gradio-box,
&.gradio-accordion {
&:not(.hidden):has(div) {
margin: 0 !important;
padding: 16px !important;
border: 1px solid ${e.colorBorderSecondary} !important;
}
}
.block.padded {
&.gradio-box:not(.gradio-accordion) {
padding: 16px !important;
}
}
.panel {
margin: 0 !important;
padding: 16px !important;
}
.compact,
.wrap {
gap: 12px !important;
}
#tabs > div {
padding: unset;
border: none;
}
#system_info {
align-items: flex-start;
justify-content: flex-start;
}
#img2img_results,
#txt2img_results,
#extras_results {
position: sticky;
top: 80px !important;
}
#context-menu {
overflow: hidden;
color: ${e.colorText};
background: ${e.colorBgElevated} !important;
border: 1px solid ${e.colorBorder} !important;
border-radius: ${e.borderRadiusLG}px !important;
box-shadow: ${e.boxShadow} !important;
a {
padding: 8px;
font-weight: 400;
color: ${e.colorText};
&:hover {
font-weight: 600;
color: ${rU(e.colorPrimary)};
background: ${e.colorPrimary};
}
}
}
`,f8=e=>tz`
#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;
}
}
}
/* ADetailer */
[id*='img_adetailer_ad_toprow_prompt'] {
margin-bottom: var(--spacing-lg);
}
[id*='_adetailer_ad_detection_accordion'].block.padded.gradio-accordion,
[id*='_adetailer_ad_mask_preprocessing_accordion'].block.padded.gradio-accordion,
[id*='_adetailer_ad_inpainting_accordion'].block.padded.gradio-accordion {
margin: var(--spacing-lg) 0 !important;
.label-wrap.open {
margin-bottom: 0;
padding-bottom: 8px;
}
}
/* ControlNet */
.cnet-badge.primary {
font-size: var(--text-xs);
line-height: 1.3;
color: var(--body-background-fill);
background-color: ${e.colorSuccess};
}
.tab-nav button {
&.cnet-unit-active,
&.selected.cnet-unit-active {
color: ${e.colorSuccess} !important;
}
}
/* Aspect Ratio selector */
[id$='2img_container_aspect_ratio'] {
padding: var(--block-padding);
border: 1px solid var(--block-border-color);
border-radius: 8px;
#arc_empty_space {
display: none;
}
button[id$='_calculator_button'] {
max-width: fit-content !important;
height: var(--button-lg-tool-height) !important;
min-height: var(--button-lg-tool-height) !important;
max-height: var(--button-lg-tool-height) !important;
padding: 0 1.25em !important;
font-size: var(--text-md);
font-weight: 500;
border: none;
border-radius: 0.5em;
}
#arc_panel {
.block.gradio-markdown.padded.hide-container {
.hide,
.pending {
display: none;
}
}
.gradio-column:has([id$='_arc_tool_buttons']) {
justify-content: space-between;
}
}
}
[id$='2img_container_aspect_ratio'],
[id$='2img_row_resolutions'] {
gap: 0.5em !important;
}
/* Inpaint Anything */
#padding_btn {
margin-top: auto;
}
/* Model Toolkit */
#tab_checkpoint_toolkit {
button {
align-self: end;
}
}
}
`,p8=e=>{const t=tz`
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 tz`
.livePreview,
.gradio-gallery,
.gradio-image,
.gradio-video,
.gradio-file {
${t}
}
div.block {
&.livePreview,
&.gradio-gallery,
&.gradio-image,
&.gradio-video,
&.gradio-file {
${t}
}
}
div.svelte-awbtu4 {
.livePreview,
.gradio-gallery,
.gradio-image,
.gradio-video,
.gradio-file {
${t}
}
}
.block.gradio-gallery {
.thumbnail-item {
position: unset;
background: ${e.colorBgContainer} !important;
box-shadow: none;
&.thumbnail-small {
transform: none;
border-radius: 4px;
transition: var(--button-transition);
}
&.thumbnail-lg {
border-radius: 5px;
transition: var(--button-transition);
}
&:hover {
transform: translateY(-2px);
box-shadow:
0 0 0 1px ${e.colorBorder},
var(--thumbnail-shadow);
}
&.thumbnail-small:hover {
transform: none;
box-shadow: 0 0 0 1px ${e.colorBorder};
}
}
> .grid-wrap {
margin: -52px;
padding: 60px;
}
}
[id$='_gallery_container'] {
min-height: 470px;
> div {
flex-grow: 1;
[id$='_gallery'] {
flex-grow: 1;
}
}
}
`},h8=e=>tz`
.block.gradio-checkbox {
margin: 0 !important;
}
label:has(input[type='radio']),
label:has(input[type='checkbox']) {
border-radius: ${e.borderRadius}px !important;
}
input {
&:not([type='range'], [type='checkbox'], [type='number'], [type='radio'], .border-none) {
resize: none;
overflow: hidden;
width: 100%;
height: var(--button-lg-tool-height) !important;
text-overflow: ellipsis;
white-space: nowrap;
border-radius: ${e.borderRadius}px;
}
&[type='checkbox'],
&[type='radio'] {
cursor: pointer;
flex: 0;
width: ${e.fontSize}px;
min-width: ${e.fontSize}px;
max-width: ${e.fontSize}px;
height: ${e.fontSize}px;
min-height: ${e.fontSize}px;
max-height: ${e.fontSize}px;
appearance: none !important;
}
&[type='checkbox'] {
--ring-color: transparent;
position: relative;
line-height: var(--line-sm);
background-color: ${e.colorFillTertiary} !important;
border: 1px solid ${e.colorBorder} !important;
border-radius: ${e.borderRadiusSM}px !important;
&:checked {
background-color: ${e.colorPrimary} !important;
background-image: var(--checkbox-check) !important;
border-color: ${e.colorPrimaryBorder} !important;
}
}
&[type='number'] {
height: var(--button-lg-tool-height) !important;
border-radius: ${e.borderRadius}px;
}
}
`,g8=e=>tz`
#lightboxModal {
background-color: var(--popup-overlay) !important;
background-image: var(--grain);
backdrop-filter: saturate(120%) blur(80px);
outline: none;
}
.modalControls {
transition: var(--button-transition) !important;
}
.modalControls:hover {
background-color: transparent !important;
}
.modalControls span {
display: flex;
align-items: center;
justify-content: center;
width: 32px !important;
font-size: 35px !important;
color: ${e.colorTextDescription} !important;
text-align: center;
text-shadow: none !important;
transition: var(--button-transition);
}
.modalControls span:hover,
.modalControls span:focus {
color: ${e.colorPrimary} !important;
}
#lightboxModal > img:not(.modalImageFullscreen) {
box-shadow: var(--lightbox-img-shadow);
}
.modalPrev,
.modalNext {
top: 0 !important;
transform: translate(0, calc(50% + 63px)) !important;
display: flex;
align-items: center;
justify-content: center;
width: 48px !important;
height: 50%;
padding: 8px !important;
font-size: 20px !important;
font-weight: 600 !important;
color: ${e.colorTextDescription} !important;
background-color: ${e.colorFillTertiary};
border-radius: 0 16px 16px 0 !important;
transition: var(--button-transition) !important;
}
.modalNext {
border-radius: 16px 0 0 16px !important;
}
.modalPrev:hover,
.modalNext:hover {
color: ${e.colorPrimary} !important;
background-color: ${e.colorFillSecondary} !important;
}
`,m8=e=>tz`
.gradio-dropdown {
.wrap,
input {
cursor: pointer;
}
.container .wrap {
.wrap-inner input {
font-size: var(--text-sm);
line-height: 0;
}
}
}
.dropdown-arrow {
margin: 0 !important;
}
ul.options {
display: block !important;
margin: 0 !important;
padding: 4px !important;
background: ${e.colorBgElevated} !important;
border: 1px solid ${e.colorBorder} !important;
border-radius: ${e.borderRadius}px !important;
box-shadow: ${e.boxShadow};
li {
overflow: hidden;
display: block !important;
padding: 4px 8px !important;
line-height: 1 !important;
text-overflow: ellipsis;
white-space: nowrap;
border-radius: ${e.borderRadiusSM}px !important;
&.selected {
color: ${e.colorText} !important;
background: ${e.colorFill} !important;
}
&.active:not(.selected) {
color: black !important;
background: ${e.yellow} !important;
}
&:hover {
color: ${e.colorText} !important;
background: ${e.colorFillSecondary} !important;
}
}
}
`,b8=rz`
0% {
background-position: 0 0;
}
100% {
background-position: 24px 24px;
}
`,v8=e=>tz`
.progress-container {
flex-direction: column;
}
.eta-bar {
overflow: hidden;
opacity: 1 !important;
background: ${e.colorFillQuaternary} !important;
backdrop-filter: saturate(180%) blur(10px);
border: 1px solid ${e.colorBorder};
border-radius: ${e.borderRadius}px;
}
.wrap.svelte-j1gjts:has(div) {
overflow: hidden;
min-height: 36px;
background: ${e.colorBgContainer} !important;
border-radius: ${e.borderRadius}px;
box-shadow: 0 0 0 2px ${e.colorBgContainer};
.meta-text,
.meta-text-center {
font-size: 12px;
color: ${e.colorTextDescription};
}
}
.progressDiv {
position: relative !important;
top: 0 !important;
overflow: hidden;
background: ${e.colorFillSecondary} !important;
> .progress {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: flex-start;
font-family: var(--font-mono);
font-size: var(--text-md);
font-weight: 600 !important;
text-shadow: 0 1px 4px rgb(0 0 0 / 80%);
&::before {
content: '';
position: absolute;
z-index: 1;
inset: 0;
overflow: hidden;
background-image: linear-gradient(
-45deg,
rgba(255, 255, 255, 20%) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 20%) 50%,
rgba(255, 255, 255, 20%) 75%,
transparent 75%,
transparent
);
background-size: 24px 24px;
animation: ${b8} 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%);
}
}
}
`,y8=e=>tz`
input[type='range'] {
cursor: pointer;
height: 3px;
margin-top: 8px;
appearance: none;
background: ${e.colorTextQuaternary};
border-radius: ${e.borderRadiusXS}px;
outline: none;
transition: var(--button-transition);
&::-webkit-slider-thumb {
width: 12px;
height: 16px;
appearance: none;
background: ${e.colorPrimary};
border: 1px solid ${e.colorPrimary};
border-radius: ${e.borderRadiusSM}px;
transition: var(--button-transition);
&:hover,
&:active {
background: ${e.colorPrimaryHover};
border-color: ${e.colorPrimaryHover};
}
}
&:hover {
background: ${e.colorPrimaryHover};
}
&:active {
background: ${e.colorPrimaryHover};
}
}
`,w8=e=>tz`
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};
}
}
`,x8=e=>tz`
.tabitem,
.gradio-tabitem {
padding: 16px !important;
background: ${e.colorBgContainer};
border: none !important;
border-radius: ${e.borderRadius}px;
}
#tabs {
> .tabitem.gradio-tabitem {
background: transparent !important;
}
}
.tab-nav {
gap: 8px;
margin-bottom: 8px;
border: none !important;
button {
cursor: pointer;
display: block;
flex: 1 !important;
min-width: 100px;
padding: 8px !important;
font-size: var(--text-md);
color: ${e.colorTextTertiary} !important;
background: ${e.colorFillTertiary} !important;
border: none !important;
border-radius: 4px !important;
transition: var(--button-transition);
&:hover {
color: ${e.colorText} !important;
background: ${e.colorFill} !important;
border: none !important;
}
&.selected {
font-weight: 600;
color: ${e.colorText} !important;
background: ${e.colorFillSecondary} !important;
border: none !important;
border-bottom: 2px solid ${e.colorPrimary} !important;
border-bottom-right-radius: 0 !important;
border-bottom-left-radius: 0 !important;
}
}
}
#tab_settings {
#settings .tab-nav {
width: 15%;
button {
width: 100%;
background: transparent !important;
&.selected {
background: transparent !important;
border: none !important;
border-radius: 0 !important;
}
}
#settings_show_all_pages {
width: auto;
background: ${e.colorFillTertiary} !important;
border: 1px solid ${e.colorBorderSecondary};
border-radius: ${e.borderRadius}px !important;
&:hover {
background: ${e.colorFill} !important;
border-color: ${e.colorBorder} !important;
}
}
}
.tabitem {
margin-left: 15%;
}
#settings_search {
margin: 0 0 var(--spacing-xl);
}
}
`,S8=ez((({theme:e})=>{return[(t=e,tz`
:root,
.dark {
--primary-50: ${t.geekblue1};
--primary-100: ${t.geekblue2};
--primary-200: ${t.geekblue3};
--primary-300: ${t.geekblue4};
--primary-400: ${t.geekblue5};
--primary-500: ${t.geekblue6};
--primary-600: ${t.geekblue7};
--primary-700: ${t.geekblue8};
--primary-800: ${t.geekblue9};
--primary-900: ${t.geekblue10};
--primary-950: ${t.geekblue11};
--secondary-50: ${t.geekblue1};
--secondary-100: ${t.geekblue2};
--secondary-200: ${t.geekblue3};
--secondary-300: ${t.geekblue4};
--secondary-400: ${t.geekblue5};
--secondary-500: ${t.geekblue6};
--secondary-600: ${t.geekblue7};
--secondary-700: ${t.geekblue8};
--secondary-800: ${t.geekblue9};
--secondary-900: ${t.geekblue10};
--secondary-950: ${t.geekblue11};
--neutral-50: ${t.colorText};
--neutral-100: ${t.colorText};
--neutral-200: ${t.colorTextSecondary};
--neutral-300: ${t.colorTextTertiary};
--neutral-400: ${t.colorTextQuaternary};
--neutral-500: ${t.colorFill};
--neutral-600: ${t.colorFillSecondary};
--neutral-700: ${t.colorFillTertiary};
--neutral-800: ${t.colorFillQuaternary};
--neutral-900: ${t.colorBgElevated};
--neutral-950: ${t.colorBgContainer};
--spacing-xxs: ${t.paddingXXS/4}px;
--spacing-xs: ${t.paddingXS/4}px;
--spacing-sm: ${t.paddingSM/4}px;
--spacing-md: ${t.paddingMD/4}px;
--spacing-lg: ${t.paddingLG/4}px;
--spacing-xl: ${t.paddingXL/4}px;
--spacing-xxl: ${t.paddingXL/4}px;
--radius-xxs: ${t.borderRadiusXS}px;
--radius-xs: ${t.borderRadiusXS}px;
--radius-sm: ${t.borderRadiusSM}px;
--radius-md: ${t.borderRadius}px;
--radius-lg: ${t.borderRadius}px;
--radius-xl: ${t.borderRadiusLG}px;
--radius-xxl: ${t.borderRadiusLG}px;
--text-xxs: ${t.fontSizeSM}px;
--text-xs: ${t.fontSizeSM}px;
--text-sm: ${t.fontSize}px;
--text-md: ${t.fontSize}px;
--text-lg: ${t.fontSizeLG}px;
--text-xl: ${t.fontSizeXL}px;
--text-xxl: ${t.fontSizeXL}px;
--font: ${t.fontFamily};
--font-mono: ${t.fontFamilyCode};
--body-background-fill: ${t.colorBgLayout};
--body-text-color: ${t.colorText};
--body-text-size: var(--text-md);
--body-text-weight: 400;
--embed-radius: ${t.borderRadius}px;
--color-accent: ${t.colorPrimary};
--color-accent-soft: ${t.colorPrimaryHover};
--background-fill-primary: ${t.colorBgLayout};
--background-fill-secondary: ${t.colorBgContainer};
--border-color-accent: ${t.colorBorder};
--border-color-primary: ${t.colorBorderSecondary};
--link-text-color: ${t.colorInfoText};
--link-text-color-active: ${t.colorInfoTextActive};
--link-text-color-hover: ${t.colorInfoTextHover};
--link-text-color-visited: ${t.colorInfoText};
--body-text-color-subdued: ${t.colorTextDescription};
--shadow-drop: ${t.boxShadowSecondary};
--shadow-drop-lg: ${t.boxShadow};
--shadow-inset: ${t.boxShadowSecondary} inset;
--shadow-spread: 3px;
--block-background-fill: ${t.colorBgContainer};
--block-border-color: ${t.colorBorderSecondary};
--block-border-width: 1px;
--block-info-text-color: ${t.colorTextSecondary};
--block-info-text-size: var(--text-sm);
--block-info-text-weight: 400;
--block-label-background-fill: ${t.colorFillSecondary};
--block-label-border-color: ${t.colorBorderSecondary};
--block-label-border-width: 1px;
--block-label-shadow: ${t.boxShadowTertiary};
--block-label-text-color: ${t.colorText} --block-label-margin: 0;
--block-label-padding: var(--spacing-sm) var(--spacing-lg);
--block-label-radius: ${t.borderRadius}px;
--block-label-right-radius: ${t.borderRadius}px;
--block-label-text-size: var(--text-sm);
--block-label-text-weight: 400;
--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);
--block-radius: ${t.borderRadius}px;
--block-shadow: none;
--block-title-background-fill: none;
--block-title-border-color: none;
--block-title-border-width: 0;
--block-title-text-color: ${t.colorText};
--block-title-padding: 0;
--block-title-radius: none;
--block-title-text-size: var(--text-md);
--block-title-text-weight: 400;
--container-radius: ${t.borderRadiusLG}px;
--form-gap-width: 1px;
--layout-gap: var(--spacing-xxl);
--panel-background-fill: ${t.colorBgContainer};
--panel-border-color: ${t.colorBorderSecondary};
--panel-border-width: 0;
--section-header-text-size: var(--text-md);
--section-header-text-weight: 400;
--chatbot-code-background-color: ${t.colorBgContainer};
--checkbox-background-color: ${t.colorFillTertiary};
--checkbox-background-color-focus: ${t.colorFillSecondary};
--checkbox-background-color-hover: ${t.colorFillSecondary};
--checkbox-background-color-selected: ${t.colorPrimary};
--checkbox-border-color: ${t.colorBorderSecondary};
--checkbox-border-color-focus: ${t.colorBorder};
--checkbox-border-color-hover: ${t.colorBorder};
--checkbox-border-color-selected: ${t.colorPrimary};
--checkbox-border-radius: ${t.borderRadiusXS}px;
--checkbox-border-width: 1px;
--checkbox-label-background-fill: ${t.colorFillTertiary};
--checkbox-label-background-fill-hover: ${t.colorFillSecondary};
--checkbox-label-background-fill-selected: ${t.colorFillSecondary};
--checkbox-label-border-color: ${t.colorBorderSecondary};
--checkbox-label-border-color-hover: ${t.colorBorder};
--checkbox-label-border-width: 1px;
--checkbox-label-gap: var(--spacing-lg);
--checkbox-label-padding: var(--spacing-md) calc(2 * var(--spacing-md));
--checkbox-label-shadow: none;
--checkbox-label-text-size: var(--text-md);
--checkbox-label-text-weight: 400;
--checkbox-shadow: none;
--checkbox-label-text-color: ${t.colorText};
--checkbox-label-text-color-selected: ${t.colorText};
--error-background-fill: ${t.colorErrorBg};
--error-border-color: ${t.colorErrorBorder};
--error-border-width: 1px;
--error-text-color: ${t.colorErrorText};
--input-background-fill: ${t.colorFillTertiary};
--input-background-fill-focus: ${t.colorFillSecondary};
--input-background-fill-hover: ${t.colorFillSecondary};
--input-border-color: ${t.colorBorderSecondary};
--input-border-color-focus: ${t.colorBorder};
--input-border-color-hover: ${t.colorBorder};
--input-border-width: 1px;
--input-padding: var(--spacing-xl);
--input-placeholder-color: ${t.colorTextQuaternary};
--input-radius: ${t.borderRadius}px;
--input-shadow: none;
--input-shadow-focus: none;
--input-text-size: var(--text-md);
--input-text-weight: 400;
--loader-color: ${t.colorPrimary};
--prose-text-size: var(--text-md);
--prose-text-weight: 400;
--prose-header-text-weight: 600;
--slider-color: ${t.colorPrimary};
--stat-background-fill: ${t.geekblue4};
--table-border-color: ${t.colorBorderSecondary};
--table-even-background-fill: transparent;
--table-odd-background-fill: ${t.colorFillTertiary};
--table-radius: var(--radius-lg);
--table-row-focus: ${t.colorFillSecondary};
--button-border-width: 1px;
--button-cancel-background-fill: ${t.colorError};
--button-cancel-background-fill-hover: ${t.colorErrorHover};
--button-cancel-border-color: ${t.colorErrorBorder};
--button-cancel-border-color-hover: ${t.colorErrorBorderHover};
--button-cancel-text-color: ${rU(t.colorError)};
--button-cancel-text-color-hover: ${rU(t.colorError)};
--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));
--button-large-radius: ${t.borderRadius}px;
--button-large-text-size: var(--text-lg);
--button-large-text-weight: 600;
--button-primary-background-fill: ${t.colorPrimary};
--button-primary-background-fill-hover: ${t.colorPrimaryHover};
--button-primary-border-color: ${t.colorPrimaryBorder};
--button-primary-border-color-hover: ${t.colorPrimaryBorderHover};
--button-primary-text-color: ${rU(t.colorPrimary)};
--button-primary-text-color-hover: ${rU(t.colorPrimary)};
--button-secondary-background-fill: ${t.colorFillSecondary};
--button-secondary-background-fill-hover: ${t.colorFill};
--button-secondary-border-color: ${t.colorBorderSecondary};
--button-secondary-border-color-hover: ${t.colorBorder};
--button-secondary-text-color: ${t.colorTextSecondary};
--button-secondary-text-color-hover: ${t.colorText};
--button-shadow: none;
--button-shadow-active: none;
--button-shadow-hover: none;
--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));
--button-small-radius: ${t.borderRadiusSM}px;
--button-small-text-size: var(--text-md);
--button-small-text-weight: 400;
--button-transition: all 0.12s cubic-bezier(0.35, 0.12, 0.17, 1);
--button-lg-height: 44px;
--button-lg-tool-height: 36px;
--popup-overlay: rgb(180 187 190 / 70%);
--thumbnail-shadow: 0 24px 16px -10px rgb(0 0 0 / 15%), 0 36px 40px -15px rgb(0 0 0 / 30%);
--lightbox-img-shadow: 0 70px 80px -10px rgb(0 0 0 / 10%), 0 30px 60px -15px rgb(0 0 0 / 10%),
0 50px 40px -30px rgb(0 0 0 / 8%);
--grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='turbulence' baseFrequency='2.5' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.2'/%3E%3C/svg%3E");
}
.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");
--popup-overlay: rgb(39 45 47 / 80%);
--thumbnail-shadow: 0 24px 16px -10px rgb(0 0 0 / 30%), 0 36px 40px -15px rgb(0 0 0 / 40%);
--lightbox-img-shadow: 0 70px 80px -10px rgb(0 0 0 / 30%), 0 30px 60px -15px rgb(0 0 0 / 20%),
0 50px 40px -30px rgb(0 0 0 / 30%);
}
`),l8(e),c8(e),d8(e),p8(e),h8(e),tz`
[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;
}
}
`,u8(e),m8(e),v8(e),y8(e),w8(e),x8(e),f8(e),g8(e)];var t})),k8={addPromptButton(e){console.debug("🤯 [formatPrompt] inject",e);const t=gradioApp().querySelector(`#${e}_tools > div.form`),n=gradioApp().querySelector(`#${e}_formatconvert`);if(!t||n)return;const r=k8.createButton(`${e}_formatconvert`,"🪄",(()=>k8.onClickConvert(e)));t.append(r)},convert(e){const t=/\{|\[|\}|\]|[^{}[\]]+/gmu;let n=k8.convertStr(e);const r=k8.convertStr2Array(n);n=k8.convertArray2Str(r);let o=[];const a={"[":{multiplier:1/1.05,stack:[]},"{":{multiplier:1.05,stack:[]}};function i(e,t){for(let n=e;n<o.length;n++)o[n][1]=k8.round(o[n][1]*t)}for(const c of n.matchAll(t)){let e=c[0];if(e in a)a[e].stack.push(o.length);else if("}"===e||"]"===e){const t=a["}"===e?"{":"["];t.stack.length>0&&i(t.stack.pop(),t.multiplier)}else o.push([e,1])}for(const c of Object.keys(a))for(const e of a[c].stack)i(e,a[c].multiplier);0===o.length&&(o=[["",1]]);let s=0;for(;s+1<o.length;)o[s][1]===o[s+1][1]?(o[s][0]+=o[s+1][0],o.splice(s+1,1)):s+=1;let l="";for(const[c,u]of o)l+=1===u?c:`(${c}:${u.toString()})`;return l},convertArray2Str:e=>e.map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/|\.\|。/g,",").replaceAll(/“||”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return k8.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,a=0;for(;null!==(r=t.exec(e));)0===a&&r.index>o&&(n.push(e.slice(o,r.index)),o=r.index),"("===r[0]||"<"===r[0]||"["===r[0]?a++:")"!==r[0]&&">"!==r[0]&&"]"!==r[0]||a--,0===a&&(n.push(e.slice(o,r.index+1)),o=r.index+1);return o<e.length&&n.push(e.slice(Math.max(0,o))),n})(e);return n=n.flatMap((e=>(e=>{const n=[];let r=0,o=!1;for(let a=0;a<e.length;a++)","!==e[a]||o?t.test(e[a])&&(o=!o):(n.push(e.slice(r,a).trim()),r=a+1);return n.push(e.slice(Math.max(0,r)).trim()),n})(e))),n.filter((e=>""!==e))})(e).filter((e=>!/^[\s,]+$/.test(e))).filter(Boolean).sort(((e,t)=>e.includes("<")&&!t.includes("<")?1:t.includes("<")&&!e.includes("<")?-1:0))},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=k8.convert(t.value);t.value=null===n.match(/^masterpiece, best quality,/)?""+n:n,k8.dispatchInputEvent(t);const r=gradioApp().querySelector(`#${e}_neg_prompt > label > textarea`),o=k8.convert(r.value);r.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,k8.dispatchInputEvent(r)},round:e=>Math.round(1e4*e)/1e4},C8=z.memo((()=>(z.useEffect((()=>{console.time("🤯 [layout] inject - Split Previewer");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"),a=gradioApp().querySelector("#img2img_settings"),i=gradioApp().querySelector("#img2img_generate_box"),s=gradioApp().querySelector("#img2img_gallery_container");a&&o&&i&&s&&(a.prepend(o),s.prepend(i));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)),console.timeEnd("🤯 [layout] inject - Split Previewer")}),[]),null))),E8=ZB((({css:e,token:t,stylish:n,isDarkMode:r,responsive:o},{isPromptResizable:a,layoutSplitPreview:i})=>({container:e`
position: relative;
flex: 1;
min-width: ${i?"200px":"0"};
.app {
padding: 0 !important;
}
.gap:has(#quicksettings):first-child {
gap: 0;
}
.float {
${n.blur};
border: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
}
[id^='html_info_']:has(div.prose) {
p {
color: ${t.colorTextDescription} !important;
}
}
[id^='html_info_']:has(div.prose),
[id^='html_log_']:has(div.prose) {
.pending {
opacity: 1;
}
}
#extras_generate {
border-radius: ${t.borderRadius}px !important;
}
[id$='img_styles_dialog'] {
label {
white-space: normal;
}
.gradio-row:not(:first-child) {
margin-top: 1em;
}
}
.block.border_focus {
border-color: ${t.colorPrimary} !important;
}
#txt2img_results,
#img2img_results,
#extras_results {
padding: 0 !important;
background: transparent !important;
}
#txt2img_render,
#img2img_render {
display: block !important;
margin-top: 16px;
padding: 0 !important;
background: transparent;
}
.block.gradio-html:has(div.prose) {
display: block;
p {
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
b {
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
}
}
}
#tab_pnginfo {
#pnginfo_image {
height: auto !important;
}
.block.gradio-html:has(div.prose) p {
color: ${t.colorText};
}
}
[id$='_override_settings_row']:has(div.hidden) {
display: none;
}
.gradio-group:has(.gradio-group:has(div:empty)) {
display: none;
}
${o.mobile} {
.gradio-row:has([id$='2img_results'], [id$='2img_results']) {
flex-direction: column-reverse;
}
}
.extra-networks {
.tab-nav [id*='_extra_'] {
margin: 0;
}
.gradio-button {
&[id$='_extra_sortorder'],
&[id$='_extra_refresh'] {
align-self: center;
}
&.secondary.lg[id$='_extra_refresh'] {
max-width: fit-content;
height: var(--button-lg-tool-height) !important;
min-height: var(--button-lg-tool-height) !important;
max-height: var(--button-lg-tool-height) !important;
font-size: var(--text-md);
}
}
}
.extra-network-cards .card {
box-shadow: 0 0 0 3px ${t.colorFillSecondary};
transition: var(--button-transition);
&:hover {
box-shadow: 0 0 0 3px ${t.colorPrimary};
}
.actions {
background: rgb(0 0 0 / 30%);
backdrop-filter: saturate(120%) blur(4px);
box-shadow: none;
.name {
font-size: var(--text-lg);
word-break: break-word;
line-break: auto;
}
&:hover {
.description {
max-height: none;
}
}
}
}
.global-popup-close {
background-color: var(--popup-overlay) !important;
background-image: var(--grain);
backdrop-filter: saturate(120%) blur(80px);
}
.global-popup-inner {
max-width: 80%;
.popup-metadata {
padding: 16px;
font-family: var(--font-mono);
color: ${t.colorText};
word-break: break-word;
background: ${t.colorBgLayout};
border-radius: ${t.borderRadius}px;
box-shadow: var(--lightbox-img-shadow);
}
.edit-user-metadata {
> div:not(.edit-user-metadata-buttons):not(:last-child) {
margin: 0 0 8px;
}
}
}
`,splitView:e`
#txt2img_toprow,
#img2img_toprow {
flex-direction: column !important;
padding: 0 !important;
background: transparent !important;
}
`,text2img:e`
button[id$='_generate'] {
height: var(--button-lg-height) !important;
min-height: var(--button-lg-height) !important;
max-height: var(--button-lg-height) !important;
}
[id$='img_settings'],
.gradio-column.compact {
display: flex !important;
flex-direction: column !important;
gap: 12px !important;
.gradio-column:has(#img2img_res_switch_btn, #txt2img_res_switch_btn) {
min-width: min(36px, 100%) !important;
}
> div:not([id$='_script_container'], .gradio-tabs):has(div),
> fieldset {
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:has(.gradio-image) {
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;
}
#axis_options {
margin: 16px 0;
}
}
}
#txt2img_accordions,
#img2img_accordions {
flex-direction: column;
padding: 0 !important;
background: transparent !important;
> div {
background-color: ${t.colorBgContainer}!important;
}
}
#img2img_toprow .interrogate-col {
flex-flow: column wrap;
min-width: 100% !important;
}
#img2img_column_batch {
min-width: 100% !important;
}
#tab_txt2img,
#tab_img2img {
[id$='_settings'] {
min-width: 0 !important;
[id^='img2img_tab_resize_'].tabitem.gradio-tabitem {
padding: 16px 0 !important;
}
[id$='img_seed_extras'],
#inpaint_controls {
div {
flex: 1;
}
}
}
#txt2img_gallery {
overflow: hidden !important;
border-radius: var(--border-radius) !important;
}
[id$='2img_tools'] > div {
display: flex;
justify-content: center;
button {
max-width: unset !important;
}
}
.gradio-html[id^='img2img_label_copy_to'] {
display: none;
}
.gradio-row[id^='img2img_copy_to'],
.gap.compact,
.image-buttons,
.image_buttons_extras {
gap: 8px !important;
}
}
#npw {
padding: 16px !important;
background-color: ${t.colorBgContainer} !important;
border: 1px solid ${t.colorBorderSecondary} !important;
border-radius: ${t.borderRadius}px !important;
box-shadow: none;
}
`,textares:e`
[id$='2img_prompt'],
[id$='2img_neg_prompt'] {
textarea {
resize: ${a?"vertical":"none"};
overflow-y: auto;
padding: 8px !important;
font-family: var(--font);
line-height: 1.5 !important;
word-wrap: break-word !important;
white-space: pre-wrap !important;
transition:
all 0.3s,
height 0s;
}
}
[id$='2img_prompt'] > label > textarea {
color: ${t.colorSuccessTextHover};
&:focus {
color: ${t.colorSuccessText};
}
}
[id$='2img_neg_prompt'] > label > textarea {
color: ${t.colorErrorTextHover};
&:focus {
color: ${t.colorError};
}
}
.block.token-counter {
z-index: 10 !important;
top: -14px;
right: 4px;
scale: 0.8;
background: ${t.colorBgContainer} !important;
border-radius: 0.4em !important;
> .translucent {
display: none;
}
span {
display: inline-block;
font-family: var(--font-mono);
border: 2px solid ${t.colorFillSecondary} !important;
}
span,
&.error span {
box-shadow: none;
}
}
#lobe_txt2img_prompt .prompt_editor {
min-height: ${74}px;
max-height: ${a?"unset":"74px"};
}
#lobe_img2img_prompt .prompt_editor {
min-height: ${98}px;
max-height: ${a?"unset":"98px"};
}
#text2img_prompt,
#text2img_neg_prompt {
textarea {
min-height: ${74}px;
max-height: ${a?"unset":"74px"};
}
}
#img2img_prompt,
#img2img_neg_prompt {
textarea {
min-height: ${98}px;
max-height: ${a?"unset":"98px"};
}
}
`}))),O8=z.memo((({className:e,...t})=>{const n=z.useRef(null),{mobile:r}=CB(),o=p4(u4,LY),{cx:a,styles:i}=E8({isPromptResizable:"resizable"===o.promptTextareaType,layoutSplitPreview:o.layoutSplitPreview});return z.useEffect((()=>{var e;console.time("🤯 [layout] inject - Content");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"),a=gradioApp().querySelector("#img2img_actions_column");o&&a&&a.append(o),console.time("🤯 [formatPrompt] inject"),k8.addPromptButton("txt2img"),k8.addPromptButton("img2img"),console.timeEnd("🤯 [formatPrompt] inject"),console.timeEnd("🤯 [layout] inject - Content")}),[]),Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:a(i.container,i.textares,i.text2img,o.layoutSplitPreview&&i.splitView,e),ref:n,...t}),o.layoutSplitPreview&&!1===r&&Q.jsx(C8,{})]})})),D8=ZB((({css:e,token:t},{headerHeight:n=64,size:r=86})=>({body:e`
.hide {
display: none;
}
#txt2img_extra_search,
#img2img_extra_search {
width: 100% !important;
max-width: unset !important;
}
#txt2img-extra-network-sidebar,
#img2img-extra-network-sidebar {
button.lg.secondary.gradio-button,
#txt2img_extra_sort,
#img2img_extra_sort {
height: 34px !important;
min-height: 34px !important;
}
.tabitem {
padding: 0 !important;
background: transparent;
}
}
.extra-network-cards {
overflow: unset;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(${r}px, 1fr));
gap: 8px;
height: unset;
min-height: unset;
.name {
background: unset !important;
}
.additional {
position: relative !important;
}
&:has(.nocards) {
display: flex;
flex-direction: column;
}
}
.extra-networks {
.tab-nav {
align-items: center;
> * {
height: 40px !important;
margin: 0 !important;
font-size: var(--text-md) !important;
}
> button {
&:first-child {
display: none;
}
}
}
.extra-network-subdirs {
display: flex;
flex-wrap: wrap;
gap: 4px;
align-items: center;
margin-bottom: 12px;
padding: 0 !important;
> button {
cursor: pointer;
zoom: 0.8;
flex: 1;
min-width: 100px;
margin: 0;
}
}
.actions {
background: rgb(0 0 0 / 30%);
backdrop-filter: saturate(120%) blur(4px);
box-shadow: none !important;
.name {
overflow: hidden;
display: block;
font-weight: bold;
text-overflow: ellipsis;
text-shadow: 0 1px 1px rgb(0 0 0 / 90%);
white-space: nowrap;
}
.additional {
position: absolute;
display: none;
> ul {
display: flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0;
a {
margin: 0 !important;
padding: 0 !important;
font-size: var(--text-md) !important;
color: #fff;
text-overflow: ellipsis;
text-shadow: 1px 1px black;
white-space: nowrap;
}
}
}
.description {
a:hover {
color: var(--link-text-color-hover);
}
}
}
.card {
overflow: hidden;
width: 100% !important;
height: ${1.5*r}px !important;
margin: 0 !important;
background-size: cover;
border: 1px solid ${t.colorBorderSecondary};
border-radius: ${t.borderRadiusSM}px;
outline: none;
transition:
box-shadow 200ms ${t.motionEaseOut},
scale 400ms ${t.motionEaseOut};
.name {
font-size: var(--text-sm) !important;
}
&:hover {
border-color: ${t.colorPrimary};
box-shadow: 0 0 0 1px ${t.colorPrimary};
.additional {
display: flex !important;
}
.name {
word-break: break-word;
line-break: auto;
white-space: unset;
}
}
&:active {
scale: 0.9;
}
}
.button-row {
padding: 0 4px;
background: rgba(0, 0, 0, 50%);
border-bottom-left-radius: ${t.borderRadius}px;
> div {
font-size: var(--text-md) !important;
text-shadow: none !important;
}
}
.metadata-button {
&::before {
content: '' !important;
}
}
}
div#txt2img_extra_networks,
div#img2img_extra_networks {
display: block !important;
.tabitem.gradio-tabitem.svelte-19hvt5v {
padding: 0 !important;
background: transparent;
}
.search {
box-sizing: border-box;
width: 100%;
max-width: 100%;
max-height: var(--button-lg-tool-height) !important;
padding: 8px;
}
button {
height: 32px !important;
}
}
textarea {
resize: none;
overflow-y: hidden !important;
font-family: ${t.fontFamily};
}
`,container:e`
height: calc(100vh - ${n}px);
`}))),$8=["txt2img","img2img"],j8=["textual_inversion","hypernetworks","checkpoints","lora","lycoris"],P8={checkpoints:"ckp",hypernetworks:"hyper",lora:"lora",lycoris:"lycoris",textual_inversion:"ti"},_8=new Set(["🌐","💡","🏷️"]),N8="lobeDone",I8=(e,t)=>{t?(e.style.display="inline",e.style.fontSize="100%",e.style.position="static",e.style.backgroundImage="none"):(e.style.fontSize="15px",e.style.margin="0")};function T8(e){return null==e}const A8=()=>{let e,t,n=0;const r=()=>{setTimeout(t,2e3)};return t=()=>{let t=0;const o=setInterval((()=>{var a;console.debug("🤯 [civitai helper] update card for civitai");const i=document.querySelector("#txt2img_lora_cards");if(i||t>10){if(e!==i){n=0,e=i;for(const e of $8){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==(a=(()=>{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,a=(null==r?void 0:r.checked)||!1;let i,s,l,c,u,d,f,p,h,g="",m=!1,b=!1;const v=[];for(const y of $8)for(const n of j8){if(p=P8[n],i=`${y}_${n}_cards`,s=document.querySelector(`#${i}`),T8(s))continue;b=s.classList.contains("extra-network-thumbs"),h=s.querySelectorAll(".card");const r=!!document.querySelector(`#${i}_html .pending`);if((null==h?void 0:h.length)&&!r){v.push(n);for(const n of h){if("1"===n.dataset[N8])break;if(n.dataset[N8]="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"),T8(d)&&(d=document.createElement("ul"),c.append(d)),u=n.querySelector(".actions .additional a"),T8(u)&&(u=document.createElement("a"),c.append(u)),null==(e=d.querySelector("br"))||e.remove(),b&&c){if(c.style.display=void 0,!a){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,_8.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="🖼️",I8(u,b)),!m)continue;if(f=n.querySelector(".actions .additional .search_term"),!f)return;if(g=f.innerHTML,!g)continue;const r=document.createElement("a");r.href="#",r.innerHTML="🌐",I8(r,b),r.title="Open this model's civitai url",r.setAttribute("onclick",`open_model_url(event, '${p}', '${g}')`);const i=document.createElement("a");i.href="#",i.innerHTML="💡",I8(i,b),i.title="Add trigger words to prompt",i.setAttribute("onclick",`add_trigger_words(event, '${p}', '${g}')`);const s=document.createElement("a");s.href="#",s.innerHTML="🏷️",I8(s,b),s.title="Use prompt from preview image",s.setAttribute("onclick",`use_preview_prompt(event, '${p}', '${g}')`),d.append(r),b&&l&&d.append(document.createElement("br")),d.append(i),d.append(s)}}else!r&&s.querySelector(".nocards")&&v.push(n)}return v})())?void 0:a.length;"number"==typeof s&&s<n&&(n=s),(t>10||!i||s>=j8.length||s>n)&&(clearInterval(o),n=s??n)}t++}),2e3)},t()},F8=z.memo((()=>{const e=z.useRef(null),t=z.useRef(null),[n,r]=z.useState(!0),o=p4(u4,LY),a=p4(d4,m4),[i,s]=z.useState(o.extraNetworkCardSize||86),{styles:l}=D8({size:i});return z.useEffect((()=>{var n,a;if(console.time("🤯 [layout] inject - ExtraNetworkSidebar"),o.enableExtraNetworkSidebar){const o=gradioApp().querySelectorAll("#txt2img_extra_tabs > .tab-nav > button")[1],i=gradioApp().querySelectorAll("#img2img_extra_tabs > .tab-nav > button")[1];o&&o.click(),i&&i.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"),f=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==(a=t.current)||a.append(d),f.id="img2img_render",null==u||u.append(f)),document.querySelector(".extra-network-cards"))return A8(),void r(!1)}console.timeEnd("🤯 [layout] inject - ExtraNetworkSidebar")}),[]),AK((()=>{var e,t;console.time("🤯 [extranetwork] force reload");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=A8);const r=null==(t=document.querySelector("#img2img_extra_refresh"))?void 0:t.nextSibling;r&&(r.onclick=A8),A8()}catch(a){console.debug(a)}console.timeEnd("🤯 [extranetwork] force reload")}),2e3),Q.jsxs(Q.Fragment,{children:[Q.jsxs(EY,{className:l.body,children:[n&&Q.jsx(gT,{active:!0}),Q.jsxs("div",{style:n?{display:"none"}:{},children:[Q.jsx("div",{id:"txt2img-extra-network-sidebar",ref:e,style:"tab_img2img"===a?{display:"none"}:{}}),Q.jsx("div",{id:"img2img-extra-network-sidebar",ref:t,style:"tab_img2img"===a?{}:{display:"none"}})]})]}),Q.jsxs(IY,{children:[Q.jsx(xz,{icon:o.extraNetworkCardSize<i?Wd:Hd,onClick:()=>s(o.extraNetworkCardSize),size:{blockSize:24,fontSize:16}}),Q.jsx(IL,{defaultValue:i,max:256,min:64,onChange:s,step:8,style:{flex:1},value:i})]})]})})),R8=z.memo((({headerHeight:e})=>{const{mobile:t}=CB(),n=p4(u4,LY),[r,o]=z.useState(!t&&n.extraNetworkSidebarExpand),[a,i]=z.useState("fixed"===n.extraNetworkFixedMode),{styles:s,theme:l}=D8({headerHeight:e}),{t:c}=z1();z.useEffect((()=>{t&&o(!1)}),[t]);const u=t||a?"fixed":"float";return Q.jsx(mY,{defaultSize:{width:n.extraNetworkSidebarWidth},expand:r,minWidth:n.extraNetworkSidebarWidth,mode:u,onExpandChange:o,pin:a,placement:"right",children:Q.jsx(NJ,{children:Q.jsxs(jY,{className:s.container,style:"float"===u?{background:l.colorBgContainer,minWidth:n.extraNetworkSidebarWidth}:{minWidth:n.extraNetworkSidebarWidth},children:[Q.jsx(RY,{pin:a,position:"right",setExpand:o,setPin:i,title:c("extraNetwork")}),Q.jsx(F8,{})]})})})})),M8=R8,L8=[{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"}],B8=[{icon:Q.jsx(fz,{icon:yd,size:"small"}),openExternal:!0,title:"Report Bug",url:`${n4}/issues/new/choose`},{icon:Q.jsx(fz,{icon:Ed,size:"small"}),openExternal:!0,title:"Request Feature",url:`${n4}/issues/new/choose`}],z8=[{icon:Q.jsx(fz,{icon:Od,size:"small"}),openExternal:!0,title:"GitHub",url:n4},{icon:Q.jsx(fz,{icon:Cd,size:"small"}),openExternal:!0,title:"Changelog",url:`${n4}/blob/main/CHANGELOG.md`}],H8=[{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"}],W8=ZB((({css:e})=>({footer:e`
footer {
display: block !important;
}
`}))),U8=z.memo((({className:e,...t})=>{const n=p4(u4,LY),{cx:r,styles:o}=W8(),{t:a}=z1(),i=z.useRef(null);return z.useEffect((()=>{var e;console.time("🤯 [layout] inject - Footer");const t=gradioApp().querySelector("#footer");t&&(null==(e=i.current)||e.append(t)),n.confirmPageUnload&&window.addEventListener("beforeunload",(e=>{if(null==t?void 0:t.isConnected)return e.preventDefault(),e.returnValue=""})),console.timeEnd("🤯 [layout] inject - Footer")}),[]),Q.jsx("div",{className:r(o.footer,e),...t,children:Q.jsx(qY,{bottom:Q.jsx("div",{ref:i}),columns:n.layoutHideFooter?[]:[{items:L8,title:a("resources")},{items:B8,title:a("community")},{items:z8,title:a("help")},{items:H8,title:a("moreProducts")}]})})})),V8=U8,G8=z.memo((e=>{const{version:t,latestVersion:n}=p4((e=>({latestVersion:e.latestVersion,version:e.version})),m4),r=t4.gte(t,n);return Q.jsx("a",{href:n4,rel:"noreferrer",target:"_blank",children:r?Q.jsxs(oB,{color:"success",...e,children:["v",t]}):Q.jsxs(oB,{color:"warning",...e,children:["v",t," / latest v",n]})})})),q8=n4.replace("https://github.com/",""),K8=z.memo((({open:e,onCancel:t})=>{const n=p4(u4,LY),r=iz(),{t:o}=z1();return Q.jsx(SX,{footer:!1,onCancel:t,open:e,title:Q.jsxs(nW,{align:"center",gap:4,horizontal:!0,children:[Q.jsx("a",{href:"https://discord.gg/AYFPHvv2jT",rel:"noreferrer",target:"_blank",children:Q.jsx(xz,{icon:dJ,title:"Discord"})}),Q.jsx("a",{href:n4,rel:"noreferrer",target:"_blank",children:Q.jsx(xz,{icon:Od,title:q8})}),Q.jsxs(_R,{children:[o("themeFeedback"),Q.jsx(G8,{})]})]}),children:Q.jsxs(nW,{gap:32,children:[Q.jsxs(JH,{gap:16,horizontal:!0,style:{background:r.colorBgLayout,border:`1px solid ${r.colorBorderSecondary}`,borderRadius:r.borderRadiusLG,padding:"16px 0"},children:[Q.jsx(cC,{icon:Q.jsx(fz,{icon:dJ}),size:"large",children:"Join Discover"}),Q.jsx(ZQ,{icon:Q.jsx(fz,{icon:Od}),children:"LobeTheme Github"})]}),Q.jsx(GQ,{lang:n.i18n,mapping:"number",repo:q8,repoId:"R_kgDOJCPcNg",term:"53"})]})})})),X8=K8,Y8=z.memo((()=>{const{t:e}=z1();return Q.jsx(nW,{height:"100vh",width:"100%",children:Q.jsxs(JH,{flex:1,gap:12,width:"100%",children:[Q.jsx(XJ,{extra:"SD",size:48,type:"combine"}),Q.jsxs(JH,{gap:16,horizontal:!0,children:[Q.jsx(fz,{icon:jd,spin:!0}),e("appInitializing")]})]})})})),Q8=Y8,J8=z.memo((({size:e=32,style:t,logoCustomUrl:n,logoCustomTitle:r})=>{let o=Q.jsx(XJ,{size:e,style:t});if(n)if(n.includes("http")||n.includes("data"))o=Q.jsx("img",{alt:"logo",src:n,style:{height:e,...t}});else{const r=hW(n);r&&(o=Q.jsx(vW,{emoji:r,size:e,style:t}))}return Q.jsxs(_R,{align:"center",size:.3*e,children:[o,Q.jsx("b",{style:{fontSize:.6*e,whiteSpace:"nowrap"},children:r})]})})),Z8=z.memo((({size:e=32,style:t,themeMode:n})=>Q.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}}))),e7=z.memo((({size:e=32,style:t})=>{const n=p4(u4,LY),r=p4(f4,m4);return"kitchen"===n.logoType?Q.jsx(Z8,{size:.75*e,style:t,themeMode:r}):"custom"===n.logoType?Q.jsx(J8,{logoCustomTitle:n.logoCustomTitle,logoCustomUrl:n.logoCustomUrl,size:e,style:t}):Q.jsx(XJ,{extra:"SD",size:e,style:t,type:"combine"})})),t7=ZB((({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;
`})));var n7={};const r7=z.createContext({dragDropManager:void 0});function o7(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var a7="function"==typeof Symbol&&Symbol.observable||"@@observable",i7=function(){return Math.random().toString(36).substring(7).split("").join(".")},s7={INIT:"@@redux/INIT"+i7(),REPLACE:"@@redux/REPLACE"+i7(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i7()}};function l7(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(o7(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(o7(1));return n(l7)(e,t)}if("function"!=typeof e)throw new Error(o7(2));var o=e,a=t,i=[],s=i,l=!1;function c(){s===i&&(s=i.slice())}function u(){if(l)throw new Error(o7(3));return a}function d(e){if("function"!=typeof e)throw new Error(o7(4));if(l)throw new Error(o7(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(o7(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),i=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(o7(7));if(void 0===e.type)throw new Error(o7(8));if(l)throw new Error(o7(9));try{l=!0,a=o(a,e)}finally{l=!1}for(var t=i=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:s7.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(o7(10));o=e,f({type:s7.REPLACE})}})[a7]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(o7(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[a7]=function(){return this},e},r}function c7(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,(function(){return n[r++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function u7(e){return"object"==typeof e}const d7="dnd-core/INIT_COORDS",f7="dnd-core/BEGIN_DRAG",p7="dnd-core/PUBLISH_DRAG_SOURCE",h7="dnd-core/HOVER",g7="dnd-core/DROP",m7="dnd-core/END_DRAG";function b7(e,t){return{type:d7,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const v7={type:d7,payload:{clientOffset:null,sourceClientOffset:null}};function y7(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:a}=n,i=e.getMonitor(),s=e.getRegistry();e.dispatch(b7(o)),function(e,t,n){c7(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){c7(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,i,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,i);if(null==l)return void e.dispatch(v7);let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){c7("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),c=a(l)}e.dispatch(b7(o,c));const u=s.getSource(l).beginDrag(i,l);if(null==u)return;!function(e){c7(u7(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:f7,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function w7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w7(e,t,n[t])}))}return e}function S7(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){c7(e.isDragging(),"Cannot call drop while not dragging."),c7(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,a)=>{const i=function(e,t,n,r){const o=n.getTarget(e);let a=o?o.drop(r,e):void 0;(function(e){c7(void 0===e||u7(e),"Drop result must either be an object or undefined.")})(a),void 0===a&&(a=0===t?{}:r.getDropResult());return a}(o,a,r,n),s={type:g7,payload:{dropResult:x7({},t,i)}};e.dispatch(s)}))}}function k7(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){c7(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:m7}}}function C7(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function E7(e){return function(t,{clientOffset:n}={}){!function(e){c7(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),a=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];C7(t.getTargetType(o),n)||e.splice(r,1)}}(r,a,o.getItemType()),function(e,t,n){c7(t.isDragging(),"Cannot call hover while not dragging."),c7(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];c7(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");c7(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,a),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,a),{type:h7,payload:{targetIds:r,clientOffset:n||null}}}}function O7(e){return function(){if(e.getMonitor().isDragging())return{type:p7}}}class D7{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:y7(e),publishDragSource:O7(e),hover:E7(e),drop:S7(e),endDrag:k7(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const a=n[o];var i;return r[o]=(i=a,(...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)}}function $7(e,t){return{x:e.x-t.x,y:e.y-t.y}}const j7=[],P7=[];j7.__IS_NONE__=!0,P7.__IS_ALL__=!0;class _7{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;c7("function"==typeof e,"listener must be a function."),c7(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const a=o===r||o===r+1&&!function(e,t){if(e===j7)return!1;if(e===P7||void 0===t)return!0;const n=(r=e,t.filter((e=>r.indexOf(e)>-1)));var r;return n.length>0}(t.dirtyHandlerIds,n);a||e()}finally{r=o}}))}subscribeToOffsetChange(e){c7("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return c7(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(c7(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return C7(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(c7(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!C7(r,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const i=a.indexOf(e);return n?i===a.length-1:i>-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?$7(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,r),n):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?$7(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const N7="undefined"!=typeof global?global:self,I7=N7.MutationObserver||N7.WebKitMutationObserver;function T7(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const A7="function"==typeof I7?function(e){let t=1;const n=new I7(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:T7;class F7{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 R7=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=A7(this.flush),this.requestErrorThrow=T7((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},M7=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new F7(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(R7.registerPendingError);const L7="dnd-core/ADD_SOURCE",B7="dnd-core/ADD_TARGET",z7="dnd-core/REMOVE_SOURCE",H7="dnd-core/REMOVE_TARGET";function W7(e,t){t&&Array.isArray(e)?e.forEach((e=>W7(e,!1))):c7("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var U7,V7;(V7=U7||(U7={})).SOURCE="SOURCE",V7.TARGET="TARGET";let G7=0;function q7(e){const t=(G7++).toString();switch(e){case U7.SOURCE:return`S${t}`;case U7.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function K7(e){switch(e[0]){case"S":return U7.SOURCE;case"T":return U7.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function X7(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class Y7{addSource(e,t){W7(e),function(e){c7("function"==typeof e.canDrag,"Expected canDrag to be a function."),c7("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),c7("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(U7.SOURCE,e,t);return this.store.dispatch(function(e){return{type:L7,payload:{sourceId:e}}}(n)),n}addTarget(e,t){W7(e,!0),function(e){c7("function"==typeof e.canDrop,"Expected canDrop to be a function."),c7("function"==typeof e.hover,"Expected hover to be a function."),c7("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(U7.TARGET,e,t);return this.store.dispatch(function(e){return{type:B7,payload:{targetId:e}}}(n)),n}containsHandler(e){return X7(this.dragSources,e)||X7(this.dropTargets,e)}getSource(e,t=!1){c7(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return c7(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return c7(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return c7(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return K7(e)===U7.SOURCE}isTargetId(e){return K7(e)===U7.TARGET}removeSource(e){var t;c7(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:z7,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},R7.enqueueTask(M7.create(t))}removeTarget(e){c7(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:H7,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);c7(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){c7(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=q7(e);return this.types.set(r,t),e===U7.SOURCE?this.dragSources.set(r,n):e===U7.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 Q7=(e,t)=>e===t;function J7(e=j7,t){switch(t.type){case h7:break;case L7:case B7:case H7:case z7:return j7;default:return P7}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),a=o.length>0||!function(e,t,n=Q7){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r);if(!a)return j7;const i=r[r.length-1],s=n[n.length-1];return i!==s&&(i&&o.push(i),s&&o.push(s)),o}function Z7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const e9={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function t9(e=e9,t){const{payload:n}=t;switch(t.type){case d7:case f7:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case h7:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Z7(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case m7:case g7:return e9;default:return e}var r,o}function n9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){n9(e,t,n[t])}))}return e}const o9={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function a9(e=o9,t){const{payload:n}=t;switch(t.type){case f7:return r9({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case p7:return r9({},e,{isSourcePublic:!0});case h7:return r9({},e,{targetIds:n.targetIds});case H7:return-1===e.targetIds.indexOf(n.targetId)?e:r9({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case g7:return r9({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case m7:return r9({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function i9(e=0,t){switch(t.type){case L7:case B7:return e+1;case z7:case H7:return e-1;default:return e}}function s9(e=0){return e+1}function l9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l9(e,t,n[t])}))}return e}function u9(e={},t){return{dirtyHandlerIds:J7(e.dirtyHandlerIds,{type:t.type,payload:c9({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:t9(e.dragOffset,t),refCount:i9(e.refCount,t),dragOperation:a9(e.dragOperation,t),stateId:s9(e.stateId)};var n,r,o}function d9(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return l7(u9,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),a=new _7(o,new Y7(o)),i=new D7(o,a),s=e(i,t,n);return i.receiveBackend(s),i}function f9(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let p9=0;const h9=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var g9=z.memo((function(e){var{children:t}=e,n=f9(e,["children"]);const[r,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=m9(),n,r){const o=t;o[h9]||(o[h9]={dragDropManager:d9(e,t,n,r)});return o[h9]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return z.useEffect((()=>{if(o){const e=m9();return++p9,()=>{0==--p9&&(e[h9]=null)}}}),[]),Q.jsx(r7.Provider,{value:r,children:t})}));function m9(){return"undefined"!=typeof global?global:window}const b9=z.memo((function({connect:e,src:t}){return z.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})),v9="undefined"!=typeof window?z.useLayoutEffect:z.useEffect;function y9(e,t,n){const[r,o]=z.useState((()=>t(e))),a=z.useCallback((()=>{const a=t(e);LY(r,a)||(o(a),n&&n())}),[r,e,n]);return v9(a),[r,a]}function w9(e,t,n){return function(e,t,n){const[r,o]=y9(e,t,n);return v9((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function x9(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),z.useMemo((()=>"function"==typeof e?e():e),n)}function S9(e){return z.useMemo((()=>e.hooks.dragSource()),[e])}function k9(e){return z.useMemo((()=>e.hooks.dragPreview()),[e])}let C9=!1,E9=!1;class O9{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){c7(!C9,"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 C9=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{C9=!1}}isDragging(){if(!this.sourceId)return!1;c7(!E9,"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 E9=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{E9=!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 D9=!1;class $9{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;c7(!D9,"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 D9=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{D9=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function j9(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 a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<a.length;l++){const i=a[l];if(!s(i))return!1;const c=e[i],u=t[i];if(o=n?n.call(r,c,u,i):void 0,!1===o||void 0===o&&c!==u)return!1}return!0}function P9(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function _9(e){return(t=null,n=null)=>{if(!z.isValidElement(t)){const r=t;return e(r,n),r}const r=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(r);return function(e,t){const n=e.ref;return c7("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?z.cloneElement(e,{ref:e=>{I9(n,e),I9(t,e)}}):z.cloneElement(e,{ref:t})}(r,n?t=>e(t,n):e)}}function N9(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=_9(r);t[n]=()=>e}})),t}function I9(e,t){"function"==typeof e?e(t):e.current=t}class T9{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!j9(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!j9(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=N9({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,P9(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,P9(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 A9{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!j9(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=N9({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,P9(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function F9(){const{dragDropManager:e}=z.useContext(r7);return c7(null!=e,"Expected drag drop context"),e}class R9{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function M9(e,t,n){const r=F9(),o=function(e,t,n){const r=z.useMemo((()=>new R9(e,t,n)),[t,n]);return z.useEffect((()=>{r.spec=e}),[e]),r}(e,t,n),a=function(e){return z.useMemo((()=>{const t=e.type;return c7(null!=t,"spec.type must be defined"),t}),[e])}(e);v9((function(){if(null!=a){const[e,i]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i}}),[r,t,n,o,a])}function L9(e){return z.useMemo((()=>e.hooks.dropTarget()),[e])}class B9{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function z9(e,t,n){const r=F9(),o=function(e,t){const n=z.useMemo((()=>new B9(e,t)),[t]);return z.useEffect((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return z.useMemo((()=>(c7(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);v9((function(){const[e,i]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i}),[r,t,o,n,a.map((e=>e.toString())).join("|")])}const H9=r(Object.freeze(Object.defineProperty({__proto__:null,DndContext:r7,DndProvider:g9,DragPreviewImage:b9,useDrag:function(e,t){const n=x9(e,t);c7(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=function(){const e=F9();return z.useMemo((()=>new O9(e)),[e])}(),o=function(e,t){const n=F9(),r=z.useMemo((()=>new T9(n.getBackend())),[n]);return v9((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),v9((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return M9(n,r,o),[w9(n.collect,r,o),S9(o),k9(o)]},useDragDropManager:F9,useDragLayer:function(e){const t=F9().getMonitor(),[n,r]=y9(t,e);return z.useEffect((()=>t.subscribeToOffsetChange(r))),z.useEffect((()=>t.subscribeToStateChange(r))),n},useDrop:function(e,t){const n=x9(e,t),r=function(){const e=F9();return z.useMemo((()=>new $9(e)),[e])}(),o=function(e){const t=F9(),n=z.useMemo((()=>new A9(t.getBackend())),[t]);return v9((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return z9(n,r,o),[w9(n.collect,r,o),L9(o)]}},Symbol.toStringTag,{value:"Module"})));function W9(e){let t=null;return()=>(null==t&&(t=e()),t)}class U9{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 V9{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const G9="__NATIVE_FILE__",q9="__NATIVE_URL__",K9="__NATIVE_TEXT__",X9="__NATIVE_HTML__",Y9=Object.freeze(Object.defineProperty({__proto__:null,FILE:G9,HTML:X9,TEXT:K9,URL:q9},Symbol.toStringTag,{value:"Module"}));function Q9(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const J9={[G9]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[X9]:{exposeProperties:{html:(e,t)=>Q9(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[q9]:{exposeProperties:{urls:(e,t)=>Q9(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[K9]:{exposeProperties:{text:(e,t)=>Q9(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Z9(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(J9).filter((e=>{const n=J9[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const eee=W9((()=>/firefox/i.test(navigator.userAgent))),tee=W9((()=>Boolean(window.safari)));class nee{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:a}=this;let i=t.length-1;if(e===t[i])return n[i];let s,l=0,c=a.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const r=t[s];if(r<e)l=s+1;else{if(!(r>e))return n[s];c=s-1}}i=Math.max(0,c);const u=e-t[i],d=u*u;return n[i]+r[i]*u+o[i]*d+a[i]*u*d}constructor(e,t){const{length:n}=e,r=[];for(let f=0;f<n;f++)r.push(f);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],a=[];let i,s;for(let f=0;f<n-1;f++)i=e[f+1]-e[f],s=t[f+1]-t[f],o.push(i),a.push(s/i);const l=[a[0]];for(let f=0;f<o.length-1;f++){const e=a[f],t=a[f+1];if(e*t<=0)l.push(0);else{i=o[f];const n=o[f+1],r=i+n;l.push(3*r/((r+n)/e+(r+i)/t))}}l.push(a[a.length-1]);const c=[],u=[];let d;for(let f=0;f<l.length-1;f++){d=a[f];const e=l[f],t=1/o[f],n=e+l[f+1]-d-d;c.push((d-e-n)*t),u.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=c,this.c3s=u}}const ree=1;function oee(e){const t=e.nodeType===ree?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function aee(e){return{x:e.clientX,y:e.clientY}}function iee(e,t,n,r,o){const a="IMG"===(i=t).nodeName&&(eee()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(i)));var i,s;const l=oee(a?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:f,anchorY:p}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=function(e,t,n,r){let o=e?t.width:n,a=e?t.height:r;return tee()&&e&&(a/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:a}}(a,t,u,d),{offsetX:m,offsetY:b}=o,v=0===b||b;return{x:0===m||m?m:new nee([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(f),y:v?b:(()=>{let e=new nee([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(p);return tee()&&a&&(e+=(window.devicePixelRatio-1)*g),e})()}}class see{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function lee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lee(e,t,n[t])}))}return e}class uee{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return cee({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return cee({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Y9).some((t=>Y9[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=J9[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new V9(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&oee(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=aee(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=Z9(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:a,offsetX:i,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=iee(t,o,n,{anchorX:e,anchorY:a},{offsetX:i,offsetY:s});r.setDragImage(o,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(a){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Z9(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:aee(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=aee(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)):Z9(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:aee(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 see(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new U9(this.isNodeInDocument)}}let dee;const fee=r(Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:function(e,t,n){return new uee(e,t,n)},NativeTypes:Y9,getEmptyImage:function(){return dee||(dee=new Image,dee.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),dee}},Symbol.toStringTag,{value:"Module"})));var pee=function(){};var hee=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1},gee=function(e){return e!=e},mee=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var bee=function(e,t,n){return t==t?mee(e,t,n):hee(e,gee,n)};var vee=function(e,t){return!!(null==e?0:e.length)&&bee(e,t,0)>-1};var yee=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1},wee=Kq,xee=pee,See=wee&&1/EG(new wee([,-0]))[1]==1/0?function(e){return new wee(e)}:xee,kee=yG,Cee=vee,Eee=yee,Oee=wG,Dee=See,$ee=EG;var jee=function(e,t,n){var r=-1,o=Cee,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=Eee;else if(a>=200){var c=t?null:Dee(e);if(c)return $ee(c);i=!1,o=Oee,l=new kee}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s};var Pee=function(e){return e&&e.length?jee(e):[]},_ee={};Object.defineProperty(_ee,"__esModule",{value:!0});var Nee=Tee(z),Iee=Tee(XK);function Tee(e){return e&&e.__esModule?e:{default:e}}var Aee=function(e){return Nee.default.createElement("button",{className:e.classNames.clearAll,onClick:e.onClick},"Clear all")};Aee.propTypes={classNames:Iee.default.object,onClick:Iee.default.func},_ee.default=Aee;var Fee={};var Ree=function(e){return function(t){return null==e?void 0:e[t]}},Mee=Ree({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var Lee=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Bee=AG,zee=jU,Hee=hU?hU.prototype:void 0,Wee=Hee?Hee.toString:void 0;var Uee=function e(t){if("string"==typeof t)return t;if(Bee(t))return Lee(t,e)+"";if(zee(t))return Wee?Wee.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Vee=Uee;var Gee=function(e){return null==e?"":Vee(e)},qee=Mee,Kee=Gee,Xee=/[&<>"']/g,Yee=RegExp(Xee.source);var Qee=function(e){return(e=Kee(e))&&Yee.test(e)?e.replace(Xee,qee):e};Object.defineProperty(Fee,"__esModule",{value:!0});var Jee=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Zee=z,ete=ote(Zee),tte=ote(XK),nte=ote(PK),rte=ote(Qee);function ote(e){return e&&e.__esModule?e:{default:e}}function ate(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}var ite=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ate(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.markIt=function(e,t){var n=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e[r.props.labelField].replace(RegExp(n,"gi"),(function(e){return"<mark>"+(0,rte.default)(e)+"</mark>"}))}},r.shouldRenderSuggestions=function(e){var t=r.props,n=t.minQueryLength,o=t.isFocused;return e.length>=n&&o},r.renderSuggestion=function(e,t){var n=r.props.renderSuggestion;return"function"==typeof n?n(e,t):ete.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},ate(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)}(t,Zee.Component),Jee(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,nte.default)(t.suggestions,e.suggestions)||n(e.query)||n(e.query)!==n(t.query)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,s=i.selectedIndex,l=i.classNames;if(this.suggestionsContainer&&e.selectedIndex!==s){var c=this.suggestionsContainer.querySelector("."+l.activeSuggestion);c&&(t=c,n=this.suggestionsContainer,r=n.offsetHeight,o=t.offsetHeight,(a=t.offsetTop-n.scrollTop)+o>=r?n.scrollTop+=a-r+o:a<0&&(n.scrollTop+=a))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions.map(function(e,n){return ete.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)),r=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==n.length&&r(t.query)?ete.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},ete.default.createElement("ul",null," ",n," ")):null}}]),t}();ite.propTypes={query:tte.default.string.isRequired,selectedIndex:tte.default.number.isRequired,suggestions:tte.default.array.isRequired,handleClick:tte.default.func.isRequired,handleHover:tte.default.func.isRequired,minQueryLength:tte.default.number,shouldRenderSuggestions:tte.default.func,isFocused:tte.default.bool.isRequired,classNames:tte.default.object,labelField:tte.default.string.isRequired,renderSuggestion:tte.default.func},ite.defaultProps={minQueryLength:2},Fee.default=ite;var ste={},lte={},cte=Gee,ute=/[\\^$.*+?()[\]{}|]/g,dte=RegExp(ute.source);var fte=function(e){return(e=cte(e))&&dte.test(e)?e.replace(ute,"\\$&"):e};Object.defineProperty(lte,"__esModule",{value:!0}),lte.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,hte.default)(t);return new RegExp("["+n+"]+")},lte.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},lte.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var pte,hte=(pte=fte)&&pte.__esModule?pte:{default:pte};var gte={},mte={};Object.defineProperty(mte,"__esModule",{value:!0}),mte.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},mte.DEFAULT_PLACEHOLDER="Press enter to add new tag",mte.DEFAULT_LABEL_FIELD="text",mte.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"},mte.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"},Object.defineProperty(gte,"__esModule",{value:!0});var bte=wte(z),vte=wte(XK),yte=mte;function wte(e){return e&&e.__esModule?e:{default:e}}var xte=String.fromCharCode(215),Ste=function(e){var t=e.readOnly,n=e.removeComponent,r=e.onRemove,o=e.className,a=e.tag,i=e.index,s=function(e){if(yte.KEYS.ENTER.includes(e.keyCode)||e.keyCode===yte.KEYS.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===yte.KEYS.BACKSPACE&&r(e)};if(t)return bte.default.createElement("span",null);var l="Tag at index "+i+" with value "+a.id+" focussed. Press backspace to remove";if(n){var c=n;return bte.default.createElement(c,{onRemove:r,onKeyDown:s,className:o,"aria-label":l,tag:a,index:i})}return bte.default.createElement("button",{onClick:r,onKeyDown:s,className:o,type:"button","aria-label":l},xte)};Ste.propTypes={className:vte.default.string,onRemove:vte.default.func.isRequired,readOnly:vte.default.bool,removeComponent:vte.default.func,tag:vte.default.shape({id:vte.default.string.isRequired,className:vte.default.string,key:vte.default.string}),index:vte.default.number.isRequired},gte.default=Ste,Object.defineProperty(ste,"__esModule",{value:!0});var kte=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){o=!0,a=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Cte=z,Ete=_te(Cte),Ote=H9,Dte=_te(XK),$te=_te(Om),jte=lte,Pte=_te(gte);function _te(e){return e&&e.__esModule?e:{default:e}}var Nte="tag",Ite=function(e){var t=(0,Cte.useRef)(null),n=e.readOnly,r=e.tag,o=e.classNames,a=e.index,i=(0,Ote.useDrag)((function(){return{type:Nte,collect:function(e){return{isDragging:!!e.isDragging()}},item:e,canDrag:function(){return(0,jte.canDrag)(e)}}})),s=kte(i,2),l=s[0].isDragging,c=s[1],u=(0,Ote.useDrop)((function(){return{accept:Nte,drop:function(t,n){var r=t.index,o=a;r!==o&&e.moveTag(r,o)},canDrop:function(e){return(0,jte.canDrop)(e)}}}));c((0,kte(u,2)[1])(t));var d=e.tag[e.labelField],f=r.className,p=void 0===f?"":f,h=l?0:1;return Ete.default.createElement("span",{ref:t,className:(0,$te.default)("tag-wrapper",o.tag,p),style:{opacity:h,cursor:(0,jte.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},d,Ete.default.createElement(Pte.default,{tag:e.tag,className:o.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:n,index:a}))};Ite.propTypes={labelField:Dte.default.string,onDelete:Dte.default.func.isRequired,tag:Dte.default.shape({id:Dte.default.string.isRequired,className:Dte.default.string,key:Dte.default.string}),moveTag:Dte.default.func,removeComponent:Dte.default.func,onTagClicked:Dte.default.func,classNames:Dte.default.object,readOnly:Dte.default.bool,index:Dte.default.number.isRequired},Ite.defaultProps={labelField:"text",readOnly:!1},ste.default=Ite,Object.defineProperty(n7,"__esModule",{value:!0}),n7.KEYS=n7.WithOutContext=n7.WithContext=void 0;var Tte=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ate=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Fte=z,Rte=Yte(Fte),Mte=H9,Lte=fee,Bte=Yte(PK),zte=Yte(pee),Hte=Yte(Pee),Wte=Yte(_ee),Ute=Yte(Fee),Vte=Yte(XK),Gte=Yte(Om),qte=Yte(ste),Kte=lte,Xte=mte;function Yte(e){return e&&e.__esModule?e:{default:e}}function Qte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jte=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));Zte.call(n),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var r=e.suggestions;return n.state={suggestions:r,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1,ariaLiveStatus:"",currentEditIndex:-1},n.reactTagsRef=(0,Fte.createRef)(),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.moveTag=n.moveTag.bind(n),n.handlePaste=n.handlePaste.bind(n),n.handleSuggestionHover=n.handleSuggestionHover.bind(n),n.handleSuggestionClick=n.handleSuggestionClick.bind(n),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)}(t,Fte.Component),Ate(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.readOnly;t&&!n&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,Bte.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"handleDelete",value:function(e,t){t.preventDefault(),t.stopPropagation();var n=this.props.tags.slice();if(0!==n.length){var r="Tag at index "+e+" with value "+n[e].id+" deleted.";this.props.handleDelete(e,t);var o=this.reactTagsRef.current.querySelectorAll(".ReactTags__remove"),a=void 0,i=void 0,s=void 0;0===e&&n.length>1?(a=o[0],i=0,s=n[1]):(a=o[e-1],s=n[i=e-1]),a||(i=-1,a=this.textInput),r+=i>=0?" Tag at index "+i+" with value "+s.id+" focussed. Press backspace to remove":"Input focussed. Press enter to add a new tag",a.focus(),this.setState({ariaLiveStatus:r})}}},{key:"handleTagClick",value:function(e,t,n){var r=this,o=this.props,a=o.editable,i=o.handleTagClick,s=o.labelField;a&&this.setState({currentEditIndex:e,query:t[s]},(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){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1,currentEditIndex:-1})}},{key:"handleKeyDown",value:function(e){var t=this.state,n=t.query,r=t.selectedIndex,o=t.suggestions,a=t.selectionMode;if(e.keyCode===Xte.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===Xte.KEYS.TAB&&""===n||e.preventDefault();var i=a&&-1!==r?o[r]:Qte({id:n},this.props.labelField,n);""!==i&&this.addTag(i)}e.keyCode===Xte.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===Xte.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===Xte.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===o.length?-1:(r+1)%o.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){e.preventDefault();var n=e.clipboardData||window.clipboardData,r=n.getData("text"),o=this.props.maxLength,a=void 0===o?r.length:o,i=Math.min(a,r.length),s=n.getData("text").substr(0,i),l=(0,Kte.buildRegExpFromDelimiters)(this.props.delimiters),c=s.split(l);(0,Hte.default)(c).forEach((function(e){return t.addTag(Qte({id:e},t.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){var n=this.props.tags[e];this.props.handleDrag(n,e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),n=Tte({},Xte.DEFAULT_CLASSNAMES,this.props.classNames),r=this.state.query.trim(),o=this.state.selectedIndex,a=this.state.suggestions,i=this.props,s=i.placeholder,l=i.name,c=i.id,u=i.maxLength,d=i.inline,f=i.inputFieldPosition,p=i.inputValue,h=i.inputProps,g=i.clearAll,m=i.tags,b=d?f:Xte.INPUT_FIELD_POSITIONS.BOTTOM,v=this.props.readOnly?null:Rte.default.createElement("div",{className:n.tagInput},Rte.default.createElement("input",Tte({},h,{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:l,id:c,maxLength:u,value:p,"data-automation":"input","data-testid":"input"})),Rte.default.createElement(Ute.default,{query:r,suggestions:a,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}),g&&m.length>0&&Rte.default.createElement(Wte.default,{classNames:n,onClick:this.clearAll}));return Rte.default.createElement("div",{className:(0,Gte.default)(n.tags,"react-tags-wrapper"),ref:this.reactTagsRef},Rte.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),b===Xte.INPUT_FIELD_POSITIONS.TOP&&v,Rte.default.createElement("div",{className:n.selected},t,b===Xte.INPUT_FIELD_POSITIONS.INLINE&&v),b===Xte.INPUT_FIELD_POSITIONS.BOTTOM&&v)}}]),t}();Jte.propTypes={placeholder:Vte.default.string,labelField:Vte.default.string,suggestions:Vte.default.arrayOf(Vte.default.shape({id:Vte.default.string.isRequired})),delimiters:Vte.default.arrayOf(Vte.default.number),autofocus:Vte.default.bool,inline:Vte.default.bool,inputFieldPosition:Vte.default.oneOf([Xte.INPUT_FIELD_POSITIONS.INLINE,Xte.INPUT_FIELD_POSITIONS.TOP,Xte.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:Vte.default.func,handleAddition:Vte.default.func,onTagUpdate:Vte.default.func,handleDrag:Vte.default.func,handleFilterSuggestions:Vte.default.func,handleTagClick:Vte.default.func,allowDeleteFromEmptyInput:Vte.default.bool,allowAdditionFromPaste:Vte.default.bool,allowDragDrop:Vte.default.bool,handleInputChange:Vte.default.func,handleInputFocus:Vte.default.func,handleInputBlur:Vte.default.func,minQueryLength:Vte.default.number,shouldRenderSuggestions:Vte.default.func,removeComponent:Vte.default.func,autocomplete:Vte.default.oneOfType([Vte.default.bool,Vte.default.number]),readOnly:Vte.default.bool,classNames:Vte.default.object,name:Vte.default.string,id:Vte.default.string,maxLength:Vte.default.number,inputValue:Vte.default.string,tags:Vte.default.arrayOf(Vte.default.shape({id:Vte.default.string.isRequired,className:Vte.default.string})),allowUnique:Vte.default.bool,renderSuggestion:Vte.default.func,inputProps:Vte.default.object,editable:Vte.default.bool,clearAll:Vte.default.bool,onClearAll:Vte.default.func},Jte.defaultProps={placeholder:Xte.DEFAULT_PLACEHOLDER,labelField:Xte.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Xte.KEYS.ENTER),[Xte.KEYS.TAB]),autofocus:!0,inline:!0,inputFieldPosition:Xte.INPUT_FIELD_POSITIONS.INLINE,handleDelete:zte.default,handleAddition:zte.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[],inputProps:{},onTagUpdate:zte.default,editable:!1,clearAll:!1,handleClearAll:zte.default};var Zte=function(){var e=this;this.filteredSuggestions=function(t){var n=e.props.suggestions;if(e.props.allowUnique){var r=e.props.tags.map((function(e){return e.id.toLowerCase()}));n=n.filter((function(e){return!r.includes(e.id.toLowerCase())}))}if(e.props.handleFilterSuggestions)return e.props.handleFilterSuggestions(t,n);var o=n.filter((function(n){return 0===e.getQueryIndex(t,n)})),a=n.filter((function(n){return e.getQueryIndex(t,n)>0}));return o.concat(a)},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.query,r=t.selectedIndex,o=e.filteredSuggestions(n);e.setState({suggestions:o,selectedIndex:r>=o.length?o.length-1:r})},this.addTag=function(t){var n=e.props,r=n.tags,o=n.labelField,a=n.allowUnique,i=e.state.currentEditIndex;if(t.id&&t[o]){var s=r.map((function(e){return e.id.toLowerCase()}));if(!(a&&s.indexOf(t.id.toLowerCase())>=0)){if(e.props.autocomplete){var l=e.filteredSuggestions(t[o]);(1===e.props.autocomplete&&1===l.length||!0===e.props.autocomplete&&l.length)&&(t=l[0])}-1!==i&&e.props.onTagUpdate?e.props.onTagUpdate(i,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,a=t.readOnly,i=t.allowDragDrop,s=Tte({},Xte.DEFAULT_CLASSNAMES,e.props.classNames),l=e.state,c=l.currentEditIndex,u=l.query,d=i?e.moveTag:null;return n.map((function(t,n){return Rte.default.createElement(Rte.default.Fragment,{key:n},c===n?Rte.default.createElement("div",{className:s.editTagInput},Rte.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"})):Rte.default.createElement(qte.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:a,classNames:s,allowDragDrop:i}))}))}},ene=n7.WithContext=function(e){var t=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,[]);return Rte.default.createElement(Mte.DndProvider,{backend:Lte.HTML5Backend},Rte.default.createElement(Jte,t))};n7.WithOutContext=Jte,n7.KEYS=Xte.KEYS;const tne=e=>{const t=e;return t.text.includes("<lora")?t.className="ReactTags__lora":t.text.includes("<hypernet")?t.className="ReactTags__hypernet":t.text.includes("<embedding")?t.className="ReactTags__embedding":t.className=void 0,t},nne=ZB((({css:e,token:t},n)=>e`
.autocompleteResults {
left: 16px !important;
min-width: 200px !important;
padding: 0 !important;
}
/* Styles for the input */
.ReactTags__editTagInput,
.ReactTags__tagInput {
display: inline-block;
width: 100%;
margin: 0;
input {
position: relative;
display: block;
width: 100%;
margin: 0;
padding: var(--input-padding);
color: ${"positive"===n?t.colorSuccessTextHover:t.colorErrorTextHover};
background: ${t.colorFillTertiary};
border: 1px solid ${t.colorBorderSecondary};
border-radius: ${t.borderRadius}px;
&:focus {
color: ${"positive"===n?t.colorSuccessText:t.colorErrorText};
background: ${t.colorFillSecondary};
border: 1px solid ${t.colorBorder};
outline: none;
}
}
}
/* Styles for selected tags */
.ReactTags__tags.react-tags-wrapper {
display: flex;
flex-direction: column;
gap: 4px;
}
.ReactTags__selected {
display: flex;
flex-wrap: wrap;
gap: 4px;
span.ReactTags__tag {
position: relative;
display: flex;
align-items: center;
padding: 6px 6px 6px 8px;
font-size: 13px;
color: ${"positive"===n?t.colorSuccessTextHover:t.colorErrorTextHover};
background: ${t.colorFillSecondary};
border: 1px solid ${t.colorBorderSecondary};
border-radius: ${t.borderRadius}px;
&:hover {
color: ${"positive"===n?t.colorSuccessText:t.colorErrorText};
background: ${t.colorFill};
border: 1px solid ${t.colorBorder};
}
}
a.ReactTags__remove {
cursor: pointer;
margin-left: 5px;
color: #aaa;
}
}
.ReactTags__remove {
cursor: pointer;
color: ${t.colorTextDescription};
background: none;
border: none;
&:hover {
color: ${t.colorText};
}
}
`)),rne=ene,one=[188,13],ane=z.memo((({tags:e,setTags:t,type:n,setValue:r})=>{const o=`${n}_tag_editor`,[a,i]=z.useState(!1),{styles:s}=nne(n),l=z.useCallback((n=>{const o=e.filter(((e,t)=>t!==n));t(o),r(o)}),[e]),c=z.useCallback((n=>{const o=[...e,tne(n)];t(o),r(o)}),[e]),u=z.useCallback(((n,o,a)=>{const i=[...e];i.splice(o,1),i.splice(a,0,tne(n)),t(i),r(i)}),[e]),d=z.useCallback(((n,o)=>{const a=[...e];a[n]=tne(o),t(a),r(a)}),[e]);return z.useEffect((()=>{try{if(!addAutocompleteToArea||a)return;let e=0;const t=setInterval((()=>{if(console.time("🤯 [promptTagEditor] inject"),a||e>10){const e=document.querySelector(`#${o}`);e&&(i(!0),addAutocompleteToArea(e),clearInterval(t),console.timeEnd("🤯 [promptTagEditor] inject"))}e++}),1e3)}catch(e){console.error(e)}}),[a]),Q.jsx("div",{className:s,children:Q.jsx(rne,{delimiters:one,editable:!0,handleAddition:c,handleDelete:l,handleDrag:u,id:o,inline:!0,inputFieldPosition:"bottom",onTagUpdate:d,tags:e})})})),ine=z.memo((({type:e})=>{const[t,n]=z.useState([]),{styles:r}=t7(),{t:o}=z1(),a="positive"===e?"[id$='2img_prompt'] textarea":"[id$='2img_neg_prompt'] textarea",i=z.useCallback((()=>{try{const e=get_uiCurrentTabContent().querySelector(a);e&&n((e=>{const t=k8.convertStr(e);return k8.convertStr2Array(t).map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/|\.\|。/g,",").replaceAll(/“||”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return k8.convertStr2Array(t).join(", ")})).map((e=>tne({id:e,text:e})))})(e.value))}catch(e){console.debug(e)}}),[]),s=z.useCallback((()=>{try{const e=t.map((e=>e.text)).join(", "),n=get_uiCurrentTabContent().querySelector(a);n&&(n.value=e),updateInput(n)}catch(e){console.debug(e)}}),[t,e]),l=z.useCallback((e=>{try{const t=get_uiCurrentTabContent().querySelector(a);t&&(t.value=e.map((e=>e.text)).join(", ")),updateInput(t)}catch(t){console.debug(t)}}),[]);return Q.jsxs("div",{className:r.promptView,children:[Q.jsx(ane,{setTags:n,setValue:l,tags:t,type:e}),Q.jsxs("div",{className:r.buttonGroup,children:[Q.jsx("button",{className:"lg secondary gradio-button tool svelte-1ipelgc",onClick:i,title:o("loadPrompt"),type:"button",children:"🔄"}),Q.jsx("button",{className:"lg secondary gradio-button tool svelte-1ipelgc",onClick:s,title:o("setPrompt"),type:"button",children:"➡️"})]})]})})),sne=ine,lne=z.memo((()=>{const{styles:e}=t7(),{t:t}=z1();return Q.jsxs("div",{className:e.view,children:[Q.jsx("span",{style:{marginBottom:-10},children:t("positive")}),Q.jsx(sne,{type:"positive"}),Q.jsx("span",{style:{marginBottom:-10},children:t("negative")}),Q.jsx(sne,{type:"negative"})]})})),cne=lne,une={kitchen:H4.dark.colorPrimary,...lZ},dne=[une.kitchen,...cZ],fne={kitchen:W4.dark.colorNeutral,...uZ},pne=[fne.kitchen,...dZ],hne=(e,t)=>{if(!t)return"";let n="primary"===e?une:fne,r=Object.entries(n).find((e=>e[1]===t));return null==r?void 0:r[0]},gne=ZB((({css:e,responsive:t})=>e`
${t.mobile} {
.ant-row.ant-form-item-row {
flex-direction: column !important;
}
}
small {
line-height: 1.3 !important;
}
`)),mne=z.memo((()=>{const e=p4(u4,LY),{onSetSetting:t,localeOptions:n}=p4((e=>({localeOptions:e.localeOptions,onSetSetting:e.onSetSetting})),m4),[r,o]=z.useState(e),[a,i]=z.useState(e.primaryColor||void 0),[s,l]=z.useState(e.neutralColor||void 0),{styles:c}=gne(),{t:u}=z1(),d=z.useCallback((()=>{t(i4),location.reload()}),[]),f=z.useCallback((e=>{t({...e,neutralColor:s,primaryColor:a}),location.reload()}),[a,s]),p=z.useMemo((()=>({children:[{children:Q.jsx(UP,{options:n}),desc:u("settingLanguageDesc"),label:u("settingLanguage"),name:"i18n"},{children:Q.jsx(UL,{}),desc:u("settingReduceAnimationDesc"),label:u("settingReduceAnimation"),name:"liteAnimation",valuePropName:"checked"},{children:Q.jsx(wZ,{activeColor:a?une[a]:void 0,colors:dne,onSelect:e=>i(hne("primary",e))}),desc:u("settingPrimaryColorDesc"),label:u("settingPrimaryColor")},{children:Q.jsx(wZ,{activeColor:s?fne[s]:void 0,colors:pne,onSelect:e=>l(hne("neutral",e))}),desc:u("settingNeutralColorDesc"),label:u("settingNeutralColor")},{children:Q.jsx(lL,{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:Q.jsx(sR,{}),desc:u("settingCustomLogoDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomLogo"),name:"logoCustomUrl"},{children:Q.jsx(sR,{}),desc:u("settingCustomTitleDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomTitle"),name:"logoCustomTitle"},{children:Q.jsx(J8,{logoCustomTitle:r.logoCustomTitle,logoCustomUrl:r.logoCustomUrl}),divider:!1,hidden:"custom"!==r.logoType,label:u("settingLogoPreview")},{children:Q.jsx(UL,{}),desc:u("settingSvgIconsDesc"),label:u("settingSvgIcons"),name:"svgIcon",valuePropName:"checked"},{children:Q.jsx(UL,{}),desc:u("settingCustomFontDesc"),label:u("settingCustomFont"),name:"enableWebFont",valuePropName:"checked"},{children:Q.jsx(UL,{}),desc:u("settingConfirmPageUnloadDesc"),label:u("settingConfirmPageUnload"),name:"confirmPageUnload",valuePropName:"checked"}],icon:Nd,title:u("settingGroupTheme")})),[a,s,r.logoType,r.logoCustomTitle,r.logoCustomUrl]),h=z.useMemo((()=>({children:[{children:Q.jsx(lL,{options:[{label:u("scroll"),value:"scroll"},{label:u("resizable"),value:"resizable"}]}),desc:u("settingPromptDisplayModeDesc"),label:u("settingPromptDisplayMode"),name:"promptTextareaType"},{children:Q.jsx(UL,{}),desc:u("settingPromptHighlightDesc"),label:u("settingPromptHighlight"),name:"enableHighlight",valuePropName:"checked"},{children:Q.jsx(UL,{}),desc:u("settingPromptEditorDesc"),label:u("settingPromptEditor"),name:"promptEditor",valuePropName:"checked"}],icon:Bd,title:u("settingGroupPromptTextarea")})),[]),g=z.useMemo((()=>({children:[{children:Q.jsx(UL,{}),desc:u("settingSplitPreviewerDesc"),label:u("settingSplitPreviewer"),name:"layoutSplitPreview",valuePropName:"checked"},{children:Q.jsx(UL,{}),desc:u("settingHideFooterDesc"),label:u("settingHideFooter"),name:"layoutHideFooter",valuePropName:"checked"}],icon:$d,title:u("settingGroupLayout")})),[]),m=z.useMemo((()=>({children:[{children:Q.jsx(UL,{}),desc:u("settingQuickSettingSidebarEnableDesc"),label:u("settingQuickSettingSidebarEnable"),name:"enableSidebar",valuePropName:"checked"},{children:Q.jsx(UL,{}),desc:u("settingQuickSettingSidebarDefaultExpandDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultExpand"),name:"sidebarExpand",valuePropName:"checked"},{children:Q.jsx(lL,{options:[{label:u("fixed"),value:"fixed"},{label:u("float"),value:"float"}]}),desc:u("settingQuickSettingSidebarDisplayModeDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDisplayMode"),name:"sidebarFixedMode"},{children:Q.jsx(PF,{}),desc:u("settingQuickSettingSidebarDefaultWidthDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultWidth"),name:"sidebarWidth"}],icon:Id,title:u("settingGroupQuickSettingSidebar")})),[r.enableSidebar]),b=z.useMemo((()=>({children:[{children:Q.jsx(UL,{}),desc:u("settingExtraNetworkSidebarEnableDesc"),label:u("settingExtraNetworkSidebarEnable"),name:"enableExtraNetworkSidebar",valuePropName:"checked"},{children:Q.jsx(lL,{options:[{label:u("fixed"),value:"fixed"},{label:u("float"),value:"float"}]}),desc:u("settingExtraNetworkSidebarDisplayModeDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDisplayMode"),name:"extraNetworkFixedMode"},{children:Q.jsx(UL,{}),desc:u("settingExtraNetworkSidebarDefaultExpandDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultExpand"),name:"extraNetworkSidebarExpand",valuePropName:"checked"},{children:Q.jsx(PF,{}),desc:u("settingExtraNetworkSidebarDefaultWidthDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultWidth"),name:"extraNetworkSidebarWidth"},{children:Q.jsx(PF,{}),desc:u("settingExtraNetworkSidebarDefaultCardSizeDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultCardSize"),name:"extraNetworkCardSize"}],icon:Ad,title:u("settingGroupExtraNetworkSidebar")})),[r.enableExtraNetworkSidebar]);return Q.jsx(IQ,{className:c,footer:Q.jsxs(Q.Fragment,{children:[Q.jsx(cC,{htmlType:"button",onClick:d,style:{borderRadius:4},children:u("settingButtonReset")}),Q.jsx(cC,{htmlType:"submit",style:{borderRadius:4},type:"primary",children:u("settingButtonSubmit")})]}),initialValues:e,items:[p,h,g,m,b],onFinish:f,onValuesChange:(e,t)=>o(t)})})),bne=mne,vne=z.memo((({open:e,onCancel:t})=>{const{t:n}=z1();return Q.jsx(SX,{footer:!1,onCancel:t,open:e,title:Q.jsxs(nW,{align:"center",gap:4,horizontal:!0,children:[Q.jsx("a",{href:n4,rel:"noreferrer",target:"_blank",children:Q.jsx(xz,{icon:vd,title:"Setting Documents"})}),Q.jsxs(_R,{children:[n("themeSetting"),Q.jsx(G8,{})]})]}),children:Q.jsx(bne,{})})})),yne=({size:e})=>Q.jsx("svg",{fill:"currentColor",height:e,viewBox:"0 0 16 16",width:e,children:Q.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"})}),wne=z.memo((()=>{const[e,t]=z.useState(!1),[n,r]=z.useState(!1),o=p4(f4,m4),{mobile:a}=CB(),{t:i}=z1(),s=z.useCallback((()=>{const e="light"===o?"dark":"light",t=B4.parseUrl(window.location.href);t.query.__theme=e,window.location.replace(B4.stringifyUrl(t))}),[o]);return Q.jsxs(Q.Fragment,{children:[Q.jsxs(_R.Compact,{children:[!a&&Q.jsxs(Q.Fragment,{children:[Q.jsx("a",{href:"https://civitai.com/",rel:"noreferrer",target:"_blank",children:Q.jsx(xz,{icon:yne,title:"Civitai"})}),Q.jsx("a",{href:"https://supagruen.github.io/StableDiffusion-CheatSheet/",rel:"noreferrer",target:"_blank",children:Q.jsx(xz,{icon:Dd,title:"Cheat Sheet"})}),Q.jsx(xz,{icon:Od,onClick:()=>r(!0),title:i("feedback")})]}),Q.jsx(xz,{icon:"light"===o?Ld:_d,onClick:s,title:i("switchTheme")}),Q.jsx(xz,{icon:Md,onClick:()=>t(!0),title:i("setting")})]}),Q.jsx(vne,{onCancel:()=>t(!1),open:e}),Q.jsx(X8,{onCancel:()=>r(!1),open:n})]})})),xne=wne,Sne=()=>Array.prototype.slice.call(gradioApp().querySelectorAll("#tabs > .tab-nav:first-of-type button")),kne=()=>{console.debug("🤯 [nav] generate nav list");const e=Array.prototype.slice.call(gradioApp().querySelectorAll('#tabs > [id^="tab_"]'));return Sne().map(((t,n)=>({id:e[n].id,index:n,label:BH(String(t.textContent))})))},Cne=z.memo((()=>{const e=p4(d4,m4),{mobile:t}=CB(),[n,r]=z.useState(!1),[o,a]=z.useState([]),i=z.useMemo((()=>kne()),[]),s=z.useCallback((e=>{var t;console.debug("🤯 [nav] onClick",e);const n=(null==(t=i.find((t=>t.id===e)))?void 0:t.index)||0;Sne()[n].click()}),[i]);return z.useEffect((()=>{console.time("🤯 [layout] inject - Header"),gradioApp().querySelector("#tabs > .tab-nav:first-of-type").style.display="none";const e=i.map((e=>({key:e.id,label:t?Q.jsx("div",{onClick:()=>s(e.id),children:e.label}):e.label})));a(e.filter(Boolean)),console.timeEnd("🤯 [layout] inject - Header")}),[t]),t?Q.jsx(VK,{items:o,opened:n,setOpened:r}):Q.jsx(OZ,{activeKey:e,items:o,onChange:s})})),Ene=z.memo((({children:e})=>{const{themeMode:t,version:n}=p4((e=>({themeMode:e.themeMode,version:e.version})),m4),r=iz();return Q.jsx(lJ,{actions:Q.jsx(xne,{themeMode:t}),actionsStyle:{flex:0},logo:Q.jsx("a",{href:`${n4}/releases`,rel:"noreferrer",style:{alignItems:"center",color:r.colorText,display:"flex"},target:"_blank",children:Q.jsx(g0,{title:`sd-webui-lobe-theme v${n}`,children:Q.jsx(e7,{})})}),nav:Q.jsxs(Q.Fragment,{children:[Q.jsx(Cne,{}),e]})})})),One=z.memo((()=>{const e=p4(u4,LY),t=z.useRef(null);return z.useEffect((()=>{var e;console.time("🤯 [layout] inject - QuickSettingSidebar");const n=gradioApp().querySelector("#quicksettings");n&&(null==(e=t.current)||e.append(n)),console.timeEnd("🤯 [layout] inject - QuickSettingSidebar")}),[]),Q.jsxs(EY,{children:[e.promptEditor&&Q.jsx(cne,{}),Q.jsx("div",{ref:t})]})})),Dne=ZB((({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;
}
}
`}))),$ne=z.memo((({headerHeight:e})=>{const{mobile:t}=CB(),n=p4(u4,LY),[r,o]=z.useState(!t&&n.sidebarExpand),[a,i]=z.useState("fixed"===n.sidebarFixedMode),[s,l]=z.useState(n.sidebarWidth),{styles:c,theme:u}=Dne({headerHeight:e,width:s}),{t:d}=z1();z.useEffect((()=>{t&&o(!1)}),[t]);const f=t||a?"fixed":"float";return Q.jsx(mY,{defaultSize:{width:n.sidebarWidth},expand:r,minWidth:n.sidebarWidth,mode:f,onExpandChange:o,onSizeChange:(e,t)=>(null==t?void 0:t.width)&&l(Number.parseInt(String(t.width))),pin:a,placement:"left",style:{display:"flex",flexDirection:"column"},children:Q.jsx(NJ,{children:Q.jsxs(jY,{className:c.container,style:"float"===f?{background:u.colorBgContainer,minWidth:n.sidebarWidth}:{minWidth:n.sidebarWidth},children:[Q.jsx(RY,{pin:a,position:"left",setExpand:o,setPin:i,title:d("quickSetting")}),Q.jsx(One,{})]})})})})),jne=$ne,Pne=ZB((({cx:e,css:t,stylish:n,token:r,isDarkMode:o},{headerHeight:a,isPrimaryColor:i})=>({background:e(n.gradientAnimation,i&&t`
background-image: linear-gradient(
-45deg,
${r.colorPrimary},
${QW(45,r.colorPrimary)},
${r.colorPrimary},
${QW(-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: ${i?o?.2:.05:o?.15:0};
background: radial-gradient(
circle 600px at calc(100% - 300px) 300px,
${r.colorPrimary},
transparent
);
`,panel:t`
.draggable-panel {
border-style: dashed;
}
`,quicksettings:t`
#quicksettings {
align-items: start;
padding: 16px !important;
}
`,sidebar:t`
height: calc(100vh - ${a}px);
`}))),_ne=64,Nne=z.memo((()=>{const e=p4(u4,LY),{cx:t,styles:n}=Pne({headerHeight:_ne,isPrimaryColor:Boolean(e.primaryColor)});return z.useEffect((()=>{e.enableHighlight&&(a8("#txt2img_prompt","#lobe_txt2img_prompt"),a8("#img2img_prompt","#lobe_img2img_prompt")),e.svgIcon&&(()=>{console.time("🤯 [svgIcon] replace");for(const e of document.querySelectorAll("button"))s8(e,["🖌️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />\n <path d="M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z" />\n</svg>\n',16),s8(e,["🗃️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M4 22V4c0-.5.2-1 .6-1.4C5 2.2 5.5 2 6 2h8.5L20 7.5V20c0 .5-.2 1-.6 1.4-.4.4-.9.6-1.4.6h-2" />\n <polyline points="14 2 14 8 20 8" />\n <circle cx="10" cy="20" r="2" />\n <path d="M10 7V6" />\n <path d="M10 12v-1" />\n <path d="M10 18v-2" />\n</svg>\n',16),s8(e,["🖼️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />\n <circle cx="9" cy="9" r="2" />\n <path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />\n</svg>\n',16),s8(e,["🎨️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08" />\n <path d="M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z" />\n</svg>\n',16),s8(e,["📂"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" />\n <path d="M2 10h20" />\n</svg>\n',16),s8(e,["🔄","🔁","♻️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />\n <path d="M3 3v5h5" />\n <path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16" />\n <path d="M16 16h5v5" />\n</svg>\n',16),s8(e,["↙️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M17 7 7 17" />\n <path d="M17 17H7V7" />\n</svg>\n',16),s8(e,["⤴"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <polyline points="10 9 15 4 20 9" />\n <path d="M4 20h7a4 4 0 0 0 4-4V4" />\n</svg>\n',16),s8(e,["↕️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m3 16 4 4 4-4" />\n <path d="M7 20V4" />\n <path d="M11 4h10" />\n <path d="M11 8h7" />\n <path d="M11 12h4" />\n</svg>\n',16),s8(e,["🗑️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M3 6h18" />\n <path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" />\n <path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" />\n</svg>\n',16),s8(e,["📋"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="8" height="4" x="8" y="2" rx="1" ry="1" />\n <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />\n <path d="M12 11h4" />\n <path d="M12 16h4" />\n <path d="M8 11h.01" />\n <path d="M8 16h.01" />\n</svg>\n',16),s8(e,["💾"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" />\n <polyline points="17 21 17 13 7 13 7 21" />\n <polyline points="7 3 7 8 15 8" />\n</svg>\n',16),s8(e,["🎲️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="12" height="12" x="2" y="10" rx="2" ry="2" />\n <path d="m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6" />\n <path d="M6 18h.01" />\n <path d="M10 14h.01" />\n <path d="M15 6h.01" />\n <path d="M18 9h.01" />\n</svg>\n',16),s8(e,["🪄"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z" />\n <path d="m14 7 3 3" />\n <path d="M5 6v4" />\n <path d="M19 14v4" />\n <path d="M10 2v2" />\n <path d="M7 8H3" />\n <path d="M21 16h-4" />\n <path d="M11 3H9" />\n</svg>\n',16),s8(e,["⚙️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />\n <circle cx="12" cy="12" r="3" />\n</svg>\n',16),s8(e,["➡️"],i8,16),s8(e,["⇅"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21 16-4 4-4-4" />\n <path d="M17 20V4" />\n <path d="m3 8 4-4 4 4" />\n <path d="M7 4v16" />\n</svg>\n',16),s8(e,["⇄"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m16 3 4 4-4 4" />\n <path d="M20 7H4" />\n <path d="m8 21-4-4 4-4" />\n <path d="M4 17h16" />\n</svg>\n',16),s8(e,["🎴"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />\n <line x1="15" x2="15" y1="3" y2="21" />\n</svg>\n',16),s8(e,["🌀"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="20" height="5" x="2" y="3" rx="1" />\n <path d="M4 8v11a2 2 0 0 0 2 2h2" />\n <path d="M20 8v11a2 2 0 0 1-2 2h-2" />\n <path d="m9 15 3-3 3 3" />\n <path d="M12 12v9" />\n</svg>\n',16),s8(e,["💥"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <polygon points="5 3 19 12 5 21 5 3" />\n</svg>\n',16),s8(e,["📷"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <circle cx="12" cy="10" r="8" />\n <circle cx="12" cy="10" r="3" />\n <path d="M7 22h10" />\n <path d="M12 22v-4" />\n</svg>\n',16),s8(e,["📝"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="12" x="3" y="4" rx="2" ry="2" />\n <line x1="2" x2="22" y1="20" y2="20" />\n</svg>\n',16),s8(e,["📐"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m15 5 4 4" />\n <path d="M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13" />\n <path d="m8 6 2-2" />\n <path d="m2 22 5.5-1.5L21.17 6.83a2.82 2.82 0 0 0-4-4L3.5 16.5Z" />\n <path d="m18 16 2-2" />\n <path d="m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17" />\n</svg>\n',16),s8(e,["⬇️"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M12 5v14" />\n <path d="m19 12-7 7-7-7" />\n</svg>\n',16),s8(e,["↩"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M3 7v6h6" />\n <path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" />\n</svg>\n',16),s8(e,["📒"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20" />\n</svg>\n',16),s8(e,["📎"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48" />\n</svg>\n',16),s8(e,["📦"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" />\n <path d="m3.3 7 8.7 5 8.7-5" />\n <path d="M12 22V12" />\n</svg>\n',16);for(const e of document.querySelectorAll("span"))s8(e,["⤡"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M8 3H5a2 2 0 0 0-2 2v3" />\n <path d="M21 8V5a2 2 0 0 0-2-2h-3" />\n <path d="M3 16v3a2 2 0 0 0 2 2h3" />\n <path d="M16 21h3a2 2 0 0 0 2-2v-3" />\n</svg>\n',36),s8(e,["⊞"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <rect width="18" height="18" x="3" y="3" rx="2" />\n <path d="M3 12h18" />\n <path d="M12 3v18" />\n</svg>\n',36),s8(e,["🖫"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />\n <polyline points="7 10 12 15 17 10" />\n <line x1="12" x2="12" y1="15" y2="3" />\n</svg>\n',36),s8(e,["×"],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="M18 6 6 18" />\n <path d="m6 6 12 12" />\n</svg>\n',36);for(const e of document.querySelectorAll("a"))s8(e,[""],'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n>\n <path d="m12 19-7-7 7-7" />\n <path d="M19 12H5" />\n</svg>\n',36),s8(e,[""],i8,36);console.timeEnd("🤯 [svgIcon] replace")})()}),[]),Q.jsxs(Q.Fragment,{children:[Q.jsx(S8,{}),Q.jsx(jJ,{headerHeight:_ne,children:Q.jsx(Ene,{})}),Q.jsxs(PJ,{children:[Q.jsx("div",{className:e.liteAnimation?n.backgroundLite:n.background}),e.enableSidebar&&Q.jsx(_J,{className:n.sidebar,headerHeight:_ne,style:{flex:0,zIndex:50},children:Q.jsx(jne,{headerHeight:_ne})}),Q.jsx(O8,{className:t(!e.enableSidebar&&n.quicksettings)}),(null==e?void 0:e.enableExtraNetworkSidebar)&&Q.jsx(_J,{className:n.sidebar,headerHeight:_ne,style:{flex:0,zIndex:50},children:Q.jsx(M8,{headerHeight:_ne})})]}),Q.jsx(V8,{})]})})),Ine=Nne;var Tne,Ane=z,Fne=(Tne=Ane)&&"object"==typeof Tne&&"default"in Tne?Tne.default:Tne;function Rne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mne=!("undefined"==typeof window||!window.document||!window.document.createElement);const Lne=n((function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,a=[];function i(){o=e(a.map((function(e){return e.props}))),s.canUseDOM?t(o):n&&(o=n(o))}var s=function(e){var t,n;function s(){return e.apply(this,arguments)||this}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.peek=function(){return o},s.rewind=function(){if(s.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=o;return o=void 0,a=[],e};var l=s.prototype;return l.UNSAFE_componentWillMount=function(){a.push(this),i()},l.componentDidUpdate=function(){i()},l.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),i()},l.render=function(){return Fne.createElement(r,this.props)},s}(Ane.PureComponent);return Rne(s,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),Rne(s,"canUseDOM",Mne),s}}));var Bne="undefined"!=typeof Element,zne="function"==typeof Map,Hne="function"==typeof Set,Wne="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Une(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Une(e[r],t[r]))return!1;return!0}if(zne&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!Une(r.value[1],t.get(r.value[0])))return!1;return!0}if(Hne&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Wne&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(Bne&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Une(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Vne=function(e,t){try{return Une(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Gne=n(Vne);
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var qne=Object.getOwnPropertySymbols,Kne=Object.prototype.hasOwnProperty,Xne=Object.prototype.propertyIsEnumerable;var Yne=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(a){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))Kne.call(n,i)&&(o[i]=n[i]);if(qne){r=qne(n);for(var s=0;s<r.length;s++)Xne.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};const Qne=n(Yne);var Jne="bodyAttributes",Zne="htmlAttributes",ere="titleAttributes",tre={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(tre).map((function(e){return tre[e]}));var nre,rre="charset",ore="cssText",are="href",ire="http-equiv",sre="innerHTML",lre="itemprop",cre="name",ure="property",dre="rel",fre="src",pre="target",hre={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},gre="defaultTitle",mre="defer",bre="encodeSpecialCharacters",vre="onChangeClientState",yre="titleTemplate",wre=Object.keys(hre).reduce((function(e,t){return e[hre[t]]=t,e}),{}),xre=[tre.NOSCRIPT,tre.SCRIPT,tre.STYLE],Sre="data-react-helmet",kre="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},Cre=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ere=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ore=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Dre=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},$re=function(e){var t=Ire(e,tre.TITLE),n=Ire(e,yre);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Ire(e,gre);return t||r||void 0},jre=function(e){return Ire(e,vre)||function(){}},Pre=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Ere({},e,t)}),{})},_re=function(e,t){return t.filter((function(e){return void 0!==e[tre.BASE]})).map((function(e){return e[tre.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},Nre=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Mre("Helmet: "+e+' should be of type "Array". Instead found type "'+kre(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,a=Object.keys(e),i=0;i<a.length;i++){var s=a[i],l=s.toLowerCase();-1===t.indexOf(l)||n===dre&&"canonical"===e[n].toLowerCase()||l===dre&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==sre&&s!==ore&&s!==lre||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(o),i=0;i<a.length;i++){var s=a[i],l=Qne({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},Ire=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Tre=(nre=Date.now(),function(e){var t=Date.now();t-nre>16?(nre=t,e(t)):setTimeout((function(){Tre(e)}),0)}),Are=function(e){return clearTimeout(e)},Fre="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Tre:global.requestAnimationFrame||Tre,Rre="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Are:global.cancelAnimationFrame||Are,Mre=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Lre=null,Bre=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;Wre(tre.BODY,r),Wre(tre.HTML,o),Hre(d,f);var p={baseTag:Ure(tre.BASE,n),linkTags:Ure(tre.LINK,a),metaTags:Ure(tre.META,i),noscriptTags:Ure(tre.NOSCRIPT,s),scriptTags:Ure(tre.SCRIPT,c),styleTags:Ure(tre.STYLE,u)},h={},g={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(g[e]=p[e].oldTags)})),t&&t(),l(e,h,g)},zre=function(e){return Array.isArray(e)?e.join(""):e},Hre=function(e,t){void 0!==e&&document.title!==e&&(document.title=zre(e)),Wre(tre.TITLE,t)},Wre=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(Sre),o=r?r.split(","):[],a=[].concat(o),i=Object.keys(t),s=0;s<i.length;s++){var l=i[s],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===o.indexOf(l)&&o.push(l);var u=a.indexOf(l);-1!==u&&a.splice(u,1)}for(var d=a.length-1;d>=0;d--)n.removeAttribute(a[d]);o.length===a.length?n.removeAttribute(Sre):n.getAttribute(Sre)!==i.join(",")&&n.setAttribute(Sre,i.join(","))}},Ure=function(e,t){var n=document.head||document.querySelector(tre.HEAD),r=n.querySelectorAll(e+"["+Sre+"]"),o=Array.prototype.slice.call(r),a=[],i=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===sre)n.innerHTML=t.innerHTML;else if(r===ore)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(Sre,"true"),o.some((function(e,t){return i=t,n.isEqualNode(e)}))?o.splice(i,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},Vre=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}),"")},Gre=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[hre[n]||n]=e[n],t}),t)},qre=function(e,t,n){switch(e){case tre.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[Sre]=!0,o=Gre(n,r),[H.createElement(tre.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Vre(n),a=zre(t);return o?"<"+e+" "+Sre+'="true" '+o+">"+Dre(a,r)+"</"+e+">":"<"+e+" "+Sre+'="true">'+Dre(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Jne:case Zne:return{toComponent:function(){return Gre(t)},toString:function(){return Vre(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[Sre]=!0,r);return Object.keys(t).forEach((function(e){var n=hre[e]||e;if(n===sre||n===ore){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),H.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===sre||e===ore)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Dre(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===xre.indexOf(e);return t+"<"+e+" "+Sre+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},Kre=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,a=e.linkTags,i=e.metaTags,s=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:qre(tre.BASE,t,r),bodyAttributes:qre(Jne,n,r),htmlAttributes:qre(Zne,o,r),link:qre(tre.LINK,a,r),meta:qre(tre.META,i,r),noscript:qre(tre.NOSCRIPT,s,r),script:qre(tre.SCRIPT,l,r),style:qre(tre.STYLE,c,r),title:qre(tre.TITLE,{title:d,titleAttributes:f},r)}},Xre=function(e){var t,n;return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!Gne(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case tre.SCRIPT:case tre.NOSCRIPT:return{innerHTML:t};case tre.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return Ere({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Ere({},o,this.mapNestedChildrenToProps(n,a))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case tre.TITLE:return Ere({},o,((t={})[r.type]=i,t.titleAttributes=Ere({},a),t));case tre.BODY:return Ere({},o,{bodyAttributes:Ere({},a)});case tre.HTML:return Ere({},o,{htmlAttributes:Ere({},a)})}return Ere({},o,((n={})[r.type]=Ere({},a),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=Ere({},t);return Object.keys(e).forEach((function(t){var r;n=Ere({},n,((r={})[t]=e[t],r))})),n},n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return H.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,a=o.children,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[wre[n]||n]=e[n],t}),t)}(Ore(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case tre.LINK:case tre.META:case tre.NOSCRIPT:case tre.SCRIPT:case tre.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:i,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:i,nestedChildren:a})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=Ore(t,["children"]),o=Ere({},r);return n&&(o=this.mapChildrenToProps(n,o)),H.createElement(e,o)},Cre(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(H.Component),t.propTypes={base:YK.object,bodyAttributes:YK.object,children:YK.oneOfType([YK.arrayOf(YK.node),YK.node]),defaultTitle:YK.string,defer:YK.bool,encodeSpecialCharacters:YK.bool,htmlAttributes:YK.object,link:YK.arrayOf(YK.object),meta:YK.arrayOf(YK.object),noscript:YK.arrayOf(YK.object),onChangeClientState:YK.func,script:YK.arrayOf(YK.object),style:YK.arrayOf(YK.object),title:YK.string,titleAttributes:YK.object,titleTemplate:YK.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=Kre({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(Lne((function(e){return{baseTag:_re([are,pre],e),bodyAttributes:Pre(Jne,e),defer:Ire(e,mre),encode:Ire(e,bre),htmlAttributes:Pre(Zne,e),linkTags:Nre(tre.LINK,[dre,are],e),metaTags:Nre(tre.META,[cre,rre,ire,ure,lre],e),noscriptTags:Nre(tre.NOSCRIPT,[sre],e),onChangeClientState:jre(e),scriptTags:Nre(tre.SCRIPT,[fre,sre],e),styleTags:Nre(tre.STYLE,[ore],e),title:$re(e),titleAttributes:Pre(ere,e)}}),(function(e){Lre&&Rre(Lre),e.defer?Lre=Fre((function(){Bre(e,(function(){Lre=null}))})):(Bre(e),Lre=null)}),Kre)((function(){return null})));Xre.renderStatic=Xre.rewind;const Yre={background_color:"#000000",description:"The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.",display:"standalone",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"}],id:"/",name:"Stable Diffusion",orientation:"portrait",scope:"/",short_name:"Stable Diffusion",splash_pages:null,start_url:location.origin,theme_color:"#000000"},Qre=`data:application/manifest+json;base64,${btoa(JSON.stringify(Yre))}`,Jre=z.memo((({children:e})=>{const[t,n]=z.useState(!0),{setCurrentTab:r,onInit:o,storeLoading:a}=p4((e=>({onInit:e.onInit,setCurrentTab:e.setCurrentTab,storeLoading:e.loading})),m4);return z.useEffect((()=>{console.time("🤯 Lobe Theme loading"),o(),onUiLoaded((()=>{n(!1),console.timeEnd("🤯 Lobe Theme loading")})),onUiTabChange((()=>{r()}))}),[]),Q.jsxs(z.Suspense,{fallback:"loading...",children:[Q.jsxs(Xre,{children:[Q.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"}),Q.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"}),Q.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"}),Q.jsx("link",{href:"https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/site.webmanifest",rel:"manifest"}),Q.jsx("meta",{content:"Stable Diffusion · LobeHub",name:"apple-mobile-web-app-title"}),Q.jsx("meta",{content:"Stable Diffusion · LobeHub",name:"application-name"}),Q.jsx("meta",{content:"#000000",name:"msapplication-TileColor"}),Q.jsx("meta",{content:"#000000",name:"theme-color"}),Q.jsx("link",{href:Qre,rel:"manifest"})]}),Q.jsx(U4,{children:!1===a&&!1===t?e:Q.jsx(Q8,{})})]})})),Zre=()=>Q.jsx(Jre,{children:Q.jsx(Ine,{})});void 0===window.global&&(window.global=window);window.location.href.includes("dev")&&!0||document.addEventListener("DOMContentLoaded",(()=>{var e,t;console.time("🤯 Lobe Theme load in DevMode");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)}ld(n).render(Q.jsx(Zre,{})),console.timeEnd("🤯 Lobe Theme load in DevMode")}),{once:!0});