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 D=E.prototype=new C;D.constructor=E,x(D,k.prototype),D.isPureReactComponent=!0;var O=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,O(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+":",O(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,D=5,O=-1;function $(){return!(e.unstable_now()-O<D)}function j(){if(null!==C){var t=e.unstable_now();O=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"):D=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"),De=Symbol.for("react.provider"),Oe=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 Oe:return(e.displayName||"Context")+".Consumer";case De: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 Dt(e){kt?Ct?Ct.push(e):Ct=[e]:kt=e}function Ot(){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(),Ot())}}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,Dn,On=!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 Dn(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(){On=!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,On||(On=!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 Dr=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}}),Or=ar(Dr),$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){Dt(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 Do(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 Oo=Do("animationend"),$o=Do("animationiteration"),jo=Do("animationstart"),Po=Do("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(Oo,"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=Or;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 Oo: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 Da(e){0>Ca||(e.current=ka[Ca],ka[Ca]=null,Ca--)}function Oa(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(){Da(Pa),Da(ja)}function Aa(e,t,n){if(ja.current!==$a)throw Error(ae(168));Oa(ja,t),Oa(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,Oa(ja,e),Oa(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,Da(Pa),Da(ja),Oa(ja,e)):Da(Pa),Oa(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(Mte){throw null!==La&&(La=La.slice(e+1)),qt(Zt,Wa),Mte}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;Da(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 Di(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 Oi=null;function $i(e){null===Oi?Oi=[e]:Oi.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=Di(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=Di(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(Oa(ns,t),Oa(ts,e),Oa(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)}Da(es),Oa(es,t)}function as(){Da(es),Da(ts),Da(ns)}function is(e){rs(ns.current);var t=rs(es.current),n=lt(t,e.type);t!==n&&(Oa(ts,e),Oa(es,n))}function ss(e){ts.current===e&&(Da(es),Da(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 Ds(){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 Os(){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=Os(),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=Os(),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=Os(),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=Ds();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 Os().memoizedState}function zs(e,t,n,r){var o=Ds();gs.flags|=e,o.memoizedState=Ls(1|t,n,void 0,void 0===r?null:r)}function Hs(e,t,n,r){var o=Os();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=Os();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=Os();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 Os().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:Di,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:Di,useCallback:function(e,t){return Ds().memoizedState=[e,void 0===t?null:t],e},useContext:Di,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=Ds();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ds();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},Ds().memoizedState=e},useState:Ms,useDebugValue:Xs,useDeferredValue:function(e){return Ds().memoizedState=e},useTransition:function(){var e=Ms(!1),t=e[0];return e=Zs.bind(null,e[1]),Ds().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gs,o=Ds();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=Ds(),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:Di,useCallback:Ys,useContext:Di,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(Os(),ms.memoizedState,e)},useTransition:function(){return[js($s)[0],Os().memoizedState]},useMutableSource:_s,useSyncExternalStore:Ns,useId:el,unstable_isNewReconciler:!1},cl={readContext:Di,useCallback:Ys,useContext:Di,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=Os();return null===ms?t.memoizedState=e:Js(t,ms.memoizedState,e)},useTransition:function(){return[Ps($s)[0],Os().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=Du.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 Ol(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},Oa(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,Oa(Tc,Ic),Ic|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Oa(Tc,Ic),Ic|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Oa(Tc,Ic),Ic|=r;return xl(e,t,o,n),t.child}function Dl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ol(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=Di(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=Di(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){Dl(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),Oa(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(Oa(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(),Da(Pa),Da(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(Da(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(Da(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 Oa(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,Oa(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(),Da(Pa),Da(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(Da(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 Da(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(Lte){Eu(e,e.return,Lte)}try{rc(5,e,e.return)}catch(Lte){Eu(e,e.return,Lte)}}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(Lte){Eu(e,e.return,Lte)}}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(Lte){Eu(e,e.return,Lte)}}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(Lte){Eu(e,e.return,Lte)}}break;case 3:if(mc(t,e),vc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wn(t.containerInfo)}catch(Lte){Eu(e,e.return,Lte)}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(Lte){Eu(r,n,Lte)}}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(Lte){Eu(e,e.return,Lte)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(Lte){Eu(e,e.return,Lte)}}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,Dc=we.ReactCurrentDispatcher,Oc=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(),Dc.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,Da(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(),Da(Pa),Da(ja),ds();break;case 5:ss(r);break;case 4:as();break;case 13:case 19:Da(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!==Oi){for(t=0;t<Oi.length;t++)if(null!==(r=(n=Oi[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}Oi=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,Oc.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=Dc.current;return Dc.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(Mte){hu(e,Mte)}if(Si(),jc=n,Dc.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,Oc.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,Oc.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 Du(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 Ou(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),Ou(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),Ou(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 De:i=10;break e;case Oe: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;Oa(vi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oa(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Ml(e,t,n):(Oa(ls,1&ls.current),null!==(e=Vl(e,t,n))?e.sibling:null);Oa(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),Oa(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=Ol(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,Ol(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),Dl(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,Oa(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=Di(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},Dn=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,Dt,Ot,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;var ud={exports:{}};function dd(){}function fd(){}fd.resetWarningCache=dd;ud.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:fd,resetWarningCache:dd};return n.PropTypes=n,n}();var pd=ud.exports;const hd=n(pd);var gd,md=z,bd=(gd=md)&&"object"==typeof gd&&"default"in gd?gd.default:gd;function vd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yd=!("undefined"==typeof window||!window.document||!window.document.createElement);const wd=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 bd.createElement(r,this.props)},s}(md.PureComponent);return vd(s,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),vd(s,"canUseDOM",yd),s}}));var xd="undefined"!=typeof Element,Sd="function"==typeof Map,kd="function"==typeof Set,Cd="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Ed(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(!Ed(e[r],t[r]))return!1;return!0}if(Sd&&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(!Ed(r.value[1],t.get(r.value[0])))return!1;return!0}if(kd&&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(Cd&&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(xd&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Ed(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Dd=function(e,t){try{return Ed(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 Od=n(Dd);
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var $d=Object.getOwnPropertySymbols,jd=Object.prototype.hasOwnProperty,Pd=Object.prototype.propertyIsEnumerable;var _d=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))jd.call(n,i)&&(o[i]=n[i]);if($d){r=$d(n);for(var s=0;s<r.length;s++)Pd.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};const Nd=n(_d);var Id="bodyAttributes",Td="htmlAttributes",Ad="titleAttributes",Fd={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Fd).map((function(e){return Fd[e]}));var Rd,Md,Ld,Bd,zd="charset",Hd="cssText",Wd="href",Ud="http-equiv",Vd="innerHTML",Gd="itemprop",qd="name",Kd="property",Xd="rel",Yd="src",Qd="target",Jd={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Zd="defaultTitle",ef="defer",tf="encodeSpecialCharacters",nf="onChangeClientState",rf="titleTemplate",of=Object.keys(Jd).reduce((function(e,t){return e[Jd[t]]=t,e}),{}),af=[Fd.NOSCRIPT,Fd.SCRIPT,Fd.STYLE],sf="data-react-helmet",lf="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},cf=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}}(),uf=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},df=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},ff=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;")},pf=function(e){var t=vf(e,Fd.TITLE),n=vf(e,rf);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=vf(e,Zd);return t||r||void 0},hf=function(e){return vf(e,nf)||function(){}},gf=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return uf({},e,t)}),{})},mf=function(e,t){return t.filter((function(e){return void 0!==e[Fd.BASE]})).map((function(e){return e[Fd.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}),[])},bf=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&kf("Helmet: "+e+' should be of type "Array". Instead found type "'+lf(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===Xd&&"canonical"===e[n].toLowerCase()||l===Xd&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==Vd&&s!==Hd&&s!==Gd||(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=Nd({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},vf=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},yf=(Rd=Date.now(),function(e){var t=Date.now();t-Rd>16?(Rd=t,e(t)):setTimeout((function(){yf(e)}),0)}),wf=function(e){return clearTimeout(e)},xf="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||yf:global.requestAnimationFrame||yf,Sf="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||wf:global.cancelAnimationFrame||wf,kf=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Cf=null,Ef=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;$f(Fd.BODY,r),$f(Fd.HTML,o),Of(d,f);var p={baseTag:jf(Fd.BASE,n),linkTags:jf(Fd.LINK,a),metaTags:jf(Fd.META,i),noscriptTags:jf(Fd.NOSCRIPT,s),scriptTags:jf(Fd.SCRIPT,c),styleTags:jf(Fd.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)},Df=function(e){return Array.isArray(e)?e.join(""):e},Of=function(e,t){void 0!==e&&document.title!==e&&(document.title=Df(e)),$f(Fd.TITLE,t)},$f=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(sf),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(sf):n.getAttribute(sf)!==i.join(",")&&n.setAttribute(sf,i.join(","))}},jf=function(e,t){var n=document.head||document.querySelector(Fd.HEAD),r=n.querySelectorAll(e+"["+sf+"]"),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===Vd)n.innerHTML=t.innerHTML;else if(r===Hd)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(sf,"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}},Pf=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}),"")},_f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[Jd[n]||n]=e[n],t}),t)},Nf=function(e,t,n){switch(e){case Fd.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[sf]=!0,o=_f(n,r),[H.createElement(Fd.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Pf(n),a=Df(t);return o?"<"+e+" "+sf+'="true" '+o+">"+ff(a,r)+"</"+e+">":"<"+e+" "+sf+'="true">'+ff(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Id:case Td:return{toComponent:function(){return _f(t)},toString:function(){return Pf(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[sf]=!0,r);return Object.keys(t).forEach((function(e){var n=Jd[e]||e;if(n===Vd||n===Hd){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===Vd||e===Hd)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+ff(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===af.indexOf(e);return t+"<"+e+" "+sf+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},If=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:Nf(Fd.BASE,t,r),bodyAttributes:Nf(Id,n,r),htmlAttributes:Nf(Td,o,r),link:Nf(Fd.LINK,a,r),meta:Nf(Fd.META,i,r),noscript:Nf(Fd.NOSCRIPT,s,r),script:Nf(Fd.SCRIPT,l,r),style:Nf(Fd.STYLE,c,r),title:Nf(Fd.TITLE,{title:d,titleAttributes:f},r)}},Tf=wd((function(e){return{baseTag:mf([Wd,Qd],e),bodyAttributes:gf(Id,e),defer:vf(e,ef),encode:vf(e,tf),htmlAttributes:gf(Td,e),linkTags:bf(Fd.LINK,[Xd,Wd],e),metaTags:bf(Fd.META,[qd,zd,Ud,Kd,Gd],e),noscriptTags:bf(Fd.NOSCRIPT,[Vd],e),onChangeClientState:hf(e),scriptTags:bf(Fd.SCRIPT,[Yd,Vd],e),styleTags:bf(Fd.STYLE,[Hd],e),title:pf(e),titleAttributes:gf(Ad,e)}}),(function(e){Cf&&Sf(Cf),e.defer?Cf=xf((function(){Ef(e,(function(){Cf=null}))})):(Ef(e),Cf=null)}),If)((function(){return null})),Af=(Md=Tf,Bd=Ld=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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,e.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)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!Od(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Fd.SCRIPT:case Fd.NOSCRIPT:return{innerHTML:t};case Fd.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.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,a=e.nestedChildren;return uf({},r,((t={})[n.type]=[].concat(r[n.type]||[],[uf({},o,this.mapNestedChildrenToProps(n,a))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,a=e.newChildProps,i=e.nestedChildren;switch(r.type){case Fd.TITLE:return uf({},o,((t={})[r.type]=i,t.titleAttributes=uf({},a),t));case Fd.BODY:return uf({},o,{bodyAttributes:uf({},a)});case Fd.HTML:return uf({},o,{htmlAttributes:uf({},a)})}return uf({},o,((n={})[r.type]=uf({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=uf({},t);return Object.keys(e).forEach((function(t){var r;n=uf({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.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[of[n]||n]=e[n],t}),t)}(df(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case Fd.LINK:case Fd.META:case Fd.NOSCRIPT:case Fd.SCRIPT:case Fd.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)},t.prototype.render=function(){var e=this.props,t=e.children,n=df(e,["children"]),r=uf({},n);return t&&(r=this.mapChildrenToProps(t,r)),H.createElement(Md,r)},cf(t,null,[{key:"canUseDOM",set:function(e){Md.canUseDOM=e}}]),t}(H.Component),Ld.propTypes={base:hd.object,bodyAttributes:hd.object,children:hd.oneOfType([hd.arrayOf(hd.node),hd.node]),defaultTitle:hd.string,defer:hd.bool,encodeSpecialCharacters:hd.bool,htmlAttributes:hd.object,link:hd.arrayOf(hd.object),meta:hd.arrayOf(hd.object),noscript:hd.arrayOf(hd.object),onChangeClientState:hd.func,script:hd.arrayOf(hd.object),style:hd.arrayOf(hd.object),title:hd.string,titleAttributes:hd.object,titleTemplate:hd.string},Ld.defaultProps={defer:!0,encodeSpecialCharacters:!0},Ld.peek=Md.peek,Ld.rewind=function(){var e=Md.rewind();return e||(e=If({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},Bd);function Ff(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}Af.renderStatic=Af.rewind;const Rf={},Mf=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 Rf)return;Rf[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 Lf(e){return(Lf="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 Bf(e){var t=function(e,t){if("object"!==Lf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Lf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lf(t)?t:String(t)}function zf(e,t,n){return(t=Bf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hf(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 Wf={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 Uf=(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,...Wf,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},Vf=Uf("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"}]]),Gf=Uf("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"}]]),qf=Uf("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Kf=Uf("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Xf=Uf("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Yf=Uf("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Qf=Uf("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"}]]),Jf=Uf("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"}]]),Zf=Uf("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"}]]),ep=Uf("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"}]]),tp=Uf("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"}]]),np=Uf("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),rp=Uf("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"}]]),op=Uf("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),ap=Uf("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"}]]),ip=Uf("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"}]]),sp=Uf("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"}]]),lp=Uf("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"}]]),cp=Uf("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"}]]),up=Uf("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"}]]),dp=Uf("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"}]]),fp=Uf("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"}]]),pp=Uf("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"}]]),hp=Uf("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),gp=Uf("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"}]]),mp=Uf("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 bp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function vp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yp(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,Bf(r.key),r)}}function wp(e,t,n){return t&&yp(e.prototype,t),n&&yp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var xp=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(Mte){}}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}(),Sp="-ms-",kp="-moz-",Cp="-webkit-",Ep="comm",Dp="rule",Op="decl",$p="@keyframes",jp=Math.abs,Pp=String.fromCharCode,_p=Object.assign;function Np(e){return e.trim()}function Ip(e,t,n){return e.replace(t,n)}function Tp(e,t){return e.indexOf(t)}function Ap(e,t){return 0|e.charCodeAt(t)}function Fp(e,t,n){return e.slice(t,n)}function Rp(e){return e.length}function Mp(e){return e.length}function Lp(e,t){return t.push(e),e}var Bp=1,zp=1,Hp=0,Wp=0,Up=0,Vp="";function Gp(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Bp,column:zp,length:i,return:""}}function qp(e,t){return _p(Gp("",null,null,"",null,null,0),e,{length:-e.length},t)}function Kp(){return Up=Wp<Hp?Ap(Vp,Wp++):0,zp++,10===Up&&(zp=1,Bp++),Up}function Xp(){return Ap(Vp,Wp)}function Yp(){return Wp}function Qp(e,t){return Fp(Vp,e,t)}function Jp(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 Zp(e){return Bp=zp=1,Hp=Rp(Vp=e),Wp=0,[]}function eh(e){return Vp="",e}function th(e){return Np(Qp(Wp-1,oh(91===e?e+2:40===e?e+1:e)))}function nh(e){for(;(Up=Xp())&&Up<33;)Kp();return Jp(e)>2||Jp(Up)>3?"":" "}function rh(e,t){for(;--t&&Kp()&&!(Up<48||Up>102||Up>57&&Up<65||Up>70&&Up<97););return Qp(e,Yp()+(t<6&&32==Xp()&&32==Kp()))}function oh(e){for(;Kp();)switch(Up){case e:return Wp;case 34:case 39:34!==e&&39!==e&&oh(Up);break;case 40:41===e&&oh(e);break;case 92:Kp()}return Wp}function ah(e,t){for(;Kp()&&e+Up!==57&&(e+Up!==84||47!==Xp()););return"/*"+Qp(t,Wp-1)+"*"+Pp(47===e?e:Kp())}function ih(e){for(;!Jp(Xp());)Kp();return Qp(e,Wp)}function sh(e){return eh(lh("",null,null,null,[""],e=Zp(e),0,[0],e))}function lh(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=Kp()){case 40:if(108!=h&&58==Ap(k,d-1)){-1!=Tp(k+=Ip(th(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=th(v);break;case 9:case 10:case 13:case 32:k+=nh(h);break;case 92:k+=rh(Yp()-1,7);continue;case 47:switch(Xp()){case 42:case 47:Lp(uh(ah(Kp(),Yp()),t,n),l);break;default:k+="/"}break;case 123*g:s[c++]=Rp(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=Ip(k,/\f/g,"")),p>0&&Rp(k)-d&&Lp(p>32?dh(k+";",r,n,d-1):dh(Ip(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Lp(S=ch(k,t,n,c,u,o,s,y,w=[],x=[],d),a),123===v)if(0===u)lh(k,t,S,S,w,a,d,s,x);else switch(99===f&&110===Ap(k,3)?100:f){case 100:case 108:case 109:case 115:lh(e,S,S,r&&Lp(ch(e,S,S,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:lh(k,S,S,S,[""],x,0,s,x)}}c=u=p=0,g=b=1,y=k="",d=i;break;case 58:d=1+Rp(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(Up=Wp>0?Ap(Vp,--Wp):0,zp--,10===Up&&(zp=1,Bp--),Up))continue;switch(k+=Pp(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Rp(k)-1)*b,b=1;break;case 64:45===Xp()&&(k+=th(Kp())),f=Xp(),u=d=Rp(y=k+=ih(Yp())),v++;break;case 45:45===h&&2==Rp(k)&&(g=0)}}return a}function ch(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,f=0===o?a:[""],p=Mp(f),h=0,g=0,m=0;h<r;++h)for(var b=0,v=Fp(e,d+1,d=jp(g=i[h])),y=e;b<p;++b)(y=Np(g>0?f[b]+" "+v:Ip(v,/&\f/g,f[b])))&&(l[m++]=y);return Gp(e,t,n,0===o?Dp:s,l,c,u)}function uh(e,t,n){return Gp(e,t,n,Ep,Pp(Up),Fp(e,2,-2),0)}function dh(e,t,n,r){return Gp(e,t,n,Op,Fp(e,0,r),Fp(e,r+1,-1),r)}function fh(e,t){for(var n="",r=Mp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ph(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Op:return e.return=e.return||e.value;case Ep:return"";case $p:return e.return=e.value+"{"+fh(e.children,r)+"}";case Dp:e.value=e.props.join(",")}return Rp(n=fh(e.children,r))?e.return=e.value+"{"+n+"}":""}var hh=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 gh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var mh=function(e,t,n){for(var r=0,o=0;r=o,o=Xp(),38===r&&12===o&&(t[n]=1),!Jp(o);)Kp();return Qp(e,Wp)},bh=function(e,t){return eh(function(e,t){var n=-1,r=44;do{switch(Jp(r)){case 0:38===r&&12===Xp()&&(t[n]=1),e[n]+=mh(Wp-1,t,n);break;case 2:e[n]+=th(r);break;case 4:if(44===r){e[++n]=58===Xp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Pp(r)}}while(r=Kp());return e}(Zp(e),t))},vh=new WeakMap,yh=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)||vh.get(n))&&!r){vh.set(e,!0);for(var o=[],a=bh(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]}}},wh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function xh(e,t){switch(function(e,t){return 45^Ap(e,0)?(((t<<2^Ap(e,0))<<2^Ap(e,1))<<2^Ap(e,2))<<2^Ap(e,3):0}(e,t)){case 5103:return Cp+"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 Cp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Cp+e+kp+e+Sp+e+e;case 6828:case 4268:return Cp+e+Sp+e+e;case 6165:return Cp+e+Sp+"flex-"+e+e;case 5187:return Cp+e+Ip(e,/(\w+).+(:[^]+)/,Cp+"box-$1$2"+Sp+"flex-$1$2")+e;case 5443:return Cp+e+Sp+"flex-item-"+Ip(e,/flex-|-self/,"")+e;case 4675:return Cp+e+Sp+"flex-line-pack"+Ip(e,/align-content|flex-|-self/,"")+e;case 5548:return Cp+e+Sp+Ip(e,"shrink","negative")+e;case 5292:return Cp+e+Sp+Ip(e,"basis","preferred-size")+e;case 6060:return Cp+"box-"+Ip(e,"-grow","")+Cp+e+Sp+Ip(e,"grow","positive")+e;case 4554:return Cp+Ip(e,/([^-])(transform)/g,"$1"+Cp+"$2")+e;case 6187:return Ip(Ip(Ip(e,/(zoom-|grab)/,Cp+"$1"),/(image-set)/,Cp+"$1"),e,"")+e;case 5495:case 3959:return Ip(e,/(image-set\([^]*)/,Cp+"$1$`$1");case 4968:return Ip(Ip(e,/(.+:)(flex-)?(.*)/,Cp+"box-pack:$3"+Sp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Cp+e+e;case 4095:case 3583:case 4068:case 2532:return Ip(e,/(.+)-inline(.+)/,Cp+"$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(Rp(e)-1-t>6)switch(Ap(e,t+1)){case 109:if(45!==Ap(e,t+4))break;case 102:return Ip(e,/(.+:)(.+)-([^]+)/,"$1"+Cp+"$2-$3$1"+kp+(108==Ap(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Tp(e,"stretch")?xh(Ip(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ap(e,t+1))break;case 6444:switch(Ap(e,Rp(e)-3-(~Tp(e,"!important")&&10))){case 107:return Ip(e,":",":"+Cp)+e;case 101:return Ip(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Cp+(45===Ap(e,14)?"inline-":"")+"box$3$1"+Cp+"$2$3$1"+Sp+"$2box$3")+e}break;case 5936:switch(Ap(e,t+11)){case 114:return Cp+e+Sp+Ip(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Cp+e+Sp+Ip(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Cp+e+Sp+Ip(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Cp+e+Sp+e+e}return e}var Sh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Op:e.return=xh(e.value,e.length);break;case $p:return fh([qp(e,{value:Ip(e.value,"@","@"+Cp)})],r);case Dp: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 fh([qp(e,{props:[Ip(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fh([qp(e,{props:[Ip(t,/:(plac\w+)/,":"+Cp+"input-$1")]}),qp(e,{props:[Ip(t,/:(plac\w+)/,":-moz-$1")]}),qp(e,{props:[Ip(t,/:(plac\w+)/,Sp+"input-$1")]})],r)}return""}))}}],kh=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||Sh,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=[ph,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[yh,wh].concat(a,f),u=Mp(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,fh(sh(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new xp({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 Ch={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},Eh=/[A-Z]|^ms/g,Dh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oh=function(e){return 45===e.charCodeAt(1)},$h=function(e){return null!=e&&"boolean"!=typeof e},jh=gh((function(e){return Oh(e)?e:e.replace(Eh,"-$&").toLowerCase()})),Ph=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Dh,(function(e,t,n){return Nh={name:t,styles:n,next:Nh},t}))}return 1===Ch[e]||Oh(e)||"number"!=typeof t||0===t?t:t+"px"};function _h(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 Nh={name:n.name,styles:n.styles,next:Nh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Nh={name:r.name,styles:r.styles,next:Nh},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+=_h(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]+"}":$h(i)&&(r+=jh(a)+":"+Ph(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=_h(e,t,i);switch(a){case"animation":case"animationName":r+=jh(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)$h(i[l])&&(r+=jh(a)+":"+Ph(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Nh,a=n(e);return Nh=o,_h(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Nh,Ih=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Th=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="";Nh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=_h(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=_h(n,t,e[i]),r&&(o+=a[i]);Ih.lastIndex=0;for(var s,l="";null!==(s=Ih.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:Nh}};function Ah(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Fh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Rh=function(e,t,n){Fh(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 Mh(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Lh(e,t,n){var r=[],o=Ah(e,r,n);return r.length<2?n:o+t(r)}var Bh=function(e){var t=kh(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=Th(n,t.registered,void 0);return Rh(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 Lh(t.registered,n,zh(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Th(n,t.registered);Mh(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Th(n,t.registered),a="animation-"+o.name;return Mh(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:Ah.bind(null,t.registered),merge:Lh.bind(null,t.registered,n)}},zh=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},Hh=Bh({key:"css"});Hh.flush,Hh.hydrate;var Wh=Hh.cx;Hh.merge,Hh.getRegisteredStyles,Hh.injectGlobal,Hh.keyframes;var Uh=Hh.css;Hh.sheet;var Vh=Hh.cache,Gh=function(){function e(){vp(this,e),zf(this,"_cacheList",[Vh])}return wp(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}(),qh="undefined"!=typeof document,Kh=function(e,t){return"".concat(e,"-").concat(t)},Xh=function(e){return"object"===Lf(e)&&"styles"in e&&"name"in e&&"toString"in e},Yh=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!==o){var a=void 0;switch(Lf(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},Qh=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=Th(r,e.registered,void 0);return function(e,t,n,r){var o=r.hashPriority||"high";Fh(e,t,n);var a=".".concat(Kh(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);qh||void 0===c||(s+=c),l=l.next}while(void 0!==l);if(!qh&&0!==s.length);}}(e,a,!1,t),Kh(e.key,a.name)}},Jh=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 Xh(e)?t(e):e}));return function(e,t,n){var r=[],o=Ah(e,r,n);return r.length<2?n:o+t(r)}(e.registered,t,Yh(a))}},Zh=function(e,t){var n=Qh(e,{hashPriority:t.hashPriority||"high",label:t.label});return{css:n,cx:Jh(e,n)}},eg=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Th(t)};function tg(){return tg=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},tg.apply(this,arguments)}var ng={exports:{}},rg={},og="function"==typeof Symbol&&Symbol.for,ag=og?Symbol.for("react.element"):60103,ig=og?Symbol.for("react.portal"):60106,sg=og?Symbol.for("react.fragment"):60107,lg=og?Symbol.for("react.strict_mode"):60108,cg=og?Symbol.for("react.profiler"):60114,ug=og?Symbol.for("react.provider"):60109,dg=og?Symbol.for("react.context"):60110,fg=og?Symbol.for("react.async_mode"):60111,pg=og?Symbol.for("react.concurrent_mode"):60111,hg=og?Symbol.for("react.forward_ref"):60112,gg=og?Symbol.for("react.suspense"):60113,mg=og?Symbol.for("react.suspense_list"):60120,bg=og?Symbol.for("react.memo"):60115,vg=og?Symbol.for("react.lazy"):60116,yg=og?Symbol.for("react.block"):60121,wg=og?Symbol.for("react.fundamental"):60117,xg=og?Symbol.for("react.responder"):60118,Sg=og?Symbol.for("react.scope"):60119;function kg(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ag:switch(e=e.type){case fg:case pg:case sg:case cg:case lg:case gg:return e;default:switch(e=e&&e.$$typeof){case dg:case hg:case vg:case bg:case ug:return e;default:return t}}case ig:return t}}}function Cg(e){return kg(e)===pg}rg.AsyncMode=fg,rg.ConcurrentMode=pg,rg.ContextConsumer=dg,rg.ContextProvider=ug,rg.Element=ag,rg.ForwardRef=hg,rg.Fragment=sg,rg.Lazy=vg,rg.Memo=bg,rg.Portal=ig,rg.Profiler=cg,rg.StrictMode=lg,rg.Suspense=gg,rg.isAsyncMode=function(e){return Cg(e)||kg(e)===fg},rg.isConcurrentMode=Cg,rg.isContextConsumer=function(e){return kg(e)===dg},rg.isContextProvider=function(e){return kg(e)===ug},rg.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ag},rg.isForwardRef=function(e){return kg(e)===hg},rg.isFragment=function(e){return kg(e)===sg},rg.isLazy=function(e){return kg(e)===vg},rg.isMemo=function(e){return kg(e)===bg},rg.isPortal=function(e){return kg(e)===ig},rg.isProfiler=function(e){return kg(e)===cg},rg.isStrictMode=function(e){return kg(e)===lg},rg.isSuspense=function(e){return kg(e)===gg},rg.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===sg||e===pg||e===cg||e===lg||e===gg||e===mg||"object"==typeof e&&null!==e&&(e.$$typeof===vg||e.$$typeof===bg||e.$$typeof===ug||e.$$typeof===dg||e.$$typeof===hg||e.$$typeof===wg||e.$$typeof===xg||e.$$typeof===Sg||e.$$typeof===yg)},rg.typeOf=kg,ng.exports=rg;var Eg=ng.exports,Dg={};Dg[Eg.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Dg[Eg.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Og=!!W.useInsertionEffect&&W.useInsertionEffect||z.useLayoutEffect,$g=z.createContext("undefined"!=typeof HTMLElement?kh({key:"css"}):null);$g.Provider;var jg=function(e){return z.forwardRef((function(t,n){var r=z.useContext($g);return e(t,r,n)}))},Pg=z.createContext({}),_g=hh((function(e){return hh((function(t){return function(e,t){return"function"==typeof t?t(e):tg({},e,t)}(e,t)}))})),Ng=jg((function(e,t){var n=e.styles,r=Th([n],void 0,z.useContext(Pg)),o=z.useRef();return Og((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]),Og((function(){var e=o.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Rh(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 Ig(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 Tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ig(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ig(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ag(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 Fg(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Rg(e,t){if(e){if("string"==typeof e)return Ag(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)?Ag(e,t):void 0}}function Mg(e){return function(e){if(Array.isArray(e))return Ag(e)}(e)||Fg(e)||Rg(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 Lg(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 Bg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lg(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zg(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 Hg(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 Wg={};function Ug(e,t){}function Vg(e,t){}function Gg(e,t,n){t||Wg[n]||(e(!1,n),Wg[n]=!0)}function qg(e,t){Gg(Ug,e,t)}function Kg(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(qg(!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"===Lf(t)&&"object"===Lf(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)}qg.preMessage=function(e){},qg.resetWarned=function(){Wg={}},qg.noteOnce=function(e,t){Gg(Vg,e,t)};var Xg=function(){function e(t){vp(this,e),zf(this,"instanceId",void 0),zf(this,"cache",new Map),this.instanceId=t}return wp(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}(),Yg=["children"],Qg="data-token-hash",Jg="data-css-hash",Zg="__cssinjs_instance__";function em(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Jg,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Zg]=t[Zg]||e,t[Zg]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Jg,"]"))).forEach((function(t){var n,o=t.getAttribute(Jg);r[o]?t[Zg]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new Xg(e)}var tm=z.createContext({hashPriority:"low",cache:em(),defaultCache:!0}),nm=function(e){var t=e.children,n=Hf(e,Yg),r=z.useContext(tm),o=Hg((function(){var e=Bg({},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||em(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!Kg(e[0],t[0],!0)||!Kg(e[1],t[1],!0)}));return z.createElement(tm.Provider,{value:o},t)};const rm=tm;function om(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function am(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 im="data-rc-order",sm="data-rc-priority",lm="rc-util-key",cm=new Map;function um(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):lm}function dm(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function fm(e){return Array.from((cm.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function pm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!om())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(im,i),s&&a&&l.setAttribute(sm,"".concat(a)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=dm(t),u=c.firstChild;if(r){if(s){var d=fm(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(im)))return!1;var t=Number(e.getAttribute(sm)||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 hm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fm(dm(t)).find((function(n){return n.getAttribute(um(t))===e}))}function gm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=hm(e,t);n&&dm(t).removeChild(n)}function mm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=cm.get(e);if(!n||!am(document,n)){var r=pm("",t),o=r.parentNode;cm.set(e,o),e.removeChild(r)}}(dm(n),n);var r=hm(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=pm(e,n);return s.setAttribute(um(n),t),s}function bm(e){if(Array.isArray(e))return e}function vm(){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 ym(e,t){return bm(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)||Rg(e,t)||vm()}var wm=function(){function e(){vp(this,e),zf(this,"cache",void 0),zf(this,"keys",void 0),zf(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return wp(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=ym(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),a=ym(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}();zf(wm,"MAX_CACHE_SIZE",20),zf(wm,"MAX_CACHE_OFFSET",5);var xm=0,Sm=function(){function e(t){vp(this,e),zf(this,"derivatives",void 0),zf(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=xm,0===t.length&&t.length,xm+=1}return wp(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),km=new wm;function Cm(e){var t=Array.isArray(e)?e:[e];return km.has(t)||km.set(t,new Sm(t)),km.get(t)}var Em=new WeakMap,Dm={};var Om=new WeakMap;function $m(e){var t=Om.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof Sm?t+=r.id:r&&"object"===Lf(r)?t+=$m(r):t+=r})),Om.set(e,t)),t}var jm="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Pm="_bAmBoO_";var _m=void 0;function Nm(){return void 0===_m&&(_m=function(e,t,n){if(om()){var r,o;mm(e,jm);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(Pm);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),gm(jm),i}return!1}("@layer ".concat(jm," { .").concat(jm,' { content: "').concat(Pm,'"!important; } }'),(function(e){e.className=jm}))),_m}var Im=om()?z.useLayoutEffect:z.useEffect,Tm=function(e,t){var n=z.useRef(!0);Im((function(){return e(n.current)}),t),Im((function(){return n.current=!1,function(){n.current=!0}}),[])},Am=function(e,t){Tm((function(t){if(!t)return e()}),t)},Fm=Bg({},W).useInsertionEffect;const Rm=Fm?function(e,t,n){return Fm((function(){return e(),t()}),n)}:function(e,t,n){z.useMemo(e,n),Tm((function(){return t(!0)}),n)};const Mm=void 0!==Bg({},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 Lm(e,t,n,r,o){var a=z.useContext(rm).cache,i=[e].concat(Mg(t)),s=i.join("_"),l=Mm([s]),c=function(e){a.update(i,(function(t){var r=ym(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 Rm((function(){null==o||o(u)}),(function(e){return c((function(t){var n=ym(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=ym(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 Bm={},zm="css",Hm=new Map;var Wm=0;function Um(e,t){Hm.set(e,(Hm.get(e)||0)-1);var n=Array.from(Hm.keys()),r=n.filter((function(e){return(Hm.get(e)||0)<=0}));n.length-r.length>Wm&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Qg,'="').concat(e,'"]')).forEach((function(e){var n;e[Zg]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Hm.delete(e)}))}var Vm=function(e,t,n,r){var o=Bg(Bg({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o};function Gm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=z.useContext(rm).cache.instanceId,o=n.salt,a=void 0===o?"":o,i=n.override,s=void 0===i?Bm:i,l=n.formatToken,c=n.getComputedToken,u=function(e,t){for(var n=Em,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(Dm)||n.set(Dm,e()),n.get(Dm)}((function(){return Object.assign.apply(Object,[{}].concat(Mg(t)))}),t),d=$m(u),f=$m(s),p=Lm("token",[a,e.id,d,f],(function(){var t=c?c(u,s,e):Vm(u,s,e,l),n=function(e,t){return zg("".concat(t,"_").concat($m(e)))}(t,a);t._tokenKey=n,function(e){Hm.set(e,(Hm.get(e)||0)+1)}(n);var r="".concat(zm,"-").concat(zg(n));return t._hashId=r,[t,r]}),(function(e){Um(e[0]._tokenKey,r)}));return p}var qm={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},Km="comm",Xm="rule",Ym="decl",Qm="@import",Jm="@keyframes",Zm="@layer",eb=Math.abs,tb=String.fromCharCode;function nb(e){return e.trim()}function rb(e,t,n){return e.replace(t,n)}function ob(e,t){return e.indexOf(t)}function ab(e,t){return 0|e.charCodeAt(t)}function ib(e,t,n){return e.slice(t,n)}function sb(e){return e.length}function lb(e,t){return t.push(e),e}var cb=1,ub=1,db=0,fb=0,pb=0,hb="";function gb(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:cb,column:ub,length:i,return:"",siblings:s}}function mb(){return pb=fb<db?ab(hb,fb++):0,ub++,10===pb&&(ub=1,cb++),pb}function bb(){return ab(hb,fb)}function vb(){return fb}function yb(e,t){return ib(hb,e,t)}function wb(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 xb(e){return nb(yb(fb-1,Cb(91===e?e+2:40===e?e+1:e)))}function Sb(e){for(;(pb=bb())&&pb<33;)mb();return wb(e)>2||wb(pb)>3?"":" "}function kb(e,t){for(;--t&&mb()&&!(pb<48||pb>102||pb>57&&pb<65||pb>70&&pb<97););return yb(e,vb()+(t<6&&32==bb()&&32==mb()))}function Cb(e){for(;mb();)switch(pb){case e:return fb;case 34:case 39:34!==e&&39!==e&&Cb(pb);break;case 40:41===e&&Cb(e);break;case 92:mb()}return fb}function Eb(e,t){for(;mb()&&e+pb!==57&&(e+pb!==84||47!==bb()););return"/*"+yb(t,fb-1)+"*"+tb(47===e?e:mb())}function Db(e){for(;!wb(bb());)mb();return yb(e,fb)}function Ob(e){return function(e){return hb="",e}($b("",null,null,null,[""],e=function(e){return cb=ub=1,db=sb(hb=e),fb=0,[]}(e),0,[0],e))}function $b(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=mb()){case 40:if(108!=h&&58==ab(k,d-1)){-1!=ob(k+=rb(xb(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:k+=xb(v);break;case 9:case 10:case 13:case 32:k+=Sb(h);break;case 92:k+=kb(vb()-1,7);continue;case 47:switch(bb()){case 42:case 47:lb(Pb(Eb(mb(),vb()),t,n,l),l);break;default:k+="/"}break;case 123*g:s[c++]=sb(k)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(k=rb(k,/\f/g,"")),p>0&&sb(k)-d&&lb(p>32?_b(k+";",r,n,d-1,l):_b(rb(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(lb(S=jb(k,t,n,c,u,o,s,y,w=[],x=[],d,a),a),123===v)if(0===u)$b(k,t,S,S,w,a,d,s,x);else switch(99===f&&110===ab(k,3)?100:f){case 100:case 108:case 109:case 115:$b(e,S,S,r&&lb(jb(e,S,S,0,0,o,s,y,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:$b(k,S,S,S,[""],x,0,s,x)}}c=u=p=0,g=b=1,y=k="",d=i;break;case 58:d=1+sb(k),p=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(pb=fb>0?ab(hb,--fb):0,ub--,10===pb&&(ub=1,cb--),pb))continue;switch(k+=tb(v),v*g){case 38:b=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(sb(k)-1)*b,b=1;break;case 64:45===bb()&&(k+=xb(mb())),f=bb(),u=d=sb(y=k+=Db(vb())),v++;break;case 45:45===h&&2==sb(k)&&(g=0)}}return a}function jb(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=ib(e,f+1,f=eb(m=i[g])),w=e;v<h;++v)(w=nb(m>0?p[v]+" "+y:rb(y,/&\f/g,p[v])))&&(l[b++]=w);return gb(e,t,n,0===o?Xm:s,l,c,u,d)}function Pb(e,t,n,r){return gb(e,t,n,Km,tb(pb),ib(e,2,-2),0,r)}function _b(e,t,n,r,o){return gb(e,t,n,Ym,ib(e,0,r),ib(e,r+1,-1),r,o)}function Nb(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ib(e,t,n,r){switch(e.type){case Zm:if(e.children.length)break;case Qm:case Ym:return e.return=e.return||e.value;case Km:return"";case Jm:return e.return=e.value+"{"+Nb(e.children,r)+"}";case Xm:if(!sb(e.value=e.props.join(",")))return""}return sb(n=Nb(e.children,r))?e.return=e.value+"{"+n+"}":""}var Tb,Ab="data-ant-cssinjs-cache-path",Fb="_FILE_STYLE__",Rb=!0;function Mb(e){return function(){if(!Tb&&(Tb={},om())){var e=document.createElement("div");e.className=Ab,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=ym(e.split(":"),2),n=t[0],r=t[1];Tb[n]=r}));var n,r=document.querySelector("style[".concat(Ab,"]"));r&&(Rb=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Tb[e]}var Lb=om(),Bb="_multi_value_";function zb(e){return Nb(Ob(e),Ib).replace(/\{%%%\:[^;];}/g,";")}var Hb=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=ym(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"!==Lf(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Lf(e)&&e&&("_skip_check_"in e||Bb in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;qm[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"===Lf(r)&&null!=r&&r[Bb]&&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(Mg(n.slice(1))).join(" ")})).join(",")}(t,s,c):!o||s||"&"!==m&&""!==m||(m="",b=!0);var v=ym(e(r,n,{root:b,injectHash:g,parentSelectors:[].concat(Mg(i),[m])}),2),y=v[0],w=v[1];p=Bg(Bg({},p),w),f+="".concat(m).concat(y)}}))}})),o){if(l&&Nm()){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 Wb(){return null}function Ub(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(rm),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(Mg(r)),x=Lb,S=Lm("style",w,(function(){var e=w.join("|");if(Mb(e)){var n=function(e){var t=Tb[e],n=null;if(t&&om())if(Rb)n=Fb;else{var r=document.querySelector("style[".concat(Jg,'="').concat(Tb[e],'"]'));r?n=r.innerHTML:delete Tb[e]}return[n,t]}(e),i=ym(n,2),l=i[0],u=i[1];if(l)return[l,y,u,{},s,c]}var d=t(),f=ym(Hb(d,{hashId:o,hashPriority:p,layer:a,path:r.join("-"),transformers:m,linters:b}),2),h=f[0],g=f[1],v=zb(h),x=function(e,t){return zg("".concat(e.join("%")).concat(t))}(w,v);return[v,y,x,g,s,c]}),(function(e,t){var n=ym(e,3)[2];(t||d)&&Lb&&gm(n,{mark:Jg})}),(function(e){var t=ym(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(x&&n!==Fb){var a={mark:Jg,prepend:"queue",attachTo:h,priority:c},s="function"==typeof i?i():i;s&&(a.csp={nonce:s});var l=mm(n,r,a);l[Zg]=v.instanceId,l.setAttribute(Qg,y),Object.keys(o).forEach((function(e){mm(zb(o[e]),"_effect-".concat(e),a)}))}})),k=ym(S,3),C=k[0],E=k[1],D=k[2];return function(e){var t,n;g&&!x&&f?t=z.createElement("style",tg({},(zf(n={},Qg,E),zf(n,Jg,D),n),{dangerouslySetInnerHTML:{__html:C}})):t=z.createElement(Wb,null);return z.createElement(z.Fragment,null,t,e)}}var Vb=function(){function e(t,n){vp(this,e),zf(this,"name",void 0),zf(this,"style",void 0),zf(this,"_keyframe",!0),this.name=t,this.style=n}return wp(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 Gb(e){return e.notSplit=!0,e}Gb(["borderTop","borderBottom"]),Gb(["borderTop"]),Gb(["borderBottom"]),Gb(["borderLeft","borderRight"]),Gb(["borderLeft"]),Gb(["borderRight"]);var qb=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"];function Kb(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 Xb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kb(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yb,Qb={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
Yb=Qb,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(" ")}Yb.exports?(t.default=t,Yb.exports=t):window.classNames=t}();var Jb=Qb.exports;const Zb=n(Jb);var ev,tv={exports:{}},nv={},rv=Symbol.for("react.element"),ov=Symbol.for("react.portal"),av=Symbol.for("react.fragment"),iv=Symbol.for("react.strict_mode"),sv=Symbol.for("react.profiler"),lv=Symbol.for("react.provider"),cv=Symbol.for("react.context"),uv=Symbol.for("react.server_context"),dv=Symbol.for("react.forward_ref"),fv=Symbol.for("react.suspense"),pv=Symbol.for("react.suspense_list"),hv=Symbol.for("react.memo"),gv=Symbol.for("react.lazy"),mv=Symbol.for("react.offscreen");function bv(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case rv:switch(e=e.type){case av:case sv:case iv:case fv:case pv:return e;default:switch(e=e&&e.$$typeof){case uv:case cv:case dv:case gv:case hv:case lv:return e;default:return t}}case ov:return t}}}ev=Symbol.for("react.module.reference"),nv.ContextConsumer=cv,nv.ContextProvider=lv,nv.Element=rv,nv.ForwardRef=dv,nv.Fragment=av,nv.Lazy=gv,nv.Memo=hv,nv.Portal=ov,nv.Profiler=sv,nv.StrictMode=iv,nv.Suspense=fv,nv.SuspenseList=pv,nv.isAsyncMode=function(){return!1},nv.isConcurrentMode=function(){return!1},nv.isContextConsumer=function(e){return bv(e)===cv},nv.isContextProvider=function(e){return bv(e)===lv},nv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===rv},nv.isForwardRef=function(e){return bv(e)===dv},nv.isFragment=function(e){return bv(e)===av},nv.isLazy=function(e){return bv(e)===gv},nv.isMemo=function(e){return bv(e)===hv},nv.isPortal=function(e){return bv(e)===ov},nv.isProfiler=function(e){return bv(e)===sv},nv.isStrictMode=function(e){return bv(e)===iv},nv.isSuspense=function(e){return bv(e)===fv},nv.isSuspenseList=function(e){return bv(e)===pv},nv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===av||e===sv||e===iv||e===fv||e===pv||e===mv||"object"==typeof e&&null!==e&&(e.$$typeof===gv||e.$$typeof===hv||e.$$typeof===lv||e.$$typeof===cv||e.$$typeof===dv||e.$$typeof===ev||void 0!==e.getModuleId)},nv.typeOf=bv,tv.exports=nv;var vv=tv.exports;function yv(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(yv(e)):vv.isFragment(e)&&e.props?n=n.concat(yv(e.props.children,t)):n.push(e))})),n}function wv(e){return e instanceof HTMLElement||e instanceof SVGElement}function xv(e){return wv(e)?e:e instanceof H.Component?id.findDOMNode(e):null}function Sv(e,t){"function"==typeof e?e(t):"object"===Lf(e)&&e&&"current"in e&&(e.current=t)}function kv(){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){Sv(t,e)}))}}function Cv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hg((function(){return kv.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function Ev(e){var t,n,r=vv.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 Dv=z.createContext(null);var Ov=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}()}(),$v="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,jv="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Pv="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(jv):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var _v=["top","right","bottom","left","width","height","size","weight"],Nv="undefined"!=typeof MutationObserver,Iv=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(){Pv(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(){$v&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Nv?(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(){$v&&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;_v.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}(),Tv=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},Av=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||jv},Fv=Hv(0,0,0,0);function Rv(e){return parseFloat(e)||0}function Mv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Rv(e["border-"+n+"-width"])}),0)}function Lv(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Fv;var r=Av(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]=Rv(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,s=Rv(r.width),l=Rv(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=Mv(r,"left","right")+a),Math.round(l+i)!==n&&(l-=Mv(r,"top","bottom")+i)),!function(e){return e===Av(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 Hv(o.left,o.top,s,l)}var Bv="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Av(e).SVGGraphicsElement}:function(e){return e instanceof Av(e).SVGElement&&"function"==typeof e.getBBox};function zv(e){return $v?Bv(e)?function(e){var t=e.getBBox();return Hv(0,0,t.width,t.height)}(e):Lv(e):Fv}function Hv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Wv=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Hv(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=zv(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}(),Uv=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),Tv(l,{x:r,y:o,width:a,height:i,top:o,right:r+a,bottom:i+o,left:r}),l);Tv(this,{target:e,contentRect:c})},Vv=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ov,"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 Av(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Wv(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 Av(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 Uv(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}(),Gv="undefined"!=typeof WeakMap?new WeakMap:new Ov,qv=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=Iv.getInstance(),r=new Vv(t,n,this);Gv.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){qv.prototype[e]=function(){var t;return(t=Gv.get(this))[e].apply(t,arguments)}}));var Kv=void 0!==jv.ResizeObserver?jv.ResizeObserver:qv,Xv=new Map;var Yv=new Kv((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Xv.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Qv(e,t){return(Qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Jv(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&&Qv(e,t)}function Zv(e){return(Zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ey(){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(Mte){return!1}}function ty(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ny(e){var t=ey();return function(){var n,r=Zv(e);if(t){var o=Zv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Lf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ty(e)}(this,n)}}var ry=function(e){Jv(n,z.Component);var t=ny(n);function n(){return vp(this,n),t.apply(this,arguments)}return wp(n,[{key:"render",value:function(){return this.props.children}}]),n}();function oy(e,t){var n=e.children,r=e.disabled,o=z.useRef(null),a=z.useRef(null),i=z.useContext(Dv),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)&&Ev(l),d=Cv(u?l.ref:null,o),f=function(){var e;return xv(o.current)||(o.current&&"object"===Lf(o.current)?xv(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||xv(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=Bg(Bg({},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,Xv.has(e)||(Xv.set(e,new Set),Yv.observe(e)),Xv.get(e).add(t)),function(){return function(e,t){Xv.has(e)&&(Xv.get(e).delete(t),Xv.get(e).size||(Yv.unobserve(e),Xv.delete(e)))}(n,h)}}),[o.current,r]),z.createElement(ry,{ref:a},u?z.cloneElement(l,{ref:d}):l)}var ay=z.forwardRef(oy);function iy(e,t){var n=e.children;return("function"==typeof n?[n]:yv(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return z.createElement(ay,tg({},e,{key:o,ref:0===r?t:void 0}),n)}))}var sy=z.forwardRef(iy);function ly(e,t){var n=Bg({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}sy.Collection=function(e){var t=e.children,n=e.onBatchResize,r=z.useRef(0),o=z.useRef([]),a=z.useContext(Dv),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(Dv.Provider,{value:i},t)};var cy=function(e){return+setTimeout(e,16)},uy=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(cy=function(e){return window.requestAnimationFrame(e)},uy=function(e){return window.cancelAnimationFrame(e)});var dy=0,fy=new Map;function py(e){fy.delete(e)}var hy=function(e){var t=dy+=1;return function n(r){if(0===r)py(t),e();else{var o=cy((function(){n(r-1)}));fy.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};hy.cancel=function(e){var t=fy.get(e);return py(e),uy(t)};const gy=z.createContext({});function my(e){return bm(e)||Fg(e)||Rg(e)||vm()}function by(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function vy(e,t,n,r){if(!t.length)return n;var o,a=my(t),i=a[0],s=a.slice(1);return o=e||"number"!=typeof i?Array.isArray(e)?Mg(e):Bg({},e):[],r&&void 0===n&&1===s.length?delete o[i][s[0]]:o[i]=vy(o[i],s,n,r),o}function yy(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!by(e,t.slice(0,-1))?e:vy(e,t,n,r)}function wy(e){return Array.isArray(e)?[]:{}}var xy="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Sy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=wy(t[0]);return t.forEach((function(e){!function t(n,o){var a,i=new Set(o),s=by(e,n),l=Array.isArray(s);if(l||"object"===Lf(a=s)&&null!==a&&Object.getPrototypeOf(a)===Object.prototype){if(!i.has(s)){i.add(s);var c=by(r,n);l?r=yy(r,n,[]):c&&"object"===Lf(c)||(r=yy(r,n,wy(s))),xy(s).forEach((function(e){t([].concat(Mg(n),[e]),i)}))}}else r=yy(r,n,s)}([])})),r}function ky(){}const Cy=z.createContext({}),Ey=()=>{const e=()=>{};return e.deprecated=ky,e},Dy=z.createContext(void 0);const Oy={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},$y={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({},Oy)},jy="${label} is not a valid ${type}",Py={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:$y,TimePicker:Oy,Calendar:$y,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:jy,method:jy,array:jy,object:jy,number:jy,date:jy,boolean:jy,integer:jy,float:jy,regexp:jy,email:jy,url:jy,hex:jy},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 _y=Object.assign({},Py.Modal),Ny=[];const Iy=()=>Ny.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Py.Modal);function Ty(){return _y}const Ay=z.createContext(void 0),Fy=(e,t)=>{const n=z.useContext(Ay);return[z.useMemo((()=>{var r;const o=t||Py[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?Py.locale:e}),[n])]},Ry=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;z.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Ny.push(t),_y=Iy(),()=>{Ny=Ny.filter((e=>e!==t)),_y=Iy()}}_y=Object.assign({},Py.Modal)}(t&&t.Modal);return e}),[t]);const o=z.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return z.createElement(Ay.Provider,{value:o},n)};function My(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 Ly(e){return Math.min(1,Math.max(0,e))}function By(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function zy(e){return e<=1?"".concat(100*Number(e),"%"):e}function Hy(e){return 1===e.length?"0"+e:String(e)}function Wy(e,t,n){e=My(e,255),t=My(t,255),n=My(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 Uy(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 Vy(e,t,n){e=My(e,255),t=My(t,255),n=My(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 Gy(e,t,n,r){var o=[Hy(Math.round(e).toString(16)),Hy(Math.round(t).toString(16)),Hy(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 qy(e){return Ky(e)/255}function Ky(e){return parseInt(e,16)}var Xy={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 Yy(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(Xy[e])e=Xy[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ew.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ew.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ew.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=ew.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ew.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=ew.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ew.hex8.exec(e),n)return{r:Ky(n[1]),g:Ky(n[2]),b:Ky(n[3]),a:qy(n[4]),format:t?"name":"hex8"};if(n=ew.hex6.exec(e),n)return{r:Ky(n[1]),g:Ky(n[2]),b:Ky(n[3]),format:t?"name":"hex"};if(n=ew.hex4.exec(e),n)return{r:Ky(n[1]+n[1]),g:Ky(n[2]+n[2]),b:Ky(n[3]+n[3]),a:qy(n[4]+n[4]),format:t?"name":"hex8"};if(n=ew.hex3.exec(e),n)return{r:Ky(n[1]+n[1]),g:Ky(n[2]+n[2]),b:Ky(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(tw(e.r)&&tw(e.g)&&tw(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*My(t,255),g:255*My(n,255),b:255*My(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):tw(e.h)&&tw(e.s)&&tw(e.v)?(i=zy(e.s),s=zy(e.v),o=function(e,t,n){e=6*My(e,360),t=My(t,100),n=My(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"):tw(e.h)&&tw(e.s)&&tw(e.l)&&(i=zy(e.s),l=zy(e.l),o=function(e,t,n){var r,o,a;if(e=My(e,360),t=My(t,100),n=My(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=Uy(s,i,e+1/3),o=Uy(s,i,e),a=Uy(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=By(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 Qy="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Jy="[\\s|\\(]+(".concat(Qy,")[,|\\s]+(").concat(Qy,")[,|\\s]+(").concat(Qy,")\\s*\\)?"),Zy="[\\s|\\(]+(".concat(Qy,")[,|\\s]+(").concat(Qy,")[,|\\s]+(").concat(Qy,")[,|\\s]+(").concat(Qy,")\\s*\\)?"),ew={CSS_UNIT:new RegExp(Qy),rgb:new RegExp("rgb"+Jy),rgba:new RegExp("rgba"+Zy),hsl:new RegExp("hsl"+Jy),hsla:new RegExp("hsla"+Zy),hsv:new RegExp("hsv"+Jy),hsva:new RegExp("hsva"+Zy),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 tw(e){return Boolean(ew.CSS_UNIT.exec(String(e)))}var nw=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=Yy(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=By(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=Vy(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=Vy(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=Wy(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=Wy(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),Gy(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=[Hy(Math.round(e).toString(16)),Hy(Math.round(t).toString(16)),Hy(Math.round(n).toString(16)),Hy((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*My(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*My(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="#"+Gy(this.r,this.g,this.b,!1),t=0,n=Object.entries(Xy);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=Ly(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=Ly(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=Ly(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=Ly(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}(),rw=2,ow=.16,aw=.05,iw=.05,sw=.15,lw=5,cw=4,uw=[{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 dw(e){var t=Vy(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function fw(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Gy(t,n,r,!1))}function pw(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-rw*t:Math.round(e.h)+rw*t:n?Math.round(e.h)+rw*t:Math.round(e.h)-rw*t)<0?r+=360:r>=360&&(r-=360),r}function hw(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-ow*t:t===cw?e.s+ow:e.s+aw*t)>1&&(r=1),n&&t===lw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function gw(e,t,n){var r;return(r=n?e.v+iw*t:e.v-sw*t)>1&&(r=1),Number(r.toFixed(2))}function mw(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Yy(e),o=lw;o>0;o-=1){var a=dw(r),i=fw(Yy({h:pw(a,o,!0),s:hw(a,o,!0),v:gw(a,o,!0)}));n.push(i)}n.push(fw(r));for(var s=1;s<=cw;s+=1){var l=dw(r),c=fw(Yy({h:pw(l,s),s:hw(l,s),v:gw(l,s)}));n.push(c)}return"dark"===t.theme?uw.map((function(e){var r,o,a,i=e.index,s=e.opacity;return fw((r=Yy(t.backgroundColor||"#141414"),o=Yy(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 bw={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"},vw={},yw={};Object.keys(bw).forEach((function(e){vw[e]=mw(bw[e]),vw[e].primary=vw[e][5],yw[e]=mw(bw[e],{theme:"dark",backgroundColor:"#141414"}),yw[e].primary=yw[e][5]}));var ww=vw.blue;const xw=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const Sw={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"},kw=Object.assign(Object.assign({},Sw),{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 Cw(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 nw("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Ew=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 Dw=(e,t)=>new nw(e).setAlpha(t).toRgbString(),Ow=(e,t)=>new nw(e).darken(t).toHexString(),$w=e=>{const t=mw(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]}},jw=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Dw(r,.88),colorTextSecondary:Dw(r,.65),colorTextTertiary:Dw(r,.45),colorTextQuaternary:Dw(r,.25),colorFill:Dw(r,.15),colorFillSecondary:Dw(r,.06),colorFillTertiary:Dw(r,.04),colorFillQuaternary:Dw(r,.02),colorBgLayout:Ow(n,4),colorBgContainer:Ow(n,0),colorBgElevated:Ow(n,0),colorBgSpotlight:Dw(r,.85),colorBgBlur:"transparent",colorBorder:Ow(n,15),colorBorderSecondary:Ow(n,6)}};const Pw=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 _w(e){const t=Object.keys(Sw).map((t=>{const n=mw(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),Cw(e,{generateColorPalettes:$w,generateNeutralColorPalettes:jw})),Pw(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)),xw(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},Ew(r))}(e))}const Nw=Cm(_w),Iw={token:kw,override:{override:kw},hashed:!0},Tw=H.createContext(Iw),Aw="anticon",Fw=z.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Aw}),Rw=`-ant-${Date.now()}-${Math.random()}`;function Mw(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 nw(e),a=mw(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 nw(t.primaryColor),a=mw(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 nw(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);om()&&mm(n,`${Rw}-dynamic-theme`)}const Lw=z.createContext(!1),Bw=e=>{let{children:t,disabled:n}=e;const r=z.useContext(Lw);return z.createElement(Lw.Provider,{value:null!=n?n:r},t)},zw=Lw,Hw=z.createContext(void 0),Ww=e=>{let{children:t,size:n}=e;const r=z.useContext(Hw);return z.createElement(Hw.Provider,{value:n||r},t)},Uw=Hw;const Vw=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Gw="5.11.2";function qw(e){return e>=0&&e<=255}function Kw(e,t){const{r:n,g:r,b:o,a:a}=new nw(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new nw(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(qw(e)&&qw(t)&&qw(a))return new nw({r:e,g:t,b:a,a:Math.round(100*c)/100}).toRgbString()}return new nw({r:n,g:r,b:o,a:1}).toRgbString()}var Xw=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 Yw(e){const{override:t}=e,n=Xw(e,["override"]),r=Object.assign({},t);Object.keys(kw).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:Kw(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:Kw(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Kw(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:Kw(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 nw("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new nw("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new nw("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 Qw=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 Jw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Qw(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Yw(i),a&&Object.entries(a).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Qw(n,["theme"]);let a=o;r&&(a=Jw(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a})),i};function Zw(){const{token:e,hashed:t,theme:n,override:r}=H.useContext(Tw),o=`${Gw}-${t||""}`,a=n||Nw,[i,s]=Gm(a,[kw,e],{salt:o,override:r,getComputedToken:Jw,formatToken:Yw});return[a,i,t?s:""]}function ex(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 tx(e){var t=z.useRef(!1),n=ym(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 nx(e){return void 0!==e}function rx(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=ym(tx((function(){return nx(o)?o:nx(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=ex(a),p=ym(tx([u]),2),h=p[0],g=p[1];return Am((function(){var e=h[0];l!==e&&f(l,e)}),[h]),Am((function(){nx(o)||c(o)}),[o]),[d,ex((function(e,t){c(e,t),g([u],t)}))]}const ox=(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"}}},ax={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ix=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}},sx=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"}}}),lx=(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"}}}}},cx=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ux=e=>({"&:focus-visible":Object.assign({},cx(e))}),dx="undefined"!=typeof CSSINJS_STATISTIC;let fx=!0;function px(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!dx)return Object.assign.apply(Object,[{}].concat(t));fx=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),fx=!0,r}const hx={};function gx(){}const mx=(e,t)=>{const[n,r]=Zw();return Ub({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 bx(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]=Zw(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=z.useContext(Fw),f=c(),p={theme:o,token:s,hashId:l,nonce:()=>null==d?void 0:d.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Ub(Object.assign(Object.assign({},p),{clientOnly:!1,path:["Shared",f]}),(()=>[{"&":sx(s)}])),mx(u,d),[Ub(Object.assign(Object.assign({},p),{path:[i,e,u]}),(()=>{const{token:o,flush:i}=function(e){let t,n=e,r=gx;return dx&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(fx&&t.add(n),e[n])}),r=(e,n)=>{var r;hx[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=hx[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(px(o,null!=c?c:{})):n,p=Object.assign(Object.assign({},d),c),h=px(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:lx(h,e),g]})),l]}}const vx=(e,t,n,r)=>{const o=bx(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}};function yx(e,t){return Vw.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 wx=["children"],xx=z.createContext({});function Sx(e){var t=e.children,n=Hf(e,wx);return z.createElement(xx.Provider,{value:n},t)}var kx=function(e){Jv(n,z.Component);var t=ny(n);function n(){return vp(this,n),t.apply(this,arguments)}return wp(n,[{key:"render",value:function(){return this.props.children}}]),n}(),Cx="none",Ex="appear",Dx="enter",Ox="leave",$x="none",jx="prepare",Px="start",_x="active",Nx="end",Ix="prepared";function Tx(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 Ax,Fx,Rx,Mx=(Ax=om(),Fx="undefined"!=typeof window?window:{},Rx={animationend:Tx("Animation","AnimationEnd"),transitionend:Tx("Transition","TransitionEnd")},Ax&&("AnimationEvent"in Fx||delete Rx.animationend.animation,"TransitionEvent"in Fx||delete Rx.transitionend.transition),Rx),Lx={};if(om()){var Bx=document.createElement("div");Lx=Bx.style}var zx={};function Hx(e){if(zx[e])return zx[e];var t=Mx[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 Lx)return zx[e]=t[a],zx[e]}return""}var Wx=Hx("animationend"),Ux=Hx("transitionend"),Vx=!(!Wx||!Ux),Gx=Wx||"animationend",qx=Ux||"transitionend";function Kx(e,t){return e?"object"===Lf(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Xx=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(qx,r),e.removeEventListener(Gx,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(qx,r),e.addEventListener(Gx,r),t.current=e)},o]};var Yx=om()?z.useLayoutEffect:z.useEffect;var Qx=[jx,Px,_x,Nx],Jx=[jx,Ix],Zx=!1,eS=!0;function tS(e){return e===_x||e===Nx}const nS=function(e,t,n){var r=ym(tx($x),2),o=r[0],a=r[1],i=function(){var e=z.useRef(null);function t(){hy.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=hy((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a},t]}(),s=ym(i,2),l=s[0],c=s[1];var u=t?Jx:Qx;return Yx((function(){if(o!==$x&&o!==Nx){var e=u.indexOf(o),t=u[e+1],r=n(o);r===Zx?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(jx,!0)},o]};const rS=function(e){var t=e;"object"===Lf(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(xx).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=ym(tx(),2),D=E[0],O=E[1],$=ym(tx(Cx),2),j=$[0],P=$[1],_=ym(tx(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(Cx,!0),I(null,!0)}function L(e){var t=F();if(!e||e.deadline||e.target===t){var n,r=R.current;j===Ex&&r?n=null==x?void 0:x(t,e):j===Dx&&r?n=null==S?void 0:S(t,e):j===Ox&&r&&(n=null==k?void 0:k(t,e)),j!==Cx&&r&&!1!==n&&M()}}var B=ym(Xx(L),1)[0],H=function(e){var t,n,r;switch(e){case Ex:return zf(t={},jx,f),zf(t,Px,g),zf(t,_x,v),t;case Dx:return zf(n={},jx,p),zf(n,Px,m),zf(n,_x,y),n;case Ox:return zf(r={},jx,h),zf(r,Px,b),zf(r,_x,w),r;default:return{}}},W=z.useMemo((function(){return H(j)}),[j]),U=ym(nS(j,!e,(function(e){if(e===jx){var t=W[jx];return t?t(F()):Zx}var n;return G in W&&I((null===(n=W[G])||void 0===n?void 0:n.call(W,F(),null))||null),G===_x&&(B(F()),u>0&&(clearTimeout(A.current),A.current=setTimeout((function(){L({deadline:!0})}),u))),G===Ix&&M(),eS})),2),V=U[0],G=U[1],q=tS(G);R.current=q,Yx((function(){O(t);var n,r=T.current;T.current=!0,!r&&t&&s&&(n=Ex),r&&t&&a&&(n=Dx),(r&&!t&&c||!r&&d&&!t&&c)&&(n=Ox);var o=H(n);n&&(e||o[jx])?(P(n),V()):P(Cx)}),[t]),z.useEffect((function(){(j===Ex&&!s||j===Dx&&!a||j===Ox&&!c)&&P(Cx)}),[s,a,c]),z.useEffect((function(){return function(){T.current=!1,clearTimeout(A.current)}}),[]);var K=z.useRef(!1);z.useEffect((function(){D&&(K.current=!0),void 0!==D&&j===Cx&&((K.current||D)&&(null==C||C(D)),K.current=!0)}),[D,j]);var X=N;return W[jx]&&G===Px&&(X=Bg({transition:"none"},X)),[j,G,X,null!=D?D:t]}(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:xv(h.current)}catch(Mte){return null}}),e),m=ym(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,Sv(n,e)}),[n]),C=Bg(Bg({},d),{},{visible:o});if(l)if(b===Cx)S=w?l(Bg({},C),k):!i&&x.current&&u?l(Bg(Bg({},C),{},{className:u}),k):s||!i&&!u?l(Bg(Bg({},C),{},{style:{display:"none"}}),k):null;else{var E,D;v===jx?D="prepare":tS(v)?D="active":v===Px&&(D="start");var O=Kx(c,"".concat(b,"-").concat(D));S=l(Bg(Bg({},C),{},{className:Zb(Kx(c,b),(E={},zf(E,O,O&&D),zf(E,c,"string"==typeof c),E)),style:y}),k)}else S=null;z.isValidElement(S)&&Ev(S)&&(S.ref||(S=z.cloneElement(S,{ref:k})));return z.createElement(kx,{ref:h},S)}));return n.displayName="CSSMotion",n}(Vx);var oS="add",aS="keep",iS="remove",sS="removed";function lS(e){var t;return Bg(Bg({},t=e&&"object"===Lf(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function cS(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(lS)}var uS=["component","children","onVisibleChanged","onAllRemoved"],dS=["status"],fS=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const pS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rS,n=function(e){Jv(r,z.Component);var n=ny(r);function r(){var e;vp(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return zf(ty(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),zf(ty(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Bg(Bg({},e),{},{status:sS})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==sS})).length})),e}return wp(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=Hf(r,uS),c=o||z.Fragment,u={};return fS.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=Hf(n,dS),c=o===oS||o===aS;return z.createElement(t,tg({},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(Bg(Bg({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=cS(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=cS(e),i=cS(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 Bg(Bg({},e),{},{status:oS})}))),r=a),n.push(Bg(Bg({},s),{},{status:aS})),r+=1,t=!0;break}}t||n.push(Bg(Bg({},e),{},{status:iS}))})),r<o&&(n=n.concat(i.slice(r).map((function(e){return Bg(Bg({},e),{},{status:oS})}))));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!==iS}))).forEach((function(t){t.key===e&&(t.status=aS)}))})),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!==sS||e.status!==iS}))}}}]),r}();return zf(n,"defaultProps",{component:"div"}),n}(Vx);function hS(e){const{children:t}=e,[,n]=Zw(),{motion:r}=n,o=z.useRef(!1);return o.current=o.current||!1===r,o.current?z.createElement(Sx,{motion:r},t):t}const gS=()=>null;var mS=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 bS=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let vS,yS,wS;function xS(){return vS||"ant"}function SS(){return yS||Aw}const kS=()=>({getPrefixCls:(e,t)=>t||(e?`${xS()}-${e}`:xS()),getIconPrefixCls:SS,getRootPrefixCls:()=>vS||xS(),getTheme:()=>wS}),CS=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:D,typography:O,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||Aw,ye=n||m.csp;mx(ve,ye);const we=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:Iw;return Hg((()=>{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)=>!Kg(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:D,typography:O,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])})),bS.forEach((t=>{const n=e[t];n&&(Se[t]=n)}));const ke=Hg((()=>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(gS,{dropdownMatchSelectWidth:f}),t);const De=z.useMemo((()=>{var e,t,n,r;return Sy((null===(e=Py.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(De).length>0&&(Ee=z.createElement(Dy.Provider,{value:De},Ee)),s&&(Ee=z.createElement(Ry,{locale:s,_ANT_MARK__:"internalMark"},Ee)),(ve||ye)&&(Ee=z.createElement(gy.Provider,{value:Ce},Ee)),l&&(Ee=z.createElement(Ww,{size:l},Ee)),Ee=z.createElement(hS,null,Ee);const Oe=z.useMemo((()=>{const e=we||{},{algorithm:t,token:n,components:r}=e,o=mS(e,["algorithm","token","components"]),a=t&&(!Array.isArray(t)||t.length>0)?Cm(t):Nw,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=Cm(r.algorithm)),delete r.algorithm),i[t]=r}));const s=Object.assign(Object.assign({},kw),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(Tw.Provider,{value:Oe},Ee)),ke.warning&&(Ee=z.createElement(Cy.Provider,{value:ke.warning},Ee)),void 0!==y&&(Ee=z.createElement(Bw,{disabled:y},Ee)),z.createElement(Fw.Provider,{value:ke},Ee)},ES=e=>{const t=z.useContext(Fw),n=z.useContext(Ay);return z.createElement(CS,Object.assign({parentContext:t,legacyLocale:n},e))};ES.ConfigContext=Fw,ES.SizeContext=Uw,ES.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(vS=t),void 0!==n&&(yS=n),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?wS=r:Mw(xS(),r))},ES.useConfig=function(){return{componentDisabled:z.useContext(zw),componentSize:z.useContext(Uw)}},Object.defineProperty(ES,"SizeContext",{get:()=>Uw});const DS={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 OS(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function $S(e){return function(e){return OS(e)instanceof ShadowRoot}(e)?OS(e):null}function jS(e){return"object"===Lf(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Lf(e.icon)||"function"==typeof e.icon)}function PS(){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 _S(e,t,n){return n?H.createElement(e.tag,Bg(Bg({key:t},PS(e.attrs)),n),(e.children||[]).map((function(n,r){return _S(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):H.createElement(e.tag,Bg({key:t},PS(e.attrs)),(e.children||[]).map((function(n,r){return _S(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function NS(e){return mw(e)[0]}function IS(e){return e?Array.isArray(e)?e:[e]:[]}var TS=["icon","className","onClick","style","primaryColor","secondaryColor"],AS={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var FS=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=Hf(e,TS),g=z.useRef(),m=AS;if(f&&(m={primaryColor:f,secondaryColor:p||NS(f)}),t=g,n=z.useContext(gy),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=$S(t.current);mm(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),i=jS(l),s="icon should be icon definiton, but got ".concat(l),qg(i,"[@ant-design/icons] ".concat(s)),!jS(l))return null;var b=l;return b&&"function"==typeof b.icon&&(b=Bg(Bg({},b),{},{icon:b.icon(m.primaryColor,m.secondaryColor)})),_S(b.icon,"svg-".concat(b.name),Bg(Bg({className:c,onClick:u,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:g}))};FS.displayName="IconReact",FS.getTwoToneColors=function(){return Bg({},AS)},FS.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;AS.primaryColor=t,AS.secondaryColor=n||NS(t),AS.calculated=!!n};const RS=FS;function MS(e){var t=ym(IS(e),2),n=t[0],r=t[1];return RS.setTwoToneColors({primaryColor:n,secondaryColor:r})}var LS=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];MS(ww.primary);var BS=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=Hf(e,LS),d=z.useContext(gy),f=d.prefixCls,p=void 0===f?"anticon":f,h=d.rootClassName,g=Zb(h,p,(zf(n={},"".concat(p,"-").concat(o.name),!!o.name),zf(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=ym(IS(c),2),y=v[0],w=v[1];return z.createElement("span",tg({role:"img","aria-label":o.name},u,{ref:t,tabIndex:m,onClick:l,className:g}),z.createElement(RS,{icon:o,primaryColor:y,secondaryColor:w,style:b}))}));BS.displayName="AntdIcon",BS.getTwoToneColor=function(){var e=RS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},BS.setTwoToneColor=MS;const zS=BS;var HS=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:DS}))};const WS=z.forwardRef(HS);const US={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 VS=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:US}))};const GS=z.forwardRef(VS);const qS={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 KS=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:qS}))};const XS=z.forwardRef(KS);const YS={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 QS=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:YS}))};const JS=z.forwardRef(QS);const ZS={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 ek=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:ZS}))};const tk=z.forwardRef(ek);var nk="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),rk="aria-",ok="data-";function ak(e,t){return 0===e.indexOf(t)}function ik(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}:Bg({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||ak(n,rk))||t.data&&ak(n,ok)||t.attr&&nk.includes(n))&&(r[n]=e[n])})),r}const{isValidElement:sk}=W;function lk(e){return e&&sk(e)&&e.type===z.Fragment}function ck(e,t){return function(e,t,n){return sk(e)?z.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}const uk=e=>"object"==typeof e&&null!=e&&1===e.nodeType,dk=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,fk=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return dk(n.overflowY,t)||dk(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},pk=(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,hk=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},gk=(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(!uk(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;uk(h)&&d(h);){if(h=hk(h),h===f){p.push(h);break}null!=h&&h===document.body&&fk(h)&&!fk(document.documentElement)||null!=h&&fk(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:D,bottom:O,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+O:x+y/2-E+O,P="center"===l?C+w/2-$+D:"end"===l?S+D: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),D=parseInt(u.borderBottomWidth,10);let O=0,$=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-E:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-D: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)O="start"===s?j:"end"===s?j-m:"nearest"===s?pk(v,v+m,m,h,D,v+j,v+j+y,y):j-m/2,$="start"===l?P:"center"===l?P-g/2:"end"===l?P-g:pk(b,b+g,g,d,E,b+P,b+P+w,w),O=Math.max(0,O+v),$=Math.max(0,$+b);else{O="start"===s?j-r-h:"end"===s?j-a+D+T:"nearest"===s?pk(r,a,t,h,D+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:pk(c,o,n,d,E+I,P,P+w,w);const{scrollLeft:i,scrollTop:u}=e;O=0===F?0:Math.max(0,Math.min(u+O/F,e.scrollHeight-t/F+T)),$=0===A?0:Math.max(0,Math.min(i+$/A,e.scrollWidth-n/A+I)),j+=u-O,P+=i-$}_.push({el:e,top:O,left:$})}return _},mk=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 bk={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>=bk.F1&&t<=bk.F12)return!1;switch(t){case bk.ALT:case bk.CAPS_LOCK:case bk.CONTEXT_MENU:case bk.CTRL:case bk.DOWN:case bk.END:case bk.ESC:case bk.HOME:case bk.INSERT:case bk.LEFT:case bk.MAC_FF_META:case bk.META:case bk.NUMLOCK:case bk.NUM_CENTER:case bk.PAGE_DOWN:case bk.PAGE_UP:case bk.PAUSE:case bk.PRINT_SCREEN:case bk.RIGHT:case bk.SHIFT:case bk.UP:case bk.WIN_KEY:case bk.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=bk.ZERO&&e<=bk.NINE)return!0;if(e>=bk.NUM_ZERO&&e<=bk.NUM_MULTIPLY)return!0;if(e>=bk.A&&e<=bk.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case bk.SPACE:case bk.QUESTION_MARK:case bk.NUM_PLUS:case bk.NUM_MINUS:case bk.NUM_PERIOD:case bk.NUM_DIVISION:case bk.SEMICOLON:case bk.DASH:case bk.EQUALS:case bk.COMMA:case bk.PERIOD:case bk.SLASH:case bk.APOSTROPHE:case bk.SINGLE_QUOTE:case bk.OPEN_SQUARE_BRACKET:case bk.BACKSLASH:case bk.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vk=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=ym(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",tg({},f,{ref:t,className:Zb(S,o,zf({},"".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!==bk.ENTER||x()},onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}},d))})),yk=H.createContext({}),wk=function(e){var t=e.children,n=e.classNames;return H.createElement(yk.Provider,{value:{classNames:n}},t)},xk=["className","style","classNames","styles"],Sk=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(yk).classNames,b=z.useRef({}),v=ym(z.useState(null),2),y=v[0],w=v[1],x=ym(z.useState([]),2),S=x[0],k=x[1],C=s.map((function(e){return{config:e,key:String(e.key)}})),E=ym((i={offset:8,threshold:3,gap:16},(n=g)&&"object"===Lf(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),D=E[0],O=E[1],$=O.offset,j=O.threshold,P=O.gap,_=D&&(S.length>0||C.length<=j),N="function"==typeof f?f(l):f;return z.useEffect((function(){D&&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,D]),z.useEffect((function(){var e,t;D&&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,D]),H.createElement(pS,tg({key:l,className:Zb(c,"".concat(c,"-").concat(l),null==m?void 0:m.list,u,(t={},zf(t,"".concat(c,"-stack"),!!D),zf(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=Hf(f,xk),E=C.findIndex((function(e){return e.key===d})),O={};if(D){var j=C.length-1-(E>-1?E:a-1),N="top"===l||"bottom"===l?"-50%":"0";if(j>0){var I,T,A;O.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;O.transform="translate3d(".concat(N,", ").concat(L,"px, 0) scaleX(").concat(B,")")}else O.transform="translate3d(".concat(N,", 0, 0)")}return H.createElement("div",{ref:t,className:Zb("".concat(c,"-notice-wrapper"),r,null==v?void 0:v.wrapper),style:Bg(Bg(Bg({},o),O),null==w?void 0:w.wrapper),onMouseEnter:function(){return k((function(e){return e.includes(d)?e:[].concat(Mg(e),[d])}))},onMouseLeave:function(){return k((function(e){return e.filter((function(e){return e!==d}))}))}},H.createElement(vk,tg({},x,{ref:function(e){E>-1?b.current[d]=e:delete b.current[d]},prefixCls:c,classNames:v,styles:w,className:Zb(p,null==m?void 0:m.notice),style:g,times:u,key:s,eventKey:s,onNoticeClose:h,hovering:D&&S.length>0})))}))},kk=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=ym(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=Mg(t),o=r.findIndex((function(t){return t.key===e.key})),a=Bg({},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=ym(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=Bg({},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(Sk,{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)})),Ck=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Ek=function(){return document.body},Dk=0;function Ok(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Ek: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=Hf(e,Ck),f=ym(z.useState(),2),p=f[0],h=f[1],g=z.useRef(),m=z.createElement(kk,{container:p,ref:g,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=ym(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(Dk),Dk+=1),y((function(e){return[].concat(Mg(e),[{type:"open",config:t}])}))},close:function(e){y((function(t){return[].concat(Mg(t),[{type:"close",key:e}])}))},destroy:function(){y((function(e){return[].concat(Mg(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 $k={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 jk=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:$k}))};const Pk=z.forwardRef(jk),_k=H.createContext(void 0),Nk=100,Ik=1e3,Tk={Modal:Nk,Drawer:Nk,Popover:Nk,Popconfirm:Nk,Tooltip:Nk,Tour:Nk},Ak={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50};function Fk(e,t){const[,n]=Zw(),r=H.useContext(_k);let o=null!=r?r:0;return e in Tk?(o+=(r?0:n.zIndexPopupBase)+Tk[e],o=Math.min(o,n.zIndexPopupBase+Ik)):o+=Ak[e],[void 0===r?t:o,o]}const Rk=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 Vb("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new Vb("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({},ix(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"})}]},Mk=bx("Message",(e=>{const t=px(e,{height:150});return[Rk(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+Ik+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var Lk=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 Bk={info:z.createElement(tk,null),success:z.createElement(WS,null),error:z.createElement(GS,null),warning:z.createElement(JS,null),loading:z.createElement(Pk,null)},zk=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return z.createElement("div",{className:Zb(`${t}-custom-content`,`${t}-${n}`)},r||Bk[n],z.createElement("span",null,o))},Hk=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=Lk(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=z.useContext(Fw),l=t||s("message"),[,c]=Mk(l);return z.createElement(vk,Object.assign({},i,{prefixCls:l,className:Zb(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:z.createElement(zk,{prefixCls:l,type:r,icon:o},a)}))};function Wk(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 Uk=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 Vk=3,Gk=e=>{let{children:t,prefixCls:n}=e;const[,r]=Mk(n);return z.createElement(wk,{classNames:{list:r,notice:r}},t)},qk=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(Gk,{prefixCls:n,key:r},e)},Kk=z.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=Vk,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f}=z.useContext(Fw),p=r||u("message"),h=z.createElement("span",{className:`${p}-close-x`},z.createElement(XS,{className:`${p}-close-icon`})),[g,m]=Ok({prefixCls:p,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>Zb({[`${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:qk});return z.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:p,message:f}))),m}));let Xk=0;function Yk(e){const t=z.useRef(null);Ey();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=Uk(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(Xk+=1,g=`antd-message-${Xk}`),Wk((t=>(r(Object.assign(Object.assign({},h),{key:g,content:z.createElement(zk,{prefixCls:o,type:c,icon:l},s),placement:"top",className:Zb(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(Kk,Object.assign({key:"message-holder"},e,{ref:t}))]}function Qk(e){return Yk(e)}function Jk(){Jk=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:D(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"==Lf(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 D(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=O(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 O(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,O(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(Lf(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 Zk(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 eC(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Zk(a,r,o,i,s,"next",e)}function s(e){Zk(a,r,o,i,s,"throw",e)}i(void 0)}))}}var tC,nC=Bg({},sd),rC=nC.version,oC=nC.render,aC=nC.unmountComponentAtNode;try{Number((rC||"").split(".")[0])>=18&&(tC=nC.createRoot)}catch(Mte){}function iC(e){var t=nC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Lf(t)&&(t.usingClientEntryPoint=e)}var sC="__rc_react_root__";function lC(e,t){tC?function(e,t){iC(!0);var n=t[sC]||tC(t);iC(!1),n.render(e),t[sC]=n}(e,t):function(e,t){oC(e,t)}(e,t)}function cC(e){return uC.apply(this,arguments)}function uC(){return(uC=eC(Jk().mark((function e(t){return Jk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[sC])||void 0===e||e.unmount(),delete t[sC]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dC(e){aC(e)}function fC(e){return pC.apply(this,arguments)}function pC(){return(pC=eC(Jk().mark((function e(t){return Jk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===tC){e.next=2;break}return e.abrupt("return",cC(t));case 2:dC(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const hC=()=>({height:0,opacity:0}),gC=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},mC=e=>({height:e?e.offsetHeight:0}),bC=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,vC=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:hC,onEnterStart:hC,onAppearActive:gC,onEnterActive:gC,onLeaveStart:mC,onLeaveActive:hC,onAppearEnd:bC,onEnterEnd:bC,onLeaveEnd:bC,motionDeadline:500}},yC=(e,t,n)=>void 0!==n?n:`${e}-${t}`,wC=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},xC=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(",")}}}}},SC=bx("Wave",(e=>[xC(e)]));function kC(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 CC="ant-wave-target";function EC(e){return Number.isNaN(e)?0:e}const DC=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 kC(t)?t:kC(n)?n:kC(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:EC(-parseFloat(r))),f(t?n.offsetTop:EC(-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=>EC(parseFloat(e)))))}if(a&&(y["--wave-color"]=a),z.useEffect((()=>{if(n){const e=hy((()=>{w(),v(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{hy.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(CC));return z.createElement(rS,{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;fC(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return z.createElement("div",{ref:o,className:Zb(t,{"wave-quick":x},n),style:y})}))},OC=(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),lC(z.createElement(DC,Object.assign({},t,{target:e})),o)};const $C=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=z.useContext(Fw),a=z.useRef(null),i=o("wave"),[,s]=SC(i),l=function(e,t,n){const{wave:r}=z.useContext(Fw),[,o,a]=Zw(),i=ex((i=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${CC}`)||s,{showEffect:c}=r||{};(c||OC)(l,{className:t,token:o,component:n,event:i,hashId:a})})),s=z.useRef();return e=>{hy.cancel(s.current),s.current=hy((()=>{i(e)}))}}(a,Zb(i,s),r);if(H.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!wC(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 ck(t,{ref:Ev(t)?kv(t.ref,a):a})},jC=e=>{const t=H.useContext(Uw);return H.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},PC=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},_C=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"}}}},NC=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}}}},IC=bx("Space",(e=>{const t=px(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[_C(t),NC(t),PC(t)]}),(()=>({})),{resetStyle:!1});var TC=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 AC=z.createContext(null),FC=(e,t)=>{const n=z.useContext(AC),r=z.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,i="vertical"===r?"-vertical-":"-";return Zb(`${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}},RC=e=>{let{children:t}=e;return z.createElement(AC.Provider,{value:null},t)},MC=e=>{var{children:t}=e,n=TC(e,["children"]);return z.createElement(AC.Provider,{value:n},t)},LC=e=>{const{getPrefixCls:t,direction:n}=z.useContext(Fw),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=TC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=jC((e=>null!=r?r:e)),f=t("space-compact",i),[p,h]=IC(f),g=Zb(f,h,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:a,[`${f}-vertical`]:"vertical"===o},s,l),m=z.useContext(AC),b=yv(c),v=z.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return z.createElement(MC,{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 BC=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 zC=z.createContext(void 0),HC=e=>{const{getPrefixCls:t,direction:n}=z.useContext(Fw),{prefixCls:r,size:o,className:a}=e,i=BC(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Zw();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=Zb(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},a,l);return z.createElement(zC.Provider,{value:o},z.createElement("div",Object.assign({},i,{className:u})))},WC=/^[\u4e00-\u9fa5]{2}$/,UC=WC.test.bind(WC);function VC(e){return"danger"===e?{danger:!0}:{type:e}}function GC(e){return"string"==typeof e}function qC(e){return"text"===e||"link"===e}function KC(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&&GC(e.type)&&UC(e.props.children)?ck(e,{children:e.props.children.split("").join(n)}):GC(e)?UC(e)?H.createElement("span",null,e.split("").join(n)):H.createElement("span",null,e):lk(e)?H.createElement("span",null,e):e}(e,t)))}const XC=z.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=Zb(`${a}-icon`,n);return H.createElement("span",{ref:t,className:i,style:r},o)})),YC=z.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=Zb(`${n}-loading-icon`,r);return H.createElement(XC,{prefixCls:n,className:i,style:o,ref:t},H.createElement(Pk,{className:a}))})),QC=()=>({width:0,opacity:0,transform:"scale(0)"}),JC=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ZC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?H.createElement(YC,{prefixCls:t,className:o,style:a}):H.createElement(rS,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:QC,onAppearActive:JC,onEnterStart:QC,onEnterActive:JC,onLeaveStart:JC,onLeaveActive:QC},((e,n)=>{let{className:r,style:i}=e;return H.createElement(YC,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),i),ref:n,iconClassName:r})}))},eE=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),tE=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}},eE(`${t}-primary`,o),eE(`${t}-danger`,a)]}},nE=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({},ux(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:'""'}}}}}}},rE=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),oE=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),aE=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),iE=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),sE=(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"},rE(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),lE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},iE(e))}),cE=e=>Object.assign({},lE(e)),uE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),dE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cE(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),rE(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),sE(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},rE(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sE(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),lE(e))}),fE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cE(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),rE(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),sE(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},rE(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),sE(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),lE(e))}),pE=e=>Object.assign(Object.assign({},dE(e)),{borderStyle:"dashed"}),hE=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},rE(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),uE(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},rE(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),uE(e))}),gE=e=>Object.assign(Object.assign(Object.assign({},rE(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),uE(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},uE(e)),rE(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),mE=e=>{const{componentCls:t}=e;return{[`${t}-default`]:dE(e),[`${t}-primary`]:fE(e),[`${t}-dashed`]:pE(e),[`${t}-link`]:hE(e),[`${t}-text`]:gE(e),[`${t}-ghost`]:sE(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},bE=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}`]:oE(e)},{[`${n}${n}-round${t}`]:aE(e)}]},vE=e=>bE(px(e,{fontSize:e.contentFontSize})),yE=e=>{const t=px(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return bE(t,`${e.componentCls}-sm`)},wE=e=>{const t=px(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return bE(t,`${e.componentCls}-lg`)},xE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},SE=e=>{const{paddingInline:t,onlyIconSize:n}=e;return px(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},kE=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}),CE=bx("Button",(e=>{const t=SE(e);return[nE(t),yE(t),vE(t),wE(t),xE(t),mE(t),tE(t)]}),kE);function EE(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 DE(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 OE(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({},EE(e,r,t)),DE(n,r,t))}}function $E(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function jE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},$E(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 PE=vx(["Button","compact"],(e=>{const t=SE(e);return[OE(t),jE(t)]}),kE);var _E=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 NE=(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=_E(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(Fw),D=S("btn",a),[O,$]=CE(D),j=z.useContext(zw),P=null!=d?d:j,_=z.useContext(zC),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=kv(t,z.createRef()),M=1===z.Children.count(h)&&!g&&!qC(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&&UC(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}=FC(D,C),V=jC((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=ly(x,["navigate"]),X=Zb(D,$,{[`${D}-${l}`]:"default"!==l&&l,[`${D}-${i}`]:i,[`${D}-${G}`]:G,[`${D}-icon-only`]:!h&&0!==h&&!!q,[`${D}-background-ghost`]:m&&!qC(i),[`${D}-loading`]:I,[`${D}-two-chinese-chars`]:A&&B&&!I,[`${D}-block`]:b,[`${D}-dangerous`]:!!s,[`${D}-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=Zb(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(XC,{prefixCls:D,className:Q,style:J},g):H.createElement(ZC,{existIcon:!!g,prefixCls:D,loading:!!I}),ee=h||0===h?KC(h,M&&B):null;if(void 0!==K.href)return O(H.createElement("a",Object.assign({},K,{className:Zb(X,{[`${D}-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(PE,{key:"compact",prefixCls:D}));return qC(i)||(te=H.createElement($C,{component:"Button",disabled:!!I},te)),O(te)},IE=z.forwardRef(NE);IE.Group=HC,IE.__ANT_BUTTON=!0;const TE=IE;function AE(e){return!(!e||!e.then)}const FE=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]=tx(!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(TE,Object.assign({},VC(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!AE(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=>{AE(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)},RE=H.createContext({}),{Provider:ME}=RE,LE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:l}=z.useContext(RE);return o?H.createElement(FE,{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},BE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:l}=z.useContext(RE);return H.createElement(FE,{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 zE,HE=z.createContext(null),WE=[];function UE(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===zE){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),zE=o-a}return zE}():n}var VE="rc-util-locker-".concat(Date.now()),GE=0;function qE(e){var t=!!e,n=ym(z.useState((function(){return GE+=1,"".concat(VE,"_").concat(GE)})),1)[0];Tm((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:UE(n),height:UE(r)}}(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;mm("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else gm(n);return function(){gm(n)}}),[t,n])}var KE=!1;var XE=function(e){return!1!==e&&(om()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},YE=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=ym(z.useState(n),2),c=l[0],u=l[1],d=c||n;z.useEffect((function(){(i||n)&&u(n)}),[n,i]);var f=ym(z.useState((function(){return XE(o)})),2),p=f[0],h=f[1];z.useEffect((function(){var e=XE(o);h(null!=e?e:null)}));var g=function(e,t){var n=ym(z.useState((function(){return om()?document.createElement("div"):null})),1)[0],r=z.useRef(!1),o=z.useContext(HE),a=ym(z.useState(WE),2),i=a[0],s=a[1],l=o||(r.current?void 0:function(e){s((function(t){return[e].concat(Mg(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 Tm((function(){return e?o?o(c):c():u(),u}),[e]),Tm((function(){i.length&&(i.forEach((function(e){return e()})),s(WE))}),[i]),[n,l]}(d&&!p),m=ym(g,2),b=m[0],v=m[1],y=null!=p?p:b;qE(r&&n&&om()&&(y===b||y===document.body));var w=null;s&&Ev(s)&&t&&(w=s.ref);var x=Cv(w,t);if(!d||!om()||void 0===p)return null;var S,k=!1===y||("boolean"==typeof S&&(KE=S),KE),C=s;return t&&(C=z.cloneElement(s,{ref:x})),z.createElement(HE.Provider,{value:v},k?C:ad.createPortal(C,y))})),QE=z.createContext({});var JE=0,ZE=Bg({},W).useId;const eD=ZE?function(e){var t=ZE();return e||t}:function(e){var t=ym(z.useState("ssr-id"),2),n=t[0],r=t[1];return z.useEffect((function(){var e=JE;JE+=1,r("rc_unique_".concat(e))}),[]),e||n};function tD(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function nD(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 rD=z.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var oD={width:0,height:0,overflow:"hidden",outline:"none"},aD=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=Cv(b,H.useContext(QE).panel),E=z.useRef(),D=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===D.current?E.current.focus():e||t!==E.current||D.current.focus()}}}));var O,$,j,P={};void 0!==w&&(P.width=w),void 0!==x&&(P.height=x),s&&(O=H.createElement("div",{className:Zb("".concat(n,"-footer"),null==S?void 0:S.footer),style:Bg({},null==k?void 0:k.footer)},s)),a&&($=H.createElement("div",{className:Zb("".concat(n,"-header"),null==S?void 0:S.header),style:Bg({},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:Zb("".concat(n,"-content"),null==S?void 0:S.content),style:null==k?void 0:k.content},j,$,H.createElement("div",tg({className:Zb("".concat(n,"-body"),null==S?void 0:S.body),style:Bg(Bg({},f),null==k?void 0:k.body)},p),d),O);return H.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:C,style:Bg(Bg({},o),P),className:Zb(n,r),onMouseDown:g,onMouseUp:m},H.createElement("div",{tabIndex:0,ref:E,style:oD,"aria-hidden":"true"}),H.createElement(rD,{shouldUpdate:v||y},h?h(_):_),H.createElement("div",{tabIndex:0,ref:D,style:oD,"aria-hidden":"true"}))})),iD=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=ym(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+=nD(o),n.top+=nD(o,!0),n);m(f?"".concat(f.x-a.left,"px ").concat(f.y-a.top,"px"):"")}return g&&(b.transformOrigin=g),z.createElement(rS,{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(aD,tg({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:s,style:Bg(Bg(Bg({},c),o),b),className:Zb(a,l)}))}))}));function sD(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return z.createElement(rS,{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",tg({ref:r,style:Bg(Bg({},s),n),className:Zb("".concat(t,"-mask"),a,i)},o))}))}function lD(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,D=e.maskStyle,O=e.maskProps,$=e.rootClassName,j=e.classNames,P=e.styles,_=z.useRef(),N=z.useRef(),I=z.useRef(),T=ym(z.useState(a),2),A=T[0],F=T[1],R=eD();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),am(N.current,document.activeElement)||(_.current=document.activeElement))}),[a]),z.useEffect((function(){return function(){clearTimeout(B.current)}}),[]),z.createElement("div",tg({className:Zb("".concat(n,"-root"),$)},ik(e,{data:!0})),z.createElement(sD,{prefixCls:n,visible:x&&a,motionName:tD(n,S,k),style:Bg(Bg({zIndex:r},D),null==P?void 0:P.mask),maskProps:O,className:null==j?void 0:j.mask}),z.createElement("div",tg({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===bk.ESC)return e.stopPropagation(),void M(e);a&&e.keyCode===bk.TAB&&I.current.changeActive(!e.shiftKey)},className:Zb("".concat(n,"-wrap"),d,null==j?void 0:j.wrapper),ref:N,onClick:H,style:Bg(Bg(Bg({zIndex:r},u),null==P?void 0:P.wrapper),{},{display:A?null:"none"})},f),z.createElement(iD,tg({},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)am(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(Mte){}_.current=null}A&&(null==g||g())}var t;null==h||h(e)},motionName:tD(n,m,b)}))))}iD.displayName="Content";var cD=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=ym(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(QE.Provider,{value:d},z.createElement(YE,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},z.createElement(lD,tg({},e,{destroyOnClose:a,afterClose:function(){null==i||i(),u(!1)}})))):null};function uD(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.createElement(XS,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]}cD.displayName="Dialog";var dD="RC_FORM_INTERNAL_HOOKS",fD=function(){qg(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},pD=z.createContext({getFieldValue:fD,getFieldsValue:fD,getFieldError:fD,getFieldWarning:fD,getFieldsError:fD,isFieldsTouched:fD,isFieldTouched:fD,isFieldValidating:fD,isFieldsValidating:fD,resetFields:fD,setFields:fD,setFieldValue:fD,setFieldsValue:fD,validateFields:fD,submit:fD,getInternalHooks:function(){return fD(),{dispatch:fD,initEntityValue:fD,registerField:fD,useSubscribe:fD,setInitialValues:fD,destroyForm:fD,setCallbacks:fD,registerWatch:fD,getFields:fD,setValidateMessages:fD,setPreserve:fD,getInitialValue:fD}}}),hD=z.createContext(null);function gD(e){return null==e?[]:Array.isArray(e)?e:[e]}function mD(){return mD=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},mD.apply(this,arguments)}function bD(e){return(bD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vD(e,t){return(vD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yD(e,t,n){return yD=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(Mte){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&&vD(o,n.prototype),o},yD.apply(null,arguments)}function wD(e){var t="function"==typeof Map?new Map:void 0;return wD=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 yD(e,arguments,bD(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),vD(r,e)},wD(e)}var xD=/%[sdj%]/g,SD=function(){};function kD(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 CD(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(xD,(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 ED(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 DD(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 OD=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,vD(t,n),r}(wD(Error));function $D(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);DD(i,n,(function(e){return r(e),e.length?a(new OD(e,kD(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 OD(u,kD(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?DD(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 jD(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 PD(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]=mD({},e[n],r):e[n]=r}return e}var _D,ND=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!ED(t,a||e.type)||r.push(CD(o.messages.required,e.fullField))},ID=/^(([^<>()\[\]\\.,;:\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,}))$/,TD=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,AD={integer:function(e){return AD.number(e)&&parseInt(e,10)===e},float:function(e){return AD.number(e)&&!AD.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Mte){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&&!AD.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ID)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(_D)return _D;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 _D=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(TD)}},FD="enum",RD={required:ND,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(CD(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)ND(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?AD[a](t)||r.push(CD(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(CD(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(CD(o.messages[c].len,e.fullField,e.len)):i&&!s&&l<e.min?r.push(CD(o.messages[c].min,e.fullField,e.min)):s&&!i&&l>e.max?r.push(CD(o.messages[c].max,e.fullField,e.max)):i&&s&&(l<e.min||l>e.max)&&r.push(CD(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[FD]=Array.isArray(e[FD])?e[FD]:[],-1===e[FD].indexOf(t)&&r.push(CD(o.messages[FD],e.fullField,e[FD].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(CD(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(CD(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},MD=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ED(t,a)&&!e.required)return n();RD.required(e,t,r,i,o,a),ED(t,a)||RD.type(e,t,r,i,o)}n(i)},LD={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ED(t,"string")&&!e.required)return n();RD.required(e,t,r,a,o,"string"),ED(t,"string")||(RD.type(e,t,r,a,o),RD.range(e,t,r,a,o),RD.pattern(e,t,r,a,o),!0===e.whitespace&&RD.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(ED(t)&&!e.required)return n();RD.required(e,t,r,a,o),void 0!==t&&RD.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),ED(t)&&!e.required)return n();RD.required(e,t,r,a,o),void 0!==t&&(RD.type(e,t,r,a,o),RD.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(ED(t)&&!e.required)return n();RD.required(e,t,r,a,o),void 0!==t&&RD.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(ED(t)&&!e.required)return n();RD.required(e,t,r,a,o),ED(t)||RD.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(ED(t)&&!e.required)return n();RD.required(e,t,r,a,o),void 0!==t&&(RD.type(e,t,r,a,o),RD.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(ED(t)&&!e.required)return n();RD.required(e,t,r,a,o),void 0!==t&&(RD.type(e,t,r,a,o),RD.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();RD.required(e,t,r,a,o,"array"),null!=t&&(RD.type(e,t,r,a,o),RD.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(ED(t)&&!e.required)return n();RD.required(e,t,r,a,o),void 0!==t&&RD.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(ED(t)&&!e.required)return n();RD.required(e,t,r,a,o),void 0!==t&&RD.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(ED(t,"string")&&!e.required)return n();RD.required(e,t,r,a,o),ED(t,"string")||RD.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(ED(t,"date")&&!e.required)return n();var i;if(RD.required(e,t,r,a,o),!ED(t,"date"))i=t instanceof Date?t:new Date(t),RD.type(e,i,r,a,o),i&&RD.range(e,i.getTime(),r,a,o)}n(a)},url:MD,hex:MD,email:MD,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;RD.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(ED(t)&&!e.required)return n();RD.required(e,t,r,a,o)}n(a)}};function BD(){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 zD=BD(),HD=function(){function e(e){this.rules=null,this._messages=zD,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=PD(BD(),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===zD&&(l=BD()),PD(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=mD({},a)),r=a[e]=i.transform(r)),(i="function"==typeof i?{validator:i}:mD({},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 $D(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 mD({},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(jD(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(jD(o,a)):i.error&&(d=[i.error(o,CD(i.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=mD({},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=kD(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&&!LD.hasOwnProperty(e.type))throw new Error(CD("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]?LD.required:LD[this.getType(e)]||void 0},e}();HD.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");LD[e]=t},HD.warning=SD,HD.messages=zD,HD.validators=LD;var WD="'${name}' is not a valid ${type}",UD={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:WD,method:WD,array:WD,object:WD,number:WD,date:WD,boolean:WD,integer:WD,float:WD,regexp:WD,email:WD,url:WD,hex:WD},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}"}},VD=HD;function GD(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var qD="CODE_LOGIC_ERROR";function KD(e,t,n,r,o){return XD.apply(this,arguments)}function XD(){return XD=eC(Jk().mark((function e(t,n,r,o,a){var i,s,l,c,u,d,f,p,h;return Jk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(i=Bg({},r)).ruleIndex,VD.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(qD)}}),l=null,i&&"array"===i.type&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new VD(zf({},t,[i])),u=Sy(UD,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(zf({},t,n),Bg({},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===qD?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 KD("".concat(t,".").concat(n),e,l,o,a)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(Mg(e),Mg(t))}),[]));case 23:return p=Bg(Bg({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=d.map((function(e){return"string"==typeof e?GD(e,p):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),XD.apply(this,arguments)}function YD(e,t,n,r,o,a){var i,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=Bg(Bg({},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(){qg(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));qg(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=eC(Jk().mark((function e(n,o){var i,c,u;return Jk().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,KD(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 KD(s,t,e,r,a).then((function(t){return{errors:t,rule:e}}))}));i=(o?function(e){return JD.apply(this,arguments)}(c):function(e){return QD.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return i.catch((function(e){return e})),i}function QD(){return(QD=eC(Jk().mark((function e(t){return Jk().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,Mg(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function JD(){return(JD=eC(Jk().mark((function e(t){var n;return Jk().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 ZD(e){return gD(e)}function eO(e,t){var n={};return t.forEach((function(t){var r=by(e,t);n=yy(n,t,r)})),n}function tO(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return nO(t,e,n)}))}function nO(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 rO(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Lf(t.target)&&e in t.target?t.target[e]:t}function oO(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(Mg(e.slice(0,n)),[o],Mg(e.slice(n,t)),Mg(e.slice(t+1,r))):a<0?[].concat(Mg(e.slice(0,t)),Mg(e.slice(t+1,n+1)),[o],Mg(e.slice(n+1,r))):e}var aO=["name"],iO=[];function sO(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var lO=function(e){Jv(n,z.Component);var t=ny(n);function n(e){var r;(vp(this,n),zf(ty(r=t.call(this,e)),"state",{resetCount:0}),zf(ty(r),"cancelRegisterFunc",null),zf(ty(r),"mounted",!1),zf(ty(r),"touched",!1),zf(ty(r),"dirty",!1),zf(ty(r),"validatePromise",void 0),zf(ty(r),"prevValidating",void 0),zf(ty(r),"errors",iO),zf(ty(r),"warnings",iO),zf(ty(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,ZD(o)),r.cancelRegisterFunc=null})),zf(ty(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Mg(void 0===n?[]:n),Mg(t)):[]})),zf(ty(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}))})),zf(ty(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),zf(ty(r),"metaCache",null),zf(ty(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Bg(Bg({},r.getMeta()),{},{destroy:e});Kg(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),zf(ty(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&&tO(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=iO,r.warnings=iO,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=iO,r.warnings=iO,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||iO),"warnings"in h&&(r.warnings=h.warnings||iO),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&tO(t,u,!0))return void r.reRender();if(a&&!u.length&&sO(a,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(ZD).some((function(e){return tO(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!s.length||u.length||a)&&sO(a,e,c,d,f,n))return void r.reRender()}!0===a&&r.reRender()})),zf(ty(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(eC(Jk().mark((function o(){var i,s,c,u,d,f,p;return Jk().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||gD(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=YD(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iO;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?iO:r;t?o.push.apply(o,Mg(a)):n.push.apply(n,Mg(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=iO,r.warnings=iO,r.triggerMetaEvent(),r.reRender()),l})),zf(ty(r),"isFieldValidating",(function(){return!!r.validatePromise})),zf(ty(r),"isFieldTouched",(function(){return r.touched})),zf(ty(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(dD).getInitialValue)(r.getNamePath())})),zf(ty(r),"getErrors",(function(){return r.errors})),zf(ty(r),"getWarnings",(function(){return r.warnings})),zf(ty(r),"isListField",(function(){return r.props.isListField})),zf(ty(r),"isList",(function(){return r.props.isList})),zf(ty(r),"isPreserve",(function(){return r.props.preserve})),zf(ty(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}})),zf(ty(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Bg(Bg({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=yv(e);return 1===n.length&&z.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),zf(ty(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return by(e||t(!0),n)})),zf(ty(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(dD).dispatch,g=r.getValue(),m=l||function(e){return zf({},s,e)},b=e[n],v=Bg(Bg({},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):rO.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)},gD(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)(dD).initEntityValue)(ty(r));return r}return wp(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)(dD).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)):(qg(!o,"`children` of Field is not validate ReactElement."),e=o),z.createElement(z.Fragment,{key:t},e)}}]),n}();function cO(e){var t=e.name,n=Hf(e,aO),r=z.useContext(pD),o=z.useContext(hD),a=void 0!==t?ZD(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),z.createElement(lO,tg({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function uO(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=z.useContext(pD),l=z.useContext(hD),c=z.useRef({keys:[],id:0}).current,u=z.useMemo((function(){var e=ZD(s.prefixName)||[];return[].concat(Mg(e),Mg(ZD(t)))}),[s.prefixName,t]),d=z.useMemo((function(){return Bg(Bg({},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 qg(!1,"Form.List only accepts function as children."),null;return z.createElement(hD.Provider,{value:f},z.createElement(pD.Provider,{value:d},z.createElement(cO,{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(Mg(c.keys.slice(0,t)),[c.id],Mg(c.keys.slice(t))),a([].concat(Mg(n.slice(0,t)),[e],Mg(n.slice(t))))):(c.keys=[].concat(Mg(c.keys),[c.id]),a([].concat(Mg(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=oO(c.keys,e,t),a(oO(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)}))))}zf(lO,"contextType",pD),zf(lO,"defaultProps",{trigger:"onChange",valuePropName:"value"});var dO="__@field_split__";function fO(e){return e.map((function(e){return"".concat(Lf(e),":").concat(e)})).join(dO)}var pO=function(){function e(){vp(this,e),zf(this,"kvs",new Map)}return wp(e,[{key:"set",value:function(e,t){this.kvs.set(fO(e),t)}},{key:"get",value:function(e){return this.kvs.get(fO(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(fO(e))}},{key:"map",value:function(e){return Mg(this.kvs.entries()).map((function(t){var n=ym(t,2),r=n[0],o=n[1],a=r.split(dO);return e({key:a.map((function(e){var t=ym(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}(),hO=["name"],gO=wp((function e(t){var n=this;vp(this,e),zf(this,"formHooked",!1),zf(this,"forceRootUpdate",void 0),zf(this,"subscribable",!0),zf(this,"store",{}),zf(this,"fieldEntities",[]),zf(this,"initialValues",{}),zf(this,"callbacks",{}),zf(this,"validateMessages",null),zf(this,"preserve",null),zf(this,"lastValidatePromise",null),zf(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}})),zf(this,"getInternalHooks",(function(e){return e===dD?(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}):(qg(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),zf(this,"useSubscribe",(function(e){n.subscribable=e})),zf(this,"prevWithoutPreserves",null),zf(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=Sy(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=yy(o,n,by(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),zf(this,"destroyForm",(function(){var e=new pO;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),zf(this,"getInitialValue",(function(e){var t=by(n.initialValues,e);return e.length?Sy(t):t})),zf(this,"setCallbacks",(function(e){n.callbacks=e})),zf(this,"setValidateMessages",(function(e){n.validateMessages=e})),zf(this,"setPreserve",(function(e){n.preserve=e})),zf(this,"watchList",[]),zf(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),zf(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)}))}})),zf(this,"timeoutId",null),zf(this,"warningUnhooked",(function(){})),zf(this,"updateStore",(function(e){n.store=e})),zf(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),zf(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new pO;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),zf(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ZD(e);return t.get(n)||{INVALIDATE_NAME_PATH:ZD(e)}}))})),zf(this,"getFieldsValue",(function(e,t){var r,o,a;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Lf(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)})),eO(n.store,s.map(ZD))})),zf(this,"getFieldValue",(function(e){n.warningUnhooked();var t=ZD(e);return by(n.store,t)})),zf(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:ZD(e[n]),errors:[],warnings:[]}}))})),zf(this,"getFieldError",(function(e){n.warningUnhooked();var t=ZD(e);return n.getFieldsError([t])[0].errors})),zf(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=ZD(e);return n.getFieldsError([t])[0].warnings})),zf(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(ZD),s=!1):(o=null,s=a):(o=a.map(ZD),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 pO;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(Mg(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)})),zf(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),zf(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(ZD);return t.some((function(e){var t=e.getNamePath();return tO(r,t)&&e.isFieldValidating()}))})),zf(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),zf(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new pO,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,Mg(Mg(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))qg(!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)qg(!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(yy(n.store,o,Mg(a)[0].value))}}}}))})),zf(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Sy(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(ZD);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(yy(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),zf(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=Hf(e,hO),i=ZD(o);r.push(i),"value"in a&&n.updateStore(yy(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)})),zf(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Bg(Bg({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),zf(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===by(n.store,r)&&n.updateStore(yy(n.store,r,t))}})),zf(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),zf(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!nO(e.getNamePath(),t)}))){var s=n.store;n.updateStore(yy(s,t,i,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),zf(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})}})),zf(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Bg(Bg({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),zf(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(Mg(r))}),r})),zf(this,"updateValue",(function(e,t){var r=ZD(e),o=n.store;n.updateStore(yy(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(eO(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Mg(a)))})),zf(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Sy(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),zf(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),zf(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new pO;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ZD(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})),zf(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new pO;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 tO(e,n)}));i.length&&r(i,o)}})),zf(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(ZD):[],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||tO(i,t,d)){var r=e.validateRules(Bg({validateMessages:Bg(Bg({},UD),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,Mg(n)):r.push.apply(r,Mg(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})),zf(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 mO(e){var t=z.useRef(),n=ym(z.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new gO((function(){n({})}));t.current=r.getForm()}return[t.current]}var bO=z.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),vO=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=z.useContext(bO),i=z.useRef({});return z.createElement(bO.Provider,{value:Bg(Bg({},a),{},{validateMessages:Bg(Bg({},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=Bg(Bg({},i.current),{},zf({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Bg({},i.current);delete t[e],i.current=t,a.unregisterForm(e)}})},o)},yO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],wO=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=Hf(e,yO),v=z.useContext(bO),y=ym(mO(a),1)[0],w=y.getInternalHooks(dD),x=w.useSubscribe,S=w.setInitialValues,k=w.setCallbacks,C=w.setValidateMessages,E=w.setPreserve,D=w.destroyForm;z.useImperativeHandle(t,(function(){return y})),z.useEffect((function(){return v.registerForm(n,y),function(){v.unregisterForm(n)}}),[v,y,n]),C(Bg(Bg({},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 O,$=z.useRef(null);S(r,!$.current),$.current||($.current=!0),z.useEffect((function(){return D}),[]);var j="function"==typeof s;j?O=s(y.getFieldsValue(!0),y):O=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"!==Lf(e)||"object"!==Lf(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Mg(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 Bg(Bg({},y),{},{validateTrigger:f})}),[y,f]),N=z.createElement(hD.Provider,{value:null},z.createElement(pD.Provider,{value:_},O));return!1===c?N:z.createElement(c,tg({},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 xO(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function SO(){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=ym(z.useState(),2),u=c[0],d=c[1],f=z.useMemo((function(){return xO(u)}),[u]),p=z.useRef(f);p.current=f;var h=z.useContext(pD),g=l||h,m=g&&g._init,b=ZD(o),v=z.useRef(b);return v.current=b,z.useEffect((function(){if(m){var e=g.getFieldsValue,t=(0,(0,g.getInternalHooks)(dD).registerWatch)((function(e,t){var n=by(s.preserve?t:e,v.current),r=xO(n);p.current!==r&&(p.current=r,d(n))})),n=by(s.preserve?e(!0):e(),v.current);return u!==n&&d(n),t}}),[m]),u}var kO=z.forwardRef(wO);kO.FormProvider=vO,kO.Field=cO,kO.List=uO,kO.useForm=mO,kO.useWatch=SO;const CO=z.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),EO=z.createContext(null),DO=e=>{const t=ly(e,["prefixCls"]);return z.createElement(vO,Object.assign({},t))},OO=z.createContext({prefixCls:""}),$O=z.createContext({}),jO=e=>{let{children:t,status:n,override:r}=e;const o=z.useContext($O),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($O.Provider,{value:a},t)};function PO(){}const _O=z.createContext({add:PO,remove:PO});function NO(e){const t=z.useContext(_O),n=z.useRef();return ex((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const IO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=z.useContext(RE);return H.createElement(TE,Object.assign({onClick:n},e),t)},TO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=z.useContext(RE);return H.createElement(TE,Object.assign({},VC(n),{loading:e,onClick:o},t),r)};function AO(e,t){return H.createElement("span",{className:`${e}-close-x`},t||H.createElement(XS,{className:`${e}-close-icon`}))}const FO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Fy("Modal",Ty()),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),Mg(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=H.createElement(H.Fragment,null,H.createElement(IO,null),H.createElement(TO,null)),"function"==typeof c&&(p=c(p,{OkBtn:TO,CancelBtn:IO})),p=H.createElement(ME,{value:f},p)):p=c,H.createElement(Bw,{disabled:!1},p)},RO=e=>({animationDuration:e,animationFillMode:"both"}),MO=e=>({animationDuration:e,animationFillMode:"both"}),LO=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({},RO(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},MO(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"}}},BO=new Vb("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),zO=new Vb("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),HO=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[LO(r,BO,zO,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},WO=new Vb("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),UO=new Vb("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),VO=new Vb("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),GO=new Vb("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),qO=new Vb("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 Vb("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),XO={"move-up":{inKeyframes:new Vb("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 Vb("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:WO,outKeyframes:UO},"move-left":{inKeyframes:VO,outKeyframes:GO},"move-right":{inKeyframes:qO,outKeyframes:KO}},YO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=XO[t];return[LO(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},QO=new Vb("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),JO=new Vb("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ZO=new Vb("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),e$=new Vb("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),t$=new Vb("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),n$=new Vb("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),r$=new Vb("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),o$=new Vb("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),a$={"slide-up":{inKeyframes:QO,outKeyframes:JO},"slide-down":{inKeyframes:ZO,outKeyframes:e$},"slide-left":{inKeyframes:t$,outKeyframes:n$},"slide-right":{inKeyframes:r$,outKeyframes:o$}},i$=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=a$[t];return[LO(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}}]},s$=new Vb("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l$=new Vb("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),c$=new Vb("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),u$=new Vb("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),d$=new Vb("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),f$=new Vb("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),p$=new Vb("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),h$=new Vb("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),g$=new Vb("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),m$=new Vb("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),b$=new Vb("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),v$=new Vb("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),y$={zoom:{inKeyframes:s$,outKeyframes:l$},"zoom-big":{inKeyframes:c$,outKeyframes:u$},"zoom-big-fast":{inKeyframes:c$,outKeyframes:u$},"zoom-left":{inKeyframes:p$,outKeyframes:h$},"zoom-right":{inKeyframes:g$,outKeyframes:m$},"zoom-up":{inKeyframes:d$,outKeyframes:f$},"zoom-down":{inKeyframes:b$,outKeyframes:v$}},w$=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=y$[t];return[LO(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}}]},x$=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 S$(e){return{position:e,inset:0}}const k$=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({},S$("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},S$("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:HO(e)}]},C$=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({},ix(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}},ux(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"}}}]},E$=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}}}},D$=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},O$=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return px(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})},$$=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),j$=bx("Modal",(e=>{const t=O$(e);return[C$(t),D$(t),k$(t),e.wireframe&&E$(t),w$(t,"zoom")]}),$$);var P$=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 _$;const N$=e=>{_$={x:e.pageX,y:e.pageY},setTimeout((()=>{_$=null}),100)};om()&&window.document.documentElement&&document.documentElement.addEventListener("click",N$,!0);const I$=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=z.useContext(Fw),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=P$(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),C=r("modal",s),E=r(),[D,O]=j$(C),$=Zb(d,{[`${C}-centered`]:!!f,[`${C}-wrap-rtl`]:"rtl"===o}),j=null!==w&&z.createElement(FO,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:i})),[P,_]=uD(g,h,(e=>AO(C,e)),z.createElement(XS,{className:`${C}-close-icon`}),!0),N=NO(`.${C}-content`),[I,T]=Fk("Modal",k.zIndex);return D(z.createElement(RC,null,z.createElement(jO,{status:!0,override:!0},z.createElement(_k.Provider,{value:T},z.createElement(cD,Object.assign({width:y},k,{zIndex:I,getContainer:void 0===p?n:p,prefixCls:C,rootClassName:Zb(O,c),footer:j,visible:null!=u?u:v,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:_$,onClose:i,closable:P,closeIcon:_,focusTriggerAfterClose:m,transitionName:yC(E,"zoom",e.transitionName),maskTransitionName:yC(E,"fade",e.maskTransitionName),className:Zb(O,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}))))))},T$=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}}},A$=vx(["Modal","confirm"],(e=>{const t=O$(e);return[T$(t)]}),$$,{order:-1e3});var F$=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 R$(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:l,locale:c}=e,u=F$(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(i){case"info":d=z.createElement(tk,null);break;case"success":d=z.createElement(WS,null);break;case"error":d=z.createElement(GS,null);break;default:d=z.createElement(JS,null)}const f=null!=s?s:"confirm"===i,p=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=Fy("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),Mg(Object.values(v))),w=z.createElement(z.Fragment,null,z.createElement(LE,null),z.createElement(BE,null)),x=void 0!==e.title&&null!==e.title,S=`${a}-body`;return z.createElement("div",{className:`${a}-body-wrapper`},z.createElement("div",{className:Zb(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(ME,{value:y},z.createElement("div",{className:`${a}-btns`},"function"==typeof l?l(w,{OkBtn:BE,CancelBtn:LE}):w)):l,z.createElement(A$,{prefixCls:t}))}const M$=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=Zb(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===c},e.className),[,D]=Zw(),O=z.useMemo((()=>void 0!==n?n:D.zIndexPopupBase+Ik),[n,D]);return z.createElement(I$,{prefixCls:u,className:E,wrapClassName:Zb({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==v||v(!1)},open:o,title:"",footer:null,transitionName:yC(f||"","zoom",e.transitionName),maskTransitionName:yC(f||"","fade",e.maskTransitionName),mask:k,maskClosable:C,style:S,styles:Object.assign({body:p,mask:l},y),width:x,zIndex:O,afterClose:r,keyboard:a,centered:i,getContainer:s,closable:h,closeIcon:g,modalRender:m,focusTriggerAfterClose:b},z.createElement(R$,Object.assign({},e,{confirmPrefixCls:w})))},L$=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return z.createElement(ES,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},z.createElement(M$,Object.assign({},e)))},B$=[];var z$=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 H$="";function W$(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(Mg(r.slice(1))));for(let e=0;e<B$.length;e++){if(B$[e]===i){B$.splice(e,1);break}}fC(t)}function a(e){var{okText:r,cancelText:o,prefixCls:a,getContainer:i}=e,s=z$(e,["okText","cancelText","prefixCls","getContainer"]);clearTimeout(n),n=setTimeout((()=>{const e=Ty(),{getPrefixCls:n,getIconPrefixCls:l,getTheme:c}=kS(),u=n(void 0,H$),d=a||`${u}-modal`,f=l(),p=c();let h=i;!1===h&&(h=void 0),lC(z.createElement(L$,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),B$.push(i),{destroy:i,update:function(e){r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e),a(r)}}}function U$(e){return Object.assign(Object.assign({},e),{type:"warning"})}function V$(e){return Object.assign(Object.assign({},e),{type:"info"})}function G$(e){return Object.assign(Object.assign({},e),{type:"success"})}function q$(e){return Object.assign(Object.assign({},e),{type:"error"})}function K$(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var X$=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 Y$=(e,t)=>{var n,{afterClose:r,config:o}=e,a=X$(e,["afterClose","config"]);const[i,s]=z.useState(!0),[l,c]=z.useState(o),{direction:u,getPrefixCls:d}=z.useContext(Fw),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(Mg(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]=Fy("Modal",Py.Modal);return z.createElement(L$,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))},Q$=z.forwardRef(Y$);let J$=0;const Z$=z.memo(z.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=z.useState([]);return[e,z.useCallback((e=>(t((t=>[].concat(Mg(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return z.useImperativeHandle(t,(()=>({patchElement:r})),[]),z.createElement(z.Fragment,null,n)})));function ej(){const e=z.useRef(null),[t,n]=z.useState([]);z.useEffect((()=>{if(t.length){Mg(t).forEach((e=>{e()})),n([])}}),[t]);const r=z.useCallback((t=>function(r){var o;J$+=1;const a=z.createRef();let i;const s=new Promise((e=>{i=e}));let l,c=!1;const u=z.createElement(Q$,{key:`modal-${J$}`,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&&B$.push(l);return{destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(Mg(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(Mg(e),[t])))},then:e=>(c=!0,s.then(e))}}),[]);return[z.useMemo((()=>({info:r(V$),success:r(G$),error:r(q$),warning:r(U$),confirm:r(K$)})),[]),z.createElement(Z$,{key:"modal-holder",ref:e})]}const tj=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new Vb("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 Vb("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 Vb("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 Vb("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},nj=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],rj={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},oj=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)},aj=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)},ij=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},oj(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},aj(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"}}}},nj.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[rj[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},sj=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}}},lj=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,s=new Vb("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ix(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({},sj(e))}}]},cj=e=>({zIndexPopup:e.zIndexPopupBase+Ik+50,width:384}),uj=e=>{const t=e.paddingMD,n=e.paddingLG;return px(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})},dj=bx("Notification",(e=>{const t=uj(e);return[lj(t),tj(t),ij(t)]}),cj),fj=vx(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=uj(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},sj(n)),{width:n.width,maxWidth:`calc(100vw - ${2*n.notificationMarginEdge}px)`,margin:0})}}),cj);var pj=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 hj(e,t){return null===t||!1===t?null:t||z.createElement("span",{className:`${e}-close-x`},z.createElement(XS,{className:`${e}-close-icon`}))}const gj={success:WS,info:tk,error:GS,warning:JS},mj=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(gj[r]||null,{className:Zb(`${t}-icon`,`${t}-icon-${r}`)})),z.createElement("div",{className:Zb({[`${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 bj=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 vj="topRight",yj=e=>{let{children:t,prefixCls:n}=e;const[,r]=dj(n);return z.createElement(wk,{classNames:{list:r,notice:r}},t)},wj=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(yj,{prefixCls:n,key:r},e)},xj=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(Fw),[,p]=Zw(),h=o||u("notification"),[g,m]=Ok({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:()=>Zb({[`${h}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(h),closable:!0,closeIcon:hj(h),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:l,renderNotifications:wj,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 Sj(e){const t=z.useRef(null);Ey();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=bj(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=hj(s,m);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:vj},b),{content:z.createElement(mj,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:f,role:g}),className:Zb(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(xj,Object.assign({key:"notification-holder"},e,{ref:t}))]}function kj(e){return Sj(e)}const Cj=H.createContext({}),Ej=H.createContext({message:{},notification:{},modal:{}}),Dj=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},Oj=bx("App",(e=>[Dj(e)])),$j=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:s,component:l="div"}=e,{getPrefixCls:c}=z.useContext(Fw),u=c("app",t),[d,f]=Oj(u),p=Zb(f,u,r,o),h=z.useContext(Cj),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]=Qk(g.message),[v,y]=kj(g.notification),[w,x]=ej(),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(Ej.Provider,{value:S},H.createElement(Cj.Provider,{value:g},H.createElement(k,Object.assign({},!1===l?void 0:C),x,b,y,n))))};$j.useApp=()=>H.useContext(Ej);const jj=$j;function Pj(e){return function(t){return z.createElement(ES,{theme:{token:{motion:!1,zIndexPopupBase:0}}},z.createElement(e,Object.assign({},t)))}}const _j=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 Nj=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:Zb(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))};var Ij=z.createContext(null);function Tj(){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 Aj=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fj=void 0;function Rj(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=Hf(e,Aj),v=i&&!p;function y(e){l(c,e)}z.useEffect((function(){return function(){y(null)}}),[]);var w,x=a&&o!==Fj?a(o):f;r||(w={opacity:v?0:1,height:v?0:Fj,overflowY:v?"hidden":Fj,order:i?h:Fj,pointerEvents:v?"none":Fj,position:v?"absolute":Fj});var S={};v&&(S["aria-hidden"]=!0);var k=z.createElement(m,tg({className:Zb(!r&&n,u),style:Bg(Bg({},w),d)},S,b,{ref:t}),x);return i&&(k=z.createElement(sy,{onResize:function(e){y(e.offsetWidth)},disabled:s},k)),k}var Mj=z.forwardRef(Rj);function Lj(){var e=z.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)hy(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 Bj(e,t){var n=ym(z.useState(t),2),r=n[0],o=n[1];return[r,ex((function(t){e((function(){o(t)}))}))]}Mj.displayName="Item";var zj=H.createContext(null),Hj=["component"],Wj=["className"],Uj=["className"],Vj=function(e,t){var n=z.useContext(zj);if(!n){var r=e.component,o=void 0===r?"div":r,a=Hf(e,Hj);return z.createElement(o,tg({},a,{ref:t}))}var i=n.className,s=Hf(n,Wj),l=e.className,c=Hf(e,Uj);return z.createElement(zj.Provider,{value:null},z.createElement(Mj,tg({ref:t,className:Zb(i,l)},s,c)))},Gj=z.forwardRef(Vj);Gj.displayName="RawItem";var qj=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Kj="responsive",Xj="invalidate";function Yj(e){return"+ ".concat(e.length," ...")}function Qj(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=Hf(e,qj),k="full"===d,C=Lj(),E=ym(Bj(C,null),2),D=E[0],O=E[1],$=D||0,j=ym(Bj(C,new Map),2),P=j[0],_=j[1],N=ym(Bj(C,0),2),I=N[0],T=N[1],A=ym(Bj(C,0),2),F=A[0],R=A[1],M=ym(Bj(C,0),2),L=M[0],B=M[1],H=ym(z.useState(null),2),W=H[0],U=H[1],V=ym(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,D]),X=ym(z.useState(!1),2),Y=X[0],Q=X[1],J="".concat(r,"-item"),Z=Math.max(I,F),ee=h===Kj,te=a.length&&ee,ne=h===Xj,re=te||"number"==typeof h&&a.length>h,oe=z.useMemo((function(){var e=a;return te?e=null===D&&k?a:a.slice(0,Math.min(a.length,$/u)):"number"==typeof h&&(e=a.slice(0,h)),e}),[a,u,D,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))}Tm((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(zj.Provider,{key:n,value:Bg(Bg({},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(Mj,tg({},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(zj.Provider,{value:Bg(Bg({},he),me)},m(ae)));else{var be=g||Yj;pe=z.createElement(Mj,tg({},he,me),"function"==typeof be?be(ae):be)}var ve=z.createElement(y,tg({className:Zb(!ne&&r,p),style:f,ref:t},S),oe.map(ge),re?pe:null,b&&z.createElement(Mj,tg({},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(sy,{onResize:function(e,t){O(t.clientWidth)},disabled:!te},ve)),ve}var Jj=z.forwardRef(Qj);Jj.displayName="Overflow",Jj.Item=Gj,Jj.RESPONSIVE=Kj,Jj.INVALIDATE=Xj;var Zj=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,D=E.onKeyDown,O=E.onChange,$=E.onMouseDown,j=E.onCompositionStart,P=E.onCompositionEnd,_=E.style;return S.props,S=z.cloneElement(S,Bg(Bg(Bg({type:"search"},E),{},{id:o,ref:kv(t,C),disabled:i,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:Zb("".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:Bg(Bg({},_),{},{opacity:u?null:0}),onKeyDown:function(e){h(e),D&&D(e)},onMouseDown:function(e){g(e),$&&$(e)},onChange:function(e){m(e),O&&O(e)},onCompositionStart:function(e){v(e),j&&j(e)},onCompositionEnd:function(e){y(e),P&&P(e)},onPaste:b}))},eP=z.forwardRef(Zj);function tP(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}eP.displayName="Input";var nP="undefined"!=typeof window&&window.document&&window.document.documentElement;function rP(e){return["string","number"].includes(Lf(e))}function oP(e){var t=void 0;return e&&(rP(e.title)?t=e.title.toString():rP(e.label)&&(t=e.label.toString())),t}function aP(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var iP=function(e){e.preventDefault(),e.stopPropagation()},sP=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,D=e.onInputChange,O=e.onInputPaste,$=e.onInputKeyDown,j=e.onInputMouseDown,P=e.onInputCompositionStart,_=e.onInputCompositionEnd,N=z.useRef(null),I=ym(z.useState(0),2),T=I[0],A=I[1],F=ym(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:Zb("".concat(L,"-item"),zf({},"".concat(L,"-item-disabled"),n)),title:oP(e)},z.createElement("span",{className:"".concat(L,"-item-content")},t),r&&z.createElement(Nj,{className:"".concat(L,"-item-remove"),onMouseDown:iP,onClick:o,customizeIcon:v},"×"))}t=function(){A(N.current.scrollWidth)},n=[B],nP?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(eP,{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:D,onPaste:O,onCompositionStart:P,onCompositionEnd:_,tabIndex:b,attrs:ik(e,!0)}),z.createElement("span",{ref:N,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},B," ")),V=z.createElement(Jj,{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){iP(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:aP,maxCount:y});return z.createElement(z.Fragment,null,V,!a.length&&!B&&z.createElement("span",{className:"".concat(L,"-placeholder")},u))},lP=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=ym(z.useState(!1),2),D=E[0],O=E[1],$="combobox"===c,j=$||h,P=d[0],_=g||"";$&&m&&!D&&(_=m),z.useEffect((function(){$&&O(!1)}),[$,m]);var N=!("combobox"!==c&&!u&&!h)&&!!_,I=void 0===C?oP(P):C;return z.createElement(z.Fragment,null,z.createElement("span",{className:"".concat(n,"-selection-search")},z.createElement(eP,{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){O(!0),w(e)},onPaste:x,onCompositionStart:S,onCompositionEnd:k,tabIndex:p,attrs:ik(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 cP=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=ym(Tj(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!==bk.UP&&n!==bk.DOWN||e.preventDefault(),p&&p(e),n!==bk.ENTER||"tags"!==i||r.current||a||null==d||d(e.target.value),t=n,[bk.ESC,bk.SHIFT,bk.BACKSPACE,bk.TAB,bk.WIN_KEY,bk.ALT,bk.META,bk.WIN_KEY_RIGHT,bk.CTRL,bk.SEMICOLON,bk.EQUALS,bk.CAPS_LOCK,bk.CONTEXT_MENU,bk.F1,bk.F2,bk.F3,bk.F4,bk.F5,bk.F6,bk.F7,bk.F8,bk.F9,bk.F10,bk.F11,bk.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(sP,tg({},e,w)):z.createElement(lP,tg({},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)},uP=z.forwardRef(cP);function dP(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:Zb("".concat(t,"-arrow"),i),style:p},s)}function fP(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?z.createElement(rS,tg({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return z.createElement("div",{style:{zIndex:r},className:Zb("".concat(t,"-mask"),n)})})):null}uP.displayName="Selector";var pP=z.memo((function(e){return e.children}),(function(e,t){return t.cache})),hP=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,D=e.ready,O=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=ym(z.useState(!y||!M),2),B=L[0],H=L[1];if(Tm((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(D||!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=O,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(fP,{prefixCls:o,open:l,zIndex:S,mask:f,motion:b}),z.createElement(sy,{onResize:_,disabled:!l},(function(e){return z.createElement(rS,tg({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=Zb(o,s,r);return z.createElement("div",{ref:kv(e,t,i),className:f,style:Bg(Bg(Bg(Bg({"--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(dP,{prefixCls:o,arrow:p,arrowPos:h,align:g}),z.createElement(pP,{cache:!l&&!u},F))}))})))})),gP=z.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ev(n),a=Cv(z.useCallback((function(e){Sv(t,r?r(e):e)}),[r]),n.ref);return o?z.cloneElement(n,{ref:a}):n})),mP=z.createContext(null);function bP(e){return e?Array.isArray(e)?e:[e]:[]}function vP(){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 yP(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function wP(e){return e.ownerDocument.defaultView}function xP(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=wP(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 SP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function kP(e){return SP(parseFloat(e),0)}function CP(e,t){var n=Bg({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=wP(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=kP(a),g=kP(i),m=kP(s),b=kP(l),v=SP(Math.round(c.width/f*1e3)/1e3),y=SP(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,D=0,O=0;if("clip"===r){var $=kP(o);D=$*v,O=$*y}var j=c.x+C-D,P=c.y+S-O,_=j+c.width+2*D-C-E-w,N=P+c.height+2*O-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 EP(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 DP(e,t){var n=ym(t||[],2),r=n[0],o=n[1];return[EP(e.width,r),EP(e.height,o)]}function OP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function $P(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 jP(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 PP=["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 _P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:YE,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,D=t.popup,O=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=Hf(t,PP),Q=C||E||!1,J=ym(z.useState(!1),2),Z=J[0],ee=J[1];Tm((function(){ee(_j())}),[]);var te=z.useRef({}),ne=z.useContext(mP),re=z.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=eD(),ae=ym(z.useState(null),2),ie=ae[0],se=ae[1],le=ex((function(e){wv(e)&&ie!==e&&se(e),null==ne||ne.registerSubPopup(oe,e)})),ce=ym(z.useState(null),2),ue=ce[0],de=ce[1],fe=z.useRef(null),pe=ex((function(e){wv(e)&&ue!==e&&(de(e),fe.current=e)})),he=z.Children.only(a),ge=(null==he?void 0:he.props)||{},me={},be=ex((function(e){var t,n,r=ue;return(null==r?void 0:r.contains(e))||(null===(t=$S(r))||void 0===t?void 0:t.host)===e||e===r||(null==ie?void 0:ie.contains(e))||(null===(n=$S(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=yP(o,H,V,U),ye=yP(o,W,q,G),we=ym(z.useState(d||!1),2),xe=we[0],Se=we[1],ke=null!=u?u:xe,Ce=ex((function(e){void 0===u&&Se(e)}));Tm((function(){Se(u||!1)}),[u]);var Ee=z.useRef(ke);Ee.current=ke;var De=z.useRef([]);De.current=[];var Oe=ex((function(e){var t;Ce(e),(null!==(t=De.current[De.current.length-1])&&void 0!==t?t:ke)!==e&&(De.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?Oe(e):$e.current=setTimeout((function(){Oe(e)}),1e3*t)};z.useEffect((function(){return je}),[]);var _e=ym(z.useState(!1),2),Ne=_e[0],Ie=_e[1];Tm((function(e){e&&!ke||Ie(!0)}),[ke]);var Te=ym(z.useState(null),2),Ae=Te[0],Fe=Te[1],Re=ym(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=ym(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?xP(t):[]}),[t]),f=z.useRef({});e||(f.current={});var p=ex((function(){if(t&&n&&e){let e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=O.x+e,o=O.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=O.y+ve,se=ie+A,le=O.x+be,ce=le+F};var s,l,u,p=t,h=p.ownerDocument,g=wP(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=Bg(Bg({},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 D=n.getBoundingClientRect();u={x:D.x,y:D.y,width:D.width,height:D.height}}var O=p.getBoundingClientRect(),$=h.documentElement,j=$.clientWidth,P=$.clientHeight,_=$.scrollWidth,N=$.scrollHeight,I=$.scrollTop,T=$.scrollLeft,A=O.height,F=O.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=CP(B,d),G=CP(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=SP(Math.round(F/parseFloat(m)*1e3)/1e3),Q=SP(Math.round(A/parseFloat(b)*1e3)/1e3);if(0===Y||0===Q||wv(n)&&!wC(n))return;var J=C.offset,Z=C.targetOffset,ee=ym(DP(O,J),2),te=ee[0],ne=ee[1],re=ym(DP(u,Z),2),oe=re[0],ae=re[1];u.x-=oe,u.y-=ae;var ie,se,le,ce,ue=ym(C.points||[],2),de=ue[0],fe=OP(ue[1]),pe=OP(de),he=$P(u,fe),ge=$P(O,pe),me=Bg({},C),be=he.x-ge.x+te,ve=he.y-ge.y+ne,ye=e(be,ve),we=e(be,ve,G),xe=$P(u,["t","l"]),Se=$P(O,["t","l"]),ke=$P(u,["b","r"]),Ce=$P(O,["b","r"]),Ee=C.overflow||{},De=Ee.adjustX,Oe=Ee.adjustY,$e=Ee.shiftX,je=Ee.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};st();var _e=Pe(Oe),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=[jP(pe,0),jP(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=[jP(pe,0),jP(fe,0)]):f.current.tb=!1}var Le=Pe(De),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=[jP(pe,1),jP(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=[jP(pe,1),jP(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=O.x+be,Ye=Xe+F,Qe=O.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-O.x-(be+O.width),it=X.bottom-O.y-(ve+O.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 Bg(Bg({},e),{},{ready:!1})}))};return Tm(h,[r]),Tm((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=ym(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=bP(null!=n?n:t),a=bP(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=ym(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),at=rt.has("click")||rt.has("contextMenu"),it=ex((function(){Ne||Ze()}));!function(e,t,n,r,o){Tm((function(){if(e&&t&&n){let e=function(){r(),o()};var a=n,i=xP(t),s=xP(a),l=wP(a),c=new Set([l].concat(Mg(i),Mg(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)})),Tm((function(){it()}),[Me,j]),Tm((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(vP(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(_,o,Je,R);return Zb(e,null==A?void 0:A(Je))}),[Je,A,_,o,R]);z.useImperativeHandle(n,(function(){return{nativeElement:fe.current,forceAlign:it}}));var lt=ym(z.useState(0),2),ct=lt[0],ut=lt[1],dt=ym(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))}}Tm((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=hy((function(){c.current=!1}));return function(){hy.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=ym(e(),2),d=u[0],f=u[1],p=ym(e(),2),h=p[0],g=p[1],m=wP(r);m.addEventListener("mousedown",d,!0),m.addEventListener("click",f,!0),m.addEventListener("contextmenu",f,!0);var b=$S(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=Zb(ge.className,K));var wt=Bg(Bg({},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,Bg(Bg({},wt),xt)),kt={x:Ke,y:Xe},Ct=B?Bg({},!0!==B?B:{}):null;return z.createElement(z.Fragment,null,z.createElement(sy,{disabled:!ke,ref:pe,onResize:function(){ht(),it()}},z.createElement(gP,{getTriggerDOMNode:X},St)),z.createElement(mP.Provider,{value:re},z.createElement(hP,{portal:e,ref:le,prefixCls:o,popup:D,className:Zb(O,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}(YE);var NP=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],IP=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=Hf(e,NP),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]),D=i?"".concat(k,"-").concat(i):s,O="number"==typeof h,$=z.useMemo((function(){return O?null:!1===h?"minWidth":"width"}),[h,O]),j=l;O&&(j=Bg(Bg({},j),{},{width:h}));var P=z.useRef(null);return z.useImperativeHandle(t,(function(){return{getPopupElement:function(){return P.current}}})),z.createElement(_P,tg({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:k,popupTransitionName:D,popup:z.createElement("div",{ref:P,onMouseEnter:x},C),stretch:$,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:Zb(c,zf({},"".concat(k,"-empty"),v)),popupStyle:j,getTriggerDOMNode:y,onPopupVisibleChange:w}),o)},TP=z.forwardRef(IP);function AP(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 FP(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 RP(e){var t=Bg({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return qg(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}TP.displayName="SelectTrigger";var MP=["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"],LP=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function BP(e){return"tags"===e||"multiple"===e}var zP=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,D=e.onActiveValueChange,O=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=Hf(e,MP),re=BP(b),oe=(void 0!==s?s:re)||"combobox"===b,ae=Bg({},ne);LP.forEach((function(e){delete ae[e]})),null==u||u.forEach((function(e){delete ae[e]}));var ie=ym(z.useState(!1),2),se=ie[0],le=ie[1];z.useEffect((function(){le(_j())}),[]);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=ym(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=ym(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=Cv(ue,null==Se||null===(n=Se.props)||void 0===n?void 0:n.ref),Ce=ym(z.useState(!1),2),Ee=Ce[0],De=Ce[1];Tm((function(){De(!0)}),[]);var Oe=ym(rx(!1,{defaultValue:k,value:S}),2),$e=Oe[0],je=Oe[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==D||D(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=my(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(Mg(t),Mg(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=ym(Tj(),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=ym(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 Bg(Bg({},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(Nj,{className:Zb("".concat(a,"-arrow"),zf({},"".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"===Lf(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(Nj,{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=Zb(a,i,(zf(r={},"".concat(a,"-focused"),be),zf(r,"".concat(a,"-multiple"),re),zf(r,"".concat(a,"-single"),!re),zf(r,"".concat(a,"-allow-clear"),I),zf(r,"".concat(a,"-show-arrow"),Ve),zf(r,"".concat(a,"-disabled"),v),zf(r,"".concat(a,"-loading"),y),zf(r,"".concat(a,"-open"),Pe),zf(r,"".concat(a,"-customize-input"),xe),zf(r,"".concat(a,"-show-search"),oe),r)),Je=z.createElement(TP,{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(uP,tg({},e,{domRef:ue,prefixCls:a,inputElement:xe,ref:fe,id:o,showSearch:oe,autoClearSearchValue:j,mode:b,activeDescendantId:O,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",tg({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===bk.ENTER&&("combobox"!==b&&e.preventDefault(),Pe||Ie(!0)),Me(!!we),r===bk.BACKSPACE&&!n&&re&&!we&&d.length){for(var o=Mg(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(Lf(t))?t:n})).join(", "))),Je,We,Ke&&Xe),z.createElement(Ij.Provider,{value:Ue},Ge)})),HP=function(){return null};HP.isSelectOptGroup=!0;var WP=function(){return null};WP.isSelectOption=!0;var UP=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=Bg(Bg({},p),{},(zf(n={transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-a),zf(n,"position","absolute"),zf(n,"left",0),zf(n,"right",0),zf(n,"top",0),n)));return z.createElement("div",{style:f},z.createElement(sy,{onResize:function(e){e.offsetHeight&&l&&l()}},z.createElement("div",tg({style:p,className:Zb(zf({},"".concat(s,"-holder-inner"),s)),ref:t},c),i,d)))}));function VP(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}UP.displayName="Filler";var GP=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=ym(z.useState(!1),2),m=g[0],b=g[1],v=ym(z.useState(null),2),y=v[0],w=v[1],x=ym(z.useState(null),2),S=x[0],k=x[1],C=!o,E=z.useRef(),D=z.useRef(),O=ym(z.useState(!1),2),$=O[0],j=O[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(VP(e,u)),k(F.current.top),s(),e.stopPropagation(),e.preventDefault()};z.useEffect((function(){var e=function(e){e.preventDefault()},t=E.current,n=D.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(hy.cancel(e),r){var i=VP(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=hy((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),hy.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:Zb(B,(n={},zf(n,"".concat(B,"-horizontal"),u),zf(n,"".concat(B,"-vertical"),!u),zf(n,"".concat(B,"-visible"),$),n)),style:Bg(Bg({},H),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:_},z.createElement("div",{ref:D,className:Zb("".concat(B,"-thumb"),zf({},"".concat(B,"-thumb-moving"),m)),style:Bg(Bg({},W),h),onMouseDown:R}))}));function qP(e){var t=e.children,n=e.setRef,r=z.useCallback((function(e){n(e)}),[]);return z.cloneElement(t,{ref:r})}var KP=function(){function e(){vp(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return wp(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 XP=10;function YP(e,t,n){var r=ym(z.useState(e),2),o=r[0],a=r[1],i=ym(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 QP="object"===("undefined"==typeof navigator?"undefined":Lf(navigator))&&/Firefox/i.test(navigator.userAgent);const JP=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 ZP(e,t,n,r,o){var a=z.useRef(0),i=z.useRef(null),s=z.useRef(null),l=z.useRef(!1),c=JP(t,n);var u=z.useRef(null),d=z.useRef(null);return[function(t){if(e){hy.cancel(d.current),d.current=hy((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){hy.cancel(i.current),a.current+=t,s.current=t,c(t)||(QP||e.preventDefault(),i.current=hy((function(){var e=l.current?10:1;o(a.current*e),a.current=0})))}(t,g):function(e,t){o(t,!0),QP||e.preventDefault()}(t,h)}},function(t){e&&(l.current=t.detail===s.current)}]}var e_=14/15;var t_=20;function n_(){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,t_),t=Math.min(t,e/2),Math.floor(t)}var r_=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],o_=[],a_={overflowY:"auto",overflowAnchor:"none"};function i_(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=Hf(e,r_),E=!(!1===p||!a||!i),D=E&&u&&(i*u.length>a||!!g),O="rtl"===h,$=Zb(r,zf({},"".concat(r,"-rtl"),O),o),j=u||o_,P=z.useRef(),_=z.useRef(),N=ym(z.useState(0),2),I=N[0],T=N[1],A=ym(z.useState(0),2),F=A[0],R=A[1],M=ym(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=ym(YP(j,U),1)[0];K.current=X;var Y=function(e,t,n){var r=ym(z.useState(0),2),o=r[0],a=r[1],i=z.useRef(new Map),s=z.useRef(new KP),l=z.useRef();function c(){hy.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=xv(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=hy(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=ym(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(!D)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}}),[D,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=ym(z.useState({width:0,height:a}),2),le=se[0],ce=se[1],ue=z.useRef(),de=z.useRef(),fe=z.useMemo((function(){return n_(le.width,g)}),[le.width,g]),pe=z.useMemo((function(){return n_(le.height,re)}),[le.height,re]),he=re-a,ge=z.useRef(he);ge.current=he;var me=I<=0,be=I>=he,ve=JP(me,be),ye=function(){return{x:O?-F:F,y:I}},we=z.useRef(ye()),xe=ex((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=ex((function(e,t){t?(ad.flushSync((function(){R((function(t){return ke(t+(O?-e:e))}))})),xe()):G((function(t){return t+e}))})),Ee=ym(ZP(E,me,be,!!g,Ce),2),De=Ee[0],Oe=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*=e_,!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))},Tm((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)&&(De({preventDefault:function(){},deltaY:e}),!0)})),Tm((function(){function e(e){E&&e.preventDefault()}var t=P.current;return t.addEventListener("wheel",De),t.addEventListener("DOMMouseScroll",Oe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",De),t.removeEventListener("DOMMouseScroll",Oe),t.removeEventListener("MozMousePixelScroll",e)}}),[E]),Tm((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=ym(z.useState(null),2),u=c[0],d=c[1];return Tm((function(){if(u&&u.times<XP){if(!e.current)return void d((function(e){return Bg({},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,D=x;D>=0;D-=1){var O=o(t[D]),$=n.get(O);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(Bg(Bg({},u),{},{times:u.times+1,targetAlign:g,lastTop:m}))}}),[u,e.current]),function(e){if(null!=e){if(hy.cancel(l.current),"number"==typeof e)i(e);else if(e&&"object"===Lf(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"===Lf(t)&&("left"in t||"top"in t)?(void 0!==e.left&&R(ke(e.left)),je(e.top)):je(e)}}})),Tm((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=ym(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:D,offsetX:F,offsetY:ie,rtl:O,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(qP,{key:l,setRef:function(t){return o(e,t)}},i)}))}(j,oe,ae,g,J,d,V),Ie=null;a&&(Ie=Bg(zf({},l?"height":"maxHeight",a),a_),E&&(Ie.overflowY="hidden",g&&(Ie.overflowX="hidden"),L&&(Ie.pointerEvents="none")));var Te={};return O&&(Te.dir="rtl"),z.createElement("div",tg({style:Bg(Bg({},c),{},{position:"relative"}),className:$},Te,C),z.createElement(sy,{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(UP,{prefixCls:r,height:re,offsetX:F,offsetY:ie,scrollWidth:g,onInnerResize:Z,ref:_,innerProps:x,rtl:O,extra:_e},Ne))),D&&re>a&&z.createElement(GP,{ref:ue,prefixCls:r,scrollOffset:I,scrollRange:re,rtl:O,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}),D&&g&&z.createElement(GP,{ref:de,prefixCls:r,scrollOffset:F,scrollRange:g,rtl:O,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 s_=z.forwardRef(i_);s_.displayName="List";var l_=z.createContext(null);var c_=["disabled","title","children","style","className"];function u_(e){return"string"==typeof e||"number"==typeof e}var d_=function(e,t){var n=z.useContext(Ij),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(l_),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"),D=Hg((function(){return p}),[a,p],(function(e,t){return t[0]&&e[1]!==t[1]})),O=z.useRef(null),$=function(e){e.preventDefault()},j=function(e){O.current&&O.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=D.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,a=D[o],i=a.group,s=a.data;if(!i&&!s.disabled)return o}return-1},_=ym(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=D[e];r?h(r.value,e,n):h(null,-1,n)};z.useEffect((function(){T(!1!==g?P(0):-1)}),[D.length,l]);var A=z.useCallback((function(e){return v.has(e)&&"combobox"!==s}),[s,Mg(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=D.findIndex((function(t){return t.data.value===e}));-1!==t&&(T(t),j(t))}}));a&&(null===(e=O.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 bk.N:case bk.P:case bk.UP:case bk.DOWN:var r=0;if(t===bk.UP?r=-1:t===bk.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===bk.N?r=1:t===bk.P&&(r=-1)),0!==r){var o=P(N+r,r);j(o),T(o,!0)}break;case bk.ENTER:var i=D[N];i&&!i.data.disabled?F(i.value):F(void 0),a&&e.preventDefault();break;case bk.ESC:c(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===D.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=D[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,a=ik(n,!0),i=M(t);return t?z.createElement("div",tg({"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",tg({},H,{style:{height:0,width:0,overflow:"hidden"}}),B(N-1),B(N),B(N+1)),z.createElement(s_,{itemKey:"key",ref:O,data:D,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:u_(i)?i.toString():void 0;return z.createElement("div",{className:Zb(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=ly(Hf(a,c_),R),m=A(s),v="".concat(E,"-option"),y=Zb(E,v,h,(zf(n={},"".concat(v,"-grouped"),o),zf(n,"".concat(v,"-active"),N===t&&!d),zf(n,"".concat(v,"-disabled"),d),zf(n,"".concat(v,"-selected"),m),n)),x=M(e),S=!b||"function"==typeof b||m,k="number"==typeof x?x:x||s,D=u_(k)?k.toString():void 0;return void 0!==f&&(D=f),z.createElement("div",tg({},ik(g),w?{}:L(e,t),{"aria-selected":m,className:y,title:D,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(Nj,{className:"".concat(E,"-option-state"),customizeIcon:b,customizeIconProps:{value:s,disabled:d,isSelected:m}},m?"✓":null))})))},f_=z.forwardRef(d_);f_.displayName="OptionList";function p_(e,t){return tP(e).join("").toUpperCase().includes(t)}var h_=0,g_=om();function m_(e){var t=ym(z.useState(),2),n=t[0],r=t[1];return z.useEffect((function(){var e;r("rc_select_".concat((g_?(e=h_,h_+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var b_=["children","value"],v_=["children"];function y_(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return yv(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=Hf(i,v_);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value;return Bg({key:n,value:void 0!==a?a:n,children:o},Hf(r,b_))}(e):Bg(Bg({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},l),{},{options:y_(s)})})).filter((function(e){return e}))}function w_(e){var t=z.useRef();t.current=e;var n=z.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var x_=["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"],S_=["inputValue"];var k_=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,D=e.virtual,O=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=Hf(e,x_),R=m_(n),M=BP(r),L=!(x||!k),B=z.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),H=z.useMemo((function(){return FP(s,L)}),[JSON.stringify(s),L]),W=ym(rx("",{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=y_(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 tP(e).map((function(e){var t,n,r,o,a,i;(function(e){return!e||"object"!==Lf(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=ym(rx(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?Bg(Bg({},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=ym(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 Bg(Bg({},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=w_((function(e,t){var n,r=null!=t?t:e;return zf(n={},H.value,e),zf(n,H.label,r),n})),le=z.useMemo((function(){if("tags"!==r)return X;var e=Mg(X);return Mg(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?p_(t[o],u):t[a]?p_(t["children"!==i?i:"label"],u):p_(t[s],u)},f=c?function(e){return RP(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(Bg(Bg({},e),{},zf({},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(Mg(ce))}),[se,y,r,ce,U,H]),de=z.useMemo((function(){return v?Mg(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=FP(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:AP(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:AP(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 RP(oe(e.value))}));A(M?n:n[0],M?r:r[0])}},he=ym(z.useState(null),2),ge=he[0],me=he[1],be=ym(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,RP(n)]};if(t&&p){var o=ym(r(),2),a=o[0],i=o[1];p(a,i)}else if(!t&&h&&"clear"!==n){var s=ym(r(),2),l=s[0],c=s[1];h(l,c)}},ke=w_((function(e,t){var n,o=!M||t.selected;n=o?M?[].concat(Mg(re),[e]):[e]:re.filter((function(t){return t.value!==e})),pe(n),Se(e,o),"combobox"===r?me(""):BP&&!f||(V(""),me(""))})),Ce=z.useMemo((function(){var e=!1!==D&&!1!==m;return Bg(Bg({},G),{},{flattenOptions:fe,onActiveValue:xe,defaultActiveFirstOption:we,onSelect:ke,menuItemSelectedIcon:E,rawValues:ie,fieldNames:H,virtual:e,direction:O,listHeight:j,listItemHeight:_,childrenAsData:L,optionRender:S})}),[G,fe,xe,we,ke,E,ie,H,D,m,j,_,L,S]);return z.createElement(l_.Provider,{value:Ce},z.createElement(zP,tg({},F,{id:R,prefixCls:a,ref:t,omitDomProps:S_,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:O,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(Mg(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(Mg(ie),Mg(t))));pe(n),n.forEach((function(e){Se(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:f_,emptyOptions:!fe.length,activeValue:ge,activeDescendantId:"".concat(R,"_list_").concat(ve)})))})),C_=k_;function E_(e,t,n){return Zb({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}C_.Option=WP,C_.OptGroup=HP;const D_=(e,t)=>t||e,O_=()=>{const[,e]=Zw(),t=new nw(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"}))))},$_=()=>{const[,e]=Zw(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=z.useMemo((()=>({borderColor:new nw(t).onBackground(o).toHexShortString(),shadowColor:new nw(n).onBackground(o).toHexShortString(),contentColor:new nw(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}))))},j_=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}}}}},P_=bx("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=px(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[j_(r)]}));var __=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 N_=z.createElement(O_,null),I_=z.createElement($_,null),T_=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=N_,description:a,children:i,imageStyle:s,style:l}=e,c=__(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=z.useContext(Fw),p=u("empty",r),[h,g]=P_(p),[m]=Fy("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:Zb(g,p,null==f?void 0:f.className,{[`${p}-normal`]:o===I_,[`${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)))};T_.PRESENTED_IMAGE_DEFAULT=N_,T_.PRESENTED_IMAGE_SIMPLE=I_;const A_=T_,F_=e=>{const{componentName:t}=e,{getPrefixCls:n}=z.useContext(Fw),r=n("empty");switch(t){case"Table":case"List":return H.createElement(A_,{image:A_.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return H.createElement(A_,{image:A_.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return H.createElement(A_,null)}},R_=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"}},M_=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({},ix(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:QO},[`\n ${o}${s}topLeft,\n ${a}${s}topLeft,\n ${o}${s}topRight,\n ${a}${s}topRight\n `]:{animationName:ZO},[`${i}${s}bottomLeft`]:{animationName:JO},[`\n ${i}${s}topLeft,\n ${i}${s}topRight\n `]:{animationName:e$},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},R_(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"},ax),"&-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"}})},i$(e,"slide-up"),i$(e,"slide-down"),YO(e,"move-up"),YO(e,"move-down")]},L_=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function B_(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=L_(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 z_=e=>{const{componentCls:t}=e,n=px(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=px(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=L_(e);return[B_(e),B_(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},B_(r,"lg")]};function H_(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({},ix(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 W_(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[H_(e),H_(px(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}}}},H_(px(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const U_=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"}}}},V_=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}})}}},G_=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"}}}},q_=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},ix(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},U_(e)),G_(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ax),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ax),{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}}}},K_=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%"}}},q_(e),W_(e),z_(e),M_(e),{[`${t}-rtl`]:{direction:"rtl"}},V_(t,px(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),V_(`${t}-status-error`,px(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),V_(`${t}-status-warning`,px(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),OE(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},X_=bx("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=px(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[K_(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 Y_(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 Q_={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 J_=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:Q_}))};const Z_=z.forwardRef(J_);const eN={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 tN=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:eN}))};const nN=z.forwardRef(tN);const rN={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 oN=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:rN}))};const aN=z.forwardRef(oN);var iN=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 sN="SECRET_COMBOBOX_MODE_DO_NOT_USE",lN=(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=iN(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:D,renderEmpty:O,direction:$,virtual:j,popupMatchSelectWidth:P,popupOverflow:_,select:N}=z.useContext(Fw),I=D("select",o),T=D(),A=null!=x?x:$,{compactSize:F,compactItemClassnames:R}=FC(I,A),[M,L]=X_(I),B=z.useMemo((()=>{const{mode:e}=C;if("combobox"!==e)return e===sN?"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($O),X=D_(V,b);let Y;Y=void 0!==m?m:"combobox"===B?null:(null==O?void 0:O("Select"))||z.createElement(F_,{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(GS,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(Pk,{spin:!0}));else{const e=`${l}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return h(n&&r?z.createElement(aN,{className:e}):z.createElement(nN,{className:e}))}}let m=null;m=void 0!==r?r:i?z.createElement(Z_,null):null;let b=null;return b=void 0!==o?o:z.createElement(XS,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=ly(C,["suffixIcon","itemIcon"]),re=Zb(c||u,{[`${I}-dropdown-${A}`]:"rtl"===A},s,L),oe=jC((e=>{var t;return null!==(t=null!=h?h:F)&&void 0!==t?t:e})),ae=z.useContext(zw),ie=null!=g?g:ae,se=Zb({[`${I}-lg`]:"large"===oe,[`${I}-sm`]:"small"===oe,[`${I}-rtl`]:"rtl"===A,[`${I}-borderless`]:!a,[`${I}-in-form-item`]:q},E_(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=Y_(v,_),[ue]=Fk("SelectLike",null===(r=C.dropdownStyle)||void 0===r?void 0:r.zIndex);return M(z.createElement(C_,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:yC(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})})))},cN=z.forwardRef(lN),uN=function(e,t,n,r){return Pj((function(o){const{prefixCls:a,style:i}=o,s=z.useRef(null),[l,c]=z.useState(0),[u,d]=z.useState(0),[f,p]=rx(!1,{value:o.open}),{getPrefixCls:h}=z.useContext(Fw),g=h(t||"select",a);z.useEffect((()=>{if(p(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;c(t.offsetHeight+8),d(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(g)}`:`.${g}-dropdown`,a=null===(r=s.current)||void 0===r?void 0:r.querySelector(o);a&&(clearInterval(t),e.observe(a))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let m=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},i),{margin:0}),open:f,visible:f,getPopupContainer:()=>s.current});return r&&(m=r(m)),z.createElement("div",{ref:s,style:{paddingBottom:l,position:"relative",minWidth:u}},z.createElement(e,Object.assign({},m)))}))}(cN);cN.SECRET_COMBOBOX_MODE_DO_NOT_USE=sN,cN.Option=WP,cN.OptGroup=HP,cN._InternalPanelDoNotUseOrYouWillBeFired=uN;const dN=cN,fN=["xxl","xl","lg","md","sm","xs"],pN=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)`}),hN=e=>{const t=e,n=[].concat(fN).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 gN(){const[,e]=Zw(),t=pN(hN(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 mN(){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=gN();return Tm((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}function bN(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:Zb("".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 vN={shiftX:64,adjustY:1},yN={adjustX:1,shiftY:!0},wN=[0,0],xN={left:{points:["cr","cl"],overflow:yN,offset:[-4,0],targetOffset:wN},right:{points:["cl","cr"],overflow:yN,offset:[4,0],targetOffset:wN},top:{points:["bc","tc"],overflow:vN,offset:[0,-4],targetOffset:wN},bottom:{points:["tc","bc"],overflow:vN,offset:[0,4],targetOffset:wN},topLeft:{points:["bl","tl"],overflow:vN,offset:[0,-4],targetOffset:wN},leftTop:{points:["tr","tl"],overflow:yN,offset:[-4,0],targetOffset:wN},topRight:{points:["br","tr"],overflow:vN,offset:[0,-4],targetOffset:wN},rightTop:{points:["tl","tr"],overflow:yN,offset:[4,0],targetOffset:wN},bottomRight:{points:["tr","br"],overflow:vN,offset:[0,4],targetOffset:wN},rightBottom:{points:["bl","br"],overflow:yN,offset:[4,0],targetOffset:wN},bottomLeft:{points:["tl","bl"],overflow:vN,offset:[0,4],targetOffset:wN},leftBottom:{points:["br","bl"],overflow:yN,offset:[-4,0],targetOffset:wN}},SN=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],kN=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,D=e.overlayInnerStyle;e.arrowContent;var O=e.overlay,$=e.id,j=e.showArrow,P=void 0===j||j,_=Hf(e,SN),N=z.useRef(null);z.useImperativeHandle(t,(function(){return N.current}));var I=Bg({},_);"visible"in e&&(I.popupVisible=e.visible);return z.createElement(_P,tg({popupClassName:n,prefixCls:d,popup:function(){return z.createElement(bN,{key:"content",prefixCls:d,id:$,overlayInnerStyle:D},O)},action:o,builtinPlacements:xN,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 CN=z.forwardRef(kN),EN=8;function DN(e){const t=EN,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function ON(e,t){return e?t:{}}function $N(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}=DN({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"},ox(r,o,a,s,i)),{"&:before":{background:s}})]},ON(!!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}}})),ON(!!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}}})),ON(!!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}})),ON(!!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 jN={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"]}},PN={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"]}},_N=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function NN(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(jN).forEach((e=>{const c=r&&PN[e]||jN[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,_N.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=DN({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 IN=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({},ix(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,EN)}},[`${t}-content`]:{position:"relative"}}),yx(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},$N(px(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},TN=(e,t)=>bx("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:a}=e,i=px(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:a>4?4:a});return[IN(i),w$(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),AN=Vw.map((e=>`${e}-inverse`)),FN=["success","processing","error","default","warning"];function RN(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Mg(AN),Mg(Vw)).includes(e):Vw.includes(e)}function MN(e,t){const n=RN(t),r=Zb({[`${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 LN=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=z.useContext(Fw),l=s("tooltip",t),[c,u]=TN(l,!0),d=MN(l,a),f=d.arrowStyle,p=Object.assign(Object.assign({},i),d.overlayStyle),h=Zb(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(bN,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),o)))};var BN=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=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]=Zw(),{getPopupContainer:S,getPrefixCls:k,direction:C}=z.useContext(Fw),E=Ey(),D=z.useRef(null),O=()=>{var e;null===(e=D.current)||void 0===e||e.forceAlign()};z.useImperativeHandle(t,(()=>({forceAlign:O,forcePopupAlign:()=>{E.deprecated(!1,"forcePopupAlign","forceAlign"),O()}})));const[$,j]=rx(!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||NN({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(RC,null,"function"==typeof N?N():N),{getPopupContainer:T,placement:A="top",mouseEnterDelay:F=.1,mouseLeaveDelay:R=.1,overlayStyle:M,rootClassName:L}=e,B=BN(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=sk(u)&&!lk(u)?u:z.createElement("span",null,u),q=G.props,K=q.className&&"string"!=typeof q.className?q.className:Zb(q.className,a||`${H}-open`),[X,Y]=TN(H,!U),Q=MN(H,l),J=Q.arrowStyle,Z=Object.assign(Object.assign({},c),Q.overlayStyle),ee=Zb(s,{[`${H}-rtl`]:"rtl"===C},Q.className,L,Y),[te,ne]=Fk("Tooltip",B.zIndex),re=z.createElement(CN,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:D,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:yC(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),V?ck(G,{className:K}):G);return X(z.createElement(_k.Provider,{value:ne},re))}));zN._InternalPanelDoNotUseOrYouWillBeFired=LN;const HN=zN;const WN={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 UN=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:WN}))};const VN=z.forwardRef(UN);var GN=bk.ESC,qN=bk.TAB;var KN=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=kv(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:Ev(a)?i:void 0}))})),XN={adjustX:1,adjustY:1},YN=[0,0],QN={topLeft:{points:["bl","tl"],overflow:XN,offset:[0,-4],targetOffset:YN},top:{points:["bc","tc"],overflow:XN,offset:[0,-4],targetOffset:YN},topRight:{points:["br","tr"],overflow:XN,offset:[0,-4],targetOffset:YN},bottomLeft:{points:["tl","bl"],overflow:XN,offset:[0,4],targetOffset:YN},bottom:{points:["tc","bc"],overflow:XN,offset:[0,4],targetOffset:YN},bottomRight:{points:["tr","br"],overflow:XN,offset:[0,4],targetOffset:YN}},JN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ZN(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?QN: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,D=Hf(e,JN),O=ym(H.useState(),2),$=O[0],j=O[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 GN:s();break;case qN:var t=!1;i.current||(t=l()),t?e.preventDefault():s()}};z.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&hy(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(KN,{ref:N,overlay:k,prefixCls:i,arrow:o})},L=H.cloneElement(C,{className:Zb(null===(n=C.props)||void 0===n?void 0:n.className,P&&(A=e.openClassName,void 0!==A?A:"".concat(i,"-open"))),ref:Ev(C)?kv(I,C.ref):void 0}),B=m;return B||-1===x.indexOf("contextMenu")||(B=["click"]),H.createElement(_P,tg({builtinPlacements:p},D,{prefixCls:i,ref:_,popupClassName:Zb(b,zf({},"".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 eI=H.forwardRef(ZN);var tI=z.createContext(null);function nI(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function rI(e){return nI(z.useContext(tI),e)}var oI=["children","locked"],aI=z.createContext(null);function iI(e){var t=e.children,n=e.locked,r=Hf(e,oI),o=z.useContext(aI),a=Hg((function(){return e=r,t=Bg({},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]&&Kg(e[1],t[1],!0))}));return z.createElement(aI.Provider,{value:a},t)}var sI=[],lI=z.createContext(null);function cI(){return z.useContext(lI)}var uI=z.createContext(sI);function dI(e){var t=z.useContext(uI);return z.useMemo((function(){return void 0!==e?[].concat(Mg(t),[e]):t}),[t,e])}var fI=z.createContext(null),pI=z.createContext({});function hI(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(wC(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 gI=bk.LEFT,mI=bk.RIGHT,bI=bk.UP,vI=bk.DOWN,yI=bk.ENTER,wI=bk.ESC,xI=bk.HOME,SI=bk.END,kI=[bI,vI,gI,mI];function CI(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Mg(e.querySelectorAll("*")).filter((function(e){return hI(e,t)}));return hI(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function EI(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=CI(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 DI(e,t,n,r,o,a,i,s,l,c){var u=z.useRef(),d=z.useRef();d.current=t;var f=function(){hy.cancel(u.current)};return z.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(kI,[yI,wI,xI,SI]).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(nI(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===yI)return{inlineTrigger:!0};var f=(zf(o={},bI,l),zf(o,vI,c),o),p=(zf(a={},gI,n?c:l),zf(a,mI,n?l:c),zf(a,vI,u),zf(a,yI,u),a),h=(zf(i={},bI,l),zf(i,vI,c),zf(i,yI,u),zf(i,wI,d),zf(i,gI,n?u:d),zf(i,mI,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!==xI&&h!==SI)return;(kI.includes(h)||[xI,SI].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=hy((function(){d.current===r&&t.focus()}))}};if([xI,SI].includes(h)||x.sibling||!y){var k,C,E=CI(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===xI?E[0]:h===SI?E[E.length-1]:EI(k,g,y,x.offset),S(C)}else if(x.inlineTrigger)l(w);else if(x.offset>0)l(w,!0),f(),u.current=hy((function(){v();var e=y.getAttribute("aria-controls"),t=EI(document.getElementById(e),g);S(t)}),5);else if(x.offset<0){var D=i(w,!0),O=D[D.length-2],$=m.get(O);l(O,!1),S($)}}null==c||c(p)}}var OI="__RC_UTIL_PATH_SPLIT__",$I=function(e){return e.join(OI)},jI="rc-menu-more";function PI(){var e=ym(z.useState({}),2)[1],t=z.useRef(new Map),n=z.useRef(new Map),r=ym(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=$I(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=$I(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(OI);return n&&o.includes(a[0])&&a.unshift(jI),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(OI),o=new Set;return Mg(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=Mg(t.current.keys());return o.length&&e.push(jI),e},getSubPathKeys:p}}function _I(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 NI=Math.random().toFixed(5).toString().slice(2),II=0;function TI(e,t,n,r){var o=z.useContext(aI),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 AI(e){var t=z.useContext(aI),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function FI(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,Bg({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var RI=["item"];function MI(e){var t=e.item,n=Hf(e,RI);return Object.defineProperty(n,"item",{get:function(){return qg(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var LI=["title","attribute","elementRef"],BI=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],zI=["active"],HI=function(e){Jv(n,z.Component);var t=ny(n);function n(){return vp(this,n),t.apply(this,arguments)}return wp(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=ly(Hf(e,LI),["eventKey","popupClassName","popupOffset","onTitleClick"]);return qg(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),z.createElement(Jj.Item,tg({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(),WI=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=Hf(e,BI),m=rI(a),b=z.useContext(aI),v=b.prefixCls,y=b.onItemClick,w=b.disabled,x=b.overflowDisabled,S=b.itemIcon,k=b.selectedKeys,C=b.onActive,E=z.useContext(pI)._internalRenderMenuItem,D="".concat(v,"-item"),O=z.useRef(),$=z.useRef(),j=w||i,P=Cv(t,$),_=dI(a),N=function(e){return{key:a,keyPath:Mg(_).reverse(),item:O.current,domEvent:e}},I=s||S,T=TI(a,j,u,d),A=T.active,F=Hf(T,zI),R=k.includes(a),M=AI(_.length),L={};"option"===e.role&&(L["aria-selected"]=R);var B=z.createElement(HI,tg({ref:O,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:Bg(Bg({},M),r),className:Zb(D,(n={},zf(n,"".concat(D,"-active"),A),zf(n,"".concat(D,"-selected"),R),zf(n,"".concat(D,"-disabled"),j),n),o),onClick:function(e){if(!j){var t=N(e);null==f||f(MI(t)),y(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===bk.ENTER){var t=N(e);null==f||f(MI(t)),y(t)}},onFocus:function(e){C(a),null==h||h(e)}}),l,z.createElement(FI,{props:Bg(Bg({},e),{},{isSelected:R}),icon:I}));return E&&(B=E(B,e,{selected:R})),B}));function UI(e,t){var n=e.eventKey,r=cI(),o=dI(n);return z.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:z.createElement(WI,tg({},e,{ref:t}))}const VI=z.forwardRef(UI);var GI=["className","children"],qI=function(e,t){var n=e.className,r=e.children,o=Hf(e,GI),a=z.useContext(aI),i=a.prefixCls,s=a.mode,l=a.rtl;return z.createElement("ul",tg({className:Zb(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)},KI=z.forwardRef(qI);function XI(e,t){return yv(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(Mg(t),[n]).join("-")));var s={key:i,eventKey:i};return z.cloneElement(e,s)}return e}))}KI.displayName="SubMenuList";var YI={adjustX:1,adjustY:1},QI={topLeft:{points:["bl","tl"],overflow:YI},topRight:{points:["br","tr"],overflow:YI},bottomLeft:{points:["tl","bl"],overflow:YI},bottomRight:{points:["tr","br"],overflow:YI},leftTop:{points:["tr","tl"],overflow:YI},leftBottom:{points:["br","bl"],overflow:YI},rightTop:{points:["tl","tr"],overflow:YI},rightBottom:{points:["bl","br"],overflow:YI}},JI={topLeft:{points:["bl","tl"],overflow:YI},topRight:{points:["br","tr"],overflow:YI},bottomLeft:{points:["tl","bl"],overflow:YI},bottomRight:{points:["tr","br"],overflow:YI},rightTop:{points:["tr","tl"],overflow:YI},rightBottom:{points:["br","bl"],overflow:YI},leftTop:{points:["tl","tr"],overflow:YI},leftBottom:{points:["bl","br"],overflow:YI}};function ZI(e,t,n){return t||(n?n[e]||n.other:void 0)}var eT={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function tT(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(aI),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=ym(z.useState(!1),2),k=S[0],C=S[1],E=Bg(Bg({},p?JI:QI),m),D=eT[c],O=ZI(c,w,x),$=z.useRef(O);"inline"!==c&&($.current=O);var j=Bg(Bg({},$.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=z.useRef();return z.useEffect((function(){return P.current=hy((function(){C(n)})),function(){hy.cancel(P.current)}}),[n]),z.createElement(_P,{prefixCls:t,popupClassName:Zb("".concat(t,"-popup"),zf({},"".concat(t,"-rtl"),p),i,y),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:f,builtinPlacements:E,popupPlacement:D,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 nT(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=z.useContext(aI),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=ym(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=Bg({},ZI(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(iI,{mode:a,locked:!f.current},z.createElement(rS,tg({visible:m},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,r=e.style;return z.createElement(KI,{id:t,className:n,style:r},o)})))}var rT=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],oT=["active"],aT=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=Hf(e,rT),x=rI(a),S=z.useContext(aI),k=S.prefixCls,C=S.mode,E=S.openKeys,D=S.disabled,O=S.overflowDisabled,$=S.activeKey,j=S.selectedKeys,P=S.itemIcon,_=S.expandIcon,N=S.onItemClick,I=S.onOpenChange,T=S.onActive,A=z.useContext(pI)._internalRenderSubMenuItem,F=z.useContext(fI).isSubPathKey,R=dI(),M="".concat(k,"-submenu"),L=D||i,B=z.useRef(),H=z.useRef(),W=null!=c?c:P,U=null!=u?u:_,V=E.includes(a),G=!O&&V,q=F(j,a),K=TI(a,L,v,y),X=K.active,Y=Hf(K,oT),Q=ym(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=AI(R.length),re=_I((function(e){null==h||h(MI(e)),N(e)})),oe=x&&"".concat(x,"-popup"),ae=z.createElement("div",tg({role:"menuitem",style:ne,className:"".concat(M,"-title"),tabIndex:L?null:-1,ref:B,title:"string"==typeof o?o:null,"data-menu-id":O&&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(FI,{icon:"horizontal"!==C?U:void 0,props:Bg(Bg({},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,!O){var se=ie.current;ae=z.createElement(tT,{mode:se,prefixCls:M,visible:!s&&G&&"inline"!==C,popupClassName:d,popupOffset:f,popupStyle:p,popup:z.createElement(iI,{mode:"horizontal"===se?"vertical":se},z.createElement(KI,{id:oe,ref:H},l)),disabled:L,onVisibleChange:function(e){"inline"!==C&&I(a,e)}},ae)}var le=z.createElement(Jj.Item,tg({role:"none"},w,{component:"li",style:n,className:Zb(M,"".concat(M,"-").concat(C),r,(t={},zf(t,"".concat(M,"-open"),G),zf(t,"".concat(M,"-active"),te),zf(t,"".concat(M,"-selected"),q),zf(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,!O&&z.createElement(nT,{id:oe,open:G,keyPath:R},l));return A&&(le=A(le,e,{selected:q,active:te,open:G,disabled:L})),z.createElement(iI,{onItemClick:re,mode:"horizontal"===C?"vertical":C,itemIcon:W,expandIcon:U},le)};function iT(e){var t,n=e.eventKey,r=e.children,o=dI(n),a=XI(r,o),i=cI();return z.useEffect((function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}}),[o]),t=i?a:z.createElement(aT,e,a),z.createElement(uI.Provider,{value:o},t)}var sT=["className","title","eventKey","children"],lT=["children"],cT=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=Hf(e,sT),a=z.useContext(aI).prefixCls,i="".concat(a,"-item-group");return z.createElement("li",tg({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:Zb(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 uT(e){var t=e.children,n=Hf(e,lT),r=XI(t,dI(n.eventKey));return cI()?r:z.createElement(cT,ly(n,["warnKey"]),r)}function dT(e){var t=e.className,n=e.style,r=z.useContext(aI).prefixCls;return cI()?null:z.createElement("li",{role:"separator",className:Zb("".concat(r,"-item-divider"),t),style:n})}var fT=["label","children","key","type"];function pT(e){return(e||[]).map((function(e,t){if(e&&"object"===Lf(e)){var n=e,r=n.label,o=n.children,a=n.key,i=n.type,s=Hf(n,fT),l=null!=a?a:"tmp-".concat(t);return o||"group"===i?"group"===i?z.createElement(uT,tg({key:l},s,{title:r}),pT(o)):z.createElement(iT,tg({key:l},s,{title:r}),pT(o)):"divider"===i?z.createElement(dT,tg({key:l},s)):z.createElement(VI,tg({key:l},s),r)}return null})).filter((function(e){return e}))}function hT(e,t,n){var r=e;return t&&(r=pT(t)),XI(r,n)}var gT=["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"],mT=[],bT=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,D=o.defaultOpenKeys,O=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=Hf(o,gT),oe=z.useMemo((function(){return hT(p,f,mT)}),[p,f]),ae=ym(z.useState(!1),2),ie=ae[0],se=ae[1],le=z.useRef(),ce=function(e){var t=ym(rx(e,{value:e}),2),n=t[0],r=t[1];return z.useEffect((function(){II+=1;var e="".concat(NI,"-").concat(II);r("rc-menu-uuid-".concat(e))}),[]),n}(g),ue="rtl"===h,de=ym(rx(D,{value:O,postState:function(e){return e||mT}}),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=ym(z.useState(fe),2),me=ge[0],be=ge[1],ve=z.useRef(!1),ye=ym(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=ym(z.useState(we),2),Ce=ke[0],Ee=ke[1],De=ym(z.useState(xe),2),Oe=De[0],$e=De[1];z.useEffect((function(){Ee(we),$e(xe),ve.current&&(Se?pe(me):he(mT))}),[we,xe]);var je=ym(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=PI(),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?mT:oe.slice(Pe+1).map((function(e){return e.key})))}),[Pe,Ne]);var We=ym(rx($||j&&(null===(n=oe[0])||void 0===n?void 0:n.key),{value:$}),2),Ue=We[0],Ve=We[1],Ge=_I((function(e){Ve(e)})),qe=_I((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(nI(ce,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var Ke=ym(rx(T||[],{value:A,postState:function(e){return Array.isArray(e)?e:null==e?mT:[e]}}),2),Xe=Ke[0],Ye=Ke[1],Qe=_I((function(e){null==J||J(MI(e)),function(e){if(_){var t,n=e.key,r=Xe.includes(n);t=I?r?Xe.filter((function(e){return e!==n})):[].concat(Mg(Xe),[n]):[n],Ye(t);var o=Bg(Bg({},e),{},{selectedKeys:t});r?null==R||R(o):null==F||F(o)}!I&&fe.length&&"inline"!==Ce&&he(mT)}(e)})),Je=_I((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)}))}Kg(fe,n,!0)||he(n,!0)})),Ze=DI(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(iI,{key:e.key,overflowDisabled:t>Pe},e)})),nt=z.createElement(Jj,tg({id:g,ref:le,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:VI,className:Zb(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ce),c,(r={},zf(r,"".concat(i,"-inline-collapsed"),Oe),zf(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(iT,{eventKey:jI,title:X,disabled:Ne,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==Ce||w?Jj.INVALIDATE:Jj.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){_e(e)},onKeyDown:Ze},re));return z.createElement(pI.Provider,{value:et},z.createElement(tI.Provider,{value:ce},z.createElement(iI,{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(fI.Provider,{value:He},nt),z.createElement("div",{style:{display:"none"},"aria-hidden":!0},z.createElement(lI.Provider,{value:ze},oe)))))}));bT.Item=VI,bT.SubMenu=iT,bT.ItemGroup=uT,bT.Divider=dT,globalThis&&globalThis.__rest;const vT=z.createContext({});var yT=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 wT=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=yT(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=z.useContext(Fw),i=a("menu",t),s=Zb({[`${i}-item-divider-dashed`]:!!r},n);return z.createElement(dT,Object.assign({className:s},o))},xT=z.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ST=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(xT),{siderCollapsed:f}=z.useContext(vT);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=yv(r).length;let m=z.createElement(VI,Object.assign({},ly(e,["title","icon","danger"]),{className:Zb({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof a?a:void 0}),ck(o,{className:Zb(sk(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||sk(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(HN,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),m)),m},kT=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=z.useContext(xT),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=dI();let d;if(r){const e=sk(o)&&"span"===o.type;d=z.createElement(z.Fragment,null,ck(r,{className:Zb(sk(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]=Fk("Menu");return z.createElement(xT.Provider,{value:f},z.createElement(iT,Object.assign({},ly(e,["icon"]),{title:d,popupClassName:Zb(s,n,`${s}-${a||c}`),popupStyle:{zIndex:p}})))};const CT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var ET=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:CT}))};const DT=z.forwardRef(ET);var OT=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 $T(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:a,type:i}=n,s=OT(n,["label","children","key","type"]),l=null!=a?a:`tmp-${t}`;return o||"group"===i?"group"===i?z.createElement(uT,Object.assign({key:l},s,{title:r}),$T(o)):z.createElement(kT,Object.assign({key:l},s,{title:r}),$T(o)):"divider"===i?z.createElement(wT,Object.assign({key:l},s)):z.createElement(ST,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function jT(e){return z.useMemo((()=>e?$T(e):e),[e])}globalThis&&globalThis.__rest;const PT=z.createContext(null),_T=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"}}}},NT=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},IT=e=>Object.assign({},cx(e)),TT=(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:D,itemActiveBg:O,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({},IT(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:D},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:O}}},[`${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({},IT(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(",")}}}}}},AT=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}}},FT=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"}},AT(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},AT(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({},ax),{paddingInline:p})}}]},RT=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"}}}},MT=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})`}}}}},LT=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({},ix(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"}}}),RT(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},RT(e)),MT(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),MT(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 BT=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 zT=z.forwardRef(((e,t)=>{var n,r;const o=z.useContext(PT),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=z.useContext(Fw),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,D=ly(BT(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),O=jT(y)||w;null===(n=a.validator)||void 0===n||n.call(a,{mode:S});const $=ex((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:vC(u),other:{motionName:`${u}-zoom-big`}},I=i("menu",d||a.prefixCls),[T,A]=((e,t)=>bx("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=px(e,{menuArrowSize:x,menuHorizontalHeight:1.15*a,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),k=px(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[LT(S),_T(S),FT(S),TT(S,"light"),TT(k,"dark"),NT(S),x$(S),i$(S,"slide-up"),i$(S,"slide-down"),w$(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 nw(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 nw(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=Zb(`${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=ck(e,{className:Zb(`${I}-submenu-expand-icon`,sk(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(PT.Provider,{value:null},z.createElement(xT.Provider,{value:M},z.createElement(bT,Object.assign({getPopupContainer:s,overflowedIndicator:z.createElement(DT,null),overflowedIndicatorPopupClassName:Zb(I,`${I}-${h}`,E),mode:j,selectable:P,onClick:$},D,{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:Zb(x,A)}),O))))})),HT=z.forwardRef(((e,t)=>{const n=z.useRef(null),r=z.useContext(vT);return z.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),z.createElement(zT,Object.assign({ref:n},e,r))}));HT.Item=ST,HT.SubMenu=kT,HT.Divider=wT,HT.ItemGroup=uT;const WT=HT,UT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),VT=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),GT=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),qT=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},VT(px(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),KT=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}},XT=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),YT=(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({},GT(px(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({},GT(px(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},QT=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}`},UT(e.colorTextPlaceholder)),{"&:hover":Object.assign({},VT(e)),"&:focus, &:focus-within":Object.assign({},GT(e)),"&-disabled, &[disabled]":Object.assign({},qT(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({},KT(e)),"&-sm":Object.assign({},XT(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),JT=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({},KT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},XT(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}}}})}},ZT=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({},ix(e)),QT(e)),YT(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"}})}},eA=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`}}}},tA=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({},QT(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}}}),eA(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),YT(e,`${t}-affix-wrapper`))}},nA=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ix(e)),JT(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({},qT(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}}}})}},rA=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}}}}},oA=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"}}}}}},aA=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function iA(e){return px(e,{inputAffixPadding:e.paddingXXS})}const sA=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:""}},lA=bx("Input",(e=>{const t=px(e,iA(e));return[ZT(t),oA(t),tA(t),nA(t),rA(t),aA(t),OE(t)]}),sA),cA=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=Zb({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=Zb({[`${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:Zb(t,i,s,n),style:Object.assign(Object.assign({},l),r)})},uA=new Vb("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),dA=e=>({height:e,lineHeight:`${e}px`}),fA=e=>Object.assign({width:e},dA(e)),pA=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:uA,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),hA=e=>Object.assign({width:5*e,minWidth:5*e},dA(e)),gA=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},fA(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},fA(o)),[`${t}${t}-sm`]:Object.assign({},fA(a))}},mA=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},hA(t)),[`${r}-lg`]:Object.assign({},hA(o)),[`${r}-sm`]:Object.assign({},hA(a))}},bA=e=>Object.assign({width:e},dA(e)),vA=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},bA(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},bA(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},yA=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},wA=e=>Object.assign({width:2*e,minWidth:2*e},dA(e)),xA=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},wA(r))},yA(e,r,n)),{[`${n}-lg`]:Object.assign({},wA(o))}),yA(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},wA(a))}),yA(e,a,`${n}-sm`))},SA=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},fA(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},fA(c)),[`${n}-sm`]:Object.assign({},fA(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"},xA(e)),gA(e)),mA(e)),vA(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({},pA(e))}}},kA=bx("Skeleton",(e=>{const{componentCls:t}=e,n=px(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[SA(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"]]}),CA=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=z.useContext(Fw),l=s("skeleton",t),[c,u]=kA(l),d=ly(e,["prefixCls","className"]),f=Zb(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(z.createElement("div",{className:f},z.createElement(cA,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:i},d))))},EA=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=z.useContext(Fw),l=s("skeleton",t),[c,u]=kA(l),d=ly(e,["prefixCls"]),f=Zb(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(z.createElement("div",{className:f},z.createElement(cA,Object.assign({prefixCls:`${l}-button`,size:i},d))))},DA=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=z.useContext(Fw),s=i("skeleton",t),[l,c]=kA(s),u=Zb(s,`${s}-element`,{[`${s}-active`]:a},n,r,c);return l(z.createElement("div",{className:u},z.createElement("div",{className:Zb(`${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`})))))},OA=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=z.useContext(Fw),l=s("skeleton",t),[c,u]=kA(l),d=ly(e,["prefixCls"]),f=Zb(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(z.createElement("div",{className:f},z.createElement(cA,Object.assign({prefixCls:`${l}-input`,size:i},d))))};const $A={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 jA=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:$A}))};const PA=z.forwardRef(jA),_A=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=z.useContext(Fw),l=s("skeleton",t),[c,u]=kA(l),d=Zb(l,`${l}-element`,{[`${l}-active`]:a},u,n,r),f=null!=i?i:z.createElement(PA,null);return c(z.createElement("div",{className:d},z.createElement("div",{className:Zb(`${l}-image`,n),style:o},f)))},NA=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=Mg(Array(a)).map(((e,n)=>z.createElement("li",{key:n,style:{width:t(n)}})));return z.createElement("ul",{className:Zb(n,r),style:o},i)},IA=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return z.createElement("h3",{className:Zb(t,n),style:Object.assign({width:r},o)})};function TA(e){return e&&"object"==typeof e?e:{}}const AA=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(Fw),g=f("skeleton",t),[m,b]=kA(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)),TA(s));i=z.createElement("div",{className:`${g}-header`},z.createElement(cA,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)),TA(l));r=z.createElement(IA,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)),TA(c));o=z.createElement(NA,Object.assign({},n))}f=z.createElement("div",{className:`${g}-content`},r,o)}const v=Zb(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};AA.Button=EA,AA.Avatar=CA,AA.Input=OA,AA.Image=DA,AA.Node=_A;const FA=AA;const RA={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 MA=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:RA}))};const LA=z.forwardRef(MA),BA=z.createContext(null);var zA=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:Zb(n,i&&"".concat(n,"-active"),r),ref:t},l)})),HA=["key","forceRender","style","className","destroyInactiveTabPane"];function WA(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=z.useContext(BA),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return z.createElement("div",{className:Zb("".concat(s,"-content-holder"))},z.createElement("div",{className:Zb("".concat(s,"-content"),"".concat(s,"-content-").concat(o),zf({},"".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=Hf(e,HA),p=o===n;return z.createElement(rS,tg({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(zA,tg({},f,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Bg(Bg({},s),r),className:Zb(l,a),ref:n}))}))}))))}var UA={width:0,height:0,left:0,top:0};function VA(e,t){var n=z.useRef(e),r=ym(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 GA=.1,qA=.01,KA=20,XA=Math.pow(.995,KA);function YA(e){var t=ym(z.useState(0),2),n=t[0],r=t[1],o=z.useRef(0),a=z.useRef();return a.current=e,Am((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 QA={width:0,height:0,left:0,top:0,right:0};function JA(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}var ZA="TABS_DQ";function eF(e){return String(e).replace(/"/g,ZA)}function tF(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function nF(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 rF=z.forwardRef(nF);var oF=z.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var i={};return"object"!==Lf(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 aF(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=ym(z.useState(!1),2),w=y[0],x=y[1],S=ym(z.useState(null),2),k=S[0],C=S[1],E="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),O=null!==k?"".concat(E,"-").concat(k):null,$=null==a?void 0:a.dropdownAriaLabel;var j=z.createElement(bT,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),x(!1)},prefixCls:"".concat(D,"-menu"),id:E,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[k],"aria-label":void 0!==$?$:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,a=e.key,i=e.label,s=tF(t,o,f,n);return z.createElement(VI,{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(D,"-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(O);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[k]),z.useEffect((function(){w||C(null)}),[w]);var _=zf({},h?"marginRight":"marginLeft",p);o.length||(_.visibility="hidden",_.order=1);var N=Zb(zf({},"".concat(D,"-rtl"),h)),I=i?null:z.createElement(eI,{prefixCls:D,overlay:j,trigger:["hover"],visible:!!o.length&&w,transitionName:c,onVisibleChange:x,overlayClassName:Zb(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 bk.UP:P(-1),e.preventDefault();break;case bk.DOWN:P(1),e.preventDefault();break;case bk.ESC:x(!1);break;case bk.SPACE:case bk.ENTER:null!==k&&m(k,e)}else[bk.DOWN,bk.SPACE,bk.ENTER].includes(t)&&(x(!0),e.preventDefault())}},l));return z.createElement("div",{className:Zb("".concat(n,"-nav-operations"),d),style:u,ref:t},I,z.createElement(rF,{prefixCls:n,locale:a,editable:f}))}const iF=z.memo(z.forwardRef(aF),(function(e,t){return t.tabMoving}));function sF(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=tF(u,c,p,l);function y(e){l||h(e)}var w=z.createElement("div",{key:i,"data-node-key":eF(i),className:Zb(b,(t={},zf(t,"".concat(b,"-with-remove"),v),zf(t,"".concat(b,"-active"),o),zf(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){[bk.SPACE,bk.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 lF=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]},cF=function(e,t){return e[t?0:1]};function uF(e,t){var n,r,o,a,i,s,l=z.useContext(BA),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,D=z.useRef(),O=z.useRef(),$=z.useRef(),j=z.useRef(),P=z.useRef(),_=z.useRef(),N=z.useRef(),I="top"===w||"bottom"===w,T=ym(VA(0,(function(e,t){I&&C&&C({direction:e>t?"left":"right"})})),2),A=T[0],F=T[1],R=ym(VA(0,(function(e,t){!I&&C&&C({direction:e>t?"top":"bottom"})})),2),M=R[0],L=R[1],B=ym(z.useState([0,0]),2),H=B[0],W=B[1],U=ym(z.useState([0,0]),2),V=U[0],G=U[1],q=ym(z.useState([0,0]),2),K=q[0],X=q[1],Y=ym(z.useState([0,0]),2),Q=Y[0],J=Y[1],Z=(r=new Map,o=z.useRef([]),a=ym(z.useState({}),2)[1],i=z.useRef("function"==typeof r?r():r),s=YA((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=ym(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)||UA,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)||UA);var u=r.get(l)||Bg({},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=cF(H,I),ae=cF(V,I),ie=cF(K,I),se=cF(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=ym(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=ym(z.useState(),2),r=n[0],o=n[1],a=ym(z.useState(0),2),i=a[0],s=a[1],l=ym(z.useState(0),2),c=l[0],u=l[1],d=ym(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)<GA)return;var s=e,l=n;h.current=window.setInterval((function(){Math.abs(s)<qA&&Math.abs(l)<qA?window.clearInterval(h.current):t((s*=XA)*KA,(l*=XA)*KA)}),KA)}},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)||QA;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)||QA)[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,Bg(Bg({},e),{},{tabs:u})),xe=ym(we,2),Se=xe[0],ke=xe[1],Ce=ex((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 De=u.map((function(e,t){var n=e.key;return z.createElement(sF,{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)}})})),Oe=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(eF(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=ym(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(){Oe()}),[u.map((function(e){return e.key})).join("_")]);var $e=YA((function(){var e=lF(D),t=lF(O),n=lF($);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=lF(N);X(r);var o=lF(_);J(o);var a=lF(P);G([a[0]-r[0],a[1]-r[1]]),Oe()})),je=u.slice(0,Se),Pe=u.slice(ke+1),_e=[].concat(Mg(je),Mg(Pe)),Ne=re.get(g),Ie=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicatorSize,a=ym(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(){hy.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=hy((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,JA(Ne),JA(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(sy,{onResize:$e},z.createElement("div",{ref:Cv(t,D),role:"tablist",className:Zb("".concat(c,"-nav"),d),style:f,onKeyDown:function(){ve()}},z.createElement(oF,{ref:O,position:"left",extra:b,prefixCls:c}),z.createElement(sy,{onResize:$e},z.createElement("div",{className:Zb(Be,(n={},zf(n,"".concat(Be,"-ping-left"),Ae),zf(n,"".concat(Be,"-ping-right"),Fe),zf(n,"".concat(Be,"-ping-top"),Re),zf(n,"".concat(Be,"-ping-bottom"),Me),n)),ref:j},z.createElement(sy,{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}},De,z.createElement(rF,{ref:N,prefixCls:c,locale:y,editable:v,style:Bg(Bg({},0===De.length?void 0:Ee),{},{visibility:Le?"hidden":null})}),z.createElement("div",{className:Zb("".concat(c,"-ink-bar"),zf({},"".concat(c,"-ink-bar-animated"),h.inkBar)),style:Te}))))),z.createElement(iF,tg({},e,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:_,prefixCls:c,tabs:_e,className:!Le&&ue,tabMoving:!!me})),z.createElement(oF,{ref:$,position:"right",extra:b,prefixCls:c})))}const dF=z.forwardRef(uF);var fF=["renderTabBar"],pF=["label","key"];function hF(e){var t=e.renderTabBar,n=Hf(e,fF),r=z.useContext(BA).tabs;return t?t(Bg(Bg({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Hf(e,pF);return z.createElement(zA,tg({tab:t,key:n,tabKey:n},r))}))}),dF):z.createElement(dF,n)}var gF=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],mF=0;function bF(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,D=e.getPopupContainer,O=e.popupClassName,$=e.indicatorSize,j=Hf(e,gF),P=z.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===Lf(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}:Bg({inkBar:!0},"object"===Lf(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(f),I=ym(z.useState(!1),2),T=I[0],A=I[1];z.useEffect((function(){A(_j())}),[]);var F=ym(rx((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=ym(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=ym(rx(null,{value:r}),2),U=W[0],V=W[1];z.useEffect((function(){r||(V("rc-tabs-".concat(mF)),mF+=1)}),[]);var G={id:U,activeKey:R,animated:N,tabPosition:h,rtl:_,mobile:T},q=Bg(Bg({},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:D,popupClassName:O,indicatorSize:$});return z.createElement(BA.Provider,{value:{tabs:P,prefixCls:a}},z.createElement("div",tg({ref:t,id:r,className:Zb(a,"".concat(a,"-").concat(h),(n={},zf(n,"".concat(a,"-mobile"),T),zf(n,"".concat(a,"-editable"),d),zf(n,"".concat(a,"-rtl"),_),n),i)},j),z.createElement(hF,tg({},q,{renderTabBar:S})),z.createElement(WA,tg({destroyInactiveTabPane:x},G,{animated:N}))))}var vF=z.forwardRef(bF);const yF={motionAppear:!1,motionEnter:!0,motionLeave:!0};var wF=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 xF=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}`}}}}},[i$(e,"slide-up"),i$(e,"slide-down")]]},SF=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}}}}}}},kF=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ix(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({},ax),{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"}}})}})}},CF=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}}}}}},EF=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}}}}}},DF=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}},ux(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}}}},OF=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"}}}}},$F=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({},ix(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}},ux(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),DF(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"}}}}}},jF=bx("Tabs",(e=>{const t=px(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[EF(t),OF(t),CF(t),kF(t),SF(t),$F(t),xF(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}})),PF=()=>null;var _F=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 NF=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=_F(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:m,moreIcon:b=z.createElement(DT,null)}=g,{direction:v,tabs:y,getPrefixCls:w,getPopupContainer:x}=z.useContext(Fw),S=w("tabs",m),[k,C]=jF(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(XS,null),addIcon:l||z.createElement(LA,null),showAdd:!0!==i});const D=w(),O=function(e,t){return e||function(e){return e.filter((e=>e))}(yv(t).map((e=>{if(z.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,a=wF(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({},yF),{motionName:yC(e,"switch")})),t}(S,f),j=jC(o),P=Object.assign(Object.assign({},null==y?void 0:y.style),p);return k(z.createElement(vF,Object.assign({direction:v,getPopupContainer:x,moreTransitionName:`${D}-slide-up`},g,{items:O,className:Zb({[`${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:Zb(c,C),style:P,editable:E,moreIcon:b,prefixCls:S,animated:$,indicatorSize:null!=h?h:null==y?void 0:y.indicatorSize})))};NF.TabPane=PF;const IF=NF,TF=z.createContext({}),AF=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"}}}},FF=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},RF=(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),MF=bx("Grid",(e=>[AF(e)])),LF=bx("Grid",(e=>{const t=px(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[FF(t),RF(t,""),RF(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},RF(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));var BF=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 zF=["xs","sm","md","lg","xl","xxl"],HF=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=z.useContext(Fw),{gutter:o,wrap:a}=z.useContext(TF),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:h,style:g}=e,m=BF(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",i),[v,y]=LF(b);let w={};zF.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=Zb(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 WF=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 UF(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<fN.length;n++){const o=fN[n];if(!t[o])continue;const a=e[o];if(void 0!==a)return void r(a)}})()}),[JSON.stringify(e),t]),n}const VF=z.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=WF(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=z.useContext(Fw),[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=UF(o,g),v=UF(r,g),y=z.useRef(l),w=gN();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]=MF(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<fN.length;r++){const o=fN[r];if(p[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),E=Zb(x,{[`${x}-no-wrap`]:!1===c,[`${x}-${v}`]:v,[`${x}-${b}`]:b,[`${x}-rtl`]:"rtl"===f},a,k),D={},O=null!=C[0]&&C[0]>0?C[0]/-2:void 0;O&&(D.marginLeft=O,D.marginRight=O),[,D.rowGap]=C;const[$,j]=C,P=z.useMemo((()=>({gutter:[$,j],wrap:c})),[$,j,c]);return S(z.createElement(TF.Provider,{value:P},z.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},D),i),ref:t}),s)))}));const GF={useBreakpoint:function(){return mN()}};var qF=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=ym(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:Zb("".concat(r,"-content"),(n={},zf(n,"".concat(r,"-content-active"),l),zf(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},H.createElement("div",{className:"".concat(r,"-content-box")},s)):null}));qF.displayName="PanelContent";var KF=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],XF=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=Hf(e,KF),S="disabled"===f,k="header"===f,C="icon"===f,E=null!=g&&"boolean"!=typeof g,D=function(){null==l||l(h)},O="function"==typeof b?b(e):H.createElement("i",{className:"arrow"});O&&(O=H.createElement("div",{className:"".concat(d,"-expand-icon"),onClick:["header","icon"].includes(f)?D:void 0},O));var $=Zb((zf(n={},"".concat(d,"-item"),!0),zf(n,"".concat(d,"-item-active"),s),zf(n,"".concat(d,"-item-disabled"),S),n),u),j={className:Zb(i,(zf(r={},"".concat(d,"-header"),!0),zf(r,"".concat(d,"-header-collapsible-only"),k),zf(r,"".concat(d,"-icon-collapsible-only"),C),r)),"aria-expanded":s,"aria-disabled":S,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==bk.ENTER&&e.which!==bk.ENTER||D()}};return k||C||(j.onClick=D,j.role=p?"tab":"button",j.tabIndex=S?-1:0),H.createElement("div",tg({},x,{ref:t,className:$}),H.createElement("div",j,a&&O,H.createElement("span",{className:"".concat(d,"-header-text"),onClick:"header"===f?D:void 0},m),E&&H.createElement("div",{className:"".concat(d,"-extra")},g)),H.createElement(rS,tg({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(qF,{ref:t,prefixCls:d,className:n,style:r,isActive:s,forceRender:c,role:p?"tabpanel":void 0},w)})))})),YF=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function QF(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=Hf(e,YF),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(XF,tg({},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):yv(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 JF(e){var t=e;if(!Array.isArray(t)){var n=Lf(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var ZF=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=Zb(r,l),v=ym(rx([],{value:p,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:JF}),2),y=v[0],w=v[1];qg(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=QF(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(Mg(y),[e])}))},activeKey:y});return H.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},x)}));const eR=Object.assign(ZF,{Panel:XF});eR.Panel;const tR=z.forwardRef(((e,t)=>{const{getPrefixCls:n}=z.useContext(Fw),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=Zb({[`${i}-no-arrow`]:!a},o);return z.createElement(eR.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))})),nR=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({},ix(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}}}}})}},rR=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},oR=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}}}},aR=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}}}}}},iR=bx("Collapse",(e=>{const t=px(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[nR(t),oR(t),aR(t),rR(t),x$(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),sR=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=z.useContext(Fw),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:f="start",children:p,expandIcon:h}=e,g=jC((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",a),b=n(),[v,y]=iR(m),w=z.useMemo((()=>"left"===f?"start":"right"===f?"end":f),[f]),x=Zb(`${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({},vC(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),k=z.useMemo((()=>p?yv(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 ck(e,Object.assign(Object.assign({},ly(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0}))}return e})):null),[p]);return v(z.createElement(eR,Object.assign({ref:t,openMotion:S},ly(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=h?h(e):z.createElement(VN,{rotate:e.isActive?90:void 0});return ck(t,(()=>({className:Zb(t.props.className,`${m}-arrow`)})))},prefixCls:m,className:x,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),k))})),lR=Object.assign(sR,{Panel:tR}),cR=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},ix(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}}})}},uR=bx("Divider",(e=>{const t=px(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[cR(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));var dR=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 fR=e=>{const{getPrefixCls:t,direction:n,divider:r}=z.useContext(Fw),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:p}=e,h=dR(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[m,b]=uR(g),v=i.length>0?`-${i}`:i,y=!!u,w="left"===i&&null!=s,x="right"===i&&null!=s,S=Zb(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 pR={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 hR=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:pR}))};const gR=z.forwardRef(hR);function mR(){return"function"==typeof BigInt}function bR(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function vR(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 yR(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function wR(e){var t=String(e);if(yR(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(".")&&SR(t)?t.length-t.indexOf(".")-1:0}function xR(e){var t=String(e);if(yR(e)){if(e>Number.MAX_SAFE_INTEGER)return String(mR()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(mR()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(wR(t))}return vR(t).fullStr}function SR(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 kR=function(){function e(t){if(vp(this,e),zf(this,"origin",""),zf(this,"negative",void 0),zf(this,"integer",void 0),zf(this,"decimal",void 0),zf(this,"decimalLen",void 0),zf(this,"empty",void 0),zf(this,"nan",void 0),bR(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(yR(n)&&(n=Number(n)),SR(n="string"==typeof n?n:xR(n))){var r=vR(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 wp(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=vR(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()?"":vR("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),CR=function(){function e(t){vp(this,e),zf(this,"origin",""),zf(this,"number",void 0),zf(this,"empty",void 0),bR(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return wp(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(wR(this.number),wR(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(wR(this.number),wR(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()?"":xR(this.number):this.origin}}]),e}();function ER(e){return mR()?new kR(e):new CR(e)}function DR(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=vR(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?DR(ER(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 OR(e){return!(!e.addonBefore&&!e.addonAfter)}function $R(e){return!!(e.prefix||e.suffix||e.allowClear)}function jR(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 PR(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 _R=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",D=(null==k?void 0:k.wrapper)||"span",O=(null==k?void 0:k.groupAddon)||"span",$=z.useRef(null),j=z.cloneElement(r,{value:m,hidden:v,className:Zb(null===(t=r.props)||void 0===t?void 0:t.className,!$R(e)&&!OR(e)&&c)||null,style:Bg(Bg({},null===(n=r.props)||void 0===n?void 0:n.style),$R(e)||OR(e)?{}:u)});if($R(e)){var P,_="".concat(o,"-affix-wrapper"),N=Zb(_,(zf(P={},"".concat(_,"-disabled"),d),zf(P,"".concat(_,"-focused"),p),zf(P,"".concat(_,"-readonly"),f),zf(P,"".concat(_,"-input-with-clear-btn"),i&&g&&m),P),!OR(e)&&c,null==y?void 0:y.affixWrapper,null==w?void 0:w.affixWrapper),I=(i||g)&&H.createElement("span",{className:Zb("".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"===Lf(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";return H.createElement("span",{onClick:b,onMouseDown:function(e){return e.preventDefault()},className:Zb(n,(e={},zf(e,"".concat(n,"-hidden"),!t),zf(e,"".concat(n,"-has-suffix"),!!i),e)),role:"button",tabIndex:-1},r)}(),i);j=H.createElement(C,tg({className:N,style:Bg(Bg({},OR(e)?void 0:u),null==S?void 0:S.affixWrapper),hidden:!OR(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:Zb("".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(OR(e)){var T="".concat(o,"-group"),A="".concat(T,"-addon"),F=Zb("".concat(o,"-wrapper"),T,null==y?void 0:y.wrapper),R=Zb("".concat(o,"-group-wrapper"),c,null==y?void 0:y.group);return H.createElement(E,{className:R,style:u,hidden:v},H.createElement(D,{className:F},s&&H.createElement(O,{className:A},s),z.cloneElement(j,{hidden:null}),l&&H.createElement(O,{className:A},l)))}return j},NR=["show"];function IR(e,t){return z.useMemo((function(){var n={};t&&(n.show="object"===Lf(t)&&t.formatter?t.formatter:!!t);var r=n=Bg(Bg({},n),e),o=r.show,a=Hf(r,NR);return Bg(Bg({},a),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:a.strategy||function(e){return e.length}})}),[e,t])}var TR=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],AR=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=Hf(e,TR),E=ym(z.useState(!1),2),D=E[0],O=E[1],$=H.useRef(!1),j=z.useRef(null),P=function(e){j.current&&PR(j.current,e)},_=ym(rx(e.defaultValue,{value:e.value}),2),N=_[0],I=_[1],T=null==N?"":String(N),A=ym(H.useState(null),2),F=A[0],R=A[1],M=IR(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(){O((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&&jR(j.current,e,r,a)};H.useEffect((function(){var e;F&&(null===(e=j.current)||void 0===e||e.setSelectionRange.apply(e,Mg(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){O(!0),null==o||o(e)},Y=function(e){O(!1),null==a||a(e)},Q=W&&"".concat(c,"-out-of-range");return H.createElement(_R,tg({},C,{prefixCls:c,className:Zb(f,Q),inputElement:(V=ly(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),H.createElement("input",tg({autoComplete:n},V,{onChange:G,onFocus:X,onBlur:Y,onKeyDown:K,className:Zb(c,zf({},"".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&&jR(j.current,e,r)},value:T,focused:D,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:Zb("".concat(c,"-show-count-suffix"),zf({},"".concat(c,"-show-count-has-suffix"),!!h),null==w?void 0:w.count),style:Bg({},null==x?void 0:x.count)},t),h)}return null}(),disabled:u,classes:y,classNames:w,styles:x}))}));function FR(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 hy.cancel(e)}))}}),[]),u=ym(z.useState(!1),2),d=u[0],f=u[1],Tm((function(){f(_j())}),[]),d)return null;var g="".concat(t,"-handler"),m=Zb(g,"".concat(g,"-up"),zf({},"".concat(g,"-up-disabled"),o)),b=Zb(g,"".concat(g,"-down"),zf({},"".concat(g,"-down-disabled"),a)),v=function(){return l.current.push(hy(p))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return z.createElement("div",{className:"".concat(g,"-wrap")},z.createElement("span",tg({},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",tg({},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 RR(e){var t="number"==typeof e?xR(e):vR(e).fullStr;return t.includes(".")?vR(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var MR=["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"],LR=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],BR=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},zR=function(e){var t=ER(e);return t.isInvalidate()?null:t},HR=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,D=e.onChange,O=e.onInput,$=e.onPressEnter,j=e.onStep,P=e.changeOnBlur,_=void 0===P||P,N=Hf(e,MR),I="".concat(o,"-input"),T=z.useRef(null),A=ym(z.useState(!1),2),F=A[0],R=A[1],M=z.useRef(!1),L=z.useRef(!1),B=z.useRef(!1),H=ym(z.useState((function(){return ER(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(wR(e),wR(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?xR(e):e;if(!t){var r=V(n,t);if(SR(n)&&(E||r>=0))n=DR(n,E||".",r)}return n}),[k,V,E]),X=ym(z.useState((function(){var e=null!=d?d:f;return W.isInvalidate()&&["string","number"].includes(Lf(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 zR(l)}),[l,C]),ae=z.useMemo((function(){return zR(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(Mte){}},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(Mte){qg(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Mte.message))}}]),ce=ym(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=ER(DR(a,".",i)),pe(r)||(r=ER(DR(a,".",i,!0)))),r.equals(W)||(n=r,void 0===f&&U(n),null==D||D(r.isEmpty()?null:BR(x,r)),void 0===f&&J(r,t)),r}return W},ge=(ne=z.useRef(0),re=function(){hy.cancel(ne.current)},z.useEffect((function(){return re}),[]),function(e){re(),ne.current=hy((function(){e()}))}),me=function e(t){if(ue(),q.current=t,Q(t),!L.current){var n=ER(G(t));n.isNaN()||he(n,!0)}null==O||O(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=ER(B.current?RR(u):u);e||(n=n.negate());var r=(W||ER(0)).add(n.toString()),o=he(r,!1);null==j||j(BR(x,o),{offset:B.current?RR(u):u,type:e?"up":"down"}),null===(t=T.current)||void 0===t||t.focus()}},ve=function(e){var t=ER(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 Am((function(){W.isInvalidate()||J(W,!1)}),[C,k]),Am((function(){var e=ER(f);U(e);var t=ER(G(Y));e.equals(t)&&M.current&&!k||J(e,M.current)}),[f]),Am((function(){k&&de()}),[Y]),z.createElement("div",{className:Zb(o,null==w?void 0:w.input,a,(n={},zf(n,"".concat(o,"-focused"),F),zf(n,"".concat(o,"-disabled"),p),zf(n,"".concat(o,"-readonly"),h),zf(n,"".concat(o,"-not-a-number"),W.isNaN()),zf(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(FR,{prefixCls:o,upNode:g,downNode:m,upDisabled:ie,downDisabled:se,onStep:be}),z.createElement("div",{className:"".concat(I,"-wrap")},z.createElement("input",tg({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},N,{ref:kv(T,t),className:I,value:Y,onChange:function(e){me(e.target.value)},disabled:p,readOnly:h}))))})),WR=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=Hf(e,LR),h=z.useRef(null);return z.createElement(_R,{inputElement:z.createElement(HR,tg({prefixCls:o,disabled:n,classNames:f,ref:kv(h,t)},p)),className:d,triggerFocus:function(e){h.current&&PR(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"}})}));WR.displayName="InputNumber";const UR=(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}}}},VR=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({},ix(e)),QT(e)),YT(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({},ix(e)),JT(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({},qT(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ix(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"}),UT(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}},UR(e,"lg")),UR(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}}}]},GR=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({},QT(e)),YT(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}}})}},qR=bx("InputNumber",(e=>{const t=px(e,iA(e));return[VR(t),GR(t),OE(t)]}),(e=>Object.assign(Object.assign({},sA(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 KR=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=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=z.useContext(Fw),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=KR(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),v=n("input-number",c),[y,w]=qR(v),{compactSize:x,compactItemClassnames:S}=FC(v,r);let k=z.createElement(gR,{className:`${v}-handler-up-inner`}),C=z.createElement(nN,{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:D,status:O,isFormItemInput:$,feedbackIcon:j}=z.useContext($O),P=D_(O,g),_=jC((e=>{var t;return null!==(t=null!=s?s:x)&&void 0!==t?t:e})),N=z.useContext(zw),I=null!=l?l:N,T=Zb({[`${v}-lg`]:"large"===_,[`${v}-sm`]:"small"===_,[`${v}-rtl`]:"rtl"===r,[`${v}-borderless`]:!p,[`${v}-in-form-item`]:$},E_(v,P),w),A=`${v}-group`,F=D&&z.createElement(z.Fragment,null,j);return y(z.createElement(WR,Object.assign({ref:o,disabled:I,className:Zb(a,i,S),upHandler:k,downHandler:C,prefixCls:v,readOnly:h,controls:E,prefix:f,suffix:F,addonAfter:d&&z.createElement(RC,null,z.createElement(jO,{override:!0,status:!0},d)),addonBefore:u&&z.createElement(RC,null,z.createElement(jO,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:Zb(E_(`${v}-affix-wrapper`,P,D),{[`${v}-affix-wrapper-sm`]:"small"===_,[`${v}-affix-wrapper-lg`]:"large"===_,[`${v}-affix-wrapper-rtl`]:"rtl"===r,[`${v}-affix-wrapper-borderless`]:!p},w),wrapper:Zb({[`${A}-rtl`]:"rtl"===r,[`${v}-wrapper-disabled`]:I},w),group:Zb({[`${v}-group-wrapper-sm`]:"small"===_,[`${v}-group-wrapper-lg`]:"large"===_,[`${v}-group-wrapper-rtl`]:"rtl"===r},E_(`${v}-group-wrapper`,P,D),w)}},b)))})),YR=XR;YR._InternalPanelDoNotUseOrYouWillBeFired=e=>z.createElement(ES,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(XR,Object.assign({},e)));const QR=YR,JR=e=>{const{getPrefixCls:t,direction:n}=z.useContext(Fw),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=lA(i),c=Zb(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},l,o),u=z.useContext($O),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($O.Provider,{value:d},e.children)))};function ZR(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 eM=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 tM=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=eM(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(Fw),C=x("input",r),E=z.useRef(null),[D,O]=lA(C),{compactSize:$,compactItemClassnames:j}=FC(C,S),P=jC((e=>{var t;return null!==(t=null!=i?i:$)&&void 0!==t?t:e})),_=H.useContext(zw),N=null!=s?s:_,{status:I,hasFeedback:T,feedbackIcon:A}=z.useContext($O),F=D_(I,a),R=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!T;z.useRef(R);const M=ZR(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(GS,null)}),D(H.createElement(AR,Object.assign({ref:kv(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:Zb(h,b,j,null==k?void 0:k.className),onChange:e=>{M(),null==v||v(e)},addonAfter:f&&H.createElement(RC,null,H.createElement(jO,{override:!0,status:!0},f)),addonBefore:p&&H.createElement(RC,null,H.createElement(jO,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),null==k?void 0:k.classNames),{input:Zb({[`${C}-sm`]:"small"===P,[`${C}-lg`]:"large"===P,[`${C}-rtl`]:"rtl"===S,[`${C}-borderless`]:!o},!R&&E_(C,F),null==y?void 0:y.input,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.input,O)}),classes:{affixWrapper:Zb({[`${C}-affix-wrapper-sm`]:"small"===P,[`${C}-affix-wrapper-lg`]:"large"===P,[`${C}-affix-wrapper-rtl`]:"rtl"===S,[`${C}-affix-wrapper-borderless`]:!o},E_(`${C}-affix-wrapper`,F,T),O),wrapper:Zb({[`${C}-group-rtl`]:"rtl"===S},O),group:Zb({[`${C}-group-wrapper-sm`]:"small"===P,[`${C}-group-wrapper-lg`]:"large"===P,[`${C}-group-wrapper-rtl`]:"rtl"===S,[`${C}-group-wrapper-disabled`]:N},E_(`${C}-group-wrapper`,F,T),O)}})))})),nM=tM;const rM={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 oM=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:rM}))};const aM=z.forwardRef(oM);const iM={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 sM=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:iM}))};const lM=z.forwardRef(sM);var cM=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 uM=e=>e?z.createElement(lM,null):z.createElement(aM,null),dM={click:"onClick",hover:"onMouseOver"},fM=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=ZR(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=cM(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=z.useContext(Fw),g=h("input",d),m=h("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=uM}=e,a=dM[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=Zb(m,c,{[`${m}-${f}`]:!!f}),y=Object.assign(Object.assign({},ly(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:v,prefixCls:g,suffix:b});return f&&(y.size=f),z.createElement(nM,Object.assign({ref:kv(t,i)},y))})),pM=fM;var hM=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 gM=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=hM(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:m,direction:b}=z.useContext(Fw),v=z.useRef(!1),y=m("input-search",n),w=m("input",r),{compactSize:x}=FC(y,b),S=jC((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"})},D="boolean"==typeof s?z.createElement(aN,null):null,O=`${y}-button`;let $;const j=s||{},P=j.type&&!0===j.type.__ANT_BUTTON;$=P||"button"===j.type?ck(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:O,size:S}:{})):z.createElement(TE,{className:O,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:C,onClick:E,loading:c,icon:D},s),l&&($=[$,ck(l,{key:"addonAfter"})]);const _=Zb(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${S}`]:!!S,[`${y}-with-button`]:!!s},o);return z.createElement(nM,Object.assign({ref:kv(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}))})),mM=gM;var bM,vM=["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"],yM={};function wM(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;bM||((bM=document.createElement("textarea")).setAttribute("tab-index","-1"),bM.setAttribute("aria-hidden","true"),document.body.appendChild(bM)),e.getAttribute("wrap")?bM.setAttribute("wrap",e.getAttribute("wrap")):bM.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&&yM[n])return yM[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:vM.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(yM[n]=s),s}(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;bM.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")),bM.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=bM.scrollHeight;if("border-box"===s?f+=i:"content-box"===s&&(f-=a),null!==n||null!==r){bM.value=" ";var p=bM.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 xM=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],SM=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=Hf(n,xM),p=ym(rx(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=ym(z.useMemo((function(){return i&&"object"===Lf(i)?[i.minRows,i.maxRows]:[]}),[i]),2),v=b[0],y=b[1],w=!!i,x=ym(z.useState(2),2),S=x[0],k=x[1],C=ym(z.useState(),2),E=C[0],D=C[1],O=function(){k(0)};Tm((function(){w&&O()}),[a,v,y,w]),Tm((function(){if(0===S)k(1);else if(1===S){var e=wM(m.current,!1,v,y);k(2),D(e)}else!function(){try{if(document.activeElement===m.current){var e=m.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;m.current.setSelectionRange(t,n),m.current.scrollTop=r}}catch(Mte){}}()}),[S]);var $=z.useRef(),j=function(){hy.cancel($.current)};z.useEffect((function(){return j}),[]);var P=w?E:null,_=Bg(Bg({},c),P);return 0!==S&&1!==S||(_.overflowY="hidden",_.overflowX="hidden"),z.createElement(sy,{onResize:function(e){2===S&&(null==s||s(e),i&&(j(),$.current=hy((function(){O()}))))},disabled:!(i||s)},z.createElement("textarea",tg({},f,{ref:m,style:_,className:Zb(r,l,zf({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){g(e.target.value),null==d||d(e)}})))})),kM=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],CM=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,D=Hf(e,kM),O=ym(rx(o,{value:a,defaultValue:o}),2),$=O[0],j=O[1],P=null==$?"":String($),_=ym(H.useState(!1),2),N=_[0],I=_[1],T=H.useRef(!1),A=ym(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=ym(H.useState(null),2),U=W[0],V=W[1];H.useEffect((function(){var e;U&&(e=L()).setSelectionRange.apply(e,Mg(U))}),[U]);var G,q=IR(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),jR(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:Zb("".concat(g,"-data-count"),null==k?void 0:k.count),style:null==C?void 0:C.count},G)));var ee=!D.autoSize&&!b&&!c;return H.createElement(_R,{value:P,allowClear:c,handleReset:function(e){j(""),B(),jR(L(),e,l)},suffix:Z,prefixCls:g,classes:{affixWrapper:Zb(null==m?void 0:m.affixWrapper,(r={},zf(r,"".concat(g,"-show-count"),b),zf(r,"".concat(g,"-textarea-allow-clear"),c),r))},disabled:x,focused:N,className:Zb(y,Q&&"".concat(g,"-out-of-range")),style:Bg(Bg({},w),F&&!ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof G?G:void 0}},hidden:S,inputElement:H.createElement(SM,tg({},D,{maxLength:u,onKeyDown:function(e){var t=D.onPressEnter,n=D.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:Zb(null==k?void 0:k.textarea),style:Bg(Bg({},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}))})})),EM=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 DM=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=EM(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:p,direction:h}=z.useContext(Fw),g=jC(a),m=z.useContext(zw),b=null!=i?i:m,{status:v,hasFeedback:y,feedbackIcon:w}=z.useContext($O),x=D_(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(GS,null)});const[E,D]=lA(k);return E(z.createElement(CM,Object.assign({},f,{disabled:b,allowClear:C,className:Zb(d,u),classes:{affixWrapper:Zb(`${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)},E_(`${k}-affix-wrapper`,x),D)},classNames:Object.assign(Object.assign({},c),{textarea:Zb({[`${k}-borderless`]:!o,[`${k}-sm`]:"small"===g,[`${k}-lg`]:"large"===g},E_(k,x),D,null==c?void 0:c.textarea)}),prefixCls:k,suffix:y&&z.createElement("span",{className:`${k}-textarea-suffix`},w),ref:S})))})),OM=nM;OM.Group=JR,OM.Search=mM,OM.TextArea=DM,OM.Password=pM;const $M=OM;var jM=z.createContext(null),PM=z.createContext({}),_M=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=Cv(z.useContext(PM).panel,a);return z.createElement(z.Fragment,null,z.createElement("div",tg({id:i,className:Zb("".concat(t,"-content"),n),style:Bg({},r),"aria-modal":"true",role:"dialog",ref:l},s),o))};function NM(e){return"string"==typeof e&&String(Number(e))===e?(qg(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var IM={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function TM(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,D=e.mask,O=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=ym(z.useState(!1),2),V=U[0],G=U[1],q=z.useContext(jM),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=D&&z.createElement(rS,tg({key:"mask"},$,{visible:s}),(function(e,t){var n=e.className,r=e.style;return z.createElement("div",{className:Zb("".concat(i,"-mask"),n,null==h?void 0:h.mask,j),style:Bg(Bg(Bg({},r),P),null==L?void 0:L.mask),onClick:O&&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=NM(S):J.height=NM(k);var Z={onMouseEnter:I,onMouseOver:T,onMouseLeave:A,onClick:F,onKeyDown:R,onKeyUp:M},ee=z.createElement(rS,tg({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",tg({className:Zb("".concat(i,"-content-wrapper"),null==h?void 0:h.wrapper,r),style:Bg(Bg(Bg(Bg({},J),o),E),null==L?void 0:L.wrapper)},ik(e,{data:!0})),z.createElement(_M,tg({id:y,containerRef:n,prefixCls:i,className:Zb(v,null==h?void 0:h.content),style:Bg(Bg({},w),null==L?void 0:L.content)},Z),C))})),te=Bg({},m);return b&&(te.zIndex=b),z.createElement(jM.Provider,{value:X},z.createElement("div",{className:Zb(i,"".concat(i,"-").concat(l),g,(a={},zf(a,"".concat(i,"-open"),s),zf(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 bk.TAB:var r;if(t===bk.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 bk.ESC:N&&p&&(e.stopPropagation(),N(e))}}},Y,z.createElement("div",{tabIndex:0,ref:H,style:IM,"aria-hidden":"true","data-sentinel":"start"}),ee,z.createElement("div",{tabIndex:0,ref:W,style:IM,"aria-hidden":"true","data-sentinel":"end"})))}var AM=z.forwardRef(TM),FM=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,D=e.onKeyUp,O=e.panelRef,$=ym(z.useState(!1),2),j=$[0],P=$[1],_=ym(z.useState(!1),2),N=_[0],I=_[1];Tm((function(){I(!0)}),[]);var T=!!N&&n,A=z.useRef(),F=z.useRef();Tm((function(){T&&(F.current=document.activeElement)}),[T]);var R=z.useMemo((function(){return{panel:O}}),[O]);if(!v&&!j&&!T&&w)return null;var M={onMouseEnter:x,onMouseOver:S,onMouseLeave:k,onClick:C,onKeyDown:E,onKeyUp:D},L=Bg(Bg({},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(PM.Provider,{value:R},z.createElement(YE,{open:T||v||j,autoDestroy:!1,getContainer:b,autoLock:h&&(T||j)},z.createElement(AM,L)))};const RM=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(Fw),v=z.useCallback((e=>z.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},e)),[c]),[y,w]=uD(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:Zb(`${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:Zb(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:Zb(`${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)},MM=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%)"}}}]}}}},LM=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"}}}},BM=bx("Drawer",(e=>{const t=px(e,{});return[LM(t),MM(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var zM=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 HM={distance:180},WM=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=HM,open:g,afterOpenChange:m,onClose:b,prefixCls:v,getContainer:y,style:w,className:x,visible:S,afterVisibleChange:k}=e,C=zM(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:E,getPrefixCls:D,direction:O,drawer:$}=z.useContext(Fw),j=D("drawer",v),[P,_]=BM(j),N=void 0===y&&E?()=>E(document.body):y,I=Zb({"no-mask":!p,[`${j}-rtl`]:"rtl"===O},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:yC(j,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},R=NO(),[M,L]=Fk("Drawer",C.zIndex);return P(z.createElement(RC,null,z.createElement(jO,{status:!0,override:!0},z.createElement(_k.Provider,{value:L},z.createElement(FM,Object.assign({prefixCls:j,onClose:b,maskMotion:F,motion:e=>({motionName:yC(j,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{classNames:{mask:Zb(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:Zb(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:Zb(null==$?void 0:$.className,x),rootClassName:I,getContainer:N,afterOpenChange:null!=m?m:k,panelRef:R,zIndex:M}),z.createElement(RM,Object.assign({prefixCls:j},C,{onClose:b})))))))};WM._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,a=zM(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=z.useContext(Fw),s=i("drawer",t),[l,c]=BM(s),u=Zb(s,`${s}-pure`,`${s}-${o}`,c,r);return l(z.createElement("div",{className:u,style:n},z.createElement(RM,Object.assign({prefixCls:s},a))))};const UM=WM;function VM(e){return["small","middle","large"].includes(e)}function GM(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const qM=H.createContext({latestIndex:0}),KM=qM.Provider,XM=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=z.useContext(qM);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 YM=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 QM=z.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=z.useContext(Fw),{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=YM(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(s)?s:[s,s],S=VM(x),k=VM(w),C=GM(x),E=GM(w),D=yv(d,{keepEmpty:!0}),O=void 0===l&&"horizontal"===f?"center":l,$=o("space",p),[j,P]=IC($),_=Zb($,null==a?void 0:a.className,P,`${$}-${f}`,{[`${$}-rtl`]:"rtl"===i,[`${$}-align-${O}`]:O,[`${$}-gap-row-${x}`]:S,[`${$}-gap-col-${w}`]:k},c,u),N=Zb(`${$}-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=D.map(((e,t)=>{var n,r;null!=e&&(I=t);const o=e&&e.key||`${N}-${t}`;return z.createElement(XM,{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===D.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(KM,{value:A},T)))}));QM.Compact=LC;const JM=QM;function ZM(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 eL=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)"}}}}},tL=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}}),nL=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rL=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ix(e)),tL(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},nL(e,e.controlHeightSM)),"&-large":Object.assign({},nL(e,e.controlHeightLG))})}},oL=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({},ix(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:s$,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},aL=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},iL=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"}}}}},sL=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),lL=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:sL(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},cL=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:sL(e),[`@media (max-width: ${e.screenXSMax}px)`]:[lL(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:sL(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:sL(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:sL(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:sL(e)}}}},uL=(e,t)=>px(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),dL=bx("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=uL(e,n);return[rL(r),oL(r),eL(r),aL(r),iL(r),cL(r),x$(r),s$]}),(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}),fL=[];function pL(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 hL=e=>{let{help:t,helpStatus:n,errors:r=fL,warnings:o=fL,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:l}=z.useContext(OO),c=`${l}-item-explain`,[,u]=dL(l),d=z.useMemo((()=>vC(l)),[l]),f=ZM(r),p=ZM(o),h=z.useMemo((()=>null!=t?[pL(t,"help",n)]:[].concat(Mg(f.map(((e,t)=>pL(e,"error","error",t)))),Mg(p.map(((e,t)=>pL(e,"warning","warning",t)))))),[t,n,f,p]),g={};return i&&(g.id=`${i}_help`),z.createElement(rS,{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:Zb(c,t,a,u),style:n,role:"alert"}),z.createElement(pS,Object.assign({keys:h},vC(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:Zb(o,{[`${c}-${r}`]:r}),style:a},n)})))}))},gL=["parentNode"],mL="form_item";function bL(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function vL(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return gL.includes(n)?`${mL}_${n}`:n}function yL(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 wL(e){return bL(e).join("_")}function xL(e){const[t]=mO(),n=z.useRef({}),r=z.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=wL(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=vL(bL(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(gk(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:a,top:i,left:s}of gk(e,mk(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=wL(e);return n.current[t]}})),[e,t]);return[r]}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 kL=(e,t)=>{const n=z.useContext(zw),{getPrefixCls:r,direction:o,form:a}=z.useContext(Fw),{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=SL(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),D=jC(c),O=z.useContext(Dy),$=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]=dL(P),I=Zb(P,`${P}-${v}`,{[`${P}-hide-required-mark`]:!1===$,[`${P}-rtl`]:"rtl"===o,[`${P}-${D}`]:D},N,null==a?void 0:a.className,s,l),[T]=xL(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(Bw,{disabled:u},z.createElement(Uw.Provider,{value:D},z.createElement(DO,{validateMessages:O},z.createElement(CO.Provider,{value:F},z.createElement(kO,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})))))))},CL=z.forwardRef(kL);const EL=()=>{const{status:e,errors:t=[],warnings:n=[]}=z.useContext($O);return{status:e,errors:t,warnings:n}};EL.Context=$O;const DL=EL;const OL=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},$L=vx(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=uL(e,n);return[OL(r)]})),jL=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(CO),g=r||h.wrapperCol||{},m=Zb(`${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(OO.Provider,{value:y},z.createElement(hL,{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(CO.Provider,{value:b},z.createElement(HF,Object.assign({},g,{className:m}),k),z.createElement($L,{prefixCls:t}))};const PL={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 _L=function(e,t){return z.createElement(zS,tg({},e,{ref:t,icon:PL}))};const NL=z.forwardRef(_L);var IL=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 TL=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]=Fy("Form"),{vertical:f,labelAlign:p,labelCol:h,labelWrap:g,colon:m}=z.useContext(CO);if(!n)return null;const b=o||h||{},v=`${t}-item-label`,y=Zb(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(NL,null)}=S,n=IL(S,["icon"]),r=z.createElement(HN,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=Py.Form)||void 0===u?void 0:u.optional))));const E=Zb({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:k||C,[`${t}-item-no-colon`]:!x});return z.createElement(HF,Object.assign({},b,{className:y}),z.createElement("label",{htmlFor:r,className:E,title:"string"==typeof n?n:""},w))},AL={success:WS,warning:JS,error:GS,validating:Pk};function FL(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(CO),d=yL(n,r,s,null,!!o,a),{isFormItemInput:f,status:p,hasFeedback:h,feedbackIcon:g}=z.useContext($O),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&&AL[d];t=!1!==i&&s?z.createElement("span",{className:Zb(`${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($O.Provider,{value:m},t)}var RL=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 ML(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=RL(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),v=`${t}-item`,{requiredMark:y}=z.useContext(CO),w=z.useRef(null),x=ZM(i),S=ZM(s),k=null!=a,C=!!(k||i.length||s.length),E=!!w.current&&wC(w.current),[D,O]=z.useState(null);Tm((()=>{if(C&&w.current){const e=getComputedStyle(w.current);O(parseInt(e.marginBottom,10))}}),[C,E]);const $=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return yL(e?x:c.errors,e?S:c.warnings,c,"",!!u,l)}(),j=Zb(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(VF,Object.assign({className:`${v}-row`},ly(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(TL,Object.assign({htmlFor:p},e,{requiredMark:y,required:null!=h?h:g,prefixCls:t})),z.createElement(jL,Object.assign({},e,c,{errors:x,warnings:S,prefixCls:t,status:$,help:a,marginBottom:D,onErrorVisibleChanged:e=>{e||O(null)}}),z.createElement(EO.Provider,{value:m},z.createElement(FL,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:$},f)))),!!D&&z.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-D}}))}const LL=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 BL=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(Fw),{name:b}=z.useContext(CO),v=function(e){if("function"==typeof e)return e;const t=yv(e);return t.length<=1?t[0]:t}(l),y="function"==typeof v,w=z.useContext(EO),{validateTrigger:x}=z.useContext(pD),S=void 0!==p?p:x,k=!(null==t),C=m("form",a),[E,D]=dL(C);Ey();const O=z.useContext(hD),$=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,hy.cancel(r.current),r.current=null})),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=hy((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[_,N]=tx((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{P((n=>{const r=Object.assign({},n),o=[].concat(Mg(e.name.slice(0,-1)),Mg(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[T,A]=z.useMemo((()=>{const e=Mg(_.errors),t=Mg(_.warnings);return Object.values(j).forEach((n=>{e.push.apply(e,Mg(n.errors||[])),t.push.apply(t,Mg(n.warnings||[]))})),[e,t]}),[j,_.errors,_.warnings]),F=function(){const{itemRef:e}=z.useContext(CO),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=kv(e(n),o)),t.current.ref}}();function R(t,o,a){return n&&!h?z.createElement(FL,{prefixCls:C,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:_,errors:T,warnings:A,noStyle:!0},t):z.createElement(ML,Object.assign({key:"row"},e,{className:Zb(r,D),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(cO,Object.assign({},e,{messageVariables:M,trigger:f,validateTrigger:S,onMetaChange:e=>{const t=null==O?void 0:O.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(Mg(r)),$.current=n}w(e,n)}}}),((n,r,a)=>{const l=bL(t).length&&r?r.name:[],u=vL(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(sk(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"),Ev(v)&&(t.ref=F(l,v));new Set([].concat(Mg(bL(f)),Mg(bL(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(LL,{value:p[e.valuePropName||"value"],update:v,childProps:n},ck(v,t))}else h=y&&(i||o)&&!k?v(a):v;else;return R(h,u,d)})))};BL.useStatus=DL;const zL=BL;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=e=>{var{prefixCls:t,children:n}=e,r=HL(e,["prefixCls","children"]);const{getPrefixCls:o}=z.useContext(Fw),a=o("form",t),i=z.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return z.createElement(uO,Object.assign({},r),((e,t,r)=>z.createElement(OO.Provider,{value:i},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const UL=CL;UL.Item=zL,UL.List=WL,UL.ErrorList=hL,UL.useForm=xL,UL.useFormInstance=function(){const{form:e}=z.useContext(CO);return e},UL.useWatch=SO,UL.Provider=DO,UL.create=()=>{};const VL=UL;let GL=null,qL=e=>e(),KL=[],XL={};function YL(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:a}=XL,i=null!=e?e:kS().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:a}}const QL=z.forwardRef(((e,t)=>{const[n,r]=z.useState(YL),[o,a]=Yk(n),i=kS(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=()=>{r(YL)};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(ES,{prefixCls:s,iconPrefixCls:l,theme:c},a)}));function JL(){if(!GL){const e=document.createDocumentFragment(),t={fragment:e};return GL=t,void qL((()=>{lC(z.createElement(QL,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,JL())}))}}),e)}))}GL.instance&&(KL.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":qL((()=>{const t=GL.instance.open(Object.assign(Object.assign({},XL),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":qL((()=>{null==GL||GL.instance.destroy(e.key)}));break;default:qL((()=>{var n;const r=(n=GL.instance)[t].apply(n,Mg(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),KL=[])}const ZL={open:function(e){const t=Wk((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return KL.push(r),()=>{n?qL((()=>{n()})):r.skipped=!0}}));return JL(),t},destroy:function(e){KL.push({type:"destroy",key:e}),JL()},config:function(e){XL=Object.assign(Object.assign({},XL),e),qL((()=>{var e;null===(e=null==GL?void 0:GL.sync)||void 0===e||e.call(GL)}))},useMessage:Qk,_InternalPanelDoNotUseOrYouWillBeFired:Hk};["success","info","warning","error","loading"].forEach((e=>{ZL[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=Wk((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return KL.push(o),()=>{r?qL((()=>{r()})):o.skipped=!0}}));return JL(),n}(e,n)}}));const eB=ZL;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=Pj((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:l}=e,c=tB(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=z.useContext(Fw),d=u(),f=t||u("modal"),[,p]=j$(f),h=`${f}-confirm`;let g={};return g=a?{closable:null!=o&&o,title:"",footer:"",children:z.createElement(R$,Object.assign({},e,{prefixCls:f,confirmPrefixCls:h,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:i,footer:null!==l&&z.createElement(FO,Object.assign({},e)),children:s},z.createElement(aD,Object.assign({prefixCls:f,className:Zb(p,`${f}-pure-panel`,a&&h,a&&`${h}-${a}`,n)},c,{closeIcon:AO(f,r),closable:o},g))}));function rB(e){return W$(U$(e))}const oB=I$;oB.useModal=ej,oB.info=function(e){return W$(V$(e))},oB.success=function(e){return W$(G$(e))},oB.error=function(e){return W$(q$(e))},oB.warning=rB,oB.warn=rB,oB.confirm=function(e){return W$(K$(e))},oB.destroyAll=function(){for(;B$.length;){const e=B$.pop();e&&e()}},oB.config=function(e){let{rootPrefixCls:t}=e;H$=t},oB._InternalPanelDoNotUseOrYouWillBeFired=nB;const aB=oB;let iB=null,sB=e=>e(),lB=[],cB={};function uB(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:a}=cB,i=null!=e?e:kS().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:a}}const dB=z.forwardRef(((e,t)=>{const[n,r]=z.useState(uB),[o,a]=Sj(n),i=kS(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=()=>{r(uB)};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(ES,{prefixCls:s,iconPrefixCls:l,theme:c},a)}));function fB(){if(!iB){const e=document.createDocumentFragment(),t={fragment:e};return iB=t,void sB((()=>{lC(z.createElement(dB,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,fB())}))}}),e)}))}iB.instance&&(lB.forEach((e=>{switch(e.type){case"open":sB((()=>{iB.instance.open(Object.assign(Object.assign({},cB),e.config))}));break;case"destroy":sB((()=>{null==iB||iB.instance.destroy(e.key)}))}})),lB=[])}function pB(e){lB.push({type:"open",config:e}),fB()}const hB={open:pB,destroy:function(e){lB.push({type:"destroy",key:e}),fB()},config:function(e){cB=Object.assign(Object.assign({},cB),e),sB((()=>{var e;null===(e=null==iB?void 0:iB.sync)||void 0===e||e.call(iB)}))},useNotification:kj,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:s,closable:l=!0,closeIcon:c}=e,u=pj(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=z.useContext(Fw),f=t||d("notification"),p=`${f}-notice`,[,h]=dj(f);return z.createElement("div",{className:Zb(`${p}-pure-panel`,h,n)},z.createElement(fj,{prefixCls:f}),z.createElement(vk,Object.assign({},u,{prefixCls:f,eventKey:"pure",duration:null,closable:l,closeIcon:hj(f,c),content:z.createElement(mj,{prefixCls:p,icon:r,type:o,message:a,description:i,btn:s})})))}};["success","info","warning","error"].forEach((e=>{hB[e]=t=>pB(Object.assign(Object.assign({},t),{type:e}))}));const gB=hB;var mB=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},bB=function(e){return void 0!==e?"".concat(e,"px"):void 0};function vB(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=ym(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=ym(z.useState(null),2),g=h[0],m=h[1],b=ym(z.useState(null),2),v=b[0],y=b[1];Tm((function(){if(d!==r){var e=p(d),t=p(r),n=mB(e),o=mB(t);f(r),m(n),y(o),e&&t?i():s()}}),[r]);var w=z.useMemo((function(){return bB("rtl"===l?-(null==g?void 0:g.right):null==g?void 0:g.left)}),[l,g]),x=z.useMemo((function(){return bB("rtl"===l?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[l,v]);return g&&v?z.createElement(rS,{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=Bg(Bg({},e.style),{},{"--thumb-start-left":w,"--thumb-start-width":bB(null==g?void 0:g.width),"--thumb-active-left":x,"--thumb-active-width":bB(null==v?void 0:v.width)}),a={ref:kv(c,n),style:o,className:Zb("".concat(t,"-thumb"),r)};return z.createElement("div",a)})):null}var yB=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function wB(e){return e.map((function(e){if("object"===Lf(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Lf(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Bg(Bg({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var xB=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:Zb(n,zf({},"".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))},SB=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=Hf(e,yB),b=z.useRef(null),v=z.useMemo((function(){return kv(b,t)}),[b,t]),y=z.useMemo((function(){return wB(s)}),[s]),w=ym(rx(null===(n=y[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),x=w[0],S=w[1],k=ym(z.useState(!1),2),C=k[0],E=k[1],D=function(e,t){l||(S(t),null==d||d(t))},O=ly(m,["children"]);return z.createElement("div",tg({},O,{className:Zb(a,(r={},zf(r,"".concat(a,"-rtl"),"rtl"===i),zf(r,"".concat(a,"-disabled"),l),r),p),ref:v}),z.createElement("div",{className:"".concat(a,"-group")},z.createElement(vB,{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(xB,tg({},e,{key:e.value,prefixCls:a,className:Zb(e.className,"".concat(a,"-item"),zf({},"".concat(a,"-item-selected"),e.value===x&&!C)),checked:e.value===x,onChange:D,disabled:!!l||!!e.disabled}))}))))}));function kB(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function CB(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}SB.displayName="Segmented",SB.defaultProps={options:[]};const EB=Object.assign({overflow:"hidden"},ax),DB=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ix(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({},CB(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`},EB),"&-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({},CB(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}}}),kB(`&-disabled ${t}-item`,e)),kB(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},OB=bx("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=px(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[DB(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 $B=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 jB=z.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,block:a,options:i=[],size:s="middle",style:l}=e,c=$B(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:f}=z.useContext(Fw),p=u("segmented",n),[h,g]=OB(p),m=jC(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=$B(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=Zb(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(SB,Object.assign({},c,{className:v,style:y,options:b,ref:t,prefixCls:p,direction:d})))}));var PB=z.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function _B(e,t,n){return(e-t)/(n-t)}function NB(e,t,n,r){var o=_B(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 IB(e,t){return Array.isArray(e)?e[t]:e}var TB=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],AB=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=Hf(e,TB),p=z.useContext(PB),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,D="".concat(o,"-handle"),O=function(e){b||s(e,i)},$=NB(m,a,h,g),j=z.createElement("div",tg({ref:t,className:Zb(D,(n={},zf(n,"".concat(D,"-").concat(i+1),y),zf(n,"".concat(D,"-dragging"),u),n),E.handle),style:Bg(Bg(Bg({},$),l),C.handle),onMouseDown:O,onTouchStart:O,onKeyDown:function(e){if(!b&&v){var t=null;switch(e.which||e.keyCode){case bk.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case bk.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case bk.UP:t="ttb"!==m?1:-1;break;case bk.DOWN:t="ttb"!==m?-1:1;break;case bk.HOME:t="min";break;case bk.END:t="max";break;case bk.PAGE_UP:t=2;break;case bk.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,i))}},tabIndex:b?null:IB(w,i),role:"slider","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":a,"aria-disabled":b,"aria-label":IB(x,i),"aria-labelledby":IB(S,i),"aria-valuetext":null===(r=IB(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})),FB=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],RB=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=Hf(e,FB),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(AB,tg({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:IB(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:a,render:s},c))})))}));function MB(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function LB(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=z.useContext(PB),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,f=i.included,p="".concat(t,"-text"),h=NB(c,o,s,l);return z.createElement("span",{className:Zb(p,zf({},"".concat(p,"-active"),f&&u<=o&&o<=d)),style:Bg(Bg({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(o)}},r)}function BB(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(LB,{key:t,prefixCls:o,style:n,value:t,onClick:r},a)}))):null}function zB(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=z.useContext(PB),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=Bg(Bg({},NB(l,n,i,s)),"function"==typeof r?r(n):r);return p&&(h=Bg(Bg({},h),"function"==typeof o?o(n):o)),z.createElement("span",{className:Zb(f,zf({},"".concat(f,"-active"),p)),style:h})}function HB(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=z.useContext(PB),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(zB,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})})))}function WB(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(PB),u=c.direction,d=c.min,f=c.max,p=c.disabled,h=c.range,g=c.classNames,m="".concat(n,"-track"),b=_B(o,d,f),v=_B(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||Zb(m,(zf(t={},"".concat(m,"-").concat(i+1),null!==i&&h),zf(t,"".concat(n,"-track-draggable"),s),t),g.track);return z.createElement("div",{className:x,style:Bg(Bg({},w),r),onMouseDown:y,onTouchStart:y})}function UB(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=z.useContext(PB),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(WB,{index:null,prefixCls:t,start:f[0].start,end:f[f.length-1].end,replaceCls:Zb(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(WB,{index:r,prefixCls:t,style:Bg(Bg({},IB(n,r)),u.track),start:o,end:i,key:r,onStartMove:a})}))):null}var VB=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,D=e.onChange,O=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"===Lf(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=Mg(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=ym(se,2),ce=le[0],ue=le[1],de=ym(rx(k,{value:S}),2),fe=de[0],pe=de[1],he=z.useMemo((function(){var e=null==fe?[]:Array.isArray(fe)?fe:[fe],t=ym(e,1)[0],n=null===fe?[]:[void 0===t?ne:t];if(C){if(n=Mg(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=Mg(e).sort((function(e,t){return e-t}));D&&!Kg(t,ge.current,!0)&&D(me(t)),pe(t)},ve=function(e,t,n,r,o,a,i,s,l){var c=ym(z.useState(null),2),u=c[0],d=c[1],f=ym(z.useState(-1),2),p=f[0],h=f[1],g=ym(z.useState(n),2),m=g[0],b=g[1],v=ym(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=Mg(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 D=z.useMemo((function(){var e=Mg(n).sort((function(e,t){return e-t})),t=Mg(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,D,function(r,o,a){r.stopPropagation();var i=a||n,l=i[o];h(o),d(l),w(i);var c=MB(r),u=c.pageX,f=c.pageY,p=function(n){n.preventDefault();var r,a=MB(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=ym(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=Mg(he);o[n]=e,C&&!he.length&&void 0===E&&o.push(e),null==O||O(me(o)),be(o),null==$||$(me(o)),t&&ke(t,n,o)}},Ee=ym(z.useState(null),2),De=Ee[0],Oe=Ee[1];z.useEffect((function(){if(null!==De){var e=he.indexOf(De);e>=0&&Z.current.focus(e)}Oe(null)}),[De]);var $e=z.useMemo((function(){return(!I||null!==oe)&&I}),[I,oe]),je=function(e,t){ke(e,t),null==O||O(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 Mg(Se).sort((function(e,t){return e-t}))}),[Se]),Ne=ym(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(PB.Provider,{value:Ae},z.createElement("div",{ref:ee,className:Zb(o,a,(n={},zf(n,"".concat(o,"-disabled"),u),zf(n,"".concat(o,"-vertical"),A),zf(n,"".concat(o,"-horizontal"),!A),zf(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:Zb("".concat(o,"-rail"),null==s?void 0:s.rail),style:Bg(Bg({},H),null==l?void 0:l.rail)}),z.createElement(UB,{prefixCls:o,style:L,values:_e,startPoint:M,onStartMove:$e?je:null}),z.createElement(HB,{prefixCls:o,marks:ie,dots:G,style:W,activeStyle:U}),z.createElement(RB,{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==O||O(me(he)),be(n.values),null==$||$(me(n.values)),Oe(n.value)}},onFocus:h,onBlur:g,handleRender:q}),z.createElement(BB,{prefixCls:o,marks:ie,onClick:Ce})))}));const GB=z.forwardRef(((e,t)=>{const{open:n}=e,r=z.useRef(null),o=z.useRef(null);function a(){hy.cancel(o.current),o.current=null}return z.useEffect((()=>(n?o.current=hy((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),o.current=null})):a(),a)),[n,e.title]),z.createElement(HN,Object.assign({ref:kv(r,t)},e))})),qB=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},ix(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 nw(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"}})}},KB=(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}}},XB=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},KB(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},YB=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},KB(e,!1)),{height:"100%"})}},QB=bx("Slider",(e=>{const t=px(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[qB(t),XB(t),YB(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 JB=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 ZB=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=JB(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:g,getPrefixCls:m,getPopupContainer:b}=H.useContext(Fw),v=H.useContext(zw),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,D]=QB(C),O=Zb(o,null==g?void 0:g.className,a,{[`${C}-rtl`]:"rtl"===h},D);"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(VB,Object.assign({},p,{step:p.step,range:$,draggableTrack:j,className:O,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,D=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(E,c),O=!!D&&(w[o]||a),$=null!==(r=null!=g?g:u)&&void 0!==r?r:void 0===g&&O,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(GB,Object.assign({},h,{prefixCls:m("tooltip",null!=x?x:l),title:D?D(n.value):"",open:$,placement:k(null!=v?v:f,s),key:o,overlayClassName:`${C}-tooltip`,getPopupContainer:y||d||b}),H.cloneElement(t,j))}})))})),ez=ZB;var tz=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],nz=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=Hf(e,tz),m=ym(rx(!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=Zb(o,a,(zf(n={},"".concat(o,"-checked"),b),zf(n,"".concat(o,"-disabled"),l),n));return z.createElement("button",tg({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:w,ref:t,onKeyDown:function(e){e.which===bk.LEFT?y(!1,e):e.which===bk.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)))}));nz.displayName="Switch";const rz=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}}}}}}},oz=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}}}},az=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}}:{}}}},iz=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}}}}}},sz=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ix(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}}),ux(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"}})}},lz=bx("Switch",(e=>{const t=px(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[sz(t),iz(t),az(t),oz(t),rz(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 nw("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));var cz=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 uz=z.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=cz(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:f}=z.useContext(Fw),p=z.useContext(zw),h=(null!=o?o:p)||a,g=u("switch",n),m=z.createElement("div",{className:`${g}-handle`},a&&z.createElement(Pk,{className:`${g}-loading-icon`})),[b,v]=lz(g),y=jC(r),w=Zb(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($C,{component:"Switch"},z.createElement(nz,Object.assign({},c,{prefixCls:g,className:w,style:x,disabled:h,ref:t,loadingIcon:m}))))}));uz.__ANT_SWITCH=!0;const dz=uz;function fz(e){if(null==e)throw new TypeError("Cannot destructure "+e)}const pz=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return px(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},hz=e=>({defaultBg:new nw(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),gz=bx("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({},ix(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}}})(pz(e))),hz);var mz=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 bz=z.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=mz(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=z.useContext(Fw),d=c("tag",n),[f,p]=gz(d),h=Zb(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)}})))})),vz=bz,yz=vx(["Tag","preset"],(e=>(e=>yx(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"}}}})))(pz(e))),hz);const wz=(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"}}}},xz=vx(["Tag","status"],(e=>{const t=pz(e);return[wz(t,"success","Success"),wz(t,"processing","Info"),wz(t,"error","Error"),wz(t,"warning","Warning")]}),hz);var Sz=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 kz=(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=Sz(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:g,tag:m}=z.useContext(Fw),[b,v]=z.useState(!0);z.useEffect((()=>{"visible"in p&&v(p.visible)}),[p.visible]);const y=RN(l),w=function(e){return FN.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]=gz(k),D=Zb(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),O=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||v(!1)},[,$]=uD(d,u,(e=>null===e?z.createElement(XS,{className:`${k}-close-icon`,onClick:O}):z.createElement("span",{className:`${k}-close-icon`,onClick:O},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:D,style:S}),_,$,y&&z.createElement(yz,{key:"preset",prefixCls:k}),w&&z.createElement(xz,{key:"status",prefixCls:k}));return C(j?z.createElement($C,{component:"Tag"},N):N)},Cz=z.forwardRef(kz);Cz.CheckableTag=vz;const Ez=Cz;const Dz=(e,t)=>{const n=null!=t?t:_w(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)),Pw(r)),{controlHeight:o}),xw(Object.assign(Object.assign({},n),{controlHeight:o})))},Oz=(e,t)=>new nw(e).setAlpha(t).toRgbString(),$z=(e,t)=>new nw(e).lighten(t).toHexString(),jz=e=>{const t=mw(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]}},Pz=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Oz(r,.85),colorTextSecondary:Oz(r,.65),colorTextTertiary:Oz(r,.45),colorTextQuaternary:Oz(r,.25),colorFill:Oz(r,.18),colorFillSecondary:Oz(r,.12),colorFillTertiary:Oz(r,.08),colorFillQuaternary:Oz(r,.04),colorBgElevated:$z(n,12),colorBgContainer:$z(n,8),colorBgLayout:$z(n,0),colorBgSpotlight:$z(n,26),colorBgBlur:Oz(r,.04),colorBorder:$z(n,26),colorBorderSecondary:$z(n,19)}},_z=(e,t)=>{const n=Object.keys(Sw).map((t=>{const n=mw(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:_w(e);return Object.assign(Object.assign(Object.assign({},r),n),Cw(e,{generateColorPalettes:jz,generateNeutralColorPalettes:Pz}))};const Nz={defaultConfig:Iw,defaultSeed:Iw.token,useToken:function(){const[e,t,n]=Zw();return{theme:e,token:t,hashId:n}},defaultAlgorithm:_w,darkAlgorithm:_z,compactAlgorithm:Dz,getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?Cm(e.algorithm):Cm(_w),n=Object.assign(Object.assign({},kw),null==e?void 0:e.token);return Vm(n,{override:null==e?void 0:e.token},t,Yw)}};var Iz,Tz=function(){return Nz.useToken().token},Az=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},Fz=z.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(Iz=Az("dark"))&&void 0!==Iz&&Iz.matches?"dark":"light"}),Rz=function(){return z.useContext(Fz)},Mz=function(){var e=Tz(),t=Rz(),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:eg,appearance:n,isDarkMode:r}),Object.fromEntries(Object.entries(t).map((function(e){var t=ym(e,2);return[t[0],t[1].styles]})));var t}),[e,n,r])};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){zf(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=function(){var e=Tz(),t=Mz();return z.useMemo((function(){return Bz(Bz({},e),{},{stylish:t})}),[e,t])};function Hz(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 Wz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hz(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uz=function(e){return Wz(Wz({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},Vz=function(){var e=GF.useBreakpoint();return z.useMemo((function(){return Uz(e)}),[e])},Gz=["stylish","appearance","isDarkMode","prefixCls"],qz=["prefixCls"],Kz=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=Zh(d,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),p=f.cx,h=f.css,g=(l=Tz(),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 Uz(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=Hf(u,Gz),d=function(e){return t=e,n=g,Object.entries(t).map((function(e){var t=ym(e,2),r=t[0],o=t[1],a=o;return Xh(o)||(a=eg(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:eg,responsive:d},s)}else t=e;return"object"===Lf(t)&&(t=Xh(t)?h(t):Object.fromEntries(Object.entries(t).map((function(e){var t=ym(e,2),n=t[0],r=t[1],o=i?"".concat(a,"-").concat(n):void 0;return"object"===Lf(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=Hf(u,qz);return{styles:m,cx:p,theme:t,prefixCls:e}}),[m,u])}}},Xz=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})}},Yz=function(e){var t=z.useContext(Pg);return e.theme!==t&&(t=_g(t)(e.theme)),z.createElement(Pg.Provider,{value:t},e.children)},Qz=Pg;function Jz(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 Zz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jz(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const eH=z.memo((function(e){var t=e.children,n=e.theme,r=e.prefixCls,o=e.getStaticInstance,a=e.staticInstanceConfig,i=Rz(),s=i.appearance,l=i.isDarkMode,c=ym(eB.useMessage(null==a?void 0:a.message),2),u=c[0],d=c[1],f=ym(gB.useNotification(null==a?void 0:a.notification),2),p=f[0],h=f[1],g=ym(aB.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?Nz.darkAlgorithm:Nz.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 Zz(Zz({},t),{},{algorithm:t.algorithm?[e].concat(Mg(r)):e})}),[n,l]);return Q.jsxs(ES,{prefixCls:r,theme:v,children:[d,h,b,t]})}));function tH(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 nH(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 nH(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 nH(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 rH(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=tH(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 oH,aH=function(e){"function"==typeof z.startTransition?z.startTransition(e):e()},iH=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){aH((function(){Az("dark").matches?n("dark"):n("light")}))},a=function(){aH((function(){Az("dark").matches?r("dark"):r("light")}))};return z.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),oH||(oH=Az("dark")),oH.addEventListener("change",o),function(){oH.removeEventListener("change",o)};aH((function(){n(t)}))}),[t]),z.useLayoutEffect((function(){return oH||(oH=Az("dark")),oH.addEventListener("change",a),function(){oH.removeEventListener("change",a)}}),[]),null};const sH=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=ym(rH("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=ym(rH("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=ym(z.useState(null!==(t=Az("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=v[0],w=v[1],x=ym(z.useState(!1),2),S=x[0],k=x[1];return z.useEffect((function(){aH((function(){k(!0)}))}),[]),Q.jsxs(Fz.Provider,{value:{themeMode:p,setThemeMode:h,appearance:m,setAppearance:b,isDarkMode:"dark"===m,browserPrefers:y},children:[S&&Q.jsx(iH,{themeMode:p,setAppearance:b,setBrowserPrefers:w}),n]})}));var lH=["stylish"];function cH(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 uH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cH(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const dH=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=Rz(),c=l.appearance,u=l.isDarkMode,d=zz(),f=d.stylish,p=Hf(d,lH),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 uH(uH({},h),n instanceof Function?n({token:p,appearance:c,isDarkMode:u}):n)}),[h,n,p,c]),m=z.useMemo((function(){return o?o({token:uH(uH({},p),g),stylish:f,appearance:c,isDarkMode:u,css:eg}):{}}),[o,p,g,f,c]),b=z.useMemo((function(){return uH(uH({},m),f)}),[m,f]),v=uH(uH(uH(uH({},p),g),{},{stylish:b},l),{},{prefixCls:i});return Q.jsx(s,{theme:v,children:t})};function fH(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 pH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fH(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hH(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 gH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hH(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mH=new Gh;"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=mH);var bH,vH,yH=function(e){var t,n,r,o=gH(gH({},e),{},{key:null!==(t=e.key)&&void 0!==t?t:"zcss",speedy:null!==(n=e.speedy)&&void 0!==n&&n}),a=Bh({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=Hf(t,qb),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=Bh({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(nm,Xb(Xb({linters:u,container:h},d),{},{children:b})):b}))}(i);a.cache=mH.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=zz(),s=Rz(),l=z.useContext(o),c=z.useContext(null!=r?r:Qz)||{},u=z.useMemo((function(){return pH(pH(pH(pH({},i),s),l),{},{prefixCls:a||"ant"})}),[i,s,a,l]);return c&&0!==Object.keys(c).length?c:u}}({StyleEngineContext:u}),f=Kz({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(Ng,{styles:Th(n,void 0,Tg(Tg({},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?Xz(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?Xz(b):t||Yz,C=c||y;return Q.jsx(n.Provider,{value:{prefixCls:C,StyledThemeContext:(null==b?void 0:b.ThemeContext)||w||Qz,CustomThemeContext:x},children:Q.jsx(sH,{themeMode:h,defaultThemeMode:g,onThemeModeChange:m,defaultAppearance:f,appearance:d,onAppearanceChange:p,useTheme:e.useTheme,children:Q.jsx(eH,{prefixCls:C,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:Q.jsx(dH,{prefixCls:C,customToken:a,defaultCustomToken:S,customStylish:i,StyledThemeProvider:k,children:o})})})})}))}({styledConfig:o.styled,StyleEngineContext:u,useTheme:d}),m=Zh(a.cache,{hashPriority:o.hashPriority}).cx,b=a.injectGlobal,v=a.keyframes;return{createStyles:f,createGlobalStyle:p,createStylish:h,css:eg,cx:m,keyframes:v,injectGlobal:b,styleManager:a,useTheme:d,StyleProvider:s,ThemeProvider:g}}({key:"acss",speedy:!1}),wH=yH.createStyles,xH=yH.createGlobalStyle,SH=yH.css,kH=yH.cx,CH=yH.keyframes,EH=yH.ThemeProvider,DH=yH.StyleProvider,OH=yH.useTheme,$H=wH((function(e){var t=e.css,n=CH(bH||(bH=bp(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(vH||(vH=bp(["\n animation: "," 1s linear infinite;\n "])),n)}})),jH=["icon","size","color","fill","className","focusable","spin","fillRule","fillOpacity"],PH=["fontSize"];function _H(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 NH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_H(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const IH=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=Hf(e,jH),p=$H(),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=Hf(b,PH);return Q.jsx("span",NH(NH({className:g("anticon",c&&h.spin,s),role:"img"},f),{},{children:Q.jsx(m,NH({color:o,fill:i,fillOpacity:d,fillRule:u,focusable:l,height:v,ref:t,size:v,width:v},y))}))}));var TH,AH,FH=wH((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(TH||(TH=bp(["\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(AH||(AH=bp(["\n transition: scale 400ms ",";\n\n &:active {\n scale: 0.8;\n }\n "])),r.motionEaseOut)}})),RH=["color","fill","className","active","icon","size","style","glass","title","placement","arrow","spotlight","onClick","children","loading","tooltipDelay","fillOpacity","fillRule","focusable"];function MH(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?MH(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var BH=z.lazy((function(){return Mf((()=>Promise.resolve().then((()=>N1))),void 0)})),zH=z.lazy((function(){return Mf((()=>import("./index.js")),[])}));const HH=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=Hf(e,RH),E=FH({active:Boolean(a),glass:Boolean(u)}),D=E.styles,O=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(IH,LH({className:D.icon,icon:i},_)),I=Q.jsx(IH,LH(LH({icon:np},_),{},{spin:!0})),T=Q.jsxs("div",LH(LH({className:O(D.block,o),onClick:v?void 0:m,ref:t,style:LH({borderRadius:P,height:j,width:j},c)},C),{},{children:[Q.jsx(z.Suspense,{fallback:null,children:g&&Q.jsx(zH,{})}),v?I:N,b]}));return d?Q.jsx(z.Suspense,{fallback:T,children:Q.jsx(BH,{arrow:h,mouseEnterDelay:w,overlayStyle:{pointerEvents:"none"},placement:f,title:d,children:T})}):T}));const WH="object"==typeof global&&global&&global.Object===Object&&global;var UH="object"==typeof self&&self&&self.Object===Object&&self;const VH=(WH||UH||Function("return this")()).Symbol;var GH=Object.prototype,qH=GH.hasOwnProperty,KH=GH.toString,XH=VH?VH.toStringTag:void 0;var YH=Object.prototype.toString;var QH="[object Null]",JH="[object Undefined]",ZH=VH?VH.toStringTag:void 0;function eW(e){return null==e?void 0===e?JH:QH:ZH&&ZH in Object(e)?function(e){var t=qH.call(e,XH),n=e[XH];try{e[XH]=void 0;var r=!0}catch(Mte){}var o=KH.call(e);return r&&(t?e[XH]=n:delete e[XH]),o}(e):function(e){return YH.call(e)}(e)}function tW(e){return null!=e&&"object"==typeof e}var nW="[object Symbol]";const rW=Array.isArray;var oW=1/0,aW=VH?VH.prototype:void 0,iW=aW?aW.toString:void 0;function sW(e){if("string"==typeof e)return e;if(rW(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,sW)+"";if(function(e){return"symbol"==typeof e||tW(e)&&eW(e)==nW}(e))return iW?iW.call(e):"";var t=e+"";return"0"==t&&1/e==-oW?"-0":t}function lW(e){return null==e?"":sW(e)}function cW(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 uW=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function dW(e){return uW.test(e)}var fW,pW="\\ud800-\\udfff",hW="["+pW+"]",gW="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",mW="\\ud83c[\\udffb-\\udfff]",bW="[^"+pW+"]",vW="(?:\\ud83c[\\udde6-\\uddff]){2}",yW="[\\ud800-\\udbff][\\udc00-\\udfff]",wW="(?:"+gW+"|"+mW+")"+"?",xW="[\\ufe0e\\ufe0f]?",SW=xW+wW+("(?:\\u200d(?:"+[bW,vW,yW].join("|")+")"+xW+wW+")*"),kW="(?:"+[bW+gW+"?",gW,vW,yW,hW].join("|")+")",CW=RegExp(mW+"(?="+mW+")|"+kW+SW,"g");function EW(e){return dW(e)?function(e){return e.match(CW)||[]}(e):function(e){return e.split("")}(e)}const DW=(fW="toUpperCase",function(e){var t=dW(e=lW(e))?EW(e):void 0,n=t?t[0]:e.charAt(0),r=t?cW(t,1).join(""):e.slice(1);return n[fW]()+r});function OW(e){return DW(lW(e).toLowerCase())}var $W;const jW=($W={"À":"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==$W?void 0:$W[e]});var PW=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_W=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var NW=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var IW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var TW="\\ud800-\\udfff",AW="\\u2700-\\u27bf",FW="a-z\\xdf-\\xf6\\xf8-\\xff",RW="A-Z\\xc0-\\xd6\\xd8-\\xde",MW="\\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",LW="["+MW+"]",BW="\\d+",zW="["+AW+"]",HW="["+FW+"]",WW="[^"+TW+MW+BW+AW+FW+RW+"]",UW="(?:\\ud83c[\\udde6-\\uddff]){2}",VW="[\\ud800-\\udbff][\\udc00-\\udfff]",GW="["+RW+"]",qW="(?:"+HW+"|"+WW+")",KW="(?:"+GW+"|"+WW+")",XW="(?:['](?:d|ll|m|re|s|t|ve))?",YW="(?:['](?:D|LL|M|RE|S|T|VE))?",QW="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",JW="[\\ufe0e\\ufe0f]?",ZW=JW+QW+("(?:\\u200d(?:"+["[^"+TW+"]",UW,VW].join("|")+")"+JW+QW+")*"),eU="(?:"+[zW,UW,VW].join("|")+")"+ZW,tU=RegExp([GW+"?"+HW+"+"+XW+"(?="+[LW,GW,"$"].join("|")+")",KW+"+"+YW+"(?="+[LW,GW+qW,"$"].join("|")+")",GW+"?"+qW+"+"+XW,GW+"+"+YW,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",BW,eU].join("|"),"g");function nU(e,t,n){return e=lW(e),void 0===(t=n?void 0:t)?function(e){return IW.test(e)}(e)?function(e){return e.match(tU)||[]}(e):function(e){return e.match(NW)||[]}(e):e.match(t)||[]}var rU=RegExp("[']","g");function oU(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}(nU(function(e){return(e=lW(e))&&e.replace(PW,jW).replace(_W,"")}(t).replace(rU,"")),e,"")}}const aU=oU((function(e,t,n){return t=t.toLowerCase(),e+(n?OW(t):t)}));const iU=oU((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));const sU=oU((function(e,t,n){return e+(n?" ":"")+DW(t)}));var lU,cU=function(e){return e||"layoutkit"},uU=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"}},dU=function(e){return"number"==typeof e?"".concat(e,"px"):e},fU=["visible","flex","gap","direction","horizontal","align","justify","distribution","height","width","padding","paddingInline","paddingBlock","as","internalClassName","className","children"];function pU(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 hU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pU(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gU=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=Hf(e,fU),w=l||c,x=z.useMemo((function(){return function(e,t){return"row"===uU(e,t)}(a,i)&&!d&&function(e){if(e)return["space-between","space-around","space-evenly"].includes(e)}(w)?"100%":dU(d)}),[a,i,w,d]),S=z.useMemo((function(){return function(e){return z.forwardRef((function(t,n){return z.createElement(e,hU(hU({},t),{},{ref:n}))}))}(g||"div")}),[g]);return Q.jsx(S,hU(hU({ref:t},y),{},{className:Wh(m,Uh(lU||(lU=bp(["\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,uU(a,i),w,s,x,dU(u),dU(f),dU(p),dU(h),dU(o)),b),children:v}))}));var mU=["children","className","prefixCls"];function bU(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 vU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bU(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yU=z.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.prefixCls,a=Hf(e,mU);return Q.jsx(gU,vU(vU({ref:t,internalClassName:"".concat(cU(o),"-center"),className:r},a),{},{align:"center",justify:"center",children:n}))}));var wU=["className","prefixCls","children"];function xU(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 SU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xU(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kU=z.forwardRef((function(e,t){var n=e.className,r=e.prefixCls,o=e.children,a=Hf(e,wU);return Q.jsx(gU,SU(SU({ref:t},a),{},{internalClassName:"".concat(cU(r),"-flexbox"),className:n,children:o}))}));function CU(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var o=e[r];if("string"!=typeof o)throw new TypeError("Url must be a string. Received "+o);""!==o&&(r>0&&(o=o.replace(/^[\/]+/,"")),o=r<e.length-1?o.replace(/[\/]+$/,""):o.replace(/[\/]+$/,"/"),t.push(o))}var 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 EU=function(e){var t=e.pkg,n=e.version,r=void 0===n?"latest":n,o=e.path;return"unpkg"===e.proxy?CU("https://unpkg.com","".concat(t,"@").concat(r),o):CU("https://registry.npmmirror.com",t,r,"files",o)},DU=z.createContext(null),OU=function(e){var t=e.pkg,n=e.version,r=e.path;return EU({path:r,pkg:t,proxy:"aliyun",version:n})},$U=function(){var e=z.useContext(DU);return e?"custom"!==(null==e?void 0:e.proxy)?function(t){var n=t.pkg,r=t.version,o=t.path;return EU({path:o,pkg:n,proxy:e.proxy,version:r})}:(null==e?void 0:e.customCdnFn)||OU:OU};function jU(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 PU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jU(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _U=z.forwardRef((function(e,t){var n=z.useContext(DU),r=z.useMemo((function(){return e=(null==n?void 0:n.imgAs)||"img",z.forwardRef((function(t,n){return z.createElement(e,PU(PU({},t),{},{ref:n}))}));var e}),[n]);return Q.jsx(r,PU({ref:t},e))})),NU={"😀":"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 IU,TU,AU=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]},FU=wH((function(e){var t=e.css,n=e.token;return{container:t(IU||(IU=bp(["\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(TU||(TU=bp(["\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 RU(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 MU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RU(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const LU=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=$U(),c=ym(z.useState(!1),2),u=c[0],d=c[1],f=FU(),p=f.cx,h=f.styles,g=z.useMemo((function(){if("pure"!==a){var e=function(e){var t=AU(e);if(t)return null==NU?void 0:NU[t]}(t);if(e)switch(a){case"modern":case"flat":case"high-contrast":return l({path:"icons/".concat(a,"/").concat(iU(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:MU({fontSize:.9*s,height:s,width:s},r),children:t}):Q.jsx("div",{className:p(h.container,n),style:MU({height:s,width:s},r),children:Q.jsx(_U,{alt:t,height:s,onError:function(){return d(!0)},src:g,width:s})})}));function BU(e,t,n){return BU=ey()?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&&Qv(o,n.prototype),o},BU.apply(null,arguments)}function zU(e){var t="function"==typeof Map?new Map:void 0;return zU=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(Mte){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 BU(e,arguments,Zv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qv(n,e)},zU(e)}var HU=function(e){var t,n;function r(t){return ty(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,Qv(t,n),r}(zU(Error));function WU(e){return Math.round(255*e)}function UU(e,t,n){return WU(e)+","+WU(t)+","+WU(n)}function VU(e,t,n,r){if(void 0===r&&(r=UU),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 GU={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 qU=/^#[a-fA-F0-9]{6}$/,KU=/^#[a-fA-F0-9]{8}$/,XU=/^#[a-fA-F0-9]{3}$/,YU=/^#[a-fA-F0-9]{4}$/,QU=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,JU=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ZU=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eV=/^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 tV(e){if("string"!=typeof e)throw new HU(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return GU[t]?"#"+GU[t]:e}(e);if(t.match(qU))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(KU)){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(XU))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(YU)){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=QU.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=JU.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=ZU.exec(t);if(i){var s="rgb("+VU(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=QU.exec(s);if(!l)throw new HU(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=eV.exec(t.substring(0,50));if(c){var u="rgb("+VU(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=QU.exec(u);if(!d)throw new HU(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 HU(5)}function nV(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}}(tV(e))}var rV=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 oV(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function aV(e){return oV(Math.round(255*e))}function iV(e,t,n){return rV("#"+aV(e)+aV(t)+aV(n))}function sV(e,t,n){return VU(e,t,n,iV)}function lV(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return rV("#"+oV(e)+oV(t)+oV(n));if("object"==typeof e&&void 0===t&&void 0===n)return rV("#"+oV(e.red)+oV(e.green)+oV(e.blue));throw new HU(6)}function cV(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=tV(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?lV(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?lV(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new HU(7)}var uV=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},dV=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},fV=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},pV=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function hV(e){if("object"!=typeof e)throw new HU(8);if(dV(e))return cV(e);if(uV(e))return lV(e);if(pV(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?sV(e,t,n):"rgba("+VU(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?sV(e.hue,e.saturation,e.lightness):"rgba("+VU(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new HU(2)}(e);if(fV(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return sV(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return sV(e.hue,e.saturation,e.lightness);throw new HU(1)}(e);throw new HU(8)}function gV(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):gV(e,t,r)}}function mV(e){return gV(e,e.length,[])}function bV(e,t){if("transparent"===t)return t;var n=nV(t);return hV(tg({},n,{hue:n.hue+parseFloat(e)}))}var vV=mV(bV);function yV(e){if("transparent"===e)return 0;var t=tV(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 wV(e,t){if("transparent"===t)return t;var n,r,o,a=nV(t);return hV(tg({},a,{lightness:(n=0,r=1,o=a.lightness+parseFloat(e),Math.max(n,Math.min(r,o)))}))}var xV=mV(wV),SV="#000",kV="#fff";function CV(e,t,n,r){void 0===t&&(t=SV),void 0===n&&(n=kV),void 0===r&&(r=!0);var o,a,i,s=yV(e)>.179,l=s?t:n;return!r||(o=l,a=yV(e),i=yV(o),parseFloat((a>i?(a+.05)/(i+.05):(i+.05)/(a+.05)).toFixed(2))>=4.5)?l:s?SV:kV}function EV(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 DV=function(e){return"function"==typeof e};function OV(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 $V(e){var t=z.useRef(e);return t.current=e,t}const jV=function(e){var t=$V(e);z.useEffect((function(){return function(){t.current()}}),[])};var PV=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},_V="object"==typeof t&&t&&t.Object===Object&&t,NV=_V,IV="object"==typeof self&&self&&self.Object===Object&&self,TV=NV||IV||Function("return this")(),AV=TV.Symbol,FV=AV,RV=Object.prototype,MV=RV.hasOwnProperty,LV=RV.toString,BV=FV?FV.toStringTag:void 0;var zV=function(e){var t=MV.call(e,BV),n=e[BV];try{e[BV]=void 0;var r=!0}catch(Mte){}var o=LV.call(e);return r&&(t?e[BV]=n:delete e[BV]),o},HV=Object.prototype.toString;var WV=zV,UV=function(e){return HV.call(e)},VV=AV?AV.toStringTag:void 0;var GV=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":VV&&VV in Object(e)?WV(e):UV(e)};var qV=function(e){return null!=e&&"object"==typeof e},KV=GV,XV=qV;var YV=function(e){return"symbol"==typeof e||XV(e)&&"[object Symbol]"==KV(e)};const QV=!("undefined"==typeof window||!window.document||!window.document.createElement);function JV(e){void 0===e&&(e=!1);var t=EV(function(e,t){void 0===e&&(e=!1);var n=EV(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 ZV(e,t){if(QV)return e?DV(e)?e():"current"in e?e.current:e:t}const eG=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 ZV(e)}));if(!o.current)return o.current=!0,a.current=l,i.current=n,void(s.current=t());l.length===a.current.length&&OV(l,a.current)&&OV(n,i.current)||(null===(e=s.current)||void 0===e||e.call(s),a.current=l,i.current=n,s.current=t())})),jV((function(){var e;null===(e=s.current)||void 0===e||e.call(s),o.current=!1}))}};const tG=eG(z.useEffect);var nG=function(){this.__data__=[],this.size=0};var rG=function(e,t){return e===t||e!=e&&t!=t},oG=rG;var aG=function(e,t){for(var n=e.length;n--;)if(oG(e[n][0],t))return n;return-1},iG=aG,sG=Array.prototype.splice;var lG=aG;var cG=aG;var uG=aG;var dG=nG,fG=function(e){var t=this.__data__,n=iG(t,e);return!(n<0)&&(n==t.length-1?t.pop():sG.call(t,n,1),--this.size,!0)},pG=function(e){var t=this.__data__,n=lG(t,e);return n<0?void 0:t[n][1]},hG=function(e){return cG(this.__data__,e)>-1},gG=function(e,t){var n=this.__data__,r=uG(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function mG(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])}}mG.prototype.clear=dG,mG.prototype.delete=fG,mG.prototype.get=pG,mG.prototype.has=hG,mG.prototype.set=gG;var bG=mG,vG=bG;var yG=function(){this.__data__=new vG,this.size=0};var wG=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var xG=function(e){return this.__data__.get(e)};var SG=function(e){return this.__data__.has(e)},kG=GV,CG=PV;var EG,DG=function(e){if(!CG(e))return!1;var t=kG(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},OG=TV["__core-js_shared__"],$G=(EG=/[^.]+$/.exec(OG&&OG.keys&&OG.keys.IE_PROTO||""))?"Symbol(src)_1."+EG:"";var jG=function(e){return!!$G&&$G in e},PG=Function.prototype.toString;var _G=function(e){if(null!=e){try{return PG.call(e)}catch(Mte){}try{return e+""}catch(Mte){}}return""},NG=DG,IG=jG,TG=PV,AG=_G,FG=/^\[object .+?Constructor\]$/,RG=Function.prototype,MG=Object.prototype,LG=RG.toString,BG=MG.hasOwnProperty,zG=RegExp("^"+LG.call(BG).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var HG=function(e,t){return null==e?void 0:e[t]},WG=function(e){return!(!TG(e)||IG(e))&&(NG(e)?zG:FG).test(AG(e))},UG=HG;var VG=function(e,t){var n=UG(e,t);return WG(n)?n:void 0},GG=VG(TV,"Map"),qG=VG(Object,"create"),KG=qG;var XG=function(){this.__data__=KG?KG(null):{},this.size=0};var YG=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},QG=qG,JG=Object.prototype.hasOwnProperty;var ZG=function(e){var t=this.__data__;if(QG){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return JG.call(t,e)?t[e]:void 0},eq=qG,tq=Object.prototype.hasOwnProperty;var nq=qG;var rq=XG,oq=YG,aq=ZG,iq=function(e){var t=this.__data__;return eq?void 0!==t[e]:tq.call(t,e)},sq=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nq&&void 0===t?"__lodash_hash_undefined__":t,this};function lq(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])}}lq.prototype.clear=rq,lq.prototype.delete=oq,lq.prototype.get=aq,lq.prototype.has=iq,lq.prototype.set=sq;var cq=lq,uq=bG,dq=GG;var fq=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var pq=function(e,t){var n=e.__data__;return fq(t)?n["string"==typeof t?"string":"hash"]:n.map},hq=pq;var gq=pq;var mq=pq;var bq=pq;var vq=function(){this.size=0,this.__data__={hash:new cq,map:new(dq||uq),string:new cq}},yq=function(e){var t=hq(this,e).delete(e);return this.size-=t?1:0,t},wq=function(e){return gq(this,e).get(e)},xq=function(e){return mq(this,e).has(e)},Sq=function(e,t){var n=bq(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function kq(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])}}kq.prototype.clear=vq,kq.prototype.delete=yq,kq.prototype.get=wq,kq.prototype.has=xq,kq.prototype.set=Sq;var Cq=kq,Eq=bG,Dq=GG,Oq=Cq;var $q=bG,jq=yG,Pq=wG,_q=xG,Nq=SG,Iq=function(e,t){var n=this.__data__;if(n instanceof Eq){var r=n.__data__;if(!Dq||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Oq(r)}return n.set(e,t),this.size=n.size,this};function Tq(e){var t=this.__data__=new $q(e);this.size=t.size}Tq.prototype.clear=jq,Tq.prototype.delete=Pq,Tq.prototype.get=_q,Tq.prototype.has=Nq,Tq.prototype.set=Iq;var Aq=Tq;var Fq=Cq,Rq=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mq=function(e){return this.__data__.has(e)};function Lq(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fq;++t<n;)this.add(e[t])}Lq.prototype.add=Lq.prototype.push=Rq,Lq.prototype.has=Mq;var Bq=Lq;var zq=function(e,t){return e.has(t)},Hq=Bq,Wq=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},Uq=zq;var Vq=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 Hq: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(!Wq(t,(function(e,t){if(!Uq(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 Gq=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},qq=TV.Uint8Array,Kq=rG,Xq=Vq,Yq=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Qq=Gq,Jq=AV?AV.prototype:void 0,Zq=Jq?Jq.valueOf:void 0;var eK=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 qq(e),new qq(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Kq(+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=Yq;case"[object Set]":var l=1&r;if(s||(s=Qq),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=Xq(s(e),s(t),r,o,a,i);return i.delete(e),u;case"[object Symbol]":if(Zq)return Zq.call(e)==Zq.call(t)}return!1};var tK=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},nK=Array.isArray,rK=tK,oK=nK;var aK=function(e,t,n){var r=t(e);return oK(e)?r:rK(r,n(e))};var iK=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},sK=function(){return[]},lK=Object.prototype.propertyIsEnumerable,cK=Object.getOwnPropertySymbols,uK=cK?function(e){return null==e?[]:(e=Object(e),iK(cK(e),(function(t){return lK.call(e,t)})))}:sK,dK=uK;var fK=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},pK=GV,hK=qV;var gK=function(e){return hK(e)&&"[object Arguments]"==pK(e)},mK=qV,bK=Object.prototype,vK=bK.hasOwnProperty,yK=bK.propertyIsEnumerable,wK=gK(function(){return arguments}())?gK:function(e){return mK(e)&&vK.call(e,"callee")&&!yK.call(e,"callee")},xK={exports:{}};var SK=function(){return!1};!function(e,t){var n=TV,r=SK,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}(xK,xK.exports);var kK=xK.exports,CK=/^(?:0|[1-9]\d*)$/;var EK=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&CK.test(e))&&e>-1&&e%1==0&&e<t};var DK=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},OK=GV,$K=DK,jK=qV,PK={};PK["[object Float32Array]"]=PK["[object Float64Array]"]=PK["[object Int8Array]"]=PK["[object Int16Array]"]=PK["[object Int32Array]"]=PK["[object Uint8Array]"]=PK["[object Uint8ClampedArray]"]=PK["[object Uint16Array]"]=PK["[object Uint32Array]"]=!0,PK["[object Arguments]"]=PK["[object Array]"]=PK["[object ArrayBuffer]"]=PK["[object Boolean]"]=PK["[object DataView]"]=PK["[object Date]"]=PK["[object Error]"]=PK["[object Function]"]=PK["[object Map]"]=PK["[object Number]"]=PK["[object Object]"]=PK["[object RegExp]"]=PK["[object Set]"]=PK["[object String]"]=PK["[object WeakMap]"]=!1;var _K=function(e){return jK(e)&&$K(e.length)&&!!PK[OK(e)]};var NK=function(e){return function(t){return e(t)}},IK={exports:{}};!function(e,t){var n=_V,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(Mte){}}();e.exports=i}(IK,IK.exports);var TK=IK.exports,AK=_K,FK=NK,RK=TK&&TK.isTypedArray,MK=RK?FK(RK):AK,LK=fK,BK=wK,zK=nK,HK=kK,WK=EK,UK=MK,VK=Object.prototype.hasOwnProperty;var GK=function(e,t){var n=zK(e),r=!n&&BK(e),o=!n&&!r&&HK(e),a=!n&&!r&&!o&&UK(e),i=n||r||o||a,s=i?LK(e.length,String):[],l=s.length;for(var c in e)!t&&!VK.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||WK(c,l))||s.push(c);return s},qK=Object.prototype;var KK=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qK)};var XK=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),YK=KK,QK=XK,JK=Object.prototype.hasOwnProperty;var ZK=function(e){if(!YK(e))return QK(e);var t=[];for(var n in Object(e))JK.call(e,n)&&"constructor"!=n&&t.push(n);return t},eX=DG,tX=DK;var nX=GK,rX=ZK,oX=function(e){return null!=e&&tX(e.length)&&!eX(e)};var aX=function(e){return oX(e)?nX(e):rX(e)},iX=aK,sX=dK,lX=aX;var cX=function(e){return iX(e,lX,sX)},uX=cX,dX=Object.prototype.hasOwnProperty;var fX=function(e,t,n,r,o,a){var i=1&n,s=uX(e),l=s.length;if(l!=uX(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:dX.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},pX=VG(TV,"DataView"),hX=VG(TV,"Promise"),gX=VG(TV,"Set"),mX=pX,bX=GG,vX=hX,yX=gX,wX=VG(TV,"WeakMap"),xX=GV,SX=_G,kX="[object Map]",CX="[object Promise]",EX="[object Set]",DX="[object WeakMap]",OX="[object DataView]",$X=SX(mX),jX=SX(bX),PX=SX(vX),_X=SX(yX),NX=SX(wX),IX=xX;(mX&&IX(new mX(new ArrayBuffer(1)))!=OX||bX&&IX(new bX)!=kX||vX&&IX(vX.resolve())!=CX||yX&&IX(new yX)!=EX||wX&&IX(new wX)!=DX)&&(IX=function(e){var t=xX(e),n="[object Object]"==t?e.constructor:void 0,r=n?SX(n):"";if(r)switch(r){case $X:return OX;case jX:return kX;case PX:return CX;case _X:return EX;case NX:return DX}return t});var TX=Aq,AX=Vq,FX=eK,RX=fX,MX=IX,LX=nK,BX=kK,zX=MK,HX="[object Arguments]",WX="[object Array]",UX="[object Object]",VX=Object.prototype.hasOwnProperty;var GX=function(e,t,n,r,o,a){var i=LX(e),s=LX(t),l=i?WX:MX(e),c=s?WX:MX(t),u=(l=l==HX?UX:l)==UX,d=(c=c==HX?UX:c)==UX,f=l==c;if(f&&BX(e)){if(!BX(t))return!1;i=!0,u=!1}if(f&&!u)return a||(a=new TX),i||zX(e)?AX(e,t,n,r,o,a):FX(e,t,l,n,r,o,a);if(!(1&n)){var p=u&&VX.call(e,"__wrapped__"),h=d&&VX.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return a||(a=new TX),o(g,m,n,r,a)}}return!!f&&(a||(a=new TX),RX(e,t,n,r,o,a))},qX=GX,KX=qV;var XX=function e(t,n,r,o,a){return t===n||(null==t||null==n||!KX(t)&&!KX(n)?t!=t&&n!=n:qX(t,n,r,o,e,a))},YX=XX;var QX=function(e,t){return YX(e,t)};function JX(e,t,n){void 0===n&&(n={});var r=$V(t);tG((function(){var t=ZV(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 ZX(e){var t=z.useRef(0),n=EV(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 jV((function(){cancelAnimationFrame(t.current)})),[r,a]}var eY=eG(z.useLayoutEffect);const tY=QV?eY:tG;const nY=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 rY,oY,aY,iY,sY,lY=wH((function(e,t){var n=e.token,r=e.css,o=e.stylish,a=e.prefixCls;return{container:r(rY||(rY=bp(["\n cursor: pointer;\n width: ","px;\n height: ","px;\n border-radius: ","px;\n "])),n.controlHeight,n.controlHeight,n.borderRadius),drawer:r(oY||(oY=bp(["\n &.","-drawer-content {\n background: transparent;\n }\n\n .","-drawer-body {\n display: flex;\n flex-direction: column;\n }\n "])),a,a),drawerRoot:r(aY||(aY=bp(["\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,cV(n.colorBgLayout,.5)),fillRect:r(iY||(iY=bp(["\n flex: 1;\n width: 100%;\n border-top: none;\n "]))),menu:r(sY||(sY=bp(["\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)}})),cY=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];function uY(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 dY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uY(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const fY=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=Hf(e,cY),u=lY(l),d=u.cx,f=u.styles;return Q.jsxs(yU,dY(dY({className:d(f.container,i),onClick:function(){a(!o)}},c),{},{children:[Q.jsx(HH,{icon:o?hp:rp,size:"site"}),Q.jsxs(UM,{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(WT,{className:f.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),Q.jsx("div",{className:f.fillRect})]})]}))}));var pY,hY,gY=["icon","children","size"];function mY(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 bY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mY(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vY=wH((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(pY||(pY=bp(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(hY||(hY=bp(["\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 yY=z.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,a=Hf(e,gY),i=vY(),s=i.styles,l=i.cx;return Q.jsx(Ez,bY(bY({bordered:!1,className:l(s.tag,"small"===o&&s.small)},a),{},{children:Q.jsxs(kU,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}));var wY={exports:{}},xY={},SY=z;var kY="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},CY=SY.useState,EY=SY.useEffect,DY=SY.useLayoutEffect,OY=SY.useDebugValue;function $Y(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kY(e,n)}catch(r){return!0}}var jY="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=CY({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return DY((function(){o.value=n,o.getSnapshot=t,$Y(o)&&a({inst:o})}),[e,n,t]),EY((function(){return $Y(o)&&a({inst:o}),e((function(){$Y(o)&&a({inst:o})}))}),[e]),OY(n),n};xY.useSyncExternalStore=void 0!==SY.useSyncExternalStore?SY.useSyncExternalStore:jY,wY.exports=xY;var PY,_Y,NY=wY.exports,IY={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"]}},TY=["children","title","className","wrapClassName","width","onCancel","open","destroyOnClose"];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){zf(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}var RY=wH((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{content:t(PY||(PY=bp(["\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(_Y||(_Y=bp(["\n overflow: hidden auto;\n backdrop-filter: blur(2px);\n "])))}}));const MY=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=Hf(e,TY),d=Vz().mobile,f=RY(),p=f.styles,h=f.cx,g=f.theme;return d?Q.jsx(UM,{closeIcon:Q.jsx(HH,{icon:hp,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:FY({body:{padding:0},header:{padding:"8px 4px"}},u.styles),title:n,children:t}):Q.jsx(ES,{theme:{token:{colorBgElevated:xV(.005,g.colorBgContainer)}},children:Q.jsx(aB,FY(FY({className:h(p.content,r),closable:!0,closeIcon:Q.jsx(IH,{icon:hp,size:{fontSize:20}}),destroyOnClose:c,maskClosable:!0,onCancel:s,open:l,title:n,width:i,wrapClassName:h(p.wrap,o)},u),{},{children:t}))})}));var LY,BY,zY,HY,WY,UY,VY,GY,qY,KY,XY,YY,QY,JY,ZY,eQ,tQ,nQ,rQ,oQ,aQ,iQ=globalThis&&globalThis.__extends||(LY=function(e,t){return(LY=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}LY(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),sQ=globalThis&&globalThis.__assign||function(){return sQ=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},sQ.apply(this,arguments)},lQ={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},cQ={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},uQ={width:"20px",height:"20px",position:"absolute"},dQ={top:sQ(sQ({},lQ),{top:"-5px"}),right:sQ(sQ({},cQ),{left:void 0,right:"-5px"}),bottom:sQ(sQ({},lQ),{top:void 0,bottom:"-5px"}),left:sQ(sQ({},cQ),{left:"-5px"}),topRight:sQ(sQ({},uQ),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:sQ(sQ({},uQ),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:sQ(sQ({},uQ),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:sQ(sQ({},uQ),{left:"-10px",top:"-10px",cursor:"nw-resize"})},fQ=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 iQ(t,e),t.prototype.render=function(){return z.createElement("div",{className:this.props.className||"",style:sQ(sQ({position:"absolute",userSelect:"none"},dQ[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(z.PureComponent),pQ=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)}}(),hQ=globalThis&&globalThis.__assign||function(){return hQ=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},hQ.apply(this,arguments)},gQ={width:"auto",height:"auto"},mQ=function(e,t,n){return Math.max(Math.min(e,n),t)},bQ=function(e,t){return Math.round(e/t)*t},vQ=function(e,t){return new RegExp(e,"i").test(t)},yQ=function(e){return Boolean(e.touches&&e.touches.length)},wQ=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},xQ=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"},SQ=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},kQ=["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"],CQ="__resizable_base__",EQ=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(CQ):t.className+=CQ,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 pQ(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||gQ},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 xQ(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?xQ(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?xQ(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&&vQ("left",a),s=o&&vQ("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 vQ("right",a)&&(d=i.width+(e-i.x)*r/n,l&&(f=(d-h)/this.ratio+p)),vQ("left",a)&&(d=i.width-(e-i.x)*r/n,l&&(f=(d-h)/this.ratio+p)),vQ("bottom",a)&&(f=i.height+(t-i.y)*r/n,l&&(d=(f-p)*this.ratio+h)),vQ("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=mQ(e,v,y),t=mQ(t,w,x)}else e=mQ(e,l,c),t=mQ(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&&yQ(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:hQ(hQ({},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&&yQ(e))try{e.preventDefault(),e.stopPropagation()}catch(Mte){}var n=this.props,r=n.maxWidth,o=n.maxHeight,a=n.minWidth,i=n.minHeight,s=yQ(e)?e.touches[0].clientX:e.clientX,l=yQ(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=SQ(r,e.width,t,n),o=SQ(o,e.height,t,n),a=SQ(a,e.width,t,n),i=SQ(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=wQ(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(b=wQ(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=bQ(v,this.props.grid[0]),S=bQ(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:hQ(hQ({},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(fQ,{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!==kQ.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=hQ(hQ(hQ({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,hQ({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),DQ=16,OQ="draggable-panel",$Q=wH((function(e,t){var n=e.token,r=SH(BY||(BY=bp(["\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=SH(zY||(zY=bp(["\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=SH(HY||(HY=bp(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:kH(a,SH(WY||(WY=bp(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:kH("".concat(OQ,"-bottom-handle"),SH(UY||(UY=bp(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:kH(OQ,SH(VY||(VY=bp(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,OQ)),fixed:SH(GY||(GY=bp(["\n position: relative;\n "]))),fullscreen:SH(qY||(qY=bp(["\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:SH(KY||(KY=bp(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:kH(a,SH(XY||(XY=bp(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:kH(SH(YY||(YY=bp(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(OQ,"-left-handle")),panel:kH("".concat(OQ,"-fixed"),SH(QY||(QY=bp(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:kH(a,SH(JY||(JY=bp(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:kH(SH(ZY||(ZY=bp(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(OQ,"-right-handle")),toggleBottom:kH("".concat(OQ,"-toggle"),"".concat(OQ,"-toggle-bottom"),o,SH(eQ||(eQ=bp(["\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,DQ,40)),toggleLeft:kH("".concat(OQ,"-toggle"),"".concat(OQ,"-toggle-left"),o,SH(tQ||(tQ=bp(["\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,DQ,DQ,40)),toggleRight:kH("".concat(OQ,"-toggle"),"".concat(OQ,"-toggle-right"),o,SH(nQ||(nQ=bp(["\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,DQ,DQ,40)),toggleTop:kH("".concat(OQ,"-toggle"),"".concat(OQ,"-toggle-top"),o,SH(rQ||(rQ=bp(["\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,DQ,40,DQ)),topFloat:kH(a,SH(oQ||(oQ=bp(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:kH("".concat(OQ,"-top-handle"),SH(aQ||(aQ=bp(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),jQ=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};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){zf(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}const NQ=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,D=e.defaultSize,O=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=EV(JV(!1),2),l=s[0],c=s[1],u=c.setTrue,d=c.setFalse,JX("mouseenter",(function(){null==o||o(),u(),null==i||i(!0)}),{target:t}),JX("mouseleave",(function(){null==a||a(),d(),null==i||i(!1)}),{target:t}),l),q="top"===S||"bottom"===S,K=$Q(p),X=K.styles,Y=K.cx,J=ym(rH(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=ym(z.useState(!0),2),ne=te[0],re=te[1],oe=ym(z.useState(!1),2),ae=oe[0],ie=oe[1],se=!1!==k&&Z,le=z.useMemo((function(){return se?zf({},jQ(S),X["".concat(jQ(S),"Handle")]):{}}),[se,S]),ce=_Q(zf({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},jQ(S),!0),k),ue=z.useMemo((function(){return _Q(q?{height:180,width:"100%"}:{height:"100%",width:280},D)}),[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 O?Math.max(O,0):O,size:E}:q?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},fe=z.useMemo((function(){switch(S){case"top":return{Arrow:qf,className:"Bottom"};case"bottom":return{Arrow:Yf,className:"Top"};case"right":return{Arrow:Kf,className:"Left"};case"left":return{Arrow:Xf,className:"Right"}}}),[X,S]),pe=fe.Arrow,he=fe.className,ge=Q.jsx(yU,{className:Y(X["toggle".concat(he)],U.handle),style:{opacity:Z?b?void 0:0:L?1:0},children:Q.jsx(yU,{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(EQ,_Q(_Q({},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:_Q({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?zf({},"border".concat(he,"Width"),1):{},children:[I&&ne&&ge,B?Z&&me:me]})}));var IQ,TQ,AQ,FQ,RQ=wH((function(e){var t=e.css,n=e.token;return{body:t(IQ||(IQ=bp(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(TQ||(TQ=bp(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(AQ||(AQ=bp(["\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(FQ||(FQ=bp(["\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)}})),MQ=["className","children"];function LQ(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 BQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LQ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zQ=z.memo((function(e){var t=e.className,n=e.children,r=Hf(e,MQ),o=RQ(),a=o.cx,i=o.styles;return Q.jsx("div",BQ(BQ({className:a(i.body,t)},r),{},{children:n}))}));var HQ=["className","children"];function WQ(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?WQ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const VQ=z.memo((function(e){var t=e.className,n=e.children,r=Hf(e,HQ),o=RQ(),a=o.cx,i=o.styles;return Q.jsx("div",UQ(UQ({className:a(i.container,t)},r),{},{children:n}))}));var GQ=["className","children"];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 KQ(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){zf(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 XQ=z.memo((function(e){var t=e.className,n=e.children,r=Hf(e,GQ),o=RQ(),a=o.cx,i=o.styles;return Q.jsx("div",KQ(KQ({className:a(i.footer,t)},r),{},{children:n}))}));var YQ=["pin","setPin","className","setExpand","title","position"];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){zf(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.pin,n=e.setPin,r=e.className,o=e.setExpand,a=e.title,i=e.position,s=void 0===i?"left":i,l=Hf(e,YQ),c=RQ(),u=c.cx,d=c.styles,f=Q.jsx(HH,{icon:sp,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),p=Q.jsx(HH,{active:t,icon:t?up:cp,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return Q.jsxs("div",JQ(JQ({className:u(d.header,r)},l),{},{children:["left"===s?f:p,a,"left"===s?p:f]}))}));var eJ=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 tJ=n(eJ);const nJ=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 rJ,oJ,aJ=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:Zb("".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:Zb("".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)))})))},iJ=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],sJ=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=Hf(e,iJ),p=Zb("".concat(n),r,zf({},"".concat(n,"-").concat(d),!!d)),h="number"==typeof s&&s>0;return H.createElement("footer",Bg(Bg({},f),{},{className:p,style:Bg(Bg({},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=Bg({},a);return h&&(u.flex="0 0 ".concat(100/(s+1)+.1,"%")),H.createElement(aJ,{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)))},lJ=wH((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(rJ||(rJ=bp(["\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(oJ||(oJ=bp(["\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 cJ=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=lJ({contentMaxWidth:a,isEmpty:i}).styles;return Q.jsx("section",{className:s.container,children:Q.jsx(sJ,{bottom:n,className:s.footer,columns:t,theme:r})})}));var uJ,dJ,fJ,pJ,hJ,gJ,mJ,bJ,vJ,yJ,wJ,xJ,SJ,kJ=wH((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(uJ||(uJ=bp(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(dJ||(dJ=bp(["\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(fJ||(fJ=bp(["\n .","-collapse-content {\n background: transparent;\n }\n\n .","-collapse-header {\n background: ",";\n }\n "])),l,l,a.colorFillTertiary),r(pJ||(pJ=bp(["\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(hJ||(hJ=bp(["\n transition: all 100ms ",";\n "])),a.motionEaseOut),item:r(gJ||(gJ=bp(["\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(mJ||(mJ=bp(["\n .","-form-item-control {\n width: ",";\n }\n "])),l,(n=t,"number"==typeof n||tW(n)&&"[object Number]"==eW(n)?"".concat(t,"px"):t)),s.mobile,t?r(bJ||(bJ=bp(["\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(vJ||(vJ=bp(["\n .","-row {\n flex-wrap: wrap;\n gap: 4px;\n }\n "])),l)),itemNoDivider:r(yJ||(yJ=bp(["\n &:not(:first-child) {\n padding-top: 0;\n }\n "]))),mobileGroupBody:r(wJ||(wJ=bp(["\n padding: 0 16px;\n background: ",";\n "])),a.colorBgContainer),mobileGroupHeader:r(xJ||(xJ=bp(["\n padding: 16px;\n background: ",";\n "])),a.colorBgLayout),title:r(SJ||(SJ=bp(["\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)}})),CJ=["className","children"];function EJ(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 DJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EJ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const OJ=z.memo((function(e){var t=e.className,n=e.children,r=Hf(e,CJ),o=kJ(),a=o.cx,i=o.styles;return Q.jsx("div",DJ(DJ({className:a(i.footer,t)},r),{},{children:n}))}));var $J=["className","icon","title","children","extra"];function jJ(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 PJ=z.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,a=e.extra,i=Hf(e,$J),s=Vz().mobile,l=kJ(),c=l.cx,u=l.styles,d=Q.jsxs("div",{className:u.title,children:[n&&Q.jsx(IH,{icon:n}),r]});return s?Q.jsxs(kU,{className:t,children:[Q.jsxs(kU,{className:u.mobileGroupHeader,horizontal:!0,justify:"space-between",children:[d,a]}),Q.jsx("div",{className:u.mobileGroupBody,children:o})]}):Q.jsx(lR,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jJ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jJ(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(IH,{className:u.icon,icon:qf,size:{fontSize:16},style:t?{}:{rotate:"-90deg"}})},items:[{children:o,extra:a,key:1,label:d}]},i),1)}));const _J=PJ;var NJ=["style"];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){zf(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=e.style,n=Hf(e,NJ);return Q.jsx(fR,TJ({style:TJ({margin:0,opacity:.5},t)},n))}));const FJ=z.memo((function(e){var t=e.className,n=e.tag,r=e.title,o=e.desc,a=e.avatar,i=kJ(),s=i.cx,l=i.styles,c=Q.jsxs("div",{className:s(l.formTitle,t),children:[Q.jsxs(kU,{align:"center",direction:"horizontal",gap:8,children:[r,n&&Q.jsx(yY,{children:n})]}),o&&Q.jsx("small",{children:o})]});return a?Q.jsxs(kU,{align:"center",gap:8,horizontal:!0,children:[a,c]}):c}));var RJ=["desc","tag","minWidth","avatar","className","label","children","divider"];function MJ(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 LJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MJ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var BJ=VL.Item;const zJ=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=Hf(e,RJ),u=kJ(r),d=u.cx,f=u.styles;return Q.jsxs(Q.Fragment,{children:[l&&Q.jsx(AJ,{}),Q.jsx(BJ,LJ(LJ({className:d(f.item,!l&&f.itemNoDivider,a),label:Q.jsx(FJ,{avatar:o,desc:t,tag:n,title:i})},c),{},{children:s}))]})}));var HJ,WJ,UJ=wH((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=e.responsive;return{footer:t(HJ||(HJ=bp(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),form:t(WJ||(WJ=bp(["\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)}})),VJ=["className","itemMinWidth","footer","form","items","children"];function GJ(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 qJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GJ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var KJ=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=Hf(e,VJ),c=UJ(),u=c.cx,d=c.styles;return Q.jsxs(VL,qJ(qJ({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(_J,{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(zJ,qJ({divider:0!==t,minWidth:r},e),t)}))},t)})),s,o&&Q.jsx(OJ,{children:o})]}))}));KJ.Item=zJ,KJ.Group=_J;const XJ=KJ;var YJ,QJ={};function JJ(){return YJ||(YJ=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(Mte){Promise.reject(Mte)}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(Fte){throw t=!1,this._$Ek(),Fte}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,D=()=>E.createComment(""),O=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],D()),z.nextNode(),s.push({type:2,index:++o});r.append(e[t],D())}}}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=O(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),O(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&&O(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(D()),this.k(D()),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=!O(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=!O(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(D(),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)}(QJ)),QJ}const ZJ=Q,eZ=z;var tZ=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]=eZ.useState(!1);return eZ.useEffect((()=>{g||(Promise.resolve().then((()=>JJ())),m(!0))}),[]),g?ZJ.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 nZ=n(tZ);var rZ,oZ=function(e){return["zh_CN","zh_TW"].includes(e)?e.replace("_","-"):"zh_HK"===e?"zh-TW":e.split("_")[0]},aZ=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"];function iZ(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 sZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iZ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const lZ=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=Hf(e,aZ),v=OH(),y=Rz().isDarkMode,w=z.useMemo((function(){return btoa(function(e,t){var n=t?"dark":"light",r=IY.gray[n][11],o=IY.gray[n][10],a=IY.gray[n][7],i=t?IY.red[n][9]:IY.volcano[n][9],s=t?IY.gold[n][9]:IY.orange[n][9],l=t?IY.lime[n][9]:IY.green[n][9],c=t?IY.blue[n][9]:IY.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 SH(rZ||(rZ=bp(["\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,cV(i,.4),o,cV(i,.6),l,s,c,o,o,o,cV(i,.2),l,cV(l,.2),s,cV(i,.2),o,cV(c,.2),s,o,a,c,e.colorText,e.colorFillTertiary,e.colorBorderSecondary,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,CV(e.colorPrimary),e.colorPrimary,e.colorPrimaryBorder,e.colorPrimaryHover,e.colorPrimaryBorderHover,e.colorPrimaryActive,cV(CV(e.colorPrimary),.5),cV(e.colorPrimary,.5),cV(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(nZ,sZ({emitMetadata:m,id:f,inputPosition:u,lang:oZ(l),loading:h,mapping:i,reactionsEnabled:o,theme:"data:text/css;base64,".concat(w)},b))})}));var cZ,uZ,dZ=wH((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(cZ||(cZ=bp(["\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(uZ||(uZ=bp(["\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)}})),fZ=["glow","children","className","size"];function pZ(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 hZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pZ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const gZ=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=Hf(e,fZ),l=dZ(i),c=l.styles,u=l.cx;return Q.jsxs(TE,hZ(hZ({className:u(c.button,o),size:i},s),{},{children:[n&&Q.jsx("div",{className:c.glow}),r]}))}));var mZ,bZ,vZ,yZ,wZ=wH((function(e){var t=e.css,n=e.responsive,r=e.token,o=e.cx;return{content:t(mZ||(mZ=bp(["\n height: 64px;\n padding: 0 24px;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n "," {\n padding: 0 12px;\n }\n "])),cV(r.colorBgLayout,.4),r.colorSplit,n.mobile),header:o(t(bZ||(bZ=bp(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:t(vZ||(vZ=bp(["\n z-index: 10;\n "]))),right:t(yZ||(yZ=bp(["\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)}})),xZ=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"];function SZ(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 kZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SZ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const CZ=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=Hf(e,xZ),f=Vz().mobile,p=wZ(),h=p.cx,g=p.styles;return Q.jsx("section",kZ(kZ({className:h(g.header,u)},d),{},{children:Q.jsx(kU,{align:"center",className:g.content,distribution:"space-between",horizontal:!0,width:"auto",children:f?Q.jsxs(Q.Fragment,{children:[Q.jsx(kU,{className:t,style:kZ({flex:0},c),children:o}),Q.jsx(kU,{className:h(g.left,r),horizontal:!0,style:kZ({flex:1,overflow:"hidden"},l),children:a}),Q.jsx(kU,{className:t,style:kZ({flex:0},s),children:i})]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(kU,{className:h(g.left,r),horizontal:!0,style:kZ({flex:0},l),children:a}),Q.jsx(kU,{className:n,style:kZ({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(kU,{align:"center",gap:8,horizontal:!0,children:i})]})]})})}))}));function EZ(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 DZ=Uf("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 OZ=function(e){return Q.jsx(DZ,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EZ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({style:{overflow:"visible"}},e))};var $Z,jZ,PZ,_Z,NZ,IZ,TZ,AZ,FZ,RZ,MZ=wH((function(e,t){var n=e.css,r=e.stylish,o=e.responsive,a=n($Z||($Z=bp(["\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(jZ||(jZ=bp(["\n overflow-x: hidden;\n overflow-y: auto;\n height: 100vh;\n "]))),aside:n(PZ||(PZ=bp(["\n position: sticky;\n z-index: 2;\n height: 100%;\n "]))),asideInner:n(_Z||(_Z=bp(["\n overflow-x: hidden;\n overflow-y: auto;\n width: 100%;\n height: calc(100vh - ","px);\n "])),t),content:n(NZ||(NZ=bp(["\n position: relative;\n flex: 1;\n max-width: 100%;\n "]))),footer:n(IZ||(IZ=bp(["\n position: relative;\n max-width: 100%;\n "]))),glass:n(TZ||(TZ=bp(["\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(AZ||(AZ=bp(["\n position: sticky;\n z-index: 999;\n top: 0;\n max-width: 100%;\n "]))),main:n(FZ||(FZ=bp(["\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n "]))),toc:n(RZ||(RZ=bp([""])))}})),LZ=["headerHeight","children","className","style"],BZ=["children","className"],zZ=["headerHeight","children","className","style"],HZ=["headerHeight","children","className"];function WZ(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 UZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WZ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var VZ=z.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,a=Hf(e,LZ),i=MZ(t),s=i.cx,l=i.styles;return Q.jsxs("header",UZ(UZ({className:s(l.header,r),style:UZ({height:t},o)},a),{},{children:[Q.jsx("div",{className:l.glass}),n]}))})),GZ=z.memo((function(e){var t=e.children,n=e.className,r=Hf(e,BZ),o=MZ(),a=o.cx,i=o.styles;return Q.jsx("main",UZ(UZ({className:a(i.main,n)},r),{},{children:t}))})),qZ=z.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,a=Hf(e,zZ),i=MZ(t),s=i.cx,l=i.styles;return Q.jsx("aside",UZ(UZ({className:s(l.aside,r),style:UZ({top:t},o)},a),{},{children:n}))})),KZ=z.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=Hf(e,HZ),a=MZ(t),i=a.cx,s=a.styles;return Q.jsx("div",UZ(UZ({className:i(s.asideInner,r)},o),{},{children:n}))}));function XZ(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 YZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XZ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const QZ=z.memo((function(e){var t=Object.assign({},(fz(e),e));return Q.jsx("svg",YZ(YZ({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 JZ(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 ZZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JZ(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const e0=z.memo((function(e){var t=Object.assign({},(fz(e),e));return Q.jsxs("svg",ZZ(ZZ({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 t0(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 n0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t0(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const r0=z.memo((function(e){var t=Object.assign({},(fz(e),e));return Q.jsx("svg",n0(n0({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 o0,a0={path:"assets/logo-3d.webp",pkg:"@lobehub/assets-logo",version:"1.1.0"},i0={path:"assets/logo-flat.svg",pkg:"@lobehub/assets-logo",version:"1.1.0"},s0=wH((function(e){return{extraTitle:(0,e.css)(o0||(o0=bp(["\n font-weight: 300;\n white-space: nowrap;\n "])))}})),l0=["type","size","style","extra","className"];function c0(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 u0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c0(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d0=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=Hf(e,l0),u=$U(),d=OH(),f=s0().styles;switch(r){case"3d":t=Q.jsx(_U,u0({alt:"lobehub",height:a,src:u(a0),style:i,width:a},c));break;case"flat":t=Q.jsx(_U,{alt:"lobehub",height:a,src:u(i0),style:i,width:a});break;case"high-contrast":t=Q.jsx(e0,u0({height:a,style:i,width:a},c));break;case"text":t=Q.jsx(r0,u0({className:l,height:a,style:i,width:2.9375*a},c));break;case"combine":t=Q.jsxs(Q.Fragment,{children:[Q.jsx(_U,{alt:"lobehub",height:a,src:u(a0),width:a}),Q.jsx(r0,{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(kU,u0(u0({align:"center",className:l,horizontal:!0,style:i},c),{},{children:[t,Q.jsx(QZ,{style:{color:d.colorFill,height:p,width:p}}),Q.jsx("div",{className:f.extraTitle,style:{fontSize:p},children:s})]}))}));var f0,p0,h0,g0,m0,b0,v0,y0,w0,x0=function(e){var t,n=e.type,r=e.scale,o=e.appearance,a=OW(n),i="dark"===o;return zf(t={},"color".concat(a,"Bg"),r[o][1]),zf(t,"color".concat(a,"BgHover"),r[o][2]),zf(t,"color".concat(a,"Border"),r[o][4]),zf(t,"color".concat(a,"BorderHover"),r[o][i?5:3]),zf(t,"color".concat(a,"Hover"),r[o][i?10:8]),zf(t,"color".concat(a),r[o][9]),zf(t,"color".concat(a,"Active"),r[o][i?7:10]),zf(t,"color".concat(a,"TextHover"),r[o][i?10:8]),zf(t,"color".concat(a,"Text"),r[o][9]),zf(t,"color".concat(a,"TextActive"),r[o][i?7:10]),t},S0=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]}},k0={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"]}},C0={blue:IY.blue.dark[9],cyan:IY.cyan.dark[9],geekblue:IY.geekblue.dark[9],gold:IY.gold.dark[9],green:IY.green.dark[9],lime:IY.lime.dark[9],magenta:IY.magenta.dark[9],orange:IY.orange.dark[9],purple:IY.purple.dark[9],red:IY.red.dark[9],volcano:IY.volcano.dark[9],yellow:IY.yellow.dark[9]},E0=[C0.red,C0.orange,C0.gold,C0.yellow,C0.lime,C0.green,C0.cyan,C0.blue,C0.geekblue,C0.purple,C0.magenta,C0.volcano],D0={mauve:k0.mauve.dark[9],olive:k0.olive.dark[9],sage:k0.sage.dark[9],sand:k0.sand.dark[9],slate:k0.slate.dark[9]},O0=[D0.mauve,D0.slate,D0.sage,D0.olive,D0.sand];function $0(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 j0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$0(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P0(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 _0(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 _0(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 _0(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 N0,I0,T0=function(e){var t,n=e.name,r=e.scale,o=e.appearance,a={},i=P0(r[o].entries());try{for(i.s();!(t=i.n()).done;){var s=ym(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=P0(r["".concat(o,"A")].entries());try{for(d.s();!(u=d.n()).done;){var f=ym(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 j0(j0({},a),function(e){var t,n=e.name,r=e.scale,o=e.appearance;return zf(t={},"".concat(n,"Bg"),r["".concat(o,"A")][1]),zf(t,"".concat(n,"BgHover"),r["".concat(o,"A")][2]),zf(t,"".concat(n,"Border"),r[o][4]),zf(t,"".concat(n,"BorderSecondary"),r[o][3]),zf(t,"".concat(n,"BorderHover"),r[o][5]),zf(t,"".concat(n,"Hover"),r[o][10]),zf(t,"".concat(n),r[o][9]),zf(t,"".concat(n,"Active"),r[o][7]),zf(t,"".concat(n,"TextHover"),r["".concat(o,"A")][10]),zf(t,"".concat(n,"Text"),r["".concat(o,"A")][9]),zf(t,"".concat(n,"TextActive"),r["".concat(o,"A")][7]),t}({appearance:o,name:n,scale:r}))},A0=wH((function(e,t){var n=e.css,r=e.token;return{active:n(N0||(N0=bp(["\n box-shadow: 0 0 0 2px ",";\n "])),r.colorTextTertiary),container:n(I0||(I0=bp(["\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 F0=z.memo((function(e){var t=e.colors,n=e.activeColor,r=e.onSelect,o=e.size,a=void 0===o?24:o,i=OH(),s=A0(a),l=s.cx,c=s.styles;return Q.jsxs(kU,{gap:8,horizontal:!0,style:{flexWrap:"wrap"},children:[Q.jsx(kU,{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(kU,{className:l(c.container,t&&c.active),onClick:function(){null==r||r(e)},style:{background:e}},e)}))]})}));var R0,M0=wH((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=".".concat(r,"-tabs");return{tabs:t(R0||(R0=bp(["\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)}})),L0=["className"];function B0(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 z0=z.memo((function(e){var t=e.className,n=Hf(e,L0),r=M0(),o=r.styles,a=r.cx;return Q.jsx(IF,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B0(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:a(o.tabs,t)},n))}));const H0=z0;function W0(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 U0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W0(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V0=x0({appearance:"dark",scale:IY.bnw,type:"Primary"}),G0=S0({appearance:"dark",scale:IY.gray}),q0=x0({appearance:"dark",scale:IY.lime,type:"Success"}),K0=x0({appearance:"dark",scale:IY.gold,type:"Warning"}),X0=x0({appearance:"dark",scale:IY.red,type:"Error"}),Y0=x0({appearance:"dark",scale:IY.blue,type:"Info"});const Q0=U0(U0(U0(U0(U0(U0(U0({},V0),G0),q0),K0),X0),Y0),{},{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:Y0.colorInfoText,colorLinkActive:Y0.colorInfoTextActive,colorLinkHover:Y0.colorInfoTextHover,colorTextLightSolid:G0.colorBgLayout});function J0(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 Z0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J0(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var e1=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},a={},i=IY[n];i&&(o=x0({appearance:"dark",scale:i,type:"Primary"}));var s=k0[r];return s&&(a=S0({appearance:"dark",scale:s})),Z0(Z0(Z0(Z0({},t),Q0),o),a)};function t1(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 n1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t1(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var r1=x0({appearance:"light",scale:IY.bnw,type:"Primary"}),o1=S0({appearance:"light",scale:IY.gray}),a1=x0({appearance:"light",scale:IY.green,type:"Success"}),i1=x0({appearance:"light",scale:IY.orange,type:"Warning"}),s1=x0({appearance:"light",scale:IY.volcano,type:"Error"}),l1=x0({appearance:"light",scale:IY.geekblue,type:"Info"});const c1=n1(n1(n1(n1(n1(n1(n1({},r1),o1),a1),i1),s1),l1),{},{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:l1.colorInfoText,colorLinkActive:l1.colorInfoTextActive,colorLinkHover:l1.colorInfoTextHover,colorTextLightSolid:o1.colorBgLayout});function u1(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 d1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u1(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f1=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},a={},i=IY[n];i&&(o=x0({appearance:"light",scale:i,type:"Primary"}));var s=k0[r];return s&&(a=S0({appearance:"light",scale:s})),d1(d1(d1(d1({},t),c1),o),a)},p1='"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',h1='"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif',g1={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',h1,p1].join(","),fontFamilyCode:["Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",h1,p1].join(",")};function m1(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 b1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m1(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v1;const y1=function(e){return SH(v1||(v1=bp(["\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,CV(e.colorPrimary),CV(e.colorPrimary),CV(e.colorPrimaryActive),e.prefixCls,e.colorBgLayout,e.colorText,e.borderRadiusSM,e.prefixCls,e.colorText,e.prefixCls,e.colorBgContainer,e.prefixCls)};var w1;const x1=xH((function(e){var t,n=e.theme;return[(t=n,SH(w1||(w1=bp(["\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)),y1(n)]}));var S1=["children","customStylish","customToken","enableWebfonts","webfonts","customTheme"];function k1(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 C1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k1(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const E1=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=Hf(e,S1),u=$U(),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 C1(C1({},function(e){var t=e.css,n=e.token,r=e.isDarkMode,o=CH(f0||(f0=bp(["\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(p0||(p0=bp(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),blurStrong:t(h0||(h0=bp(["\n backdrop-filter: blur(36px);\n "]))),bottomScrollbar:t(g0||(g0=bp(["\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(m0||(m0=bp(["\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(b0||(b0=bp(["\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(v0||(v0=bp(["\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(y0||(y0=bp(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:t(w0||(w0=bp(["\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 C1(C1({},function(e){for(var t=e.isDarkMode,n={},r=0,o=Object.entries(IY);r<o.length;r++){var a=ym(o[r],2),i=a[0],s=a[1];n=j0(j0({},n),T0({appearance:t?"dark":"light",name:aU(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?e1:f1,token:b1(b1({},g1),{},{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(nJ,{url:e},e)})),Q.jsx(DH,{speedy:!0,children:Q.jsxs(EH,C1(C1({customStylish:f,customToken:p},c),{},{theme:h,children:[Q.jsx(x1,{}),Q.jsx(jj,{style:{minHeight:"inherit",width:"inherit"},children:t})]}))})]})}));var D1,O1=wH((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{tooltip:t(D1||(D1=bp(["\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)}})),$1=["className","arrow"];function j1(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 P1=z.memo((function(e){var t=e.className,n=e.arrow,r=void 0!==n&&n,o=Hf(e,$1),a=O1(),i=a.styles,s=a.cx;return Q.jsx(HN,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j1(Object(n),!0).forEach((function(t){zf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({arrow:r,overlayClassName:s(i.tooltip,t)},o))}));const _1=P1,N1=Object.freeze(Object.defineProperty({__proto__:null,default:_1},Symbol.toStringTag,{value:"Module"}));const I1={};function T1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&I1[t[0]]||("string"==typeof t[0]&&(I1[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 A1=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function F1(e,t,n){e.loadNamespaces(t,A1(e,n))}function R1(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,A1(e,r))}const M1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,L1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},B1=e=>L1[e];let z1,H1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(M1,B1)};const W1={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};H1={...H1,...e}}(e.options.react),function(e){z1=e}(e)}},U1=z.createContext();class V1{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function G1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=z.useContext(U1)||{},a=n||r||z1;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new V1),!a){T1("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&&T1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...H1,...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):(T1("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?R1(a,t.lng,c,(()=>{m.current&&p(d)})):F1(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?R1(a,t.lng,c,(()=>e())):F1(a,c,(()=>e()))}))}const q1="https://github.com/lobehub/sd-webui-lobe-theme";var K1={exports:{}};var X1={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 Y1="object"==typeof process&&{ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\Konstantin\\AppData\\Roaming",CHROME_CRASHPAD_PIPE_NAME:"\\\\.\\pipe\\crashpad_15048_YNFFWWYWFKWZFUDP",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.11",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_15048_YNFFWWYWFKWZFUDP",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.11",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}=X1,a=Y1,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*$")}(K1,K1.exports);var Q1=K1.exports;const J1=Object.freeze({loose:!0}),Z1=Object.freeze({});var e2=e=>e?"object"!=typeof e?J1:e:Z1;const t2=/^[0-9]+$/,n2=(e,t)=>{const n=t2.test(e),r=t2.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var r2={compareIdentifiers:n2,rcompareIdentifiers:(e,t)=>n2(t,e)};const o2=Y1,{MAX_LENGTH:a2,MAX_SAFE_INTEGER:i2}=X1,{safeRe:s2,t:l2}=Q1,c2=e2,{compareIdentifiers:u2}=r2;var d2=class e{constructor(t,n){if(n=c2(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>a2)throw new TypeError(`version is longer than ${a2} characters`);o2("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?s2[l2.LOOSE]:s2[l2.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>i2||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i2||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i2||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<i2)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(o2("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)),u2(this.major,t.major)||u2(this.minor,t.minor)||u2(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(o2("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 u2(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(o2("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 u2(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===u2(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 f2=d2;var p2=(e,t,n=!1)=>{if(e instanceof f2)return e;try{return new f2(e,t)}catch(r){if(!n)return null;throw r}};const h2=p2;var g2=(e,t)=>{const n=h2(e,t);return n?n.version:null};const m2=p2;var b2=(e,t)=>{const n=m2(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const v2=d2;var y2=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new v2(e instanceof v2?e.version:e,n).inc(t,r,o).version}catch(a){return null}};const w2=p2;var x2=(e,t)=>{const n=w2(e,null,!0),r=w2(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 S2=d2;var k2=(e,t)=>new S2(e,t).major;const C2=d2;var E2=(e,t)=>new C2(e,t).minor;const D2=d2;var O2=(e,t)=>new D2(e,t).patch;const $2=p2;var j2=(e,t)=>{const n=$2(e,t);return n&&n.prerelease.length?n.prerelease:null};const P2=d2;var _2=(e,t,n)=>new P2(e,n).compare(new P2(t,n));const N2=_2;var I2=(e,t,n)=>N2(t,e,n);const T2=_2;var A2=(e,t)=>T2(e,t,!0);const F2=d2;var R2=(e,t,n)=>{const r=new F2(e,n),o=new F2(t,n);return r.compare(o)||r.compareBuild(o)};const M2=R2;var L2=(e,t)=>e.sort(((e,n)=>M2(e,n,t)));const B2=R2;var z2=(e,t)=>e.sort(((e,n)=>B2(n,e,t)));const H2=_2;var W2=(e,t,n)=>H2(e,t,n)>0;const U2=_2;var V2=(e,t,n)=>U2(e,t,n)<0;const G2=_2;var q2=(e,t,n)=>0===G2(e,t,n);const K2=_2;var X2=(e,t,n)=>0!==K2(e,t,n);const Y2=_2;var Q2=(e,t,n)=>Y2(e,t,n)>=0;const J2=_2;var Z2=(e,t,n)=>J2(e,t,n)<=0;const e5=q2,t5=X2,n5=W2,r5=Q2,o5=V2,a5=Z2;var i5=(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 e5(e,n,r);case"!=":return t5(e,n,r);case">":return n5(e,n,r);case">=":return r5(e,n,r);case"<":return o5(e,n,r);case"<=":return a5(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const s5=d2,l5=p2,{safeRe:c5,t:u5}=Q1;var d5,f5,p5=(e,t)=>{if(e instanceof s5)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=c5[u5.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),c5[u5.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;c5[u5.COERCERTL].lastIndex=-1}else n=e.match(c5[u5.COERCE]);return null===n?null:l5(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var h5=g5;function g5(e){var t=this;if(t instanceof g5||(t=new g5),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 m5(e,t,n){var r=t===e.head?new y5(n,null,t,e):new y5(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function b5(e,t){e.tail=new y5(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function v5(e,t){e.head=new y5(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function y5(e,t,n,r){if(!(this instanceof y5))return new y5(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}g5.Node=y5,g5.create=g5,g5.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},g5.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++}},g5.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++}},g5.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)b5(this,arguments[e]);return this.length},g5.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)v5(this,arguments[e]);return this.length},g5.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}},g5.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}},g5.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},g5.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},g5.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},g5.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},g5.prototype.map=function(e,t){t=t||this;for(var n=new g5,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},g5.prototype.mapReverse=function(e,t){t=t||this;for(var n=new g5,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},g5.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},g5.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},g5.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},g5.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},g5.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new g5;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},g5.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new g5;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},g5.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=m5(this,o,n[r]);return a},g5.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{(f5?d5:(f5=1,d5=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(g5)}catch(Jre){}const w5=h5,x5=Symbol("max"),S5=Symbol("length"),k5=Symbol("lengthCalculator"),C5=Symbol("allowStale"),E5=Symbol("maxAge"),D5=Symbol("dispose"),O5=Symbol("noDisposeOnSet"),$5=Symbol("lruList"),j5=Symbol("cache"),P5=Symbol("updateAgeOnGet"),_5=()=>1;const N5=(e,t,n)=>{const r=e[j5].get(t);if(r){const t=r.value;if(I5(e,t)){if(A5(e,r),!e[C5])return}else n&&(e[P5]&&(r.value.now=Date.now()),e[$5].unshiftNode(r));return t.value}},I5=(e,t)=>{if(!t||!t.maxAge&&!e[E5])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[E5]&&n>e[E5]},T5=e=>{if(e[S5]>e[x5])for(let t=e[$5].tail;e[S5]>e[x5]&&null!==t;){const n=t.prev;A5(e,t),t=n}},A5=(e,t)=>{if(t){const n=t.value;e[D5]&&e[D5](n.key,n.value),e[S5]-=n.length,e[j5].delete(n.key),e[$5].removeNode(t)}};class F5{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const R5=(e,t,n,r)=>{let o=n.value;I5(e,o)&&(A5(e,n),e[C5]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var M5,L5,B5,z5,H5=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[x5]=e.max||1/0;const t=e.length||_5;if(this[k5]="function"!=typeof t?_5:t,this[C5]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[E5]=e.maxAge||0,this[D5]=e.dispose,this[O5]=e.noDisposeOnSet||!1,this[P5]=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[x5]=e||1/0,T5(this)}get max(){return this[x5]}set allowStale(e){this[C5]=!!e}get allowStale(){return this[C5]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[E5]=e,T5(this)}get maxAge(){return this[E5]}set lengthCalculator(e){"function"!=typeof e&&(e=_5),e!==this[k5]&&(this[k5]=e,this[S5]=0,this[$5].forEach((e=>{e.length=this[k5](e.value,e.key),this[S5]+=e.length}))),T5(this)}get lengthCalculator(){return this[k5]}get length(){return this[S5]}get itemCount(){return this[$5].length}rforEach(e,t){t=t||this;for(let n=this[$5].tail;null!==n;){const r=n.prev;R5(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[$5].head;null!==n;){const r=n.next;R5(this,e,n,t),n=r}}keys(){return this[$5].toArray().map((e=>e.key))}values(){return this[$5].toArray().map((e=>e.value))}reset(){this[D5]&&this[$5]&&this[$5].length&&this[$5].forEach((e=>this[D5](e.key,e.value))),this[j5]=new Map,this[$5]=new w5,this[S5]=0}dump(){return this[$5].map((e=>!I5(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[$5]}set(e,t,n){if((n=n||this[E5])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[k5](t,e);if(this[j5].has(e)){if(o>this[x5])return A5(this,this[j5].get(e)),!1;const a=this[j5].get(e).value;return this[D5]&&(this[O5]||this[D5](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[S5]+=o-a.length,a.length=o,this.get(e),T5(this),!0}const a=new F5(e,t,o,r,n);return a.length>this[x5]?(this[D5]&&this[D5](e,t),!1):(this[S5]+=a.length,this[$5].unshift(a),this[j5].set(e,this[$5].head),T5(this),!0)}has(e){if(!this[j5].has(e))return!1;const t=this[j5].get(e).value;return!I5(this,t)}get(e){return N5(this,e,!0)}peek(e){return N5(this,e,!1)}pop(){const e=this[$5].tail;return e?(A5(this,e),e.value):null}del(e){A5(this,this[j5].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[j5].forEach(((e,t)=>N5(this,t,!1)))}};function W5(){if(L5)return M5;L5=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,D(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(Jre){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}M5=e;const t=new H5({max:1e3}),n=e2,r=U5(),o=Y1,a=d2,{safeRe:i,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:u}=Q1,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:f}=X1,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],"")),D=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(),O=(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 M5}function U5(){if(z5)return B5;z5=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(Jre){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(">")))))))}}B5=t;const n=e2,{safeRe:r,t:o}=Q1,a=i5,i=Y1,s=d2,l=W5();return B5}const V5=W5();var G5=(e,t,n)=>{try{t=new V5(t,n)}catch(Jre){return!1}return t.test(e)};const q5=W5();var K5=(e,t)=>new q5(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const X5=d2,Y5=W5();var Q5=(e,t,n)=>{let r=null,o=null,a=null;try{a=new Y5(t,n)}catch(Jre){return null}return e.forEach((e=>{a.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new X5(r,n)))})),r};const J5=d2,Z5=W5();var e3=(e,t,n)=>{let r=null,o=null,a=null;try{a=new Z5(t,n)}catch(Jre){return null}return e.forEach((e=>{a.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new J5(r,n)))})),r};const t3=d2,n3=W5(),r3=W2;var o3=(e,t)=>{e=new n3(e,t);let n=new t3("0.0.0");if(e.test(n))return n;if(n=new t3("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 t3(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!r3(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!r3(n,o)||(n=o)}return n&&e.test(n)?n:null};const a3=W5();var i3=(e,t)=>{try{return new a3(e,t).range||"*"}catch(Jre){return null}};const s3=d2,l3=U5(),{ANY:c3}=l3,u3=W5(),d3=G5,f3=W2,p3=V2,h3=Z2,g3=Q2;var m3=(e,t,n,r)=>{let o,a,i,s,l;switch(e=new s3(e,r),t=new u3(t,r),n){case">":o=f3,a=h3,i=p3,s=">",l=">=";break;case"<":o=p3,a=g3,i=f3,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(d3(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===c3&&(e=new l3(">=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 b3=m3;var v3=(e,t,n)=>b3(e,t,">",n);const y3=m3;var w3=(e,t,n)=>y3(e,t,"<",n);const x3=W5();var S3=(e,t,n)=>(e=new x3(e,n),t=new x3(t,n),e.intersects(t,n));const k3=G5,C3=_2;const E3=W5(),D3=U5(),{ANY:O3}=D3,$3=G5,j3=_2,P3=[new D3(">=0.0.0-0")],_3=[new D3(">=0.0.0")],N3=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===O3){if(1===t.length&&t[0].semver===O3)return!0;e=n.includePrerelease?P3:_3}if(1===t.length&&t[0].semver===O3){if(n.includePrerelease)return!0;t=_3}const r=new Set;let o,a,i,s,l,c,u;for(const p of e)">"===p.operator||">="===p.operator?o=I3(o,p,n):"<"===p.operator||"<="===p.operator?a=T3(a,p,n):r.add(p.semver);if(r.size>1)return null;if(o&&a){if(i=j3(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&&!$3(p,String(o),n))return null;if(a&&!$3(p,String(a),n))return null;for(const e of t)if(!$3(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=I3(o,p,n),s===p&&s!==o)return!1}else if(">="===o.operator&&!$3(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=T3(a,p,n),l===p&&l!==a)return!1}else if("<="===a.operator&&!$3(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))},I3=(e,t,n)=>{if(!e)return t;const r=j3(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},T3=(e,t,n)=>{if(!e)return t;const r=j3(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var A3=(e,t,n={})=>{if(e===t)return!0;e=new E3(e,n),t=new E3(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=N3(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const F3=Q1,R3=X1,M3=d2,L3=r2,B3=(e,t,n)=>{const r=[];let o=null,a=null;const i=e.sort(((e,t)=>C3(e,t,n)));for(const u of i){k3(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 z3=n({parse:p2,valid:g2,clean:b2,inc:y2,diff:x2,major:k2,minor:E2,patch:O2,prerelease:j2,compare:_2,rcompare:I2,compareLoose:A2,compareBuild:R2,sort:L2,rsort:z2,gt:W2,lt:V2,eq:q2,neq:X2,gte:Q2,lte:Z2,cmp:i5,coerce:p5,Comparator:U5(),Range:W5(),satisfies:G5,toComparators:K5,maxSatisfying:Q5,minSatisfying:e3,minVersion:o3,validRange:i3,outside:m3,gtr:v3,ltr:w3,intersects:S3,simplifyRange:B3,subset:A3,SemVer:M3,re:F3.re,src:F3.src,tokens:F3.t,SEMVER_SPEC_VERSION:R3.SEMVER_SPEC_VERSION,RELEASE_TYPES:R3.RELEASE_TYPES,compareIdentifiers:L3.compareIdentifiers,rcompareIdentifiers:L3.rcompareIdentifiers}),H3=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},W3=e=>e?H3(e):H3;var U3={exports:{}},V3={},G3=z,q3=NY;var K3="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},X3=q3.useSyncExternalStore,Y3=G3.useRef,Q3=G3.useEffect,J3=G3.useMemo,Z3=G3.useDebugValue;V3.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=Y3(null);if(null===a.current){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=J3((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,K3(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=X3(e,a[0],a[1]);return Q3((function(){i.hasValue=!0,i.value=s}),[s]),Z3(s),s},U3.exports=V3;const e4=n(U3.exports),{useDebugValue:t4}=H,{useSyncExternalStoreWithSelector:n4}=e4;const r4=e=>{const t="function"==typeof e?W3(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=n4(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return t4(r),r}(t,e,n);return Object.assign(n,t),n},o4=new Map,a4=e=>{const t=o4.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},i4=(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(Mte){}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=o4.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return o4.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}`},{...a4(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"):s4(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(a4(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(a4(l.name));case"ROLLBACK":return s4(e.state,(e=>{if(void 0===s)return p(e),void(null==u||u.init(o.getState()));p(e[s]),null==u||u.init(a4(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return s4(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},s4=(e,t)=>{let n;try{n=JSON.parse(e)}catch(Mte){console.error("[zustand devtools middleware] Could not parse the received json",Mte)}void 0!==n&&t(n)},l4="3.0.11",c4=[{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"}],u4=async e=>{await fetch("/lobe/config",{body:JSON.stringify(e),headers:{"Content-Type":"application/json"},method:"POST"})},d4={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},f4={currentTab:"tab_txt2img",latestVersion:l4,loading:!0,localeOptions:c4,setting:d4,themeMode:"dark",version:l4},p4="SD-LOBE-SETTING",h4=(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/${q1.replace("https://github.com/","")}/releases/latest`),t=await e.json();return t&&t.tag_name&&z3.clean(t.tag_name)||l4})();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:c4})();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(p4);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=d4);const r={...d4,...t};await u4(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:l4})();e((()=>({version:t})),!1,"onLoadVersion")},onSetSetting:async n=>{const r={...t().setting,...n};localStorage.setItem(p4,JSON.stringify(r)),await u4(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")}}),g4=e=>({...d4,...e.setting}),m4=e=>e.currentTab,b4=e=>e.themeMode,v4=(y4?r4(y4):r4)(i4(((...e)=>({...f4,...h4(...e)}))));var y4;const w4=z.memo((e=>{const{version:t,latestVersion:n}=v4((e=>({latestVersion:e.latestVersion,version:e.version})),Ff),r=z3.gte(t,n);return Q.jsx("a",{href:q1,rel:"noreferrer",target:"_blank",children:r?Q.jsxs(Ez,{color:"success",...e,children:["v",t]}):Q.jsxs(Ez,{color:"warning",...e,children:["v",t," / latest v",n]})})})),x4=q1.replace("https://github.com/",""),S4=z.memo((({open:e,onCancel:t})=>{const n=v4(g4,tJ),r=OH(),{t:o}=G1();return Q.jsx(MY,{footer:!1,onCancel:t,open:e,title:Q.jsxs(kU,{align:"center",gap:4,horizontal:!0,children:[Q.jsx("a",{href:"https://discord.gg/AYFPHvv2jT",rel:"noreferrer",target:"_blank",children:Q.jsx(HH,{icon:OZ,title:"Discord"})}),Q.jsx("a",{href:q1,rel:"noreferrer",target:"_blank",children:Q.jsx(HH,{icon:Zf,title:x4})}),Q.jsxs(JM,{children:[o("themeFeedback"),Q.jsx(w4,{})]})]}),children:Q.jsxs(kU,{gap:32,children:[Q.jsxs(yU,{gap:16,horizontal:!0,style:{background:r.colorBgLayout,border:`1px solid ${r.colorBorderSecondary}`,borderRadius:r.borderRadiusLG,padding:"16px 0"},children:[Q.jsx(TE,{icon:Q.jsx(IH,{icon:OZ}),size:"large",children:"Join Discover"}),Q.jsx(gZ,{icon:Q.jsx(IH,{icon:Zf}),children:"LobeTheme Github"})]}),Q.jsx(lZ,{lang:n.i18n,mapping:"number",repo:x4,repoId:"R_kgDOJCPcNg",term:"53"})]})})})),k4=S4,C4=z.memo((()=>{const{t:e}=G1();return Q.jsx(kU,{height:"100vh",width:"100%",children:Q.jsxs(yU,{flex:1,gap:12,width:"100%",children:[Q.jsx(d0,{extra:"SD",size:48,type:"combine"}),Q.jsxs(yU,{gap:16,horizontal:!0,children:[Q.jsx(IH,{icon:np,spin:!0}),e("appInitializing")]})]})})})),E4=C4,D4=z.memo((({size:e=32,style:t,logoCustomUrl:n,logoCustomTitle:r})=>{let o=Q.jsx(d0,{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=AU(n);r&&(o=Q.jsx(LU,{emoji:r,size:e,style:t}))}return Q.jsxs(JM,{align:"center",size:.3*e,children:[o,Q.jsx("b",{style:{fontSize:.6*e,whiteSpace:"nowrap"},children:r})]})})),O4=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}}))),$4=z.memo((({size:e=32,style:t})=>{const n=v4(g4,tJ),r=v4(b4,Ff);return"kitchen"===n.logoType?Q.jsx(O4,{size:.75*e,style:t,themeMode:r}):"custom"===n.logoType?Q.jsx(D4,{logoCustomTitle:n.logoCustomTitle,logoCustomUrl:n.logoCustomUrl,size:e,style:t}):Q.jsx(d0,{extra:"SD",size:e,style:t,type:"combine"})})),j4=wH((({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 P4={};const _4=z.createContext({dragDropManager:void 0});function N4(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 I4="function"==typeof Symbol&&Symbol.observable||"@@observable",T4=function(){return Math.random().toString(36).substring(7).split("").join(".")},A4={INIT:"@@redux/INIT"+T4(),REPLACE:"@@redux/REPLACE"+T4(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+T4()}};function F4(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(N4(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(N4(1));return n(F4)(e,t)}if("function"!=typeof e)throw new Error(N4(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(N4(3));return a}function d(e){if("function"!=typeof e)throw new Error(N4(4));if(l)throw new Error(N4(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(N4(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(N4(7));if(void 0===e.type)throw new Error(N4(8));if(l)throw new Error(N4(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:A4.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(N4(10));o=e,f({type:A4.REPLACE})}})[I4]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(N4(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[I4]=function(){return this},e},r}function R4(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 M4(e){return"object"==typeof e}const L4="dnd-core/INIT_COORDS",B4="dnd-core/BEGIN_DRAG",z4="dnd-core/PUBLISH_DRAG_SOURCE",H4="dnd-core/HOVER",W4="dnd-core/DROP",U4="dnd-core/END_DRAG";function V4(e,t){return{type:L4,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const G4={type:L4,payload:{clientOffset:null,sourceClientOffset:null}};function q4(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:a}=n,i=e.getMonitor(),s=e.getRegistry();e.dispatch(V4(o)),function(e,t,n){R4(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){R4(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(G4);let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){R4("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),c=a(l)}e.dispatch(V4(o,c));const u=s.getSource(l).beginDrag(i,l);if(null==u)return;!function(e){R4(M4(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:B4,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function K4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X4(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){K4(e,t,n[t])}))}return e}function Y4(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){R4(e.isDragging(),"Cannot call drop while not dragging."),R4(!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){R4(void 0===e||M4(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:W4,payload:{dropResult:X4({},t,i)}};e.dispatch(s)}))}}function Q4(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){R4(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:U4}}}function J4(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function Z4(e){return function(t,{clientOffset:n}={}){!function(e){R4(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];J4(t.getTargetType(o),n)||e.splice(r,1)}}(r,a,o.getItemType()),function(e,t,n){R4(t.isDragging(),"Cannot call hover while not dragging."),R4(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];R4(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");R4(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:H4,payload:{targetIds:r,clientOffset:n||null}}}}function e6(e){return function(){if(e.getMonitor().isDragging())return{type:z4}}}class t6{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:q4(e),publishDragSource:e6(e),hover:Z4(e),drop:Y4(e),endDrag:Q4(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 n6(e,t){return{x:e.x-t.x,y:e.y-t.y}}const r6=[],o6=[];r6.__IS_NONE__=!0,o6.__IS_ALL__=!0;class a6{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;R4("function"==typeof e,"listener must be a function."),R4(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){return e!==r6&&(e===o6||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);a||e()}finally{r=o}}))}subscribeToOffsetChange(e){R4("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 R4(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(R4(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return J4(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(R4(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&&!J4(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?n6(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?n6(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const i6="undefined"!=typeof global?global:self,s6=i6.MutationObserver||i6.WebKitMutationObserver;function l6(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const c6="function"==typeof s6?function(e){let t=1;const n=new s6(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:l6;class u6{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 d6=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=c6(this.flush),this.requestErrorThrow=l6((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},f6=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new u6(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(d6.registerPendingError);const p6="dnd-core/ADD_SOURCE",h6="dnd-core/ADD_TARGET",g6="dnd-core/REMOVE_SOURCE",m6="dnd-core/REMOVE_TARGET";function b6(e,t){t&&Array.isArray(e)?e.forEach((e=>b6(e,!1))):R4("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 v6,y6;(y6=v6||(v6={})).SOURCE="SOURCE",y6.TARGET="TARGET";let w6=0;function x6(e){const t=(w6++).toString();switch(e){case v6.SOURCE:return`S${t}`;case v6.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function S6(e){switch(e[0]){case"S":return v6.SOURCE;case"T":return v6.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function k6(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 C6{addSource(e,t){b6(e),function(e){R4("function"==typeof e.canDrag,"Expected canDrag to be a function."),R4("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),R4("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(v6.SOURCE,e,t);return this.store.dispatch(function(e){return{type:p6,payload:{sourceId:e}}}(n)),n}addTarget(e,t){b6(e,!0),function(e){R4("function"==typeof e.canDrop,"Expected canDrop to be a function."),R4("function"==typeof e.hover,"Expected hover to be a function."),R4("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(v6.TARGET,e,t);return this.store.dispatch(function(e){return{type:h6,payload:{targetId:e}}}(n)),n}containsHandler(e){return k6(this.dragSources,e)||k6(this.dropTargets,e)}getSource(e,t=!1){R4(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return R4(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return R4(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return R4(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return S6(e)===v6.SOURCE}isTargetId(e){return S6(e)===v6.TARGET}removeSource(e){var t;R4(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:g6,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},d6.enqueueTask(f6.create(t))}removeTarget(e){R4(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:m6,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);R4(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){R4(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=x6(e);return this.types.set(r,t),e===v6.SOURCE?this.dragSources.set(r,n):e===v6.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 E6=(e,t)=>e===t;function D6(e=r6,t){switch(t.type){case H4:break;case p6:case h6:case m6:case g6:return r6;default:return o6}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=E6){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 r6;const i=r[r.length-1],s=n[n.length-1];return i!==s&&(i&&o.push(i),s&&o.push(s)),o}function O6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $6={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function j6(e=$6,t){const{payload:n}=t;switch(t.type){case L4:case B4:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case H4: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){O6(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case U4:case W4:return $6;default:return e}var r,o}function P6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _6(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){P6(e,t,n[t])}))}return e}const N6={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function I6(e=N6,t){const{payload:n}=t;switch(t.type){case B4:return _6({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case z4:return _6({},e,{isSourcePublic:!0});case H4:return _6({},e,{targetIds:n.targetIds});case m6:return-1===e.targetIds.indexOf(n.targetId)?e:_6({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case W4:return _6({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case U4:return _6({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function T6(e=0,t){switch(t.type){case p6:case h6:return e+1;case g6:case m6:return e-1;default:return e}}function A6(e=0){return e+1}function F6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R6(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){F6(e,t,n[t])}))}return e}function M6(e={},t){return{dirtyHandlerIds:D6(e.dirtyHandlerIds,{type:t.type,payload:R6({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:j6(e.dragOffset,t),refCount:T6(e.refCount,t),dragOperation:I6(e.dragOperation,t),stateId:A6(e.stateId)};var n,r,o}function L6(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return F4(M6,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),a=new a6(o,new C6(o)),i=new t6(o,a),s=e(i,t,n);return i.receiveBackend(s),i}function B6(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 z6=0;const H6=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var W6=z.memo((function(e){var{children:t}=e,n=B6(e,["children"]);const[r,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=U6(),n,r){const o=t;o[H6]||(o[H6]={dragDropManager:L6(e,t,n,r)});return o[H6]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return z.useEffect((()=>{if(o){const e=U6();return++z6,()=>{0==--z6&&(e[H6]=null)}}}),[]),Q.jsx(_4.Provider,{value:r,children:t})}));function U6(){return"undefined"!=typeof global?global:window}const V6=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})),G6="undefined"!=typeof window?z.useLayoutEffect:z.useEffect;function q6(e,t,n){const[r,o]=z.useState((()=>t(e))),a=z.useCallback((()=>{const a=t(e);tJ(r,a)||(o(a),n&&n())}),[r,e,n]);return G6(a),[r,a]}function K6(e,t,n){return function(e,t,n){const[r,o]=q6(e,t,n);return G6((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function X6(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),z.useMemo((()=>"function"==typeof e?e():e),n)}function Y6(e){return z.useMemo((()=>e.hooks.dragSource()),[e])}function Q6(e){return z.useMemo((()=>e.hooks.dragPreview()),[e])}let J6=!1,Z6=!1;class e8{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){R4(!J6,"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 J6=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{J6=!1}}isDragging(){if(!this.sourceId)return!1;R4(!Z6,"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 Z6=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Z6=!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 t8=!1;class n8{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;R4(!t8,"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 t8=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{t8=!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 r8(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 o8(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function a8(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 R4("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=>{s8(n,e),s8(t,e)}}):z.cloneElement(e,{ref:t})}(r,n?t=>e(t,n):e)}}function i8(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=a8(r);t[n]=()=>e}})),t}function s8(e,t){"function"==typeof e?e(t):e.current=t}class l8{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!r8(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!r8(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=i8({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,o8(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,o8(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 c8{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!r8(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=i8({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,o8(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 u8(){const{dragDropManager:e}=z.useContext(_4);return R4(null!=e,"Expected drag drop context"),e}class d8{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 f8(e,t,n){const r=u8(),o=function(e,t,n){const r=z.useMemo((()=>new d8(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 R4(null!=t,"spec.type must be defined"),t}),[e])}(e);G6((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 p8(e){return z.useMemo((()=>e.hooks.dropTarget()),[e])}class h8{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 g8(e,t,n){const r=u8(),o=function(e,t){const n=z.useMemo((()=>new h8(e,t)),[t]);return z.useEffect((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return z.useMemo((()=>(R4(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);G6((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 m8=r(Object.freeze(Object.defineProperty({__proto__:null,DndContext:_4,DndProvider:W6,DragPreviewImage:V6,useDrag:function(e,t){const n=X6(e,t);R4(!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=u8();return z.useMemo((()=>new e8(e)),[e])}(),o=function(e,t){const n=u8(),r=z.useMemo((()=>new l8(n.getBackend())),[n]);return G6((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),G6((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return f8(n,r,o),[K6(n.collect,r,o),Y6(o),Q6(o)]},useDragDropManager:u8,useDragLayer:function(e){const t=u8().getMonitor(),[n,r]=q6(t,e);return z.useEffect((()=>t.subscribeToOffsetChange(r))),z.useEffect((()=>t.subscribeToStateChange(r))),n},useDrop:function(e,t){const n=X6(e,t),r=function(){const e=u8();return z.useMemo((()=>new n8(e)),[e])}(),o=function(e){const t=u8(),n=z.useMemo((()=>new c8(t.getBackend())),[t]);return G6((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return g8(n,r,o),[K6(n.collect,r,o),p8(o)]}},Symbol.toStringTag,{value:"Module"})));function b8(e){let t=null;return()=>(null==t&&(t=e()),t)}class v8{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 y8{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 w8="__NATIVE_FILE__",x8="__NATIVE_URL__",S8="__NATIVE_TEXT__",k8="__NATIVE_HTML__",C8=Object.freeze(Object.defineProperty({__proto__:null,FILE:w8,HTML:k8,TEXT:S8,URL:x8},Symbol.toStringTag,{value:"Module"}));function E8(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const D8={[w8]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[k8]:{exposeProperties:{html:(e,t)=>E8(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[x8]:{exposeProperties:{urls:(e,t)=>E8(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[S8]:{exposeProperties:{text:(e,t)=>E8(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function O8(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(D8).filter((e=>{const n=D8[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const $8=b8((()=>/firefox/i.test(navigator.userAgent))),j8=b8((()=>Boolean(window.safari)));class P8{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 _8=1;function N8(e){const t=e.nodeType===_8?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function I8(e){return{x:e.clientX,y:e.clientY}}function T8(e,t,n,r,o){const a="IMG"===(i=t).nodeName&&($8()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(i)));var i,s;const l=N8(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 j8()&&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 P8([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(f),y:v?b:(()=>{let e=new P8([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(p);return j8()&&a&&(e+=(window.devicePixelRatio-1)*g),e})()}}class A8{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 F8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R8(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){F8(e,t,n[t])}))}return e}class M8{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 R8({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return R8({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(C8).some((t=>C8[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=D8[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new y8(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&&N8(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=I8(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=O8(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=T8(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=O8(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:I8(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=I8(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)):O8(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:I8(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 A8(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new v8(this.isNodeInDocument)}}let L8;const B8=r(Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:function(e,t,n){return new M8(e,t,n)},NativeTypes:C8,getEmptyImage:function(){return L8||(L8=new Image,L8.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),L8}},Symbol.toStringTag,{value:"Module"})));var z8=function(){};var H8=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},W8=function(e){return e!=e},U8=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var V8=function(e,t,n){return t==t?U8(e,t,n):H8(e,W8,n)};var G8=function(e,t){return!!(null==e?0:e.length)&&V8(e,t,0)>-1};var q8=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},K8=gX,X8=z8,Y8=K8&&1/Gq(new K8([,-0]))[1]==1/0?function(e){return new K8(e)}:X8,Q8=Bq,J8=G8,Z8=q8,e7=zq,t7=Y8,n7=Gq;var r7=function(e,t,n){var r=-1,o=J8,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=Z8;else if(a>=200){var c=t?null:t7(e);if(c)return n7(c);i=!1,o=e7,l=new Q8}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 o7=function(e){return e&&e.length?r7(e):[]},a7={};Object.defineProperty(a7,"__esModule",{value:!0});var i7=l7(z),s7=l7(pd);function l7(e){return e&&e.__esModule?e:{default:e}}var c7=function(e){return i7.default.createElement("button",{className:e.classNames.clearAll,onClick:e.onClick},"Clear all")};c7.propTypes={classNames:s7.default.object,onClick:s7.default.func},a7.default=c7;var u7={};var d7=function(e){return function(t){return null==e?void 0:e[t]}},f7=d7({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var p7=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},h7=nK,g7=YV,m7=AV?AV.prototype:void 0,b7=m7?m7.toString:void 0;var v7=function e(t){if("string"==typeof t)return t;if(h7(t))return p7(t,e)+"";if(g7(t))return b7?b7.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},y7=v7;var w7=function(e){return null==e?"":y7(e)},x7=f7,S7=w7,k7=/[&<>"']/g,C7=RegExp(k7.source);var E7=function(e){return(e=S7(e))&&C7.test(e)?e.replace(k7,x7):e};Object.defineProperty(u7,"__esModule",{value:!0});var D7=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}}(),O7=z,$7=N7(O7),j7=N7(pd),P7=N7(QX),_7=N7(E7);function N7(e){return e&&e.__esModule?e:{default:e}}function I7(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 T7=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=I7(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,_7.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):$7.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},I7(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,O7.Component),D7(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,P7.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 $7.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)?$7.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},$7.default.createElement("ul",null," ",n," ")):null}}]),t}();T7.propTypes={query:j7.default.string.isRequired,selectedIndex:j7.default.number.isRequired,suggestions:j7.default.array.isRequired,handleClick:j7.default.func.isRequired,handleHover:j7.default.func.isRequired,minQueryLength:j7.default.number,shouldRenderSuggestions:j7.default.func,isFocused:j7.default.bool.isRequired,classNames:j7.default.object,labelField:j7.default.string.isRequired,renderSuggestion:j7.default.func},T7.defaultProps={minQueryLength:2},u7.default=T7;var A7={},F7={},R7=w7,M7=/[\\^$.*+?()[\]{}|]/g,L7=RegExp(M7.source);var B7=function(e){return(e=R7(e))&&L7.test(e)?e.replace(M7,"\\$&"):e};Object.defineProperty(F7,"__esModule",{value:!0}),F7.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,H7.default)(t);return new RegExp("["+n+"]+")},F7.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},F7.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var z7,H7=(z7=B7)&&z7.__esModule?z7:{default:z7};var W7={},U7={};Object.defineProperty(U7,"__esModule",{value:!0}),U7.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},U7.DEFAULT_PLACEHOLDER="Press enter to add new tag",U7.DEFAULT_LABEL_FIELD="text",U7.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"},U7.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"},Object.defineProperty(W7,"__esModule",{value:!0});var V7=K7(z),G7=K7(pd),q7=U7;function K7(e){return e&&e.__esModule?e:{default:e}}var X7=String.fromCharCode(215),Y7=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(q7.KEYS.ENTER.includes(e.keyCode)||e.keyCode===q7.KEYS.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===q7.KEYS.BACKSPACE&&r(e)};if(t)return V7.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 V7.default.createElement(c,{onRemove:r,onKeyDown:s,className:o,"aria-label":l,tag:a,index:i})}return V7.default.createElement("button",{onClick:r,onKeyDown:s,className:o,type:"button","aria-label":l},X7)};Y7.propTypes={className:G7.default.string,onRemove:G7.default.func.isRequired,readOnly:G7.default.bool,removeComponent:G7.default.func,tag:G7.default.shape({id:G7.default.string.isRequired,className:G7.default.string,key:G7.default.string}),index:G7.default.number.isRequired},W7.default=Y7,Object.defineProperty(A7,"__esModule",{value:!0});var Q7=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")},J7=z,Z7=a9(J7),e9=m8,t9=a9(pd),n9=a9(Jb),r9=F7,o9=a9(W7);function a9(e){return e&&e.__esModule?e:{default:e}}var i9="tag",s9=function(e){var t=(0,J7.useRef)(null),n=e.readOnly,r=e.tag,o=e.classNames,a=e.index,i=(0,e9.useDrag)((function(){return{type:i9,collect:function(e){return{isDragging:!!e.isDragging()}},item:e,canDrag:function(){return(0,r9.canDrag)(e)}}})),s=Q7(i,2),l=s[0].isDragging,c=s[1],u=(0,e9.useDrop)((function(){return{accept:i9,drop:function(t,n){var r=t.index,o=a;r!==o&&e.moveTag(r,o)},canDrop:function(e){return(0,r9.canDrop)(e)}}}));c((0,Q7(u,2)[1])(t));var d=e.tag[e.labelField],f=r.className,p=void 0===f?"":f,h=l?0:1;return Z7.default.createElement("span",{ref:t,className:(0,n9.default)("tag-wrapper",o.tag,p),style:{opacity:h,cursor:(0,r9.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},d,Z7.default.createElement(o9.default,{tag:e.tag,className:o.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:n,index:a}))};s9.propTypes={labelField:t9.default.string,onDelete:t9.default.func.isRequired,tag:t9.default.shape({id:t9.default.string.isRequired,className:t9.default.string,key:t9.default.string}),moveTag:t9.default.func,removeComponent:t9.default.func,onTagClicked:t9.default.func,classNames:t9.default.object,readOnly:t9.default.bool,index:t9.default.number.isRequired},s9.defaultProps={labelField:"text",readOnly:!1},A7.default=s9,Object.defineProperty(P4,"__esModule",{value:!0}),P4.KEYS=P4.WithOutContext=P4.WithContext=void 0;var l9=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},c9=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}}(),u9=z,d9=C9(u9),f9=m8,p9=B8,h9=C9(QX),g9=C9(z8),m9=C9(o7),b9=C9(a7),v9=C9(u7),y9=C9(pd),w9=C9(Jb),x9=C9(A7),S9=F7,k9=U7;function C9(e){return e&&e.__esModule?e:{default:e}}function E9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D9=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));O9.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,u9.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,u9.Component),c9(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,h9.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===k9.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===k9.KEYS.TAB&&""===n||e.preventDefault();var i=a&&-1!==r?o[r]:E9({id:n},this.props.labelField,n);""!==i&&this.addTag(i)}e.keyCode===k9.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===k9.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===k9.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,S9.buildRegExpFromDelimiters)(this.props.delimiters),c=s.split(l);(0,m9.default)(c).forEach((function(e){return t.addTag(E9({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=l9({},k9.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:k9.INPUT_FIELD_POSITIONS.BOTTOM,v=this.props.readOnly?null:d9.default.createElement("div",{className:n.tagInput},d9.default.createElement("input",l9({},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"})),d9.default.createElement(v9.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&&d9.default.createElement(b9.default,{classNames:n,onClick:this.clearAll}));return d9.default.createElement("div",{className:(0,w9.default)(n.tags,"react-tags-wrapper"),ref:this.reactTagsRef},d9.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===k9.INPUT_FIELD_POSITIONS.TOP&&v,d9.default.createElement("div",{className:n.selected},t,b===k9.INPUT_FIELD_POSITIONS.INLINE&&v),b===k9.INPUT_FIELD_POSITIONS.BOTTOM&&v)}}]),t}();D9.propTypes={placeholder:y9.default.string,labelField:y9.default.string,suggestions:y9.default.arrayOf(y9.default.shape({id:y9.default.string.isRequired})),delimiters:y9.default.arrayOf(y9.default.number),autofocus:y9.default.bool,inline:y9.default.bool,inputFieldPosition:y9.default.oneOf([k9.INPUT_FIELD_POSITIONS.INLINE,k9.INPUT_FIELD_POSITIONS.TOP,k9.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:y9.default.func,handleAddition:y9.default.func,onTagUpdate:y9.default.func,handleDrag:y9.default.func,handleFilterSuggestions:y9.default.func,handleTagClick:y9.default.func,allowDeleteFromEmptyInput:y9.default.bool,allowAdditionFromPaste:y9.default.bool,allowDragDrop:y9.default.bool,handleInputChange:y9.default.func,handleInputFocus:y9.default.func,handleInputBlur:y9.default.func,minQueryLength:y9.default.number,shouldRenderSuggestions:y9.default.func,removeComponent:y9.default.func,autocomplete:y9.default.oneOfType([y9.default.bool,y9.default.number]),readOnly:y9.default.bool,classNames:y9.default.object,name:y9.default.string,id:y9.default.string,maxLength:y9.default.number,inputValue:y9.default.string,tags:y9.default.arrayOf(y9.default.shape({id:y9.default.string.isRequired,className:y9.default.string})),allowUnique:y9.default.bool,renderSuggestion:y9.default.func,inputProps:y9.default.object,editable:y9.default.bool,clearAll:y9.default.bool,onClearAll:y9.default.func},D9.defaultProps={placeholder:k9.DEFAULT_PLACEHOLDER,labelField:k9.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)}(k9.KEYS.ENTER),[k9.KEYS.TAB]),autofocus:!0,inline:!0,inputFieldPosition:k9.INPUT_FIELD_POSITIONS.INLINE,handleDelete:g9.default,handleAddition:g9.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[],inputProps:{},onTagUpdate:g9.default,editable:!1,clearAll:!1,handleClearAll:g9.default};var O9=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=l9({},k9.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 d9.default.createElement(d9.default.Fragment,{key:n},c===n?d9.default.createElement("div",{className:s.editTagInput},d9.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"})):d9.default.createElement(x9.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}))}))}},$9=P4.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 d9.default.createElement(f9.DndProvider,{backend:p9.HTML5Backend},d9.default.createElement(D9,t))};P4.WithOutContext=D9,P4.KEYS=k9.KEYS;const j9={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=j9.createButton(`${e}_formatconvert`,"🪄",(()=>j9.onClickConvert(e)));t.append(r)},convert(e){const t=/\{|\[|\}|\]|[^{}[\]]+/gmu;let n=j9.convertStr(e);const r=j9.convertStr2Array(n);n=j9.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]=j9.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 j9.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=j9.convert(t.value);t.value=null===n.match(/^masterpiece, best quality,/)?""+n:n,j9.dispatchInputEvent(t);const r=gradioApp().querySelector(`#${e}_neg_prompt > label > textarea`),o=j9.convert(r.value);r.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,j9.dispatchInputEvent(r)},round:e=>Math.round(1e4*e)/1e4},P9=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},_9=wH((({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};
}
}
`)),N9=$9,I9=[188,13],T9=z.memo((({tags:e,setTags:t,type:n,setValue:r})=>{const o=`${n}_tag_editor`,[a,i]=z.useState(!1),{styles:s}=_9(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,P9(n)];t(o),r(o)}),[e]),u=z.useCallback(((n,o,a)=>{const i=[...e];i.splice(o,1),i.splice(a,0,P9(n)),t(i),r(i)}),[e]),d=z.useCallback(((n,o)=>{const a=[...e];a[n]=P9(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(N9,{delimiters:I9,editable:!0,handleAddition:c,handleDelete:l,handleDrag:u,id:o,inline:!0,inputFieldPosition:"bottom",onTagUpdate:d,tags:e})})})),A9=z.memo((({type:e})=>{const[t,n]=z.useState([]),{styles:r}=j4(),{t:o}=G1(),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=j9.convertStr(e);return j9.convertStr2Array(t).map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/|\.\|。/g,",").replaceAll(/“||”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return j9.convertStr2Array(t).join(", ")})).map((e=>P9({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(T9,{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:"➡️"})]})]})})),F9=A9,R9=z.memo((()=>{const{styles:e}=j4(),{t:t}=G1();return Q.jsxs("div",{className:e.view,children:[Q.jsx("span",{style:{marginBottom:-10},children:t("positive")}),Q.jsx(F9,{type:"positive"}),Q.jsx("span",{style:{marginBottom:-10},children:t("negative")}),Q.jsx(F9,{type:"negative"})]})})),M9=R9,L9={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"}},B9={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%)"}},z9={kitchen:L9.dark.colorPrimary,...C0},H9=[z9.kitchen,...E0],W9={kitchen:B9.dark.colorNeutral,...D0},U9=[W9.kitchen,...O0],V9=(e,t)=>{if(!t)return"";let n="primary"===e?z9:W9,r=Object.entries(n).find((e=>e[1]===t));return null==r?void 0:r[0]},G9=wH((({css:e,responsive:t})=>e`
${t.mobile} {
.ant-row.ant-form-item-row {
flex-direction: column !important;
}
}
small {
line-height: 1.3 !important;
}
`)),q9=z.memo((()=>{const e=v4(g4,tJ),{onSetSetting:t,localeOptions:n}=v4((e=>({localeOptions:e.localeOptions,onSetSetting:e.onSetSetting})),Ff),[r,o]=z.useState(e),[a,i]=z.useState(e.primaryColor||void 0),[s,l]=z.useState(e.neutralColor||void 0),{styles:c}=G9(),{t:u}=G1(),d=z.useCallback((()=>{t(d4),location.reload()}),[]),f=z.useCallback((e=>{t({...e,neutralColor:s,primaryColor:a}),location.reload()}),[a,s]),p=z.useMemo((()=>({children:[{children:Q.jsx(dN,{options:n}),desc:u("settingLanguageDesc"),label:u("settingLanguage"),name:"i18n"},{children:Q.jsx(dz,{}),desc:u("settingReduceAnimationDesc"),label:u("settingReduceAnimation"),name:"liteAnimation",valuePropName:"checked"},{children:Q.jsx(F0,{activeColor:a?z9[a]:void 0,colors:H9,onSelect:e=>i(V9("primary",e))}),desc:u("settingPrimaryColorDesc"),label:u("settingPrimaryColor")},{children:Q.jsx(F0,{activeColor:s?W9[s]:void 0,colors:U9,onSelect:e=>l(V9("neutral",e))}),desc:u("settingNeutralColorDesc"),label:u("settingNeutralColor")},{children:Q.jsx(jB,{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($M,{}),desc:u("settingCustomLogoDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomLogo"),name:"logoCustomUrl"},{children:Q.jsx($M,{}),desc:u("settingCustomTitleDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomTitle"),name:"logoCustomTitle"},{children:Q.jsx(D4,{logoCustomTitle:r.logoCustomTitle,logoCustomUrl:r.logoCustomUrl}),divider:!1,hidden:"custom"!==r.logoType,label:u("settingLogoPreview")},{children:Q.jsx(dz,{}),desc:u("settingSvgIconsDesc"),label:u("settingSvgIcons"),name:"svgIcon",valuePropName:"checked"},{children:Q.jsx(dz,{}),desc:u("settingCustomFontDesc"),label:u("settingCustomFont"),name:"enableWebFont",valuePropName:"checked"},{children:Q.jsx(dz,{}),desc:u("settingConfirmPageUnloadDesc"),label:u("settingConfirmPageUnload"),name:"confirmPageUnload",valuePropName:"checked"}],icon:ap,title:u("settingGroupTheme")})),[a,s,r.logoType,r.logoCustomTitle,r.logoCustomUrl]),h=z.useMemo((()=>({children:[{children:Q.jsx(jB,{options:[{label:u("scroll"),value:"scroll"},{label:u("resizable"),value:"resizable"}]}),desc:u("settingPromptDisplayModeDesc"),label:u("settingPromptDisplayMode"),name:"promptTextareaType"},{children:Q.jsx(dz,{}),desc:u("settingPromptHighlightDesc"),label:u("settingPromptHighlight"),name:"enableHighlight",valuePropName:"checked"},{children:Q.jsx(dz,{}),desc:u("settingPromptEditorDesc"),label:u("settingPromptEditor"),name:"promptEditor",valuePropName:"checked"}],icon:pp,title:u("settingGroupPromptTextarea")})),[]),g=z.useMemo((()=>({children:[{children:Q.jsx(dz,{}),desc:u("settingSplitPreviewerDesc"),label:u("settingSplitPreviewer"),name:"layoutSplitPreview",valuePropName:"checked"},{children:Q.jsx(dz,{}),desc:u("settingHideFooterDesc"),label:u("settingHideFooter"),name:"layoutHideFooter",valuePropName:"checked"}],icon:tp,title:u("settingGroupLayout")})),[]),m=z.useMemo((()=>({children:[{children:Q.jsx(dz,{}),desc:u("settingQuickSettingSidebarEnableDesc"),label:u("settingQuickSettingSidebarEnable"),name:"enableSidebar",valuePropName:"checked"},{children:Q.jsx(dz,{}),desc:u("settingQuickSettingSidebarDefaultExpandDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultExpand"),name:"sidebarExpand",valuePropName:"checked"},{children:Q.jsx(jB,{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(QR,{}),desc:u("settingQuickSettingSidebarDefaultWidthDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultWidth"),name:"sidebarWidth"}],icon:ip,title:u("settingGroupQuickSettingSidebar")})),[r.enableSidebar]),b=z.useMemo((()=>({children:[{children:Q.jsx(dz,{}),desc:u("settingExtraNetworkSidebarEnableDesc"),label:u("settingExtraNetworkSidebarEnable"),name:"enableExtraNetworkSidebar",valuePropName:"checked"},{children:Q.jsx(jB,{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(dz,{}),desc:u("settingExtraNetworkSidebarDefaultExpandDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultExpand"),name:"extraNetworkSidebarExpand",valuePropName:"checked"},{children:Q.jsx(QR,{}),desc:u("settingExtraNetworkSidebarDefaultWidthDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultWidth"),name:"extraNetworkSidebarWidth"},{children:Q.jsx(QR,{}),desc:u("settingExtraNetworkSidebarDefaultCardSizeDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultCardSize"),name:"extraNetworkCardSize"}],icon:lp,title:u("settingGroupExtraNetworkSidebar")})),[r.enableExtraNetworkSidebar]);return Q.jsx(XJ,{className:c,footer:Q.jsxs(Q.Fragment,{children:[Q.jsx(TE,{htmlType:"button",onClick:d,style:{borderRadius:4},children:u("settingButtonReset")}),Q.jsx(TE,{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)})})),K9=q9,X9=z.memo((({open:e,onCancel:t})=>{const{t:n}=G1();return Q.jsx(MY,{footer:!1,onCancel:t,open:e,title:Q.jsxs(kU,{align:"center",gap:4,horizontal:!0,children:[Q.jsx("a",{href:q1,rel:"noreferrer",target:"_blank",children:Q.jsx(HH,{icon:Vf,title:"Setting Documents"})}),Q.jsxs(JM,{children:[n("themeSetting"),Q.jsx(w4,{})]})]}),children:Q.jsx(K9,{})})})),Y9=X9,Q9="%[a-f0-9]{2}",J9=new RegExp("("+Q9+")|([^%]+?)","gi"),Z9=new RegExp("("+Q9+")+","gi");function eee(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([],eee(n),eee(r))}function tee(e){try{return decodeURIComponent(e)}catch{let t=e.match(J9)||[];for(let n=1;n<t.length;n++)t=(e=eee(t,n).join("")).match(J9)||[];return e}}function nee(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=Z9.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=tee(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Z9.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 ree(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 oee(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 aee=e=>null==e,iee=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),see=Symbol("encodeFragmentIdentifier");function lee(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function cee(e,t){return t.encode?t.strict?iee(e):encodeURIComponent(e):e}function uee(e,t){return t.decode?nee(e):e}function dee(e){return Array.isArray(e)?e.sort():"object"==typeof e?dee(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function fee(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function pee(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 hee(e){const t=(e=fee(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function gee(e,t){lee((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&&uee(n,e).includes(e.arrayFormatSeparator);n=a?uee(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>uee(t,e))):null===n?n:uee(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?uee(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>uee(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]=ree(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:uee(i,t),n(uee(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]=pee(n,t);else r[o]=pee(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]=dee(n):e[t]=n,e}),Object.create(null))}function mee(e,t){if(!e)return"";lee((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&aee(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,[cee(t,e),"[",o,"]"].join("")]:[...n,[cee(t,e),"[",cee(o,e),"]=",cee(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[cee(t,e),"[]"].join("")]:[...n,[cee(t,e),"[]=",cee(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,[cee(t,e),":list="].join("")]:[...n,[cee(t,e),":list=",cee(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?[[cee(n,e),t,cee(o,e)].join("")]:[[r,cee(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,cee(t,e)]:[...n,[cee(t,e),"=",cee(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?cee(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?cee(n,t)+"[]":o.reduce(r(n),[]).join("&"):cee(n,t)+"="+cee(o,t)})).filter((e=>e.length>0)).join("&")}function bee(e,t){var n;t={decode:!0,...t};let[r,o]=ree(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:gee(hee(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:uee(o,t)}:{}}}function vee(e,t){t={encode:!0,strict:!0,[see]:!0,...t};const n=fee(e.url).split("?")[0]||"";let r=mee({...gee(hee(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[see]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function yee(e,t,n){n={parseFragmentIdentifier:!0,[see]:!1,...n};const{url:r,query:o,fragmentIdentifier:a}=bee(e,n);return vee({url:r,query:oee(o,t),fragmentIdentifier:a},n)}const wee=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(e,t,n){return yee(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:hee,parse:gee,parseUrl:bee,pick:yee,stringify:mee,stringifyUrl:vee},Symbol.toStringTag,{value:"Module"})),xee=()=>{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},See=z.memo((({children:e})=>{const{onSetThemeMode:t,themeMode:n}=v4((e=>({onInit:e.onInit,onSetThemeMode:e.onSetThemeMode,themeMode:e.themeMode})),Ff),r=v4(g4,tJ),o=xee();z.useEffect((()=>{const e=String(wee.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=L9[n];else{const t=IY[r.primaryColor];e=x0({appearance:n,scale:t,type:"Primary"})}if(r.neutralColor)if("kitchen"===r.neutralColor)t=B9[n];else{const e=k0[r.neutralColor];t=S0({appearance:n,scale:e})}return{...e,...t}}),[r.primaryColor,r.neutralColor,n]);return r&&Q.jsx(E1,{customToken:a,enableWebfonts:r.enableWebFont,themeMode:n,children:e})})),kee={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 Cee{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||kee,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 Cee(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Cee(this.logger,e)}}var Eee=new Cee;class Dee{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 Oee(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function $ee(e){return null==e?"":""+e}function jee(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 Pee(e,t,n){const{obj:r,k:o}=jee(e,t,Object);r[o]=n}function _ee(e,t){const{obj:n,k:r}=jee(e,t);if(n)return n[r]}function Nee(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]):Nee(e[r],t[r],n):e[r]=t[r]);return e}function Iee(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Tee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Aee(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Tee[e])):e}const Fee=[" ",",","?","!",";"];function Ree(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?Ree(s,l,n):void 0}o=o[r[a]]}return o}function Mee(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Lee extends Dee{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=_ee(this.data,i);return s||!a||"string"!=typeof n?s:Ree(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),Pee(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=_ee(this.data,i)||{};r?Nee(s,n,o):s={...s,...n},Pee(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 Bee={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 zee={};class Hee extends Dee{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=Eee.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=Fee.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=Hee.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=Bee.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,!zee[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(zee[`${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 Wee(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Uee{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Eee.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Mee(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=Mee(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]=Wee(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]=Wee(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Wee(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 Vee=[{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}],Gee={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 qee=["v1","v2","v3"],Kee=["v4"],Xee={zero:0,one:1,two:2,few:3,many:4,other:5};class Yee{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Eee.create("pluralResolver"),this.options.compatibilityJSON&&!Kee.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 Vee.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:Gee[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(Mee(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)=>Xee[e]-Xee[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!qee.includes(this.options.compatibilityJSON)}}function Qee(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=_ee(e,n);return void 0!==r?r:_ee(t,n)}(e,t,n);return!a&&o&&"string"==typeof n&&(a=Ree(e,n,r),void 0===a&&(a=Ree(t,n,r))),a}class Jee{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Eee.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:Aee,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Iee(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Iee(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?Iee(t.nestingPrefix):t.nestingPrefixEscaped||Iee("$t("),this.nestingSuffix=t.nestingSuffix?Iee(t.nestingSuffix):t.nestingSuffixEscaped||Iee(")"),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=Qee(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(Qee(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=$ee(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(Mte){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,Mte),`${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=$ee(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 Zee(e){const t={};return function(n,r,o){const a=r+JSON.stringify(o);let i=t[a];return i||(i=e(Mee(r),o),t[a]=i),i(n)}}class ete{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Eee.create("formatter"),this.options=e,this.formats={number:Zee(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:Zee(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:Zee(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:Zee(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:Zee(((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()]=Zee(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 tte extends Dee{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=Eee.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}=jee(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 nte(){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 rte(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 ote(){}class ate extends Dee{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=rte(e),this.services={},this.logger=Eee,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=nte();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...rte(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?Eee.init(o(this.modules.logger),this.options):Eee.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=ete);const n=new Uee(this.options);this.store=new Lee(this.options.resources,this.options);const a=this.services;a.logger=Eee,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new Yee(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 Jee(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new tte(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 Hee(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=ote),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=Oee(),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]:ote;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=Oee();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ote),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&&Bee.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=Oee();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=Oee();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=Oee();"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 Uee(nte());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 ate(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]:ote;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new ate(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 Lee(this.store.data,r),o.services.resourceStore=o.store),o.translator=new Hee(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 ite=ate.createInstance();function ste(e){return(ste="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)}ite.createInstance=ate.createInstance,ite.createInstance,ite.dir,ite.init,ite.loadResources,ite.reloadResources,ite.use,ite.changeLanguage,ite.getFixedT,ite.t,ite.exists,ite.setDefaultNamespace,ite.hasLoadedNamespace,ite.loadNamespaces,ite.loadLanguages;var lte=[],cte=lte.forEach,ute=lte.slice;function dte(e){return cte.call(ute.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function fte(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":ste(XMLHttpRequest))}function pte(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 hte,gte={exports:{}},mte={exports:{}};function bte(){return hte||(hte=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(Mte){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){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&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(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(Mte){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}(mte,mte.exports)),mte.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!==pte&&("undefined"==typeof window||void 0===window.document)){var o=r||bte();o.default&&(o=o.default),n.default=o,e.exports=n.default}}(gte,gte.exports);var vte=gte.exports;const yte=n(vte),wte=e({__proto__:null,default:yte},[vte]);function xte(e){return(xte="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 Ste,kte,Cte;"function"==typeof fetch&&(Ste="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),fte()&&("undefined"!=typeof global&&global.XMLHttpRequest?kte=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(kte=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?Cte=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(Cte=window.ActiveXObject)),Ste||!wte||kte||Cte||(Ste=yte||wte),"function"!=typeof Ste&&(Ste=void 0);var Ete=function(e,t){if(t&&"object"===xte(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},Dte=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):Ste(e,t).then(r).catch(n)},Ote=!1,$te=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Ste&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=Ete(t,e.queryStringParams));var o=dte({},"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=dte({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},Ote?{}:a);try{Dte(t,i,r)}catch(Mte){if(!a||0===Object.keys(a).length||!Mte.message||Mte.message.indexOf("not implemented")<0)return r(Mte);try{Object.keys(a).forEach((function(e){delete i[e]})),Dte(t,i,r),Ote=!0}catch(s){r(s)}}}(e,t,n,r):fte()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===xte(n)&&(n=Ete("",n).slice(1)),e.queryStringParams&&(t=Ete(t,e.queryStringParams));try{var o;(o=kte?new kte:new Cte("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(Mte){console&&console.log(Mte)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function jte(e){return(jte="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 Pte(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,_te(r.key),r)}}function _te(e){var t=function(e,t){if("object"!==jte(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jte(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jte(t)?t:String(t)}var Nte=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=_te(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:$te,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Ite=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=dte(n,this.options||{},Nte()),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(Mte){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&&Pte(t.prototype,n),r&&Pte(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Ite.type="backend";const Tte=JSON.parse(localStorage.getItem(p4));ite.use(W1).use(Ite).init({backend:{loadPath:"/lobe/locales/{{lng}}"},debug:!1,fallbackLng:"en_US",lng:(null==Tte?void 0:Tte.i18n)||"en_US"});const Ate=wH((({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 Fte,Rte={exports:{}};Fte=()=>{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,D,O="data:application/octet-stream;base64,";function $(e){return e.startsWith(O)}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")||(D=C,C=r.locateFile?r.locateFile(D,""):""+D),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 Mte,Lte,Bte=Rte.exports=Fte(),zte={exports:{}};zte.exports=(Mte={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 D(){return 1===p||2!==p?w("unexpected </array>"):void y()}function O(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(">"),D();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&&D();continue;case"key":A=T(g),1!==p?w("unexpected <key>"):null!==b?w("too many <key>"):b=A;continue;case"string":O(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()}}},Lte={},function e(t){var n=Lte[t];if(void 0!==n)return n.exports;var r=Lte[t]={exports:{}};return Mte[t].call(r.exports,r,r.exports,e),r.exports}(787));var Hte=zte.exports;const Wte=[{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 Ute,Vte,Gte,qte,Kte,Xte,Yte,Qte=(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))(Qte||{});class Jte{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=Jte.getLanguageId(e),n=Jte.getTokenType(e),r=Jte.getFontStyle(e),o=Jte.getForeground(e),a=Jte.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=Jte.getLanguageId(e),s=Jte.getTokenType(e),l=Jte.getFontStyle(e),c=Jte.getForeground(e),u=Jte.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|(Jte.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function Zte(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function ene(e){return e.startsWith("./")?e.slice(2):e}function tne(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function nne(...e){return e.map(Zte).map(ene).join("/")}function rne(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(one(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(one(t));return i=15}if(ane(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(ane(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&&!ane(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++,ane(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||!ine(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&&ine(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&ine(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&ine(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&&ine(e.charCodeAt(r))){for(r++;r<e.length&&ine(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(one(e)||ane(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 one(e){return 32===e||9===e}function ane(e){return 10===e||13===e}function ine(e){return e>=48&&e<=57}(Vte=Ute||(Ute={}))[Vte.lineFeed=10]="lineFeed",Vte[Vte.carriageReturn=13]="carriageReturn",Vte[Vte.space=32]="space",Vte[Vte._0=48]="_0",Vte[Vte._1=49]="_1",Vte[Vte._2=50]="_2",Vte[Vte._3=51]="_3",Vte[Vte._4=52]="_4",Vte[Vte._5=53]="_5",Vte[Vte._6=54]="_6",Vte[Vte._7=55]="_7",Vte[Vte._8=56]="_8",Vte[Vte._9=57]="_9",Vte[Vte.a=97]="a",Vte[Vte.b=98]="b",Vte[Vte.c=99]="c",Vte[Vte.d=100]="d",Vte[Vte.e=101]="e",Vte[Vte.f=102]="f",Vte[Vte.g=103]="g",Vte[Vte.h=104]="h",Vte[Vte.i=105]="i",Vte[Vte.j=106]="j",Vte[Vte.k=107]="k",Vte[Vte.l=108]="l",Vte[Vte.m=109]="m",Vte[Vte.n=110]="n",Vte[Vte.o=111]="o",Vte[Vte.p=112]="p",Vte[Vte.q=113]="q",Vte[Vte.r=114]="r",Vte[Vte.s=115]="s",Vte[Vte.t=116]="t",Vte[Vte.u=117]="u",Vte[Vte.v=118]="v",Vte[Vte.w=119]="w",Vte[Vte.x=120]="x",Vte[Vte.y=121]="y",Vte[Vte.z=122]="z",Vte[Vte.A=65]="A",Vte[Vte.B=66]="B",Vte[Vte.C=67]="C",Vte[Vte.D=68]="D",Vte[Vte.E=69]="E",Vte[Vte.F=70]="F",Vte[Vte.G=71]="G",Vte[Vte.H=72]="H",Vte[Vte.I=73]="I",Vte[Vte.J=74]="J",Vte[Vte.K=75]="K",Vte[Vte.L=76]="L",Vte[Vte.M=77]="M",Vte[Vte.N=78]="N",Vte[Vte.O=79]="O",Vte[Vte.P=80]="P",Vte[Vte.Q=81]="Q",Vte[Vte.R=82]="R",Vte[Vte.S=83]="S",Vte[Vte.T=84]="T",Vte[Vte.U=85]="U",Vte[Vte.V=86]="V",Vte[Vte.W=87]="W",Vte[Vte.X=88]="X",Vte[Vte.Y=89]="Y",Vte[Vte.Z=90]="Z",Vte[Vte.asterisk=42]="asterisk",Vte[Vte.backslash=92]="backslash",Vte[Vte.closeBrace=125]="closeBrace",Vte[Vte.closeBracket=93]="closeBracket",Vte[Vte.colon=58]="colon",Vte[Vte.comma=44]="comma",Vte[Vte.dot=46]="dot",Vte[Vte.doubleQuote=34]="doubleQuote",Vte[Vte.minus=45]="minus",Vte[Vte.openBrace=123]="openBrace",Vte[Vte.openBracket=91]="openBracket",Vte[Vte.plus=43]="plus",Vte[Vte.slash=47]="slash",Vte[Vte.formFeed=12]="formFeed",Vte[Vte.tab=9]="tab",(Gte||(Gte={})).DEFAULT={allowTrailingComma:!1},(Kte=qte||(qte={}))[Kte.None=0]="None",Kte[Kte.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",Kte[Kte.UnexpectedEndOfString=2]="UnexpectedEndOfString",Kte[Kte.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",Kte[Kte.InvalidUnicode=4]="InvalidUnicode",Kte[Kte.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",Kte[Kte.InvalidCharacter=6]="InvalidCharacter",(Yte=Xte||(Xte={}))[Yte.OpenBraceToken=1]="OpenBraceToken",Yte[Yte.CloseBraceToken=2]="CloseBraceToken",Yte[Yte.OpenBracketToken=3]="OpenBracketToken",Yte[Yte.CloseBracketToken=4]="CloseBracketToken",Yte[Yte.CommaToken=5]="CommaToken",Yte[Yte.ColonToken=6]="ColonToken",Yte[Yte.NullKeyword=7]="NullKeyword",Yte[Yte.TrueKeyword=8]="TrueKeyword",Yte[Yte.FalseKeyword=9]="FalseKeyword",Yte[Yte.StringLiteral=10]="StringLiteral",Yte[Yte.NumericLiteral=11]="NumericLiteral",Yte[Yte.LineCommentTrivia=12]="LineCommentTrivia",Yte[Yte.BlockCommentTrivia=13]="BlockCommentTrivia",Yte[Yte.LineBreakTrivia=14]="LineBreakTrivia",Yte[Yte.Trivia=15]="Trivia",Yte[Yte.Unknown=16]="Unknown",Yte[Yte.EOF=17]="EOF";const sne=function(e,t=[],n=Gte.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=Gte.DEFAULT){const r=rne(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(),O()||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 D(){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]++,O()||x(4,[],[4,5]),t=!0}return p(),e||o.pop(),4!==r.getToken()?x(8,[4],[]):w(),!0}function O(){switch(r.getToken()){case 3:return D();case 1:return E();case 10:return S(!0);default:return k()}}if(w(),17===r.getToken())return!!n.allowEmptyContent||(x(4,[],[]),!1);if(!O())return x(4,[],[]),!1;17!==r.getToken()&&x(9,[],[])}(e,s,n),o[0]};var lne,cne;(cne=lne||(lne={}))[cne.InvalidSymbol=1]="InvalidSymbol",cne[cne.InvalidNumberFormat=2]="InvalidNumberFormat",cne[cne.PropertyNameExpected=3]="PropertyNameExpected",cne[cne.ValueExpected=4]="ValueExpected",cne[cne.ColonExpected=5]="ColonExpected",cne[cne.CommaExpected=6]="CommaExpected",cne[cne.CloseBraceExpected=7]="CloseBraceExpected",cne[cne.CloseBracketExpected=8]="CloseBracketExpected",cne[cne.EndOfFileExpected=9]="EndOfFileExpected",cne[cne.InvalidCommentToken=10]="InvalidCommentToken",cne[cne.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",cne[cne.UnexpectedEndOfString=12]="UnexpectedEndOfString",cne[cne.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",cne[cne.InvalidUnicode=14]="InvalidUnicode",cne[cne.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",cne[cne.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let une="";const dne="dist/";let fne=null;function pne(e){return`${une}${e}`}async function hne(e){const t=[],n=await async function(e){const t=pne(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(Mte){if(r=sne(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function gne(e){const t=mne(await hne(e));if(t.include){const n=await gne(nne(...tne(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 mne(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...yne(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 bne={light:"#333333",dark:"#bbbbbb"},vne={light:"#fffffe",dark:"#1e1e1e"};function yne(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?bne.light:bne.dark),i||(i="light"===e.type?vne.light:vne.dark),{fg:a,bg:i}}class wne{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 hne(e)}(Wte.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 xne(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:Cne(e,a,o)}}return n}function Sne(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function kne(e,t,n,r){if(!Sne(e,n))return!1;let o=t.length-1,a=r.length-1;for(;o>=0&&a>=0;)Sne(t[o],r[a])&&o--,a--;return-1===o}function Cne(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(/ /);kne(l[l.length-1],l.slice(0,l.length-1),t,n)&&(r[o++]=s,e=a)}}return r}var Ene=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Dne={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function One(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 $ne(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 jne(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){Dne[r]&&t.push({type:"setDecoration",value:Dne[r]})}else if(r<=29){const e=Dne[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ene[r-30]}});else if(38===r){const n=$ne(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:Ene[r-40]}});else if(48===r){const n=$ne(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:Ene[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ene[r-100+8]}})}return t}var Pne={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 _ne(e=Pne){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<Ene.length;n++)r.push(t(Ene[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 Nne(e,t){const n=t.split(/\r?\n/),r=_ne(Object.fromEntries(Ene.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=One(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=jne(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=Qte.None;return t.decorations.has("bold")&&(o|=Qte.Bold),t.decorations.has("italic")&&(o|=Qte.Italic),t.decorations.has("underline")&&(o|=Qte.Underline),{content:t.value,color:n,fontStyle:o}}))))}const Ine={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 Tne(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]||Ine[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&Qte.Italic&&o.push("font-style: italic"),e.fontStyle&Qte.Bold&&o.push("font-weight: bold"),e.fontStyle&Qte.Underline&&o.push("text-decoration: underline"),a("token",{style:o.join("; "),tokens:n,token:e,index:r},[(i=e.content,i.replace(/[&<>"']/g,(e=>Ane[e])))]);var i})))})))])}const Ane={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Fne extends Hte.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Wte.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 gne(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=mne(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 Rne(e){return"string"==typeof e?Wte.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function Mne(e){var t,n;const{_languages:r,_themes:o,_wasmPath:a}=function(e){var t;let n=Wte,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":dne;return e.langs&&(n=e.langs.map(Rne)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),i=new wne(async function(e){if(!fne){let t;t=Bte.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(pne(nne(...tne(e),"onig.wasm")))}),fne=t.then((()=>({createOnigScanner:e=>Bte.createOnigScanner(e),createOnigString:e=>Bte.createOnigString(e)})))}return fne}(a),"vscode-oniguruma"),s=new Fne(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<Ene.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,r=Ene[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=Hte.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[Jte.getForeground(i)],c=Jte.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:xne(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 Nne(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 Tne(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 Tne(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=Rne(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 Lne;une=(Lne="https://cdn.jsdelivr.net/npm/shiki-es@0.14.0/dist/assets/").endsWith("/")?Lne:Lne+"/";const{useDebugValue:Bne}=H,{useSyncExternalStoreWithSelector:zne}=e4;const Hne=(e,t)=>{const n=W3(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=zne(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Bne(r),r}(n,e,r);return Object.assign(r,n),r},Wne=((e,t)=>e?Hne(e,t):Hne)(((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 Mne({langs:null==n?void 0:n.langs,themes:null==n?void 0:n.themes});e({highlighter:t})}}})),Ff),Une=z.memo((({children:e,language:t,options:n})=>{const{styles:r}=Ate(),{isDarkMode:o}=Rz(),[a,i]=Wne((e=>[e.codeToHtml,!e.highlighter]));return z.useEffect((()=>{Wne.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(yU,{className:r.loading,gap:8,horizontal:!0,children:[Q.jsx(IH,{icon:np,spin:!0}),"Highlighting..."]})]})})),Vne=e=>{const t=e?"dark":"light",n=e?IY.yellow[t][9]:IY.gold[t][10],r=e?IY.gold[t][9]:IY.orange[t][10],o=e?IY.volcano[t][10]:IY.volcano[t][8],a=e?IY.lime[t][9]:IY.green[t][10],i=e?IY.blue[t][9]:IY.geekblue[t][9],s=e?IY.purple[t][11]:IY.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}},Gne={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+)",name:"number"},{match:"__.*__",name:"wildcards"}],scopeName:"source.prompt"},id:"prompt",scopeName:"source.prompt"}],themes:[Vne(!0),Vne(!1)]},qne=z.memo((({parentId:e})=>{const t=z.useRef(null),[n,r]=z.useState(""),{styles:o,theme:a}=Ate(),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=EV(ZX((function(){var e=ZV(c);return e?{width:e.clientWidth,height:e.clientHeight}:void 0})),2),d=u[0],f=u[1],tY((function(){var e=ZV(c);if(e){var t=new Kv((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=EV(ZX(),2),r=n[0],o=n[1],a=$V(t);return tG((function(){var t=ZV(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(Une,{language:"prompt",options:Gne,children:n.trim()})})})),Kne=z.memo((({parentId:e})=>{const{loading:t}=v4((e=>({loading:e.loading})),Ff);return Q.jsx(See,{children:!1===t&&Q.jsx(qne,{parentId:e})})})),Xne=(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(Kne,{parentId:e})})}))};var Yne='<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 Qne=(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}"`))},Jne=e=>SH`
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: ${CV(e.colorPrimary)};
background: ${e.colorPrimary};
&:hover {
color: ${CV(e.colorPrimary)} !important;
background: ${e.colorPrimaryHover} !important;
}
&:active {
color: ${CV(e.colorPrimaryActive)} !important;
background: ${e.colorPrimaryActive} !important;
}
}
`,Zne=e=>SH`
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;
}
}
`,ere=e=>SH`
.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};
}
}
}
`,tre=e=>SH`
.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: ${CV(e.colorPrimary)};
background: ${e.colorPrimary};
}
}
}
`,nre=e=>SH`
#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;
}
}
}
`,rre=e=>{const t=SH`
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 SH`
.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;
}
}
}
`},ore=e=>SH`
.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;
}
}
`,are=e=>SH`
#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;
}
`,ire=e=>SH`
.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;
}
}
}
`,sre=CH`
0% {
background-position: 0 0;
}
100% {
background-position: 24px 24px;
}
`,lre=e=>SH`
.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: ${sre} 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%);
}
}
}
`,cre=e=>SH`
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};
}
}
`,ure=e=>SH`
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};
}
}
`,dre=e=>SH`
.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);
}
}
`,fre=xH((({theme:e})=>{return[(t=e,SH`
: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: ${CV(t.colorError)};
--button-cancel-text-color-hover: ${CV(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: ${CV(t.colorPrimary)};
--button-primary-text-color-hover: ${CV(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%);
}
`),Jne(e),Zne(e),tre(e),rre(e),ore(e),SH`
[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;
}
}
`,ere(e),ire(e),lre(e),cre(e),ure(e),dre(e),nre(e),are(e)];var t})),pre=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))),hre=wH((({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"};
}
}
`}))),gre=z.memo((({className:e,...t})=>{const n=z.useRef(null),{mobile:r}=Vz(),o=v4(g4,tJ),{cx:a,styles:i}=hre({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"),j9.addPromptButton("txt2img"),j9.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(pre,{})]})})),mre=wH((({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);
`}))),bre=["txt2img","img2img"],vre=["textual_inversion","hypernetworks","checkpoints","lora","lycoris"],yre={checkpoints:"ckp",hypernetworks:"hyper",lora:"lora",lycoris:"lycoris",textual_inversion:"ti"},wre=new Set(["🌐","💡","🏷️"]),xre="lobeDone",Sre=(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 kre(e){return null==e}const Cre=()=>{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 bre){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 bre)for(const n of vre){if(p=yre[n],i=`${y}_${n}_cards`,s=document.querySelector(`#${i}`),kre(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[xre])break;if(n.dataset[xre]="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"),kre(d)&&(d=document.createElement("ul"),c.append(d)),u=n.querySelector(".actions .additional a"),kre(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,wre.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="🖼️",Sre(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="🌐",Sre(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="💡",Sre(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="🏷️",Sre(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>=vre.length||s>n)&&(clearInterval(o),n=s??n)}t++}),2e3)},t()},Ere=z.memo((()=>{const e=z.useRef(null),t=z.useRef(null),[n,r]=z.useState(!0),o=v4(g4,tJ),a=v4(m4,Ff),[i,s]=z.useState(o.extraNetworkCardSize||86),{styles:l}=mre({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 Cre(),void r(!1)}console.timeEnd("🤯 [layout] inject - ExtraNetworkSidebar")}),[]),nY((()=>{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=Cre);const r=null==(t=document.querySelector("#img2img_extra_refresh"))?void 0:t.nextSibling;r&&(r.onclick=Cre),Cre()}catch(a){console.debug(a)}console.timeEnd("🤯 [extranetwork] force reload")}),2e3),Q.jsxs(Q.Fragment,{children:[Q.jsxs(zQ,{className:l.body,children:[n&&Q.jsx(FA,{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(XQ,{children:[Q.jsx(HH,{icon:o.extraNetworkCardSize<i?mp:gp,onClick:()=>s(o.extraNetworkCardSize),size:{blockSize:24,fontSize:16}}),Q.jsx(ez,{defaultValue:i,max:256,min:64,onChange:s,step:8,style:{flex:1},value:i})]})]})})),Dre=z.memo((({headerHeight:e})=>{const{mobile:t}=Vz(),n=v4(g4,tJ),[r,o]=z.useState(!t&&n.extraNetworkSidebarExpand),[a,i]=z.useState("fixed"===n.extraNetworkFixedMode),{styles:s,theme:l}=mre({headerHeight:e}),{t:c}=G1();z.useEffect((()=>{t&&o(!1)}),[t]);const u=t||a?"fixed":"float";return Q.jsx(NQ,{defaultSize:{width:n.extraNetworkSidebarWidth},expand:r,minWidth:n.extraNetworkSidebarWidth,mode:u,onExpandChange:o,pin:a,placement:"right",children:Q.jsx(KZ,{children:Q.jsxs(VQ,{className:s.container,style:"float"===u?{background:l.colorBgContainer,minWidth:n.extraNetworkSidebarWidth}:{minWidth:n.extraNetworkSidebarWidth},children:[Q.jsx(ZQ,{pin:a,position:"right",setExpand:o,setPin:i,title:c("extraNetwork")}),Q.jsx(Ere,{})]})})})})),Ore=Dre,$re=[{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"}],jre=[{icon:Q.jsx(IH,{icon:Gf,size:"small"}),openExternal:!0,title:"Report Bug",url:`${q1}/issues/new/choose`},{icon:Q.jsx(IH,{icon:Jf,size:"small"}),openExternal:!0,title:"Request Feature",url:`${q1}/issues/new/choose`}],Pre=[{icon:Q.jsx(IH,{icon:Zf,size:"small"}),openExternal:!0,title:"GitHub",url:q1},{icon:Q.jsx(IH,{icon:Qf,size:"small"}),openExternal:!0,title:"Changelog",url:`${q1}/blob/main/CHANGELOG.md`}],_re=[{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"}],Nre=wH((({css:e})=>({footer:e`
footer {
display: block !important;
}
`}))),Ire=z.memo((({className:e,...t})=>{const n=v4(g4,tJ),{cx:r,styles:o}=Nre(),{t:a}=G1(),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(cJ,{bottom:Q.jsx("div",{ref:i}),columns:n.layoutHideFooter?[]:[{items:$re,title:a("resources")},{items:jre,title:a("community")},{items:Pre,title:a("help")},{items:_re,title:a("moreProducts")}]})})})),Tre=Ire,Are=({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"})}),Fre=z.memo((()=>{const[e,t]=z.useState(!1),[n,r]=z.useState(!1),o=v4(b4,Ff),{mobile:a}=Vz(),{t:i}=G1(),s=z.useCallback((()=>{const e="light"===o?"dark":"light",t=wee.parseUrl(window.location.href);t.query.__theme=e,window.location.replace(wee.stringifyUrl(t))}),[o]);return Q.jsxs(Q.Fragment,{children:[Q.jsxs(JM.Compact,{children:[!a&&Q.jsxs(Q.Fragment,{children:[Q.jsx("a",{href:"https://civitai.com/",rel:"noreferrer",target:"_blank",children:Q.jsx(HH,{icon:Are,title:"Civitai"})}),Q.jsx("a",{href:"https://supagruen.github.io/StableDiffusion-CheatSheet/",rel:"noreferrer",target:"_blank",children:Q.jsx(HH,{icon:ep,title:"Cheat Sheet"})}),Q.jsx(HH,{icon:Zf,onClick:()=>r(!0),title:i("feedback")})]}),Q.jsx(HH,{icon:"light"===o?fp:op,onClick:s,title:i("switchTheme")}),Q.jsx(HH,{icon:dp,onClick:()=>t(!0),title:i("setting")})]}),Q.jsx(Y9,{onCancel:()=>t(!1),open:e}),Q.jsx(k4,{onCancel:()=>r(!1),open:n})]})})),Rre=Fre,Mre=()=>Array.prototype.slice.call(gradioApp().querySelectorAll("#tabs > .tab-nav:first-of-type button")),Lre=()=>{console.debug("🤯 [nav] generate nav list");const e=Array.prototype.slice.call(gradioApp().querySelectorAll('#tabs > [id^="tab_"]'));return Mre().map(((t,n)=>({id:e[n].id,index:n,label:sU(String(t.textContent))})))},Bre=z.memo((()=>{const e=v4(m4,Ff),{mobile:t}=Vz(),[n,r]=z.useState(!1),[o,a]=z.useState([]),i=z.useMemo((()=>Lre()),[]),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;Mre()[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(fY,{items:o,opened:n,setOpened:r}):Q.jsx(H0,{activeKey:e,items:o,onChange:s})})),zre=z.memo((({children:e})=>{const{themeMode:t,version:n}=v4((e=>({themeMode:e.themeMode,version:e.version})),Ff),r=OH();return Q.jsx(CZ,{actions:Q.jsx(Rre,{themeMode:t}),actionsStyle:{flex:0},logo:Q.jsx("a",{href:`${q1}/releases`,rel:"noreferrer",style:{alignItems:"center",color:r.colorText,display:"flex"},target:"_blank",children:Q.jsx(_1,{title:`sd-webui-lobe-theme v${n}`,children:Q.jsx($4,{})})}),nav:Q.jsxs(Q.Fragment,{children:[Q.jsx(Bre,{}),e]})})})),Hre=z.memo((()=>{const e=v4(g4,tJ),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(zQ,{children:[e.promptEditor&&Q.jsx(M9,{}),Q.jsx("div",{ref:t})]})})),Wre=wH((({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;
}
}
`}))),Ure=z.memo((({headerHeight:e})=>{const{mobile:t}=Vz(),n=v4(g4,tJ),[r,o]=z.useState(!t&&n.sidebarExpand),[a,i]=z.useState("fixed"===n.sidebarFixedMode),[s,l]=z.useState(n.sidebarWidth),{styles:c,theme:u}=Wre({headerHeight:e,width:s}),{t:d}=G1();z.useEffect((()=>{t&&o(!1)}),[t]);const f=t||a?"fixed":"float";return Q.jsx(NQ,{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(KZ,{children:Q.jsxs(VQ,{className:c.container,style:"float"===f?{background:u.colorBgContainer,minWidth:n.sidebarWidth}:{minWidth:n.sidebarWidth},children:[Q.jsx(ZQ,{pin:a,position:"left",setExpand:o,setPin:i,title:d("quickSetting")}),Q.jsx(Hre,{})]})})})})),Vre=Ure,Gre=wH((({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},
${vV(45,r.colorPrimary)},
${r.colorPrimary},
${vV(-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);
`}))),qre=64,Kre=z.memo((()=>{const e=v4(g4,tJ),{cx:t,styles:n}=Gre({headerHeight:qre,isPrimaryColor:Boolean(e.primaryColor)});return z.useEffect((()=>{e.enableHighlight&&(Xne("#txt2img_prompt","#lobe_txt2img_prompt"),Xne("#img2img_prompt","#lobe_img2img_prompt")),e.svgIcon&&(()=>{console.time("🤯 [svgIcon] replace");for(const e of document.querySelectorAll("button"))Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(e,["➡️"],Yne,16),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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),Qne(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"))Qne(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),Qne(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),Qne(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),Qne(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"))Qne(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),Qne(e,[""],Yne,36);console.timeEnd("🤯 [svgIcon] replace")})()}),[]),Q.jsxs(Q.Fragment,{children:[Q.jsx(fre,{}),Q.jsx(VZ,{headerHeight:qre,children:Q.jsx(zre,{})}),Q.jsxs(GZ,{children:[Q.jsx("div",{className:e.liteAnimation?n.backgroundLite:n.background}),e.enableSidebar&&Q.jsx(qZ,{className:n.sidebar,headerHeight:qre,style:{flex:0,zIndex:50},children:Q.jsx(Vre,{headerHeight:qre})}),Q.jsx(gre,{className:t(!e.enableSidebar&&n.quicksettings)}),(null==e?void 0:e.enableExtraNetworkSidebar)&&Q.jsx(qZ,{className:n.sidebar,headerHeight:qre,style:{flex:0,zIndex:50},children:Q.jsx(Ore,{headerHeight:qre})})]}),Q.jsx(Tre,{})]})})),Xre={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"},Yre=`data:application/manifest+json;base64,${btoa(JSON.stringify(Xre))}`,Qre=z.memo((()=>{const[e,t]=z.useState(!0),{setCurrentTab:n,onInit:r,storeLoading:o}=v4((e=>({onInit:e.onInit,setCurrentTab:e.setCurrentTab,storeLoading:e.loading})),Ff);return z.useEffect((()=>{console.time("🤯 Lobe Theme loading"),r(),onUiLoaded((()=>{t(!1),console.timeEnd("🤯 Lobe Theme loading")})),onUiTabChange((()=>{n()}))}),[]),Q.jsxs(z.Suspense,{fallback:"loading...",children:[Q.jsxs(Af,{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:Yre,rel:"manifest"})]}),Q.jsx(See,{children:!1===o&&!1===e?Q.jsx(Kre,{}):Q.jsx(E4,{})})]})}));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(Qre,{})),console.timeEnd("🤯 Lobe Theme load in DevMode")}),{once:!0});