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

1862 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"),p=Symbol.for("react.profiler"),f=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,k={};function S(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||w}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||w}S.prototype.isReactComponent={},S.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")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=S.prototype;var D=E.prototype=new C;D.constructor=E,x(D,S.prototype),D.isPureReactComponent=!0;var O=Array.isArray,_=Object.prototype.hasOwnProperty,$={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function N(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)&&!j.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:$.current}}function P(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 F(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,"$&/")+"/"),F(o,t,n,"",(function(e){return e}))):null!=o&&(P(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+=F(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+=F(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 R(e,t,n){if(null==e)return e;var r=[],o=0;return F(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function A(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:$};s.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},s.Component=S,s.Fragment=u,s.Profiler=p,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=$.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)&&!j.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:f,_context:e},e.Consumer=e},s.createElement=N,s.createFactory=function(e){var t=N.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=P,s.lazy=function(e){return{$$typeof:v,_payload:{_status:-1,_result:e},_init:A}},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,G=Symbol.for("react.element"),V=Symbol.for("react.fragment"),q=Object.prototype.hasOwnProperty,X=U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,K={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)&&!K.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:G,type:e,key:a,ref:i,props:o,_owner:X.current}}a.Fragment=V,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,p=3,f=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function w(e){if(g=!1,y(e),!h)if(null!==n(l))h=!0,P(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),f=!0;var a=p;try{for(y(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!_());){var i=d.callback;if("function"==typeof i){d.callback=null,p=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,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,C=null,E=-1,D=5,O=-1;function _(){return!(e.unstable_now()-O<D)}function $(){if(null!==C){var t=e.unstable_now();O=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}if("function"==typeof v)k=function(){v($)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel,N=j.port2;j.port1.onmessage=$,k=function(){N.postMessage(null)}}else k=function(){m($,0)};function P(e){C=e,S||(S=!0,k())}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||f||(h=!0,P(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 p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=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=p;p=e;try{return t()}finally{p=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||f||(h=!0,P(x))),r},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(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,pe=/^[: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]*$/,fe={},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(fe,e)&&(pe.test(e)?he[e]=!0:(fe[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"),ke=Symbol.for("react.portal"),Se=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"),$e=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Ie=Symbol.for("react.offscreen"),Te=Symbol.iterator;function Fe(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Te&&e[Te]||e["@@iterator"])?e:null}var Re,Ae=Object.assign;function Me(e){if(void 0===Re)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Re=t&&t[1]||""}return"\n"+Re+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 Se:return"Fragment";case ke:return"Portal";case Ee:return"Profiler";case Ce:return"StrictMode";case $e:return"Suspense";case je: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 Ne:return null!==(t=e.displayName||null)?t:He(e.type)||"Memo";case Pe: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 Ge(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ve(e){e._valueTracker||(e._valueTracker=function(e){var t=Ge(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=Ge(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Xe(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 Ke(e,t){var n=t.checked;return Ae({},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&&Xe(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 Ae({},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 pt(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 ft={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||ft.hasOwnProperty(e)&&ft[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(ft).forEach((function(e){ht.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ft[t]=ft[e]}))}));var bt=Ae({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 kt=null,St=null,Ct=null;function Et(e){if(e=wa(e)){if("function"!=typeof kt)throw Error(ae(280));var t=e.stateNode;t&&(t=ka(t),kt(e.stateNode,e.type,t))}}function Dt(e){St?Ct?Ct.push(e):Ct=[e]:St=e}function Ot(){if(St){var e=St,t=Ct;if(Ct=St=null,Et(e),t)for(e=0;e<t.length;e++)Et(t[e])}}function _t(e,t){return e(t)}function $t(){}var jt=!1;function Nt(e,t,n){if(jt)return e(t,n);jt=!0;try{return _t(e,t,n)}finally{jt=!1,(null!==St||null!==Ct)&&($t(),Ot())}}function Pt(e,t){var n=e.stateNode;if(null===n)return null;var r=ka(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 Ft(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 Rt=!1,At=null,Mt=!1,Lt=null,Bt={onError:function(e){Rt=!0,At=e}};function zt(e,t,n,r,o,a,i,s,l){Rt=!1,At=null,Ft.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 Gt(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))?Vt(e):null}function Vt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Vt(e);if(null!==t)return t;e=e.sibling}return null}var qt=oe.unstable_scheduleCallback,Xt=oe.unstable_cancelCallback,Kt=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 pn(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 fn(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=pn(s):0!==(a&=i)&&(r=pn(a))}else 0!==(i=n&~o)?r=pn(i):0!==a&&(r=pn(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 kn,Sn,Cn,En,Dn,On=!1,_n=[],$n=null,jn=null,Nn=null,Pn=new Map,In=new Map,Tn=[],Fn="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 Rn(e,t){switch(e){case"focusin":case"focusout":$n=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":Pn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":In.delete(t.pointerId)}}function An(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))&&Sn(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))&&Sn(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!==$n&&Ln($n)&&($n=null),null!==jn&&Ln(jn)&&(jn=null),null!==Nn&&Ln(Nn)&&(Nn=null),Pn.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!==$n&&Hn($n,e),null!==jn&&Hn(jn,e),null!==Nn&&Hn(Nn,e),Pn.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,Gn=!0;function Vn(e,t,n,r){var o=wn,a=Un.transition;Un.transition=null;try{wn=1,Xn(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,Xn(e,t,n,r)}finally{wn=o,Un.transition=a}}function Xn(e,t,n,r){if(Gn){var o=Yn(e,t,n,r);if(null===o)Go(e,t,r,Kn,n),Rn(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return $n=An($n,e,t,n,r,o),!0;case"dragenter":return jn=An(jn,e,t,n,r,o),!0;case"mouseover":return Nn=An(Nn,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pn.set(a,An(Pn.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,In.set(a,An(In.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Rn(e,r),4&t&&-1<Fn.indexOf(e)){for(;null!==o;){var a=wa(o);if(null!==a&&kn(a),null===(a=Yn(e,t,n,r))&&Go(e,t,r,Kn,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Go(e,t,r,null,n)}}var Kn=null;function Yn(e,t,n,r){if(Kn=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 Kn=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 Ae(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=Ae({},cr,{view:0,detail:0}),pr=ar(dr),fr=Ae({},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(fr),gr=ar(Ae({},fr,{dataTransfer:0})),mr=ar(Ae({},dr,{relatedTarget:0})),br=ar(Ae({},cr,{animationName:0,elapsedTime:0,pseudoElement:0})),vr=Ae({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ar(vr),wr=ar(Ae({},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"},kr={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"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function Er(){return Cr}var Dr=Ae({},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?kr[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(Ae({},fr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$r=ar(Ae({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),jr=ar(Ae({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nr=Ae({},fr,{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}),Pr=ar(Nr),Ir=[9,13,27,32],Tr=ue&&"CompositionEvent"in window,Fr=null;ue&&"documentMode"in document&&(Fr=document.documentMode);var Rr=ue&&"TextEvent"in window&&!Fr,Ar=ue&&(!Tr||Fr&&8<Fr&&11>=Fr),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 Gr(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 Vr=null,qr=null;function Xr(e){Lo(e,0)}function Kr(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(){Vr&&(Vr.detachEvent("onpropertychange",no),qr=Vr=null)}function no(e){if("value"===e.propertyName&&Kr(qr)){var t=[];Gr(t,qr,e,xt(e)),Nt(Xr,t)}}function ro(e,t,n){"focusin"===e?(to(),qr=n,(Vr=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function oo(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kr(qr)}function ao(e,t){if("click"===e)return Kr(t)}function io(e,t){if("input"===e||"change"===e)return Kr(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 po(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?po(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fo(){for(var e=window,t=Xe();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Xe((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=fo(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&po(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!==Xe(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 ko(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var So={animationend:ko("Animation","AnimationEnd"),animationiteration:ko("Animation","AnimationIteration"),animationstart:ko("Animation","AnimationStart"),transitionend:ko("Transition","TransitionEnd")},Co={},Eo={};function Do(e){if(Co[e])return Co[e];if(!So[e])return e;var t,n=So[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 So.animationend.animation,delete So.animationiteration.animation,delete So.animationstart.animation),"TransitionEvent"in window||delete So.transitionend.transition);var Oo=Do("animationend"),_o=Do("animationiteration"),$o=Do("animationstart"),jo=Do("transitionend"),No=new Map,Po="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){No.set(e,t),le(t,[e])}for(var To=0;To<Po.length;To++){var Fo=Po[To];Io(Fo.toLowerCase(),"on"+(Fo[0].toUpperCase()+Fo.slice(1)))}Io(Oo,"onAnimationEnd"),Io(_o,"onAnimationIteration"),Io($o,"onAnimationStart"),Io("dblclick","onDoubleClick"),Io("focusin","onFocus"),Io("focusout","onBlur"),Io(jo,"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 Ro="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(" "),Ao=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ro));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),Rt){if(!Rt)throw Error(ae(198));var c=At;Rt=!1,At=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&&(Ao.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=Vn;break;case 4:o=qn;break;default:o=Xn}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 Go(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}Nt((function(){var r=a,o=xt(n),i=[];e:{var s=No.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=$r;break;case Oo:case _o:case $o:l=br;break;case jo:l=jr;break;case"scroll":l=pr;break;case"wheel":l=Pr;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,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,h=r;null!==h;){var g=(f=h).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==p&&(null!=(g=Pt(h,p))&&u.push(Vo(h,g,f)))),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",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=_r,g="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==l?s:xa(l),f=null==c?s:xa(c),(s=new u(g,h+"leave",l,n,o)).target=d,s.relatedTarget=f,g=null,ya(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(p=c,h=0,f=u=l;f;f=Xo(f))h++;for(f=0,g=p;g;g=Xo(g))f++;for(;0<h-f;)u=Xo(u),h--;for(;0<f-h;)p=Xo(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Xo(u),p=Xo(p)}u=null}else u=null;null!==l&&Ko(i,s,l,u,!1),null!==c&&null!==d&&Ko(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))?Gr(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&&(Ar&&"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=Rr?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 Ar&&"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 Vo(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=Pt(e,n))&&r.unshift(Vo(e,a,o)),null!=(a=Pt(e,t))&&r.push(Vo(e,a,o))),e=e.return}return r}function Xo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ko(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=Pt(n,a))&&i.unshift(Vo(n,l,s)):o||null!=(l=Pt(n,a))&&i.push(Vo(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 pa=Math.random().toString(36).slice(2),fa="__reactFiber$"+pa,ha="__reactProps$"+pa,ga="__reactContainer$"+pa,ma="__reactEvents$"+pa,ba="__reactListeners$"+pa,va="__reactHandles$"+pa;function ya(e){var t=e[fa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ga]||n[fa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=da(e);null!==e;){if(n=e[fa])return n;e=da(e)}return t}n=(e=n).parentNode}return null}function wa(e){return!(e=e[fa]||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 ka(e){return e[ha]||null}var Sa=[],Ca=-1;function Ea(e){return{current:e}}function Da(e){0>Ca||(e.current=Sa[Ca],Sa[Ca]=null,Ca--)}function Oa(e,t){Ca++,Sa[Ca]=e.current,e.current=t}var _a={},$a=Ea(_a),ja=Ea(!1),Na=_a;function Pa(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(ja),Da($a)}function Fa(e,t,n){if($a.current!==_a)throw Error(ae(168));Oa($a,t),Oa(ja,n)}function Ra(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 Ae({},n,r)}function Aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_a,Na=$a.current,Oa($a,e),Oa(ja,ja.current),!0}function Ma(e,t,n){var r=e.stateNode;if(!r)throw Error(ae(169));n?(e=Ra(e,t,Na),r.__reactInternalMemoizedMergedChildContext=e,Da(ja),Da($a),Oa($a,e)):Da(ja),Oa(ja,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(Fte){throw null!==La&&(La=La.slice(e+1)),qt(Zt,Wa),Fte}finally{wn=t,za=!1}}return null}var Ua=[],Ga=0,Va=null,qa=0,Xa=[],Ka=0,Ya=null,Qa=1,Ja="";function Za(e,t){Ua[Ga++]=qa,Ua[Ga++]=Va,Va=e,qa=t}function ei(e,t,n){Xa[Ka++]=Qa,Xa[Ka++]=Ja,Xa[Ka++]=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===Va;)Va=Ua[--Ga],Ua[Ga]=null,qa=Ua[--Ga],Ua[Ga]=null;for(;e===Ya;)Ya=Xa[--Ka],Xa[Ka]=null,Ja=Xa[--Ka],Xa[Ka]=null,Qa=Xa[--Ka],Xa[Ka]=null}var ri=null,oi=null,ai=!1,ii=null;function si(e,t){var n=Pu(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=Pu(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 pi(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 fi(),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 fi(){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=Ae({},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 ki(){xi=wi=yi=null}function Si(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 $i(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,ji(e,r)}function ji(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 Ni=!1;function Pi(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 Fi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&$c)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ji(e,n)}return null===(o=r.interleaved)?(t.next=t,_i(r)):(t.next=o.next,o.next=t),r.interleaved=t,ji(e,n)}function Ri(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 Ai(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;Ni=!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 p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,g=s;switch(p=t,f=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=g.payload)?h.call(f,d,p):h))break e;d=Ae({},d,p);break e;case 2:Ni=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,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);Ac|=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:Ae({},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=Fi(e,a,o))&&(ru(t,e,o,r),Ri(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=Fi(e,a,o))&&(ru(t,e,o,r),Ri(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=Fi(e,o,r))&&(ru(t,e,r,n),Ri(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)?Na:$a.current,a=(r=null!=(r=t.contextTypes))?Pa(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 Gi(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 Vi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bi,Pi(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Di(a):(a=Ia(t)?Na:$a.current,o.context=Pa(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 Xi(e,t){throw e=Object.prototype.toString.call(t),Error(ae(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ki(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===Se?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Pe&&Ki(a)===t.type)?((r=o(t,n.props)).ref=qi(e,t,n),r.return=e,r):((r=Fu(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=Ru(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=Fu(t.type,t.key,t.props,null,e.mode,n)).ref=qi(e,null,t),n.return=e,n;case ke:return(t=Lu(t,e.mode,n)).return=e,t;case Pe:return d(e,(0,t._init)(t._payload),n)}if(tt(t)||Fe(t))return(t=Ru(t,e.mode,n,null)).return=e,t;Xi(e,t)}return null}function p(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 ke:return n.key===o?c(e,t,n,r):null;case Pe:return p(e,t,(o=n._init)(n._payload),r)}if(tt(n)||Fe(n))return null!==o?null:u(e,t,n,r,null);Xi(e,n)}return null}function f(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 ke:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Pe:return f(e,t,n,(0,r._init)(r._payload),o)}if(tt(r)||Fe(r))return u(t,e=e.get(n)||null,r,o,null);Xi(t,r)}return null}return function s(l,c,u,h){if("object"==typeof u&&null!==u&&u.type===Se&&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)===Se){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===Pe&&Ki(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===Se?((c=Ru(u.props.children,l.mode,h,u.key)).return=l,l=c):((h=Fu(u.type,u.key,u.props,null,l.mode,h)).ref=qi(l,c,u),h.return=l,l=h)}return i(l);case ke: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 Pe: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=p(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=f(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(Fe(u))return function(o,i,s,l){var c=Fe(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=p(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=f(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);Xi(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 ps=we.ReactCurrentDispatcher,fs=we.ReactCurrentBatchConfig,hs=0,gs=null,ms=null,bs=null,vs=!1,ys=!1,ws=0,xs=0;function ks(){throw Error(ae(321))}function Ss(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,ps.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,ps.current=cl,e=n(r,o)}while(ys)}if(ps.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 $s(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,Ac|=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,Ac|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function js(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 Ns(){}function Ps(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(Fs.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===jc)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,Rs(t)&&As(e)}function Fs(e,t,n){return n((function(){Rs(t)&&As(e)}))}function Rs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!so(e,n)}catch(r){return!0}}function As(e){var t=ji(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&&Ss(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 Gs(e,t){return Hs(4,2,e,t)}function Vs(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 Xs(e,t,n){return n=null!=n?n.concat([e]):null,Hs(4,4,qs.bind(null,t,e),n)}function Ks(){}function Ys(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ss(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&&Ss(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,Ac|=n,e.baseState=!0),t)}function Zs(e,t){var n=wn;wn=0!==n&&4>n?n:4,e(!0);var r=fs.transition;fs.transition={};try{e(!1),t()}finally{wn=n,fs.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=$i(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=$i(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:ks,useContext:ks,useEffect:ks,useImperativeHandle:ks,useInsertionEffect:ks,useLayoutEffect:ks,useMemo:ks,useReducer:ks,useRef:ks,useState:ks,useDebugValue:ks,useDeferredValue:ks,useTransition:ks,useMutableSource:ks,useSyncExternalStore:ks,useId:ks,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:Ks,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===jc)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(Fs.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=jc.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:Xs,useInsertionEffect:Gs,useLayoutEffect:Vs,useMemo:Qs,useReducer:$s,useRef:Bs,useState:function(){return $s(_s)},useDebugValue:Ks,useDeferredValue:function(e){return Js(Os(),ms.memoizedState,e)},useTransition:function(){return[$s(_s)[0],Os().memoizedState]},useMutableSource:Ns,useSyncExternalStore:Ps,useId:el,unstable_isNewReconciler:!1},cl={readContext:Di,useCallback:Ys,useContext:Di,useEffect:Us,useImperativeHandle:Xs,useInsertionEffect:Gs,useLayoutEffect:Vs,useMemo:Qs,useReducer:js,useRef:Bs,useState:function(){return js(_s)},useDebugValue:Ks,useDeferredValue:function(e){var t=Os();return null===ms?t.memoizedState=e:Js(t,ms.memoizedState,e)},useTransition:function(){return[js(_s)[0],Os().memoizedState]},useMutableSource:Ns,useSyncExternalStore:Ps,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 pl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fl="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(){Gc||(Gc=!0,Vc=r),pl(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(){pl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){pl(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 fl;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,Fi(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 kl(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,Gl(e,t,o))}function Sl(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=Fu(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 Gl(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,Gl(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)?Na:$a.current;return a=Pa(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,Gl(e,t,o))}function _l(e,t,n,r,o){if(Ia(n)){var a=!0;Aa(t)}else a=!1;if(Ei(t,o),null===t.stateNode)Ul(e,t),Ui(t,n,r),Vi(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=Pa(t,c=Ia(n)?Na:$a.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)&&Gi(t,i,r,c),Ni=!1;var p=t.memoizedState;i.state=p,Mi(t,r,i,o),l=t.memoizedState,s!==r||p!==l||ja.current||Ni?("function"==typeof u&&(zi(t,n,u,r),l=t.memoizedState),(s=Ni||Wi(t,n,s,r,p,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,p=i.context,"object"==typeof(l=n.contextType)&&null!==l?l=Di(l):l=Pa(t,l=Ia(n)?Na:$a.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Gi(t,i,r,l),Ni=!1,p=t.memoizedState,i.state=p,Mi(t,r,i,o);var h=t.memoizedState;s!==d||p!==h||ja.current||Ni?("function"==typeof f&&(zi(t,n,f,r),h=t.memoizedState),(c=Ni||Wi(t,n,c,r,p,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&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===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&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return $l(e,t,n,r,a,o)}function $l(e,t,n,r,o,a){Dl(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Ma(t,n,!1),Gl(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 jl(e){var t=e.stateNode;t.pendingContext?Fa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fa(0,t.context,!1),os(e,t.containerInfo)}function Nl(e,t,n,r,o){return hi(),gi(o),t.flags|=256,xl(e,t,n,r),t.child}var Pl,Il,Tl,Fl,Rl={dehydrated:null,treeContext:null,retryLane:0};function Al(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=Au(s,o,0,null),e=Ru(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Al(n),t.memoizedState=Rl,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=Au({mode:"visible",children:r.children},o,0,null),(a=Ru(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=Al(i),t.memoizedState=Rl,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=jc)){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,ji(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&&(Xa[Ka++]=Qa,Xa[Ka++]=Ja,Xa[Ka++]=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=Ru(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)?Al(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Rl,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=Au({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 Gl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ac|=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 Vl(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 Xl(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(ja),Da($a),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(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),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fa]=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<Ro.length;o++)Bo(Ro[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":Ve(r),Ze(r,a,!0);break;case"textarea":Ve(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[fa]=t,e[ha]=r,Pl(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<Ro.length;o++)Bo(Ro[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=Ke(e,r),Bo("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ae({},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)&&pt(e,l):"number"==typeof l&&pt(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":Ve(e),Ze(e,r,!1);break;case"textarea":Ve(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)Fl(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),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[fa]=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))[fa]=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))fi(),hi(),t.flags|=98560,a=!1;else if(a=pi(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[fa]=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===Fc&&(Fc=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 Si(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)Vl(a,!1);else{if(0!==Fc||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=cs(e))){for(t.flags|=128,Vl(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,Vl(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),Vl(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,Vl(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 pu(),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 Kl(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(ja),Da($a),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 Si(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Pl=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=Ke(e,o),r=Ke(e,r),i=[];break;case"select":o=Ae({},o,{value:void 0}),r=Ae({},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)}},Fl=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[fa],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,pc=!1;function fc(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=pc;dc=null,fc(e,t,n),pc=o,null!==(dc=r)&&(pc?(e=dc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dc.removeChild(n.stateNode));break;case 18:null!==dc&&(pc?(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=pc,dc=n.stateNode.containerInfo,pc=!0,fc(e,t,n),dc=r,pc=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)}fc(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)}fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:1&n.mode?(Ql=(r=Ql)||null!==n.memoizedState,fc(e,t,n),Ql=r):fc(e,t,n);break;default:fc(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=$u.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,pc=!1;break e;case 3:case 4:dc=s.stateNode.containerInfo,pc=!0;break e}s=s.return}if(null===dc)throw Error(ae(160));hc(a,i,o),dc=null,pc=!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(Rte){Eu(e,e.return,Rte)}try{rc(5,e,e.return)}catch(Rte){Eu(e,e.return,Rte)}}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{pt(o,"")}catch(Rte){Eu(e,e.return,Rte)}}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?pt(o,d):ye(o,u,d,c)}switch(s){case"input":Je(o,a);break;case"textarea":at(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?nt(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?nt(o,!!a.multiple,a.defaultValue,!0):nt(o,!!a.multiple,a.multiple?[]:"",!1))}o[ha]=a}catch(Rte){Eu(e,e.return,Rte)}}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(Rte){Eu(e,e.return,Rte)}}break;case 3:if(mc(t,e),vc(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wn(t.containerInfo)}catch(Rte){Eu(e,e.return,Rte)}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(f=(p=Zl).child,p.tag){case 0:case 11:case 14:case 15:rc(4,p,p.return);break;case 1:ec(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(Rte){Eu(r,n,Rte)}}break;case 5:ec(p,p.return);break;case 22:if(null!==p.memoizedState){kc(d);continue}}null!==f?(f.return=p,Zl=f):kc(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(Rte){Eu(e,e.return,Rte)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(Rte){Eu(e,e.return,Rte)}}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&&(pt(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?Sc(o):null!==l?(l.return=i,Zl=l):Sc(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(p){Eu(t,t.return,p)}}if(t===e){Zl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zl=n;break}Zl=t.return}}function kc(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 Sc(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,$c=0,jc=null,Nc=null,Pc=0,Ic=0,Tc=Ea(0),Fc=0,Rc=null,Ac=0,Mc=0,Lc=0,Bc=null,zc=null,Hc=0,Wc=1/0,Uc=null,Gc=!1,Vc=null,qc=null,Xc=!1,Kc=null,Yc=0,Qc=0,Jc=null,Zc=-1,eu=0;function tu(){return 0!=(6&$c)?Qt():-1!==Zc?Zc:Zc=Qt()}function nu(e){return 0==(1&e.mode)?1:0!=(2&$c)&&0!==Pc?Pc&-Pc: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&$c)&&e===jc||(e===jc&&(0==(2&$c)&&(Mc|=n),4===Fc&&lu(e,Pc)),ou(e,r),1===n&&0===$c&&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=fn(e,e===jc?Pc:0);if(0===r)null!==n&&Xt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Xt(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&$c)&&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=ju(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Zc=-1,eu=0,0!=(6&$c))throw Error(ae(327));var n=e.callbackNode;if(Su()&&e.callbackNode!==n)return null;var r=fn(e,e===jc?Pc:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=bu(e,r);else{t=r;var o=$c;$c|=2;var a=gu();for(jc===e&&Pc===t||(Uc=null,Wc=Qt()+500,fu(e,t));;)try{yu();break}catch(s){hu(e,s)}ki(),Dc.current=a,$c=o,null!==Nc?t=0:(jc=null,Pc=0,t=Fc)}if(0!==t){if(2===t&&(0!==(o=gn(e))&&(r=o,t=iu(e,o))),1===t)throw n=Rc,fu(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=Rc,fu(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:ku(e,zc,Uc);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Hc+500-Qt())){if(0!==fn(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=oa(ku.bind(null,e,zc,Uc),t);break}ku(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(ku.bind(null,e,zc,Uc),r);break}ku(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&&(fu(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&$c))throw Error(ae(327));Su();var t=fn(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=Rc,fu(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,ku(e,zc,Uc),ou(e,Qt()),null}function uu(e,t){var n=$c;$c|=1;try{return e(t)}finally{0===($c=n)&&(Wc=Qt()+500,Ba&&Wa())}}function du(e){null!==Kc&&0===Kc.tag&&0==(6&$c)&&Su();var t=$c;$c|=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&($c=t))&&Wa()}}function pu(){Ic=Tc.current,Da(Tc)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Nc)for(n=Nc.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ta();break;case 3:as(),Da(ja),Da($a),ds();break;case 5:ss(r);break;case 4:as();break;case 13:case 19:Da(ls);break;case 10:Si(r.type._context);break;case 22:case 23:pu()}n=n.return}if(jc=e,Nc=e=Tu(e.current,null),Pc=Ic=t,Fc=0,Rc=null,Lc=Mc=Ac=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=Nc;try{if(ki(),ps.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){Fc=1,Rc=t,Nc=null;break}e:{var a=e,i=n.return,s=n,l=t;if(t=Pc,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 p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=bl(i);if(null!==f){f.flags&=-257,vl(f,i,s,0,t),1&f.mode&&ml(a,c,t),l=c;var h=(t=f).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!==Fc&&(Fc=2),null===Bc?Bc=[a]:Bc.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ai(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,Ai(a,gl(a,s,t));break e}}a=a.return}while(null!==a)}xu(n)}catch(y){t=y,Nc===n&&null!==n&&(Nc=n=n.return);continue}break}}function gu(){var e=Dc.current;return Dc.current=il,null===e?il:e}function mu(){0!==Fc&&3!==Fc&&2!==Fc||(Fc=4),null===jc||0==(268435455&Ac)&&0==(268435455&Mc)||lu(jc,Pc)}function bu(e,t){var n=$c;$c|=2;var r=gu();for(jc===e&&Pc===t||(Uc=null,fu(e,t));;)try{vu();break}catch(Fte){hu(e,Fte)}if(ki(),$c=n,Dc.current=r,null!==Nc)throw Error(ae(261));return jc=null,Pc=0,Fc}function vu(){for(;null!==Nc;)wu(Nc)}function yu(){for(;null!==Nc&&!Kt();)wu(Nc)}function wu(e){var t=Cc(e.alternate,e,Ic);e.memoizedProps=e.pendingProps,null===t?xu(e):Nc=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=Xl(n,t,Ic)))return void(Nc=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Nc=n);if(null===e)return Fc=6,void(Nc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Nc=t);Nc=t=e}while(null!==t);0===Fc&&(Fc=5)}function ku(e,t,n){var r=wn,o=_c.transition;try{_c.transition=null,wn=1,function(e,t,n,r){do{Su()}while(null!==Kc);if(0!=(6&$c))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===jc&&(Nc=jc=null,Pc=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Xc||(Xc=!0,ju(tn,(function(){return Su(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=_c.transition,_c.transition=null;var i=wn;wn=1;var s=$c;$c|=4,Oc.current=null,function(e,t){if(ta=Gn,ho(e=fo())){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,p=null;t:for(;;){for(var f;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!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(s=i),p===a&&++u===r&&(l=i),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}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},Gn=!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),Gn=!!ta,na=ta=null,e.current=n,yc(n),Yt(),$c=s,wn=i,_c.transition=a}else e.current=n;if(Xc&&(Xc=!1,Kc=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(Gc)throw Gc=!1,e=Vc,Vc=null,e;0!=(1&Yc)&&0!==e.tag&&Su(),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 Su(){if(null!==Kc){var e=xn(Yc),t=_c.transition,n=wn;try{if(_c.transition=null,wn=16>e?16:e,null===Kc)var r=!1;else{if(e=Kc,Kc=null,Yc=0,0!=(6&$c))throw Error(ae(331));var o=$c;for($c|=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 p=(u=Zl).sibling,f=u.return;if(ic(u),u===c){Zl=null;break}if(null!==p){p.return=f,Zl=p;break}Zl=f}}}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($c=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=Fi(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=Fi(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,jc===e&&(Pc&n)===n&&(4===Fc||3===Fc&&(130023424&Pc)===Pc&&500>Qt()-Hc?fu(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=ji(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 $u(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 ju(e,t){return qt(e,t)}function Nu(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 Pu(e,t,n,r){return new Nu(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=Pu(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 Fu(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 Se:return Ru(n.children,o,a,t);case Ce:i=8,o|=8;break;case Ee:return(e=Pu(12,n,t,2|o)).elementType=Ee,e.lanes=a,e;case $e:return(e=Pu(13,n,t,o)).elementType=$e,e.lanes=a,e;case je:return(e=Pu(19,n,t,o)).elementType=je,e.lanes=a,e;case Ie:return Au(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 Ne:i=14;break e;case Pe:i=16,r=null;break e}throw Error(ae(130,null==e?e:typeof e,""))}return(t=Pu(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ru(e,t,n,r){return(e=Pu(7,e,r,t)).lanes=n,e}function Au(e,t,n,r){return(e=Pu(22,e,r,t)).elementType=Ie,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return(e=Pu(6,e,null,t)).lanes=n,e}function Lu(e,t,n){return(t=Pu(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=Pu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pi(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 Ra(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,Fi(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=Fi(o,t,i))&&(ru(e,o,i,a),Ri(e,o,i)),i}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(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){Vu(e,t),(e=e.alternate)&&Vu(e,t)}Cc=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||ja.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:jl(t),hi();break;case 5:is(t);break;case 1:Ia(t.type)&&Aa(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=Gl(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 Gl(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=Pa(t,$a.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,Aa(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Pi(t),o.updater=Hi,t.stateNode=o,o._reactInternals=t,Vi(t,r,e,n),t=$l(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===Ne)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=kl(null,t,r,e,n);break e;case 14:t=Sl(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(jl(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=Nl(e,t,r,n,o=ul(Error(ae(423)),t));break e}if(r!==o){t=Nl(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=Gl(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,kl(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&&!ja.current){t=Gl(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),Sl(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,Aa(t)):e=!1,Ei(t,n),Ui(t,r,o),Vi(t,r,o,n),$l(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 Xu="function"==typeof reportError?reportError:function(e){console.error(e)};function Ku(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=Gu(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=Gu(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=Gu(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 Gu(i)}Yu.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ae(409));Uu(e,t,null,null)},Yu.prototype.unmount=Ku.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)}},kn=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pn(t.pendingLanes);0!==n&&(yn(t,1|n),ou(t,Qt()),0==(6&$c)&&(Wc=Qt()+500,Wa()))}break;case 13:du((function(){var t=ji(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),qu(e,1)}},Sn=function(e){if(13===e.tag){var t=ji(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=ji(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}},kt=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=ka(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,$t=du;var td={usingClientEntryPoint:!1,Events:[wa,xa,ka,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=Gt(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:ke,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=Xu;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 Ku(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=Gt(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=Xu;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 pd(){}pd.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:pd,resetWarningCache:dd};return n.PropTypes=n,n}();var fd=ud.exports;const hd=n(fd);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,kd="function"==typeof Map,Sd="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(kd&&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(Sd&&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,$d=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable;var Nd=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]))$d.call(n,i)&&(o[i]=n[i]);if(_d){r=_d(n);for(var s=0;s<r.length;s++)jd.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};const Pd=n(Nd);var Id="bodyAttributes",Td="htmlAttributes",Fd="titleAttributes",Rd={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Rd).map((function(e){return Rd[e]}));var Ad,Md,Ld,Bd,zd="charset",Hd="cssText",Wd="href",Ud="http-equiv",Gd="innerHTML",Vd="itemprop",qd="name",Xd="property",Kd="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",ep="defer",tp="encodeSpecialCharacters",np="onChangeClientState",rp="titleTemplate",op=Object.keys(Jd).reduce((function(e,t){return e[Jd[t]]=t,e}),{}),ap=[Rd.NOSCRIPT,Rd.SCRIPT,Rd.STYLE],ip="data-react-helmet",sp="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},lp=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}}(),cp=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},up=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},dp=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;")},pp=function(e){var t=bp(e,Rd.TITLE),n=bp(e,rp);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=bp(e,Zd);return t||r||void 0},fp=function(e){return bp(e,np)||function(){}},hp=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return cp({},e,t)}),{})},gp=function(e,t){return t.filter((function(e){return void 0!==e[Rd.BASE]})).map((function(e){return e[Rd.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}),[])},mp=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&kp("Helmet: "+e+' should be of type "Array". Instead found type "'+sp(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===Kd&&"canonical"===e[n].toLowerCase()||l===Kd&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==Gd&&s!==Hd&&s!==Vd||(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=Pd({},r[s],o[s]);r[s]=l}return e}),[]).reverse()},bp=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},vp=(Ad=Date.now(),function(e){var t=Date.now();t-Ad>16?(Ad=t,e(t)):setTimeout((function(){vp(e)}),0)}),yp=function(e){return clearTimeout(e)},wp="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||vp:global.requestAnimationFrame||vp,xp="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||yp:global.cancelAnimationFrame||yp,kp=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Sp=null,Cp=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,p=e.titleAttributes;Op(Rd.BODY,r),Op(Rd.HTML,o),Dp(d,p);var f={baseTag:_p(Rd.BASE,n),linkTags:_p(Rd.LINK,a),metaTags:_p(Rd.META,i),noscriptTags:_p(Rd.NOSCRIPT,s),scriptTags:_p(Rd.SCRIPT,c),styleTags:_p(Rd.STYLE,u)},h={},g={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(g[e]=f[e].oldTags)})),t&&t(),l(e,h,g)},Ep=function(e){return Array.isArray(e)?e.join(""):e},Dp=function(e,t){void 0!==e&&document.title!==e&&(document.title=Ep(e)),Op(Rd.TITLE,t)},Op=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(ip),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(ip):n.getAttribute(ip)!==i.join(",")&&n.setAttribute(ip,i.join(","))}},_p=function(e,t){var n=document.head||document.querySelector(Rd.HEAD),r=n.querySelectorAll(e+"["+ip+"]"),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===Gd)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(ip,"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}},$p=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}),"")},jp=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)},Np=function(e,t,n){switch(e){case Rd.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[ip]=!0,o=jp(n,r),[H.createElement(Rd.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=$p(n),a=Ep(t);return o?"<"+e+" "+ip+'="true" '+o+">"+dp(a,r)+"</"+e+">":"<"+e+" "+ip+'="true">'+dp(a,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case Id:case Td:return{toComponent:function(){return jp(t)},toString:function(){return $p(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[ip]=!0,r);return Object.keys(t).forEach((function(e){var n=Jd[e]||e;if(n===Gd||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===Gd||e===Hd)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+dp(r[t],n)+'"';return e?e+" "+o:o}),""),a=r.innerHTML||r.cssText||"",i=-1===ap.indexOf(e);return t+"<"+e+" "+ip+'="true" '+o+(i?"/>":">"+a+"</"+e+">")}),"")}(e,t,n)}}}},Pp=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,p=e.titleAttributes;return{base:Np(Rd.BASE,t,r),bodyAttributes:Np(Id,n,r),htmlAttributes:Np(Td,o,r),link:Np(Rd.LINK,a,r),meta:Np(Rd.META,i,r),noscript:Np(Rd.NOSCRIPT,s,r),script:Np(Rd.SCRIPT,l,r),style:Np(Rd.STYLE,c,r),title:Np(Rd.TITLE,{title:d,titleAttributes:p},r)}},Ip=wd((function(e){return{baseTag:gp([Wd,Qd],e),bodyAttributes:hp(Id,e),defer:bp(e,ep),encode:bp(e,tp),htmlAttributes:hp(Td,e),linkTags:mp(Rd.LINK,[Kd,Wd],e),metaTags:mp(Rd.META,[qd,zd,Ud,Xd,Vd],e),noscriptTags:mp(Rd.NOSCRIPT,[Gd],e),onChangeClientState:fp(e),scriptTags:mp(Rd.SCRIPT,[Yd,Gd],e),styleTags:mp(Rd.STYLE,[Hd],e),title:pp(e),titleAttributes:hp(Fd,e)}}),(function(e){Sp&&xp(Sp),e.defer?Sp=wp((function(){Cp(e,(function(){Sp=null}))})):(Cp(e),Sp=null)}),Pp)((function(){return null})),Tp=(Md=Ip,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 Rd.SCRIPT:case Rd.NOSCRIPT:return{innerHTML:t};case Rd.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 cp({},r,((t={})[n.type]=[].concat(r[n.type]||[],[cp({},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 Rd.TITLE:return cp({},o,((t={})[r.type]=i,t.titleAttributes=cp({},a),t));case Rd.BODY:return cp({},o,{bodyAttributes:cp({},a)});case Rd.HTML:return cp({},o,{htmlAttributes:cp({},a)})}return cp({},o,((n={})[r.type]=cp({},a),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=cp({},t);return Object.keys(e).forEach((function(t){var r;n=cp({},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[op[n]||n]=e[n],t}),t)}(up(o,["children"]));switch(n.warnOnInvalidChildren(e,a),e.type){case Rd.LINK:case Rd.META:case Rd.NOSCRIPT:case Rd.SCRIPT:case Rd.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=up(e,["children"]),r=cp({},n);return t&&(r=this.mapChildrenToProps(t,r)),H.createElement(Md,r)},lp(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=Pp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},Bd);function Fp(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}function Rp(e){return(Rp="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 Ap(e){var t=function(e,t){if("object"!==Rp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rp(t)?t:String(t)}function Mp(e,t,n){return(t=Ap(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lp(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}Tp.renderStatic=Tp.rewind;var Bp={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 zp=(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,...Bp,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},Hp=zp("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"}]]),Wp=zp("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"}]]),Up=zp("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Gp=zp("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Vp=zp("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),qp=zp("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Xp=zp("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"}]]),Kp=zp("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"}]]),Yp=zp("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"}]]),Qp=zp("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"}]]),Jp=zp("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"}]]),Zp=zp("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),ef=zp("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"}]]),tf=zp("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),nf=zp("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"}]]),rf=zp("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"}]]),of=zp("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"}]]),af=zp("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"}]]),sf=zp("PinOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["line",{x1:"12",x2:"12",y1:"17",y2:"22",key:"1jrz49"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12",key:"13x2n8"}],["path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89",key:"reo3ki"}]]),lf=zp("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"}]]),cf=zp("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"}]]),uf=zp("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"}]]),df=zp("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"}]]),pf=zp("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ff=zp("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),hf=zp("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function gf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function mf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bf(e,t){for(var n=0;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,Ap(r.key),r)}}function vf(e,t,n){return t&&bf(e.prototype,t),n&&bf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var yf=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(Fte){}}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}(),wf="-ms-",xf="-moz-",kf="-webkit-",Sf="comm",Cf="rule",Ef="decl",Df="@keyframes",Of=Math.abs,_f=String.fromCharCode,$f=Object.assign;function jf(e){return e.trim()}function Nf(e,t,n){return e.replace(t,n)}function Pf(e,t){return e.indexOf(t)}function If(e,t){return 0|e.charCodeAt(t)}function Tf(e,t,n){return e.slice(t,n)}function Ff(e){return e.length}function Rf(e){return e.length}function Af(e,t){return t.push(e),e}var Mf=1,Lf=1,Bf=0,zf=0,Hf=0,Wf="";function Uf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Mf,column:Lf,length:i,return:""}}function Gf(e,t){return $f(Uf("",null,null,"",null,null,0),e,{length:-e.length},t)}function Vf(){return Hf=zf<Bf?If(Wf,zf++):0,Lf++,10===Hf&&(Lf=1,Mf++),Hf}function qf(){return If(Wf,zf)}function Xf(){return zf}function Kf(e,t){return Tf(Wf,e,t)}function Yf(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 Qf(e){return Mf=Lf=1,Bf=Ff(Wf=e),zf=0,[]}function Jf(e){return Wf="",e}function Zf(e){return jf(Kf(zf-1,nh(91===e?e+2:40===e?e+1:e)))}function eh(e){for(;(Hf=qf())&&Hf<33;)Vf();return Yf(e)>2||Yf(Hf)>3?"":" "}function th(e,t){for(;--t&&Vf()&&!(Hf<48||Hf>102||Hf>57&&Hf<65||Hf>70&&Hf<97););return Kf(e,Xf()+(t<6&&32==qf()&&32==Vf()))}function nh(e){for(;Vf();)switch(Hf){case e:return zf;case 34:case 39:34!==e&&39!==e&&nh(Hf);break;case 40:41===e&&nh(e);break;case 92:Vf()}return zf}function rh(e,t){for(;Vf()&&e+Hf!==57&&(e+Hf!==84||47!==qf()););return"/*"+Kf(t,zf-1)+"*"+_f(47===e?e:Vf())}function oh(e){for(;!Yf(qf());)Vf();return Kf(e,zf)}function ah(e){return Jf(ih("",null,null,null,[""],e=Qf(e),0,[0],e))}function ih(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=a,k=r,S=y;m;)switch(h=v,v=Vf()){case 40:if(108!=h&&58==If(S,d-1)){-1!=Pf(S+=Nf(Zf(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=Zf(v);break;case 9:case 10:case 13:case 32:S+=eh(h);break;case 92:S+=th(Xf()-1,7);continue;case 47:switch(qf()){case 42:case 47:Af(lh(rh(Vf(),Xf()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=Ff(S)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(S=Nf(S,/\f/g,"")),f>0&&Ff(S)-d&&Af(f>32?ch(S+";",r,n,d-1):ch(Nf(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Af(k=sh(S,t,n,c,u,o,s,y,w=[],x=[],d),a),123===v)if(0===u)ih(S,t,k,k,w,a,d,s,x);else switch(99===p&&110===If(S,3)?100:p){case 100:case 108:case 109:case 115:ih(e,k,k,r&&Af(sh(e,k,k,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:ih(S,k,k,k,[""],x,0,s,x)}}c=u=f=0,g=b=1,y=S="",d=i;break;case 58:d=1+Ff(S),f=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(Hf=zf>0?If(Wf,--zf):0,Lf--,10===Hf&&(Lf=1,Mf--),Hf))continue;switch(S+=_f(v),v*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ff(S)-1)*b,b=1;break;case 64:45===qf()&&(S+=Zf(Vf())),p=qf(),u=d=Ff(y=S+=oh(Xf())),v++;break;case 45:45===h&&2==Ff(S)&&(g=0)}}return a}function sh(e,t,n,r,o,a,i,s,l,c,u){for(var d=o-1,p=0===o?a:[""],f=Rf(p),h=0,g=0,m=0;h<r;++h)for(var b=0,v=Tf(e,d+1,d=Of(g=i[h])),y=e;b<f;++b)(y=jf(g>0?p[b]+" "+v:Nf(v,/&\f/g,p[b])))&&(l[m++]=y);return Uf(e,t,n,0===o?Cf:s,l,c,u)}function lh(e,t,n){return Uf(e,t,n,Sf,_f(Hf),Tf(e,2,-2),0)}function ch(e,t,n,r){return Uf(e,t,n,Ef,Tf(e,0,r),Tf(e,r+1,-1),r)}function uh(e,t){for(var n="",r=Rf(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function dh(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ef:return e.return=e.return||e.value;case Sf:return"";case Df:return e.return=e.value+"{"+uh(e.children,r)+"}";case Cf:e.value=e.props.join(",")}return Ff(n=uh(e.children,r))?e.return=e.value+"{"+n+"}":""}var ph=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 fh(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var hh=function(e,t,n){for(var r=0,o=0;r=o,o=qf(),38===r&&12===o&&(t[n]=1),!Yf(o);)Vf();return Kf(e,zf)},gh=function(e,t){return Jf(function(e,t){var n=-1,r=44;do{switch(Yf(r)){case 0:38===r&&12===qf()&&(t[n]=1),e[n]+=hh(zf-1,t,n);break;case 2:e[n]+=Zf(r);break;case 4:if(44===r){e[++n]=58===qf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=_f(r)}}while(r=Vf());return e}(Qf(e),t))},mh=new WeakMap,bh=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)||mh.get(n))&&!r){mh.set(e,!0);for(var o=[],a=gh(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]}}},vh=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function yh(e,t){switch(function(e,t){return 45^If(e,0)?(((t<<2^If(e,0))<<2^If(e,1))<<2^If(e,2))<<2^If(e,3):0}(e,t)){case 5103:return kf+"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 kf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return kf+e+xf+e+wf+e+e;case 6828:case 4268:return kf+e+wf+e+e;case 6165:return kf+e+wf+"flex-"+e+e;case 5187:return kf+e+Nf(e,/(\w+).+(:[^]+)/,kf+"box-$1$2"+wf+"flex-$1$2")+e;case 5443:return kf+e+wf+"flex-item-"+Nf(e,/flex-|-self/,"")+e;case 4675:return kf+e+wf+"flex-line-pack"+Nf(e,/align-content|flex-|-self/,"")+e;case 5548:return kf+e+wf+Nf(e,"shrink","negative")+e;case 5292:return kf+e+wf+Nf(e,"basis","preferred-size")+e;case 6060:return kf+"box-"+Nf(e,"-grow","")+kf+e+wf+Nf(e,"grow","positive")+e;case 4554:return kf+Nf(e,/([^-])(transform)/g,"$1"+kf+"$2")+e;case 6187:return Nf(Nf(Nf(e,/(zoom-|grab)/,kf+"$1"),/(image-set)/,kf+"$1"),e,"")+e;case 5495:case 3959:return Nf(e,/(image-set\([^]*)/,kf+"$1$`$1");case 4968:return Nf(Nf(e,/(.+:)(flex-)?(.*)/,kf+"box-pack:$3"+wf+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+kf+e+e;case 4095:case 3583:case 4068:case 2532:return Nf(e,/(.+)-inline(.+)/,kf+"$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(Ff(e)-1-t>6)switch(If(e,t+1)){case 109:if(45!==If(e,t+4))break;case 102:return Nf(e,/(.+:)(.+)-([^]+)/,"$1"+kf+"$2-$3$1"+xf+(108==If(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Pf(e,"stretch")?yh(Nf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==If(e,t+1))break;case 6444:switch(If(e,Ff(e)-3-(~Pf(e,"!important")&&10))){case 107:return Nf(e,":",":"+kf)+e;case 101:return Nf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kf+(45===If(e,14)?"inline-":"")+"box$3$1"+kf+"$2$3$1"+wf+"$2box$3")+e}break;case 5936:switch(If(e,t+11)){case 114:return kf+e+wf+Nf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kf+e+wf+Nf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kf+e+wf+Nf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kf+e+wf+e+e}return e}var wh=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ef:e.return=yh(e.value,e.length);break;case Df:return uh([Gf(e,{value:Nf(e.value,"@","@"+kf)})],r);case Cf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return uh([Gf(e,{props:[Nf(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return uh([Gf(e,{props:[Nf(t,/:(plac\w+)/,":"+kf+"input-$1")]}),Gf(e,{props:[Nf(t,/:(plac\w+)/,":-moz-$1")]}),Gf(e,{props:[Nf(t,/:(plac\w+)/,wf+"input-$1")]})],r)}return""}))}}],xh=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||wh,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,p=[dh,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[bh,vh].concat(a,p),u=Rf(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,uh(ah(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new yf({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 kh={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},Sh=/[A-Z]|^ms/g,Ch=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Eh=function(e){return 45===e.charCodeAt(1)},Dh=function(e){return null!=e&&"boolean"!=typeof e},Oh=fh((function(e){return Eh(e)?e:e.replace(Sh,"-$&").toLowerCase()})),_h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ch,(function(e,t,n){return jh={name:t,styles:n,next:jh},t}))}return 1===kh[e]||Eh(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 jh={name:n.name,styles:n.styles,next:jh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)jh={name:r.name,styles:r.styles,next:jh},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]+"}":Dh(i)&&(r+=Oh(a)+":"+_h(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+=Oh(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Dh(i[l])&&(r+=Oh(a)+":"+_h(a,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=jh,a=n(e);return jh=o,$h(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var jh,Nh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ph=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="";jh=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]);Nh.lastIndex=0;for(var s,l="";null!==(s=Nh.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:jh}};function Ih(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Th=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Fh=function(e,t,n){Th(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 Rh(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Ah(e,t,n){var r=[],o=Ih(e,r,n);return r.length<2?n:o+t(r)}var Mh=function(e){var t=xh(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=Ph(n,t.registered,void 0);return Fh(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 Ah(t.registered,n,Lh(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Ph(n,t.registered);Rh(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Ph(n,t.registered),a="animation-"+o.name;return Rh(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:Ih.bind(null,t.registered),merge:Ah.bind(null,t.registered,n)}},Lh=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},Bh=Mh({key:"css"});Bh.flush,Bh.hydrate;var zh=Bh.cx;Bh.merge,Bh.getRegisteredStyles,Bh.injectGlobal,Bh.keyframes;var Hh=Bh.css;Bh.sheet;var Wh=Bh.cache,Uh=function(){function e(){mf(this,e),Mp(this,"_cacheList",[Wh])}return vf(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}(),Gh="undefined"!=typeof document,Vh=function(e,t){return"".concat(e,"-").concat(t)},qh=function(e){return"object"===Rp(e)&&"styles"in e&&"name"in e&&"toString"in e},Xh=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!==o){var a=void 0;switch(Rp(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},Kh=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=Ph(r,e.registered,void 0);return function(e,t,n,r){var o=r.hashPriority||"high";Th(e,t,n);var a=".".concat(Vh(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);Gh||void 0===c||(s+=c),l=l.next}while(void 0!==l);if(!Gh&&0!==s.length);}}(e,a,!1,t),Vh(e.key,a.name)}},Yh=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 qh(e)?t(e):e}));return function(e,t,n){var r=[],o=Ih(e,r,n);return r.length<2?n:o+t(r)}(e.registered,t,Xh(a))}},Qh=function(e,t){var n=Kh(e,{hashPriority:t.hashPriority||"high",label:t.label});return{css:n,cx:Yh(e,n)}},Jh=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ph(t)};function Zh(){return Zh=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},Zh.apply(this,arguments)}var eg={exports:{}},tg={},ng="function"==typeof Symbol&&Symbol.for,rg=ng?Symbol.for("react.element"):60103,og=ng?Symbol.for("react.portal"):60106,ag=ng?Symbol.for("react.fragment"):60107,ig=ng?Symbol.for("react.strict_mode"):60108,sg=ng?Symbol.for("react.profiler"):60114,lg=ng?Symbol.for("react.provider"):60109,cg=ng?Symbol.for("react.context"):60110,ug=ng?Symbol.for("react.async_mode"):60111,dg=ng?Symbol.for("react.concurrent_mode"):60111,pg=ng?Symbol.for("react.forward_ref"):60112,fg=ng?Symbol.for("react.suspense"):60113,hg=ng?Symbol.for("react.suspense_list"):60120,gg=ng?Symbol.for("react.memo"):60115,mg=ng?Symbol.for("react.lazy"):60116,bg=ng?Symbol.for("react.block"):60121,vg=ng?Symbol.for("react.fundamental"):60117,yg=ng?Symbol.for("react.responder"):60118,wg=ng?Symbol.for("react.scope"):60119;function xg(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case rg:switch(e=e.type){case ug:case dg:case ag:case sg:case ig:case fg:return e;default:switch(e=e&&e.$$typeof){case cg:case pg:case mg:case gg:case lg:return e;default:return t}}case og:return t}}}function kg(e){return xg(e)===dg}tg.AsyncMode=ug,tg.ConcurrentMode=dg,tg.ContextConsumer=cg,tg.ContextProvider=lg,tg.Element=rg,tg.ForwardRef=pg,tg.Fragment=ag,tg.Lazy=mg,tg.Memo=gg,tg.Portal=og,tg.Profiler=sg,tg.StrictMode=ig,tg.Suspense=fg,tg.isAsyncMode=function(e){return kg(e)||xg(e)===ug},tg.isConcurrentMode=kg,tg.isContextConsumer=function(e){return xg(e)===cg},tg.isContextProvider=function(e){return xg(e)===lg},tg.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===rg},tg.isForwardRef=function(e){return xg(e)===pg},tg.isFragment=function(e){return xg(e)===ag},tg.isLazy=function(e){return xg(e)===mg},tg.isMemo=function(e){return xg(e)===gg},tg.isPortal=function(e){return xg(e)===og},tg.isProfiler=function(e){return xg(e)===sg},tg.isStrictMode=function(e){return xg(e)===ig},tg.isSuspense=function(e){return xg(e)===fg},tg.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ag||e===dg||e===sg||e===ig||e===fg||e===hg||"object"==typeof e&&null!==e&&(e.$$typeof===mg||e.$$typeof===gg||e.$$typeof===lg||e.$$typeof===cg||e.$$typeof===pg||e.$$typeof===vg||e.$$typeof===yg||e.$$typeof===wg||e.$$typeof===bg)},tg.typeOf=xg,eg.exports=tg;var Sg=eg.exports,Cg={};Cg[Sg.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Cg[Sg.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Eg=!!W.useInsertionEffect&&W.useInsertionEffect||z.useLayoutEffect,Dg=z.createContext("undefined"!=typeof HTMLElement?xh({key:"css"}):null);Dg.Provider;var Og=function(e){return z.forwardRef((function(t,n){var r=z.useContext(Dg);return e(t,r,n)}))},_g=z.createContext({}),$g=ph((function(e){return ph((function(t){return function(e,t){return"function"==typeof t?t(e):Zh({},e,t)}(e,t)}))})),jg=Og((function(e,t){var n=e.styles,r=Ph([n],void 0,z.useContext(_g)),o=z.useRef();return Eg((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]),Eg((function(){var e=o.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Fh(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 Ng(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 Pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ng(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ig(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 Tg(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Fg(e,t){if(e){if("string"==typeof e)return Ig(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)?Ig(e,t):void 0}}function Rg(e){return function(e){if(Array.isArray(e))return Ig(e)}(e)||Tg(e)||Fg(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 Ag(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 Mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ag(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lg(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 Bg(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 zg={};function Hg(e,t){}function Wg(e,t){}function Ug(e,t,n){t||zg[n]||(e(!1,n),zg[n]=!0)}function Gg(e,t){Ug(Hg,e,t)}function Vg(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(Gg(!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"===Rp(t)&&"object"===Rp(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)}Gg.preMessage=function(e){},Gg.resetWarned=function(){zg={}},Gg.noteOnce=function(e,t){Ug(Wg,e,t)};var qg=function(){function e(t){mf(this,e),Mp(this,"instanceId",void 0),Mp(this,"cache",new Map),this.instanceId=t}return vf(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}(),Xg=["children"],Kg="data-token-hash",Yg="data-css-hash",Qg="__cssinjs_instance__";function Jg(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Yg,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[Qg]=t[Qg]||e,t[Qg]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(Yg,"]"))).forEach((function(t){var n,o=t.getAttribute(Yg);r[o]?t[Qg]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new qg(e)}var Zg=z.createContext({hashPriority:"low",cache:Jg(),defaultCache:!0}),em=function(e){var t=e.children,n=Lp(e,Xg),r=z.useContext(Zg),o=Bg((function(){var e=Mg({},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||Jg(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!Vg(e[0],t[0],!0)||!Vg(e[1],t[1],!0)}));return z.createElement(Zg.Provider,{value:o},t)};const tm=Zg;function nm(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function rm(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 om="data-rc-order",am="data-rc-priority",im="rc-util-key",sm=new Map;function lm(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):im}function cm(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function um(e){return Array.from((sm.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function dm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!nm())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(om,i),s&&a&&l.setAttribute(am,"".concat(a)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=cm(t),u=c.firstChild;if(r){if(s){var d=um(c).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(om)))return!1;var t=Number(e.getAttribute(am)||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 pm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return um(cm(t)).find((function(n){return n.getAttribute(lm(t))===e}))}function fm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=pm(e,t);n&&cm(t).removeChild(n)}function hm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=sm.get(e);if(!n||!rm(document,n)){var r=dm("",t),o=r.parentNode;sm.set(e,o),e.removeChild(r)}}(cm(n),n);var r=pm(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=dm(e,n);return s.setAttribute(lm(n),t),s}function gm(e){if(Array.isArray(e))return e}function mm(){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 bm(e,t){return gm(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)||Fg(e,t)||mm()}var vm=function(){function e(){mf(this,e),Mp(this,"cache",void 0),Mp(this,"keys",void 0),Mp(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return vf(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t,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=bm(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),a=bm(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}();Mp(vm,"MAX_CACHE_SIZE",20),Mp(vm,"MAX_CACHE_OFFSET",5);var ym=0,wm=function(){function e(t){mf(this,e),Mp(this,"derivatives",void 0),Mp(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ym,0===t.length&&t.length,ym+=1}return vf(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),xm=new vm;function km(e){var t=Array.isArray(e)?e:[e];return xm.has(t)||xm.set(t,new wm(t)),xm.get(t)}var Sm=new WeakMap,Cm={};var Em=new WeakMap;function Dm(e){var t=Em.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof wm?t+=r.id:r&&"object"===Rp(r)?t+=Dm(r):t+=r})),Em.set(e,t)),t}var Om="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),_m="_bAmBoO_";var $m=void 0;function jm(){return void 0===$m&&($m=function(e,t,n){if(nm()){var r,o;hm(e,Om);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(_m);return null===(o=a.parentNode)||void 0===o||o.removeChild(a),fm(Om),i}return!1}("@layer ".concat(Om," { .").concat(Om,' { content: "').concat(_m,'"!important; } }'),(function(e){e.className=Om}))),$m}var Nm=nm()?z.useLayoutEffect:z.useEffect,Pm=function(e,t){var n=z.useRef(!0);Nm((function(){return e(n.current)}),t),Nm((function(){return n.current=!1,function(){n.current=!0}}),[])},Im=function(e,t){Pm((function(t){if(!t)return e()}),t)},Tm=Mg({},W).useInsertionEffect;const Fm=Tm?function(e,t,n){return Tm((function(){return e(),t()}),n)}:function(e,t,n){z.useMemo(e,n),Pm((function(){return t(!0)}),n)};const Rm=void 0!==Mg({},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 Am(e,t,n,r,o){var a=z.useContext(tm).cache,i=[e].concat(Rg(t)),s=i.join("_"),l=Rm([s]),c=function(e){a.update(i,(function(t){var r=bm(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 Fm((function(){null==o||o(u)}),(function(e){return c((function(t){var n=bm(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=bm(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 Mm={},Lm="css",Bm=new Map;var zm=0;function Hm(e,t){Bm.set(e,(Bm.get(e)||0)-1);var n=Array.from(Bm.keys()),r=n.filter((function(e){return(Bm.get(e)||0)<=0}));n.length-r.length>zm&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Kg,'="').concat(e,'"]')).forEach((function(e){var n;e[Qg]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Bm.delete(e)}))}var Wm=function(e,t,n,r){var o=Mg(Mg({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o};function Um(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=z.useContext(tm).cache.instanceId,o=n.salt,a=void 0===o?"":o,i=n.override,s=void 0===i?Mm:i,l=n.formatToken,c=n.getComputedToken,u=function(e,t){for(var n=Sm,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(Cm)||n.set(Cm,e()),n.get(Cm)}((function(){return Object.assign.apply(Object,[{}].concat(Rg(t)))}),t),d=Dm(u),p=Dm(s),f=Am("token",[a,e.id,d,p],(function(){var t=c?c(u,s,e):Wm(u,s,e,l),n=function(e,t){return Lg("".concat(t,"_").concat(Dm(e)))}(t,a);t._tokenKey=n,function(e){Bm.set(e,(Bm.get(e)||0)+1)}(n);var r="".concat(Lm,"-").concat(Lg(n));return t._hashId=r,[t,r]}),(function(e){Hm(e[0]._tokenKey,r)}));return f}var Gm={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},Vm="comm",qm="rule",Xm="decl",Km="@import",Ym="@keyframes",Qm="@layer",Jm=Math.abs,Zm=String.fromCharCode;function eb(e){return e.trim()}function tb(e,t,n){return e.replace(t,n)}function nb(e,t){return e.indexOf(t)}function rb(e,t){return 0|e.charCodeAt(t)}function ob(e,t,n){return e.slice(t,n)}function ab(e){return e.length}function ib(e,t){return t.push(e),e}var sb=1,lb=1,cb=0,ub=0,db=0,pb="";function fb(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:sb,column:lb,length:i,return:"",siblings:s}}function hb(){return db=ub<cb?rb(pb,ub++):0,lb++,10===db&&(lb=1,sb++),db}function gb(){return rb(pb,ub)}function mb(){return ub}function bb(e,t){return ob(pb,e,t)}function vb(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 yb(e){return eb(bb(ub-1,kb(91===e?e+2:40===e?e+1:e)))}function wb(e){for(;(db=gb())&&db<33;)hb();return vb(e)>2||vb(db)>3?"":" "}function xb(e,t){for(;--t&&hb()&&!(db<48||db>102||db>57&&db<65||db>70&&db<97););return bb(e,mb()+(t<6&&32==gb()&&32==hb()))}function kb(e){for(;hb();)switch(db){case e:return ub;case 34:case 39:34!==e&&39!==e&&kb(db);break;case 40:41===e&&kb(e);break;case 92:hb()}return ub}function Sb(e,t){for(;hb()&&e+db!==57&&(e+db!==84||47!==gb()););return"/*"+bb(t,ub-1)+"*"+Zm(47===e?e:hb())}function Cb(e){for(;!vb(gb());)hb();return bb(e,ub)}function Eb(e){return function(e){return pb="",e}(Db("",null,null,null,[""],e=function(e){return sb=lb=1,cb=ab(pb=e),ub=0,[]}(e),0,[0],e))}function Db(e,t,n,r,o,a,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,h=0,g=1,m=1,b=1,v=0,y="",w=o,x=a,k=r,S=y;m;)switch(h=v,v=hb()){case 40:if(108!=h&&58==rb(S,d-1)){-1!=nb(S+=tb(yb(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=yb(v);break;case 9:case 10:case 13:case 32:S+=wb(h);break;case 92:S+=xb(mb()-1,7);continue;case 47:switch(gb()){case 42:case 47:ib(_b(Sb(hb(),mb()),t,n,l),l);break;default:S+="/"}break;case 123*g:s[c++]=ab(S)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==b&&(S=tb(S,/\f/g,"")),f>0&&ab(S)-d&&ib(f>32?$b(S+";",r,n,d-1,l):$b(tb(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(ib(k=Ob(S,t,n,c,u,o,s,y,w=[],x=[],d,a),a),123===v)if(0===u)Db(S,t,k,k,w,a,d,s,x);else switch(99===p&&110===rb(S,3)?100:p){case 100:case 108:case 109:case 115:Db(e,k,k,r&&ib(Ob(e,k,k,0,0,o,s,y,o,w=[],d,x),x),o,x,d,s,r?w:x);break;default:Db(S,k,k,k,[""],x,0,s,x)}}c=u=f=0,g=b=1,y=S="",d=i;break;case 58:d=1+ab(S),f=h;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==(db=ub>0?rb(pb,--ub):0,lb--,10===db&&(lb=1,sb--),db))continue;switch(S+=Zm(v),v*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(ab(S)-1)*b,b=1;break;case 64:45===gb()&&(S+=yb(hb())),p=gb(),u=d=ab(y=S+=Cb(mb())),v++;break;case 45:45===h&&2==ab(S)&&(g=0)}}return a}function Ob(e,t,n,r,o,a,i,s,l,c,u,d){for(var p=o-1,f=0===o?a:[""],h=function(e){return e.length}(f),g=0,m=0,b=0;g<r;++g)for(var v=0,y=ob(e,p+1,p=Jm(m=i[g])),w=e;v<h;++v)(w=eb(m>0?f[v]+" "+y:tb(y,/&\f/g,f[v])))&&(l[b++]=w);return fb(e,t,n,0===o?qm:s,l,c,u,d)}function _b(e,t,n,r){return fb(e,t,n,Vm,Zm(db),ob(e,2,-2),0,r)}function $b(e,t,n,r,o){return fb(e,t,n,Xm,ob(e,0,r),ob(e,r+1,-1),r,o)}function jb(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Nb(e,t,n,r){switch(e.type){case Qm:if(e.children.length)break;case Km:case Xm:return e.return=e.return||e.value;case Vm:return"";case Ym:return e.return=e.value+"{"+jb(e.children,r)+"}";case qm:if(!ab(e.value=e.props.join(",")))return""}return ab(n=jb(e.children,r))?e.return=e.value+"{"+n+"}":""}var Pb,Ib="data-ant-cssinjs-cache-path",Tb="_FILE_STYLE__",Fb=!0;function Rb(e){return function(){if(!Pb&&(Pb={},nm())){var e=document.createElement("div");e.className=Ib,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=bm(e.split(":"),2),n=t[0],r=t[1];Pb[n]=r}));var n,r=document.querySelector("style[".concat(Ib,"]"));r&&(Fb=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Pb[e]}var Ab=nm(),Mb="_multi_value_";function Lb(e){return jb(Eb(e),Nb).replace(/\{%%%\:[^;];}/g,";")}var Bb=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 p="",f={};function h(t){var r=t.getName(s);if(!f[r]){var o=bm(e(t.style,n,{root:!1,parentSelectors:i}),1)[0];f[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)p+="".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"!==Rp(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Rp(e)&&e&&("_skip_check_"in e||Mb in e)}(r)){let e=function(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;Gm[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(s)),p+="".concat(n,":").concat(r,";")};var u,d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===Rp(r)&&null!=r&&r[Mb]&&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(Rg(n.slice(1))).join(" ")})).join(",")}(t,s,c):!o||s||"&"!==m&&""!==m||(m="",b=!0);var v=bm(e(r,n,{root:b,injectHash:g,parentSelectors:[].concat(Rg(i),[m])}),2),y=v[0],w=v[1];f=Mg(Mg({},f),w),p+="".concat(m).concat(y)}}))}})),o){if(l&&jm()){var m=l.split(","),b=m[m.length-1].trim();p="@layer ".concat(b," {").concat(p,"}"),m.length>1&&(p="@layer ".concat(l,"{%%%:%}").concat(p))}}else p="{".concat(p,"}");return[p,f]};function zb(){return null}function Hb(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(tm),d=u.autoClear;u.mock;var p=u.defaultCache,f=u.hashPriority,h=u.container,g=u.ssrInline,m=u.transformers,b=u.linters,v=u.cache,y=n._tokenKey,w=[y].concat(Rg(r)),x=Ab,k=Am("style",w,(function(){var e=w.join("|");if(Rb(e)){var n=function(e){var t=Pb[e],n=null;if(t&&nm())if(Fb)n=Tb;else{var r=document.querySelector("style[".concat(Yg,'="').concat(Pb[e],'"]'));r?n=r.innerHTML:delete Pb[e]}return[n,t]}(e),i=bm(n,2),l=i[0],u=i[1];if(l)return[l,y,u,{},s,c]}var d=t(),p=bm(Bb(d,{hashId:o,hashPriority:f,layer:a,path:r.join("-"),transformers:m,linters:b}),2),h=p[0],g=p[1],v=Lb(h),x=function(e,t){return Lg("".concat(e.join("%")).concat(t))}(w,v);return[v,y,x,g,s,c]}),(function(e,t){var n=bm(e,3)[2];(t||d)&&Ab&&fm(n,{mark:Yg})}),(function(e){var t=bm(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(x&&n!==Tb){var a={mark:Yg,prepend:"queue",attachTo:h,priority:c},s="function"==typeof i?i():i;s&&(a.csp={nonce:s});var l=hm(n,r,a);l[Qg]=v.instanceId,l.setAttribute(Kg,y),Object.keys(o).forEach((function(e){hm(Lb(o[e]),"_effect-".concat(e),a)}))}})),S=bm(k,3),C=S[0],E=S[1],D=S[2];return function(e){var t,n;g&&!x&&p?t=z.createElement("style",Zh({},(Mp(n={},Kg,E),Mp(n,Yg,D),n),{dangerouslySetInnerHTML:{__html:C}})):t=z.createElement(zb,null);return z.createElement(z.Fragment,null,t,e)}}var Wb=function(){function e(t,n){mf(this,e),Mp(this,"name",void 0),Mp(this,"style",void 0),Mp(this,"_keyframe",!0),this.name=t,this.style=n}return vf(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function Ub(e){return e.notSplit=!0,e}Ub(["borderTop","borderBottom"]),Ub(["borderTop"]),Ub(["borderBottom"]),Ub(["borderLeft","borderRight"]),Ub(["borderLeft"]),Ub(["borderRight"]);var Gb=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"];function Vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vb(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xb,Kb={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
Xb=Kb,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(" ")}Xb.exports?(t.default=t,Xb.exports=t):window.classNames=t}();var Yb=Kb.exports;const Qb=n(Yb);var Jb,Zb={exports:{}},ev={},tv=Symbol.for("react.element"),nv=Symbol.for("react.portal"),rv=Symbol.for("react.fragment"),ov=Symbol.for("react.strict_mode"),av=Symbol.for("react.profiler"),iv=Symbol.for("react.provider"),sv=Symbol.for("react.context"),lv=Symbol.for("react.server_context"),cv=Symbol.for("react.forward_ref"),uv=Symbol.for("react.suspense"),dv=Symbol.for("react.suspense_list"),pv=Symbol.for("react.memo"),fv=Symbol.for("react.lazy"),hv=Symbol.for("react.offscreen");function gv(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case tv:switch(e=e.type){case rv:case av:case ov:case uv:case dv:return e;default:switch(e=e&&e.$$typeof){case lv:case sv:case cv:case fv:case pv:case iv:return e;default:return t}}case nv:return t}}}Jb=Symbol.for("react.module.reference"),ev.ContextConsumer=sv,ev.ContextProvider=iv,ev.Element=tv,ev.ForwardRef=cv,ev.Fragment=rv,ev.Lazy=fv,ev.Memo=pv,ev.Portal=nv,ev.Profiler=av,ev.StrictMode=ov,ev.Suspense=uv,ev.SuspenseList=dv,ev.isAsyncMode=function(){return!1},ev.isConcurrentMode=function(){return!1},ev.isContextConsumer=function(e){return gv(e)===sv},ev.isContextProvider=function(e){return gv(e)===iv},ev.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===tv},ev.isForwardRef=function(e){return gv(e)===cv},ev.isFragment=function(e){return gv(e)===rv},ev.isLazy=function(e){return gv(e)===fv},ev.isMemo=function(e){return gv(e)===pv},ev.isPortal=function(e){return gv(e)===nv},ev.isProfiler=function(e){return gv(e)===av},ev.isStrictMode=function(e){return gv(e)===ov},ev.isSuspense=function(e){return gv(e)===uv},ev.isSuspenseList=function(e){return gv(e)===dv},ev.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===rv||e===av||e===ov||e===uv||e===dv||e===hv||"object"==typeof e&&null!==e&&(e.$$typeof===fv||e.$$typeof===pv||e.$$typeof===iv||e.$$typeof===sv||e.$$typeof===cv||e.$$typeof===Jb||void 0!==e.getModuleId)},ev.typeOf=gv,Zb.exports=ev;var mv=Zb.exports;function bv(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(bv(e)):mv.isFragment(e)&&e.props?n=n.concat(bv(e.props.children,t)):n.push(e))})),n}function vv(e){return e instanceof HTMLElement||e instanceof SVGElement}function yv(e){return vv(e)?e:e instanceof H.Component?id.findDOMNode(e):null}function wv(e,t){"function"==typeof e?e(t):"object"===Rp(e)&&e&&"current"in e&&(e.current=t)}function xv(){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){wv(t,e)}))}}function kv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bg((function(){return xv.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function Sv(e){var t,n,r=mv.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 Cv=z.createContext(null);var Ev=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}()}(),Dv="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ov="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),_v="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ov):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var $v=["top","right","bottom","left","width","height","size","weight"],jv="undefined"!=typeof MutationObserver,Nv=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(){_v(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(){Dv&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),jv?(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(){Dv&&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}(),Pv=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},Iv=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ov},Tv=Bv(0,0,0,0);function Fv(e){return parseFloat(e)||0}function Rv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Fv(e["border-"+n+"-width"])}),0)}function Av(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Tv;var r=Iv(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]=Fv(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,s=Fv(r.width),l=Fv(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=Rv(r,"left","right")+a),Math.round(l+i)!==n&&(l-=Rv(r,"top","bottom")+i)),!function(e){return e===Iv(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 Bv(o.left,o.top,s,l)}var Mv="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Iv(e).SVGGraphicsElement}:function(e){return e instanceof Iv(e).SVGElement&&"function"==typeof e.getBBox};function Lv(e){return Dv?Mv(e)?function(e){var t=e.getBBox();return Bv(0,0,t.width,t.height)}(e):Av(e):Tv}function Bv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var zv=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Bv(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Lv(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}(),Hv=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),Pv(l,{x:r,y:o,width:a,height:i,top:o,right:r+a,bottom:i+o,left:r}),l);Pv(this,{target:e,contentRect:c})},Wv=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Ev,"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 Iv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new zv(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 Iv(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 Hv(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}(),Uv="undefined"!=typeof WeakMap?new WeakMap:new Ev,Gv=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=Nv.getInstance(),r=new Wv(t,n,this);Uv.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Gv.prototype[e]=function(){var t;return(t=Uv.get(this))[e].apply(t,arguments)}}));var Vv=void 0!==Ov.ResizeObserver?Ov.ResizeObserver:Gv,qv=new Map;var Xv=new Vv((function(e){e.forEach((function(e){var t,n=e.target;null===(t=qv.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Kv(e,t){return(Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yv(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&&Kv(e,t)}function Qv(e){return(Qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jv(){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(Fte){return!1}}function Zv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ey(e){var t=Jv();return function(){var n,r=Qv(e);if(t){var o=Qv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Rp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zv(e)}(this,n)}}var ty=function(e){Yv(n,z.Component);var t=ey(n);function n(){return mf(this,n),t.apply(this,arguments)}return vf(n,[{key:"render",value:function(){return this.props.children}}]),n}();function ny(e,t){var n=e.children,r=e.disabled,o=z.useRef(null),a=z.useRef(null),i=z.useContext(Cv),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)&&Sv(l),d=kv(u?l.ref:null,o),p=function(){var e;return yv(o.current)||(o.current&&"object"===Rp(o.current)?yv(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||yv(a.current)};z.useImperativeHandle(t,(function(){return p()}));var f=z.useRef(e);f.current=e;var h=z.useCallback((function(e){var t=f.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),p=Math.floor(s);if(c.current.width!==d||c.current.height!==p||c.current.offsetWidth!==l||c.current.offsetHeight!==u){var h={width:d,height:p,offsetWidth:l,offsetHeight:u};c.current=h;var g=l===Math.round(a)?a:l,m=u===Math.round(s)?s:u,b=Mg(Mg({},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=p();return n&&!r&&(e=n,t=h,qv.has(e)||(qv.set(e,new Set),Xv.observe(e)),qv.get(e).add(t)),function(){return function(e,t){qv.has(e)&&(qv.get(e).delete(t),qv.get(e).size||(Xv.unobserve(e),qv.delete(e)))}(n,h)}}),[o.current,r]),z.createElement(ty,{ref:a},u?z.cloneElement(l,{ref:d}):l)}var ry=z.forwardRef(ny);function oy(e,t){var n=e.children;return("function"==typeof n?[n]:bv(n)).map((function(n,r){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return z.createElement(ry,Zh({},e,{key:o,ref:0===r?t:void 0}),n)}))}var ay=z.forwardRef(oy);function iy(e,t){var n=Mg({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}ay.Collection=function(e){var t=e.children,n=e.onBatchResize,r=z.useRef(0),o=z.useRef([]),a=z.useContext(Cv),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(Cv.Provider,{value:i},t)};var sy=function(e){return+setTimeout(e,16)},ly=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(sy=function(e){return window.requestAnimationFrame(e)},ly=function(e){return window.cancelAnimationFrame(e)});var cy=0,uy=new Map;function dy(e){uy.delete(e)}var py=function(e){var t=cy+=1;return function n(r){if(0===r)dy(t),e();else{var o=sy((function(){n(r-1)}));uy.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};py.cancel=function(e){var t=uy.get(e);return dy(e),ly(t)};const fy=z.createContext({});function hy(e){return gm(e)||Tg(e)||Fg(e)||mm()}function gy(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function my(e,t,n,r){if(!t.length)return n;var o,a=hy(t),i=a[0],s=a.slice(1);return o=e||"number"!=typeof i?Array.isArray(e)?Rg(e):Mg({},e):[],r&&void 0===n&&1===s.length?delete o[i][s[0]]:o[i]=my(o[i],s,n,r),o}function by(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!gy(e,t.slice(0,-1))?e:my(e,t,n,r)}function vy(e){return Array.isArray(e)?[]:{}}var yy="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function wy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=vy(t[0]);return t.forEach((function(e){!function t(n,o){var a,i=new Set(o),s=gy(e,n),l=Array.isArray(s);if(l||"object"===Rp(a=s)&&null!==a&&Object.getPrototypeOf(a)===Object.prototype){if(!i.has(s)){i.add(s);var c=gy(r,n);l?r=by(r,n,[]):c&&"object"===Rp(c)||(r=by(r,n,vy(s))),yy(s).forEach((function(e){t([].concat(Rg(n),[e]),i)}))}}else r=by(r,n,s)}([])})),r}function xy(){}const ky=z.createContext({}),Sy=()=>{const e=()=>{};return e.deprecated=xy,e},Cy=z.createContext(void 0);const Ey={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Dy={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({},Ey)},Oy="${label} is not a valid ${type}",_y={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:Dy,TimePicker:Ey,Calendar:Dy,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:Oy,method:Oy,array:Oy,object:Oy,number:Oy,date:Oy,boolean:Oy,integer:Oy,float:Oy,regexp:Oy,email:Oy,url:Oy,hex:Oy},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({},_y.Modal),jy=[];const Ny=()=>jy.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),_y.Modal);function Py(){return $y}const Iy=z.createContext(void 0),Ty=(e,t)=>{const n=z.useContext(Iy);return[z.useMemo((()=>{var r;const o=t||_y[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?_y.locale:e}),[n])]},Fy=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;z.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return jy.push(t),$y=Ny(),()=>{jy=jy.filter((e=>e!==t)),$y=Ny()}}$y=Object.assign({},_y.Modal)}(t&&t.Modal);return e}),[t]);const o=z.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return z.createElement(Iy.Provider,{value:o},n)};function Ry(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 Ay(e){return Math.min(1,Math.max(0,e))}function My(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ly(e){return e<=1?"".concat(100*Number(e),"%"):e}function By(e){return 1===e.length?"0"+e:String(e)}function zy(e,t,n){e=Ry(e,255),t=Ry(t,255),n=Ry(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 Hy(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 Wy(e,t,n){e=Ry(e,255),t=Ry(t,255),n=Ry(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 Uy(e,t,n,r){var o=[By(Math.round(e).toString(16)),By(Math.round(t).toString(16)),By(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 Gy(e){return Vy(e)/255}function Vy(e){return parseInt(e,16)}var qy={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 Xy(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(qy[e])e=qy[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Jy.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Jy.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Jy.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Jy.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Jy.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Jy.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Jy.hex8.exec(e),n)return{r:Vy(n[1]),g:Vy(n[2]),b:Vy(n[3]),a:Gy(n[4]),format:t?"name":"hex8"};if(n=Jy.hex6.exec(e),n)return{r:Vy(n[1]),g:Vy(n[2]),b:Vy(n[3]),format:t?"name":"hex"};if(n=Jy.hex4.exec(e),n)return{r:Vy(n[1]+n[1]),g:Vy(n[2]+n[2]),b:Vy(n[3]+n[3]),a:Gy(n[4]+n[4]),format:t?"name":"hex8"};if(n=Jy.hex3.exec(e),n)return{r:Vy(n[1]+n[1]),g:Vy(n[2]+n[2]),b:Vy(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Zy(e.r)&&Zy(e.g)&&Zy(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*Ry(t,255),g:255*Ry(n,255),b:255*Ry(r,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):Zy(e.h)&&Zy(e.s)&&Zy(e.v)?(i=Ly(e.s),s=Ly(e.v),o=function(e,t,n){e=6*Ry(e,360),t=Ry(t,100),n=Ry(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"):Zy(e.h)&&Zy(e.s)&&Zy(e.l)&&(i=Ly(e.s),l=Ly(e.l),o=function(e,t,n){var r,o,a;if(e=Ry(e,360),t=Ry(t,100),n=Ry(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=Hy(s,i,e+1/3),o=Hy(s,i,e),a=Hy(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=My(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 Ky="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Yy="[\\s|\\(]+(".concat(Ky,")[,|\\s]+(").concat(Ky,")[,|\\s]+(").concat(Ky,")\\s*\\)?"),Qy="[\\s|\\(]+(".concat(Ky,")[,|\\s]+(").concat(Ky,")[,|\\s]+(").concat(Ky,")[,|\\s]+(").concat(Ky,")\\s*\\)?"),Jy={CSS_UNIT:new RegExp(Ky),rgb:new RegExp("rgb"+Yy),rgba:new RegExp("rgba"+Qy),hsl:new RegExp("hsl"+Yy),hsla:new RegExp("hsla"+Qy),hsv:new RegExp("hsv"+Yy),hsva:new RegExp("hsva"+Qy),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 Zy(e){return Boolean(Jy.CSS_UNIT.exec(String(e)))}var ew=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=Xy(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=My(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=Wy(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=Wy(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=zy(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=zy(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),Uy(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=[By(Math.round(e).toString(16)),By(Math.round(t).toString(16)),By(Math.round(n).toString(16)),By((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*Ry(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*Ry(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="#"+Uy(this.r,this.g,this.b,!1),t=0,n=Object.entries(qy);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=Ay(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=Ay(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=Ay(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=Ay(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}(),tw=2,nw=.16,rw=.05,ow=.05,aw=.15,iw=5,sw=4,lw=[{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 cw(e){var t=Wy(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function uw(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Uy(t,n,r,!1))}function dw(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-tw*t:Math.round(e.h)+tw*t:n?Math.round(e.h)+tw*t:Math.round(e.h)-tw*t)<0?r+=360:r>=360&&(r-=360),r}function pw(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-nw*t:t===sw?e.s+nw:e.s+rw*t)>1&&(r=1),n&&t===iw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function fw(e,t,n){var r;return(r=n?e.v+ow*t:e.v-aw*t)>1&&(r=1),Number(r.toFixed(2))}function hw(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Xy(e),o=iw;o>0;o-=1){var a=cw(r),i=uw(Xy({h:dw(a,o,!0),s:pw(a,o,!0),v:fw(a,o,!0)}));n.push(i)}n.push(uw(r));for(var s=1;s<=sw;s+=1){var l=cw(r),c=uw(Xy({h:dw(l,s),s:pw(l,s),v:fw(l,s)}));n.push(c)}return"dark"===t.theme?lw.map((function(e){var r,o,a,i=e.index,s=e.opacity;return uw((r=Xy(t.backgroundColor||"#141414"),o=Xy(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 gw={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"},mw={},bw={};Object.keys(gw).forEach((function(e){mw[e]=hw(gw[e]),mw[e].primary=mw[e][5],bw[e]=hw(gw[e],{theme:"dark",backgroundColor:"#141414"}),bw[e].primary=bw[e][5]}));var vw=mw.blue;const yw=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const ww={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"},xw=Object.assign(Object.assign({},ww),{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 kw(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),p=n(o),f=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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new ew("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Sw=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 Cw=(e,t)=>new ew(e).setAlpha(t).toRgbString(),Ew=(e,t)=>new ew(e).darken(t).toHexString(),Dw=e=>{const t=hw(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]}},Ow=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Cw(r,.88),colorTextSecondary:Cw(r,.65),colorTextTertiary:Cw(r,.45),colorTextQuaternary:Cw(r,.25),colorFill:Cw(r,.15),colorFillSecondary:Cw(r,.06),colorFillTertiary:Cw(r,.04),colorFillQuaternary:Cw(r,.02),colorBgLayout:Ew(n,4),colorBgContainer:Ew(n,0),colorBgElevated:Ew(n,0),colorBgSpotlight:Cw(r,.85),colorBgBlur:"transparent",colorBorder:Ew(n,15),colorBorderSecondary:Ew(n,6)}};const _w=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(ww).map((t=>{const n=hw(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),kw(e,{generateColorPalettes:Dw,generateNeutralColorPalettes:Ow})),_w(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)),yw(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},Sw(r))}(e))}const jw=km($w),Nw={token:xw,override:{override:xw},hashed:!0},Pw=H.createContext(Nw),Iw="anticon",Tw=z.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Iw}),Fw=`-ant-${Date.now()}-${Math.random()}`;function Rw(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 ew(e),a=hw(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 ew(t.primaryColor),a=hw(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 ew(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);nm()&&hm(n,`${Fw}-dynamic-theme`)}const Aw=z.createContext(!1),Mw=e=>{let{children:t,disabled:n}=e;const r=z.useContext(Aw);return z.createElement(Aw.Provider,{value:null!=n?n:r},t)},Lw=Aw,Bw=z.createContext(void 0),zw=e=>{let{children:t,size:n}=e;const r=z.useContext(Bw);return z.createElement(Bw.Provider,{value:n||r},t)},Hw=Bw;const Ww=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Uw="5.11.1";function Gw(e){return e>=0&&e<=255}function Vw(e,t){const{r:n,g:r,b:o,a:a}=new ew(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new ew(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(Gw(e)&&Gw(t)&&Gw(a))return new ew({r:e,g:t,b:a,a:Math.round(100*c)/100}).toRgbString()}return new ew({r:n,g:r,b:o,a:1}).toRgbString()}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};function Xw(e){const{override:t}=e,n=qw(e,["override"]),r=Object.assign({},t);Object.keys(xw).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:Vw(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:Vw(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Vw(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:Vw(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 ew("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new ew("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new ew("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 Kw=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 Yw=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=Kw(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=Xw(i),a&&Object.entries(a).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Kw(n,["theme"]);let a=o;r&&(a=Yw(Object.assign(Object.assign({},i),o),{override:o},r)),i[t]=a})),i};function Qw(){const{token:e,hashed:t,theme:n,override:r}=H.useContext(Pw),o=`${Uw}-${t||""}`,a=n||jw,[i,s]=Um(a,[xw,e],{salt:o,override:r,getComputedToken:Yw,formatToken:Xw});return[a,i,t?s:""]}function Jw(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 Zw(e){var t=z.useRef(!1),n=bm(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 ex(e){return void 0!==e}function tx(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=bm(Zw((function(){return ex(o)?o:ex(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,p=Jw(a),f=bm(Zw([u]),2),h=f[0],g=f[1];return Im((function(){var e=h[0];l!==e&&p(l,e)}),[h]),Im((function(){ex(o)||c(o)}),[o]),[d,Jw((function(e,t){c(e,t),g([u],t)}))]}const nx=(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,p=u,f=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} ${p} L ${f} ${h} A ${n} ${n} 0 0 0 ${g} ${m} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}},rx={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ox=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}},ax=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"}}}),ix=(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"}}}}},sx=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),lx=e=>({"&:focus-visible":Object.assign({},sx(e))}),cx="undefined"!=typeof CSSINJS_STATISTIC;let ux=!0;function dx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!cx)return Object.assign.apply(Object,[{}].concat(t));ux=!1;const r={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),ux=!0,r}const px={};function fx(){}const hx=(e,t)=>{const[n,r]=Qw();return Hb({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 gx(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]=Qw(),{getPrefixCls:c,iconPrefixCls:u,csp:d}=z.useContext(Tw),p=c(),f={theme:o,token:s,hashId:l,nonce:()=>null==d?void 0:d.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Hb(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",p]}),(()=>[{"&":ax(s)}])),hx(u,d),[Hb(Object.assign(Object.assign({},f),{path:[i,e,u]}),(()=>{const{token:o,flush:i}=function(e){let t,n=e,r=fx;return cx&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(ux&&t.add(n),e[n])}),r=(e,n)=>{var r;px[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=px[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(dx(o,null!=c?c:{})):n,f=Object.assign(Object.assign({},d),c),h=dx(o,{componentCls:`.${e}`,prefixCls:e,iconCls:`.${u}`,antCls:`.${p}`},f),g=t(h,{hashId:l,prefixCls:e,rootPrefixCls:p,iconPrefixCls:u,overrideComponentToken:c});return i(a,f),[!1===r.resetStyle?null:ix(h,e),g]})),l]}}const mx=(e,t,n,r)=>{const o=gx(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}};function bx(e,t){return Ww.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 vx=["children"],yx=z.createContext({});function wx(e){var t=e.children,n=Lp(e,vx);return z.createElement(yx.Provider,{value:n},t)}var xx=function(e){Yv(n,z.Component);var t=ey(n);function n(){return mf(this,n),t.apply(this,arguments)}return vf(n,[{key:"render",value:function(){return this.props.children}}]),n}(),kx="none",Sx="appear",Cx="enter",Ex="leave",Dx="none",Ox="prepare",_x="start",$x="active",jx="end",Nx="prepared";function Px(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 Ix,Tx,Fx,Rx=(Ix=nm(),Tx="undefined"!=typeof window?window:{},Fx={animationend:Px("Animation","AnimationEnd"),transitionend:Px("Transition","TransitionEnd")},Ix&&("AnimationEvent"in Tx||delete Fx.animationend.animation,"TransitionEvent"in Tx||delete Fx.transitionend.transition),Fx),Ax={};if(nm()){var Mx=document.createElement("div");Ax=Mx.style}var Lx={};function Bx(e){if(Lx[e])return Lx[e];var t=Rx[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 Ax)return Lx[e]=t[a],Lx[e]}return""}var zx=Bx("animationend"),Hx=Bx("transitionend"),Wx=!(!zx||!Hx),Ux=zx||"animationend",Gx=Hx||"transitionend";function Vx(e,t){return e?"object"===Rp(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const qx=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(Gx,r),e.removeEventListener(Ux,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(Gx,r),e.addEventListener(Ux,r),t.current=e)},o]};var Xx=nm()?z.useLayoutEffect:z.useEffect;var Kx=[Ox,_x,$x,jx],Yx=[Ox,Nx],Qx=!1,Jx=!0;function Zx(e){return e===$x||e===jx}const ek=function(e,t,n){var r=bm(Zw(Dx),2),o=r[0],a=r[1],i=function(){var e=z.useRef(null);function t(){py.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=py((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a},t]}(),s=bm(i,2),l=s[0],c=s[1];var u=t?Yx:Kx;return Xx((function(){if(o!==Dx&&o!==jx){var e=u.indexOf(o),t=u[e+1],r=n(o);r===Qx?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(Ox,!0)},o]};const tk=function(e){var t=e;"object"===Rp(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,p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,z.useContext(yx).motion),f=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,p=r.onAppearPrepare,f=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,b=r.onLeaveStart,v=r.onAppearActive,y=r.onEnterActive,w=r.onLeaveActive,x=r.onAppearEnd,k=r.onEnterEnd,S=r.onLeaveEnd,C=r.onVisibleChanged,E=bm(Zw(),2),D=E[0],O=E[1],_=bm(Zw(kx),2),$=_[0],j=_[1],N=bm(Zw(null),2),P=N[0],I=N[1],T=z.useRef(!1),F=z.useRef(null);function R(){return n()}var A=z.useRef(!1);function M(){j(kx,!0),I(null,!0)}function L(e){var t=R();if(!e||e.deadline||e.target===t){var n,r=A.current;$===Sx&&r?n=null==x?void 0:x(t,e):$===Cx&&r?n=null==k?void 0:k(t,e):$===Ex&&r&&(n=null==S?void 0:S(t,e)),$!==kx&&r&&!1!==n&&M()}}var B=bm(qx(L),1)[0],H=function(e){var t,n,r;switch(e){case Sx:return Mp(t={},Ox,p),Mp(t,_x,g),Mp(t,$x,v),t;case Cx:return Mp(n={},Ox,f),Mp(n,_x,m),Mp(n,$x,y),n;case Ex:return Mp(r={},Ox,h),Mp(r,_x,b),Mp(r,$x,w),r;default:return{}}},W=z.useMemo((function(){return H($)}),[$]),U=bm(ek($,!e,(function(e){if(e===Ox){var t=W[Ox];return t?t(R()):Qx}var n;return V in W&&I((null===(n=W[V])||void 0===n?void 0:n.call(W,R(),null))||null),V===$x&&(B(R()),u>0&&(clearTimeout(F.current),F.current=setTimeout((function(){L({deadline:!0})}),u))),V===Nx&&M(),Jx})),2),G=U[0],V=U[1],q=Zx(V);A.current=q,Xx((function(){O(t);var n,r=T.current;T.current=!0,!r&&t&&s&&(n=Sx),r&&t&&a&&(n=Cx),(r&&!t&&c||!r&&d&&!t&&c)&&(n=Ex);var o=H(n);n&&(e||o[Ox])?(j(n),G()):j(kx)}),[t]),z.useEffect((function(){($===Sx&&!s||$===Cx&&!a||$===Ex&&!c)&&j(kx)}),[s,a,c]),z.useEffect((function(){return function(){T.current=!1,clearTimeout(F.current)}}),[]);var X=z.useRef(!1);z.useEffect((function(){D&&(X.current=!0),void 0!==D&&$===kx&&((X.current||D)&&(null==C||C(D)),X.current=!0)}),[D,$]);var K=P;return W[Ox]&&V===_x&&(K=Mg({transition:"none"},K)),[$,V,K,null!=D?D:t]}(p,o,(function(){try{return f.current instanceof HTMLElement?f.current:yv(h.current)}catch(Fte){return null}}),e),m=bm(g,4),b=m[0],v=m[1],y=m[2],w=m[3],x=z.useRef(w);w&&(x.current=!0);var k,S=z.useCallback((function(e){f.current=e,wv(n,e)}),[n]),C=Mg(Mg({},d),{},{visible:o});if(l)if(b===kx)k=w?l(Mg({},C),S):!i&&x.current&&u?l(Mg(Mg({},C),{},{className:u}),S):s||!i&&!u?l(Mg(Mg({},C),{},{style:{display:"none"}}),S):null;else{var E,D;v===Ox?D="prepare":Zx(v)?D="active":v===_x&&(D="start");var O=Vx(c,"".concat(b,"-").concat(D));k=l(Mg(Mg({},C),{},{className:Qb(Vx(c,b),(E={},Mp(E,O,O&&D),Mp(E,c,"string"==typeof c),E)),style:y}),S)}else k=null;z.isValidElement(k)&&Sv(k)&&(k.ref||(k=z.cloneElement(k,{ref:S})));return z.createElement(xx,{ref:h},k)}));return n.displayName="CSSMotion",n}(Wx);var nk="add",rk="keep",ok="remove",ak="removed";function ik(e){var t;return Mg(Mg({},t=e&&"object"===Rp(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function sk(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ik)}var lk=["component","children","onVisibleChanged","onAllRemoved"],ck=["status"],uk=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const dk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tk,n=function(e){Yv(r,z.Component);var n=ey(r);function r(){var e;mf(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return Mp(Zv(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),Mp(Zv(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:Mg(Mg({},e),{},{status:ak})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ak})).length})),e}return vf(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=Lp(r,lk),c=o||z.Fragment,u={};return uk.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=Lp(n,ck),c=o===nk||o===rk;return z.createElement(t,Zh({},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(Mg(Mg({},e),{},{index:r}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=sk(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=sk(e),i=sk(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 Mg(Mg({},e),{},{status:nk})}))),r=a),n.push(Mg(Mg({},s),{},{status:rk})),r+=1,t=!0;break}}t||n.push(Mg(Mg({},e),{},{status:ok}))})),r<o&&(n=n.concat(i.slice(r).map((function(e){return Mg(Mg({},e),{},{status:nk})}))));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!==ok}))).forEach((function(t){t.key===e&&(t.status=rk)}))})),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!==ak||e.status!==ok}))}}}]),r}();return Mp(n,"defaultProps",{component:"div"}),n}(Wx);function pk(e){const{children:t}=e,[,n]=Qw(),{motion:r}=n,o=z.useRef(!1);return o.current=o.current||!1===r,o.current?z.createElement(wx,{motion:r},t):t}const fk=()=>null;var hk=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 gk=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];let mk,bk,vk;function yk(){return mk||"ant"}function wk(){return bk||Iw}const xk=()=>({getPrefixCls:(e,t)=>t||(e?`${yk()}-${e}`:yk()),getIconPrefixCls:wk,getRootPrefixCls:()=>mk||yk(),getTheme:()=>vk}),kk=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:p,popupMatchSelectWidth:f,popupOverflow:h,legacyLocale:g,parentContext:m,iconPrefixCls:b,theme:v,componentDisabled:y,segmented:w,statistic:x,spin:k,calendar:S,carousel:C,cascader:E,collapse:D,typography:O,checkbox:_,descriptions:$,divider:j,drawer:N,skeleton:P,steps:I,image:T,layout:F,list:R,mentions:A,modal:M,progress:L,result:B,slider:H,breadcrumb:W,menu:U,pagination:G,input:V,empty:q,badge:X,radio:K,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ae,timePicker:ie,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:pe,flex:fe,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||Iw,ye=n||m.csp;hx(ve,ye);const we=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:Nw;return Bg((()=>{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)=>!Vg(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!=f?f:p,popupOverflow:h,getPrefixCls:be,iconPrefixCls:ve,theme:we,segmented:w,statistic:x,spin:k,calendar:S,carousel:C,cascader:E,collapse:D,typography:O,checkbox:_,descriptions:$,divider:j,drawer:N,skeleton:P,steps:I,image:T,input:V,layout:F,list:R,mentions:A,modal:M,progress:L,result:B,slider:H,breadcrumb:W,menu:U,pagination:G,empty:q,badge:X,radio:K,rate:Y,switch:Q,transfer:J,avatar:Z,message:ee,tag:te,table:ne,card:re,tabs:oe,timeline:ae,timePicker:ie,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:pe,flex:fe,wave:he,dropdown:ge,warning:me},ke=Object.assign({},m);Object.keys(xe).forEach((e=>{void 0!==xe[e]&&(ke[e]=xe[e])})),gk.forEach((t=>{const n=e[t];n&&(ke[t]=n)}));const Se=Bg((()=>ke),ke,((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(fk,{dropdownMatchSelectWidth:p}),t);const De=z.useMemo((()=>{var e,t,n,r;return wy((null===(e=_y.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Se.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Se.form)||void 0===r?void 0:r.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})}),[Se,null==i?void 0:i.validateMessages]);Object.keys(De).length>0&&(Ee=z.createElement(Cy.Provider,{value:De},Ee)),s&&(Ee=z.createElement(Fy,{locale:s,_ANT_MARK__:"internalMark"},Ee)),(ve||ye)&&(Ee=z.createElement(fy.Provider,{value:Ce},Ee)),l&&(Ee=z.createElement(zw,{size:l},Ee)),Ee=z.createElement(pk,null,Ee);const Oe=z.useMemo((()=>{const e=we||{},{algorithm:t,token:n,components:r}=e,o=hk(e,["algorithm","token","components"]),a=t&&(!Array.isArray(t)||t.length>0)?km(t):jw,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=km(r.algorithm)),delete r.algorithm),i[t]=r}));const s=Object.assign(Object.assign({},xw),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(Pw.Provider,{value:Oe},Ee)),Se.warning&&(Ee=z.createElement(ky.Provider,{value:Se.warning},Ee)),void 0!==y&&(Ee=z.createElement(Mw,{disabled:y},Ee)),z.createElement(Tw.Provider,{value:Se},Ee)},Sk=e=>{const t=z.useContext(Tw),n=z.useContext(Iy);return z.createElement(kk,Object.assign({parentContext:t,legacyLocale:n},e))};Sk.ConfigContext=Tw,Sk.SizeContext=Hw,Sk.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(mk=t),void 0!==n&&(bk=n),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?vk=r:Rw(yk(),r))},Sk.useConfig=function(){return{componentDisabled:z.useContext(Lw),componentSize:z.useContext(Hw)}},Object.defineProperty(Sk,"SizeContext",{get:()=>Hw});const Ck={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 Ek(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Dk(e){return function(e){return Ek(e)instanceof ShadowRoot}(e)?Ek(e):null}function Ok(e){return"object"===Rp(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Rp(e.icon)||"function"==typeof e.icon)}function _k(){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 $k(e,t,n){return n?H.createElement(e.tag,Mg(Mg({key:t},_k(e.attrs)),n),(e.children||[]).map((function(n,r){return $k(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):H.createElement(e.tag,Mg({key:t},_k(e.attrs)),(e.children||[]).map((function(n,r){return $k(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function jk(e){return hw(e)[0]}function Nk(e){return e?Array.isArray(e)?e:[e]:[]}var Pk=["icon","className","onClick","style","primaryColor","secondaryColor"],Ik={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Tk=function(e){var t,n,r,o,a,i,s,l=e.icon,c=e.className,u=e.onClick,d=e.style,p=e.primaryColor,f=e.secondaryColor,h=Lp(e,Pk),g=z.useRef(),m=Ik;if(p&&(m={primaryColor:p,secondaryColor:f||jk(p)}),t=g,n=z.useContext(fy),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=Dk(t.current);hm(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),i=Ok(l),s="icon should be icon definiton, but got ".concat(l),Gg(i,"[@ant-design/icons] ".concat(s)),!Ok(l))return null;var b=l;return b&&"function"==typeof b.icon&&(b=Mg(Mg({},b),{},{icon:b.icon(m.primaryColor,m.secondaryColor)})),$k(b.icon,"svg-".concat(b.name),Mg(Mg({className:c,onClick:u,style:d,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:g}))};Tk.displayName="IconReact",Tk.getTwoToneColors=function(){return Mg({},Ik)},Tk.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Ik.primaryColor=t,Ik.secondaryColor=n||jk(t),Ik.calculated=!!n};const Fk=Tk;function Rk(e){var t=bm(Nk(e),2),n=t[0],r=t[1];return Fk.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Ak=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Rk(vw.primary);var Mk=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=Lp(e,Ak),d=z.useContext(fy),p=d.prefixCls,f=void 0===p?"anticon":p,h=d.rootClassName,g=Qb(h,f,(Mp(n={},"".concat(f,"-").concat(o.name),!!o.name),Mp(n,"".concat(f,"-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=bm(Nk(c),2),y=v[0],w=v[1];return z.createElement("span",Zh({role:"img","aria-label":o.name},u,{ref:t,tabIndex:m,onClick:l,className:g}),z.createElement(Fk,{icon:o,primaryColor:y,secondaryColor:w,style:b}))}));Mk.displayName="AntdIcon",Mk.getTwoToneColor=function(){var e=Fk.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Mk.setTwoToneColor=Rk;const Lk=Mk;var Bk=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:Ck}))};const zk=z.forwardRef(Bk);const Hk={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 Wk=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:Hk}))};const Uk=z.forwardRef(Wk);const Gk={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 Vk=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:Gk}))};const qk=z.forwardRef(Vk);const Xk={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 Kk=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:Xk}))};const Yk=z.forwardRef(Kk);const Qk={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 Jk=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:Qk}))};const Zk=z.forwardRef(Jk);var eS="".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]+/),tS="aria-",nS="data-";function rS(e,t){return 0===e.indexOf(t)}function oS(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}:Mg({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||rS(n,tS))||t.data&&rS(n,nS)||t.attr&&eS.includes(n))&&(r[n]=e[n])})),r}const{isValidElement:aS}=W;function iS(e){return e&&aS(e)&&e.type===z.Fragment}function sS(e,t){return function(e,t,n){return aS(e)?z.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}const lS=e=>"object"==typeof e&&null!=e&&1===e.nodeType,cS=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,uS=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return cS(n.overflowY,t)||cS(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},dS=(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,pS=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},fS=(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(!lS(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;lS(h)&&d(h);){if(h=pS(h),h===p){f.push(h);break}null!=h&&h===document.body&&uS(h)&&!uS(document.documentElement)||null!=h&&uS(h,u)&&f.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:k,bottom:S,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 $="start"===s||"nearest"===s?x-E:"end"===s?S+O:x+y/2-E+O,j="center"===l?C+w/2-_+D:"end"===l?k+D:C-_;const N=[];for(let P=0;P<f.length;P++){const e=f[P],{height:t,width:n,top:r,right:o,bottom:a,left:c}=e.getBoundingClientRect();if("if-needed"===i&&x>=0&&C>=0&&S<=m&&k<=g&&x>=r&&S<=a&&C>=c&&k<=o)return N;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),E=parseInt(u.borderRightWidth,10),D=parseInt(u.borderBottomWidth,10);let 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,F="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,R="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)O="start"===s?$:"end"===s?$-m:"nearest"===s?dS(v,v+m,m,h,D,v+$,v+$+y,y):$-m/2,_="start"===l?j:"center"===l?j-g/2:"end"===l?j-g:dS(b,b+g,g,d,E,b+j,b+j+w,w),O=Math.max(0,O+v),_=Math.max(0,_+b);else{O="start"===s?$-r-h:"end"===s?$-a+D+T:"nearest"===s?dS(r,a,t,h,D+T,$,$+y,y):$-(r+t/2)+T/2,_="start"===l?j-c-d:"center"===l?j-(c+n/2)+I/2:"end"===l?j-o+E+I:dS(c,o,n,d,E+I,j,j+w,w);const{scrollLeft:i,scrollTop:u}=e;O=0===R?0:Math.max(0,Math.min(u+O/R,e.scrollHeight-t/R+T)),_=0===F?0:Math.max(0,Math.min(i+_/F,e.scrollWidth-n/F+I)),$+=u-O,j+=i-_}N.push({el:e,top:O,left:_})}return N},hS=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 gS={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>=gS.F1&&t<=gS.F12)return!1;switch(t){case gS.ALT:case gS.CAPS_LOCK:case gS.CONTEXT_MENU:case gS.CTRL:case gS.DOWN:case gS.END:case gS.ESC:case gS.HOME:case gS.INSERT:case gS.LEFT:case gS.MAC_FF_META:case gS.META:case gS.NUMLOCK:case gS.NUM_CENTER:case gS.PAGE_DOWN:case gS.PAGE_UP:case gS.PAUSE:case gS.PRINT_SCREEN:case gS.RIGHT:case gS.SHIFT:case gS.UP:case gS.WIN_KEY:case gS.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=gS.ZERO&&e<=gS.NINE)return!0;if(e>=gS.NUM_ZERO&&e<=gS.NUM_MULTIPLY)return!0;if(e>=gS.A&&e<=gS.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case gS.SPACE:case gS.QUESTION_MARK:case gS.NUM_PLUS:case gS.NUM_MINUS:case gS.NUM_PERIOD:case gS.NUM_DIVISION:case gS.SEMICOLON:case gS.DASH:case gS.EQUALS:case gS.COMMA:case gS.PERIOD:case gS.SLASH:case gS.APOSTROPHE:case gS.SINGLE_QUOTE:case gS.OPEN_SQUARE_BRACKET:case gS.BACKSLASH:case gS.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},mS=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,p=e.props,f=e.onClick,h=e.onNoticeClose,g=e.times,m=e.hovering,b=bm(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 k="".concat(n,"-notice");return z.createElement("div",Zh({},p,{ref:t,className:Qb(k,o,Mp({},"".concat(k,"-closable"),c)),style:r,onMouseEnter:function(e){var t;y(!0),null==p||null===(t=p.onMouseEnter)||void 0===t||t.call(p,e)},onMouseLeave:function(e){var t;y(!1),null==p||null===(t=p.onMouseLeave)||void 0===t||t.call(p,e)},onClick:f}),z.createElement("div",{className:"".concat(k,"-content")},l),c&&z.createElement("a",{tabIndex:0,className:"".concat(k,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==gS.ENTER||x()},onClick:function(e){e.preventDefault(),e.stopPropagation(),x()}},d))})),bS=H.createContext({}),vS=function(e){var t=e.children,n=e.classNames;return H.createElement(bS.Provider,{value:{classNames:n}},t)},yS=["className","style","classNames","styles"],wS=function(e){var t,n,r,o,a,i,s=e.configList,l=e.placement,c=e.prefixCls,u=e.className,d=e.style,p=e.motion,f=e.onAllNoticeRemoved,h=e.onNoticeClose,g=e.stack,m=z.useContext(bS).classNames,b=z.useRef({}),v=bm(z.useState(null),2),y=v[0],w=v[1],x=bm(z.useState([]),2),k=x[0],S=x[1],C=s.map((function(e){return{config:e,key:String(e.key)}})),E=bm((i={offset:8,threshold:3,gap:16},(n=g)&&"object"===Rp(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,$=O.threshold,j=O.gap,N=D&&(k.length>0||C.length<=$),P="function"==typeof p?p(l):p;return z.useEffect((function(){D&&k.length>1&&S((function(e){return e.filter((function(e){return C.some((function(t){var n=t.key;return e===n}))}))}))}),[k,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(dk,Zh({key:l,className:Qb(c,"".concat(c,"-").concat(l),null==m?void 0:m.list,u,(t={},Mp(t,"".concat(c,"-stack"),!!D),Mp(t,"".concat(c,"-stack-expanded"),N),t)),style:d,keys:C,motionAppear:!0},P,{onAllRemoved:function(){f(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),p=n,f=p.className,g=p.style,v=p.classNames,w=p.styles,x=Lp(p,yS),E=C.findIndex((function(e){return e.key===d})),O={};if(D){var $=C.length-1-(E>-1?E:a-1),P="top"===l||"bottom"===l?"-50%":"0";if($>0){var I,T,F;O.height=N?null===(I=b.current[d])||void 0===I?void 0:I.offsetHeight:null==y?void 0:y.offsetHeight;for(var R=0,A=0;A<$;A++){var M;R+=(null===(M=b.current[C[C.length-1-A].key])||void 0===M?void 0:M.offsetHeight)+j}var L=(N?R:$*_)*(l.startsWith("top")?1:-1),B=!N&&null!=y&&y.offsetWidth&&null!==(T=b.current[d])&&void 0!==T&&T.offsetWidth?((null==y?void 0:y.offsetWidth)-2*_*($<3?$:3))/(null===(F=b.current[d])||void 0===F?void 0:F.offsetWidth):1;O.transform="translate3d(".concat(P,", ").concat(L,"px, 0) scaleX(").concat(B,")")}else O.transform="translate3d(".concat(P,", 0, 0)")}return H.createElement("div",{ref:t,className:Qb("".concat(c,"-notice-wrapper"),r,null==v?void 0:v.wrapper),style:Mg(Mg(Mg({},o),O),null==w?void 0:w.wrapper),onMouseEnter:function(){return S((function(e){return e.includes(d)?e:[].concat(Rg(e),[d])}))},onMouseLeave:function(){return S((function(e){return e.filter((function(e){return e!==d}))}))}},H.createElement(mS,Zh({},x,{ref:function(e){E>-1?b.current[d]=e:delete b.current[d]},prefixCls:c,classNames:v,styles:w,className:Qb(f,null==m?void 0:m.notice),style:g,times:u,key:s,eventKey:s,onNoticeClose:h,hovering:D&&k.length>0})))}))},xS=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,p=bm(z.useState([]),2),f=p[0],h=p[1],g=function(e){var t,n=f.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=Rg(t),o=r.findIndex((function(t){return t.key===e.key})),a=Mg({},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=bm(z.useState({}),2),b=m[0],v=m[1];z.useEffect((function(){var e={};f.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)}),[f]);var y=function(e){v((function(t){var n=Mg({},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(wS,{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)})),kS=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],SS=function(){return document.body},CS=0;function ES(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?SS: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=Lp(e,kS),p=bm(z.useState(),2),f=p[0],h=p[1],g=z.useRef(),m=z.createElement(xS,{container:f,ref:g,prefixCls:o,motion:r,maxCount:a,className:i,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=bm(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(CS),CS+=1),y((function(e){return[].concat(Rg(e),[{type:"open",config:t}])}))},close:function(e){y((function(t){return[].concat(Rg(t),[{type:"close",key:e}])}))},destroy:function(){y((function(e){return[].concat(Rg(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 DS={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var OS=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:DS}))};const _S=z.forwardRef(OS),$S=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:p,paddingXS:f,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:b}=e,v=`${t}-notice`,y=new Wb("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),w=new Wb("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:f,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:p,fontSize:c},[`${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({},ox(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName: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"})}]},jS=gx("Message",(e=>{const t=dx(e,{height:150});return[$S(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var NS=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 PS={info:z.createElement(Zk,null),success:z.createElement(zk,null),error:z.createElement(Uk,null),warning:z.createElement(Yk,null),loading:z.createElement(_S,null)},IS=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return z.createElement("div",{className:Qb(`${t}-custom-content`,`${t}-${n}`)},r||PS[n],z.createElement("span",null,o))},TS=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=NS(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=z.useContext(Tw),l=t||s("message"),[,c]=jS(l);return z.createElement(mS,Object.assign({},i,{prefixCls:l,className:Qb(n,c,`${l}-notice-pure-panel`),eventKey:"pure",duration:null,content:z.createElement(IS,{prefixCls:l,type:r,icon:o},a)}))};function FS(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 RS=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 AS=3,MS=e=>{let{children:t,prefixCls:n}=e;const[,r]=jS(n);return z.createElement(vS,{classNames:{list:r,notice:r}},t)},LS=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(MS,{prefixCls:n,key:r},e)},BS=z.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=AS,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:p}=z.useContext(Tw),f=r||u("message"),h=z.createElement("span",{className:`${f}-close-x`},z.createElement(qk,{className:`${f}-close-icon`})),[g,m]=ES({prefixCls:f,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>Qb({[`${f}-rtl`]:s}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(f,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:LS});return z.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:f,message:p}))),m}));let zS=0;function HS(e){const t=z.useRef(null);Sy();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:p,onClose:f}=n,h=RS(n,["content","icon","type","key","className","style","onClose"]);let g=u;return null==g&&(zS+=1,g=`antd-message-${zS}`),FS((t=>(r(Object.assign(Object.assign({},h),{key:g,content:z.createElement(IS,{prefixCls:o,type:c,icon:l},s),placement:"top",className:Qb(c&&`${i}-${c}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),p),onClose:()=>{null==f||f(),t()}})),()=>{e(g)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let 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(BS,Object.assign({key:"message-holder"},e,{ref:t}))]}function WS(e){return HS(e)}function US(){US=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(P){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 j(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 p="suspendedStart",f="suspendedYield",h="executing",g="completed",m={};function b(){}function v(){}function y(){}var w={};c(w,i,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(N([])));k&&k!==n&&r.call(k,i)&&(w=k);var S=y.prototype=b.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Rp(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=p;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===p)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:f,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 $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(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(Rp(t)+" is not iterable")}return v.prototype=y,o(S,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,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(S),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(S),c(S,l,"Generator"),c(S,i,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach($),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return 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),$(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;$(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function GS(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 VS(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){GS(a,r,o,i,s,"next",e)}function s(e){GS(a,r,o,i,s,"throw",e)}i(void 0)}))}}var qS,XS=Mg({},sd),KS=XS.version,YS=XS.render,QS=XS.unmountComponentAtNode;try{Number((KS||"").split(".")[0])>=18&&(qS=XS.createRoot)}catch(Fte){}function JS(e){var t=XS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Rp(t)&&(t.usingClientEntryPoint=e)}var ZS="__rc_react_root__";function eC(e,t){qS?function(e,t){JS(!0);var n=t[ZS]||qS(t);JS(!1),n.render(e),t[ZS]=n}(e,t):function(e,t){YS(e,t)}(e,t)}function tC(e){return nC.apply(this,arguments)}function nC(){return(nC=VS(US().mark((function e(t){return US().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[ZS])||void 0===e||e.unmount(),delete t[ZS]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rC(e){QS(e)}function oC(e){return aC.apply(this,arguments)}function aC(){return(aC=VS(US().mark((function e(t){return US().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===qS){e.next=2;break}return e.abrupt("return",tC(t));case 2:rC(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const iC=()=>({height:0,opacity:0}),sC=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},lC=e=>({height:e?e.offsetHeight:0}),cC=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,uC=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:iC,onEnterStart:iC,onAppearActive:sC,onEnterActive:sC,onLeaveStart:lC,onLeaveActive:iC,onAppearEnd:cC,onEnterEnd:cC,onLeaveEnd:cC,motionDeadline:500}},dC=(e,t,n)=>void 0!==n?n:`${e}-${t}`,pC=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},fC=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(",")}}}}},hC=gx("Wave",(e=>[fC(e)]));function gC(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 mC="ant-wave-target";function bC(e){return Number.isNaN(e)?0:e}const vC=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,p]=z.useState(0),[f,h]=z.useState(0),[g,m]=z.useState(0),[b,v]=z.useState(!1),y={left:c,top:d,width:f,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 gC(t)?t:gC(n)?n:gC(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:bC(-parseFloat(r))),p(t?n.offsetTop:bC(-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=>bC(parseFloat(e)))))}if(a&&(y["--wave-color"]=a),z.useEffect((()=>{if(n){const e=py((()=>{w(),v(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{py.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(mC));return z.createElement(tk,{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;oC(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return z.createElement("div",{ref:o,className:Qb(t,{"wave-quick":x},n),style:y})}))},yC=(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),eC(z.createElement(vC,Object.assign({},t,{target:e})),o)};const wC=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=z.useContext(Tw),a=z.useRef(null),i=o("wave"),[,s]=hC(i),l=function(e,t,n){const{wave:r}=z.useContext(Tw),[,o,a]=Qw(),i=Jw((i=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${mC}`)||s,{showEffect:c}=r||{};(c||yC)(l,{className:t,token:o,component:n,event:i,hashId:a})})),s=z.useRef();return e=>{py.cancel(s.current),s.current=py((()=>{i(e)}))}}(a,Qb(i,s),r);if(H.useEffect((()=>{const e=a.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!pC(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 sS(t,{ref:Sv(t)?xv(t.ref,a):a})},xC=e=>{const t=H.useContext(Hw);return H.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},kC=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},SC=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"}}}},CC=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}}}},EC=gx("Space",(e=>{const t=dx(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[SC(t),CC(t),kC(t)]}),(()=>({})),{resetStyle:!1});var DC=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 OC=z.createContext(null),_C=(e,t)=>{const n=z.useContext(OC),r=z.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,i="vertical"===r?"-vertical-":"-";return Qb(`${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}},$C=e=>{let{children:t}=e;return z.createElement(OC.Provider,{value:null},t)},jC=e=>{var{children:t}=e,n=DC(e,["children"]);return z.createElement(OC.Provider,{value:n},t)},NC=e=>{const{getPrefixCls:t,direction:n}=z.useContext(Tw),{size:r,direction:o,block:a,prefixCls:i,className:s,rootClassName:l,children:c}=e,u=DC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=xC((e=>null!=r?r:e)),p=t("space-compact",i),[f,h]=EC(p),g=Qb(p,h,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:a,[`${p}-vertical`]:"vertical"===o},s,l),m=z.useContext(OC),b=bv(c),v=z.useMemo((()=>b.map(((e,t)=>{const n=e&&e.key||`${p}-item-${t}`;return z.createElement(jC,{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:f(z.createElement("div",Object.assign({className:g},u),v))};var PC=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 IC=z.createContext(void 0),TC=e=>{const{getPrefixCls:t,direction:n}=z.useContext(Tw),{prefixCls:r,size:o,className:a}=e,i=PC(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Qw();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=Qb(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},a,l);return z.createElement(IC.Provider,{value:o},z.createElement("div",Object.assign({},i,{className:u})))},FC=/^[\u4e00-\u9fa5]{2}$/,RC=FC.test.bind(FC);function AC(e){return"danger"===e?{danger:!0}:{type:e}}function MC(e){return"string"==typeof e}function LC(e){return"text"===e||"link"===e}function BC(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&&MC(e.type)&&RC(e.props.children)?sS(e,{children:e.props.children.split("").join(n)}):MC(e)?RC(e)?H.createElement("span",null,e.split("").join(n)):H.createElement("span",null,e):iS(e)?H.createElement("span",null,e):e}(e,t)))}const zC=z.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,i=Qb(`${a}-icon`,n);return H.createElement("span",{ref:t,className:i,style:r},o)})),HC=z.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const i=Qb(`${n}-loading-icon`,r);return H.createElement(zC,{prefixCls:n,className:i,style:o,ref:t},H.createElement(_S,{className:a}))})),WC=()=>({width:0,opacity:0,transform:"scale(0)"}),UC=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),GC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a}=e,i=!!n;return r?H.createElement(HC,{prefixCls:t,className:o,style:a}):H.createElement(tk,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:WC,onAppearActive:UC,onEnterStart:WC,onEnterActive:UC,onLeaveStart:UC,onLeaveActive:WC},((e,n)=>{let{className:r,style:i}=e;return H.createElement(HC,{prefixCls:t,className:o,style:Object.assign(Object.assign({},a),i),ref:n,iconClassName:r})}))},VC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),qC=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}},VC(`${t}-primary`,o),VC(`${t}-danger`,a)]}},XC=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({},lx(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:'""'}}}}}}},KC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),YC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),QC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),JC=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),ZC=(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"},KC(e,Object.assign({backgroundColor:t},i),Object.assign({backgroundColor:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),eE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},JC(e))}),tE=e=>Object.assign({},eE(e)),nE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),rE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tE(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),KC(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ZC(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},KC(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ZC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),eE(e))}),oE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},tE(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),KC(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),ZC(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},KC(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),ZC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),eE(e))}),aE=e=>Object.assign(Object.assign({},rE(e)),{borderStyle:"dashed"}),iE=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},KC(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),nE(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},KC(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),nE(e))}),sE=e=>Object.assign(Object.assign(Object.assign({},KC(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),nE(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},nE(e)),KC(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),lE=e=>{const{componentCls:t}=e;return{[`${t}-default`]:rE(e),[`${t}-primary`]:oE(e),[`${t}-dashed`]:aE(e),[`${t}-link`]:iE(e),[`${t}-text`]:sE(e),[`${t}-ghost`]:ZC(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},cE=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}`]:YC(e)},{[`${n}${n}-round${t}`]:QC(e)}]},uE=e=>cE(dx(e,{fontSize:e.contentFontSize})),dE=e=>{const t=dx(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return cE(t,`${e.componentCls}-sm`)},pE=e=>{const t=dx(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return cE(t,`${e.componentCls}-lg`)},fE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},hE=e=>{const{paddingInline:t,onlyIconSize:n}=e;return dx(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:n})},gE=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}),mE=gx("Button",(e=>{const t=hE(e);return[XC(t),dE(t),uE(t),pE(t),fE(t),lE(t),qC(t)]}),gE);function bE(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 vE(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 yE(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({},bE(e,r,t)),vE(n,r,t))}}function wE(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function xE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},wE(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 kE=mx(["Button","compact"],(e=>{const t=hE(e);return[yE(t),xE(t)]}),gE);var SE=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 CE=(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:p,rootClassName:f,children:h,icon:g,ghost:m=!1,block:b=!1,htmlType:v="button",classNames:y,style:w={}}=e,x=SE(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:k,autoInsertSpaceInButton:S,direction:C,button:E}=z.useContext(Tw),D=k("btn",a),[O,_]=mE(D),$=z.useContext(Lw),j=null!=d?d:$,N=z.useContext(IC),P=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(P.loading),[F,R]=z.useState(!1),A=xv(t,z.createRef()),M=1===z.Children.count(h)&&!g&&!LC(i);z.useEffect((()=>{let e=null;return P.delay>0?e=setTimeout((()=>{e=null,T(!0)}),P.delay):T(P.loading),function(){e&&(clearTimeout(e),e=null)}}),[P]),z.useEffect((()=>{if(!A||!A.current||!1===S)return;const e=A.current.textContent;M&&RC(e)?F||R(!0):F&&R(!1)}),[A]);const L=t=>{const{onClick:n}=e;I||j?t.preventDefault():null==n||n(t)},B=!1!==S,{compactSize:W,compactItemClassnames:U}=_C(D,C),G=xC((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:W)&&void 0!==t?t:N)&&void 0!==n?n:e})),V=G&&{large:"lg",small:"sm",middle:void 0}[G]||"",q=I?"loading":g,X=iy(x,["navigate"]),K=Qb(D,_,{[`${D}-${l}`]:"default"!==l&&l,[`${D}-${i}`]:i,[`${D}-${V}`]:V,[`${D}-icon-only`]:!h&&0!==h&&!!q,[`${D}-background-ghost`]:m&&!LC(i),[`${D}-loading`]:I,[`${D}-two-chinese-chars`]:F&&B&&!I,[`${D}-block`]:b,[`${D}-dangerous`]:!!s,[`${D}-rtl`]:"rtl"===C},U,p,f,null==E?void 0:E.className),Y=Object.assign(Object.assign({},null==E?void 0:E.style),w),Q=Qb(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(zC,{prefixCls:D,className:Q,style:J},g):H.createElement(GC,{existIcon:!!g,prefixCls:D,loading:!!I}),ee=h||0===h?BC(h,M&&B):null;if(void 0!==X.href)return O(H.createElement("a",Object.assign({},X,{className:Qb(K,{[`${D}-disabled`]:j}),style:Y,onClick:L,ref:A}),Z,ee));let te=H.createElement("button",Object.assign({},x,{type:v,className:K,style:Y,onClick:L,disabled:j,ref:A}),Z,ee,U&&H.createElement(kE,{key:"compact",prefixCls:D}));return LC(i)||(te=H.createElement(wC,{component:"Button",disabled:!!I},te)),O(te)},EE=z.forwardRef(CE);EE.Group=TC,EE.__ANT_BUTTON=!0;const DE=EE;function OE(e){return!(!e||!e.then)}const _E=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),p=z.useRef(null),[f,h]=Zw(!1),g=function(){null==a||a.apply(void 0,arguments)};z.useEffect((()=>{let e=null;return i&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return z.createElement(DE,Object.assign({},AC(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!OE(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=>{OE(e)&&(h(!0),e.then((function(){h(!1,!0),g.apply(void 0,arguments),d.current=!1}),(e=>{if(h(!1,!0),d.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:f,prefixCls:r},o,{ref:p}),n)},$E=H.createContext({}),{Provider:jE}=$E,NE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:a,close:i,onCancel:s,onConfirm:l}=z.useContext($E);return o?H.createElement(_E,{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},PE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:a,okType:i,onConfirm:s,onOk:l}=z.useContext($E);return H.createElement(_E,{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 IE,TE=z.createContext(null),FE=[];function RE(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===IE){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),IE=o-a}return IE}():n}var AE="rc-util-locker-".concat(Date.now()),ME=0;function LE(e){var t=!!e,n=bm(z.useState((function(){return ME+=1,"".concat(AE,"_").concat(ME)})),1)[0];Pm((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:RE(n),height:RE(r)}}(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;hm("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else fm(n);return function(){fm(n)}}),[t,n])}var BE=!1;var zE=function(e){return!1!==e&&(nm()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},HE=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=bm(z.useState(n),2),c=l[0],u=l[1],d=c||n;z.useEffect((function(){(i||n)&&u(n)}),[n,i]);var p=bm(z.useState((function(){return zE(o)})),2),f=p[0],h=p[1];z.useEffect((function(){var e=zE(o);h(null!=e?e:null)}));var g=function(e,t){var n=bm(z.useState((function(){return nm()?document.createElement("div"):null})),1)[0],r=z.useRef(!1),o=z.useContext(TE),a=bm(z.useState(FE),2),i=a[0],s=a[1],l=o||(r.current?void 0:function(e){s((function(t){return[e].concat(Rg(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 Pm((function(){return e?o?o(c):c():u(),u}),[e]),Pm((function(){i.length&&(i.forEach((function(e){return e()})),s(FE))}),[i]),[n,l]}(d&&!f),m=bm(g,2),b=m[0],v=m[1],y=null!=f?f:b;LE(r&&n&&nm()&&(y===b||y===document.body));var w=null;s&&Sv(s)&&t&&(w=s.ref);var x=kv(w,t);if(!d||!nm()||void 0===f)return null;var k,S=!1===y||("boolean"==typeof k&&(BE=k),BE),C=s;return t&&(C=z.cloneElement(s,{ref:x})),z.createElement(TE.Provider,{value:v},S?C:ad.createPortal(C,y))})),WE=z.createContext({});var UE=0,GE=Mg({},W).useId;const VE=GE?function(e){var t=GE();return e||t}:function(e){var t=bm(z.useState("ssr-id"),2),n=t[0],r=t[1];return z.useEffect((function(){var e=UE;UE+=1,r("rc_unique_".concat(e))}),[]),e||n};function qE(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function XE(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 KE=z.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var YE={width:0,height:0,overflow:"hidden",outline:"none"},QE=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,p=e.bodyStyle,f=e.bodyProps,h=e.modalRender,g=e.onMouseDown,m=e.onMouseUp,b=e.holderRef,v=e.visible,y=e.forceRender,w=e.width,x=e.height,k=e.classNames,S=e.styles,C=kv(b,H.useContext(WE).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={};void 0!==w&&(j.width=w),void 0!==x&&(j.height=x),s&&(O=H.createElement("div",{className:Qb("".concat(n,"-footer"),null==k?void 0:k.footer),style:Mg({},null==S?void 0:S.footer)},s)),a&&(_=H.createElement("div",{className:Qb("".concat(n,"-header"),null==k?void 0:k.header),style:Mg({},null==S?void 0:S.header)},H.createElement("div",{className:"".concat(n,"-title"),id:i},a))),l&&($=H.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||H.createElement("span",{className:"".concat(n,"-close-x")})));var N=H.createElement("div",{className:Qb("".concat(n,"-content"),null==k?void 0:k.content),style:null==S?void 0:S.content},$,_,H.createElement("div",Zh({className:Qb("".concat(n,"-body"),null==k?void 0:k.body),style:Mg(Mg({},p),null==S?void 0:S.body)},f),d),O);return H.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:C,style:Mg(Mg({},o),j),className:Qb(n,r),onMouseDown:g,onMouseUp:m},H.createElement("div",{tabIndex:0,ref:E,style:YE,"aria-hidden":"true"}),H.createElement(KE,{shouldUpdate:v||y},h?h(N):N),H.createElement("div",{tabIndex:0,ref:D,style:YE,"aria-hidden":"true"}))})),JE=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,p=e.mousePosition,f=z.useRef(),h=bm(z.useState(),2),g=h[0],m=h[1],b={};function v(){var e,t,n,r,o,a=(e=f.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=XE(o),n.top+=XE(o,!0),n);m(p?"".concat(p.x-a.left,"px ").concat(p.y-a.top,"px"):"")}return g&&(b.transformOrigin=g),z.createElement(tk,{visible:i,onVisibleChanged:d,onAppearPrepare:v,onEnterPrepare:v,forceRender:s,motionName:c,removeOnLeave:l,ref:f},(function(i,s){var l=i.className,c=i.style;return z.createElement(QE,Zh({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:s,style:Mg(Mg(Mg({},c),o),b),className:Qb(a,l)}))}))}));function ZE(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,a=e.motionName,i=e.className;return z.createElement(tk,{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",Zh({ref:r,style:Mg(Mg({},s),n),className:Qb("".concat(t,"-mask"),a,i)},o))}))}function eD(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,p=e.wrapProps,f=e.onClose,h=e.afterOpenChange,g=e.afterClose,m=e.transitionName,b=e.animation,v=e.closable,y=void 0===v||v,w=e.mask,x=void 0===w||w,k=e.maskTransitionName,S=e.maskAnimation,C=e.maskClosable,E=void 0===C||C,D=e.maskStyle,O=e.maskProps,_=e.rootClassName,$=e.classNames,j=e.styles,N=z.useRef(),P=z.useRef(),I=z.useRef(),T=bm(z.useState(a),2),F=T[0],R=T[1],A=VE();function M(e){null==f||f(e)}var L=z.useRef(!1),B=z.useRef(),H=null;return E&&(H=function(e){L.current?L.current=!1:P.current===e.target&&M(e)}),z.useEffect((function(){a&&(R(!0),rm(P.current,document.activeElement)||(N.current=document.activeElement))}),[a]),z.useEffect((function(){return function(){clearTimeout(B.current)}}),[]),z.createElement("div",Zh({className:Qb("".concat(n,"-root"),_)},oS(e,{data:!0})),z.createElement(ZE,{prefixCls:n,visible:x&&a,motionName:qE(n,k,S),style:Mg(Mg({zIndex:r},D),null==j?void 0:j.mask),maskProps:O,className:null==$?void 0:$.mask}),z.createElement("div",Zh({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===gS.ESC)return e.stopPropagation(),void M(e);a&&e.keyCode===gS.TAB&&I.current.changeActive(!e.shiftKey)},className:Qb("".concat(n,"-wrap"),d,null==$?void 0:$.wrapper),ref:P,onClick:H,style:Mg(Mg(Mg({zIndex:r},u),null==j?void 0:j.wrapper),{},{display:F?null:"none"})},p),z.createElement(JE,Zh({},e,{onMouseDown:function(){clearTimeout(B.current),L.current=!0},onMouseUp:function(){B.current=setTimeout((function(){L.current=!1}))},ref:I,closable:y,ariaId:A,prefixCls:n,visible:a&&F,onClose:M,onVisibleChanged:function(e){if(e)rm(P.current,document.activeElement)||null===(t=I.current)||void 0===t||t.focus();else{if(R(!1),x&&N.current&&c){try{N.current.focus({preventScroll:!0})}catch(Fte){}N.current=null}F&&(null==g||g())}var t;null==h||h(e)},motionName:qE(n,m,b)}))))}JE.displayName="Content";var tD=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=bm(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(WE.Provider,{value:d},z.createElement(HE,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},z.createElement(eD,Zh({},e,{destroyOnClose:a,afterClose:function(){null==i||i(),u(!1)}})))):null};function nD(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H.createElement(qk,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]}tD.displayName="Dialog";const rD=H.createContext(void 0);var oD="RC_FORM_INTERNAL_HOOKS",aD=function(){Gg(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},iD=z.createContext({getFieldValue:aD,getFieldsValue:aD,getFieldError:aD,getFieldWarning:aD,getFieldsError:aD,isFieldsTouched:aD,isFieldTouched:aD,isFieldValidating:aD,isFieldsValidating:aD,resetFields:aD,setFields:aD,setFieldValue:aD,setFieldsValue:aD,validateFields:aD,submit:aD,getInternalHooks:function(){return aD(),{dispatch:aD,initEntityValue:aD,registerField:aD,useSubscribe:aD,setInitialValues:aD,destroyForm:aD,setCallbacks:aD,registerWatch:aD,getFields:aD,setValidateMessages:aD,setPreserve:aD,getInitialValue:aD}}}),sD=z.createContext(null);function lD(e){return null==e?[]:Array.isArray(e)?e:[e]}function cD(){return cD=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},cD.apply(this,arguments)}function uD(e){return(uD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dD(e,t){return(dD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pD(e,t,n){return pD=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(Fte){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&&dD(o,n.prototype),o},pD.apply(null,arguments)}function fD(e){var t="function"==typeof Map?new Map:void 0;return fD=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 pD(e,arguments,uD(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),dD(r,e)},fD(e)}var hD=/%[sdj%]/g,gD=function(){};function mD(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 bD(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(hD,(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 vD(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 yD(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 wD=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,dD(t,n),r}(fD(Error));function xD(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);yD(i,n,(function(e){return r(e),e.length?a(new wD(e,mD(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 wD(u,mD(u))):t(o)};s.length||(r(u),t(o)),s.forEach((function(t){var r=e[t];-1!==i.indexOf(t)?yD(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 kD(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 SD(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]=cD({},e[n],r):e[n]=r}return e}var CD,ED=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!vD(t,a||e.type)||r.push(bD(o.messages.required,e.fullField))},DD=/^(([^<>()\[\]\\.,;:\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,}))$/,OD=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,_D={integer:function(e){return _D.number(e)&&parseInt(e,10)===e},float:function(e){return _D.number(e)&&!_D.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Fte){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&&!_D.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(DD)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(CD)return CD;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 CD=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(OD)}},$D="enum",jD={required:ED,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(bD(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)ED(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?_D[a](t)||r.push(bD(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(bD(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,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&r.push(bD(o.messages[c].len,e.fullField,e.len)):i&&!s&&l<e.min?r.push(bD(o.messages[c].min,e.fullField,e.min)):s&&!i&&l>e.max?r.push(bD(o.messages[c].max,e.fullField,e.max)):i&&s&&(l<e.min||l>e.max)&&r.push(bD(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[$D]=Array.isArray(e[$D])?e[$D]:[],-1===e[$D].indexOf(t)&&r.push(bD(o.messages[$D],e.fullField,e[$D].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(bD(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(bD(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},ND=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vD(t,a)&&!e.required)return n();jD.required(e,t,r,i,o,a),vD(t,a)||jD.type(e,t,r,i,o)}n(i)},PD={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(vD(t,"string")&&!e.required)return n();jD.required(e,t,r,a,o,"string"),vD(t,"string")||(jD.type(e,t,r,a,o),jD.range(e,t,r,a,o),jD.pattern(e,t,r,a,o),!0===e.whitespace&&jD.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(vD(t)&&!e.required)return n();jD.required(e,t,r,a,o),void 0!==t&&jD.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),vD(t)&&!e.required)return n();jD.required(e,t,r,a,o),void 0!==t&&(jD.type(e,t,r,a,o),jD.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(vD(t)&&!e.required)return n();jD.required(e,t,r,a,o),void 0!==t&&jD.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(vD(t)&&!e.required)return n();jD.required(e,t,r,a,o),vD(t)||jD.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(vD(t)&&!e.required)return n();jD.required(e,t,r,a,o),void 0!==t&&(jD.type(e,t,r,a,o),jD.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(vD(t)&&!e.required)return n();jD.required(e,t,r,a,o),void 0!==t&&(jD.type(e,t,r,a,o),jD.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();jD.required(e,t,r,a,o,"array"),null!=t&&(jD.type(e,t,r,a,o),jD.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(vD(t)&&!e.required)return n();jD.required(e,t,r,a,o),void 0!==t&&jD.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(vD(t)&&!e.required)return n();jD.required(e,t,r,a,o),void 0!==t&&jD.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(vD(t,"string")&&!e.required)return n();jD.required(e,t,r,a,o),vD(t,"string")||jD.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(vD(t,"date")&&!e.required)return n();var i;if(jD.required(e,t,r,a,o),!vD(t,"date"))i=t instanceof Date?t:new Date(t),jD.type(e,i,r,a,o),i&&jD.range(e,i.getTime(),r,a,o)}n(a)},url:ND,hex:ND,email:ND,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;jD.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(vD(t)&&!e.required)return n();jD.required(e,t,r,a,o)}n(a)}};function ID(){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 TD=ID(),FD=function(){function e(e){this.rules=null,this._messages=TD,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=SD(ID(),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===TD&&(l=ID()),SD(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=cD({},a)),r=a[e]=i.transform(r)),(i="function"==typeof i?{validator:i}:cD({},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 xD(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 cD({},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(kD(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(kD(o,a)):i.error&&(d=[i.error(o,bD(i.messages.required,o.field))]),n(d);var p={};o.defaultField&&Object.keys(t.value).map((function(e){p[e]=o.defaultField})),p=cD({},p,t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(l.bind(null,e))}));var h=new e(f);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=mD(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&&!PD.hasOwnProperty(e.type))throw new Error(bD("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]?PD.required:PD[this.getType(e)]||void 0},e}();FD.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");PD[e]=t},FD.warning=gD,FD.messages=TD,FD.validators=PD;var RD="'${name}' is not a valid ${type}",AD={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:RD,method:RD,array:RD,object:RD,number:RD,date:RD,boolean:RD,integer:RD,float:RD,regexp:RD,email:RD,url:RD,hex:RD},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}"}},MD=FD;function LD(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var BD="CODE_LOGIC_ERROR";function zD(e,t,n,r,o){return HD.apply(this,arguments)}function HD(){return HD=VS(US().mark((function e(t,n,r,o,a){var i,s,l,c,u,d,p,f,h;return US().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(i=Mg({},r)).ruleIndex,MD.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(BD)}}),l=null,i&&"array"===i.type&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new MD(Mp({},t,[i])),u=wy(AD,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(Mp({},t,n),Mg({},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===BD?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 zD("".concat(t,".").concat(n),e,l,o,a)})));case 21:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat(Rg(e),Rg(t))}),[]));case 23:return f=Mg(Mg({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),h=d.map((function(e){return"string"==typeof e?LD(e,f):e})),e.abrupt("return",h);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),HD.apply(this,arguments)}function WD(e,t,n,r,o,a){var i,s=e.join("."),l=n.map((function(e,t){var n=e.validator,r=Mg(Mg({},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(){Gg(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));Gg(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=VS(US().mark((function e(n,o){var i,c,u;return US().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,zD(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 zD(s,t,e,r,a).then((function(t){return{errors:t,rule:e}}))}));i=(o?function(e){return GD.apply(this,arguments)}(c):function(e){return UD.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return i.catch((function(e){return e})),i}function UD(){return(UD=VS(US().mark((function e(t){return US().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,Rg(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function GD(){return(GD=VS(US().mark((function e(t){var n;return US().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 VD(e){return lD(e)}function qD(e,t){var n={};return t.forEach((function(t){var r=gy(e,t);n=by(n,t,r)})),n}function XD(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return KD(t,e,n)}))}function KD(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 YD(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Rp(t.target)&&e in t.target?t.target[e]:t}function QD(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(Rg(e.slice(0,n)),[o],Rg(e.slice(n,t)),Rg(e.slice(t+1,r))):a<0?[].concat(Rg(e.slice(0,t)),Rg(e.slice(t+1,n+1)),[o],Rg(e.slice(n+1,r))):e}var JD=["name"],ZD=[];function eO(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var tO=function(e){Yv(n,z.Component);var t=ey(n);function n(e){var r;(mf(this,n),Mp(Zv(r=t.call(this,e)),"state",{resetCount:0}),Mp(Zv(r),"cancelRegisterFunc",null),Mp(Zv(r),"mounted",!1),Mp(Zv(r),"touched",!1),Mp(Zv(r),"dirty",!1),Mp(Zv(r),"validatePromise",void 0),Mp(Zv(r),"prevValidating",void 0),Mp(Zv(r),"errors",ZD),Mp(Zv(r),"warnings",ZD),Mp(Zv(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,VD(o)),r.cancelRegisterFunc=null})),Mp(Zv(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Rg(void 0===n?[]:n),Rg(t)):[]})),Mp(Zv(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}))})),Mp(Zv(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Mp(Zv(r),"metaCache",null),Mp(Zv(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Mg(Mg({},r.getMeta()),{},{destroy:e});Vg(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Mp(Zv(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),p=r.getValue(c),f=t&&XD(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==p&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ZD,r.warnings=ZD,r.triggerMetaEvent()),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ZD,r.warnings=ZD,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(f)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||ZD),"warnings"in h&&(r.warnings=h.warnings||ZD),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&XD(t,u,!0))return void r.reRender();if(a&&!u.length&&eO(a,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(VD).some((function(e){return XD(n.relatedFields,e)})))return void r.reRender();break;default:if(f||(!s.length||u.length||a)&&eO(a,e,c,d,p,n))return void r.reRender()}!0===a&&r.reRender()})),Mp(Zv(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(VS(US().mark((function o(){var i,s,c,u,d,p,f;return US().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,p=r.getRules(),a&&(p=p.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||lD(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(f=WD(t,n,p,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ZD;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?ZD:r;t?o.push.apply(o,Rg(a)):n.push.apply(n,Rg(a))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",f);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=ZD,r.warnings=ZD,r.triggerMetaEvent(),r.reRender()),l})),Mp(Zv(r),"isFieldValidating",(function(){return!!r.validatePromise})),Mp(Zv(r),"isFieldTouched",(function(){return r.touched})),Mp(Zv(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(oD).getInitialValue)(r.getNamePath())})),Mp(Zv(r),"getErrors",(function(){return r.errors})),Mp(Zv(r),"getWarnings",(function(){return r.warnings})),Mp(Zv(r),"isListField",(function(){return r.props.isListField})),Mp(Zv(r),"isList",(function(){return r.props.isList})),Mp(Zv(r),"isPreserve",(function(){return r.props.preserve})),Mp(Zv(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}})),Mp(Zv(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Mg(Mg({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=bv(e);return 1===n.length&&z.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Mp(Zv(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return gy(e||t(!0),n)})),Mp(Zv(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(),p=c.getInternalHooks,f=c.getFieldsValue,h=p(oD).dispatch,g=r.getValue(),m=l||function(e){return Mp({},s,e)},b=e[n],v=Mg(Mg({},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):YD.apply(void 0,[s].concat(n)),i&&(e=i(e,g,f(!0))),h({type:"updateValue",namePath:d,value:e}),b&&b.apply(void 0,n)},lD(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)(oD).initEntityValue)(Zv(r));return r}return vf(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)(oD).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)):(Gg(!o,"`children` of Field is not validate ReactElement."),e=o),z.createElement(z.Fragment,{key:t},e)}}]),n}();function nO(e){var t=e.name,n=Lp(e,JD),r=z.useContext(iD),o=z.useContext(sD),a=void 0!==t?VD(t):void 0,i="keep";return n.isListField||(i="_".concat((a||[]).join("_"))),z.createElement(tO,Zh({key:i,name:a,isListField:!!o},n,{fieldContext:r}))}function rO(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=z.useContext(iD),l=z.useContext(sD),c=z.useRef({keys:[],id:0}).current,u=z.useMemo((function(){var e=VD(s.prefixName)||[];return[].concat(Rg(e),Rg(VD(t)))}),[s.prefixName,t]),d=z.useMemo((function(){return Mg(Mg({},s),{},{prefixName:u})}),[s,u]),p=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 Gg(!1,"Form.List only accepts function as children."),null;return z.createElement(sD.Provider,{value:p},z.createElement(iD.Provider,{value:d},z.createElement(nO,{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(Rg(c.keys.slice(0,t)),[c.id],Rg(c.keys.slice(t))),a([].concat(Rg(n.slice(0,t)),[e],Rg(n.slice(t))))):(c.keys=[].concat(Rg(c.keys),[c.id]),a([].concat(Rg(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=QD(c.keys,e,t),a(QD(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[]),r(p.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)}))))}Mp(tO,"contextType",iD),Mp(tO,"defaultProps",{trigger:"onChange",valuePropName:"value"});var oO="__@field_split__";function aO(e){return e.map((function(e){return"".concat(Rp(e),":").concat(e)})).join(oO)}var iO=function(){function e(){mf(this,e),Mp(this,"kvs",new Map)}return vf(e,[{key:"set",value:function(e,t){this.kvs.set(aO(e),t)}},{key:"get",value:function(e){return this.kvs.get(aO(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(aO(e))}},{key:"map",value:function(e){return Rg(this.kvs.entries()).map((function(t){var n=bm(t,2),r=n[0],o=n[1],a=r.split(oO);return e({key:a.map((function(e){var t=bm(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),sO=["name"],lO=vf((function e(t){var n=this;mf(this,e),Mp(this,"formHooked",!1),Mp(this,"forceRootUpdate",void 0),Mp(this,"subscribable",!0),Mp(this,"store",{}),Mp(this,"fieldEntities",[]),Mp(this,"initialValues",{}),Mp(this,"callbacks",{}),Mp(this,"validateMessages",null),Mp(this,"preserve",null),Mp(this,"lastValidatePromise",null),Mp(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}})),Mp(this,"getInternalHooks",(function(e){return e===oD?(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}):(Gg(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Mp(this,"useSubscribe",(function(e){n.subscribable=e})),Mp(this,"prevWithoutPreserves",null),Mp(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=wy(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=by(o,n,gy(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Mp(this,"destroyForm",(function(){var e=new iO;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Mp(this,"getInitialValue",(function(e){var t=gy(n.initialValues,e);return e.length?wy(t):t})),Mp(this,"setCallbacks",(function(e){n.callbacks=e})),Mp(this,"setValidateMessages",(function(e){n.validateMessages=e})),Mp(this,"setPreserve",(function(e){n.preserve=e})),Mp(this,"watchList",[]),Mp(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Mp(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)}))}})),Mp(this,"timeoutId",null),Mp(this,"warningUnhooked",(function(){})),Mp(this,"updateStore",(function(e){n.store=e})),Mp(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Mp(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new iO;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Mp(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=VD(e);return t.get(n)||{INVALIDATE_NAME_PATH:VD(e)}}))})),Mp(this,"getFieldsValue",(function(e,t){var r,o,a;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Rp(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)})),qD(n.store,s.map(VD))})),Mp(this,"getFieldValue",(function(e){n.warningUnhooked();var t=VD(e);return gy(n.store,t)})),Mp(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:VD(e[n]),errors:[],warnings:[]}}))})),Mp(this,"getFieldError",(function(e){n.warningUnhooked();var t=VD(e);return n.getFieldsError([t])[0].errors})),Mp(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=VD(e);return n.getFieldsError([t])[0].warnings})),Mp(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(VD),s=!1):(o=null,s=a):(o=a.map(VD),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 iO;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(Rg(t),[e])}))}))}));var d=function(e){return e.some(c)},p=u.map((function(e){return e.value}));return s?p.every(d):p.some(d)})),Mp(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Mp(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(VD);return t.some((function(e){var t=e.getNamePath();return XD(r,t)&&e.isFieldValidating()}))})),Mp(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Mp(this,"resetWithFieldInitialValue",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new iO,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,Rg(Rg(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))Gg(!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)Gg(!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(by(n.store,o,Rg(a)[0].value))}}}}))})),Mp(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(wy(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(VD);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(by(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Mp(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=Lp(e,sO),i=VD(o);r.push(i),"value"in a&&n.updateStore(by(n.store,i,a.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)})),Mp(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Mg(Mg({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Mp(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===gy(n.store,r)&&n.updateStore(by(n.store,r,t))}})),Mp(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Mp(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!KD(e.getNamePath(),t)}))){var s=n.store;n.updateStore(by(s,t,i,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Mp(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})}})),Mp(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Mg(Mg({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Mp(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(Rg(r))}),r})),Mp(this,"updateValue",(function(e,t){var r=VD(e),o=n.store;n.updateStore(by(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(qD(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Rg(a)))})),Mp(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=wy(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Mp(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Mp(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new iO;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=VD(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})),Mp(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new iO;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 XD(e,n)}));i.length&&r(i,o)}})),Mp(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(VD):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(a||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!a||XD(i,t,d)){var r=e.validateRules(Mg({validateMessages:Mg(Mg({},AD),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,Rg(n)):r.push.apply(r,Rg(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var f=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=f,f.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=f.then((function(){return n.lastValidatePromise===f?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!==f})}));h.catch((function(e){return e}));var g=i.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(g),h})),Mp(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function cO(e){var t=z.useRef(),n=bm(z.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new lO((function(){n({})}));t.current=r.getForm()}return[t.current]}var uO=z.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),dO=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,a=z.useContext(uO),i=z.useRef({});return z.createElement(uO.Provider,{value:Mg(Mg({},a),{},{validateMessages:Mg(Mg({},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=Mg(Mg({},i.current),{},Mp({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=Mg({},i.current);delete t[e],i.current=t,a.unregisterForm(e)}})},o)},pO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],fO=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,p=void 0===d?"onChange":d,f=e.onValuesChange,h=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,b=Lp(e,pO),v=z.useContext(uO),y=bm(cO(a),1)[0],w=y.getInternalHooks(oD),x=w.useSubscribe,k=w.setInitialValues,S=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(Mg(Mg({},v.validateMessages),u)),S({onValuesChange:f,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);k(r,!_.current),_.current||(_.current=!0),z.useEffect((function(){return D}),[]);var $="function"==typeof s;$?O=s(y.getFieldsValue(!0),y):O=s;x(!$);var j=z.useRef();z.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==Rp(e)||"object"!==Rp(t))return!1;var n=Object.keys(e),r=Object.keys(t);return Rg(new Set([].concat(n,r))).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(j.current||[],o||[])||y.setFields(o||[]),j.current=o}),[o,y]);var N=z.useMemo((function(){return Mg(Mg({},y),{},{validateTrigger:p})}),[y,p]),P=z.createElement(sD.Provider,{value:null},z.createElement(iD.Provider,{value:N},O));return!1===c?P:z.createElement(c,Zh({},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)}}),P)};function hO(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}function gO(){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=bm(z.useState(),2),u=c[0],d=c[1],p=z.useMemo((function(){return hO(u)}),[u]),f=z.useRef(p);f.current=p;var h=z.useContext(iD),g=l||h,m=g&&g._init,b=VD(o),v=z.useRef(b);return v.current=b,z.useEffect((function(){if(m){var e=g.getFieldsValue,t=(0,(0,g.getInternalHooks)(oD).registerWatch)((function(e,t){var n=gy(s.preserve?t:e,v.current),r=hO(n);f.current!==r&&(f.current=r,d(n))})),n=gy(s.preserve?e(!0):e(),v.current);return u!==n&&d(n),t}}),[m]),u}var mO=z.forwardRef(fO);mO.FormProvider=dO,mO.Field=nO,mO.List=rO,mO.useForm=cO,mO.useWatch=gO;const bO=z.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),vO=z.createContext(null),yO=e=>{const t=iy(e,["prefixCls"]);return z.createElement(dO,Object.assign({},t))},wO=z.createContext({prefixCls:""}),xO=z.createContext({}),kO=e=>{let{children:t,status:n,override:r}=e;const o=z.useContext(xO),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(xO.Provider,{value:a},t)};function SO(){}const CO=z.createContext({add:SO,remove:SO});function EO(e){const t=z.useContext(CO),n=z.useRef();return Jw((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const DO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=z.useContext($E);return H.createElement(DE,Object.assign({onClick:n},e),t)},OO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=z.useContext($E);return H.createElement(DE,Object.assign({},AC(n),{loading:e,onClick:o},t),r)};function _O(e,t){return H.createElement("span",{className:`${e}-close-x`},t||H.createElement(qk,{className:`${e}-close-icon`}))}const $O=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:a,onCancel:i,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Ty("Modal",Py()),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},p=H.useMemo((()=>d),Rg(Object.values(d)));let f;return"function"==typeof c||void 0===c?(f=H.createElement(H.Fragment,null,H.createElement(DO,null),H.createElement(OO,null)),"function"==typeof c&&(f=c(f,{OkBtn:OO,CancelBtn:DO})),f=H.createElement(jE,{value:p},f)):f=c,H.createElement(Mw,{disabled:!1},f)},jO=e=>({animationDuration:e,animationFillMode:"both"}),NO=e=>({animationDuration:e,animationFillMode:"both"}),PO=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({},jO(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},NO(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"}}},IO=new Wb("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),TO=new Wb("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),FO=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[PO(r,IO,TO,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},RO=new Wb("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),AO=new Wb("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),MO=new Wb("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),LO=new Wb("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),BO=new Wb("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zO=new Wb("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),HO={"move-up":{inKeyframes:new Wb("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 Wb("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:RO,outKeyframes:AO},"move-left":{inKeyframes:MO,outKeyframes:LO},"move-right":{inKeyframes:BO,outKeyframes:zO}},WO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=HO[t];return[PO(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},UO=new Wb("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),GO=new Wb("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),VO=new Wb("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),qO=new Wb("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),XO=new Wb("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),KO=new Wb("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),YO=new Wb("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),QO=new Wb("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),JO={"slide-up":{inKeyframes:UO,outKeyframes:GO},"slide-down":{inKeyframes:VO,outKeyframes:qO},"slide-left":{inKeyframes:XO,outKeyframes:KO},"slide-right":{inKeyframes:YO,outKeyframes:QO}},ZO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=JO[t];return[PO(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}}]},e_=new Wb("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),t_=new Wb("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),n_=new Wb("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),r_=new Wb("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),o_=new Wb("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),a_=new Wb("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),i_=new Wb("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),s_=new Wb("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),l_=new Wb("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),c_=new Wb("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),u_=new Wb("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),d_=new Wb("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),p_={zoom:{inKeyframes:e_,outKeyframes:t_},"zoom-big":{inKeyframes:n_,outKeyframes:r_},"zoom-big-fast":{inKeyframes:n_,outKeyframes:r_},"zoom-left":{inKeyframes:i_,outKeyframes:s_},"zoom-right":{inKeyframes:l_,outKeyframes:c_},"zoom-up":{inKeyframes:o_,outKeyframes:a_},"zoom-down":{inKeyframes:u_,outKeyframes:d_}},f_=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=p_[t];return[PO(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}}]},h_=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 g_(e){return{position:e,inset:0}}const m_=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({},g_("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},g_("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:FO(e)}]},b_=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({},ox(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}},lx(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"}}}]},v_=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}}}},y_=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},w_=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return dx(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})},x_=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}),k_=gx("Modal",(e=>{const t=w_(e);return[b_(t),y_(t),m_(t),e.wireframe&&v_(t),f_(t,"zoom")]}),x_),S_={Modal:0,Drawer:0,Popover:70,Popconfirm:70,Tooltip:70,Tour:70},C_={SelectLike:50,Dropdown:50,ColorPicker:30,DatePicker:50,Menu:50};function E_(e,t){const[,n]=Qw(),r=H.useContext(rD);let o=null!=r?r:0;return o+=e in S_?n.zIndexPopupBase+S_[e]:C_[e],[void 0===r?t:o,o]}var D_=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 O_;const __=e=>{O_={x:e.pageX,y:e.pageY},setTimeout((()=>{O_=null}),100)};nm()&&window.document.documentElement&&document.documentElement.addEventListener("click",__,!0);const $_=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=z.useContext(Tw),i=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:p,getContainer:f,closeIcon:h,closable:g,focusTriggerAfterClose:m=!0,style:b,visible:v,width:y=520,footer:w,classNames:x,styles:k}=e,S=D_(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]=k_(C),_=Qb(d,{[`${C}-centered`]:!!p,[`${C}-wrap-rtl`]:"rtl"===o}),$=null!==w&&z.createElement($O,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:i})),[j,N]=nD(g,h,(e=>_O(C,e)),z.createElement(qk,{className:`${C}-close-icon`}),!0),P=EO(`.${C}-content`),[I,T]=E_("Modal",S.zIndex);return D(z.createElement($C,null,z.createElement(kO,{status:!0,override:!0},z.createElement(rD.Provider,{value:T},z.createElement(tD,Object.assign({width:y},S,{zIndex:I,getContainer:void 0===f?n:f,prefixCls:C,rootClassName:Qb(O,c),footer:$,visible:null!=u?u:v,mousePosition:null!==(t=S.mousePosition)&&void 0!==t?t:O_,onClose:i,closable:j,closeIcon:N,focusTriggerAfterClose:m,transitionName:dC(E,"zoom",e.transitionName),maskTransitionName:dC(E,"fade",e.maskTransitionName),className:Qb(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),k),panelRef:P}))))))},j_=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}}},N_=mx(["Modal","confirm"],(e=>{const t=w_(e);return[j_(t)]}),x_,{order:-1e3});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};function I_(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:l,locale:c}=e,u=P_(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(i){case"info":d=z.createElement(Zk,null);break;case"success":d=z.createElement(zk,null);break;case"error":d=z.createElement(Uk,null);break;default:d=z.createElement(Yk,null)}const p=null!=s?s:"confirm"===i,f=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=Ty("Modal"),g=c||h,m=r||(p?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=o||(null==g?void 0:g.cancelText),v=Object.assign({autoFocusButton:f,cancelTextLocale:b,okTextLocale:m,mergedOkCancel:p},u),y=z.useMemo((()=>v),Rg(Object.values(v))),w=z.createElement(z.Fragment,null,z.createElement(NE,null),z.createElement(PE,null)),x=void 0!==e.title&&null!==e.title,k=`${a}-body`;return z.createElement("div",{className:`${a}-body-wrapper`},z.createElement("div",{className:Qb(k,{[`${k}-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(jE,{value:y},z.createElement("div",{className:`${a}-btns`},"function"==typeof l?l(w,{OkBtn:PE,CancelBtn:NE}):w)):l,z.createElement(N_,{prefixCls:t}))}const T_=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:p,iconPrefixCls:f,theme:h,bodyStyle:g,closable:m=!1,closeIcon:b,modalRender:v,focusTriggerAfterClose:y,onConfirm:w,styles:x}=e,k=`${u}-confirm`,S=e.width||416,C=e.style||{},E=void 0===e.mask||e.mask,D=void 0!==e.maskClosable&&e.maskClosable,O=Qb(k,`${k}-${e.type}`,{[`${k}-rtl`]:"rtl"===c},e.className);return z.createElement(Sk,{prefixCls:p,iconPrefixCls:f,direction:c,theme:h},z.createElement($_,{prefixCls:u,className:O,wrapClassName:Qb({[`${k}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==w||w(!1)},open:o,title:"",footer:null,transitionName:dC(p||"","zoom",e.transitionName),maskTransitionName:dC(p||"","fade",e.maskTransitionName),mask:E,maskClosable:D,style:C,styles:Object.assign({body:g,mask:l},x),width:S,zIndex:n,afterClose:r,keyboard:a,centered:i,getContainer:s,closable:m,closeIcon:b,modalRender:v,focusTriggerAfterClose:y},z.createElement(I_,Object.assign({},e,{confirmPrefixCls:k}))))},F_=[];var R_=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 A_="";function M_(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(Rg(r.slice(1))));for(let e=0;e<F_.length;e++){if(F_[e]===i){F_.splice(e,1);break}}oC(t)}function a(e){var{okText:r,cancelText:o,prefixCls:a,getContainer:i}=e,s=R_(e,["okText","cancelText","prefixCls","getContainer"]);clearTimeout(n),n=setTimeout((()=>{const e=Py(),{getPrefixCls:n,getIconPrefixCls:l,getTheme:c}=xk(),u=n(void 0,A_),d=a||`${u}-modal`,p=l(),f=c();let h=i;!1===h&&(h=void 0),eC(z.createElement(T_,Object.assign({},s,{getContainer:h,prefixCls:d,rootPrefixCls:u,iconPrefixCls:p,okText:r,locale:e,theme:f,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),F_.push(i),{destroy:i,update:function(e){r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e),a(r)}}}function L_(e){return Object.assign(Object.assign({},e),{type:"warning"})}function B_(e){return Object.assign(Object.assign({},e),{type:"info"})}function z_(e){return Object.assign(Object.assign({},e),{type:"success"})}function H_(e){return Object.assign(Object.assign({},e),{type:"error"})}function W_(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var U_=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 G_=(e,t)=>{var n,{afterClose:r,config:o}=e,a=U_(e,["afterClose","config"]);const[i,s]=z.useState(!0),[l,c]=z.useState(o),{direction:u,getPrefixCls:d}=z.useContext(Tw),p=d("modal"),f=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(Rg(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]=Ty("Modal",_y.Modal);return z.createElement(T_,Object.assign({prefixCls:p,rootPrefixCls:f},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))},V_=z.forwardRef(G_);let q_=0;const X_=z.memo(z.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=z.useState([]);return[e,z.useCallback((e=>(t((t=>[].concat(Rg(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return z.useImperativeHandle(t,(()=>({patchElement:r})),[]),z.createElement(z.Fragment,null,n)})));function K_(){const e=z.useRef(null),[t,n]=z.useState([]);z.useEffect((()=>{if(t.length){Rg(t).forEach((e=>{e()})),n([])}}),[t]);const r=z.useCallback((t=>function(r){var o;q_+=1;const a=z.createRef();let i;const s=new Promise((e=>{i=e}));let l,c=!1;const u=z.createElement(V_,{key:`modal-${q_}`,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&&F_.push(l);return{destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n((t=>[].concat(Rg(t),[e])))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n((e=>[].concat(Rg(e),[t])))},then:e=>(c=!0,s.then(e))}}),[]);return[z.useMemo((()=>({info:r(B_),success:r(z_),error:r(H_),warning:r(L_),confirm:r(W_)})),[]),z.createElement(X_,{key:"modal-holder",ref:e})]}const Y_=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,a=new Wb("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 Wb("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 Wb("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 Wb("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},Q_=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],J_={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Z_=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)},e$=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)},t$=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Z_(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},e$(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"}}}},Q_.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[J_[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},n$=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:p,notificationPadding:f,notificationMarginEdge:h,fontSize:g,lineHeight:m,width:b,notificationIconSize:v,colorText:y}=e,w=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:p,borderRadius:i,boxShadow:r,[w]:{padding:f,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}}},r$=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:a}=e,i=`${t}-notice`,s=new Wb("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},ox(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({},n$(e))}}]},o$=e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}),a$=e=>{const t=e.paddingMD,n=e.paddingLG;return dx(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})},i$=gx("Notification",(e=>{const t=a$(e);return[r$(t),Y_(t),t$(t)]}),o$),s$=mx(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=a$(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},n$(n)),{width:n.width,maxWidth:`calc(100vw - ${2*n.notificationMarginEdge}px)`,margin:0})}}),o$);var l$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function c$(e,t){return null===t||!1===t?null:t||z.createElement("span",{className:`${e}-close-x`},z.createElement(qk,{className:`${e}-close-icon`}))}const u$={success:zk,info:Zk,error:Uk,warning:Yk},d$=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(u$[r]||null,{className:Qb(`${t}-icon`,`${t}-icon-${r}`)})),z.createElement("div",{className:Qb({[`${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 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};const f$="topRight",h$=e=>{let{children:t,prefixCls:n}=e;const[,r]=i$(n);return z.createElement(vS,{classNames:{list:r,notice:r}},t)},g$=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(h$,{prefixCls:n,key:r},e)},m$=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:p}=z.useContext(Tw),[,f]=Qw(),h=o||u("notification"),[g,m]=ES({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:()=>Qb({[`${h}-rtl`]:s}),motion:()=>function(e){return{motionName:`${e}-fade`}}(h),closable:!0,closeIcon:c$(h),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:l,renderNotifications:g$,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:f.margin}});return z.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:h,notification:p}))),m}));function b$(e){const t=z.useRef(null);Sy();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:p,className:f,style:h,role:g="alert",closeIcon:m}=n,b=p$(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),v=c$(s,m);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:f$},b),{content:z.createElement(d$,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:p,role:g}),className:Qb(d&&`${s}-${d}`,f,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(m$,Object.assign({key:"notification-holder"},e,{ref:t}))]}function v$(e){return b$(e)}const y$=H.createContext({}),w$=H.createContext({message:{},notification:{},modal:{}}),x$=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:a}}},k$=gx("App",(e=>[x$(e)])),S$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:a,notification:i,style:s,component:l="div"}=e,{getPrefixCls:c}=z.useContext(Tw),u=c("app",t),[d,p]=k$(u),f=Qb(p,u,r,o),h=z.useContext(y$),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]=WS(g.message),[v,y]=v$(g.notification),[w,x]=K_(),k=H.useMemo((()=>({message:m,notification:v,modal:w})),[m,v,w]),S=!1===l?H.Fragment:l,C={className:f,style:s};return d(H.createElement(w$.Provider,{value:k},H.createElement(y$.Provider,{value:g},H.createElement(S,Object.assign({},!1===l?void 0:C),x,b,y,n))))};S$.useApp=()=>H.useContext(w$);const C$=S$;function E$(e){return function(t){return z.createElement(Sk,{theme:{token:{motion:!1,zIndexPopupBase:0}}},z.createElement(e,Object.assign({},t)))}}const D$=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 O$=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:Qb(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))};var _$=z.createContext(null);function $$(){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 j$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],N$=void 0;function P$(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,p=e.children,f=e.display,h=e.order,g=e.component,m=void 0===g?"div":g,b=Lp(e,j$),v=i&&!f;function y(e){l(c,e)}z.useEffect((function(){return function(){y(null)}}),[]);var w,x=a&&o!==N$?a(o):p;r||(w={opacity:v?0:1,height:v?0:N$,overflowY:v?"hidden":N$,order:i?h:N$,pointerEvents:v?"none":N$,position:v?"absolute":N$});var k={};v&&(k["aria-hidden"]=!0);var S=z.createElement(m,Zh({className:Qb(!r&&n,u),style:Mg(Mg({},w),d)},k,b,{ref:t}),x);return i&&(S=z.createElement(ay,{onResize:function(e){y(e.offsetWidth)},disabled:s},S)),S}var I$=z.forwardRef(P$);function T$(){var e=z.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)py(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 F$(e,t){var n=bm(z.useState(t),2),r=n[0],o=n[1];return[r,Jw((function(t){e((function(){o(t)}))}))]}I$.displayName="Item";var R$=H.createContext(null),A$=["component"],M$=["className"],L$=["className"],B$=function(e,t){var n=z.useContext(R$);if(!n){var r=e.component,o=void 0===r?"div":r,a=Lp(e,A$);return z.createElement(o,Zh({},a,{ref:t}))}var i=n.className,s=Lp(n,M$),l=e.className,c=Lp(e,L$);return z.createElement(R$.Provider,{value:null},z.createElement(I$,Zh({ref:t,className:Qb(i,l)},s,c)))},z$=z.forwardRef(B$);z$.displayName="RawItem";var H$=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],W$="responsive",U$="invalidate";function G$(e){return"+ ".concat(e.length," ...")}function V$(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,p=e.style,f=e.className,h=e.maxCount,g=e.renderRest,m=e.renderRawRest,b=e.suffix,v=e.component,y=void 0===v?"div":v,w=e.itemComponent,x=e.onVisibleChange,k=Lp(e,H$),S="full"===d,C=T$(),E=bm(F$(C,null),2),D=E[0],O=E[1],_=D||0,$=bm(F$(C,new Map),2),j=$[0],N=$[1],P=bm(F$(C,0),2),I=P[0],T=P[1],F=bm(F$(C,0),2),R=F[0],A=F[1],M=bm(F$(C,0),2),L=M[0],B=M[1],H=bm(z.useState(null),2),W=H[0],U=H[1],G=bm(z.useState(null),2),V=G[0],q=G[1],X=z.useMemo((function(){return null===V&&S?Number.MAX_SAFE_INTEGER:V||0}),[V,D]),K=bm(z.useState(!1),2),Y=K[0],Q=K[1],J="".concat(r,"-item"),Z=Math.max(I,R),ee=h===W$,te=a.length&&ee,ne=h===U$,re=te||"number"==typeof h&&a.length>h,oe=z.useMemo((function(){var e=a;return te?e=null===D&&S?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(X+1):a.slice(oe.length)}),[a,oe,te,X]),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){(V!==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){N((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function ue(e){return j.get(ie(oe[e],e))}Pm((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(S&&(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+R);break}}b&&ue(0)+L>_&&U(null)}}),[_,j,R,L,ie,oe]);var de=Y&&!!ae.length,pe={};null!==W&&te&&(pe={position:"absolute",left:W,top:0});var fe,he={prefixCls:J,responsive:te,component:w,invalidate:ne},ge=s?function(e,t){var n=ie(e,t);return z.createElement(R$.Provider,{key:n,value:Mg(Mg({},he),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=X})},s(e,t))}:function(e,t){var n=ie(e,t);return z.createElement(I$,Zh({},he,{order:t,key:n,item:e,renderItem:se,itemKey:n,registerSize:ce,display:t<=X}))},me={order:de?X:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){A(t),T(R)},display:de};if(m)m&&(fe=z.createElement(R$.Provider,{value:Mg(Mg({},he),me)},m(ae)));else{var be=g||G$;fe=z.createElement(I$,Zh({},he,me),"function"==typeof be?be(ae):be)}var ve=z.createElement(y,Zh({className:Qb(!ne&&r,f),style:p,ref:t},k),oe.map(ge),re?fe:null,b&&z.createElement(I$,Zh({},he,{responsive:ee,responsiveDisabled:!te,order:X,className:"".concat(J,"-suffix"),registerSize:function(e,t){B(t)},display:!0,style:pe}),b));return ee&&(ve=z.createElement(ay,{onResize:function(e,t){O(t.clientWidth)},disabled:!te},ve)),ve}var q$=z.forwardRef(V$);q$.displayName="Overflow",q$.Item=z$,q$.RESPONSIVE=W$,q$.INVALIDATE=U$;var X$=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,p=e.value,f=e.maxLength,h=e.onKeyDown,g=e.onMouseDown,m=e.onChange,b=e.onPaste,v=e.onCompositionStart,y=e.onCompositionEnd,w=e.open,x=e.attrs,k=a||z.createElement("input",null),S=k,C=S.ref,E=S.props,D=E.onKeyDown,O=E.onChange,_=E.onMouseDown,$=E.onCompositionStart,j=E.onCompositionEnd,N=E.style;return k.props,k=z.cloneElement(k,Mg(Mg(Mg({type:"search"},E),{},{id:o,ref:xv(t,C),disabled:i,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:Qb("".concat(r,"-selection-search-input"),null===(n=k)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?d:void 0},x),{},{value:u?p:"",maxLength:f,readOnly:!u,unselectable:u?null:"on",style:Mg(Mg({},N),{},{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),$&&$(e)},onCompositionEnd:function(e){y(e),j&&j(e)},onPaste:b}))},K$=z.forwardRef(X$);function Y$(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}K$.displayName="Input";var Q$="undefined"!=typeof window&&window.document&&window.document.documentElement;function J$(e){return["string","number"].includes(Rp(e))}function Z$(e){var t=void 0;return e&&(J$(e.title)?t=e.title.toString():J$(e.label)&&(t=e.label.toString())),t}function ej(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var tj=function(e){e.preventDefault(),e.stopPropagation()},nj=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,p=e.mode,f=e.showSearch,h=e.autoFocus,g=e.autoComplete,m=e.activeDescendantId,b=e.tabIndex,v=e.removeIcon,y=e.maxTagCount,w=e.maxTagTextLength,x=e.maxTagPlaceholder,k=void 0===x?function(e){return"+ ".concat(e.length," ...")}:x,S=e.tagRender,C=e.onToggleOpen,E=e.onRemove,D=e.onInputChange,O=e.onInputPaste,_=e.onInputKeyDown,$=e.onInputMouseDown,j=e.onInputCompositionStart,N=e.onInputCompositionEnd,P=z.useRef(null),I=bm(z.useState(0),2),T=I[0],F=I[1],R=bm(z.useState(!1),2),A=R[0],M=R[1],L="".concat(o,"-selection"),B=i||"multiple"===p&&!1===l||"tags"===p?s:"",H="tags"===p||"multiple"===p&&!1===l||f&&(i||A);function W(e,t,n,r,o){return z.createElement("span",{className:Qb("".concat(L,"-item"),Mp({},"".concat(L,"-item-disabled"),n)),title:Z$(e)},z.createElement("span",{className:"".concat(L,"-item-content")},t),r&&z.createElement(O$,{className:"".concat(L,"-item-remove"),onMouseDown:tj,onClick:o,customizeIcon:v},"×"))}t=function(){F(P.current.scrollWidth)},n=[B],Q$?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(K$,{ref:c,open:i,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:H,activeDescendantId:m,value:B,onKeyDown:_,onMouseDown:$,onChange:D,onPaste:O,onCompositionStart:j,onCompositionEnd:N,tabIndex:b,attrs:oS(e,!0)}),z.createElement("span",{ref:P,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},B," ")),G=z.createElement(q$,{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 S?function(e,t,n,r,o){return z.createElement("span",{onMouseDown:function(e){tj(e),C(!i)}},S({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 k?k(e):k;return W({title:t},t,!1)},suffix:U,itemKey:ej,maxCount:y});return z.createElement(z.Fragment,null,G,!a.length&&!B&&z.createElement("span",{className:"".concat(L,"-placeholder")},u))},rj=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,p=e.placeholder,f=e.tabIndex,h=e.showSearch,g=e.searchValue,m=e.activeValue,b=e.maxLength,v=e.onInputKeyDown,y=e.onInputMouseDown,w=e.onInputChange,x=e.onInputPaste,k=e.onInputCompositionStart,S=e.onInputCompositionEnd,C=e.title,E=bm(z.useState(!1),2),D=E[0],O=E[1],_="combobox"===c,$=_||h,j=d[0],N=g||"";_&&m&&!D&&(N=m),z.useEffect((function(){_&&O(!1)}),[_,m]);var P=!("combobox"!==c&&!u&&!h)&&!!N,I=void 0===C?Z$(j):C;return z.createElement(z.Fragment,null,z.createElement("span",{className:"".concat(n,"-selection-search")},z.createElement(K$,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:a,autoFocus:i,autoComplete:s,editable:$,activeDescendantId:l,value:N,onKeyDown:v,onMouseDown:y,onChange:function(e){O(!0),w(e)},onPaste:x,onCompositionStart:k,onCompositionEnd:S,tabIndex:f,attrs:oS(e,!0),maxLength:_?b:void 0})),!_&&j?z.createElement("span",{className:"".concat(n,"-selection-item"),title:I,style:P?{visibility:"hidden"}:void 0},j.label):null,function(){if(j)return null;var e=P?{visibility:"hidden"}:void 0;return z.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},p)}())};var oj=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,p=e.onToggleOpen,f=e.onInputKeyDown,h=e.domRef;z.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=bm($$(0),2),m=g[0],b=g[1],v=z.useRef(null),y=function(e){!1!==u(e,!0,r.current)&&p(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==gS.UP&&n!==gS.DOWN||e.preventDefault(),f&&f(e),n!==gS.ENTER||"tags"!==i||r.current||a||null==d||d(e.target.value),t=n,[gS.ESC,gS.SHIFT,gS.BACKSPACE,gS.TAB,gS.WIN_KEY,gS.ALT,gS.META,gS.WIN_KEY_RIGHT,gS.CTRL,gS.SEMICOLON,gS.EQUALS,gS.CAPS_LOCK,gS.CONTEXT_MENU,gS.F1,gS.F2,gS.F3,gS.F4,gS.F5,gS.F6,gS.F7,gS.F8,gS.F9,gS.F10,gS.F11,gS.F12].includes(t)||p(!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(nj,Zh({},e,w)):z.createElement(rj,Zh({},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),p())}},x)},aj=z.forwardRef(oj);function ij(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,p=z.useRef();if(!n||!n.points)return null;var f={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?f.top=0:f.bottom=0:f.top=d,b!==y&&["l","r"].includes(b)?"l"===b?f.left=0:f.right=0:f.left=c}return z.createElement("div",{ref:p,className:Qb("".concat(t,"-arrow"),i),style:f},s)}function sj(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?z.createElement(tk,Zh({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return z.createElement("div",{style:{zIndex:r},className:Qb("".concat(t,"-mask"),n)})})):null}aj.displayName="Selector";var lj=z.memo((function(e){return e.children}),(function(e,t){return t.cache})),cj=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,p=e.mask,f=e.arrow,h=e.arrowPos,g=e.align,m=e.motion,b=e.maskMotion,v=e.forceRender,y=e.getPopupContainer,w=e.autoDestroy,x=e.portal,k=e.zIndex,S=e.onMouseEnter,C=e.onMouseLeave,E=e.onPointerEnter,D=e.ready,O=e.offsetX,_=e.offsetY,$=e.offsetR,j=e.offsetB,N=e.onAlign,P=e.onPrepare,I=e.stretch,T=e.targetWidth,F=e.targetHeight,R="function"==typeof n?n():n,A=l||c,M=(null==y?void 0:y.length)>0,L=bm(z.useState(!y||!M),2),B=L[0],H=L[1];if(Pm((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 G,V=g.points,q=g.dynamicInset||(null===(G=g._experimental)||void 0===G?void 0:G.dynamicInset),X=q&&"r"===V[0][1],K=q&&"b"===V[0][0];X?(U.right=$,U.left=W):(U.left=O,U.right=W),K?(U.bottom=j,U.top=W):(U.top=_,U.bottom=W)}var Y={};return I&&(I.includes("height")&&F?Y.height=F:I.includes("minHeight")&&F&&(Y.minHeight=F),I.includes("width")&&T?Y.width=T:I.includes("minWidth")&&T&&(Y.minWidth=T)),l||(Y.pointerEvents="none"),z.createElement(x,{open:v||A,getContainer:y&&function(){return y(i)},autoDestroy:w},z.createElement(sj,{prefixCls:o,open:l,zIndex:k,mask:p,motion:b}),z.createElement(ay,{onResize:N,disabled:!l},(function(e){return z.createElement(tk,Zh({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:P,onEnterPrepare:P,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,p=Qb(o,s,r);return z.createElement("div",{ref:xv(e,t,i),className:p,style:Mg(Mg(Mg(Mg({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),Y),c),{},{boxSizing:"border-box",zIndex:k},a),onMouseEnter:S,onMouseLeave:C,onPointerEnter:E,onClick:d},f&&z.createElement(ij,{prefixCls:o,arrow:f,arrowPos:h,align:g}),z.createElement(lj,{cache:!l&&!u},R))}))})))})),uj=z.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Sv(n),a=kv(z.useCallback((function(e){wv(t,r?r(e):e)}),[r]),n.ref);return o?z.cloneElement(n,{ref:a}):n})),dj=z.createContext(null);function pj(e){return e?Array.isArray(e)?e:[e]:[]}function fj(){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 hj(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function gj(e){return e.ownerDocument.defaultView}function mj(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=gj(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 bj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function vj(e){return bj(parseFloat(e),0)}function yj(e,t){var n=Mg({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=gj(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,p=e.offsetWidth,f=e.clientWidth,h=vj(a),g=vj(i),m=vj(s),b=vj(l),v=bj(Math.round(c.width/p*1e3)/1e3),y=bj(Math.round(c.height/u*1e3)/1e3),w=(p-f-m-b)*v,x=(u-d-h-g)*y,k=h*y,S=g*y,C=m*v,E=b*v,D=0,O=0;if("clip"===r){var _=vj(o);D=_*v,O=_*y}var $=c.x+C-D,j=c.y+k-O,N=$+c.width+2*D-C-E-w,P=j+c.height+2*O-k-S-x;n.left=Math.max(n.left,$),n.top=Math.max(n.top,j),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,P)}})),n}function wj(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 xj(e,t){var n=bm(t||[],2),r=n[0],o=n[1];return[wj(e.width,r),wj(e.height,o)]}function kj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Sj(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 Cj(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 Ej=["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 Dj=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:HE,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,p=t.onPopupVisibleChange,f=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,m=void 0===g?.1:g,b=t.focusDelay,v=t.blurDelay,y=t.mask,w=t.maskClosable,x=void 0===w||w,k=t.getPopupContainer,S=t.forceRender,C=t.autoDestroy,E=t.destroyPopupOnHide,D=t.popup,O=t.popupClassName,_=t.popupStyle,$=t.popupPlacement,j=t.builtinPlacements,N=void 0===j?{}:j,P=t.popupAlign,I=t.zIndex,T=t.stretch,F=t.getPopupClassNameFromAlign,R=t.fresh,A=t.alignPoint,M=t.onPopupClick,L=t.onPopupAlign,B=t.arrow,H=t.popupMotion,W=t.maskMotion,U=t.popupTransitionName,G=t.popupAnimation,V=t.maskTransitionName,q=t.maskAnimation,X=t.className,K=t.getTriggerDOMNode,Y=Lp(t,Ej),Q=C||E||!1,J=bm(z.useState(!1),2),Z=J[0],ee=J[1];Pm((function(){ee(D$())}),[]);var te=z.useRef({}),ne=z.useContext(dj),re=z.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=VE(),ae=bm(z.useState(null),2),ie=ae[0],se=ae[1],le=Jw((function(e){vv(e)&&ie!==e&&se(e),null==ne||ne.registerSubPopup(oe,e)})),ce=bm(z.useState(null),2),ue=ce[0],de=ce[1],pe=z.useRef(null),fe=Jw((function(e){vv(e)&&ue!==e&&(de(e),pe.current=e)})),he=z.Children.only(a),ge=(null==he?void 0:he.props)||{},me={},be=Jw((function(e){var t,n,r=ue;return(null==r?void 0:r.contains(e))||(null===(t=Dk(r))||void 0===t?void 0:t.host)===e||e===r||(null==ie?void 0:ie.contains(e))||(null===(n=Dk(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=hj(o,H,G,U),ye=hj(o,W,q,V),we=bm(z.useState(d||!1),2),xe=we[0],ke=we[1],Se=null!=u?u:xe,Ce=Jw((function(e){void 0===u&&ke(e)}));Pm((function(){ke(u||!1)}),[u]);var Ee=z.useRef(Se);Ee.current=Se;var De=z.useRef([]);De.current=[];var Oe=Jw((function(e){var t;Ce(e),(null!==(t=De.current[De.current.length-1])&&void 0!==t?t:Se)!==e&&(De.current.push(e),null==p||p(e))})),_e=z.useRef(),$e=function(){clearTimeout(_e.current)},je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;$e(),0===t?Oe(e):_e.current=setTimeout((function(){Oe(e)}),1e3*t)};z.useEffect((function(){return $e}),[]);var Ne=bm(z.useState(!1),2),Pe=Ne[0],Ie=Ne[1];Pm((function(e){e&&!Se||Ie(!0)}),[Se]);var Te=bm(z.useState(null),2),Fe=Te[0],Re=Te[1],Ae=bm(z.useState([0,0]),2),Me=Ae[0],Le=Ae[1],Be=function(e){Le([e.clientX,e.clientY])},ze=function(e,t,n,r,o,a,i){var s=bm(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?mj(t):[]}),[t]),p=z.useRef({});e||(p.current={});var f=Jw((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+R,i=o+F,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+F,le=O.x+be,ce=le+R};var s,l,u,f=t,h=f.ownerDocument,g=gj(f).getComputedStyle(f),m=g.width,b=g.height,v=g.position,y=f.style.left,w=f.style.top,x=f.style.right,k=f.style.bottom,S=f.style.overflow,C=Mg(Mg({},o[r]),a),E=h.createElement("div");if(null===(s=f.parentElement)||void 0===s||s.appendChild(E),E.style.left="".concat(f.offsetLeft,"px"),E.style.top="".concat(f.offsetTop,"px"),E.style.position=v,E.style.height="".concat(f.offsetHeight,"px"),E.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.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=f.getBoundingClientRect(),_=h.documentElement,$=_.clientWidth,j=_.clientHeight,N=_.scrollWidth,P=_.scrollHeight,I=_.scrollTop,T=_.scrollLeft,F=O.height,R=O.width,A=u.height,M=u.width,L={left:0,top:0,right:$,bottom:j},B={left:-T,top:-I,right:N-T,bottom:P-I},z=C.htmlRegion,H="visible",W="visibleFirst";"scroll"!==z&&z!==W&&(z=H);var U=z===W,G=yj(B,d),V=yj(L,d),q=z===H?V:G,X=U?V:q;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var K=f.getBoundingClientRect();f.style.left=y,f.style.top=w,f.style.right=x,f.style.bottom=k,f.style.overflow=S,null===(l=f.parentElement)||void 0===l||l.removeChild(E);var Y=bj(Math.round(R/parseFloat(m)*1e3)/1e3),Q=bj(Math.round(F/parseFloat(b)*1e3)/1e3);if(0===Y||0===Q||vv(n)&&!pC(n))return;var J=C.offset,Z=C.targetOffset,ee=bm(xj(O,J),2),te=ee[0],ne=ee[1],re=bm(xj(u,Z),2),oe=re[0],ae=re[1];u.x-=oe,u.y-=ae;var ie,se,le,ce,ue=bm(C.points||[],2),de=ue[0],pe=kj(ue[1]),fe=kj(de),he=Sj(u,pe),ge=Sj(O,fe),me=Mg({},C),be=he.x-ge.x+te,ve=he.y-ge.y+ne,ye=e(be,ve),we=e(be,ve,V),xe=Sj(u,["t","l"]),ke=Sj(O,["t","l"]),Se=Sj(u,["b","r"]),Ce=Sj(O,["b","r"]),Ee=C.overflow||{},De=Ee.adjustX,Oe=Ee.adjustY,_e=Ee.shiftX,$e=Ee.shiftY,je=function(e){return"boolean"==typeof e?e:e>=0};st();var Ne=je(Oe),Pe=fe[0]===pe[0];if(Ne&&"t"===fe[0]&&(se>X.bottom||p.current.bt)){var Ie=ve;Pe?Ie-=F-A:Ie=xe.y-Ce.y-ne;var Te=e(be,Ie),Fe=e(be,Ie,V);Te>ye||Te===ye&&(!U||Fe>=we)?(p.current.bt=!0,ve=Ie,ne=-ne,me.points=[Cj(fe,0),Cj(pe,0)]):p.current.bt=!1}if(Ne&&"b"===fe[0]&&(ie<X.top||p.current.tb)){var Re=ve;Pe?Re+=F-A:Re=Se.y-ke.y-ne;var Ae=e(be,Re),Me=e(be,Re,V);Ae>ye||Ae===ye&&(!U||Me>=we)?(p.current.tb=!0,ve=Re,ne=-ne,me.points=[Cj(fe,0),Cj(pe,0)]):p.current.tb=!1}var Le=je(De),Be=fe[1]===pe[1];if(Le&&"l"===fe[1]&&(ce>X.right||p.current.rl)){var ze=be;Be?ze-=R-M:ze=xe.x-Ce.x-te;var He=e(ze,ve),We=e(ze,ve,V);He>ye||He===ye&&(!U||We>=we)?(p.current.rl=!0,be=ze,te=-te,me.points=[Cj(fe,1),Cj(pe,1)]):p.current.rl=!1}if(Le&&"r"===fe[1]&&(le<X.left||p.current.lr)){var Ue=be;Be?Ue+=R-M:Ue=Se.x-ke.x-te;var Ge=e(Ue,ve),Ve=e(Ue,ve,V);Ge>ye||Ge===ye&&(!U||Ve>=we)?(p.current.lr=!0,be=Ue,te=-te,me.points=[Cj(fe,1),Cj(pe,1)]):p.current.lr=!1}st();var qe=!0===_e?0:_e;"number"==typeof qe&&(le<V.left&&(be-=le-V.left-te,u.x+M<V.left+qe&&(be+=u.x-V.left+M-qe)),ce>V.right&&(be-=ce-V.right-te,u.x>V.right-qe&&(be+=u.x-V.right+qe)));var Xe=!0===$e?0:$e;"number"==typeof Xe&&(ie<V.top&&(ve-=ie-V.top-ne,u.y+A<V.top+Xe&&(ve+=u.y-V.top+A-Xe)),se>V.bottom&&(ve-=se-V.bottom-ne,u.y>V.bottom-Xe&&(ve+=u.y-V.bottom+Xe)));var Ke=O.x+be,Ye=Ke+R,Qe=O.y+ve,Je=Qe+F,Ze=u.x,et=Ze+M,tt=u.y,nt=tt+A,rt=(Math.max(Ke,Ze)+Math.min(Ye,et))/2-Ke,ot=(Math.max(Qe,tt)+Math.min(Je,nt))/2-Qe;null==i||i(t,me);var at=K.right-O.x-(be+O.width),it=K.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 Mg(Mg({},e),{},{ready:!1})}))};return Pm(h,[r]),Pm((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&&f()}))}]}(Se,ie,A?Me:ue,$,N,P,L),He=bm(ze,11),We=He[0],Ue=He[1],Ge=He[2],Ve=He[3],qe=He[4],Xe=He[5],Ke=He[6],Ye=He[7],Qe=He[8],Je=He[9],Ze=He[10],et=function(e,t,n,r){return z.useMemo((function(){var o=pj(null!=n?n:t),a=pj(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=bm(et,2),nt=tt[0],rt=tt[1],ot=nt.has("click"),at=rt.has("click")||rt.has("contextMenu"),it=Jw((function(){Pe||Ze()}));!function(e,t,n,r,o){Pm((function(){if(e&&t&&n){let e=function(){r(),o()};var a=n,i=mj(t),s=mj(a),l=gj(a),c=new Set([l].concat(Rg(i),Rg(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])}(Se,ue,ie,it,(function(){Ee.current&&A&&at&&je(!1)})),Pm((function(){it()}),[Me,$]),Pm((function(){!Se||null!=N&&N[$]||it()}),[JSON.stringify(P)]);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(fj(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(N,o,Je,A);return Qb(e,null==F?void 0:F(Je))}),[Je,F,N,o,A]);z.useImperativeHandle(n,(function(){return{nativeElement:pe.current,forceAlign:it}}));var lt=bm(z.useState(0),2),ct=lt[0],ut=lt[1],dt=bm(z.useState(0),2),pt=dt[0],ft=dt[1],ht=function(){if(T&&ue){var e=ue.getBoundingClientRect();ut(e.width),ft(e.height)}};function gt(e,t,n,r){me[e]=function(o){var a;null==r||r(o),je(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))}}Pm((function(){Fe&&(Ze(),Fe(),Re(null))}),[Fe]),(ot||at)&&(me.onClick=function(e){var t;Ee.current&&at?je(!1):!Ee.current&&ot&&(Be(e),je(!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=py((function(){c.current=!1}));return function(){py.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=bm(e(),2),d=u[0],p=u[1],f=bm(e(),2),h=f[0],g=f[1],m=gj(r);m.addEventListener("mousedown",d,!0),m.addEventListener("click",p,!0),m.addEventListener("contextmenu",p,!0);var b=Dk(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",p,!0),m.removeEventListener("contextmenu",p,!0),b&&(b.removeEventListener("mousedown",h,!0),b.removeEventListener("click",g,!0),b.removeEventListener("contextmenu",g,!0))}}}),[t,n,r,o,a])}(Se,at,ue,ie,y,x,be,je);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(){(Se||Pe)&&je(!0,h)},A&&(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(){je(!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")?je(!1):(Be(e),je(!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))}),X&&(me.className=Qb(ge.className,X));var wt=Mg(Mg({},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 kt=z.cloneElement(he,Mg(Mg({},wt),xt)),St={x:Xe,y:Ke},Ct=B?Mg({},!0!==B?B:{}):null;return z.createElement(z.Fragment,null,z.createElement(ay,{disabled:!Se,ref:fe,onResize:function(){ht(),it()}},z.createElement(uj,{getTriggerDOMNode:K},kt)),z.createElement(dj.Provider,{value:re},z.createElement(cj,{portal:e,ref:le,prefixCls:o,popup:D,className:Qb(O,st),style:_,target:ue,onMouseEnter:mt,onMouseLeave:bt,onPointerEnter:mt,zIndex:I,open:Se,keepDom:Pe,fresh:R,onClick:M,mask:y,motion:ve,maskMotion:ye,onVisibleChanged:function(e){Ie(!1),Ze(),null==f||f(e)},onPrepare:function(){return new Promise((function(e){ht(),Re((function(){return e}))}))},forceRender:S,autoDestroy:Q,getPopupContainer:k,align:Je,arrow:Ct,arrowPos:St,ready:We,offsetX:Ue,offsetY:Ge,offsetR:Ve,offsetB:qe,onAlign:it,stretch:T,targetWidth:ct/Ye,targetHeight:pt/Qe})))}));return t}(HE);var Oj=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],_j=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,p=e.placement,f=e.builtinPlacements,h=e.dropdownMatchSelectWidth,g=e.dropdownRender,m=e.dropdownAlign,b=e.getPopupContainer,v=e.empty,y=e.getTriggerDOMNode,w=e.onPopupVisibleChange,x=e.onPopupMouseEnter,k=Lp(e,Oj),S="".concat(n,"-dropdown"),C=a;g&&(C=g(a));var E=z.useMemo((function(){return f||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)}),[f,h]),D=i?"".concat(S,"-").concat(i):s,O="number"==typeof h,_=z.useMemo((function(){return O?null:!1===h?"minWidth":"width"}),[h,O]),$=l;O&&($=Mg(Mg({},$),{},{width:h}));var j=z.useRef(null);return z.useImperativeHandle(t,(function(){return{getPopupElement:function(){return j.current}}})),z.createElement(Dj,Zh({},k,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:p||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:E,prefixCls:S,popupTransitionName:D,popup:z.createElement("div",{ref:j,onMouseEnter:x},C),stretch:_,popupAlign:m,popupVisible:r,getPopupContainer:b,popupClassName:Qb(c,Mp({},"".concat(S,"-empty"),v)),popupStyle:$,getTriggerDOMNode:y,onPopupVisibleChange:w}),o)},$j=z.forwardRef(_j);function jj(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 Nj(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 Pj(e){var t=Mg({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Gg(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}$j.displayName="SelectTrigger";var Ij=["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"],Tj=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Fj(e){return"tags"===e||"multiple"===e}var Rj=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,p=e.onDisplayValuesChange,f=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,k=e.open,S=e.defaultOpen,C=e.onDropdownVisibleChange,E=e.activeValue,D=e.onActiveValueChange,O=e.activeDescendantId,_=e.searchValue,$=e.autoClearSearchValue,j=e.onSearch,N=e.onSearchSplit,P=e.tokenSeparators,I=e.allowClear,T=e.suffixIcon,F=e.clearIcon,R=e.OptionList,A=e.animation,M=e.transitionName,L=e.dropdownStyle,B=e.dropdownClassName,W=e.dropdownMatchSelectWidth,U=e.dropdownRender,G=e.dropdownAlign,V=e.placement,q=e.builtinPlacements,X=e.getPopupContainer,K=e.showAction,Y=void 0===K?[]:K,Q=e.onFocus,J=e.onBlur,Z=e.onKeyUp,ee=e.onKeyDown,te=e.onMouseDown,ne=Lp(e,Ij),re=Fj(b),oe=(void 0!==s?s:re)||"combobox"===b,ae=Mg({},ne);Tj.forEach((function(e){delete ae[e]})),null==u||u.forEach((function(e){delete ae[e]}));var ie=bm(z.useState(!1),2),se=ie[0],le=ie[1];z.useEffect((function(){le(D$())}),[]);var ce=z.useRef(null),ue=z.useRef(null),de=z.useRef(null),pe=z.useRef(null),fe=z.useRef(null),he=z.useRef(!1),ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=bm(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=bm(ge,3),be=me[0],ve=me[1],ye=me[2];z.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=pe.current)||void 0===e?void 0:e.focus,blur:null===(t=pe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=fe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var 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,ke="function"==typeof x&&x(),Se=kv(ue,null==ke||null===(n=ke.props)||void 0===n?void 0:n.ref),Ce=bm(z.useState(!1),2),Ee=Ce[0],De=Ce[1];Pm((function(){De(!0)}),[]);var Oe=bm(tx(!1,{defaultValue:S,value:k}),2),_e=Oe[0],$e=Oe[1],je=!!Ee&&_e,Ne=!g&&f;(v||Ne&&je&&"combobox"===b)&&(je=!1);var Pe=!Ne&&je,Ie=z.useCallback((function(e){var t=void 0!==e?e:!je;v||($e(t),je!==t&&(null==C||C(t)))}),[v,je,$e,C]),Te=z.useMemo((function(){return(P||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[P]),Fe=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=hy(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(Rg(t),Rg(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,P);return"combobox"!==b&&a&&(o="",null==N||N(a),Ie(!1),r=!1),j&&we!==o&&j(o,{source:t?"typing":"effect"}),r};z.useEffect((function(){je||re||"combobox"===b||Fe("",!1,!1)}),[je]),z.useEffect((function(){_e&&v&&$e(!1),v&&!he.current&&ve(!1)}),[v]);var Re=bm($$(),2),Ae=Re[0],Me=Re[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=bm(z.useState({}),2)[1];ke&&(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()]}),Pe,Ie,!!ke);var We,Ue=z.useMemo((function(){return Mg(Mg({},e),{},{notFoundContent:g,open:je,triggerOpen:Pe,id:o,showSearch:oe,multiple:re,toggleOpen:Ie})}),[e,g,Pe,je,o,oe,re,Ie]),Ge=!!T||y;Ge&&(We=z.createElement(O$,{className:Qb("".concat(a,"-arrow"),Mp({},"".concat(a,"-arrow-loading"),y)),customizeIcon:T,customizeIconProps:{loading:y,searchValue:we,open:je,focused:be,showSearch:oe}}));var Ve,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"===Rp(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(O$,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(a,(function(){var e;null==m||m(),null===(e=pe.current)||void 0===e||e.focus(),p([],{type:"clear",values:d}),Fe("",!1,!1)}),d,I,F,v,we,b),Xe=qe.allowClear,Ke=qe.clearIcon,Ye=z.createElement(R,{ref:fe}),Qe=Qb(a,i,(Mp(r={},"".concat(a,"-focused"),be),Mp(r,"".concat(a,"-multiple"),re),Mp(r,"".concat(a,"-single"),!re),Mp(r,"".concat(a,"-allow-clear"),I),Mp(r,"".concat(a,"-show-arrow"),Ge),Mp(r,"".concat(a,"-disabled"),v),Mp(r,"".concat(a,"-loading"),y),Mp(r,"".concat(a,"-open"),je),Mp(r,"".concat(a,"-customize-input"),xe),Mp(r,"".concat(a,"-show-search"),oe),r)),Je=z.createElement($j,{ref:de,disabled:v,prefixCls:a,visible:Pe,popupElement:Ye,animation:A,transitionName:M,dropdownStyle:L,dropdownClassName:B,direction:c,dropdownMatchSelectWidth:W,dropdownRender:U,dropdownAlign:G,placement:V,builtinPlacements:q,getPopupContainer:X,empty:f,getTriggerDOMNode:function(){return ue.current},onPopupVisibleChange:ze,onPopupMouseEnter:function(){He({})}},ke?z.cloneElement(ke,{ref:Se}):z.createElement(aj,Zh({},e,{domRef:ue,prefixCls:a,inputElement:xe,ref:pe,id:o,showSearch:oe,autoClearSearchValue:$,mode:b,activeDescendantId:O,tagRender:l,values:d,open:je,onToggleOpen:Ie,activeValue:E,searchValue:we,onSearch:Fe,onSearchSubmit:function(e){e&&e.trim()&&j(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));p(t,{type:"remove",values:[e]})},tokenWithEnter:Te})));return Ve=ke?Je:z.createElement("div",Zh({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=pe.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=Ae(),r=e.which;if(r===gS.ENTER&&("combobox"!==b&&e.preventDefault(),je||Ie(!0)),Me(!!we),r===gS.BACKSPACE&&!n&&re&&!we&&d.length){for(var o=Rg(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&&p(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];je&&fe.current&&(t=fe.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;je&&fe.current&&(o=fe.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?j(we,{source:"submit"}):"multiple"===b&&j("",{source:"blur"})),J&&J.apply(void 0,arguments))}}),be&&!je&&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(Rp(t))?t:n})).join(", "))),Je,We,Xe&&Ke),z.createElement(_$.Provider,{value:Ue},Ve)})),Aj=function(){return null};Aj.isSelectOptGroup=!0;var Mj=function(){return null};Mj.isSelectOption=!0;var Lj=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,p={},f={display:"flex",flexDirection:"column"};void 0!==o&&(p={height:r,position:"relative",overflow:"hidden"},f=Mg(Mg({},f),{},(Mp(n={transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-a),Mp(n,"position","absolute"),Mp(n,"left",0),Mp(n,"right",0),Mp(n,"top",0),n)));return z.createElement("div",{style:p},z.createElement(ay,{onResize:function(e){e.offsetHeight&&l&&l()}},z.createElement("div",Zh({style:f,className:Qb(Mp({},"".concat(s,"-holder-inner"),s)),ref:t},c),i,d)))}));function Bj(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}Lj.displayName="Filler";var zj=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,p=e.containerSize,f=e.style,h=e.thumbStyle,g=bm(z.useState(!1),2),m=g[0],b=g[1],v=bm(z.useState(null),2),y=v[0],w=v[1],x=bm(z.useState(null),2),k=x[0],S=x[1],C=!o,E=z.useRef(),D=z.useRef(),O=bm(z.useState(!1),2),_=O[0],$=O[1],j=z.useRef(),N=function(){clearTimeout(j.current),$(!0),j.current=setTimeout((function(){$(!1)}),3e3)},P=i-p||0,I=p-d||0,T=P>0,F=z.useMemo((function(){return 0===a||0===P?0:a/P*I}),[a,P,I]),R=z.useRef({top:F,dragging:m,pageY:y,startTop:k});R.current={top:F,dragging:m,pageY:y,startTop:k};var A=function(e){b(!0),w(Bj(e,u)),S(R.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",A),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",A)}}),[]);var M=z.useRef();M.current=P;var L=z.useRef();L.current=I,z.useEffect((function(){if(m){var e,t=function(t){var n=R.current,r=n.dragging,o=n.pageY,a=n.startTop;if(py.cancel(e),r){var i=Bj(t,u)-o,s=a;!C&&u?s-=i:s+=i;var l=M.current,d=L.current,p=d?s/d:0,f=Math.ceil(p*l);f=Math.max(f,0),f=Math.min(f,l),e=py((function(){c(f,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),py.cancel(e)}}}),[m]),z.useEffect((function(){N()}),[a]),z.useImperativeHandle(t,(function(){return{delayHidden:N}}));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=F:W.right=F):(H.width=8,H.top=0,H.bottom=0,C?H.right=0:H.left=0,W.width="100%",W.height=d,W.top=F),z.createElement("div",{ref:E,className:Qb(B,(n={},Mp(n,"".concat(B,"-horizontal"),u),Mp(n,"".concat(B,"-vertical"),!u),Mp(n,"".concat(B,"-visible"),_),n)),style:Mg(Mg({},H),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:N},z.createElement("div",{ref:D,className:Qb("".concat(B,"-thumb"),Mp({},"".concat(B,"-thumb-moving"),m)),style:Mg(Mg({},W),h),onMouseDown:A}))}));function Hj(e){var t=e.children,n=e.setRef,r=z.useCallback((function(e){n(e)}),[]);return z.cloneElement(t,{ref:r})}var Wj=function(){function e(){mf(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return vf(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var Uj=10;function Gj(e,t,n){var r=bm(z.useState(e),2),o=r[0],a=r[1],i=bm(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 p=l(r[d]);if(p!==l(o[d])){c=d,u=u||p!==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 Vj="object"===("undefined"==typeof navigator?"undefined":Rp(navigator))&&/Firefox/i.test(navigator.userAgent);const qj=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 Xj(e,t,n,r,o){var a=z.useRef(0),i=z.useRef(null),s=z.useRef(null),l=z.useRef(!1),c=qj(t,n);var u=z.useRef(null),d=z.useRef(null);return[function(t){if(e){py.cancel(d.current),d.current=py((function(){u.current=null}),2);var n=t.deltaX,p=t.deltaY,f=t.shiftKey,h=n,g=p;("sx"===u.current||!u.current&&f&&p&&!n)&&(h=p,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){py.cancel(i.current),a.current+=t,s.current=t,c(t)||(Vj||e.preventDefault(),i.current=py((function(){var e=l.current?10:1;o(a.current*e),a.current=0})))}(t,g):function(e,t){o(t,!0),Vj||e.preventDefault()}(t,h)}},function(t){e&&(l.current=t.detail===s.current)}]}var Kj=14/15;var Yj=20;function Qj(){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,Yj),t=Math.min(t,e/2),Math.floor(t)}var Jj=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Zj=[],eN={overflowY:"auto",overflowAnchor:"none"};function tN(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,p=e.itemKey,f=e.virtual,h=e.direction,g=e.scrollWidth,m=e.component,b=void 0===m?"div":m,v=e.onScroll,y=e.onVirtualScroll,w=e.onVisibleChange,x=e.innerProps,k=e.extraRender,S=e.styles,C=Lp(e,Jj),E=!(!1===f||!a||!i),D=E&&u&&(i*u.length>a||!!g),O="rtl"===h,_=Qb(r,Mp({},"".concat(r,"-rtl"),O),o),$=u||Zj,j=z.useRef(),N=z.useRef(),P=bm(z.useState(0),2),I=P[0],T=P[1],F=bm(z.useState(0),2),R=F[0],A=F[1],M=bm(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 p?p(e):null==e?void 0:e[p]}),[p]),G={getKey:U};function V(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 j.current.scrollTop=n,n}))}var q=z.useRef({start:0,end:$.length}),X=z.useRef(),K=bm(Gj($,U),1)[0];X.current=K;var Y=function(e,t,n){var r=bm(z.useState(0),2),o=r[0],a=r[1],i=z.useRef(new Map),s=z.useRef(new Wj),l=z.useRef();function c(){py.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=yv(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=py(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=bm(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:$.length-1,offset:void 0};var e;if(!D)return{scrollHeight:(null===(e=N.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:$.length-1,offset:void 0};for(var t,n,r,o=0,s=$.length,l=0;l<s;l+=1){var c=$[l],u=U(c),d=ee.get(u),p=o+(void 0===d?i:d);p>=I&&void 0===t&&(t=l,n=o),p>I+a&&void 0===r&&(r=l),o=p}return void 0===t&&(t=0,n=0,r=Math.ceil(a/i)),void 0===r&&(r=$.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,$.length-1),offset:n}}),[D,E,I,$,te,a]),re=ne.scrollHeight,oe=ne.start,ae=ne.end,ie=ne.offset;q.current.start=oe,q.current.end=ae;var se=bm(z.useState({width:0,height:a}),2),le=se[0],ce=se[1],ue=z.useRef(),de=z.useRef(),pe=z.useMemo((function(){return Qj(le.width,g)}),[le.width,g]),fe=z.useMemo((function(){return Qj(le.height,re)}),[le.height,re]),he=re-a,ge=z.useRef(he);ge.current=he;var me=I<=0,be=I>=he,ve=qj(me,be),ye=function(){return{x:O?-R:R,y:I}},we=z.useRef(ye()),xe=Jw((function(){if(y){var e=ye();we.current.x===e.x&&we.current.y===e.y||(y(e),we.current=e)}}));function ke(e,t){var n=e;t?(ad.flushSync((function(){A(n)})),xe()):V(n)}var Se=function(e){var t=e,n=g-le.width;return t=Math.max(t,0),t=Math.min(t,n)},Ce=Jw((function(e,t){t?(ad.flushSync((function(){A((function(t){return Se(t+(O?-e:e))}))})),xe()):V((function(t){return t+e}))})),Ee=bm(Xj(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*=Kj,!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))},Pm((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,j,(function(e,t){return!ve(e,t)&&(De({preventDefault:function(){},deltaY:e}),!0)})),Pm((function(){function e(e){E&&e.preventDefault()}var t=j.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]),Pm((function(){g&&A((function(e){return Se(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()},$e=function(e,t,n,r,o,a,i,s){var l=z.useRef(),c=bm(z.useState(null),2),u=c[0],d=c[1];return Pm((function(){if(u&&u.times<Uj){if(!e.current)return void d((function(e){return Mg({},e)}));a();var s=u.targetAlign,l=u.originAlign,c=u.index,p=u.offset,f=e.current.clientHeight,h=!1,g=s,m=null;if(f){for(var b=s||l,v=0,y=0,w=0,x=Math.min(t.length-1,c),k=0;k<=x;k+=1){var S=o(t[k]);y=v;var C=n.get(S);v=w=y+(void 0===C?r:C)}for(var E="top"===b?p:f-p,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-p;break;case"bottom":m=w-f+p;break;default:var $=e.current.scrollTop;y<$?g="top":w>$+f&&(g="bottom")}null!==m&&i(m),m!==u.lastTop&&(h=!0)}h&&d(Mg(Mg({},u),{},{times:u.times+1,targetAlign:g,lastTop:m}))}}),[u,e.current]),function(e){if(null!=e){if(py.cancel(l.current),"number"==typeof e)i(e);else if(e&&"object"===Rp(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()}}(j,$,ee,i,U,(function(){return Z(!0)}),V,_e);z.useImperativeHandle(t,(function(){return{getScrollInfo:ye,scrollTo:function(e){var t;(t=e)&&"object"===Rp(t)&&("left"in t||"top"in t)?(void 0!==e.left&&A(Se(e.left)),$e(e.top)):$e(e)}}})),Pm((function(){if(w){var e=$.slice(oe,ae+1);w(e,$)}}),[oe,ae,$]);var je=function(e,t,n,r){var o=bm(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 p,f=e[d],h=t(f);a.set(h,d);var g=null!==(p=n.get(h))&&void 0!==p?p: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]}}}($,U,ee,i),Ne=null==k?void 0:k({start:oe,end:ae,virtual:D,offsetX:R,offsetY:ie,rtl:O,getSize:je}),Pe=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(Hj,{key:l,setRef:function(t){return o(e,t)}},i)}))}($,oe,ae,g,J,d,G),Ie=null;a&&(Ie=Mg(Mp({},l?"height":"maxHeight",a),eN),E&&(Ie.overflowY="hidden",g&&(Ie.overflowX="hidden"),L&&(Ie.pointerEvents="none")));var Te={};return O&&(Te.dir="rtl"),z.createElement("div",Zh({style:Mg(Mg({},c),{},{position:"relative"}),className:_},Te,C),z.createElement(ay,{onResize:function(e){ce({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},z.createElement(b,{className:"".concat(r,"-holder"),style:Ie,ref:j,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==I&&V(t),null==v||v(e),xe()},onMouseEnter:_e},z.createElement(Lj,{prefixCls:r,height:re,offsetX:R,offsetY:ie,scrollWidth:g,onInnerResize:Z,ref:N,innerProps:x,rtl:O,extra:Ne},Pe))),D&&re>a&&z.createElement(zj,{ref:ue,prefixCls:r,scrollOffset:I,scrollRange:re,rtl:O,onScroll:ke,onStartMove:H,onStopMove:W,spinSize:fe,containerSize:le.height,style:null==S?void 0:S.verticalScrollBar,thumbStyle:null==S?void 0:S.verticalScrollBarThumb}),D&&g&&z.createElement(zj,{ref:de,prefixCls:r,scrollOffset:R,scrollRange:g,rtl:O,onScroll:ke,onStartMove:H,onStopMove:W,spinSize:pe,containerSize:le.width,horizontal:!0,style:null==S?void 0:S.horizontalScrollBar,thumbStyle:null==S?void 0:S.horizontalScrollBarThumb}))}var nN=z.forwardRef(tN);nN.displayName="List";var rN=z.createContext(null);var oN=["disabled","title","children","style","className"];function aN(e){return"string"==typeof e||"number"==typeof e}var iN=function(e,t){var n=z.useContext(_$),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,p=z.useContext(rN),f=p.flattenOptions,h=p.onActiveValue,g=p.defaultActiveFirstOption,m=p.onSelect,b=p.menuItemSelectedIcon,v=p.rawValues,y=p.fieldNames,w=p.virtual,x=p.direction,k=p.listHeight,S=p.listItemHeight,C=p.optionRender,E="".concat(r,"-item"),D=Bg((function(){return f}),[a,f],(function(e,t){return t[0]&&e[1]!==t[1]})),O=z.useRef(null),_=function(e){e.preventDefault()},$=function(e){O.current&&O.current.scrollTo("number"==typeof e?{index:e}:e)},j=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},N=bm(z.useState((function(){return j(0)})),2),P=N[0],I=N[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?j(0):-1)}),[D.length,l]);var F=z.useCallback((function(e){return v.has(e)&&"combobox"!==s}),[s,Rg(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),$(t))}}));a&&(null===(e=O.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[a,l]);var R=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 gS.N:case gS.P:case gS.UP:case gS.DOWN:var r=0;if(t===gS.UP?r=-1:t===gS.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===gS.N?r=1:t===gS.P&&(r=-1)),0!==r){var o=j(P+r,r);$(o),T(o,!0)}break;case gS.ENTER:var i=D[P];i&&!i.data.disabled?R(i.value):R(void 0),a&&e.preventDefault();break;case gS.ESC:c(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){$(e)}}})),0===D.length)return z.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(E,"-empty"),onMouseDown:_},u);var A=Object.keys(y).map((function(e){return y[e]})),M=function(e){return e.label};function L(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var B=function(e){var t=D[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,a=oS(n,!0),i=M(t);return t?z.createElement("div",Zh({"aria-label":"string"!=typeof i||o?null:i},a,{key:e},L(t,e),{"aria-selected":F(r)}),r):null},H={role:"listbox",id:"".concat(o,"_list")};return z.createElement(z.Fragment,null,w&&z.createElement("div",Zh({},H,{style:{height:0,width:0,overflow:"hidden"}}),B(P-1),B(P),B(P+1)),z.createElement(nN,{itemKey:"key",ref:O,data:D,height:k,itemHeight:S,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:aN(i)?i.toString():void 0;return z.createElement("div",{className:Qb(E,"".concat(E,"-group")),title:u},void 0!==i?i:l)}var d=a.disabled,p=a.title;a.children;var f=a.style,h=a.className,g=iy(Lp(a,oN),A),m=F(s),v="".concat(E,"-option"),y=Qb(E,v,h,(Mp(n={},"".concat(v,"-grouped"),o),Mp(n,"".concat(v,"-active"),P===t&&!d),Mp(n,"".concat(v,"-disabled"),d),Mp(n,"".concat(v,"-selected"),m),n)),x=M(e),k=!b||"function"==typeof b||m,S="number"==typeof x?x:x||s,D=aN(S)?S.toString():void 0;return void 0!==p&&(D=p),z.createElement("div",Zh({},oS(g),w?{}:L(e,t),{"aria-selected":m,className:y,title:D,onMouseMove:function(){P===t||d||T(t)},onClick:function(){d||R(s)},style:f}),z.createElement("div",{className:"".concat(v,"-content")},"function"==typeof C?C(e,{index:t}):S),z.isValidElement(b)||m,k&&z.createElement(O$,{className:"".concat(E,"-option-state"),customizeIcon:b,customizeIconProps:{value:s,disabled:d,isSelected:m}},m?"✓":null))})))},sN=z.forwardRef(iN);sN.displayName="OptionList";function lN(e,t){return Y$(e).join("").toUpperCase().includes(t)}var cN=0,uN=nm();function dN(e){var t=bm(z.useState(),2),n=t[0],r=t[1];return z.useEffect((function(){var e;r("rc_select_".concat((uN?(e=cN,cN+=1):e="TEST_OR_SSR",e)))}),[]),e||n}var pN=["children","value"],fN=["children"];function hN(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return bv(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=Lp(i,fN);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value;return Mg({key:n,value:void 0!==a?a:n,children:o},Lp(r,pN))}(e):Mg(Mg({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},l),{},{options:hN(s)})})).filter((function(e){return e}))}function gN(e){var t=z.useRef();t.current=e;var n=z.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var mN=["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"],bN=["inputValue"];var vN=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,p=void 0===d||d,f=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,m=void 0===g||g,b=e.filterOption,v=e.filterSort,y=e.optionFilterProp,w=e.optionLabelProp,x=e.options,k=e.optionRender,S=e.children,C=e.defaultActiveFirstOption,E=e.menuItemSelectedIcon,D=e.virtual,O=e.direction,_=e.listHeight,$=void 0===_?200:_,j=e.listItemHeight,N=void 0===j?20:j,P=e.value,I=e.defaultValue,T=e.labelInValue,F=e.onChange,R=Lp(e,mN),A=dN(n),M=Fj(r),L=!(x||!S),B=z.useMemo((function(){return(void 0!==b||"combobox"!==r)&&b}),[b,r]),H=z.useMemo((function(){return Nj(s,L)}),[JSON.stringify(s),L]),W=bm(tx("",{value:void 0!==c?c:l,postState:function(e){return e||""}}),2),U=W[0],G=W[1],V=function(e,t,n,r,o){return z.useMemo((function(){var a=e;!e&&(a=hN(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,S,H,y,w),q=V.valueOptions,X=V.labelOptions,K=V.options,Y=z.useCallback((function(e){return Y$(e).map((function(e){var t,n,r,o,a,i;(function(e){return!e||"object"!==Rp(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=bm(tx(I,{value:P}),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?Mg(Mg({},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=bm(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 Mg(Mg({},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;G(function(e){return null!=e}(t)?String(t):"")}}),[re]);var se=gN((function(e,t){var n,r=null!=t?t:e;return Mp(n={},H.value,e),Mp(n,H.label,r),n})),le=z.useMemo((function(){if("tags"!==r)return K;var e=Rg(K);return Rg(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,K,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?lN(t[o],u):t[a]?lN(t["children"!==i?i:"label"],u):lN(t[s],u)},p=c?function(e){return Pj(e)}:function(e){return e};return e.forEach((function(e){if(e[a])if(d(n,p(e)))l.push(e);else{var t=e[a].filter((function(e){return d(n,p(e))}));t.length&&l.push(Mg(Mg({},e),{},Mp({},a,t)))}else d(n,p(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(Rg(ce))}),[se,y,r,ce,U,H]),de=z.useMemo((function(){return v?Rg(ue).sort((function(e,t){return v(e,t)})):ue}),[ue,v]),pe=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=Nj(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:jj(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:jj(t,o.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),o}(de,{fieldNames:H,childrenAsData:L})}),[de,H,L]),fe=function(e){var t=Y(e);if(Z(t),F&&(t.length!==re.length||t.some((function(e,t){var n;return(null===(n=re[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=T?t:t.map((function(e){return e.value})),r=t.map((function(e){return Pj(oe(e.value))}));F(M?n:n[0],M?r:r[0])}},he=bm(z.useState(null),2),ge=he[0],me=he[1],be=bm(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]),ke=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,Pj(n)]};if(t&&f){var o=bm(r(),2),a=o[0],i=o[1];f(a,i)}else if(!t&&h&&"clear"!==n){var s=bm(r(),2),l=s[0],c=s[1];h(l,c)}},Se=gN((function(e,t){var n,o=!M||t.selected;n=o?M?[].concat(Rg(re),[e]):[e]:re.filter((function(t){return t.value!==e})),fe(n),ke(e,o),"combobox"===r?me(""):Fj&&!p||(G(""),me(""))})),Ce=z.useMemo((function(){var e=!1!==D&&!1!==m;return Mg(Mg({},V),{},{flattenOptions:pe,onActiveValue:xe,defaultActiveFirstOption:we,onSelect:Se,menuItemSelectedIcon:E,rawValues:ie,fieldNames:H,virtual:e,direction:O,listHeight:$,listItemHeight:N,childrenAsData:L,optionRender:k})}),[V,pe,xe,we,Se,E,ie,H,D,m,$,N,L,k]);return z.createElement(rN.Provider,{value:Ce},z.createElement(Rj,Zh({},R,{id:A,prefixCls:a,ref:t,omitDomProps:bN,mode:r,displayValues:ae,onDisplayValuesChange:function(e,t){fe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){ke(e.value,!1,n)}))},direction:O,searchValue:U,onSearch:function(e,t){if(G(e),me(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&fe(e),null==u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(Rg(ie),[n])));fe(o),ke(n,!0),G("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map((function(e){var t=X.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Rg(ie),Rg(t))));fe(n),n.forEach((function(e){ke(e,!0)}))},dropdownMatchSelectWidth:m,OptionList:sN,emptyOptions:!pe.length,activeValue:ge,activeDescendantId:"".concat(A,"_list_").concat(ve)})))})),yN=vN;function wN(e,t,n){return Qb({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}yN.Option=Mj,yN.OptGroup=Aj;const xN=(e,t)=>t||e,kN=()=>{const[,e]=Qw(),t=new ew(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"}))))},SN=()=>{const[,e]=Qw(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:a,shadowColor:i,contentColor:s}=z.useMemo((()=>({borderColor:new ew(t).onBackground(o).toHexShortString(),shadowColor:new ew(n).onBackground(o).toHexShortString(),contentColor:new ew(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}))))},CN=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}}}}},EN=gx("Empty",(e=>{const{componentCls:t,controlHeightLG:n}=e,r=dx(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[CN(r)]}));var DN=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 ON=z.createElement(kN,null),_N=z.createElement(SN,null),$N=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=ON,description:a,children:i,imageStyle:s,style:l}=e,c=DN(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:p}=z.useContext(Tw),f=u("empty",r),[h,g]=EN(f),[m]=Ty("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:Qb(g,f,null==p?void 0:p.className,{[`${f}-normal`]:o===_N,[`${f}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),l)},c),z.createElement("div",{className:`${f}-image`,style:s},y),b&&z.createElement("div",{className:`${f}-description`},b),i&&z.createElement("div",{className:`${f}-footer`},i)))};$N.PRESENTED_IMAGE_DEFAULT=ON,$N.PRESENTED_IMAGE_SIMPLE=_N;const jN=$N,NN=e=>{const{componentName:t}=e,{getPrefixCls:n}=z.useContext(Tw),r=n("empty");switch(t){case"Table":case"List":return H.createElement(jN,{image:jN.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return H.createElement(jN,{image:jN.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return H.createElement(jN,null)}},PN=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"}},IN=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({},ox(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:UO},[`\n ${o}${s}topLeft,\n ${a}${s}topLeft,\n ${o}${s}topRight,\n ${a}${s}topRight\n `]:{animationName:VO},[`${i}${s}bottomLeft`]:{animationName:GO},[`\n ${i}${s}topLeft,\n ${i}${s}topRight\n `]:{animationName:qO},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},PN(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"},rx),"&-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"}})},ZO(e,"slide-up"),ZO(e,"slide-down"),WO(e,"move-up"),WO(e,"move-down")]},TN=e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;const o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function FN(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,[i]=TN(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 RN=e=>{const{componentCls:t}=e,n=dx(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=dx(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=TN(e);return[FN(e),FN(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},FN(r,"lg")]};function AN(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({},ox(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 MN(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[AN(e),AN(dx(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}}}},AN(dx(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const LN=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"}}}},BN=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}})}}},zN=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"}}}},HN=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},ox(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},LN(e)),zN(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},rx),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},rx),{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}}}},WN=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%"}}},HN(e),MN(e),RN(e),IN(e),{[`${t}-rtl`]:{direction:"rtl"}},BN(t,dx(e,{borderHoverColor:e.colorPrimaryHover,borderActiveColor:e.colorPrimary,outlineColor:e.controlOutline})),BN(`${t}-status-error`,dx(e,{borderHoverColor:e.colorErrorHover,borderActiveColor:e.colorError,outlineColor:e.colorErrorOutline}),!0),BN(`${t}-status-warning`,dx(e,{borderHoverColor:e.colorWarningHover,borderActiveColor:e.colorWarning,outlineColor:e.colorWarningOutline}),!0),yE(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},UN=gx("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=dx(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1,multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[WN(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:p,controlHeightSM:f,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:p,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent"}}));function GN(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 VN={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 qN=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:VN}))};const XN=z.forwardRef(qN);const KN={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 YN=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:KN}))};const QN=z.forwardRef(YN);const JN={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 ZN=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:JN}))};const eP=z.forwardRef(ZN);var tP=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 nP="SECRET_COMBOBOX_MODE_DO_NOT_USE",rP=(e,t)=>{var n,r,{prefixCls:o,bordered:a=!0,className:i,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:p,listItemHeight:f=24,size:h,disabled:g,notFoundContent:m,status:b,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:w,direction:x,style:k,allowClear:S}=e,C=tP(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:$,popupMatchSelectWidth:j,popupOverflow:N,select:P}=z.useContext(Tw),I=D("select",o),T=D(),F=null!=x?x:_,{compactSize:R,compactItemClassnames:A}=_C(I,F),[M,L]=UN(I),B=z.useMemo((()=>{const{mode:e}=C;if("combobox"!==e)return e===nP?"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:j,{status:G,hasFeedback:V,isFormItemInput:q,feedbackIcon:X}=z.useContext(xO),K=xN(G,b);let Y;Y=void 0!==m?m:"combobox"===B?null:(null==O?void 0:O("Select"))||z.createElement(NN,{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:p}=e;const f=null!=n?n:z.createElement(Uk,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(_S,{spin:!0}));else{const e=`${l}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return h(n&&r?z.createElement(eP,{className:e}):z.createElement(QN,{className:e}))}}let m=null;m=void 0!==r?r:i?z.createElement(XN,null):null;let b=null;return b=void 0!==o?o:z.createElement(qk,null),{clearIcon:f,suffixIcon:g,itemIcon:m,removeIcon:b}}(Object.assign(Object.assign({},C),{multiple:H,hasFeedback:V,feedbackIcon:X,showSuffixIcon:W,prefixCls:I,showArrow:C.showArrow,componentName:"Select"})),te=!0===S?{clearIcon:ee}:S,ne=iy(C,["suffixIcon","itemIcon"]),re=Qb(c||u,{[`${I}-dropdown-${F}`]:"rtl"===F},s,L),oe=xC((e=>{var t;return null!==(t=null!=h?h:R)&&void 0!==t?t:e})),ae=z.useContext(Lw),ie=null!=g?g:ae,se=Qb({[`${I}-lg`]:"large"===oe,[`${I}-sm`]:"small"===oe,[`${I}-rtl`]:"rtl"===F,[`${I}-borderless`]:!a,[`${I}-in-form-item`]:q},wN(I,K,V),A,null==P?void 0:P.className,i,s,L),le=z.useMemo((()=>void 0!==p?p:"rtl"===F?"bottomRight":"bottomLeft"),[p,F]),ce=GN(v,N),[ue]=E_("SelectLike",null===(r=C.dropdownStyle)||void 0===r?void 0:r.zIndex);return M(z.createElement(yN,Object.assign({ref:t,virtual:$,showSearch:null==P?void 0:P.showSearch},ne,{style:Object.assign(Object.assign({},null==P?void 0:P.style),k),dropdownMatchSelectWidth:U,builtinPlacements:ce,transitionName:dC(T,"slide-up",C.transitionName),listHeight:d,listItemHeight:f,mode:B,prefixCls:I,placement:le,direction:F,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})})))},oP=z.forwardRef(rP),aP=function(e,t,n,r){return E$((function(o){const{prefixCls:a,style:i}=o,s=z.useRef(null),[l,c]=z.useState(0),[u,d]=z.useState(0),[p,f]=tx(!1,{value:o.open}),{getPrefixCls:h}=z.useContext(Tw),g=h(t||"select",a);z.useEffect((()=>{if(f(!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:p,visible:p,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)))}))}(oP);oP.SECRET_COMBOBOX_MODE_DO_NOT_USE=nP,oP.Option=Mj,oP.OptGroup=Aj,oP._InternalPanelDoNotUseOrYouWillBeFired=aP;const iP=oP,sP=["xxl","xl","lg","md","sm","xs"],lP=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)`}),cP=e=>{const t=e,n=[].concat(sP).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 uP(){const[,e]=Qw(),t=lP(cP(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 dP(){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=uP();return Pm((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}function pP(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:Qb("".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 fP={shiftX:64,adjustY:1},hP={adjustX:1,shiftY:!0},gP=[0,0],mP={left:{points:["cr","cl"],overflow:hP,offset:[-4,0],targetOffset:gP},right:{points:["cl","cr"],overflow:hP,offset:[4,0],targetOffset:gP},top:{points:["bc","tc"],overflow:fP,offset:[0,-4],targetOffset:gP},bottom:{points:["tc","bc"],overflow:fP,offset:[0,4],targetOffset:gP},topLeft:{points:["bl","tl"],overflow:fP,offset:[0,-4],targetOffset:gP},leftTop:{points:["tr","tl"],overflow:hP,offset:[-4,0],targetOffset:gP},topRight:{points:["br","tr"],overflow:fP,offset:[0,-4],targetOffset:gP},rightTop:{points:["tl","tr"],overflow:hP,offset:[4,0],targetOffset:gP},bottomRight:{points:["tr","br"],overflow:fP,offset:[0,4],targetOffset:gP},rightBottom:{points:["bl","br"],overflow:hP,offset:[4,0],targetOffset:gP},bottomLeft:{points:["tl","bl"],overflow:fP,offset:[0,4],targetOffset:gP},leftBottom:{points:["br","bl"],overflow:hP,offset:[-4,0],targetOffset:gP}},bP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],vP=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,p=e.children,f=e.onVisibleChange,h=e.afterVisibleChange,g=e.transitionName,m=e.animation,b=e.motion,v=e.placement,y=void 0===v?"right":v,w=e.align,x=void 0===w?{}:w,k=e.destroyTooltipOnHide,S=void 0!==k&&k,C=e.defaultVisible,E=e.getTooltipContainer,D=e.overlayInnerStyle;e.arrowContent;var O=e.overlay,_=e.id,$=e.showArrow,j=void 0===$||$,N=Lp(e,bP),P=z.useRef(null);z.useImperativeHandle(t,(function(){return P.current}));var I=Mg({},N);"visible"in e&&(I.popupVisible=e.visible);return z.createElement(Dj,Zh({popupClassName:n,prefixCls:d,popup:function(){return z.createElement(pP,{key:"content",prefixCls:d,id:_,overlayInnerStyle:D},O)},action:o,builtinPlacements:mP,popupPlacement:y,ref:P,popupAlign:x,getPopupContainer:E,onPopupVisibleChange:f,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:m,popupMotion:b,defaultPopupVisible:C,autoDestroy:S,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:i,arrow:j},I),p)};const yP=z.forwardRef(vP),wP=8;function xP(e){const t=wP,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function kP(e,t){return e?t:{}}function SP(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:p,dropdownArrowOffset:f}=xP({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"},nx(r,o,a,s,i)),{"&:before":{background:s}})]},kP(!!d.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),kP(!!d.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:u,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:f}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:f}}})),kP(!!d.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p}})),kP(!!d.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p}}))}}const CP={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"]}},EP={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"]}},DP=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function OP(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:i}=e,s=t/2,l={};return Object.keys(CP).forEach((e=>{const c=r&&EP[e]||CP[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,DP.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=xP({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 _P=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({},ox(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,wP)}},[`${t}-content`]:{position:"relative"}}),bx(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},SP(dx(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$P=(e,t)=>gx("Tooltip",(e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:a}=e,i=dx(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:a>4?4:a});return[_P(i),f_(e,"zoom-big-fast")]}),(e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}}),{resetStyle:!1})(e),jP=Ww.map((e=>`${e}-inverse`)),NP=["success","processing","error","default","warning"];function PP(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Rg(jP),Rg(Ww)).includes(e):Ww.includes(e)}function IP(e,t){const n=PP(t),r=Qb({[`${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 TP=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=z.useContext(Tw),l=s("tooltip",t),[c,u]=$P(l,!0),d=IP(l,a),p=d.arrowStyle,f=Object.assign(Object.assign({},i),d.overlayStyle),h=Qb(u,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(z.createElement("div",{className:h,style:p},z.createElement("div",{className:`${l}-arrow`}),z.createElement(pP,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:f}),o)))};var FP=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 RP=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:p,destroyTooltipOnHide:f,arrow:h=!0,title:g,overlay:m,builtinPlacements:b,arrowPointAtCenter:v=!1,autoAdjustOverflow:y=!0}=e,w=!!h,[,x]=Qw(),{getPopupContainer:k,getPrefixCls:S,direction:C}=z.useContext(Tw),E=Sy(),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[_,$]=tx(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),j=!g&&!m&&0!==g,N=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||OP({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:w?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[v,h,b,x]),P=z.useMemo((()=>0===g?g:m||g||""),[m,g]),I=z.createElement($C,null,"function"==typeof P?P():P),{getPopupContainer:T,placement:F="top",mouseEnterDelay:R=.1,mouseLeaveDelay:A=.1,overlayStyle:M,rootClassName:L}=e,B=FP(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=S("tooltip",o),W=S(),U=e["data-popover-inject"];let G=_;"open"in e||"visible"in e||!j||(G=!1);const V=aS(u)&&!iS(u)?u:z.createElement("span",null,u),q=V.props,X=q.className&&"string"!=typeof q.className?q.className:Qb(q.className,a||`${H}-open`),[K,Y]=$P(H,!U),Q=IP(H,l),J=Q.arrowStyle,Z=Object.assign(Object.assign({},c),Q.overlayStyle),ee=Qb(s,{[`${H}-rtl`]:"rtl"===C},Q.className,L,Y),[te,ne]=E_("Tooltip",B.zIndex),re=z.createElement(yP,Object.assign({},B,{zIndex:U?B.zIndex:te,showArrow:w,placement:F,mouseEnterDelay:R,mouseLeaveDelay:A,prefixCls:H,overlayClassName:ee,overlayStyle:Object.assign(Object.assign({},J),M),getTooltipContainer:T||i||k,ref:D,builtinPlacements:N,overlay:I,visible:G,onVisibleChange:t=>{var n,r;$(!j&&t),j||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:p,overlayInnerStyle:Z,arrowContent:z.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:dC(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!f}),G?sS(V,{className:X}):V);return K(z.createElement(rD.Provider,{value:ne},re))}));RP._InternalPanelDoNotUseOrYouWillBeFired=TP;const AP=RP;const MP={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 LP=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:MP}))};const BP=z.forwardRef(LP);var zP=gS.ESC,HP=gS.TAB;var WP=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=xv(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:Sv(a)?i:void 0}))})),UP={adjustX:1,adjustY:1},GP=[0,0],VP={topLeft:{points:["bl","tl"],overflow:UP,offset:[0,-4],targetOffset:GP},top:{points:["bc","tc"],overflow:UP,offset:[0,-4],targetOffset:GP},topRight:{points:["br","tr"],overflow:UP,offset:[0,-4],targetOffset:GP},bottomLeft:{points:["tl","bl"],overflow:UP,offset:[0,4],targetOffset:GP},bottom:{points:["tc","bc"],overflow:UP,offset:[0,4],targetOffset:GP},bottomRight:{points:["tr","br"],overflow:UP,offset:[0,4],targetOffset:GP}},qP=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function XP(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,p=e.placements,f=void 0===p?VP:p,h=e.getPopupContainer,g=e.showAction,m=e.hideAction,b=e.overlayClassName,v=e.overlayStyle,y=e.visible,w=e.trigger,x=void 0===w?["hover"]:w,k=e.autoFocus,S=e.overlay,C=e.children,E=e.onVisibleChange,D=Lp(e,qP),O=bm(H.useState(),2),_=O[0],$=O[1],j="visible"in e?y:_,N=H.useRef(null),P=H.useRef(null),I=H.useRef(null);H.useImperativeHandle(t,(function(){return N.current}));var T=function(e){$(e),null==E||E(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,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 zP:s();break;case HP:var t=!1;i.current||(t=l()),t?e.preventDefault():s()}};z.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&py(l,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}}),[t])}({visible:j,triggerRef:I,onVisibleChange:T,autoFocus:k,overlayRef:P});var F,R,A,M=function(){return H.createElement(WP,{ref:P,overlay:S,prefixCls:i,arrow:o})},L=H.cloneElement(C,{className:Qb(null===(n=C.props)||void 0===n?void 0:n.className,j&&(F=e.openClassName,void 0!==F?F:"".concat(i,"-open"))),ref:Sv(C)?xv(I,C.ref):void 0}),B=m;return B||-1===x.indexOf("contextMenu")||(B=["click"]),H.createElement(Dj,Zh({builtinPlacements:f},D,{prefixCls:i,ref:N,popupClassName:Qb(b,Mp({},"".concat(i,"-show-arrow"),o)),popupStyle:v,action:x,showAction:g,hideAction:B,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:j,stretch:(R=e.minOverlayWidthMatchTrigger,A=e.alignPoint,("minOverlayWidthMatchTrigger"in e?R:!A)?"minWidth":""),popup:"function"==typeof S?M:M(),onPopupVisibleChange:T,onPopupClick:function(t){var n=e.onOverlayClick;$(!1),n&&n(t)},getPopupContainer:h}),L)}const KP=H.forwardRef(XP);var YP=z.createContext(null);function QP(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function JP(e){return QP(z.useContext(YP),e)}var ZP=["children","locked"],eI=z.createContext(null);function tI(e){var t=e.children,n=e.locked,r=Lp(e,ZP),o=z.useContext(eI),a=Bg((function(){return e=r,t=Mg({},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]&&Vg(e[1],t[1],!0))}));return z.createElement(eI.Provider,{value:a},t)}var nI=[],rI=z.createContext(null);function oI(){return z.useContext(rI)}var aI=z.createContext(nI);function iI(e){var t=z.useContext(aI);return z.useMemo((function(){return void 0!==e?[].concat(Rg(t),[e]):t}),[t,e])}var sI=z.createContext(null),lI=z.createContext({});function cI(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(pC(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 uI=gS.LEFT,dI=gS.RIGHT,pI=gS.UP,fI=gS.DOWN,hI=gS.ENTER,gI=gS.ESC,mI=gS.HOME,bI=gS.END,vI=[pI,fI,uI,dI];function yI(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Rg(e.querySelectorAll("*")).filter((function(e){return cI(e,t)}));return cI(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function wI(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=yI(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 xI(e,t,n,r,o,a,i,s,l,c){var u=z.useRef(),d=z.useRef();d.current=t;var p=function(){py.cancel(u.current)};return z.useEffect((function(){return function(){p()}}),[]),function(f){var h=f.which;if([].concat(vI,[hI,gI,mI,bI]).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(QP(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===hI)return{inlineTrigger:!0};var p=(Mp(o={},pI,l),Mp(o,fI,c),o),f=(Mp(a={},uI,n?c:l),Mp(a,dI,n?l:c),Mp(a,fI,u),Mp(a,hI,u),a),h=(Mp(i={},pI,l),Mp(i,fI,c),Mp(i,hI,u),Mp(i,gI,d),Mp(i,uI,n?u:d),Mp(i,dI,n?d:u),i);switch(null===(s={inline:p,horizontal:f,vertical:h,inlineSub:p,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!==mI&&h!==bI)return;(vI.includes(h)||[mI,bI].includes(h))&&f.preventDefault();var k=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),p(),u.current=py((function(){d.current===r&&t.focus()}))}};if([mI,bI].includes(h)||x.sibling||!y){var S,C,E=yI(S=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===mI?E[0]:h===bI?E[E.length-1]:wI(S,g,y,x.offset),k(C)}else if(x.inlineTrigger)l(w);else if(x.offset>0)l(w,!0),p(),u.current=py((function(){v();var e=y.getAttribute("aria-controls"),t=wI(document.getElementById(e),g);k(t)}),5);else if(x.offset<0){var D=i(w,!0),O=D[D.length-2],_=m.get(O);l(O,!1),k(_)}}null==c||c(f)}}var kI="__RC_UTIL_PATH_SPLIT__",SI=function(e){return e.join(kI)},CI="rc-menu-more";function EI(){var e=bm(z.useState({}),2)[1],t=z.useRef(new Map),n=z.useRef(new Map),r=bm(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=SI(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=SI(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(kI);return n&&o.includes(a[0])&&a.unshift(CI),a}),[o]),p=z.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),f=z.useCallback((function(e){var r="".concat(t.current.get(e)).concat(kI),o=new Set;return Rg(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:p,getKeyPath:d,getKeys:function(){var e=Rg(t.current.keys());return o.length&&e.push(CI),e},getSubPathKeys:f}}function DI(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 OI=Math.random().toFixed(5).toString().slice(2),_I=0;function $I(e,t,n,r){var o=z.useContext(eI),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 jI(e){var t=z.useContext(eI),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function NI(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,Mg({},r)):"boolean"!=typeof n&&(t=n),t||o||null)}var PI=["item"];function II(e){var t=e.item,n=Lp(e,PI);return Object.defineProperty(n,"item",{get:function(){return Gg(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var TI=["title","attribute","elementRef"],FI=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],RI=["active"],AI=function(e){Yv(n,z.Component);var t=ey(n);function n(){return mf(this,n),t.apply(this,arguments)}return vf(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=iy(Lp(e,TI),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Gg(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),z.createElement(q$.Item,Zh({},n,{title:"string"==typeof t?t:void 0},o,{ref:r}))}}]),n}(),MI=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,p=e.onClick,f=e.onKeyDown,h=e.onFocus,g=Lp(e,FI),m=JP(a),b=z.useContext(eI),v=b.prefixCls,y=b.onItemClick,w=b.disabled,x=b.overflowDisabled,k=b.itemIcon,S=b.selectedKeys,C=b.onActive,E=z.useContext(lI)._internalRenderMenuItem,D="".concat(v,"-item"),O=z.useRef(),_=z.useRef(),$=w||i,j=kv(t,_),N=iI(a),P=function(e){return{key:a,keyPath:Rg(N).reverse(),item:O.current,domEvent:e}},I=s||k,T=$I(a,$,u,d),F=T.active,R=Lp(T,RI),A=S.includes(a),M=jI(N.length),L={};"option"===e.role&&(L["aria-selected"]=A);var B=z.createElement(AI,Zh({ref:O,elementRef:j,role:null===c?"none":c||"menuitem",tabIndex:i?null:-1,"data-menu-id":x&&m?null:m},g,R,L,{component:"li","aria-disabled":i,style:Mg(Mg({},M),r),className:Qb(D,(n={},Mp(n,"".concat(D,"-active"),F),Mp(n,"".concat(D,"-selected"),A),Mp(n,"".concat(D,"-disabled"),$),n),o),onClick:function(e){if(!$){var t=P(e);null==p||p(II(t)),y(t)}},onKeyDown:function(e){if(null==f||f(e),e.which===gS.ENTER){var t=P(e);null==p||p(II(t)),y(t)}},onFocus:function(e){C(a),null==h||h(e)}}),l,z.createElement(NI,{props:Mg(Mg({},e),{},{isSelected:A}),icon:I}));return E&&(B=E(B,e,{selected:A})),B}));function LI(e,t){var n=e.eventKey,r=oI(),o=iI(n);return z.useEffect((function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}}),[o]),r?null:z.createElement(MI,Zh({},e,{ref:t}))}const BI=z.forwardRef(LI);var zI=["className","children"],HI=function(e,t){var n=e.className,r=e.children,o=Lp(e,zI),a=z.useContext(eI),i=a.prefixCls,s=a.mode,l=a.rtl;return z.createElement("ul",Zh({className:Qb(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)},WI=z.forwardRef(HI);function UI(e,t){return bv(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(Rg(t),[n]).join("-")));var s={key:i,eventKey:i};return z.cloneElement(e,s)}return e}))}WI.displayName="SubMenuList";var GI={adjustX:1,adjustY:1},VI={topLeft:{points:["bl","tl"],overflow:GI},topRight:{points:["br","tr"],overflow:GI},bottomLeft:{points:["tl","bl"],overflow:GI},bottomRight:{points:["tr","br"],overflow:GI},leftTop:{points:["tr","tl"],overflow:GI},leftBottom:{points:["br","bl"],overflow:GI},rightTop:{points:["tl","tr"],overflow:GI},rightBottom:{points:["bl","br"],overflow:GI}},qI={topLeft:{points:["bl","tl"],overflow:GI},topRight:{points:["br","tr"],overflow:GI},bottomLeft:{points:["tl","bl"],overflow:GI},bottomRight:{points:["tr","br"],overflow:GI},rightTop:{points:["tr","tl"],overflow:GI},rightBottom:{points:["br","bl"],overflow:GI},leftTop:{points:["tl","tr"],overflow:GI},leftBottom:{points:["bl","br"],overflow:GI}};function XI(e,t,n){return t||(n?n[e]||n.other:void 0)}var KI={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function YI(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(eI),p=d.getPopupContainer,f=d.rtl,h=d.subMenuOpenDelay,g=d.subMenuCloseDelay,m=d.builtinPlacements,b=d.triggerSubMenuAction,v=d.forceSubMenuRender,y=d.rootClassName,w=d.motion,x=d.defaultMotions,k=bm(z.useState(!1),2),S=k[0],C=k[1],E=Mg(Mg({},f?qI:VI),m),D=KI[c],O=XI(c,w,x),_=z.useRef(O);"inline"!==c&&(_.current=O);var $=Mg(Mg({},_.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),j=z.useRef();return z.useEffect((function(){return j.current=py((function(){C(n)})),function(){py.cancel(j.current)}}),[n]),z.createElement(Dj,{prefixCls:t,popupClassName:Qb("".concat(t,"-popup"),Mp({},"".concat(t,"-rtl"),f),i,y),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:p,builtinPlacements:E,popupPlacement:D,popupVisible:S,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:h,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:v,popupMotion:$,fresh:!0},r)}function QI(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",i=z.useContext(eI),s=i.prefixCls,l=i.forceSubMenuRender,c=i.motion,u=i.defaultMotions,d=i.mode,p=z.useRef(!1);p.current=d===a;var f=bm(z.useState(!p.current),2),h=f[0],g=f[1],m=!!p.current&&n;z.useEffect((function(){p.current&&g(!1)}),[d]);var b=Mg({},XI(a,c,u));r.length>1&&(b.motionAppear=!1);var v=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||g(!0),null==v?void 0:v(e)},h?null:z.createElement(tI,{mode:a,locked:!p.current},z.createElement(tk,Zh({visible:m},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,r=e.style;return z.createElement(WI,{id:t,className:n,style:r},o)})))}var JI=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ZI=["active"],eT=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,p=e.popupOffset,f=e.popupStyle,h=e.onClick,g=e.onMouseEnter,m=e.onMouseLeave,b=e.onTitleClick,v=e.onTitleMouseEnter,y=e.onTitleMouseLeave,w=Lp(e,JI),x=JP(a),k=z.useContext(eI),S=k.prefixCls,C=k.mode,E=k.openKeys,D=k.disabled,O=k.overflowDisabled,_=k.activeKey,$=k.selectedKeys,j=k.itemIcon,N=k.expandIcon,P=k.onItemClick,I=k.onOpenChange,T=k.onActive,F=z.useContext(lI)._internalRenderSubMenuItem,R=z.useContext(sI).isSubPathKey,A=iI(),M="".concat(S,"-submenu"),L=D||i,B=z.useRef(),H=z.useRef(),W=null!=c?c:j,U=null!=u?u:N,G=E.includes(a),V=!O&&G,q=R($,a),X=$I(a,L,v,y),K=X.active,Y=Lp(X,ZI),Q=bm(z.useState(!1),2),J=Q[0],Z=Q[1],ee=function(e){L||Z(e)},te=z.useMemo((function(){return K||"inline"!==C&&(J||R([_],a))}),[C,K,_,J,a,R]),ne=jI(A.length),re=DI((function(e){null==h||h(II(e)),P(e)})),oe=x&&"".concat(x,"-popup"),ae=z.createElement("div",Zh({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":V,"aria-haspopup":!0,"aria-controls":oe,"aria-disabled":L,onClick:function(e){L||(null==b||b({key:a,domEvent:e}),"inline"===C&&I(a,!G))},onFocus:function(){T(a)}},Y),o,z.createElement(NI,{icon:"horizontal"!==C?U:void 0,props:Mg(Mg({},e),{},{isOpen:V,isSubMenu:!0})},z.createElement("i",{className:"".concat(M,"-arrow")}))),ie=z.useRef(C);if("inline"!==C&&A.length>1?ie.current="vertical":ie.current=C,!O){var se=ie.current;ae=z.createElement(YI,{mode:se,prefixCls:M,visible:!s&&V&&"inline"!==C,popupClassName:d,popupOffset:p,popupStyle:f,popup:z.createElement(tI,{mode:"horizontal"===se?"vertical":se},z.createElement(WI,{id:oe,ref:H},l)),disabled:L,onVisibleChange:function(e){"inline"!==C&&I(a,e)}},ae)}var le=z.createElement(q$.Item,Zh({role:"none"},w,{component:"li",style:n,className:Qb(M,"".concat(M,"-").concat(C),r,(t={},Mp(t,"".concat(M,"-open"),V),Mp(t,"".concat(M,"-active"),te),Mp(t,"".concat(M,"-selected"),q),Mp(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(QI,{id:oe,open:V,keyPath:A},l));return F&&(le=F(le,e,{selected:q,active:te,open:V,disabled:L})),z.createElement(tI,{onItemClick:re,mode:"horizontal"===C?"vertical":C,itemIcon:W,expandIcon:U},le)};function tT(e){var t,n=e.eventKey,r=e.children,o=iI(n),a=UI(r,o),i=oI();return z.useEffect((function(){if(i)return i.registerPath(n,o),function(){i.unregisterPath(n,o)}}),[o]),t=i?a:z.createElement(eT,e,a),z.createElement(aI.Provider,{value:o},t)}var nT=["className","title","eventKey","children"],rT=["children"],oT=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=Lp(e,nT),a=z.useContext(eI).prefixCls,i="".concat(a,"-item-group");return z.createElement("li",Zh({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:Qb(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 aT(e){var t=e.children,n=Lp(e,rT),r=UI(t,iI(n.eventKey));return oI()?r:z.createElement(oT,iy(n,["warnKey"]),r)}function iT(e){var t=e.className,n=e.style,r=z.useContext(eI).prefixCls;return oI()?null:z.createElement("li",{role:"separator",className:Qb("".concat(r,"-item-divider"),t),style:n})}var sT=["label","children","key","type"];function lT(e){return(e||[]).map((function(e,t){if(e&&"object"===Rp(e)){var n=e,r=n.label,o=n.children,a=n.key,i=n.type,s=Lp(n,sT),l=null!=a?a:"tmp-".concat(t);return o||"group"===i?"group"===i?z.createElement(aT,Zh({key:l},s,{title:r}),lT(o)):z.createElement(tT,Zh({key:l},s,{title:r}),lT(o)):"divider"===i?z.createElement(iT,Zh({key:l},s)):z.createElement(BI,Zh({key:l},s),r)}return null})).filter((function(e){return e}))}function cT(e,t,n){var r=e;return t&&(r=lT(t)),UI(r,n)}var uT=["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"],dT=[],pT=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,p=o.items,f=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,k=void 0===x?.1:x,S=o.subMenuCloseDelay,C=void 0===S?.1:S,E=o.forceSubMenuRender,D=o.defaultOpenKeys,O=o.openKeys,_=o.activeKey,$=o.defaultActiveFirst,j=o.selectable,N=void 0===j||j,P=o.multiple,I=void 0!==P&&P,T=o.defaultSelectedKeys,F=o.selectedKeys,R=o.onSelect,A=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,G=o.builtinPlacements,V=o.itemIcon,q=o.expandIcon,X=o.overflowedIndicator,K=void 0===X?"...":X,Y=o.overflowedIndicatorPopupClassName,Q=o.getPopupContainer,J=o.onClick,Z=o.onOpenChange,ee=o.onKeyDown;o.openAnimation,o.openTransitionName;var te=o._internalRenderMenuItem,ne=o._internalRenderSubMenuItem,re=Lp(o,uT),oe=z.useMemo((function(){return cT(f,p,dT)}),[f,p]),ae=bm(z.useState(!1),2),ie=ae[0],se=ae[1],le=z.useRef(),ce=function(e){var t=bm(tx(e,{value:e}),2),n=t[0],r=t[1];return z.useEffect((function(){_I+=1;var e="".concat(OI,"-").concat(_I);r("rc-menu-uuid-".concat(e))}),[]),n}(g),ue="rtl"===h,de=bm(tx(D,{value:O,postState:function(e){return e||dT}}),2),pe=de[0],fe=de[1],he=function(e){function t(){fe(e),null==Z||Z(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?ad.flushSync(t):t()},ge=bm(z.useState(pe),2),me=ge[0],be=ge[1],ve=z.useRef(!1),ye=bm(z.useMemo((function(){return"inline"!==b&&"vertical"!==b||!v?[b,!1]:["vertical",v]}),[b,v]),2),we=ye[0],xe=ye[1],ke="inline"===we,Se=bm(z.useState(we),2),Ce=Se[0],Ee=Se[1],De=bm(z.useState(xe),2),Oe=De[0],_e=De[1];z.useEffect((function(){Ee(we),_e(xe),ve.current&&(ke?fe(me):he(dT))}),[we,xe]);var $e=bm(z.useState(0),2),je=$e[0],Ne=$e[1],Pe=je>=oe.length-1||"horizontal"!==Ce||w;z.useEffect((function(){ke&&be(pe)}),[pe]),z.useEffect((function(){return ve.current=!0,function(){ve.current=!1}}),[]);var Ie=EI(),Te=Ie.registerPath,Fe=Ie.unregisterPath,Re=Ie.refreshOverflowKeys,Ae=Ie.isSubPathKey,Me=Ie.getKeyPath,Le=Ie.getKeys,Be=Ie.getSubPathKeys,ze=z.useMemo((function(){return{registerPath:Te,unregisterPath:Fe}}),[Te,Fe]),He=z.useMemo((function(){return{isSubPathKey:Ae}}),[Ae]);z.useEffect((function(){Re(Pe?dT:oe.slice(je+1).map((function(e){return e.key})))}),[je,Pe]);var We=bm(tx(_||$&&(null===(n=oe[0])||void 0===n?void 0:n.key),{value:_}),2),Ue=We[0],Ge=We[1],Ve=DI((function(e){Ge(e)})),qe=DI((function(){Ge(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(QP(ce,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var Xe=bm(tx(T||[],{value:F,postState:function(e){return Array.isArray(e)?e:null==e?dT:[e]}}),2),Ke=Xe[0],Ye=Xe[1],Qe=DI((function(e){null==J||J(II(e)),function(e){if(N){var t,n=e.key,r=Ke.includes(n);t=I?r?Ke.filter((function(e){return e!==n})):[].concat(Rg(Ke),[n]):[n],Ye(t);var o=Mg(Mg({},e),{},{selectedKeys:t});r?null==A||A(o):null==R||R(o)}!I&&pe.length&&"inline"!==Ce&&he(dT)}(e)})),Je=DI((function(e,t){var n=pe.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)}))}Vg(pe,n,!0)||he(n,!0)})),Ze=xI(Ce,Ue,ue,ce,le,Le,Me,Ge,(function(e,t){var n=null!=t?t:!pe.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(tI,{key:e.key,overflowDisabled:t>je},e)})),nt=z.createElement(q$,Zh({id:g,ref:le,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:BI,className:Qb(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ce),c,(r={},Mp(r,"".concat(i,"-inline-collapsed"),Oe),Mp(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(tT,{eventKey:CI,title:K,disabled:Pe,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==Ce||w?q$.INVALIDATE:q$.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ne(e)},onKeyDown:Ze},re));return z.createElement(lI.Provider,{value:et},z.createElement(YP.Provider,{value:ce},z.createElement(tI,{prefixCls:i,rootClassName:s,mode:Ce,openKeys:pe,rtl:ue,disabled:y,motion:ie?B:null,defaultMotions:ie?H:null,activeKey:Ue,onActive:Ve,onInactive:qe,selectedKeys:Ke,inlineIndent:L,subMenuOpenDelay:k,subMenuCloseDelay:C,forceSubMenuRender:E,builtinPlacements:G,triggerSubMenuAction:U,getPopupContainer:Q,itemIcon:V,expandIcon:q,onItemClick:Qe,onOpenChange:Je},z.createElement(sI.Provider,{value:He},nt),z.createElement("div",{style:{display:"none"},"aria-hidden":!0},z.createElement(rI.Provider,{value:ze},oe)))))}));pT.Item=BI,pT.SubMenu=tT,pT.ItemGroup=aT,pT.Divider=iT,globalThis&&globalThis.__rest;const fT=z.createContext({});var hT=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 gT=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=hT(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=z.useContext(Tw),i=a("menu",t),s=Qb({[`${i}-item-divider-dashed`]:!!r},n);return z.createElement(iT,Object.assign({className:s},o))},mT=z.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),bT=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(mT),{siderCollapsed:p}=z.useContext(fT);let f=a;void 0===a?f=l?r:"":!1===a&&(f="");const h={title:f};p||d||(h.title=null,h.open=!1);const g=bv(r).length;let m=z.createElement(BI,Object.assign({},iy(e,["title","icon","danger"]),{className:Qb({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:1===(o?g+1:g)},n),title:"string"==typeof a?a:void 0}),sS(o,{className:Qb(aS(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||aS(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(AP,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),m)),m},vT=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,i=z.useContext(mT),{prefixCls:s,inlineCollapsed:l,theme:c}=i,u=iI();let d;if(r){const e=aS(o)&&"span"===o.type;d=z.createElement(z.Fragment,null,sS(r,{className:Qb(aS(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 p=z.useMemo((()=>Object.assign(Object.assign({},i),{firstLevel:!1})),[i]),[f]=E_("Menu");return z.createElement(mT.Provider,{value:p},z.createElement(tT,Object.assign({},iy(e,["icon"]),{title:d,popupClassName:Qb(s,n,`${s}-${a||c}`),popupStyle:{zIndex:f}})))};const yT={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 wT=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:yT}))};const xT=z.forwardRef(wT);var kT=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 ST(e){return(e||[]).map(((e,t)=>{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:a,type:i}=n,s=kT(n,["label","children","key","type"]),l=null!=a?a:`tmp-${t}`;return o||"group"===i?"group"===i?z.createElement(aT,Object.assign({key:l},s,{title:r}),ST(o)):z.createElement(vT,Object.assign({key:l},s,{title:r}),ST(o)):"divider"===i?z.createElement(gT,Object.assign({key:l},s)):z.createElement(bT,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function CT(e){return z.useMemo((()=>e?ST(e):e),[e])}globalThis&&globalThis.__rest;const ET=z.createContext(null),DT=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"}}}},OT=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})`}}}}},_T=e=>Object.assign({},sx(e)),$T=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:a,itemBg:i,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:m,itemHoverColor:b,lineType:v,colorSplit:y,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:k,dangerItemSelectedColor:S,dangerItemActiveBg:C,dangerItemSelectedBg:E,itemHoverBg:D,itemActiveBg:O,menuSubMenuBg:_,horizontalItemSelectedColor:$,horizontalItemSelectedBg:j,horizontalItemBorderRadius:N,horizontalItemHoverBg:P,popupBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},_T(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:k}},[`&${n}-item:active`]:{background:C}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},_T(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:c,borderBottomColor:$}},"&-selected":{color:$,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:c,borderBottomColor:$}}}}),[`&${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:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${f}`,`opacity ${m} ${f}`].join(",")}}}}}},jT=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}}},NT=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:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},jT(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},jT(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 ${p}`,`background ${p}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d/2}px - ${u}px)`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},rx),{paddingInline:f})}}]},PT=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"}}}},IT=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})`}}}}},TT=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:p,subMenuItemBorderRadius:f,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({},ox(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"}}}),PT(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${l}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},PT(e)),IT(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),IT(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 FT=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 RT=z.forwardRef(((e,t)=>{var n,r;const o=z.useContext(ET),a=o||{},{getPrefixCls:i,getPopupContainer:s,direction:l,menu:c}=z.useContext(Tw),u=i(),{prefixCls:d,className:p,style:f,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:b,siderCollapsed:v,items:y,children:w,rootClassName:x,mode:k,selectable:S,onClick:C,overflowedIndicatorPopupClassName:E}=e,D=iy(FT(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),O=CT(y)||w;null===(n=a.validator)||void 0===n||n.call(a,{mode:k});const _=Jw((function(){var e;null==C||C.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)})),$=a.mode||k,j=null!=S?S:a.selectable,N=z.useMemo((()=>void 0!==v?v:b),[b,v]),P={horizontal:{motionName:`${u}-slide-up`},inline:uC(u),other:{motionName:`${u}-zoom-big`}},I=i("menu",d||a.prefixCls),[T,F]=((e,t)=>gx("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:p,darkDangerItemSelectedBg:f,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:m,darkItemDisabledColor:b,darkDangerItemHoverColor:v,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:w}=e,x=i/7*5,k=dx(e,{menuArrowSize:x,menuHorizontalHeight:1.15*a,menuArrowOffset:.25*x+"px",menuPanelMaskInset:-7,menuSubMenuBg:n}),S=dx(k,{itemColor:s,itemHoverColor:m,groupTitleColor:g,itemSelectedColor:d,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:b,dangerItemColor:l,dangerItemHoverColor:v,dangerItemSelectedColor:y,dangerItemActiveBg:w,dangerItemSelectedBg:f,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[TT(k),DT(k),NT(k),$T(k,"light"),$T(S,"dark"),OT(k),h_(k),ZO(k,"slide-up"),ZO(k,"slide-down"),f_(k,"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:p,colorBgTextHover:f,controlHeightLG:h,lineHeight:g,colorBgElevated:m,marginXXS:b,padding:v,fontSize:y,controlHeightSM:w,fontSizeLG:x,colorTextLightSolid:k,colorErrorHover:S}=e,C=new ew(k).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:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:p,colorSubItemBg:l,subMenuItemBg:l,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:g,collapsedWidth:2*h,popupBg:m,itemMarginBlock:b,itemPaddingInline:v,horizontalLineHeight:1.15*h+"px",iconSize:y,iconMarginInlineEnd:w-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ew(k).setAlpha(.25).toRgbString(),darkItemColor:C,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:C,darkItemHoverColor:k,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:n}}),{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(e))(I,!o),R=Qb(`${I}-${h}`,null==c?void 0:c.className,p);let A;if("function"==typeof g)A=g;else if(null===g||!1===g)A=null;else if(null===a.expandIcon||!1===a.expandIcon)A=null;else{const e=null!=g?g:a.expandIcon;A=sS(e,{className:Qb(`${I}-submenu-expand-icon`,aS(e)?null===(r=e.props)||void 0===r?void 0:r.className:"")})}const M=z.useMemo((()=>({prefixCls:I,inlineCollapsed:N||!1,direction:l,firstLevel:!0,theme:h,mode:$,disableMenuItemTitleTooltip:m})),[I,N,l,m,h]);return T(z.createElement(ET.Provider,{value:null},z.createElement(mT.Provider,{value:M},z.createElement(pT,Object.assign({getPopupContainer:s,overflowedIndicator:z.createElement(xT,null),overflowedIndicatorPopupClassName:Qb(I,`${I}-${h}`,E),mode:$,selectable:j,onClick:_},D,{inlineCollapsed:N,style:Object.assign(Object.assign({},null==c?void 0:c.style),f),className:R,prefixCls:I,direction:l,defaultMotions:P,expandIcon:A,ref:t,rootClassName:Qb(x,F)}),O))))})),AT=z.forwardRef(((e,t)=>{const n=z.useRef(null),r=z.useContext(fT);return z.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),z.createElement(RT,Object.assign({ref:n},e,r))}));AT.Item=bT,AT.SubMenu=vT,AT.Divider=gT,AT.ItemGroup=aT;const MT=AT,LT=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),BT=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),zT=e=>({borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:e.activeBg}),HT=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},BT(dx(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),WT=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}},UT=e=>({padding:`${e.paddingBlockSM}px ${e.paddingInlineSM}px`,borderRadius:e.borderRadiusSM}),GT=(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({},zT(dx(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({},zT(dx(e,{activeBorderColor:o,activeShadow:i}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},VT=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}`},LT(e.colorTextPlaceholder)),{"&:hover":Object.assign({},BT(e)),"&:focus, &:focus-within":Object.assign({},zT(e)),"&-disabled, &[disabled]":Object.assign({},HT(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({},WT(e)),"&-sm":Object.assign({},UT(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),qT=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({},WT(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},UT(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}}}})}},XT=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({},ox(e)),VT(e)),GT(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"}})}},KT=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`}}}},YT=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({},VT(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}}}),KT(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),GT(e,`${t}-affix-wrapper`))}},QT=e=>{const{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ox(e)),qT(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({},HT(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}}}})}},JT=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}}}}},ZT=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"}}}}}},eF=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};function tF(e){return dx(e,{inputAffixPadding:e.paddingXXS})}const nF=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:p,colorPrimaryHover:f,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:p,activeBorderColor:h,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${v}`,hoverBg:"",activeBg:""}},rF=gx("Input",(e=>{const t=dx(e,tF(e));return[XT(t),ZT(t),YT(t),QT(t),JT(t),eF(t),yE(t)]}),nF),oF=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,i=Qb({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=Qb({[`${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:Qb(t,i,s,n),style:Object.assign(Object.assign({},l),r)})},aF=new Wb("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),iF=e=>({height:e,lineHeight:`${e}px`}),sF=e=>Object.assign({width:e},iF(e)),lF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:aF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),cF=e=>Object.assign({width:5*e,minWidth:5*e},iF(e)),uF=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},sF(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},sF(o)),[`${t}${t}-sm`]:Object.assign({},sF(a))}},dF=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},cF(t)),[`${r}-lg`]:Object.assign({},cF(o)),[`${r}-sm`]:Object.assign({},cF(a))}},pF=e=>Object.assign({width:e},iF(e)),fF=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},pF(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},pF(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},hF=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},gF=e=>Object.assign({width:2*e,minWidth:2*e},iF(e)),mF=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},gF(r))},hF(e,r,n)),{[`${n}-lg`]:Object.assign({},gF(o))}),hF(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},gF(a))}),hF(e,a,`${n}-sm`))},bF=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:p,marginSM:f,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:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},sF(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},sF(c)),[`${n}-sm`]:Object.assign({},sF(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:f,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},mF(e)),uF(e)),dF(e)),fF(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({},lF(e))}}},vF=gx("Skeleton",(e=>{const{componentCls:t}=e,n=dx(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[bF(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"]]}),yF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:i="default"}=e,{getPrefixCls:s}=z.useContext(Tw),l=s("skeleton",t),[c,u]=vF(l),d=iy(e,["prefixCls","className"]),p=Qb(l,`${l}-element`,{[`${l}-active`]:o},n,r,u);return c(z.createElement("div",{className:p},z.createElement(oF,Object.assign({prefixCls:`${l}-avatar`,shape:a,size:i},d))))},wF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:i="default"}=e,{getPrefixCls:s}=z.useContext(Tw),l=s("skeleton",t),[c,u]=vF(l),d=iy(e,["prefixCls"]),p=Qb(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(z.createElement("div",{className:p},z.createElement(oF,Object.assign({prefixCls:`${l}-button`,size:i},d))))},xF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:i}=z.useContext(Tw),s=i("skeleton",t),[l,c]=vF(s),u=Qb(s,`${s}-element`,{[`${s}-active`]:a},n,r,c);return l(z.createElement("div",{className:u},z.createElement("div",{className:Qb(`${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`})))))},kF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:i="default"}=e,{getPrefixCls:s}=z.useContext(Tw),l=s("skeleton",t),[c,u]=vF(l),d=iy(e,["prefixCls"]),p=Qb(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:a},n,r,u);return c(z.createElement("div",{className:p},z.createElement(oF,Object.assign({prefixCls:`${l}-input`,size:i},d))))};const SF={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 CF=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:SF}))};const EF=z.forwardRef(CF),DF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:i}=e,{getPrefixCls:s}=z.useContext(Tw),l=s("skeleton",t),[c,u]=vF(l),d=Qb(l,`${l}-element`,{[`${l}-active`]:a},u,n,r),p=null!=i?i:z.createElement(EF,null);return c(z.createElement("div",{className:d},z.createElement("div",{className:Qb(`${l}-image`,n),style:o},p)))},OF=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=Rg(Array(a)).map(((e,n)=>z.createElement("li",{key:n,style:{width:t(n)}})));return z.createElement("ul",{className:Qb(n,r),style:o},i)},_F=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return z.createElement("h3",{className:Qb(t,n),style:Object.assign({width:r},o)})};function $F(e){return e&&"object"==typeof e?e:{}}const jF=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:p,direction:f,skeleton:h}=z.useContext(Tw),g=p("skeleton",t),[m,b]=vF(g);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let i,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${g}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),$F(s));i=z.createElement("div",{className:`${g}-header`},z.createElement(oF,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)),$F(l));r=z.createElement(_F,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)),$F(c));o=z.createElement(OF,Object.assign({},n))}p=z.createElement("div",{className:`${g}-content`},r,o)}const v=Qb(g,{[`${g}-with-avatar`]:e,[`${g}-active`]:u,[`${g}-rtl`]:"rtl"===f,[`${g}-round`]:d},null==h?void 0:h.className,r,o,b);return m(z.createElement("div",{className:v,style:Object.assign(Object.assign({},null==h?void 0:h.style),a)},i,p))}return void 0!==i?i:null};jF.Button=wF,jF.Avatar=yF,jF.Input=kF,jF.Image=xF,jF.Node=DF;const NF=jF;const PF={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 IF=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:PF}))};const TF=z.forwardRef(IF),FF=z.createContext(null);var RF=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:Qb(n,i&&"".concat(n,"-active"),r),ref:t},l)})),AF=["key","forceRender","style","className","destroyInactiveTabPane"];function MF(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,a=e.destroyInactiveTabPane,i=z.useContext(FF),s=i.prefixCls,l=i.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return z.createElement("div",{className:Qb("".concat(s,"-content-holder"))},z.createElement("div",{className:Qb("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Mp({},"".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,p=Lp(e,AF),f=o===n;return z.createElement(tk,Zh({key:o,visible:f,forceRender:i,removeOnLeave:!(!a&&!d),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,a=e.className;return z.createElement(RF,Zh({},p,{prefixCls:u,id:t,tabKey:o,animated:c,active:f,style:Mg(Mg({},s),r),className:Qb(l,a),ref:n}))}))}))))}var LF={width:0,height:0,left:0,top:0};function BF(e,t){var n=z.useRef(e),r=bm(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 zF=.1,HF=.01,WF=20,UF=Math.pow(.995,WF);function GF(e){var t=bm(z.useState(0),2),n=t[0],r=t[1],o=z.useRef(0),a=z.useRef();return a.current=e,Im((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 VF={width:0,height:0,left:0,top:0,right:0};function qF(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}var XF="TABS_DQ";function KF(e){return String(e).replace(/"/g,XF)}function YF(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}function QF(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 JF=z.forwardRef(QF);var ZF=z.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var i={};return"object"!==Rp(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 eR(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,p=e.editable,f=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,m=e.onTabClick,b=e.getPopupContainer,v=e.popupClassName,y=bm(z.useState(!1),2),w=y[0],x=y[1],k=bm(z.useState(null),2),S=k[0],C=k[1],E="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),O=null!==S?"".concat(E,"-").concat(S):null,_=null==a?void 0:a.dropdownAriaLabel;var $=z.createElement(pT,{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:[S],"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=YF(t,o,p,n);return z.createElement(BI,{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(),p.onEdit("remove",{key:t,event:e})}(e,a)}},o||p.removeIcon||"×"))})));function j(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===S}))||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)}),[S]),z.useEffect((function(){w||C(null)}),[w]);var N=Mp({},h?"marginRight":"marginLeft",f);o.length||(N.visibility="hidden",N.order=1);var P=Qb(Mp({},"".concat(D,"-rtl"),h)),I=i?null:z.createElement(KP,{prefixCls:D,overlay:$,trigger:["hover"],visible:!!o.length&&w,transitionName:c,onVisibleChange:x,overlayClassName:Qb(P,v),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},z.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:N,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 gS.UP:j(-1),e.preventDefault();break;case gS.DOWN:j(1),e.preventDefault();break;case gS.ESC:x(!1);break;case gS.SPACE:case gS.ENTER:null!==S&&m(S,e)}else[gS.DOWN,gS.SPACE,gS.ENTER].includes(t)&&(x(!0),e.preventDefault())}},l));return z.createElement("div",{className:Qb("".concat(n,"-nav-operations"),d),style:u,ref:t},I,z.createElement(JF,{prefixCls:n,locale:a,editable:p}))}const tR=z.memo(z.forwardRef(eR),(function(e,t){return t.tabMoving}));function nR(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,p=e.removeAriaLabel,f=e.editable,h=e.onClick,g=e.onFocus,m=e.style,b="".concat(n,"-tab"),v=YF(u,c,f,l);function y(e){l||h(e)}var w=z.createElement("div",{key:i,"data-node-key":KF(i),className:Qb(b,(t={},Mp(t,"".concat(b,"-with-remove"),v),Mp(t,"".concat(b,"-active"),o),Mp(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){[gS.SPACE,gS.ENTER].includes(e.which)&&(e.preventDefault(),y(e))},onFocus:g},s),v&&z.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),f.onEdit("remove",{key:i,event:t})}},c||f.removeIcon||"×"));return d?d(w):w}var rR=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]},oR=function(e,t){return e[t?0:1]};function aR(e,t){var n,r,o,a,i,s,l=z.useContext(FF),c=l.prefixCls,u=l.tabs,d=e.className,p=e.style,f=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,k=e.children,S=e.onTabClick,C=e.onTabScroll,E=e.indicatorSize,D=z.useRef(),O=z.useRef(),_=z.useRef(),$=z.useRef(),j=z.useRef(),N=z.useRef(),P=z.useRef(),I="top"===w||"bottom"===w,T=bm(BF(0,(function(e,t){I&&C&&C({direction:e>t?"left":"right"})})),2),F=T[0],R=T[1],A=bm(BF(0,(function(e,t){!I&&C&&C({direction:e>t?"top":"bottom"})})),2),M=A[0],L=A[1],B=bm(z.useState([0,0]),2),H=B[0],W=B[1],U=bm(z.useState([0,0]),2),G=U[0],V=U[1],q=bm(z.useState([0,0]),2),X=q[0],K=q[1],Y=bm(z.useState([0,0]),2),Q=Y[0],J=Y[1],Z=(r=new Map,o=z.useRef([]),a=bm(z.useState({}),2)[1],i=z.useRef("function"==typeof r?r():r),s=GF((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=bm(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)||LF,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)||LF);var u=r.get(l)||Mg({},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,G[0]),oe=oR(H,I),ae=oR(G,I),ie=oR(X,I),se=oR(Q,I),le=oe<ae+ie,ce=le?oe-se:oe-ie,ue="".concat(c,"-nav-operations-hidden"),de=0,pe=0;function fe(e){return e<de?de:e>pe?pe:e}I&&m?(de=0,pe=Math.max(0,ae-ce)):(de=Math.min(0,ce-ae),pe=0);var he=z.useRef(),ge=bm(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=bm(z.useState(),2),r=n[0],o=n[1],a=bm(z.useState(0),2),i=a[0],s=a[1],l=bm(z.useState(0),2),c=l[0],u=l[1],d=bm(z.useState(),2),p=d[0],f=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 p=Date.now();s(p),u(p-i),f({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),f(null),p)){var e=p.x/c,n=p.y/c,a=Math.abs(e),i=Math.abs(n);if(Math.max(a,i)<zF)return;var s=e,l=n;h.current=window.setInterval((function(){Math.abs(s)<HF&&Math.abs(l)<HF?window.clearInterval(h.current):t((s*=UF)*WF,(l*=UF)*WF)}),WF)}},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)}}),[])}($,(function(e,t){function n(e,t){e((function(e){return fe(e+t)}))}return!!le&&(I?n(R,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,p=i.rtl;return["top","bottom"].includes(d)?(s="width",l=p?"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)||VF;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)||VF)[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("_"),p])}(re,ce,I?F:M,ae,ie,se,Mg(Mg({},e),{},{tabs:u})),xe=bm(we,2),ke=xe[0],Se=xe[1],Ce=Jw((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(I){var n=F;m?t.right<F?n=t.right:t.right+t.width>F+ce&&(n=t.right+t.width-ce):t.left<-F?n=-t.left:t.left+t.width>-F+ce&&(n=-(t.left+t.width-ce)),L(0),R(fe(n))}else{var r=M;t.top<-M?r=-t.top:t.top+t.height>-M+ce&&(r=-(t.top+t.height-ce)),R(0),L(fe(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(nR,{id:f,prefixCls:c,key:n,tab:e,style:0===t?void 0:Ee,closable:e.closable,editable:v,active:n===g,renderWrapper:k,removeAriaLabel:null==y?void 0:y.removeAriaLabel,onClick:function(e){S(n,e)},onFocus:function(){Ce(n),ve(),$.current&&(m||($.current.scrollLeft=0),$.current.scrollTop=0)}})})),Oe=function(){return ne((function(){var e,t=new Map,n=null===(e=j.current)||void 0===e?void 0:e.getBoundingClientRect();return u.forEach((function(e){var r,o=e.key,a=null===(r=j.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(KF(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=bm(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=GF((function(){var e=rR(D),t=rR(O),n=rR(_);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=rR(P);K(r);var o=rR(N);J(o);var a=rR(j);V([a[0]-r[0],a[1]-r[1]]),Oe()})),$e=u.slice(0,ke),je=u.slice(Se+1),Ne=[].concat(Rg($e),Rg(je)),Pe=re.get(g),Ie=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicatorSize,a=bm(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(){py.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=py((function(){s(e)})),u}),[t,n,r,o]),{style:i}}({activeTabOffset:Pe,horizontal:I,rtl:m,indicatorSize:E}),Te=Ie.style;z.useEffect((function(){Ce()}),[g,de,pe,qF(Pe),qF(re),I]),z.useEffect((function(){_e()}),[m]);var Fe,Re,Ae,Me,Le=!!Ne.length,Be="".concat(c,"-nav-wrap");return I?m?(Re=F>0,Fe=F!==pe):(Fe=F<0,Re=F!==de):(Ae=M<0,Me=M!==de),z.createElement(ay,{onResize:_e},z.createElement("div",{ref:kv(t,D),role:"tablist",className:Qb("".concat(c,"-nav"),d),style:p,onKeyDown:function(){ve()}},z.createElement(ZF,{ref:O,position:"left",extra:b,prefixCls:c}),z.createElement(ay,{onResize:_e},z.createElement("div",{className:Qb(Be,(n={},Mp(n,"".concat(Be,"-ping-left"),Fe),Mp(n,"".concat(Be,"-ping-right"),Re),Mp(n,"".concat(Be,"-ping-top"),Ae),Mp(n,"".concat(Be,"-ping-bottom"),Me),n)),ref:$},z.createElement(ay,{onResize:_e},z.createElement("div",{ref:j,className:"".concat(c,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(M,"px)"),transition:me?"none":void 0}},De,z.createElement(JF,{ref:P,prefixCls:c,locale:y,editable:v,style:Mg(Mg({},0===De.length?void 0:Ee),{},{visibility:Le?"hidden":null})}),z.createElement("div",{className:Qb("".concat(c,"-ink-bar"),Mp({},"".concat(c,"-ink-bar-animated"),h.inkBar)),style:Te}))))),z.createElement(tR,Zh({},e,{removeAriaLabel:null==y?void 0:y.removeAriaLabel,ref:N,prefixCls:c,tabs:Ne,className:!Le&&ue,tabMoving:!!me})),z.createElement(ZF,{ref:_,position:"right",extra:b,prefixCls:c})))}const iR=z.forwardRef(aR);var sR=["renderTabBar"],lR=["label","key"];function cR(e){var t=e.renderTabBar,n=Lp(e,sR),r=z.useContext(FF).tabs;return t?t(Mg(Mg({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=Lp(e,lR);return z.createElement(RF,Zh({tab:t,key:n,tabKey:n},r))}))}),iR):z.createElement(iR,n)}var uR=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],dR=0;function pR(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,p=e.animated,f=e.tabPosition,h=void 0===f?"top":f,g=e.tabBarGutter,m=e.tabBarStyle,b=e.tabBarExtraContent,v=e.locale,y=e.moreIcon,w=e.moreTransitionName,x=e.destroyInactiveTabPane,k=e.renderTabBar,S=e.onChange,C=e.onTabClick,E=e.onTabScroll,D=e.getPopupContainer,O=e.popupClassName,_=e.indicatorSize,$=Lp(e,uR),j=z.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===Rp(e)&&"key"in e}))}),[s]),N="rtl"===l,P=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}:Mg({inkBar:!0},"object"===Rp(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),I=bm(z.useState(!1),2),T=I[0],F=I[1];z.useEffect((function(){F(D$())}),[]);var R=bm(tx((function(){var e;return null===(e=j[0])||void 0===e?void 0:e.key}),{value:c,defaultValue:u}),2),A=R[0],M=R[1],L=bm(z.useState((function(){return j.findIndex((function(e){return e.key===A}))})),2),B=L[0],H=L[1];z.useEffect((function(){var e,t=j.findIndex((function(e){return e.key===A}));-1===t&&(t=Math.max(0,Math.min(B,j.length-1)),M(null===(e=j[t])||void 0===e?void 0:e.key));H(t)}),[j.map((function(e){return e.key})).join("_"),A,B]);var W=bm(tx(null,{value:r}),2),U=W[0],G=W[1];z.useEffect((function(){r||(G("rc-tabs-".concat(dR)),dR+=1)}),[]);var V={id:U,activeKey:A,animated:P,tabPosition:h,rtl:N,mobile:T},q=Mg(Mg({},V),{},{editable:d,locale:v,moreIcon:y,moreTransitionName:w,tabBarGutter:g,onTabClick:function(e,t){null==C||C(e,t);var n=e!==A;M(e),n&&(null==S||S(e))},onTabScroll:E,extra:b,style:m,panes:null,getPopupContainer:D,popupClassName:O,indicatorSize:_});return z.createElement(FF.Provider,{value:{tabs:j,prefixCls:a}},z.createElement("div",Zh({ref:t,id:r,className:Qb(a,"".concat(a,"-").concat(h),(n={},Mp(n,"".concat(a,"-mobile"),T),Mp(n,"".concat(a,"-editable"),d),Mp(n,"".concat(a,"-rtl"),N),n),i)},$),z.createElement(cR,Zh({},q,{renderTabBar:k})),z.createElement(MF,Zh({destroyInactiveTabPane:x},V,{animated:P}))))}var fR=z.forwardRef(pR);const hR={motionAppear:!1,motionEnter:!0,motionLeave:!0};var gR=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 mR=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}`}}}}},[ZO(e,"slide-up"),ZO(e,"slide-down")]]},bR=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}}}}}}},vR=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ox(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({},rx),{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"}}})}})}},yR=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}}}}}},wR=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}}}}}},xR=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}},lx(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}}}},kR=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"}}}}},SR=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({},ox(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}},lx(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),xR(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"}}}}}},CR=gx("Tabs",(e=>{const t=dx(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[wR(t),kR(t),yR(t),vR(t),bR(t),SR(t),mR(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}})),ER=()=>null;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 OR=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:p,style:f,indicatorSize:h}=e,g=DR(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:m,moreIcon:b=z.createElement(xT,null)}=g,{direction:v,tabs:y,getPrefixCls:w,getPopupContainer:x}=z.useContext(Tw),k=w("tabs",m),[S,C]=CR(k);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(qk,null),addIcon:l||z.createElement(TF,null),showAdd:!0!==i});const D=w(),O=function(e,t){return e||function(e){return e.filter((e=>e))}(bv(t).map((e=>{if(z.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,a=gR(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({},hR),{motionName:dC(e,"switch")})),t}(k,p),$=xC(o),j=Object.assign(Object.assign({},null==y?void 0:y.style),f);return S(z.createElement(fR,Object.assign({direction:v,getPopupContainer:x,moreTransitionName:`${D}-slide-up`},g,{items:O,className:Qb({[`${k}-${$}`]:$,[`${k}-card`]:["card","editable-card"].includes(t),[`${k}-editable-card`]:"editable-card"===t,[`${k}-centered`]:s},null==y?void 0:y.className,n,r,C),popupClassName:Qb(c,C),style:j,editable:E,moreIcon:b,prefixCls:k,animated:_,indicatorSize:null!=h?h:null==y?void 0:y.indicatorSize})))};OR.TabPane=ER;const _R=OR,$R=z.createContext({}),jR=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"}}}},NR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},PR=(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),IR=gx("Grid",(e=>[jR(e)])),TR=gx("Grid",(e=>{const t=dx(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[NR(t),PR(t,""),PR(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},PR(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}));var FR=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 RR=["xs","sm","md","lg","xl","xxl"],AR=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=z.useContext(Tw),{gutter:o,wrap:a}=z.useContext($R),{prefixCls:i,span:s,order:l,offset:c,push:u,pull:d,className:p,children:f,flex:h,style:g}=e,m=FR(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",i),[v,y]=TR(b);let w={};RR.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=Qb(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${d}`]:d},p,w,y),k={};if(o&&o[0]>0){const e=o[0]/2;k.paddingLeft=e,k.paddingRight=e}return h&&(k.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(h),!1!==a||k.minWidth||(k.minWidth=0)),v(z.createElement("div",Object.assign({},m,{style:Object.assign(Object.assign({},k),g),className:x,ref:t}),f))}));var MR=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 LR(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<sP.length;n++){const o=sP[n];if(!t[o])continue;const a=e[o];if(void 0!==a)return void r(a)}})()}),[JSON.stringify(e),t]),n}const BR=z.forwardRef(((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:i,children:s,gutter:l=0,wrap:c}=e,u=MR(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:p}=z.useContext(Tw),[f,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=LR(o,g),v=LR(r,g),y=z.useRef(l),w=uP();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),[k,S]=IR(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<sP.length;r++){const o=sP[r];if(f[o]&&void 0!==t[o]){e[n]=t[o];break}}else e[n]=t})),e})(),E=Qb(x,{[`${x}-no-wrap`]:!1===c,[`${x}-${v}`]:v,[`${x}-${b}`]:b,[`${x}-rtl`]:"rtl"===p},a,S),D={},O=null!=C[0]&&C[0]>0?C[0]/-2:void 0;O&&(D.marginLeft=O,D.marginRight=O),[,D.rowGap]=C;const[_,$]=C,j=z.useMemo((()=>({gutter:[_,$],wrap:c})),[_,$,c]);return k(z.createElement($R.Provider,{value:j},z.createElement("div",Object.assign({},u,{className:E,style:Object.assign(Object.assign({},D),i),ref:t}),s)))}));const zR={useBreakpoint:function(){return dP()}};var HR=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=bm(H.useState(l||o),2),d=u[0],p=u[1];return H.useEffect((function(){(o||l)&&p(!0)}),[o,l]),d?H.createElement("div",{ref:t,className:Qb("".concat(r,"-content"),(n={},Mp(n,"".concat(r,"-content-active"),l),Mp(n,"".concat(r,"-content-inactive"),!l),n),a),style:i,role:c},H.createElement("div",{className:"".concat(r,"-content-box")},s)):null}));HR.displayName="PanelContent";var WR=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],UR=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,p=e.collapsible,f=e.accordion,h=e.panelKey,g=e.extra,m=e.header,b=e.expandIcon,v=e.openMotion,y=e.destroyInactivePanel,w=e.children,x=Lp(e,WR),k="disabled"===p,S="header"===p,C="icon"===p,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(p)?D:void 0},O));var _=Qb((Mp(n={},"".concat(d,"-item"),!0),Mp(n,"".concat(d,"-item-active"),s),Mp(n,"".concat(d,"-item-disabled"),k),n),u),$={className:Qb(i,(Mp(r={},"".concat(d,"-header"),!0),Mp(r,"".concat(d,"-header-collapsible-only"),S),Mp(r,"".concat(d,"-icon-collapsible-only"),C),r)),"aria-expanded":s,"aria-disabled":k,onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==gS.ENTER&&e.which!==gS.ENTER||D()}};return S||C||($.onClick=D,$.role=f?"tab":"button",$.tabIndex=k?-1:0),H.createElement("div",Zh({},x,{ref:t,className:_}),H.createElement("div",$,a&&O,H.createElement("span",{className:"".concat(d,"-header-text"),onClick:"header"===p?D:void 0},m),E&&H.createElement("div",{className:"".concat(d,"-extra")},g)),H.createElement(tk,Zh({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(HR,{ref:t,prefixCls:d,className:n,style:r,isActive:s,forceRender:c,role:f?"tabpanel":void 0},w)})))})),GR=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function VR(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,p=e.key,f=e.collapsible,h=e.onItemClick,g=e.destroyInactivePanel,m=Lp(e,GR),b=String(null!=p?p:t),v=null!=f?f:o,y=null!=g?g:a,w=!1;return w=r?s[0]===b:s.indexOf(b)>-1,H.createElement(UR,Zh({},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):bv(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),p=e.props,f=p.header,h=p.headerClass,g=p.destroyInactivePanel,m=p.collapsible,b=p.onItemClick,v=!1;v=o?l[0]===d:l.indexOf(d)>-1;var y=null!=m?m:a,w={key:d,panelKey:d,header:f,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 qR(e){var t=e;if(!Array.isArray(t)){var n=Rp(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var XR=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,p=e.expandIcon,f=e.activeKey,h=e.defaultActiveKey,g=e.onChange,m=e.items,b=Qb(r,l),v=bm(tx([],{value:f,onChange:function(e){return null==g?void 0:g(e)},defaultValue:h,postState:qR}),2),y=v[0],w=v[1];Gg(!c,"`children` will be removed in next major version. Please use `items` instead.");var x=VR(m,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:p,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(Rg(y),[e])}))},activeKey:y});return H.createElement("div",{ref:t,className:b,style:i,role:s?"tablist":void 0},x)}));const KR=Object.assign(XR,{Panel:UR});KR.Panel;const YR=z.forwardRef(((e,t)=>{const{getPrefixCls:n}=z.useContext(Tw),{prefixCls:r,className:o,showArrow:a=!0}=e,i=n("collapse",r),s=Qb({[`${i}-no-arrow`]:!a},o);return z.createElement(KR.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))})),QR=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:p,colorTextHeading:f,colorTextDisabled:h,fontSize:g,fontSizeLG:m,lineHeight:b,marginSM:v,paddingSM:y,paddingLG:w,paddingXS:x,motionDurationSlow:k,fontSizeIcon:S,contentPadding:C}=e,E=`${c}px ${u} ${d}`;return{[t]:Object.assign(Object.assign({},ox(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:f,lineHeight:b,cursor:"pointer",transition:`all ${k}, 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:S,svg:{transition:`transform ${k}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop: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}}}}})}},JR=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{[`> ${t}-item > ${t}-header ${t}-arrow svg`]:{transform:"rotate(180deg)"}}}},ZR=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}}}},eA=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}}}}}},tA=gx("Collapse",(e=>{const t=dx(e,{collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG});return[QR(t),ZR(t),eA(t),JR(t),h_(t)]}),(e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}))),nA=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=z.useContext(Tw),{prefixCls:a,className:i,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:p="start",children:f,expandIcon:h}=e,g=xC((e=>{var t;return null!==(t=null!=d?d:e)&&void 0!==t?t:"middle"})),m=n("collapse",a),b=n(),[v,y]=tA(m),w=z.useMemo((()=>"left"===p?"start":"right"===p?"end":p),[p]),x=Qb(`${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),k=Object.assign(Object.assign({},uC(b)),{motionAppear:!1,leavedClassName:`${m}-content-hidden`}),S=z.useMemo((()=>f?bv(f).map(((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:o,collapsible:a}=e.props;return sS(e,Object.assign(Object.assign({},iy(e.props,["disabled"])),{key:n,collapsible:null!=a?a:o?"disabled":void 0}))}return e})):null),[f]);return v(z.createElement(KR,Object.assign({ref:t,openMotion:k},iy(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=h?h(e):z.createElement(BP,{rotate:e.isActive?90:void 0});return sS(t,(()=>({className:Qb(t.props.className,`${m}-arrow`)})))},prefixCls:m,className:x,style:Object.assign(Object.assign({},null==o?void 0:o.style),l)}),S))})),rA=Object.assign(nA,{Panel:YR}),oA=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:a,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},ox(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}}})}},aA=gx("Divider",(e=>{const t=dx(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[oA(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})));var iA=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 sA=e=>{const{getPrefixCls:t,direction:n,divider:r}=z.useContext(Tw),{prefixCls:o,type:a="horizontal",orientation:i="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:p,style:f}=e,h=iA(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),g=t("divider",o),[m,b]=aA(g),v=i.length>0?`-${i}`:i,y=!!u,w="left"===i&&null!=s,x="right"===i&&null!=s,k=Qb(g,null==r?void 0:r.className,b,`${g}-${a}`,{[`${g}-with-text`]:y,[`${g}-with-text${v}`]:y,[`${g}-dashed`]:!!d,[`${g}-plain`]:!!p,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:w,[`${g}-no-default-orientation-margin-right`]:x},l,c),S=z.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),C=Object.assign(Object.assign({},w&&{marginLeft:S}),x&&{marginRight:S});return m(z.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==r?void 0:r.style),f)},h,{role:"separator"}),u&&"vertical"!==a&&z.createElement("span",{className:`${g}-inner-text`,style:C},u)))};const lA={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 cA=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:lA}))};const uA=z.forwardRef(cA);function dA(){return"function"==typeof BigInt}function pA(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function fA(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 hA(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function gA(e){var t=String(e);if(hA(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(".")&&bA(t)?t.length-t.indexOf(".")-1:0}function mA(e){var t=String(e);if(hA(e)){if(e>Number.MAX_SAFE_INTEGER)return String(dA()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(dA()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(gA(t))}return fA(t).fullStr}function bA(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 vA=function(){function e(t){if(mf(this,e),Mp(this,"origin",""),Mp(this,"negative",void 0),Mp(this,"integer",void 0),Mp(this,"decimal",void 0),Mp(this,"decimalLen",void 0),Mp(this,"empty",void 0),Mp(this,"nan",void 0),pA(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(hA(n)&&(n=Number(n)),bA(n="string"==typeof n?n:mA(n))){var r=fA(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 vf(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=fA(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()?"":fA("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),yA=function(){function e(t){mf(this,e),Mp(this,"origin",""),Mp(this,"number",void 0),Mp(this,"empty",void 0),pA(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return vf(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(gA(this.number),gA(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(gA(this.number),gA(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()?"":mA(this.number):this.origin}}]),e}();function wA(e){return dA()?new vA(e):new yA(e)}function xA(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=fA(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?xA(wA(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 kA(e){return!(!e.addonBefore&&!e.addonAfter)}function SA(e){return!!(e.prefix||e.suffix||e.allowClear)}function CA(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 EA(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var DA=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,p=e.readOnly,f=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,k=e.styles,S=e.components,C=(null==S?void 0:S.affixWrapper)||"span",E=(null==S?void 0:S.groupWrapper)||"span",D=(null==S?void 0:S.wrapper)||"span",O=(null==S?void 0:S.groupAddon)||"span",_=z.useRef(null),$=z.cloneElement(r,{value:m,hidden:v,className:Qb(null===(t=r.props)||void 0===t?void 0:t.className,!SA(e)&&!kA(e)&&c)||null,style:Mg(Mg({},null===(n=r.props)||void 0===n?void 0:n.style),SA(e)||kA(e)?{}:u)});if(SA(e)){var j,N="".concat(o,"-affix-wrapper"),P=Qb(N,(Mp(j={},"".concat(N,"-disabled"),d),Mp(j,"".concat(N,"-focused"),f),Mp(j,"".concat(N,"-readonly"),p),Mp(j,"".concat(N,"-input-with-clear-btn"),i&&g&&m),j),!kA(e)&&c,null==y?void 0:y.affixWrapper,null==w?void 0:w.affixWrapper),I=(i||g)&&H.createElement("span",{className:Qb("".concat(o,"-suffix"),null==w?void 0:w.suffix),style:null==k?void 0:k.suffix},function(){var e;if(!g)return null;var t=!d&&!p&&m,n="".concat(o,"-clear-icon"),r="object"===Rp(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";return H.createElement("span",{onClick:b,onMouseDown:function(e){return e.preventDefault()},className:Qb(n,(e={},Mp(e,"".concat(n,"-hidden"),!t),Mp(e,"".concat(n,"-has-suffix"),!!i),e)),role:"button",tabIndex:-1},r)}(),i);$=H.createElement(C,Zh({className:P,style:Mg(Mg({},kA(e)?void 0:u),null==k?void 0:k.affixWrapper),hidden:!kA(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:Qb("".concat(o,"-prefix"),null==w?void 0:w.prefix),style:null==k?void 0:k.prefix},a),z.cloneElement(r,{value:m,hidden:null}),I)}if(kA(e)){var T="".concat(o,"-group"),F="".concat(T,"-addon"),R=Qb("".concat(o,"-wrapper"),T,null==y?void 0:y.wrapper),A=Qb("".concat(o,"-group-wrapper"),c,null==y?void 0:y.group);return H.createElement(E,{className:A,style:u,hidden:v},H.createElement(D,{className:R},s&&H.createElement(O,{className:F},s),z.cloneElement($,{hidden:null}),l&&H.createElement(O,{className:F},l)))}return $},OA=["show"];function _A(e,t){return z.useMemo((function(){var n={};t&&(n.show="object"===Rp(t)&&t.formatter?t.formatter:!!t);var r=n=Mg(Mg({},n),e),o=r.show,a=Lp(r,OA);return Mg(Mg({},a),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:a.strategy||function(e){return e.length}})}),[e,t])}var $A=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],jA=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,p=e.className,f=e.maxLength,h=e.suffix,g=e.showCount,m=e.count,b=e.type,v=void 0===b?"text":b,y=e.classes,w=e.classNames,x=e.styles,k=e.onCompositionStart,S=e.onCompositionEnd,C=Lp(e,$A),E=bm(z.useState(!1),2),D=E[0],O=E[1],_=H.useRef(!1),$=z.useRef(null),j=function(e){$.current&&EA($.current,e)},N=bm(tx(e.defaultValue,{value:e.value}),2),P=N[0],I=N[1],T=null==P?"":String(P),F=bm(H.useState(null),2),R=F[0],A=F[1],M=_A(m,g),L=M.max||f,B=M.strategy(T),W=!!L&&B>L;z.useImperativeHandle(t,(function(){return{focus:j,blur:function(){var e;null===(e=$.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=$.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=$.current)||void 0===e||e.select()},input:$.current}})),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}))&&A([(null===(n=$.current)||void 0===n?void 0:n.selectionStart)||0,(null===(o=$.current)||void 0===o?void 0:o.selectionEnd)||0]));I(a),$.current&&CA($.current,e,r,a)};H.useEffect((function(){var e;R&&(null===(e=$.current)||void 0===e||e.setSelectionRange.apply(e,Rg(R)))}),[R]);var G,V=function(e){U(e,e.target.value)},q=function(e){_.current=!1,U(e,e.currentTarget.value),null==S||S(e)},X=function(e){i&&"Enter"===e.key&&i(e),null==s||s(e)},K=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(DA,Zh({},C,{prefixCls:c,className:Qb(p,Q),inputElement:(G=iy(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),H.createElement("input",Zh({autoComplete:n},G,{onChange:V,onFocus:K,onBlur:Y,onKeyDown:X,className:Qb(c,Mp({},"".concat(c,"-disabled"),u),null==w?void 0:w.input),style:null==x?void 0:x.input,ref:$,size:d,type:v,onCompositionStart:function(e){_.current=!0,null==k||k(e)},onCompositionEnd:q}))),handleReset:function(e){I(""),j(),$.current&&CA($.current,e,r)},value:T,focused:D,triggerFocus:j,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:Qb("".concat(c,"-show-count-suffix"),Mp({},"".concat(c,"-show-count-has-suffix"),!!h),null==w?void 0:w.count),style:Mg({},null==x?void 0:x.count)},t),h)}return null}(),disabled:u,classes:y,classNames:w,styles:x}))}));function NA(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,p,f=function(){clearTimeout(s.current)},h=function(e,t){e.preventDefault(),f(),c.current(t),s.current=setTimeout((function e(){c.current(t),s.current=setTimeout(e,200)}),600)};if(z.useEffect((function(){return function(){f(),l.current.forEach((function(e){return py.cancel(e)}))}}),[]),u=bm(z.useState(!1),2),d=u[0],p=u[1],Pm((function(){p(D$())}),[]),d)return null;var g="".concat(t,"-handler"),m=Qb(g,"".concat(g,"-up"),Mp({},"".concat(g,"-up-disabled"),o)),b=Qb(g,"".concat(g,"-down"),Mp({},"".concat(g,"-down-disabled"),a)),v=function(){return l.current.push(py(f))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return z.createElement("div",{className:"".concat(g,"-wrap")},z.createElement("span",Zh({},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",Zh({},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 PA(e){var t="number"==typeof e?mA(e):fA(e).fullStr;return t.includes(".")?fA(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var IA=["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"],TA=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],FA=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},RA=function(e){var t=wA(e);return t.isInvalidate()?null:t},AA=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,p=e.value,f=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,k=e.parser,S=e.formatter,C=e.precision,E=e.decimalSeparator,D=e.onChange,O=e.onInput,_=e.onPressEnter,$=e.onStep,j=e.changeOnBlur,N=void 0===j||j,P=Lp(e,IA),I="".concat(o,"-input"),T=z.useRef(null),F=bm(z.useState(!1),2),R=F[0],A=F[1],M=z.useRef(!1),L=z.useRef(!1),B=z.useRef(!1),H=bm(z.useState((function(){return wA(null!=p?p:d)})),2),W=H[0],U=H[1];var G=z.useCallback((function(e,t){if(!t)return C>=0?C:Math.max(gA(e),gA(u))}),[C,u]),V=z.useCallback((function(e){var t=String(e);if(k)return k(t);var n=t;return E&&(n=n.replace(E,".")),n.replace(/[^\w.-]+/g,"")}),[k,E]),q=z.useRef(""),X=z.useCallback((function(e,t){if(S)return S(e,{userTyping:t,input:String(q.current)});var n="number"==typeof e?mA(e):e;if(!t){var r=G(n,t);if(bA(n)&&(E||r>=0))n=xA(n,E||".",r)}return n}),[S,G,E]),K=bm(z.useState((function(){var e=null!=d?d:p;return W.isInvalidate()&&["string","number"].includes(Rp(e))?Number.isNaN(e)?"":e:X(W.toString(),!1)})),2),Y=K[0],Q=K[1];function J(e,t){Q(X(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}q.current=Y;var Z,ee,te,ne,re,oe=z.useMemo((function(){return RA(l)}),[l,C]),ae=z.useMemo((function(){return RA(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=R,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(Fte){}},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(Fte){Gg(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Fte.message))}}]),ce=bm(le,2),ue=ce[0],de=ce[1],pe=function(e){return oe&&!e.lessEquals(oe)?oe:ae&&!ae.lessEquals(e)?ae:null},fe=function(e){return!pe(e)},he=function(e,t){var n,r=e,o=fe(r)||r.isEmpty();if(r.isEmpty()||t||(r=pe(r)||r,o=!0),!h&&!f&&o){var a=r.toString(),i=G(a,t);return i>=0&&(r=wA(xA(a,".",i)),fe(r)||(r=wA(xA(a,".",i,!0)))),r.equals(W)||(n=r,void 0===p&&U(n),null==D||D(r.isEmpty()?null:FA(x,r)),void 0===p&&J(r,t)),r}return W},ge=(ne=z.useRef(0),re=function(){py.cancel(ne.current)},z.useEffect((function(){return re}),[]),function(e){re(),ne.current=py((function(){e()}))}),me=function e(t){if(ue(),q.current=t,Q(t),!L.current){var n=wA(V(t));n.isNaN()||he(n,!0)}null==O||O(t),ge((function(){var n=t;k||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},be=function(e){var t;if(!(e&&ie||!e&&se)){M.current=!1;var n=wA(B.current?PA(u):u);e||(n=n.negate());var r=(W||wA(0)).add(n.toString()),o=he(r,!1);null==$||$(FA(x,o),{offset:B.current?PA(u):u,type:e?"up":"down"}),null===(t=T.current)||void 0===t||t.focus()}},ve=function(e){var t=wA(V(Y)),n=t;n=t.isNaN()?he(W,e):he(t,e),void 0!==p?J(W,!1):n.isNaN()||J(n,!1)};return Im((function(){W.isInvalidate()||J(W,!1)}),[C,S]),Im((function(){var e=wA(p);U(e);var t=wA(V(Y));e.equals(t)&&M.current&&!S||J(e,M.current)}),[p]),Im((function(){S&&de()}),[Y]),z.createElement("div",{className:Qb(o,null==w?void 0:w.input,a,(n={},Mp(n,"".concat(o,"-focused"),R),Mp(n,"".concat(o,"-disabled"),f),Mp(n,"".concat(o,"-readonly"),h),Mp(n,"".concat(o,"-not-a-number"),W.isNaN()),Mp(n,"".concat(o,"-out-of-range"),!W.isInvalidate()&&!fe(W)),n)),style:i,onFocus:function(){A(!0)},onBlur:function(){N&&ve(!1),A(!1),M.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;M.current=!0,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(NA,{prefixCls:o,upNode:g,downNode:m,upDisabled:ie,downDisabled:se,onStep:be}),z.createElement("div",{className:"".concat(I,"-wrap")},z.createElement("input",Zh({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":W.isInvalidate()?null:W.toString(),step:u},P,{ref:xv(T,t),className:I,value:Y,onChange:function(e){me(e.target.value)},disabled:f,readOnly:h}))))})),MA=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,p=e.classNames,f=Lp(e,TA),h=z.useRef(null);return z.createElement(DA,{inputElement:z.createElement(AA,Zh({prefixCls:o,disabled:n,classNames:p,ref:xv(h,t)},f)),className:d,triggerFocus:function(e){h.current&&EA(h.current,e)},prefixCls:o,value:a,disabled:n,style:r,prefix:i,suffix:s,addonAfter:c,addonBefore:l,classes:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})}));MA.displayName="InputNumber";const LA=(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}}}},BA=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:p,handleHoverColor:f,paddingInline:h,paddingBlock:g,handleBg:m,handleActiveBg:b,colorTextDisabled:v,borderRadiusSM:y,borderRadiusLG:w,controlWidth:x,handleVisible:k,handleBorderColor:S}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ox(e)),VT(e)),GT(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({},ox(e)),qT(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({},HT(e))}}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ox(e)),{width:"100%",padding:`${g}px ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),LT(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===k?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${p} linear ${p}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${S}`,transition:`all ${p} linear`,"&:active":{background:b},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:d,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${S}`,borderEndEndRadius:a}},LA(e,"lg")),LA(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}}}]},zA=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({},VT(e)),GT(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}}})}},HA=gx("InputNumber",(e=>{const t=dx(e,tF(e));return[BA(t),zA(t),yE(t)]}),(e=>Object.assign(Object.assign({},nF(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 WA=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 UA=z.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:r}=z.useContext(Tw),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:p,bordered:f=!0,readOnly:h,status:g,controls:m}=e,b=WA(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),v=n("input-number",c),[y,w]=HA(v),{compactSize:x,compactItemClassnames:k}=_C(v,r);let S=z.createElement(uA,{className:`${v}-handler-up-inner`}),C=z.createElement(QN,{className:`${v}-handler-down-inner`});const E="boolean"==typeof m?m:void 0;"object"==typeof m&&(S=void 0===m.upIcon?S: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:$}=z.useContext(xO),j=xN(O,g),N=xC((e=>{var t;return null!==(t=null!=s?s:x)&&void 0!==t?t:e})),P=z.useContext(Lw),I=null!=l?l:P,T=Qb({[`${v}-lg`]:"large"===N,[`${v}-sm`]:"small"===N,[`${v}-rtl`]:"rtl"===r,[`${v}-borderless`]:!f,[`${v}-in-form-item`]:_},wN(v,j),w),F=`${v}-group`,R=D&&z.createElement(z.Fragment,null,$);return y(z.createElement(MA,Object.assign({ref:o,disabled:I,className:Qb(a,i,k),upHandler:S,downHandler:C,prefixCls:v,readOnly:h,controls:E,prefix:p,suffix:R,addonAfter:d&&z.createElement($C,null,z.createElement(kO,{override:!0,status:!0},d)),addonBefore:u&&z.createElement($C,null,z.createElement(kO,{override:!0,status:!0},u)),classNames:{input:T},classes:{affixWrapper:Qb(wN(`${v}-affix-wrapper`,j,D),{[`${v}-affix-wrapper-sm`]:"small"===N,[`${v}-affix-wrapper-lg`]:"large"===N,[`${v}-affix-wrapper-rtl`]:"rtl"===r,[`${v}-affix-wrapper-borderless`]:!f},w),wrapper:Qb({[`${F}-rtl`]:"rtl"===r,[`${v}-wrapper-disabled`]:I},w),group:Qb({[`${v}-group-wrapper-sm`]:"small"===N,[`${v}-group-wrapper-lg`]:"large"===N,[`${v}-group-wrapper-rtl`]:"rtl"===r},wN(`${v}-group-wrapper`,j,D),w)}},b)))})),GA=UA;GA._InternalPanelDoNotUseOrYouWillBeFired=e=>z.createElement(Sk,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(UA,Object.assign({},e)));const VA=GA,qA=e=>{const{getPrefixCls:t,direction:n}=z.useContext(Tw),{prefixCls:r,className:o}=e,a=t("input-group",r),i=t("input"),[s,l]=rF(i),c=Qb(a,{[`${a}-lg`]:"large"===e.size,[`${a}-sm`]:"small"===e.size,[`${a}-compact`]:e.compact,[`${a}-rtl`]:"rtl"===n},l,o),u=z.useContext(xO),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(xO.Provider,{value:d},e.children)))};function XA(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 KA=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 YA=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:p,addonBefore:f,className:h,style:g,styles:m,rootClassName:b,onChange:v,classNames:y}=e,w=KA(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:k,input:S}=H.useContext(Tw),C=x("input",r),E=z.useRef(null),[D,O]=rF(C),{compactSize:_,compactItemClassnames:$}=_C(C,k),j=xC((e=>{var t;return null!==(t=null!=i?i:_)&&void 0!==t?t:e})),N=H.useContext(Lw),P=null!=s?s:N,{status:I,hasFeedback:T,feedbackIcon:F}=z.useContext(xO),R=xN(I,a),A=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!T;z.useRef(A);const M=XA(E,!0),L=(T||u)&&H.createElement(H.Fragment,null,u,T&&F);let B;return"object"==typeof d&&(null==d?void 0:d.clearIcon)?B=d:d&&(B={clearIcon:H.createElement(Uk,null)}),D(H.createElement(jA,Object.assign({ref:xv(t,E),prefixCls:C,autoComplete:null==S?void 0:S.autoComplete},w,{disabled:P,onBlur:e=>{M(),null==l||l(e)},onFocus:e=>{M(),null==c||c(e)},style:Object.assign(Object.assign({},null==S?void 0:S.style),g),styles:Object.assign(Object.assign({},null==S?void 0:S.styles),m),suffix:L,allowClear:B,className:Qb(h,b,$,null==S?void 0:S.className),onChange:e=>{M(),null==v||v(e)},addonAfter:p&&H.createElement($C,null,H.createElement(kO,{override:!0,status:!0},p)),addonBefore:f&&H.createElement($C,null,H.createElement(kO,{override:!0,status:!0},f)),classNames:Object.assign(Object.assign(Object.assign({},y),null==S?void 0:S.classNames),{input:Qb({[`${C}-sm`]:"small"===j,[`${C}-lg`]:"large"===j,[`${C}-rtl`]:"rtl"===k,[`${C}-borderless`]:!o},!A&&wN(C,R),null==y?void 0:y.input,null===(n=null==S?void 0:S.classNames)||void 0===n?void 0:n.input,O)}),classes:{affixWrapper:Qb({[`${C}-affix-wrapper-sm`]:"small"===j,[`${C}-affix-wrapper-lg`]:"large"===j,[`${C}-affix-wrapper-rtl`]:"rtl"===k,[`${C}-affix-wrapper-borderless`]:!o},wN(`${C}-affix-wrapper`,R,T),O),wrapper:Qb({[`${C}-group-rtl`]:"rtl"===k},O),group:Qb({[`${C}-group-wrapper-sm`]:"small"===j,[`${C}-group-wrapper-lg`]:"large"===j,[`${C}-group-wrapper-rtl`]:"rtl"===k,[`${C}-group-wrapper-disabled`]:P},wN(`${C}-group-wrapper`,R,T),O)}})))})),QA=YA;const JA={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 ZA=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:JA}))};const eM=z.forwardRef(ZA);const tM={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 nM=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:tM}))};const rM=z.forwardRef(nM);var oM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const aM=e=>e?z.createElement(rM,null):z.createElement(eM,null),iM={click:"onClick",hover:"onMouseOver"},sM=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=XA(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:p}=e,f=oM(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=z.useContext(Tw),g=h("input",d),m=h("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:r=aM}=e,a=iM[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=Qb(m,c,{[`${m}-${p}`]:!!p}),y=Object.assign(Object.assign({},iy(f,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:v,prefixCls:g,suffix:b});return p&&(y.size=p),z.createElement(QA,Object.assign({ref:xv(t,i)},y))})),lM=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=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:p,onCompositionStart:f,onCompositionEnd:h}=e,g=cM(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:m,direction:b}=z.useContext(Tw),v=z.useRef(!1),y=m("input-search",n),w=m("input",r),{compactSize:x}=_C(y,b),k=xC((e=>{var t;return null!==(t=null!=a?a:x)&&void 0!==t?t:e})),S=z.useRef(null),C=e=>{var t;document.activeElement===(null===(t=S.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=S.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},D="boolean"==typeof s?z.createElement(eP,null):null,O=`${y}-button`;let _;const $=s||{},j=$.type&&!0===$.type.__ANT_BUTTON;_=j||"button"===$.type?sS($,Object.assign({onMouseDown:C,onClick:e=>{var t,n;null===(n=null===(t=null==$?void 0:$.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},j?{className:O,size:k}:{})):z.createElement(DE,{className:O,type:s?"primary":void 0,size:k,disabled:u,key:"enterButton",onMouseDown:C,onClick:E,loading:c,icon:D},s),l&&(_=[_,sS(l,{key:"addonAfter"})]);const N=Qb(y,{[`${y}-rtl`]:"rtl"===b,[`${y}-${k}`]:!!k,[`${y}-with-button`]:!!s},o);return z.createElement(QA,Object.assign({ref:xv(S,t),onPressEnter:e=>{v.current||c||E(e)}},g,{size:k,onCompositionStart:e=>{v.current=!0,null==f||f(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"}),p&&p(e)},className:N,disabled:u}))})),dM=uM;var pM,fM=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],hM={};function gM(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;pM||((pM=document.createElement("textarea")).setAttribute("tab-index","-1"),pM.setAttribute("aria-hidden","true"),document.body.appendChild(pM)),e.getAttribute("wrap")?pM.setAttribute("wrap",e.getAttribute("wrap")):pM.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&&hM[n])return hM[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:fM.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(hM[n]=s),s}(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;pM.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")),pM.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,p=pM.scrollHeight;if("border-box"===s?p+=i:"content-box"===s&&(p-=a),null!==n||null!==r){pM.value=" ";var f=pM.scrollHeight-a;null!==n&&(u=f*n,"border-box"===s&&(u=u+a+i),p=Math.max(u,p)),null!==r&&(d=f*r,"border-box"===s&&(d=d+a+i),c=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var mM=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],bM=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 p=Lp(n,mM),f=bm(tx(o,{value:a,postState:function(e){return null!=e?e:""}}),2),h=f[0],g=f[1],m=z.useRef();z.useImperativeHandle(t,(function(){return{textArea:m.current}}));var b=bm(z.useMemo((function(){return i&&"object"===Rp(i)?[i.minRows,i.maxRows]:[]}),[i]),2),v=b[0],y=b[1],w=!!i,x=bm(z.useState(2),2),k=x[0],S=x[1],C=bm(z.useState(),2),E=C[0],D=C[1],O=function(){S(0)};Pm((function(){w&&O()}),[a,v,y,w]),Pm((function(){if(0===k)S(1);else if(1===k){var e=gM(m.current,!1,v,y);S(2),D(e)}else!function(){try{if(document.activeElement===m.current){var e=m.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;m.current.setSelectionRange(t,n),m.current.scrollTop=r}}catch(Fte){}}()}),[k]);var _=z.useRef(),$=function(){py.cancel(_.current)};z.useEffect((function(){return $}),[]);var j=w?E:null,N=Mg(Mg({},c),j);return 0!==k&&1!==k||(N.overflowY="hidden",N.overflowX="hidden"),z.createElement(ay,{onResize:function(e){2===k&&(null==s||s(e),i&&($(),_.current=py((function(){O()}))))},disabled:!(i||s)},z.createElement("textarea",Zh({},p,{ref:m,style:N,className:Qb(r,l,Mp({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){g(e.target.value),null==d||d(e)}})))})),vM=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],yM=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,p=e.onCompositionEnd,f=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,k=e.hidden,S=e.classNames,C=e.styles,E=e.onResize,D=Lp(e,vM),O=bm(tx(o,{value:a,defaultValue:o}),2),_=O[0],$=O[1],j=null==_?"":String(_),N=bm(H.useState(!1),2),P=N[0],I=N[1],T=H.useRef(!1),F=bm(H.useState(null),2),R=F[0],A=F[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=bm(H.useState(null),2),U=W[0],G=W[1];H.useEffect((function(){var e;U&&(e=L()).setSelectionRange.apply(e,Rg(U))}),[U]);var V,q=_A(v,b),X=null!==(n=q.max)&&void 0!==n?n:u,K=Number(X)>0,Y=q.strategy(j),Q=!!X&&Y>X,J=function(e,t){var n=t;!T.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&G([L().selectionStart||0,L().selectionEnd||0]),$(n),CA(e.currentTarget,e,l,n)},Z=f;q.show&&(V=q.showFormatter?q.showFormatter({value:j,count:Y,maxLength:X}):"".concat(Y).concat(K?" / ".concat(X):""),Z=H.createElement(H.Fragment,null,Z,H.createElement("span",{className:Qb("".concat(g,"-data-count"),null==S?void 0:S.count),style:null==C?void 0:C.count},V)));var ee=!D.autoSize&&!b&&!c;return H.createElement(DA,{value:j,allowClear:c,handleReset:function(e){$(""),B(),CA(L(),e,l)},suffix:Z,prefixCls:g,classes:{affixWrapper:Qb(null==m?void 0:m.affixWrapper,(r={},Mp(r,"".concat(g,"-show-count"),b),Mp(r,"".concat(g,"-textarea-allow-clear"),c),r))},disabled:x,focused:P,className:Qb(y,Q&&"".concat(g,"-out-of-range")),style:Mg(Mg({},w),R&&!ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof V?V:void 0}},hidden:k,inputElement:H.createElement(bM,Zh({},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==p||p(e)},className:Qb(null==S?void 0:S.textarea),style:Mg(Mg({},null==C?void 0:C.textarea),{},{resize:null==w?void 0:w.resize}),disabled:x,prefixCls:g,onResize:function(e){var t;null==E||E(e),null!==(t=L())&&void 0!==t&&t.style.height&&A(!0)},ref:M}))})})),wM=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 xM=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,p=wM(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:f,direction:h}=z.useContext(Tw),g=xC(a),m=z.useContext(Lw),b=null!=i?i:m,{status:v,hasFeedback:y,feedbackIcon:w}=z.useContext(xO),x=xN(v,s),k=z.useRef(null);z.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=k.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=k.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=k.current)||void 0===e?void 0:e.blur()}}}));const S=f("input",r);let C;"object"==typeof l&&(null==l?void 0:l.clearIcon)?C=l:l&&(C={clearIcon:z.createElement(Uk,null)});const[E,D]=rF(S);return E(z.createElement(yM,Object.assign({},p,{disabled:b,allowClear:C,className:Qb(d,u),classes:{affixWrapper:Qb(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:"rtl"===h,[`${S}-affix-wrapper-borderless`]:!o,[`${S}-affix-wrapper-sm`]:"small"===g,[`${S}-affix-wrapper-lg`]:"large"===g,[`${S}-textarea-show-count`]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},wN(`${S}-affix-wrapper`,x),D)},classNames:Object.assign(Object.assign({},c),{textarea:Qb({[`${S}-borderless`]:!o,[`${S}-sm`]:"small"===g,[`${S}-lg`]:"large"===g},wN(S,x),D,null==c?void 0:c.textarea)}),prefixCls:S,suffix:y&&z.createElement("span",{className:`${S}-textarea-suffix`},w),ref:k})))})),kM=QA;kM.Group=qA,kM.Search=dM,kM.TextArea=xM,kM.Password=lM;const SM=kM;var CM=z.createContext(null),EM=z.createContext({}),DM=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=kv(z.useContext(EM).panel,a);return z.createElement(z.Fragment,null,z.createElement("div",Zh({id:i,className:Qb("".concat(t,"-content"),n),style:Mg({},r),"aria-modal":"true",role:"dialog",ref:l},s),o))};function OM(e){return"string"==typeof e&&String(Number(e))===e?(Gg(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var _M={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function $M(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,p=e.autoFocus,f=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,k=e.width,S=e.height,C=e.children,E=e.contentWrapperStyle,D=e.mask,O=e.maskClosable,_=e.maskMotion,$=e.maskClassName,j=e.maskStyle,N=e.afterOpenChange,P=e.onClose,I=e.onMouseEnter,T=e.onMouseOver,F=e.onMouseLeave,R=e.onClick,A=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&&p&&(null===(e=B.current)||void 0===e||e.focus({preventScroll:!0}))}),[s]);var U=bm(z.useState(!1),2),G=U[0],V=U[1],q=z.useContext(CM),X=null!==(n=null!==(r=null===(o=!1===u?{distance:0}:!0===u?{}:u||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==q?void 0:q.pushDistance)&&void 0!==n?n:180,K=z.useMemo((function(){return{pushDistance:X,push:function(){V(!0)},pull:function(){V(!1)}}}),[X]);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(tk,Zh({key:"mask"},_,{visible:s}),(function(e,t){var n=e.className,r=e.style;return z.createElement("div",{className:Qb("".concat(i,"-mask"),n,null==h?void 0:h.mask,$),style:Mg(Mg(Mg({},r),j),null==L?void 0:L.mask),onClick:O&&s?P:void 0,ref:t})})),Q="function"==typeof x?x(l):x,J={};if(G&&X)switch(l){case"top":J.transform="translateY(".concat(X,"px)");break;case"bottom":J.transform="translateY(".concat(-X,"px)");break;case"left":J.transform="translateX(".concat(X,"px)");break;default:J.transform="translateX(".concat(-X,"px)")}"left"===l||"right"===l?J.width=OM(k):J.height=OM(S);var Z={onMouseEnter:I,onMouseOver:T,onMouseLeave:F,onClick:R,onKeyDown:A,onKeyUp:M},ee=z.createElement(tk,Zh({key:"panel"},Q,{visible:s,forceRender:d,onVisibleChanged:function(e){null==N||N(e)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return z.createElement("div",Zh({className:Qb("".concat(i,"-content-wrapper"),null==h?void 0:h.wrapper,r),style:Mg(Mg(Mg(Mg({},J),o),E),null==L?void 0:L.wrapper)},oS(e,{data:!0})),z.createElement(DM,Zh({id:y,containerRef:n,prefixCls:i,className:Qb(v,null==h?void 0:h.content),style:Mg(Mg({},w),null==L?void 0:L.content)},Z),C))})),te=Mg({},m);return b&&(te.zIndex=b),z.createElement(CM.Provider,{value:K},z.createElement("div",{className:Qb(i,"".concat(i,"-").concat(l),g,(a={},Mp(a,"".concat(i,"-open"),s),Mp(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 gS.TAB:var r;if(t===gS.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 gS.ESC:P&&f&&(e.stopPropagation(),P(e))}}},Y,z.createElement("div",{tabIndex:0,ref:H,style:_M,"aria-hidden":"true","data-sentinel":"start"}),ee,z.createElement("div",{tabIndex:0,ref:W,style:_M,"aria-hidden":"true","data-sentinel":"end"})))}var jM=z.forwardRef($M),NM=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,p=void 0===d?378:d,f=e.mask,h=void 0===f||f,g=e.maskClosable,m=void 0===g||g,b=e.getContainer,v=e.forceRender,y=e.afterOpenChange,w=e.destroyOnClose,x=e.onMouseEnter,k=e.onMouseOver,S=e.onMouseLeave,C=e.onClick,E=e.onKeyDown,D=e.onKeyUp,O=e.panelRef,_=bm(z.useState(!1),2),$=_[0],j=_[1],N=bm(z.useState(!1),2),P=N[0],I=N[1];Pm((function(){I(!0)}),[]);var T=!!P&&n,F=z.useRef(),R=z.useRef();Pm((function(){T&&(R.current=document.activeElement)}),[T]);var A=z.useMemo((function(){return{panel:O}}),[O]);if(!v&&!$&&!T&&w)return null;var M={onMouseEnter:x,onMouseOver:k,onMouseLeave:S,onClick:C,onKeyDown:E,onKeyUp:D},L=Mg(Mg({},e),{},{open:T,prefixCls:o,placement:i,autoFocus:l,keyboard:u,width:p,mask:h,maskClosable:m,inline:!1===b,afterOpenChange:function(e){var t,n;(j(e),null==y||y(e),e||!R.current||null!==(t=F.current)&&void 0!==t&&t.contains(R.current))||(null===(n=R.current)||void 0===n||n.focus({preventScroll:!0}))},ref:F},M);return z.createElement(EM.Provider,{value:A},z.createElement(HE,{open:T||v||$,autoDestroy:!1,getContainer:b,autoLock:h&&(T||$)},z.createElement(jM,L)))};const PM=e=>{var t,n;const{prefixCls:r,title:o,footer:a,extra:i,closeIcon:s,closable:l,onClose:c,headerStyle:u,drawerStyle:d,bodyStyle:p,footerStyle:f,children:h,classNames:g,styles:m}=e,{drawer:b}=z.useContext(Tw),v=z.useCallback((e=>z.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},e)),[c]),[y,w]=nD(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:Qb(`${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]),k=z.useMemo((()=>{var e,t;if(!a)return null;const n=`${r}-footer`;return z.createElement("div",{className:Qb(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),f),null==m?void 0:m.footer)},a)}),[a,f,r]);return z.createElement("div",{className:`${r}-wrapper-body`,style:d},x,z.createElement("div",{className:Qb(`${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),p),null==m?void 0:m.body)},h),k)},IM=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%)"}}}]}}}},TM=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:p,colorSplit:f,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 ${p} ${f}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:h,color:g,fontWeight: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 ${p} ${f}`},"&-rtl":{direction:"rtl"}}}},FM=gx("Drawer",(e=>{const t=dx(e,{});return[TM(t),IM(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var RM=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const AM={distance:180},MM=e=>{var t,n,r,o,a,i,s,l;const{rootClassName:c,width:u,height:d,size:p="default",mask:f=!0,push:h=AM,open:g,afterOpenChange:m,onClose:b,prefixCls:v,getContainer:y,style:w,className:x,visible:k,afterVisibleChange:S}=e,C=RM(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(Tw),$=D("drawer",v),[j,N]=FM($),P=void 0===y&&E?()=>E(document.body):y,I=Qb({"no-mask":!f,[`${$}-rtl`]:"rtl"===O},c,N),T=z.useMemo((()=>null!=u?u:"large"===p?736:378),[u,p]),F=z.useMemo((()=>null!=d?d:"large"===p?736:378),[d,p]),R={motionName:dC($,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},A=EO(),[M,L]=E_("Drawer",C.zIndex);return j(z.createElement($C,null,z.createElement(kO,{status:!0,override:!0},z.createElement(rD.Provider,{value:L},z.createElement(NM,Object.assign({prefixCls:$,onClose:b,maskMotion:R,motion:e=>({motionName:dC($,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},C,{classNames:{mask:Qb(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:Qb(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:k,mask:f,push:h,width:T,height:F,style:Object.assign(Object.assign({},null==_?void 0:_.style),w),className:Qb(null==_?void 0:_.className,x),rootClassName:I,getContainer:P,afterOpenChange:null!=m?m:S,panelRef:A,zIndex:M}),z.createElement(PM,Object.assign({prefixCls:$},C,{onClose:b})))))))};MM._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,a=RM(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=z.useContext(Tw),s=i("drawer",t),[l,c]=FM(s),u=Qb(s,`${s}-pure`,`${s}-${o}`,c,r);return l(z.createElement("div",{className:u,style:n},z.createElement(PM,Object.assign({prefixCls:s},a))))};const LM=MM;function BM(e){return["small","middle","large"].includes(e)}function zM(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const HM=H.createContext({latestIndex:0}),WM=HM.Provider,UM=e=>{let{className:t,index:n,children:r,split:o,style:a}=e;const{latestIndex:i}=z.useContext(HM);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 GM=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 VM=z.forwardRef(((e,t)=>{var n,r;const{getPrefixCls:o,space:a,direction:i}=z.useContext(Tw),{size:s=(null==a?void 0:a.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:p="horizontal",prefixCls:f,split:h,style:g,wrap:m=!1,classNames:b,styles:v}=e,y=GM(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,x]=Array.isArray(s)?s:[s,s],k=BM(x),S=BM(w),C=zM(x),E=zM(w),D=bv(d,{keepEmpty:!0}),O=void 0===l&&"horizontal"===p?"center":l,_=o("space",f),[$,j]=EC(_),N=Qb(_,null==a?void 0:a.className,j,`${_}-${p}`,{[`${_}-rtl`]:"rtl"===i,[`${_}-align-${O}`]:O,[`${_}-gap-row-${x}`]:k,[`${_}-gap-col-${w}`]:S},c,u),P=Qb(`${_}-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||`${P}-${t}`;return z.createElement(UM,{className:P,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)})),F=z.useMemo((()=>({latestIndex:I})),[I]);if(0===D.length)return null;const R={};return m&&(R.flexWrap="wrap"),!S&&E&&(R.columnGap=w),!k&&C&&(R.rowGap=x),$(z.createElement("div",Object.assign({ref:t,className:N,style:Object.assign(Object.assign(Object.assign({},R),null==a?void 0:a.style),g)},y),z.createElement(WM,{value:F},T)))}));VM.Compact=NC;const qM=VM;function XM(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 KM=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)"}}}}},YM=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}}),QM=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},JM=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ox(e)),YM(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},QM(e,e.controlHeightSM)),"&-large":Object.assign({},QM(e,e.controlHeightLG))})}},ZM=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({},ox(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:e_,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},eL=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"}}}}},tL=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"}}}}},nL=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),rL=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:nL(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},oL=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`]:nL(e),[`@media (max-width: ${e.screenXSMax}px)`]:[rL(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:nL(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:nL(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:nL(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:nL(e)}}}},aL=(e,t)=>dx(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),iL=gx("Form",((e,t)=>{let{rootPrefixCls:n}=t;const r=aL(e,n);return[JM(r),ZM(r),KM(r),eL(r),tL(r),oL(r),h_(r),e_]}),(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}),sL=[];function lL(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 cL=e=>{let{help:t,helpStatus:n,errors:r=sL,warnings:o=sL,className:a,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:l}=z.useContext(wO),c=`${l}-item-explain`,[,u]=iL(l),d=z.useMemo((()=>uC(l)),[l]),p=XM(r),f=XM(o),h=z.useMemo((()=>null!=t?[lL(t,"help",n)]:[].concat(Rg(p.map(((e,t)=>lL(e,"error","error",t)))),Rg(f.map(((e,t)=>lL(e,"warning","warning",t)))))),[t,n,p,f]),g={};return i&&(g.id=`${i}_help`),z.createElement(tk,{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:Qb(c,t,a,u),style:n,role:"alert"}),z.createElement(dk,Object.assign({keys:h},uC(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:Qb(o,{[`${c}-${r}`]:r}),style:a},n)})))}))},uL=["parentNode"],dL="form_item";function pL(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function fL(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return uL.includes(n)?`${dL}_${n}`:n}function hL(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 gL(e){return pL(e).join("_")}function mL(e){const[t]=cO(),n=z.useRef({}),r=z.useMemo((()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=gL(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=fL(pL(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(fS(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:a,top:i,left:s}of fS(e,hS(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=gL(e);return n.current[t]}})),[e,t]);return[r]}var bL=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 vL=(e,t)=>{const n=z.useContext(Lw),{getPrefixCls:r,direction:o,form:a}=z.useContext(Tw),{prefixCls:i,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:p,labelAlign:f,labelWrap:h,labelCol:g,wrapperCol:m,hideRequiredMark:b,layout:v="horizontal",scrollToFirstError:y,requiredMark:w,onFinishFailed:x,name:k,style:S,feedbackIcons:C}=e,E=bL(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),D=xC(c),O=z.useContext(Cy),_=z.useMemo((()=>void 0!==w?w:a&&void 0!==a.requiredMark?a.requiredMark:!b),[b,w,a]),$=null!=p?p:null==a?void 0:a.colon,j=r("form",i),[N,P]=iL(j),I=Qb(j,`${j}-${v}`,{[`${j}-hide-required-mark`]:!1===_,[`${j}-rtl`]:"rtl"===o,[`${j}-${D}`]:D},P,null==a?void 0:a.className,s,l),[T]=mL(d),{__INTERNAL__:F}=T;F.name=k;const R=z.useMemo((()=>({name:k,labelAlign:f,labelCol:g,labelWrap:h,wrapperCol:m,vertical:"vertical"===v,colon:$,requiredMark:_,itemRef:F.itemRef,form:T,feedbackIcons:C})),[k,f,g,m,v,$,_,T,C]);z.useImperativeHandle(t,(()=>T));const A=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),T.scrollToField(t,n)}};return N(z.createElement(Mw,{disabled:u},z.createElement(Hw.Provider,{value:D},z.createElement(yO,{validateMessages:O},z.createElement(bO.Provider,{value:R},z.createElement(mO,Object.assign({id:k},E,{name:k,onFinishFailed:e=>{if(null==x||x(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==y)return void A(y,t);a&&void 0!==a.scrollToFirstError&&A(a.scrollToFirstError,t)}},form:T,style:Object.assign(Object.assign({},null==a?void 0:a.style),S),className:I})))))))},yL=z.forwardRef(vL);const wL=()=>{const{status:e,errors:t=[],warnings:n=[]}=z.useContext(xO);return{status:e,errors:t,warnings:n}};wL.Context=xO;const xL=wL;const kL=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},SL=mx(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=aL(e,n);return[kL(r)]})),CL=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:p}=e,f=`${t}-item`,h=z.useContext(bO),g=r||h.wrapperCol||{},m=Qb(`${f}-control`,g.className),b=z.useMemo((()=>Object.assign({},h)),[h]);delete b.labelCol,delete b.wrapperCol;const v=z.createElement("div",{className:`${f}-control-input`},z.createElement("div",{className:`${f}-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(wO.Provider,{value:y},z.createElement(cL,{fieldId:u,errors:a,warnings:i,help:c,helpStatus:n,className:`${f}-explain-connected`,onVisibleChanged:p})),!!d&&z.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id=`${u}_extra`);const k=l?z.createElement("div",Object.assign({},x,{className:`${f}-extra`}),l):null,S=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:v,errorList:w,extra:k}):z.createElement(z.Fragment,null,v,w,k);return z.createElement(bO.Provider,{value:b},z.createElement(AR,Object.assign({},g,{className:m}),S),z.createElement(SL,{prefixCls:t}))};const EL={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 DL=function(e,t){return z.createElement(Lk,Zh({},e,{ref:t,icon:EL}))};const OL=z.forwardRef(DL);var _L=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $L=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]=Ty("Form"),{vertical:p,labelAlign:f,labelCol:h,labelWrap:g,colon:m}=z.useContext(bO);if(!n)return null;const b=o||h||{},v=`${t}-item-label`,y=Qb(v,"left"===(a||f)&&`${v}-left`,b.className,{[`${v}-wrap`]:!!g});let w=n;const x=!0===i||!1!==m&&!1!==i;x&&!p&&"string"==typeof n&&""!==n.trim()&&(w=n.replace(/[:|]\s*$/,""));const k=function(e){return e?"object"!=typeof e||z.isValidElement(e)?{title:e}:e:null}(c);if(k){const{icon:e=z.createElement(OL,null)}=k,n=_L(k,["icon"]),r=z.createElement(AP,Object.assign({},n),z.cloneElement(e,{className:`${t}-item-tooltip`,title:""}));w=z.createElement(z.Fragment,null,w,r)}const S="optional"===l,C="function"==typeof l;C?w=l(w,{required:!!s}):S&&!s&&(w=z.createElement(z.Fragment,null,w,z.createElement("span",{className:`${t}-item-optional`,title:""},(null==d?void 0:d.optional)||(null===(u=_y.Form)||void 0===u?void 0:u.optional))));const E=Qb({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:S||C,[`${t}-item-no-colon`]:!x});return z.createElement(AR,Object.assign({},b,{className:y}),z.createElement("label",{htmlFor:r,className:E,title:"string"==typeof n?n:""},w))},jL={success:zk,warning:Yk,error:Uk,validating:_S};function NL(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(bO),d=hL(n,r,s,null,!!o,a),{isFormItemInput:p,status:f,hasFeedback:h,feedbackIcon:g}=z.useContext(xO),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&&jL[d];t=!1!==i&&s?z.createElement("span",{className:Qb(`${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:f)||"",a.isFormItemInput=p,a.hasFeedback=!!(null!=o?o:h),a.feedbackIcon=void 0!==o?a.feedbackIcon:g),a}),[d,o,l,p,f]);return z.createElement(xO.Provider,{value:m},t)}var PL=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 IL(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:p,fieldId:f,required:h,isRequired:g,onSubItemMetaChange:m}=e,b=PL(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),v=`${t}-item`,{requiredMark:y}=z.useContext(bO),w=z.useRef(null),x=XM(i),k=XM(s),S=null!=a,C=!!(S||i.length||s.length),E=!!w.current&&pC(w.current),[D,O]=z.useState(null);Pm((()=>{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 hL(e?x:c.errors,e?k:c.warnings,c,"",!!u,l)}(),$=Qb(v,n,r,{[`${v}-with-help`]:S||x.length||k.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:$,style:o,ref:w},z.createElement(BR,Object.assign({className:`${v}-row`},iy(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($L,Object.assign({htmlFor:f},e,{requiredMark:y,required:null!=h?h:g,prefixCls:t})),z.createElement(CL,Object.assign({},e,c,{errors:x,warnings:k,prefixCls:t,status:_,help:a,marginBottom:D,onErrorVisibleChanged:e=>{e||O(null)}}),z.createElement(vO.Provider,{value:m},z.createElement(NL,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:_},p)))),!!D&&z.createElement("div",{className:`${v}-margin-offset`,style:{marginBottom:-D}}))}const TL=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 FL=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:p="onChange",validateTrigger:f,hidden:h,help:g}=e,{getPrefixCls:m}=z.useContext(Tw),{name:b}=z.useContext(bO),v=function(e){if("function"==typeof e)return e;const t=bv(e);return t.length<=1?t[0]:t}(l),y="function"==typeof v,w=z.useContext(vO),{validateTrigger:x}=z.useContext(iD),k=void 0!==f?f:x,S=!(null==t),C=m("form",a),[E,D]=iL(C);Sy();const O=z.useContext(sD),_=z.useRef(),[$,j]=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,py.cancel(r.current),r.current=null})),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=py((()=>{r.current=null,n((e=>{let t=e;return o.current.forEach((e=>{t=e(t)})),t}))}))),o.current.push(e))}]}({}),[N,P]=Zw((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),I=(e,t)=>{j((n=>{const r=Object.assign({},n),o=[].concat(Rg(e.name.slice(0,-1)),Rg(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[T,F]=z.useMemo((()=>{const e=Rg(N.errors),t=Rg(N.warnings);return Object.values($).forEach((n=>{e.push.apply(e,Rg(n.errors||[])),t.push.apply(t,Rg(n.warnings||[]))})),[e,t]}),[$,N.errors,N.warnings]),R=function(){const{itemRef:e}=z.useContext(bO),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=xv(e(n),o)),t.current.ref}}();function A(t,o,a){return n&&!h?z.createElement(NL,{prefixCls:C,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:T,warnings:F,noStyle:!0},t):z.createElement(IL,Object.assign({key:"row"},e,{className:Qb(r,D),prefixCls:C,fieldId:o,isRequired:a,errors:T,warnings:F,meta:N,onSubItemMetaChange:I}),t)}if(!S&&!y&&!o)return E(A(v));let M={};return"string"==typeof u?M.label=u:t&&(M.label=String(t)),d&&(M=Object.assign(Object.assign({},M),d)),E(z.createElement(nO,Object.assign({},e,{messageVariables:M,trigger:p,validateTrigger:k,onMetaChange:e=>{const t=null==O?void 0:O.getKey(e.name);if(P(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(Rg(r)),_.current=n}w(e,n)}}}),((n,r,a)=>{const l=pL(t).length&&r?r.name:[],u=fL(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}))),f=Object.assign({},n);let h=null;if(Array.isArray(v)&&S)h=v;else if(y&&(!i&&!o||S));else if(!o||y||S)if(aS(v)){const t=Object.assign(Object.assign({},v.props),f);if(t.id||(t.id=u),g||T.length>0||F.length>0||e.extra){const n=[];(g||T.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}T.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),Sv(v)&&(t.ref=R(l,v));new Set([].concat(Rg(pL(p)),Rg(pL(k)))).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=f[e])||void 0===r||(t=r).call.apply(t,[f].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(TL,{value:f[e.valuePropName||"value"],update:v,childProps:n},sS(v,t))}else h=y&&(i||o)&&!S?v(a):v;else;return A(h,u,d)})))};FL.useStatus=xL;const RL=FL;var AL=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 ML=e=>{var{prefixCls:t,children:n}=e,r=AL(e,["prefixCls","children"]);const{getPrefixCls:o}=z.useContext(Tw),a=o("form",t),i=z.useMemo((()=>({prefixCls:a,status:"error"})),[a]);return z.createElement(rO,Object.assign({},r),((e,t,r)=>z.createElement(wO.Provider,{value:i},n(e.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),t,{errors:r.errors,warnings:r.warnings}))))};const LL=yL;LL.Item=RL,LL.List=ML,LL.ErrorList=cL,LL.useForm=mL,LL.useFormInstance=function(){const{form:e}=z.useContext(bO);return e},LL.useWatch=gO,LL.Provider=yO,LL.create=()=>{};const BL=LL;let zL=null,HL=e=>e(),WL=[],UL={};function GL(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:a}=UL,i=null!=e?e:xk().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:a}}const VL=z.forwardRef(((e,t)=>{const[n,r]=z.useState(GL),[o,a]=HS(n),i=xk(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=()=>{r(GL)};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(Sk,{prefixCls:s,iconPrefixCls:l,theme:c},a)}));function qL(){if(!zL){const e=document.createDocumentFragment(),t={fragment:e};return zL=t,void HL((()=>{eC(z.createElement(VL,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,qL())}))}}),e)}))}zL.instance&&(WL.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":HL((()=>{const t=zL.instance.open(Object.assign(Object.assign({},UL),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":HL((()=>{null==zL||zL.instance.destroy(e.key)}));break;default:HL((()=>{var n;const r=(n=zL.instance)[t].apply(n,Rg(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),WL=[])}const XL={open:function(e){const t=FS((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return WL.push(r),()=>{n?HL((()=>{n()})):r.skipped=!0}}));return qL(),t},destroy:function(e){WL.push({type:"destroy",key:e}),qL()},config:function(e){UL=Object.assign(Object.assign({},UL),e),HL((()=>{var e;null===(e=null==zL?void 0:zL.sync)||void 0===e||e.call(zL)}))},useMessage:WS,_InternalPanelDoNotUseOrYouWillBeFired:TS};["success","info","warning","error","loading"].forEach((e=>{XL[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=FS((n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return WL.push(o),()=>{r?HL((()=>{r()})):o.skipped=!0}}));return qL(),n}(e,n)}}));const KL=XL;var YL=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 QL=E$((e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:a,title:i,children:s,footer:l}=e,c=YL(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=z.useContext(Tw),d=u(),p=t||u("modal"),[,f]=k_(p),h=`${p}-confirm`;let g={};return g=a?{closable:null!=o&&o,title:"",footer:"",children:z.createElement(I_,Object.assign({},e,{prefixCls:p,confirmPrefixCls:h,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:i,footer:null!==l&&z.createElement($O,Object.assign({},e)),children:s},z.createElement(QE,Object.assign({prefixCls:p,className:Qb(f,`${p}-pure-panel`,a&&h,a&&`${h}-${a}`,n)},c,{closeIcon:_O(p,r),closable:o},g))}));function JL(e){return M_(L_(e))}const ZL=$_;ZL.useModal=K_,ZL.info=function(e){return M_(B_(e))},ZL.success=function(e){return M_(z_(e))},ZL.error=function(e){return M_(H_(e))},ZL.warning=JL,ZL.warn=JL,ZL.confirm=function(e){return M_(W_(e))},ZL.destroyAll=function(){for(;F_.length;){const e=F_.pop();e&&e()}},ZL.config=function(e){let{rootPrefixCls:t}=e;A_=t},ZL._InternalPanelDoNotUseOrYouWillBeFired=QL;const eB=ZL;let tB=null,nB=e=>e(),rB=[],oB={};function aB(){const{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:a}=oB,i=null!=e?e:xk().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:i,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:a}}const iB=z.forwardRef(((e,t)=>{const[n,r]=z.useState(aB),[o,a]=b$(n),i=xk(),s=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=()=>{r(aB)};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(Sk,{prefixCls:s,iconPrefixCls:l,theme:c},a)}));function sB(){if(!tB){const e=document.createDocumentFragment(),t={fragment:e};return tB=t,void nB((()=>{eC(z.createElement(iB,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,sB())}))}}),e)}))}tB.instance&&(rB.forEach((e=>{switch(e.type){case"open":nB((()=>{tB.instance.open(Object.assign(Object.assign({},oB),e.config))}));break;case"destroy":nB((()=>{null==tB||tB.instance.destroy(e.key)}))}})),rB=[])}function lB(e){rB.push({type:"open",config:e}),sB()}const cB={open:lB,destroy:function(e){rB.push({type:"destroy",key:e}),sB()},config:function(e){oB=Object.assign(Object.assign({},oB),e),nB((()=>{var e;null===(e=null==tB?void 0:tB.sync)||void 0===e||e.call(tB)}))},useNotification:v$,_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:r,type:o,message:a,description:i,btn:s,closable:l=!0,closeIcon:c}=e,u=l$(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=z.useContext(Tw),p=t||d("notification"),f=`${p}-notice`,[,h]=i$(p);return z.createElement("div",{className:Qb(`${f}-pure-panel`,h,n)},z.createElement(s$,{prefixCls:p}),z.createElement(mS,Object.assign({},u,{prefixCls:p,eventKey:"pure",duration:null,closable:l,closeIcon:c$(p,c),content:z.createElement(d$,{prefixCls:f,icon:r,type:o,message:a,description:i,btn:s})})))}};["success","info","warning","error"].forEach((e=>{cB[e]=t=>lB(Object.assign(Object.assign({},t),{type:e}))}));const uB=cB;var dB=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},pB=function(e){return void 0!==e?"".concat(e,"px"):void 0};function fB(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=bm(z.useState(r),2),d=u[0],p=u[1],f=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=bm(z.useState(null),2),g=h[0],m=h[1],b=bm(z.useState(null),2),v=b[0],y=b[1];Pm((function(){if(d!==r){var e=f(d),t=f(r),n=dB(e),o=dB(t);p(r),m(n),y(o),e&&t?i():s()}}),[r]);var w=z.useMemo((function(){return pB("rtl"===l?-(null==g?void 0:g.right):null==g?void 0:g.left)}),[l,g]),x=z.useMemo((function(){return pB("rtl"===l?-(null==v?void 0:v.right):null==v?void 0:v.left)}),[l,v]);return g&&v?z.createElement(tk,{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=Mg(Mg({},e.style),{},{"--thumb-start-left":w,"--thumb-start-width":pB(null==g?void 0:g.width),"--thumb-active-left":x,"--thumb-active-width":pB(null==v?void 0:v.width)}),a={ref:xv(c,n),style:o,className:Qb("".concat(t,"-thumb"),r)};return z.createElement("div",a)})):null}var hB=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function gB(e){return e.map((function(e){if("object"===Rp(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==Rp(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return Mg(Mg({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}}))}var mB=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:Qb(n,Mp({},"".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))},bB=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,p=e.className,f=void 0===p?"":p,h=e.motionName,g=void 0===h?"thumb-motion":h,m=Lp(e,hB),b=z.useRef(null),v=z.useMemo((function(){return xv(b,t)}),[b,t]),y=z.useMemo((function(){return gB(s)}),[s]),w=bm(tx(null===(n=y[0])||void 0===n?void 0:n.value,{value:u,defaultValue:c}),2),x=w[0],k=w[1],S=bm(z.useState(!1),2),C=S[0],E=S[1],D=function(e,t){l||(k(t),null==d||d(t))},O=iy(m,["children"]);return z.createElement("div",Zh({},O,{className:Qb(a,(r={},Mp(r,"".concat(a,"-rtl"),"rtl"===i),Mp(r,"".concat(a,"-disabled"),l),r),f),ref:v}),z.createElement("div",{className:"".concat(a,"-group")},z.createElement(fB,{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(mB,Zh({},e,{key:e.value,prefixCls:a,className:Qb(e.className,"".concat(a,"-item"),Mp({},"".concat(a,"-item-selected"),e.value===x&&!C)),checked:e.value===x,onChange:D,disabled:!!l||!!e.disabled}))}))))}));function vB(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function yB(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}bB.displayName="Segmented",bB.defaultProps={options:[]};const wB=Object.assign({overflow:"hidden"},rx),xB=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ox(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({},yB(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`},wB),"&-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({},yB(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}}}),vB(`&-disabled ${t}-item`,e)),vB(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},kB=gx("Segmented",(e=>{const{lineWidth:t,lineWidthBold:n,colorBgLayout:r}=e,o=dx(e,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:e.controlPaddingHorizontal-t,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-t});return[xB(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 SB=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 CB=z.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,block:a,options:i=[],size:s="middle",style:l}=e,c=SB(e,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:u,direction:d,segmented:p}=z.useContext(Tw),f=u("segmented",n),[h,g]=kB(f),m=xC(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=SB(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:z.createElement(z.Fragment,null,z.createElement("span",{className:`${f}-item-icon`},t),n&&z.createElement("span",null,n))})}return e}))),[i,f]),v=Qb(r,o,null==p?void 0:p.className,{[`${f}-block`]:a,[`${f}-sm`]:"small"===m,[`${f}-lg`]:"large"===m},g),y=Object.assign(Object.assign({},null==p?void 0:p.style),l);return h(z.createElement(bB,Object.assign({},c,{className:v,style:y,options:b,ref:t,prefixCls:f,direction:d})))}));var EB=z.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});function DB(e,t,n){return(e-t)/(n-t)}function OB(e,t,n,r){var o=DB(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 _B(e,t){return Array.isArray(e)?e[t]:e}var $B=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],jB=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,p=Lp(e,$B),f=z.useContext(EB),h=f.min,g=f.max,m=f.direction,b=f.disabled,v=f.keyboard,y=f.range,w=f.tabIndex,x=f.ariaLabelForHandle,k=f.ariaLabelledByForHandle,S=f.ariaValueTextFormatterForHandle,C=f.styles,E=f.classNames,D="".concat(o,"-handle"),O=function(e){b||s(e,i)},_=OB(m,a,h,g),$=z.createElement("div",Zh({ref:t,className:Qb(D,(n={},Mp(n,"".concat(D,"-").concat(i+1),y),Mp(n,"".concat(D,"-dragging"),u),n),E.handle),style:Mg(Mg(Mg({},_),l),C.handle),onMouseDown:O,onTouchStart:O,onKeyDown:function(e){if(!b&&v){var t=null;switch(e.which||e.keyCode){case gS.LEFT:t="ltr"===m||"btt"===m?-1:1;break;case gS.RIGHT:t="ltr"===m||"btt"===m?1:-1;break;case gS.UP:t="ttb"!==m?1:-1;break;case gS.DOWN:t="ttb"!==m?-1:1;break;case gS.HOME:t="min";break;case gS.END:t="max";break;case gS.PAGE_UP:t=2;break;case gS.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,i))}},tabIndex:b?null:_B(w,i),role:"slider","aria-valuemin":h,"aria-valuemax":g,"aria-valuenow":a,"aria-disabled":b,"aria-label":_B(x,i),"aria-labelledby":_B(k,i),"aria-valuetext":null===(r=_B(S,i))||void 0===r?void 0:r(a),"aria-orientation":"ltr"===m||"rtl"===m?"horizontal":"vertical"},p));return c&&($=c($,{index:i,prefixCls:o,value:a,dragging:u})),$})),NB=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],PB=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=Lp(e,NB),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(jB,Zh({ref:function(e){e?u.current[t]=e:delete u.current[t]},dragging:l===t,prefixCls:n,style:_B(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:a,render:s},c))})))}));function IB(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function TB(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,i=z.useContext(EB),s=i.min,l=i.max,c=i.direction,u=i.includedStart,d=i.includedEnd,p=i.included,f="".concat(t,"-text"),h=OB(c,o,s,l);return z.createElement("span",{className:Qb(f,Mp({},"".concat(f,"-active"),p&&u<=o&&o<=d)),style:Mg(Mg({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(o)}},r)}function FB(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(TB,{key:t,prefixCls:o,style:n,value:t,onClick:r},a)}))):null}function RB(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=z.useContext(EB),i=a.min,s=a.max,l=a.direction,c=a.included,u=a.includedStart,d=a.includedEnd,p="".concat(t,"-dot"),f=c&&u<=n&&n<=d,h=Mg(Mg({},OB(l,n,i,s)),"function"==typeof r?r(n):r);return f&&(h=Mg(Mg({},h),"function"==typeof o?o(n):o)),z.createElement("span",{className:Qb(p,Mp({},"".concat(p,"-active"),f)),style:h})}function AB(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=z.useContext(EB),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(RB,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})})))}function MB(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(EB),u=c.direction,d=c.min,p=c.max,f=c.disabled,h=c.range,g=c.classNames,m="".concat(n,"-track"),b=DB(o,d,p),v=DB(a,d,p),y=function(e){!f&&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||Qb(m,(Mp(t={},"".concat(m,"-").concat(i+1),null!==i&&h),Mp(t,"".concat(n,"-track-draggable"),s),t),g.track);return z.createElement("div",{className:x,style:Mg(Mg({},w),r),onMouseDown:y,onTouchStart:y})}function LB(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,i=z.useContext(EB),s=i.included,l=i.range,c=i.min,u=i.styles,d=i.classNames,p=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]),f=null;return(d.tracks||u.tracks)&&(f=z.createElement(MB,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:Qb(d.tracks,"".concat(t,"-tracks")),style:u.tracks})),s?z.createElement(z.Fragment,null,f,p.map((function(e,r){var o=e.start,i=e.end;return z.createElement(MB,{index:r,prefixCls:t,style:Mg(Mg({},_B(n,r)),u.track),start:o,end:i,key:r,onStartMove:a})}))):null}var BB=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,p=void 0===d||d,f=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,k=e.value,S=e.defaultValue,C=e.range,E=e.count,D=e.onChange,O=e.onBeforeChange,_=e.onAfterChange,$=e.allowCross,j=void 0===$||$,N=e.pushable,P=void 0!==N&&N,I=e.draggableTrack,T=e.reverse,F=e.vertical,R=e.included,A=void 0===R||R,M=e.startPoint,L=e.trackStyle,B=e.handleStyle,H=e.railStyle,W=e.dotStyle,U=e.activeDotStyle,G=e.marks,V=e.dots,q=e.handleRender,X=e.tabIndex,K=void 0===X?0:X,Y=e.ariaLabelForHandle,Q=e.ariaLabelledByForHandle,J=e.ariaValueTextFormatterForHandle,Z=z.useRef(),ee=z.useRef(),te=z.useMemo((function(){return F?T?"ttb":"btt":T?"rtl":"ltr"}),[T,F]),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 P?!!P&&oe:P>=0&&P}),[P,oe]),ie=z.useMemo((function(){return Object.keys(G||{}).map((function(e){var t=G[e],n={value:Number(e)};return t&&"object"===Rp(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}))}),[G]),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],p=d+i,f=[];r.forEach((function(e){f.push(e.value)})),f.push(e,t),f.push(s(d));var h=i>0?1:-1;"unit"===c?f.push(s(d+h*n)):f.push(s(p)),f=f.filter((function(e){return null!==e})).filter((function(e){return i<0?e<=d:e>=d})),"unit"===c&&(f=f.filter((function(e){return e!==d})));var g="unit"===c?d:p;u=f[0];var m=Math.abs(u-g);if(f.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=Rg(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],p=c(i,t,n,r);if(i[n]=p,!1===o){var f=a||0;n>0&&i[n-1]!==s&&(i[n]=Math.max(i[n],i[n-1]+f)),n<i.length-1&&i[n+1]!==s&&(i[n]=Math.min(i[n],i[n+1]-f))}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 k=u(i,-1,w-1);i[w-1]=k.value,x=k.changed}for(var S=0;S<i.length-1;S+=1)for(var C=!0;d(i[S+1]-i[S])&&C;){var E=u(i,1,S+1);i[S+1]=E.value,C=E.changed}}return{value:i[n],values:i}}]}(ne,re,oe,ie,j,ae),le=bm(se,2),ce=le[0],ue=le[1],de=bm(tx(S,{value:k}),2),pe=de[0],fe=de[1],he=z.useMemo((function(){var e=null==pe?[]:Array.isArray(pe)?pe:[pe],t=bm(e,1)[0],n=null===pe?[]:[void 0===t?ne:t];if(C){if(n=Rg(e),E||void 0===pe){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}),[pe,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=Rg(e).sort((function(e,t){return e-t}));D&&!Vg(t,ge.current,!0)&&D(me(t)),fe(t)},ve=function(e,t,n,r,o,a,i,s,l){var c=bm(z.useState(null),2),u=c[0],d=c[1],p=bm(z.useState(-1),2),f=p[0],h=p[1],g=bm(z.useState(n),2),m=g[0],b=g[1],v=bm(z.useState(n),2),y=v[0],w=v[1],x=z.useRef(null),k=z.useRef(null);z.useEffect((function(){-1===f&&b(n)}),[n,f]),z.useEffect((function(){return function(){document.removeEventListener("mousemove",x.current),document.removeEventListener("mouseup",k.current),document.removeEventListener("touchmove",x.current),document.removeEventListener("touchend",k.current)}}),[]);var S=function(e,t){m.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&d(t),b(e),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 p=y.map((function(e){return e+u}));S(p)}else{var f=(o-r)*t,h=Rg(m);h[e]=y[e];var g=l(h,f,e,"dist");S(g.values,g.value)}},E=z.useRef(C);E.current=C;var D=z.useMemo((function(){var e=Rg(n).sort((function(e,t){return e-t})),t=Rg(m).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?m:n}),[n,m]);return[f,u,D,function(r,o,a){r.stopPropagation();var i=a||n,l=i[o];h(o),d(l),w(i);var c=IB(r),u=c.pageX,p=c.pageY,f=function(n){n.preventDefault();var r,a=IB(n),i=a.pageX,s=a.pageY,l=i-u,c=s-p,d=e.current.getBoundingClientRect(),f=d.width,h=d.height;switch(t){case"btt":r=-c/h;break;case"ttb":r=c/h;break;case"rtl":r=-l/f;break;default:r=l/f}E.current(o,r)},g=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",f),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",f),x.current=null,k.current=null,h(-1),s()};document.addEventListener("mouseup",g),document.addEventListener("mousemove",f),document.addEventListener("touchend",g),document.addEventListener("touchmove",f),x.current=f,k.current=g}]}(ee,te,he,ne,re,ce,be,(function(){null==_||_(me(ge.current))}),ue),ye=bm(ve,4),we=ye[0],xe=ye[1],ke=ye[2],Se=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=Rg(he);o[n]=e,C&&!he.length&&void 0===E&&o.push(e),null==O||O(me(o)),be(o),null==_||_(me(o)),t&&Se(t,n,o)}},Ee=bm(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]),$e=function(e,t){Se(e,t),null==O||O(me(ge.current))},je=-1!==we;z.useEffect((function(){if(!je){var e=he.lastIndexOf(xe);Z.current.focus(e)}}),[je]);var Ne=z.useMemo((function(){return Rg(ke).sort((function(e,t){return e-t}))}),[ke]),Pe=bm(z.useMemo((function(){return C?[Ne[0],Ne[Ne.length-1]]:[ne,Ne[0]]}),[Ne,C,ne]),2),Ie=Pe[0],Te=Pe[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(){f&&Z.current.focus(0)}),[]);var Fe=z.useMemo((function(){return{min:ne,max:re,direction:te,disabled:u,keyboard:p,step:oe,included:A,includedStart:Ie,includedEnd:Te,range:C,tabIndex:K,ariaLabelForHandle:Y,ariaLabelledByForHandle:Q,ariaValueTextFormatterForHandle:J,styles:l||{},classNames:s||{}}}),[ne,re,te,u,p,oe,A,Ie,Te,C,K,Y,Q,J,l,s]);return z.createElement(EB.Provider,{value:Fe},z.createElement("div",{ref:ee,className:Qb(o,a,(n={},Mp(n,"".concat(o,"-disabled"),u),Mp(n,"".concat(o,"-vertical"),F),Mp(n,"".concat(o,"-horizontal"),!F),Mp(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:Qb("".concat(o,"-rail"),null==s?void 0:s.rail),style:Mg(Mg({},H),null==l?void 0:l.rail)}),z.createElement(LB,{prefixCls:o,style:L,values:Ne,startPoint:M,onStartMove:_e?$e:null}),z.createElement(AB,{prefixCls:o,marks:ie,dots:V,style:W,activeStyle:U}),z.createElement(PB,{ref:Z,prefixCls:o,style:B,values:ke,draggingIndex:we,onStartMove:$e,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(FB,{prefixCls:o,marks:ie,onClick:Ce})))}));const zB=z.forwardRef(((e,t)=>{const{open:n}=e,r=z.useRef(null),o=z.useRef(null);function a(){py.cancel(o.current),o.current=null}return z.useEffect((()=>(n?o.current=py((()=>{var e;null===(e=r.current)||void 0===e||e.forceAlign(),o.current=null})):a(),a)),[n,e.title]),z.createElement(AP,Object.assign({ref:xv(r,t)},e))})),HB=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:a,marginPart:i,colorFillContentHover:s}=e;return{[t]:Object.assign(Object.assign({},ox(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 ew(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"}})}},WB=(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,p=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({},p),[`${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}}},UB=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},WB(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},GB=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},WB(e,!1)),{height:"100%"})}},VB=gx("Slider",(e=>{const t=dx(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[HB(t),UB(t),GB(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 qB=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 XB=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:p}=e,f=qB(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:h,slider:g,getPrefixCls:m,getPopupContainer:b}=H.useContext(Tw),v=H.useContext(Lw),y=null!=s?s:v,[w,x]=H.useState({}),k=(e,t)=>{x((n=>Object.assign(Object.assign({},n),{[e]:t})))},S=(e,t)=>e||(t?"rtl"===h?"left":"right":"top"),C=m("slider",n),[E,D]=VB(C),O=Qb(o,null==g?void 0:g.className,a,{[`${C}-rtl`]:"rtl"===h},D);"rtl"!==h||f.vertical||(f.reverse=!f.reverse);const[_,$]=H.useMemo((()=>r?"object"==typeof r?[!0,r.draggableTrack]:[!0,!1]:[!1]),[r]),j=Object.assign(Object.assign({},null==g?void 0:g.style),i);return E(H.createElement(BB,Object.assign({},f,{step:f.step,range:_,draggableTrack:$,className:O,style:j,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,$=Object.assign(Object.assign({},t.props),{onMouseEnter:()=>k(o,!0),onMouseLeave:()=>k(o,!1),onFocus:e=>{var t;k(o,!0),null===(t=f.onFocus)||void 0===t||t.call(f,e)},onBlur:e=>{var t;k(o,!1),null===(t=f.onBlur)||void 0===t||t.call(f,e)}});return H.createElement(zB,Object.assign({},h,{prefixCls:m("tooltip",null!=x?x:l),title:D?D(n.value):"",open:_,placement:S(null!=v?v:p,s),key:o,overlayClassName:`${C}-tooltip`,getPopupContainer:y||d||b}),H.cloneElement(t,$))}})))})),KB=XB;var YB=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],QB=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,p=e.onClick,f=e.onChange,h=e.onKeyDown,g=Lp(e,YB),m=bm(tx(!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==f||f(n,t)),n}var w=Qb(o,a,(Mp(n={},"".concat(o,"-checked"),b),Mp(n,"".concat(o,"-disabled"),l),n));return z.createElement("button",Zh({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:w,ref:t,onKeyDown:function(e){e.which===gS.LEFT?y(!1,e):e.which===gS.RIGHT&&y(!0,e),null==h||h(e)},onClick:function(e){var t=y(!b,e);null==p||p(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)))}));QB.displayName="Switch";const JB=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}}}}}}},ZB=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}}}},ez=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}}:{}}}},tz=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}}}}}},nz=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ox(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}}),lx(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"}})}},rz=gx("Switch",(e=>{const t=dx(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[nz(t),tz(t),ez(t),ZB(t),JB(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 ew("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));var oz=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 az=z.forwardRef(((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:a,className:i,rootClassName:s,style:l}=e,c=oz(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:u,direction:d,switch:p}=z.useContext(Tw),f=z.useContext(Lw),h=(null!=o?o:f)||a,g=u("switch",n),m=z.createElement("div",{className:`${g}-handle`},a&&z.createElement(_S,{className:`${g}-loading-icon`})),[b,v]=rz(g),y=xC(r),w=Qb(null==p?void 0:p.className,{[`${g}-small`]:"small"===y,[`${g}-loading`]:a,[`${g}-rtl`]:"rtl"===d},i,s,v),x=Object.assign(Object.assign({},null==p?void 0:p.style),l);return b(z.createElement(wC,{component:"Switch"},z.createElement(QB,Object.assign({},c,{prefixCls:g,className:w,style:x,disabled:h,ref:t,loadingIcon:m}))))}));az.__ANT_SWITCH=!0;const iz=az;function sz(e){if(null==e)throw new TypeError("Cannot destructure "+e)}const lz=e=>{const{lineWidth:t,fontSizeIcon:n}=e,r=e.fontSizeSM;return dx(e,{tagFontSize:r,tagLineHeight:e.lineHeightSM*r+"px",tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},cz=e=>({defaultBg:new ew(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),uz=gx("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({},ox(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}}})(lz(e))),cz);var dz=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 pz=z.forwardRef(((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,onChange:i,onClick:s}=e,l=dz(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=z.useContext(Tw),d=c("tag",n),[p,f]=uz(d),h=Qb(d,`${d}-checkable`,{[`${d}-checkable-checked`]:a},null==u?void 0:u.className,o,f);return p(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)}})))})),fz=pz,hz=mx(["Tag","preset"],(e=>(e=>bx(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"}}}})))(lz(e))),cz);const gz=(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"}}}},mz=mx(["Tag","status"],(e=>{const t=lz(e);return[gz(t,"success","Success"),gz(t,"processing","Info"),gz(t,"error","Error"),gz(t,"warning","Warning")]}),cz);var bz=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 vz=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:i,icon:s,color:l,onClose:c,closeIcon:u,closable:d,bordered:p=!0}=e,f=bz(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:h,direction:g,tag:m}=z.useContext(Tw),[b,v]=z.useState(!0);z.useEffect((()=>{"visible"in f&&v(f.visible)}),[f.visible]);const y=PP(l),w=function(e){return NP.includes(e)}(l),x=y||w,k=Object.assign(Object.assign({backgroundColor:l&&!x?l:void 0},null==m?void 0:m.style),a),S=h("tag",n),[C,E]=uz(S),D=Qb(S,null==m?void 0:m.className,{[`${S}-${l}`]:x,[`${S}-has-color`]:l&&!x,[`${S}-hidden`]:!b,[`${S}-rtl`]:"rtl"===g,[`${S}-borderless`]:!p},r,o,E),O=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||v(!1)},[,_]=nD(d,u,(e=>null===e?z.createElement(qk,{className:`${S}-close-icon`,onClick:O}):z.createElement("span",{className:`${S}-close-icon`,onClick:O},e)),null,!1),$="function"==typeof f.onClick||i&&"a"===i.type,j=s||null,N=j?z.createElement(z.Fragment,null,j,i&&z.createElement("span",null,i)):i,P=z.createElement("span",Object.assign({},f,{ref:t,className:D,style:k}),N,_,y&&z.createElement(hz,{key:"preset",prefixCls:S}),w&&z.createElement(mz,{key:"status",prefixCls:S}));return C($?z.createElement(wC,{component:"Tag"},P):P)},yz=z.forwardRef(vz);yz.CheckableTag=fz;const wz=yz;const xz=(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)),_w(r)),{controlHeight:o}),yw(Object.assign(Object.assign({},n),{controlHeight:o})))},kz=(e,t)=>new ew(e).setAlpha(t).toRgbString(),Sz=(e,t)=>new ew(e).lighten(t).toHexString(),Cz=e=>{const t=hw(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]}},Ez=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:kz(r,.85),colorTextSecondary:kz(r,.65),colorTextTertiary:kz(r,.45),colorTextQuaternary:kz(r,.25),colorFill:kz(r,.18),colorFillSecondary:kz(r,.12),colorFillTertiary:kz(r,.08),colorFillQuaternary:kz(r,.04),colorBgElevated:Sz(n,12),colorBgContainer:Sz(n,8),colorBgLayout:Sz(n,0),colorBgSpotlight:Sz(n,26),colorBgBlur:kz(r,.04),colorBorder:Sz(n,26),colorBorderSecondary:Sz(n,19)}},Dz=(e,t)=>{const n=Object.keys(ww).map((t=>{const n=hw(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),kw(e,{generateColorPalettes:Cz,generateNeutralColorPalettes:Ez}))};const Oz={defaultConfig:Nw,defaultSeed:Nw.token,useToken:function(){const[e,t,n]=Qw();return{theme:e,token:t,hashId:n}},defaultAlgorithm:$w,darkAlgorithm:Dz,compactAlgorithm:xz,getDesignToken:e=>{const t=(null==e?void 0:e.algorithm)?km(e.algorithm):km($w),n=Object.assign(Object.assign({},xw),null==e?void 0:e.token);return Wm(n,{override:null==e?void 0:e.token},t,Xw)}};var _z,$z=function(){return Oz.useToken().token},jz=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},Nz=z.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(_z=jz("dark"))&&void 0!==_z&&_z.matches?"dark":"light"}),Pz=function(){return z.useContext(Nz)},Iz=function(){var e=$z(),t=Pz(),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:Jh,appearance:n,isDarkMode:r}),Object.fromEntries(Object.entries(t).map((function(e){var t=bm(e,2);return[t[0],t[1].styles]})));var t}),[e,n,r])};function Tz(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 Fz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tz(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rz=function(){var e=$z(),t=Iz();return z.useMemo((function(){return Fz(Fz({},e),{},{stylish:t})}),[e,t])};function Az(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 Mz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Az(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Az(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lz=function(e){return Mz(Mz({},e),{},{mobile:e.xs,tablet:e.md,laptop:e.lg,desktop:e.xxl})},Bz=function(){var e=zR.useBreakpoint();return z.useMemo((function(){return Lz(e)}),[e])},zz=["stylish","appearance","isDarkMode","prefixCls"],Hz=["prefixCls"],Wz=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,p=Qh(d,{hashPriority:(null==o?void 0:o.hashPriority)||t,label:null==o?void 0:o.label}),f=p.cx,h=p.css,g=(l=$z(),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 Lz(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=Lp(u,zz),d=function(e){return t=e,n=g,Object.entries(t).map((function(e){var t=bm(e,2),r=t[0],o=t[1],a=o;return qh(o)||(a=Jh(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:f,css:Jh,responsive:d},s)}else t=e;return"object"===Rp(t)&&(t=qh(t)?h(t):Object.fromEntries(Object.entries(t).map((function(e){var t=bm(e,2),n=t[0],r=t[1],o=i?"".concat(a,"-").concat(n):void 0;return"object"===Rp(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=Lp(u,Hz);return{styles:m,cx:f,theme:t,prefixCls:e}}),[m,u])}}},Uz=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})}},Gz=function(e){var t=z.useContext(_g);return e.theme!==t&&(t=$g(t)(e.theme)),z.createElement(_g.Provider,{value:t},e.children)},Vz=_g;function qz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qz(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qz(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Kz=z.memo((function(e){var t=e.children,n=e.theme,r=e.prefixCls,o=e.getStaticInstance,a=e.staticInstanceConfig,i=Pz(),s=i.appearance,l=i.isDarkMode,c=bm(KL.useMessage(null==a?void 0:a.message),2),u=c[0],d=c[1],p=bm(uB.useNotification(null==a?void 0:a.notification),2),f=p[0],h=p[1],g=bm(eB.useModal(),2),m=g[0],b=g[1];z.useEffect((function(){null==o||o({message:u,modal:m,notification:f})}),[]);var v=z.useMemo((function(){var e=l?Oz.darkAlgorithm:Oz.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 Xz(Xz({},t),{},{algorithm:t.algorithm?[e].concat(Rg(r)):e})}),[n,l]);return Q.jsxs(Sk,{prefixCls:r,theme:v,children:[d,h,b,t]})}));function Yz(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 Qz(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 Qz(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 Qz(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 Jz(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=Yz(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 Zz,eH=function(e){"function"==typeof z.startTransition?z.startTransition(e):e()},tH=function(e){var t=e.themeMode,n=e.setAppearance,r=e.setBrowserPrefers,o=function(){eH((function(){jz("dark").matches?n("dark"):n("light")}))},a=function(){eH((function(){jz("dark").matches?r("dark"):r("light")}))};return z.useLayoutEffect((function(){if("auto"===t)return setTimeout(o,1),Zz||(Zz=jz("dark")),Zz.addEventListener("change",o),function(){Zz.removeEventListener("change",o)};eH((function(){n(t)}))}),[t]),z.useLayoutEffect((function(){return Zz||(Zz=jz("dark")),Zz.addEventListener("change",a),function(){Zz.removeEventListener("change",a)}}),[]),null};const nH=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,p=bm(Jz("light",{value:i,defaultValue:null!=s?s:d,onChange:function(e){return null==l?void 0:l(e)}}),2),f=p[0],h=p[1],g=bm(Jz("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=bm(z.useState(null!==(t=jz("dark"))&&void 0!==t&&t.matches?"dark":"light"),2),y=v[0],w=v[1],x=bm(z.useState(!1),2),k=x[0],S=x[1];return z.useEffect((function(){eH((function(){S(!0)}))}),[]),Q.jsxs(Nz.Provider,{value:{themeMode:f,setThemeMode:h,appearance:m,setAppearance:b,isDarkMode:"dark"===m,browserPrefers:y},children:[k&&Q.jsx(tH,{themeMode:f,setAppearance:b,setBrowserPrefers:w}),n]})}));var rH=["stylish"];function oH(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 aH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oH(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const iH=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=Pz(),c=l.appearance,u=l.isDarkMode,d=Rz(),p=d.stylish,f=Lp(d,rH),h=z.useMemo((function(){return r?r instanceof Function?r({token:f,appearance:c,isDarkMode:u}):r:{}}),[r,f,c]),g=z.useMemo((function(){return aH(aH({},h),n instanceof Function?n({token:f,appearance:c,isDarkMode:u}):n)}),[h,n,f,c]),m=z.useMemo((function(){return o?o({token:aH(aH({},f),g),stylish:p,appearance:c,isDarkMode:u,css:Jh}):{}}),[o,f,g,p,c]),b=z.useMemo((function(){return aH(aH({},m),p)}),[m,p]),v=aH(aH(aH(aH({},f),g),{},{stylish:b},l),{},{prefixCls:i});return Q.jsx(s,{theme:v,children:t})};function sH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sH(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cH(e,t){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){Mp(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}var dH=new Uh;"undefined"!=typeof global&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=dH);var pH,fH,hH=function(e){var t,n,r,o=uH(uH({},e),{},{key:null!==(t=e.key)&&void 0!==t?t:"zcss",speedy:null!==(n=e.speedy)&&void 0!==n&&n}),a=Mh({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=Lp(t,Gb),p=z.useContext(e),f=null!=r?r:p.sheet.key,h=null!=i?i:p.sheet.container,g=null!=o?o:p.sheet.isSpeedy,m=z.useMemo((function(){var e=Mh({speedy:null!=g&&g,key:f,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}),[f,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(em,qb(qb({linters:u,container:h},d),{},{children:b})):b}))}(i);a.cache=dH.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=Rz(),s=Pz(),l=z.useContext(o),c=z.useContext(null!=r?r:Vz)||{},u=z.useMemo((function(){return lH(lH(lH(lH({},i),s),l),{},{prefixCls:a||"ant"})}),[i,s,a,l]);return c&&0!==Object.keys(c).length?c:u}}({StyleEngineContext:u}),p=Wz({hashPriority:o.hashPriority,useTheme:d,EmotionContext:i}),f=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(jg,{styles:Ph(n,void 0,Pg(Pg({},t),{},{theme:r}))})}))}}(d),h=function(e){return function(t){var n=e(t);return function(e){return n(e).styles}}}(p),g=function(e){var t=e.styledConfig?Uz(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,p=r.defaultAppearance,f=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,k=z.useContext(x),S=b?Uz(b):t||Gz,C=c||y;return Q.jsx(n.Provider,{value:{prefixCls:C,StyledThemeContext:(null==b?void 0:b.ThemeContext)||w||Vz,CustomThemeContext:x},children:Q.jsx(nH,{themeMode:h,defaultThemeMode:g,onThemeModeChange:m,defaultAppearance:p,appearance:d,onAppearanceChange:f,useTheme:e.useTheme,children:Q.jsx(Kz,{prefixCls:C,staticInstanceConfig:u,theme:s,getStaticInstance:l,children:Q.jsx(iH,{prefixCls:C,customToken:a,defaultCustomToken:k,customStylish:i,StyledThemeProvider:S,children:o})})})})}))}({styledConfig:o.styled,StyleEngineContext:u,useTheme:d}),m=Qh(a.cache,{hashPriority:o.hashPriority}).cx,b=a.injectGlobal,v=a.keyframes;return{createStyles:p,createGlobalStyle:f,createStylish:h,css:Jh,cx:m,keyframes:v,injectGlobal:b,styleManager:a,useTheme:d,StyleProvider:s,ThemeProvider:g}}({key:"acss",speedy:!1}),gH=hH.createStyles,mH=hH.createGlobalStyle,bH=hH.css,vH=hH.cx,yH=hH.keyframes,wH=hH.ThemeProvider,xH=hH.StyleProvider,kH=hH.useTheme,SH=gH((function(e){var t=e.css,n=yH(pH||(pH=gf(["\n 0% {\n rotate: 0deg;\n }\n 100% {\n rotate: 360deg;\n }\n "])));return{spin:t(fH||(fH=gf(["\n animation: "," 1s linear infinite;\n "])),n)}})),CH=["icon","size","color","fill","className","spin"];function EH(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 DH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EH(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const OH=z.memo((function(e){var t=e.icon,n=e.size,r=e.color,o=e.fill,a=e.className,i=e.spin,s=Lp(e,CH),l=SH(),c=l.styles,u=l.cx,d=t,p=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}}(n)}),[n]),f=p.fontSize,h=p.strokeWidth;return Q.jsx("span",DH(DH({className:u("anticon",i&&c.spin,a),role:"img"},s),{},{children:Q.jsx(d,{color:r,fill:null!=o?o:"transparent",focusable:!1,height:f,size:f,strokeWidth:h,width:f})}))}));var _H,$H=gH((function(e,t){var n,r,o=e.css,a=e.token,i=e.isDarkMode,s=t.offset,l=t.outside,c=t.size,u=(null!==(n=null==s?void 0:s.x)&&void 0!==n?n:0)+"px",d=(null!==(r=null==s?void 0:s.y)&&void 0!==r?r:0)+"px",p=l?"0":".1",f=c+"px";return o(_H||(_H=gf(["\n pointer-events: none;\n\n position: absolute;\n z-index: 1;\n inset: 0;\n\n opacity: ",";\n background: radial-gradient(\n "," circle at "," ",",\n ",",\n ","\n );\n border-radius: inherit;\n\n transition: all 0.2s;\n "])),p,f,u,d,i?a.colorText:"#fff",i?"transparent":a.colorTextQuaternary)})),jH=["className","size"];function NH(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 PH=z.memo((function(e){var t=e.className,n=e.size,r=void 0===n?64:n,o=Lp(e,jH),a=function(){var e=bm(z.useState(),2),t=e[0],n=e[1],r=bm(z.useState(!0),2),o=r[0],a=r[1],i=z.useRef();return z.useEffect((function(){if(i.current&&i.current.parentElement){var e=i.current.parentElement,t=function(t){var r=e.getBoundingClientRect();n({x:t.clientX-r.x,y:t.clientY-r.y}),a(!1)},r=function(){a(!0)};return e.addEventListener("mousemove",t),e.addEventListener("mouseleave",r),function(){e.removeEventListener("mousemove",t),e.removeEventListener("mouseleave",r)}}}),[]),[t,o,i]}(),i=bm(a,3),s=i[0],l=i[1],c=i[2],u=$H({offset:s,outside:l,size:r}),d=u.styles,p=u.cx;return Q.jsx("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NH(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:p(d,t),ref:c},o))}));const IH=PH;var TH,FH=gH((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{tooltip:t(TH||(TH=gf(["\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)}})),RH=["className","arrow"];function AH(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 MH=z.memo((function(e){var t=e.className,n=e.arrow,r=void 0!==n&&n,o=Lp(e,RH),a=FH(),i=a.styles,s=a.cx;return Q.jsx(AP,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AH(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({arrow:r,overlayClassName:s(i.tooltip,t)},o))}));const LH=MH;var BH,zH,HH=gH((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(BH||(BH=gf(["\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(zH||(zH=gf(["\n transition: scale 400ms ",";\n\n &:active {\n scale: 0.8;\n }\n "])),r.motionEaseOut)}})),WH=["color","fill","className","active","icon","size","style","glass","title","placement","arrow","spotlight","onClick","children","loading","tooltipDelay"];function UH(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?UH(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const VH=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,p=e.placement,f=e.arrow,h=void 0!==f&&f,g=e.spotlight,m=e.onClick,b=e.children,v=e.loading,y=e.tooltipDelay,w=void 0===y?.5:y,x=Lp(e,WH),k=HH({active:Boolean(a),glass:Boolean(u)}),S=k.styles,C=k.cx,E=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]),D=E.blockSize,O=E.borderRadius,_=Q.jsxs(Q.Fragment,{children:[i&&Q.jsx(OH,{className:S.icon,color:n,fill:r,icon:i,size:"site"===l?"normal":l}),b]}),$=Q.jsx(OH,{color:n,icon:Zp,size:"site"===l?"normal":l,spin:!0}),j=Q.jsxs("div",GH(GH({className:C(S.block,o),onClick:v?void 0:m,ref:t,style:GH({borderRadius:O,height:D,width:D},c)},x),{},{children:[g&&Q.jsx(IH,{}),v?$:_]}));return d?Q.jsx(LH,{arrow:h,mouseEnterDelay:w,overlayStyle:{pointerEvents:"none"},placement:p,title:d,children:j}):j}));const qH="object"==typeof global&&global&&global.Object===Object&&global;var XH="object"==typeof self&&self&&self.Object===Object&&self;const KH=(qH||XH||Function("return this")()).Symbol;var YH=Object.prototype,QH=YH.hasOwnProperty,JH=YH.toString,ZH=KH?KH.toStringTag:void 0;var eW=Object.prototype.toString;var tW="[object Null]",nW="[object Undefined]",rW=KH?KH.toStringTag:void 0;function oW(e){return null==e?void 0===e?nW:tW:rW&&rW in Object(e)?function(e){var t=QH.call(e,ZH),n=e[ZH];try{e[ZH]=void 0;var r=!0}catch(Fte){}var o=JH.call(e);return r&&(t?e[ZH]=n:delete e[ZH]),o}(e):function(e){return eW.call(e)}(e)}function aW(e){return null!=e&&"object"==typeof e}var iW="[object Symbol]";const sW=Array.isArray;var lW=1/0,cW=KH?KH.prototype:void 0,uW=cW?cW.toString:void 0;function dW(e){if("string"==typeof e)return e;if(sW(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,dW)+"";if(function(e){return"symbol"==typeof e||aW(e)&&oW(e)==iW}(e))return uW?uW.call(e):"";var t=e+"";return"0"==t&&1/e==-lW?"-0":t}function pW(e){return null==e?"":dW(e)}function fW(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 hW=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function gW(e){return hW.test(e)}var mW,bW="\\ud800-\\udfff",vW="["+bW+"]",yW="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",wW="\\ud83c[\\udffb-\\udfff]",xW="[^"+bW+"]",kW="(?:\\ud83c[\\udde6-\\uddff]){2}",SW="[\\ud800-\\udbff][\\udc00-\\udfff]",CW="(?:"+yW+"|"+wW+")"+"?",EW="[\\ufe0e\\ufe0f]?",DW=EW+CW+("(?:\\u200d(?:"+[xW,kW,SW].join("|")+")"+EW+CW+")*"),OW="(?:"+[xW+yW+"?",yW,kW,SW,vW].join("|")+")",_W=RegExp(wW+"(?="+wW+")|"+OW+DW,"g");function $W(e){return gW(e)?function(e){return e.match(_W)||[]}(e):function(e){return e.split("")}(e)}const jW=(mW="toUpperCase",function(e){var t=gW(e=pW(e))?$W(e):void 0,n=t?t[0]:e.charAt(0),r=t?fW(t,1).join(""):e.slice(1);return n[mW]()+r});function NW(e){return jW(pW(e).toLowerCase())}var PW;const IW=(PW={"À":"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==PW?void 0:PW[e]});var TW=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,FW=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var RW=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var AW=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var MW="\\ud800-\\udfff",LW="\\u2700-\\u27bf",BW="a-z\\xdf-\\xf6\\xf8-\\xff",zW="A-Z\\xc0-\\xd6\\xd8-\\xde",HW="\\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",WW="["+HW+"]",UW="\\d+",GW="["+LW+"]",VW="["+BW+"]",qW="[^"+MW+HW+UW+LW+BW+zW+"]",XW="(?:\\ud83c[\\udde6-\\uddff]){2}",KW="[\\ud800-\\udbff][\\udc00-\\udfff]",YW="["+zW+"]",QW="(?:"+VW+"|"+qW+")",JW="(?:"+YW+"|"+qW+")",ZW="(?:['](?:d|ll|m|re|s|t|ve))?",eU="(?:['](?:D|LL|M|RE|S|T|VE))?",tU="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",nU="[\\ufe0e\\ufe0f]?",rU=nU+tU+("(?:\\u200d(?:"+["[^"+MW+"]",XW,KW].join("|")+")"+nU+tU+")*"),oU="(?:"+[GW,XW,KW].join("|")+")"+rU,aU=RegExp([YW+"?"+VW+"+"+ZW+"(?="+[WW,YW,"$"].join("|")+")",JW+"+"+eU+"(?="+[WW,YW+QW,"$"].join("|")+")",YW+"?"+QW+"+"+ZW,YW+"+"+eU,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",UW,oU].join("|"),"g");function iU(e,t,n){return e=pW(e),void 0===(t=n?void 0:t)?function(e){return AW.test(e)}(e)?function(e){return e.match(aU)||[]}(e):function(e){return e.match(RW)||[]}(e):e.match(t)||[]}var sU=RegExp("[']","g");function lU(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}(iU(function(e){return(e=pW(e))&&e.replace(TW,IW).replace(FW,"")}(t).replace(sU,"")),e,"")}}const cU=lU((function(e,t,n){return t=t.toLowerCase(),e+(n?NW(t):t)}));const uU=lU((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));const dU=lU((function(e,t,n){return e+(n?" ":"")+jW(t)}));function pU(){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 fU=function(e){var t=e.pkg,n=e.version,r=void 0===n?"latest":n,o=e.path;return"unpkg"===e.proxy?pU("https://unpkg.com","".concat(t,"@").concat(r),o):pU("https://registry.npmmirror.com",t,r,"files",o)},hU=z.createContext(null),gU=function(e){var t=e.pkg,n=e.version,r=e.path;return fU({path:r,pkg:t,proxy:"aliyun",version:n})},mU=function(){var e=z.useContext(hU);return e?"custom"!==(null==e?void 0:e.proxy)?function(t){var n=t.pkg,r=t.version,o=t.path;return fU({path:o,pkg:n,proxy:e.proxy,version:r})}:(null==e?void 0:e.customCdnFn)||gU:gU};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){Mp(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=z.useContext(hU),r=z.useMemo((function(){return e=(null==n?void 0:n.imgAs)||"img",z.forwardRef((function(t,n){return z.createElement(e,vU(vU({},t),{},{ref:n}))}));var e}),[n]);return Q.jsx(r,vU({ref:t},e))})),wU={"😀":"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 xU,kU,SU=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]},CU=gH((function(e){var t=e.css,n=e.token;return{container:t(xU||(xU=gf(["\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(kU||(kU=gf(["\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 EU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EU(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const OU=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=mU(),c=bm(z.useState(!1),2),u=c[0],d=c[1],p=CU(),f=p.cx,h=p.styles,g=z.useMemo((function(){if("pure"!==a){var e=function(e){var t=SU(e);if(t)return null==wU?void 0:wU[t]}(t);if(e)switch(a){case"modern":case"flat":case"high-contrast":return l({path:"icons/".concat(a,"/").concat(uU(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:f(h.container,n),style:DU({fontSize:.9*s,height:s,width:s},r),children:t}):Q.jsx("div",{className:f(h.container,n),style:DU({height:s,width:s},r),children:Q.jsx(yU,{alt:t,height:s,onError:function(){return d(!0)},src:g,width:s})})}));function _U(e,t,n){return _U=Jv()?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&&Kv(o,n.prototype),o},_U.apply(null,arguments)}function $U(e){var t="function"==typeof Map?new Map:void 0;return $U=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(Fte){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 _U(e,arguments,Qv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Kv(n,e)},$U(e)}var jU=function(e){var t,n;function r(t){return Zv(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,Kv(t,n),r}($U(Error));function NU(e){return Math.round(255*e)}function PU(e,t,n){return NU(e)+","+NU(t)+","+NU(n)}function IU(e,t,n,r){if(void 0===r&&(r=PU),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 TU={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 FU=/^#[a-fA-F0-9]{6}$/,RU=/^#[a-fA-F0-9]{8}$/,AU=/^#[a-fA-F0-9]{3}$/,MU=/^#[a-fA-F0-9]{4}$/,LU=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,BU=/^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,HU=/^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 WU(e){if("string"!=typeof e)throw new jU(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return TU[t]?"#"+TU[t]:e}(e);if(t.match(FU))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(RU)){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(AU))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(MU)){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=LU.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=BU.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("+IU(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=LU.exec(s);if(!l)throw new jU(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=HU.exec(t.substring(0,50));if(c){var u="rgb("+IU(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=LU.exec(u);if(!d)throw new jU(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 jU(5)}function UU(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}}(WU(e))}var GU=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 VU(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function qU(e){return VU(Math.round(255*e))}function XU(e,t,n){return GU("#"+qU(e)+qU(t)+qU(n))}function KU(e,t,n){return IU(e,t,n,XU)}function YU(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return GU("#"+VU(e)+VU(t)+VU(n));if("object"==typeof e&&void 0===t&&void 0===n)return GU("#"+VU(e.red)+VU(e.green)+VU(e.blue));throw new jU(6)}function QU(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=WU(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?YU(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?YU(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new jU(7)}var JU=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},ZU=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},eG=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},tG=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function nG(e){if("object"!=typeof e)throw new jU(8);if(ZU(e))return QU(e);if(JU(e))return YU(e);if(tG(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?KU(e,t,n):"rgba("+IU(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?KU(e.hue,e.saturation,e.lightness):"rgba("+IU(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new jU(2)}(e);if(eG(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return KU(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return KU(e.hue,e.saturation,e.lightness);throw new jU(1)}(e);throw new jU(8)}function rG(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):rG(e,t,r)}}function oG(e){return rG(e,e.length,[])}function aG(e,t){if("transparent"===t)return t;var n=UU(t);return nG(Zh({},n,{hue:n.hue+parseFloat(e)}))}var iG=oG(aG);function sG(e){if("transparent"===e)return 0;var t=WU(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 lG(e,t){if("transparent"===t)return t;var n,r,o,a=UU(t);return nG(Zh({},a,{lightness:(n=0,r=1,o=a.lightness+parseFloat(e),Math.max(n,Math.min(r,o)))}))}var cG=oG(lG),uG="#000",dG="#fff";function pG(e,t,n,r){void 0===t&&(t=uG),void 0===n&&(n=dG),void 0===r&&(r=!0);var o,a,i,s=sG(e)>.179,l=s?t:n;return!r||(o=l,a=sG(e),i=sG(o),parseFloat((a>i?(a+.05)/(i+.05):(i+.05)/(a+.05)).toFixed(2))>=4.5)?l:s?uG:dG}function fG(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 hG=function(e){return"function"==typeof e};function gG(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 mG(e){var t=z.useRef(e);return t.current=e,t}const bG=function(e){var t=mG(e);z.useEffect((function(){return function(){t.current()}}),[])};var vG=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},yG="object"==typeof t&&t&&t.Object===Object&&t,wG=yG,xG="object"==typeof self&&self&&self.Object===Object&&self,kG=wG||xG||Function("return this")(),SG=kG.Symbol,CG=SG,EG=Object.prototype,DG=EG.hasOwnProperty,OG=EG.toString,_G=CG?CG.toStringTag:void 0;var $G=function(e){var t=DG.call(e,_G),n=e[_G];try{e[_G]=void 0;var r=!0}catch(Fte){}var o=OG.call(e);return r&&(t?e[_G]=n:delete e[_G]),o},jG=Object.prototype.toString;var NG=$G,PG=function(e){return jG.call(e)},IG=SG?SG.toStringTag:void 0;var TG=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":IG&&IG in Object(e)?NG(e):PG(e)};var FG=function(e){return null!=e&&"object"==typeof e},RG=TG,AG=FG;var MG=function(e){return"symbol"==typeof e||AG(e)&&"[object Symbol]"==RG(e)};const LG=!("undefined"==typeof window||!window.document||!window.document.createElement);function BG(e){void 0===e&&(e=!1);var t=fG(function(e,t){void 0===e&&(e=!1);var n=fG(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 zG(e,t){if(LG)return e?hG(e)?e():"current"in e?e.current:e:t}const HG=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 zG(e)}));if(!o.current)return o.current=!0,a.current=l,i.current=n,void(s.current=t());l.length===a.current.length&&gG(l,a.current)&&gG(n,i.current)||(null===(e=s.current)||void 0===e||e.call(s),a.current=l,i.current=n,s.current=t())})),bG((function(){var e;null===(e=s.current)||void 0===e||e.call(s),o.current=!1}))}};const WG=HG(z.useEffect);var UG=function(){this.__data__=[],this.size=0};var GG=function(e,t){return e===t||e!=e&&t!=t},VG=GG;var qG=function(e,t){for(var n=e.length;n--;)if(VG(e[n][0],t))return n;return-1},XG=qG,KG=Array.prototype.splice;var YG=qG;var QG=qG;var JG=qG;var ZG=UG,eV=function(e){var t=this.__data__,n=XG(t,e);return!(n<0)&&(n==t.length-1?t.pop():KG.call(t,n,1),--this.size,!0)},tV=function(e){var t=this.__data__,n=YG(t,e);return n<0?void 0:t[n][1]},nV=function(e){return QG(this.__data__,e)>-1},rV=function(e,t){var n=this.__data__,r=JG(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function oV(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])}}oV.prototype.clear=ZG,oV.prototype.delete=eV,oV.prototype.get=tV,oV.prototype.has=nV,oV.prototype.set=rV;var aV=oV,iV=aV;var sV=function(){this.__data__=new iV,this.size=0};var lV=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var cV=function(e){return this.__data__.get(e)};var uV=function(e){return this.__data__.has(e)},dV=TG,pV=vG;var fV,hV=function(e){if(!pV(e))return!1;var t=dV(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},gV=kG["__core-js_shared__"],mV=(fV=/[^.]+$/.exec(gV&&gV.keys&&gV.keys.IE_PROTO||""))?"Symbol(src)_1."+fV:"";var bV=function(e){return!!mV&&mV in e},vV=Function.prototype.toString;var yV=function(e){if(null!=e){try{return vV.call(e)}catch(Fte){}try{return e+""}catch(Fte){}}return""},wV=hV,xV=bV,kV=vG,SV=yV,CV=/^\[object .+?Constructor\]$/,EV=Function.prototype,DV=Object.prototype,OV=EV.toString,_V=DV.hasOwnProperty,$V=RegExp("^"+OV.call(_V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var jV=function(e,t){return null==e?void 0:e[t]},NV=function(e){return!(!kV(e)||xV(e))&&(wV(e)?$V:CV).test(SV(e))},PV=jV;var IV=function(e,t){var n=PV(e,t);return NV(n)?n:void 0},TV=IV(kG,"Map"),FV=IV(Object,"create"),RV=FV;var AV=function(){this.__data__=RV?RV(null):{},this.size=0};var MV=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},LV=FV,BV=Object.prototype.hasOwnProperty;var zV=function(e){var t=this.__data__;if(LV){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return BV.call(t,e)?t[e]:void 0},HV=FV,WV=Object.prototype.hasOwnProperty;var UV=FV;var GV=AV,VV=MV,qV=zV,XV=function(e){var t=this.__data__;return HV?void 0!==t[e]:WV.call(t,e)},KV=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=UV&&void 0===t?"__lodash_hash_undefined__":t,this};function YV(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])}}YV.prototype.clear=GV,YV.prototype.delete=VV,YV.prototype.get=qV,YV.prototype.has=XV,YV.prototype.set=KV;var QV=YV,JV=aV,ZV=TV;var eq=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var tq=function(e,t){var n=e.__data__;return eq(t)?n["string"==typeof t?"string":"hash"]:n.map},nq=tq;var rq=tq;var oq=tq;var aq=tq;var iq=function(){this.size=0,this.__data__={hash:new QV,map:new(ZV||JV),string:new QV}},sq=function(e){var t=nq(this,e).delete(e);return this.size-=t?1:0,t},lq=function(e){return rq(this,e).get(e)},cq=function(e){return oq(this,e).has(e)},uq=function(e,t){var n=aq(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function dq(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])}}dq.prototype.clear=iq,dq.prototype.delete=sq,dq.prototype.get=lq,dq.prototype.has=cq,dq.prototype.set=uq;var pq=dq,fq=aV,hq=TV,gq=pq;var mq=aV,bq=sV,vq=lV,yq=cV,wq=uV,xq=function(e,t){var n=this.__data__;if(n instanceof fq){var r=n.__data__;if(!hq||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new gq(r)}return n.set(e,t),this.size=n.size,this};function kq(e){var t=this.__data__=new mq(e);this.size=t.size}kq.prototype.clear=bq,kq.prototype.delete=vq,kq.prototype.get=yq,kq.prototype.has=wq,kq.prototype.set=xq;var Sq=kq;var Cq=pq,Eq=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Dq=function(e){return this.__data__.has(e)};function Oq(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Cq;++t<n;)this.add(e[t])}Oq.prototype.add=Oq.prototype.push=Eq,Oq.prototype.has=Dq;var _q=Oq;var $q=function(e,t){return e.has(t)},jq=_q,Nq=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},Pq=$q;var Iq=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,p=!0,f=2&n?new jq: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;p=!1;break}if(f){if(!Nq(t,(function(e,t){if(!Pq(f,t)&&(h===e||o(h,e,n,r,a)))return f.push(t)}))){p=!1;break}}else if(h!==g&&!o(h,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p};var Tq=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Fq=kG.Uint8Array,Rq=GG,Aq=Iq,Mq=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Lq=Tq,Bq=SG?SG.prototype:void 0,zq=Bq?Bq.valueOf:void 0;var Hq=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 Fq(e),new Fq(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Rq(+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=Mq;case"[object Set]":var l=1&r;if(s||(s=Lq),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=Aq(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 Wq=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Uq=Array.isArray,Gq=Wq,Vq=Uq;var qq=function(e,t,n){var r=t(e);return Vq(e)?r:Gq(r,n(e))};var Xq=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},Kq=function(){return[]},Yq=Object.prototype.propertyIsEnumerable,Qq=Object.getOwnPropertySymbols,Jq=Qq?function(e){return null==e?[]:(e=Object(e),Xq(Qq(e),(function(t){return Yq.call(e,t)})))}:Kq,Zq=Jq;var eX=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},tX=TG,nX=FG;var rX=function(e){return nX(e)&&"[object Arguments]"==tX(e)},oX=FG,aX=Object.prototype,iX=aX.hasOwnProperty,sX=aX.propertyIsEnumerable,lX=rX(function(){return arguments}())?rX:function(e){return oX(e)&&iX.call(e,"callee")&&!sX.call(e,"callee")},cX={exports:{}};var uX=function(){return!1};!function(e,t){var n=kG,r=uX,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}(cX,cX.exports);var dX=cX.exports,pX=/^(?:0|[1-9]\d*)$/;var fX=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&pX.test(e))&&e>-1&&e%1==0&&e<t};var hX=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},gX=TG,mX=hX,bX=FG,vX={};vX["[object Float32Array]"]=vX["[object Float64Array]"]=vX["[object Int8Array]"]=vX["[object Int16Array]"]=vX["[object Int32Array]"]=vX["[object Uint8Array]"]=vX["[object Uint8ClampedArray]"]=vX["[object Uint16Array]"]=vX["[object Uint32Array]"]=!0,vX["[object Arguments]"]=vX["[object Array]"]=vX["[object ArrayBuffer]"]=vX["[object Boolean]"]=vX["[object DataView]"]=vX["[object Date]"]=vX["[object Error]"]=vX["[object Function]"]=vX["[object Map]"]=vX["[object Number]"]=vX["[object Object]"]=vX["[object RegExp]"]=vX["[object Set]"]=vX["[object String]"]=vX["[object WeakMap]"]=!1;var yX=function(e){return bX(e)&&mX(e.length)&&!!vX[gX(e)]};var wX=function(e){return function(t){return e(t)}},xX={exports:{}};!function(e,t){var n=yG,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(Fte){}}();e.exports=i}(xX,xX.exports);var kX=xX.exports,SX=yX,CX=wX,EX=kX&&kX.isTypedArray,DX=EX?CX(EX):SX,OX=eX,_X=lX,$X=Uq,jX=dX,NX=fX,PX=DX,IX=Object.prototype.hasOwnProperty;var TX=function(e,t){var n=$X(e),r=!n&&_X(e),o=!n&&!r&&jX(e),a=!n&&!r&&!o&&PX(e),i=n||r||o||a,s=i?OX(e.length,String):[],l=s.length;for(var c in e)!t&&!IX.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||NX(c,l))||s.push(c);return s},FX=Object.prototype;var RX=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||FX)};var AX=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),MX=RX,LX=AX,BX=Object.prototype.hasOwnProperty;var zX=function(e){if(!MX(e))return LX(e);var t=[];for(var n in Object(e))BX.call(e,n)&&"constructor"!=n&&t.push(n);return t},HX=hV,WX=hX;var UX=TX,GX=zX,VX=function(e){return null!=e&&WX(e.length)&&!HX(e)};var qX=function(e){return VX(e)?UX(e):GX(e)},XX=qq,KX=Zq,YX=qX;var QX=function(e){return XX(e,YX,KX)},JX=QX,ZX=Object.prototype.hasOwnProperty;var eK=function(e,t,n,r,o,a){var i=1&n,s=JX(e),l=s.length;if(l!=JX(t).length&&!i)return!1;for(var c=l;c--;){var u=s[c];if(!(i?u in t:ZX.call(t,u)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var f=!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)){f=!1;break}h||(h="constructor"==u)}if(f&&!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||(f=!1)}return a.delete(e),a.delete(t),f},tK=IV(kG,"DataView"),nK=IV(kG,"Promise"),rK=IV(kG,"Set"),oK=tK,aK=TV,iK=nK,sK=rK,lK=IV(kG,"WeakMap"),cK=TG,uK=yV,dK="[object Map]",pK="[object Promise]",fK="[object Set]",hK="[object WeakMap]",gK="[object DataView]",mK=uK(oK),bK=uK(aK),vK=uK(iK),yK=uK(sK),wK=uK(lK),xK=cK;(oK&&xK(new oK(new ArrayBuffer(1)))!=gK||aK&&xK(new aK)!=dK||iK&&xK(iK.resolve())!=pK||sK&&xK(new sK)!=fK||lK&&xK(new lK)!=hK)&&(xK=function(e){var t=cK(e),n="[object Object]"==t?e.constructor:void 0,r=n?uK(n):"";if(r)switch(r){case mK:return gK;case bK:return dK;case vK:return pK;case yK:return fK;case wK:return hK}return t});var kK=Sq,SK=Iq,CK=Hq,EK=eK,DK=xK,OK=Uq,_K=dX,$K=DX,jK="[object Arguments]",NK="[object Array]",PK="[object Object]",IK=Object.prototype.hasOwnProperty;var TK=function(e,t,n,r,o,a){var i=OK(e),s=OK(t),l=i?NK:DK(e),c=s?NK:DK(t),u=(l=l==jK?PK:l)==PK,d=(c=c==jK?PK:c)==PK,p=l==c;if(p&&_K(e)){if(!_K(t))return!1;i=!0,u=!1}if(p&&!u)return a||(a=new kK),i||$K(e)?SK(e,t,n,r,o,a):CK(e,t,l,n,r,o,a);if(!(1&n)){var f=u&&IK.call(e,"__wrapped__"),h=d&&IK.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,m=h?t.value():t;return a||(a=new kK),o(g,m,n,r,a)}}return!!p&&(a||(a=new kK),EK(e,t,n,r,o,a))},FK=TK,RK=FG;var AK=function e(t,n,r,o,a){return t===n||(null==t||null==n||!RK(t)&&!RK(n)?t!=t&&n!=n:FK(t,n,r,o,e,a))},MK=AK;var LK=function(e,t){return MK(e,t)};function BK(e,t,n){void 0===n&&(n={});var r=mG(t);WG((function(){var t=zG(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 zK(e){var t=z.useRef(0),n=fG(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 bG((function(){cancelAnimationFrame(t.current)})),[r,a]}var HK=HG(z.useLayoutEffect);const WK=LG?HK:WG;const UK=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 GK,VK=function(e){return e||"layoutkit"},qK=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"}},XK=function(e){return"number"==typeof e?"".concat(e,"px"):e},KK=["visible","flex","gap","direction","horizontal","align","justify","distribution","height","width","padding","paddingInline","paddingBlock","as","internalClassName","className","children"];function YK(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 QK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YK(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const JK=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,p=e.padding,f=e.paddingInline,h=e.paddingBlock,g=e.as,m=e.internalClassName,b=e.className,v=e.children,y=Lp(e,KK),w=l||c,x=z.useMemo((function(){return function(e,t){return"row"===qK(e,t)}(a,i)&&!d&&function(e){if(e)return["space-between","space-around","space-evenly"].includes(e)}(w)?"100%":XK(d)}),[a,i,w,d]),k=z.useMemo((function(){return function(e){return z.forwardRef((function(t,n){return z.createElement(e,QK(QK({},t),{},{ref:n}))}))}(g||"div")}),[g]);return Q.jsx(k,QK(QK({ref:t},y),{},{className:zh(m,Hh(GK||(GK=gf(["\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,qK(a,i),w,s,x,XK(u),XK(p),XK(f),XK(h),XK(o)),b),children:v}))}));var ZK=["children","className","prefixCls"];function eY(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 tY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eY(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nY=z.forwardRef((function(e,t){var n=e.children,r=e.className,o=e.prefixCls,a=Lp(e,ZK);return Q.jsx(JK,tY(tY({ref:t,internalClassName:"".concat(VK(o),"-center"),className:r},a),{},{align:"center",justify:"center",children:n}))}));var rY=["className","prefixCls","children"];function oY(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 aY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oY(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var iY,sY,lY,cY,uY,dY=z.forwardRef((function(e,t){var n=e.className,r=e.prefixCls,o=e.children,a=Lp(e,rY);return Q.jsx(JK,aY(aY({ref:t},a),{},{internalClassName:"".concat(VK(r),"-flexbox"),className:n,children:o}))})),pY=gH((function(e,t){var n=e.token,r=e.css,o=e.stylish,a=e.prefixCls;return{container:r(iY||(iY=gf(["\n cursor: pointer;\n width: ","px;\n height: ","px;\n border-radius: ","px;\n "])),n.controlHeight,n.controlHeight,n.borderRadius),drawer:r(sY||(sY=gf(["\n &.","-drawer-content {\n background: transparent;\n }\n\n .","-drawer-body {\n display: flex;\n flex-direction: column;\n }\n "])),a,a),drawerRoot:r(lY||(lY=gf(["\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,QU(n.colorBgLayout,.5)),fillRect:r(cY||(cY=gf(["\n flex: 1;\n width: 100%;\n border-top: none;\n "]))),menu:r(uY||(uY=gf(["\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)}})),fY=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight"];function hY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hY(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mY=z.memo((function(e){var t=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=Lp(e,fY),u=pY(l),d=u.cx,p=u.styles;return Q.jsxs(nY,gY(gY({className:d(p.container,i),onClick:function(){a(!o)}},c),{},{children:[Q.jsx(VH,{icon:o?pf:ef,size:"site"}),Q.jsxs(LM,{className:p.drawer,closeIcon:void 0,open:o,placement:"left",rootClassName:p.drawerRoot,styles:{body:{padding:0},header:{display:"none"}},width:"100vw",children:[Q.jsx(MT,{className:p.menu,items:t,mode:"inline",openKeys:n,selectedKeys:r}),Q.jsx("div",{className:p.fillRect})]})]}))}));var bY,vY,yY=["icon","children","size"];function wY(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 xY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wY(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kY=gH((function(e){var t=e.cx,n=e.css,r=e.token;return{small:n(bY||(bY=gf(["\n padding: 2px 6px;\n line-height: 1;\n "]))),tag:t(n(vY||(vY=gf(["\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 SY=z.memo((function(e){var t=e.icon,n=e.children,r=e.size,o=void 0===r?"default":r,a=Lp(e,yY),i=kY(),s=i.styles,l=i.cx;return Q.jsx(wz,xY(xY({bordered:!1,className:l(s.tag,"small"===o&&s.small)},a),{},{children:Q.jsxs(dY,{align:"center",gap:4,horizontal:!0,children:[t,n]})}))}));var CY={exports:{}},EY={},DY=z;var OY="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},_Y=DY.useState,$Y=DY.useEffect,jY=DY.useLayoutEffect,NY=DY.useDebugValue;function PY(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!OY(e,n)}catch(r){return!0}}var IY="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=_Y({inst:{value:n,getSnapshot:t}}),o=r[0].inst,a=r[1];return jY((function(){o.value=n,o.getSnapshot=t,PY(o)&&a({inst:o})}),[e,n,t]),$Y((function(){return PY(o)&&a({inst:o}),e((function(){PY(o)&&a({inst:o})}))}),[e]),NY(n),n};EY.useSyncExternalStore=void 0!==DY.useSyncExternalStore?DY.useSyncExternalStore:IY,CY.exports=EY;var TY,FY,RY=CY.exports,AY={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"]}},MY=["children","title","className","wrapClassName","width","onCancel","open","destroyOnClose"];function LY(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?LY(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zY=gH((function(e){var t=e.css,n=e.token,r=e.prefixCls;return{content:t(TY||(TY=gf(["\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(FY||(FY=gf(["\n overflow: hidden auto;\n backdrop-filter: blur(2px);\n "])))}}));const HY=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=Lp(e,MY),d=Bz().mobile,p=zY(),f=p.styles,h=p.cx,g=p.theme;return d?Q.jsx(LM,{closeIcon:Q.jsx(VH,{icon:pf,size:{blockSize:32,fontSize:20}}),destroyOnClose:c,drawerStyle:{background:"linear-gradient(to bottom, ".concat(g.colorBgContainer,", ").concat(g.colorBgLayout,")")},height:"75vh",maskClassName:h(f.wrap,o),onClose:s,open:l,placement:"bottom",styles:BY({body:{padding:0},header:{padding:"8px 4px"}},u.styles),title:n,children:t}):Q.jsx(Sk,{theme:{token:{colorBgElevated:cG(.005,g.colorBgContainer)}},children:Q.jsx(eB,BY(BY({className:h(f.content,r),closable:!0,closeIcon:Q.jsx(OH,{icon:pf,size:{fontSize:20}}),destroyOnClose:c,maskClosable:!0,onCancel:s,open:l,title:n,width:i,wrapClassName:h(f.wrap,o)},u),{},{children:t}))})}));var WY,UY,GY,VY,qY,XY,KY,YY,QY,JY,ZY,eQ,tQ,nQ,rQ,oQ,aQ,iQ,sQ,lQ,cQ,uQ=globalThis&&globalThis.__extends||(WY=function(e,t){return(WY=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}WY(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),dQ=globalThis&&globalThis.__assign||function(){return dQ=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},dQ.apply(this,arguments)},pQ={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},fQ={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},hQ={width:"20px",height:"20px",position:"absolute"},gQ={top:dQ(dQ({},pQ),{top:"-5px"}),right:dQ(dQ({},fQ),{left:void 0,right:"-5px"}),bottom:dQ(dQ({},pQ),{top:void 0,bottom:"-5px"}),left:dQ(dQ({},fQ),{left:"-5px"}),topRight:dQ(dQ({},hQ),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:dQ(dQ({},hQ),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:dQ(dQ({},hQ),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:dQ(dQ({},hQ),{left:"-10px",top:"-10px",cursor:"nw-resize"})},mQ=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 uQ(t,e),t.prototype.render=function(){return z.createElement("div",{className:this.props.className||"",style:dQ(dQ({position:"absolute",userSelect:"none"},gQ[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(z.PureComponent),bQ=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)}}(),vQ=globalThis&&globalThis.__assign||function(){return vQ=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},vQ.apply(this,arguments)},yQ={width:"auto",height:"auto"},wQ=function(e,t,n){return Math.max(Math.min(e,n),t)},xQ=function(e,t){return Math.round(e/t)*t},kQ=function(e,t){return new RegExp(e,"i").test(t)},SQ=function(e){return Boolean(e.touches&&e.touches.length)},CQ=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},EQ=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"},DQ=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},OQ=["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"],_Q="__resizable_base__",$Q=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(_Q):t.className+=_Q,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 bQ(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||yQ},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 EQ(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?EQ(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?EQ(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&&kQ("left",a),s=o&&kQ("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,p=i.height,f=c||0,h=u||0;return kQ("right",a)&&(d=i.width+(e-i.x)*r/n,l&&(p=(d-h)/this.ratio+f)),kQ("left",a)&&(d=i.width-(e-i.x)*r/n,l&&(p=(d-h)/this.ratio+f)),kQ("bottom",a)&&(p=i.height+(t-i.y)*r/n,l&&(d=(p-f)*this.ratio+h)),kQ("top",a)&&(p=i.height-(t-i.y)*r/n,l&&(d=(p-f)*this.ratio+h)),{newWidth:d,newHeight:p}},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,p=i||0,f=s||0;if(a){var h=(u-p)*this.ratio+f,g=(d-p)*this.ratio+f,m=(l-f)/this.ratio+p,b=(c-f)/this.ratio+p,v=Math.max(l,h),y=Math.min(c,g),w=Math.max(u,m),x=Math.min(d,b);e=wQ(e,v,y),t=wQ(t,w,x)}else e=wQ(e,l,c),t=wQ(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&&SQ(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:vQ(vQ({},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&&SQ(e))try{e.preventDefault(),e.stopPropagation()}catch(Fte){}var n=this.props,r=n.maxWidth,o=n.maxHeight,a=n.minWidth,i=n.minHeight,s=SQ(e)?e.touches[0].clientX:e.clientX,l=SQ(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,p=c.width,f=c.height,h=this.getParentSize(),g=function(e,t,n,r,o,a,i){return r=DQ(r,e.width,t,n),o=DQ(o,e.height,t,n),a=DQ(a,e.width,t,n),i=DQ(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=CQ(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(b=CQ(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=xQ(v,this.props.grid[0]),k=xQ(b,this.props.grid[1]),S=this.props.snapGap||0;v=0===S||Math.abs(x-v)<=S?x:v,b=0===S||Math.abs(k-b)<=S?k:b}var C={width:v-d.width,height:b-d.height};if(p&&"string"==typeof p)if(p.endsWith("%"))v=v/h.width*100+"%";else if(p.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/h.height*100+"%";else if(f.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(f.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:vQ(vQ({},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(mQ,{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!==OQ.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=vQ(vQ(vQ({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,vQ({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),jQ=16,NQ="draggable-panel",PQ=gH((function(e,t){var n=e.token,r=bH(UY||(UY=gf(["\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=bH(GY||(GY=gf(["\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=bH(VY||(VY=gf(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:vH(a,bH(qY||(qY=gf(["\n right: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n "])))),bottomHandle:vH("".concat(NQ,"-bottom-handle"),bH(XY||(XY=gf(["\n ",";\n\n &::before {\n bottom: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:vH(NQ,bH(KY||(KY=gf(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),n.colorBorderSecondary,NQ)),fixed:bH(YY||(YY=gf(["\n position: relative;\n "]))),fullscreen:bH(QY||(QY=gf(["\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:bH(JY||(JY=gf(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),n.motionEaseOut),leftFloat:vH(a,bH(ZY||(ZY=gf(["\n top: ","px;\n bottom: 0;\n left: 0;\n height: calc(100% - ","px);\n "])),t,t)),leftHandle:vH(bH(eQ||(eQ=gf(["\n ",";\n\n &::before {\n left: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(NQ,"-left-handle")),panel:vH("".concat(NQ,"-fixed"),bH(tQ||(tQ=gf(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),n.motionEaseOut)),rightFloat:vH(a,bH(nQ||(nQ=gf(["\n top: ","px;\n right: 0;\n bottom: 0;\n height: calc(100% - ","px);\n "])),t,t)),rightHandle:vH(bH(rQ||(rQ=gf(["\n ",";\n &::before {\n right: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(NQ,"-right-handle")),toggleBottom:vH("".concat(NQ,"-toggle"),"".concat(NQ,"-toggle-bottom"),o,bH(oQ||(oQ=gf(["\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,jQ,40)),toggleLeft:vH("".concat(NQ,"-toggle"),"".concat(NQ,"-toggle-left"),o,bH(aQ||(aQ=gf(["\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,jQ,jQ,40)),toggleRight:vH("".concat(NQ,"-toggle"),"".concat(NQ,"-toggle-right"),o,bH(iQ||(iQ=gf(["\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,jQ,jQ,40)),toggleTop:vH("".concat(NQ,"-toggle"),"".concat(NQ,"-toggle-top"),o,bH(sQ||(sQ=gf(["\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,jQ,40,jQ)),topFloat:vH(a,bH(lQ||(lQ=gf(["\n top: ","px;\n right: 0;\n left: 0;\n width: 100%;\n "])),t)),topHandle:vH("".concat(NQ,"-top-handle"),bH(cQ||(cQ=gf(["\n ",";\n\n &::before {\n top: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),IQ=function(e){switch(e){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}};function TQ(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 FQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TQ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const RQ=z.memo((function(e){var t,n,r,o,a,i,s,l,c,u,d,p=e.headerHeight,f=void 0===p?0:p,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,k=void 0===x?"right":x,S=e.resize,C=e.style,E=e.size,D=e.defaultSize,O=e.minWidth,_=e.minHeight,$=e.maxWidth,j=e.onSizeChange,N=e.onSizeDragging,P=e.expandable,I=void 0===P||P,T=e.expand,F=e.defaultExpand,R=void 0===F||F,A=e.onExpandChange,M=e.className,L=e.showHandlerWhenUnexpand,B=e.destroyOnClose,H=e.hanlderStyle,W=e.classNames,U=void 0===W?{}:W,G=z.useRef(),V=(t=G,o=(r=n||{}).onEnter,a=r.onLeave,i=r.onChange,s=fG(BG(!1),2),l=s[0],c=s[1],u=c.setTrue,d=c.setFalse,BK("mouseenter",(function(){null==o||o(),u(),null==i||i(!0)}),{target:t}),BK("mouseleave",(function(){null==a||a(),d(),null==i||i(!1)}),{target:t}),l),q="top"===k||"bottom"===k,X=PQ(f),K=X.styles,Y=X.cx,J=bm(Jz(R,{onChange:A,value:T}),2),Z=J[0],ee=J[1];z.useEffect((function(){b||(V&&!Z?ee(!0):!V&&Z&&ee(!1))}),[b,V,Z]);var te=bm(z.useState(!0),2),ne=te[0],re=te[1],oe=bm(z.useState(!1),2),ae=oe[0],ie=oe[1],se=!1!==S&&Z,le=z.useMemo((function(){return se?Mp({},IQ(k),K["".concat(IQ(k),"Handle")]):{}}),[se,k]),ce=FQ(Mp({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},IQ(k),!0),S),ue=z.useMemo((function(){return FQ(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 $?Math.max($,0):$,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}},pe=z.useMemo((function(){switch(k){case"top":return{Arrow:Up,className:"Bottom"};case"bottom":return{Arrow:qp,className:"Top"};case"right":return{Arrow:Gp,className:"Left"};case"left":return{Arrow:Vp,className:"Right"}}}),[K,k]),fe=pe.Arrow,he=pe.className,ge=Q.jsx(nY,{className:Y(K["toggle".concat(he)],U.handle),style:{opacity:Z?b?void 0:0:L?1:0},children:Q.jsx(nY,{onClick:function(){ee(!Z)},style:H,children:Q.jsx("div",{className:K.handlerIcon,style:{transform:"rotate(".concat(Z?180:0,"deg)")},children:Q.jsx(fe,{size:16,strokeWidth:1.5})})})}),me=Q.jsx($Q,FQ(FQ({},de),{},{className:Y(K.panel,U.content),enable:se?ce:void 0,handleClasses:le,onResize:function(e,t,n,r){null==N||N(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==j||j(r,{height:n.style.height,width:n.style.width})},style:FQ({transition:ae?"unset":void 0},C),children:w}));return h?Q.jsx("div",{className:Y(K.fullscreen,M),children:w}):Q.jsxs("aside",{className:Y(K.container,K["fixed"===y?"fixed":"".concat(k,"Float")],M),ref:G,style:Z?Mp({},"border".concat(he,"Width"),1):{},children:[I&&ne&&ge,B?Z&&me:me]})}));var AQ,MQ,LQ,BQ,zQ=gH((function(e){var t=e.css,n=e.token;return{body:t(AQ||(AQ=gf(["\n overflow-x: hidden;\n overflow-y: auto;\n flex: 1;\n padding: 16px;\n "]))),container:t(MQ||(MQ=gf(["\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n "]))),footer:t(LQ||(LQ=gf(["\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(BQ||(BQ=gf(["\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)}})),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){Mp(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 GQ=z.memo((function(e){var t=e.className,n=e.children,r=Lp(e,HQ),o=zQ(),a=o.cx,i=o.styles;return Q.jsx("div",UQ(UQ({className:a(i.body,t)},r),{},{children:n}))}));var VQ=["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 XQ(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){Mp(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 KQ=z.memo((function(e){var t=e.className,n=e.children,r=Lp(e,VQ),o=zQ(),a=o.cx,i=o.styles;return Q.jsx("div",XQ(XQ({className:a(i.container,t)},r),{},{children:n}))}));var YQ=["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 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){Mp(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.className,n=e.children,r=Lp(e,YQ),o=zQ(),a=o.cx,i=o.styles;return Q.jsx("div",JQ(JQ({className:a(i.footer,t)},r),{},{children:n}))}));var eJ=["pin","setPin","className","setExpand","title","position"];function tJ(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 nJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tJ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const rJ=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=Lp(e,eJ),c=zQ(),u=c.cx,d=c.styles,p=Q.jsx(VH,{icon:of,onClick:function(){return o(!1)},size:{blockSize:24,fontSize:14}}),f=Q.jsx(VH,{active:t,icon:t?lf:sf,onClick:function(){return n(!t)},size:{blockSize:24,fontSize:14}});return Q.jsxs("div",nJ(nJ({className:u(d.header,r)},l),{},{children:["left"===s?p:f,a,"left"===s?f:p]}))}));var oJ=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 aJ=n(oJ);const iJ=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 sJ,lJ,cJ=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:Qb("".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:Qb("".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)))})))},uJ=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],dJ=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,p=Lp(e,uJ),f=Qb("".concat(n),r,Mp({},"".concat(n,"-").concat(d),!!d)),h="number"==typeof s&&s>0;return H.createElement("footer",Mg(Mg({},p),{},{className:f,style:Mg(Mg({},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=Mg({},a);return h&&(u.flex="0 0 ".concat(100/(s+1)+.1,"%")),H.createElement(cJ,{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)))},pJ=gH((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(sJ||(sJ=gf(["\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(lJ||(lJ=gf(["\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 fJ=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=pJ({contentMaxWidth:a,isEmpty:i}).styles;return Q.jsx("section",{className:s.container,children:Q.jsx(dJ,{bottom:n,className:s.footer,columns:t,theme:r})})}));var hJ,gJ,mJ,bJ,vJ,yJ,wJ,xJ,kJ,SJ,CJ,EJ,DJ,OJ=gH((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(hJ||(hJ=gf(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),formTitle:r(gJ||(gJ=gf(["\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(mJ||(mJ=gf(["\n .","-collapse-content {\n background: transparent;\n }\n\n .","-collapse-header {\n background: ",";\n }\n "])),l,l,a.colorFillTertiary),r(bJ||(bJ=gf(["\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(vJ||(vJ=gf(["\n transition: all 100ms ",";\n "])),a.motionEaseOut),item:r(yJ||(yJ=gf(["\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(wJ||(wJ=gf(["\n .","-form-item-control {\n width: ",";\n }\n "])),l,(n=t,"number"==typeof n||aW(n)&&"[object Number]"==oW(n)?"".concat(t,"px"):t)),s.mobile,t?r(xJ||(xJ=gf(["\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(kJ||(kJ=gf(["\n .","-row {\n flex-wrap: wrap;\n gap: 4px;\n }\n "])),l)),itemNoDivider:r(SJ||(SJ=gf(["\n &:not(:first-child) {\n padding-top: 0;\n }\n "]))),mobileGroupBody:r(CJ||(CJ=gf(["\n padding: 0 16px;\n background: ",";\n "])),a.colorBgContainer),mobileGroupHeader:r(EJ||(EJ=gf(["\n padding: 16px;\n background: ",";\n "])),a.colorBgLayout),title:r(DJ||(DJ=gf(["\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)}})),_J=["className","children"];function $J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$J(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const NJ=z.memo((function(e){var t=e.className,n=e.children,r=Lp(e,_J),o=OJ(),a=o.cx,i=o.styles;return Q.jsx("div",jJ(jJ({className:a(i.footer,t)},r),{},{children:n}))}));var PJ=["className","icon","title","children","extra"];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}var TJ=z.memo((function(e){var t=e.className,n=e.icon,r=e.title,o=e.children,a=e.extra,i=Lp(e,PJ),s=Bz().mobile,l=OJ(),c=l.cx,u=l.styles,d=Q.jsxs("div",{className:u.title,children:[n&&Q.jsx(OH,{icon:n}),r]});return s?Q.jsxs(dY,{className:t,children:[Q.jsxs(dY,{className:u.mobileGroupHeader,horizontal:!0,justify:"space-between",children:[d,a]}),Q.jsx("div",{className:u.mobileGroupBody,children:o})]}):Q.jsx(rA,function(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){Mp(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}({className:c(u.group,t),defaultActiveKey:[1],expandIcon:function(e){var t=e.isActive;return Q.jsx(OH,{className:u.icon,icon:Up,size:{fontSize:16},style:t?{}:{rotate:"-90deg"}})},items:[{children:o,extra:a,key:1,label:d}]},i),1)}));const FJ=TJ;var RJ=["style"];function AJ(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 MJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AJ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const LJ=z.memo((function(e){var t=e.style,n=Lp(e,RJ);return Q.jsx(sA,MJ({style:MJ({margin:0,opacity:.5},t)},n))}));const BJ=z.memo((function(e){var t=e.className,n=e.tag,r=e.title,o=e.desc,a=e.avatar,i=OJ(),s=i.cx,l=i.styles,c=Q.jsxs("div",{className:s(l.formTitle,t),children:[Q.jsxs(dY,{align:"center",direction:"horizontal",gap:8,children:[r,n&&Q.jsx(SY,{children:n})]}),o&&Q.jsx("small",{children:o})]});return a?Q.jsxs(dY,{align:"center",gap:8,horizontal:!0,children:[a,c]}):c}));var zJ=["desc","tag","minWidth","avatar","className","label","children","divider"];function HJ(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 WJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HJ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var UJ=BL.Item;const GJ=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=Lp(e,zJ),u=OJ(r),d=u.cx,p=u.styles;return Q.jsxs(Q.Fragment,{children:[l&&Q.jsx(LJ,{}),Q.jsx(UJ,WJ(WJ({className:d(p.item,!l&&p.itemNoDivider,a),label:Q.jsx(BJ,{avatar:o,desc:t,tag:n,title:i})},c),{},{children:s}))]})}));var VJ,qJ,XJ=gH((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=e.responsive;return{footer:t(VJ||(VJ=gf(["\n display: flex;\n gap: 8px;\n justify-content: flex-end;\n "]))),form:t(qJ||(qJ=gf(["\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)}})),KJ=["className","itemMinWidth","footer","form","items","children"];function YJ(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?YJ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var JJ=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=Lp(e,KJ),c=XJ(),u=c.cx,d=c.styles;return Q.jsxs(BL,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(FJ,{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(GJ,QJ({divider:0!==t,minWidth:r},e),t)}))},t)})),s,o&&Q.jsx(NJ,{children:o})]}))}));JJ.Item=GJ,JJ.Group=FJ;const ZJ=JJ;var eZ,tZ={};function nZ(){return eZ||(eZ=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,p={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}},f=(e,t)=>t!==e&&(t==t||e==e),h={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:f},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:p).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:p;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||f)(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(Fte){Promise.reject(Fte)}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(Ite){throw t=!1,this._$Ek(),Ite}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$",k=`lit$${(Math.random()+"").slice(9)}$`,S="?"+k,C=`<${S}>`,E=document,D=()=>E.createComment(""),O=e=>null===e||"object"!=typeof e&&"function"!=typeof e,_=Array.isArray,$="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,P=/>/g,I=RegExp(`>|${$}(?:([^\\s"'>=/]+)(${$}*=${$}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,F=/"/g,R=/^(?:script|style|textarea|title)$/i,A=(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=j;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===j?"!--"===s[1]?i=N:void 0!==s[1]?i=P:void 0!==s[2]?(R.test(s[2])&&(o=RegExp("</"+s[2],"g")),i=I):void 0!==s[3]&&(i=I):i===I?">"===s[0]?(i=o??j,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]?F:T):i===F||i===T?i=I:i===N||i===P?i=j:(i=I,o=void 0);const d=i===I&&e[l+1].startsWith("/>")?" ":"";a+=i===j?t+C:c>=0?(r.push(n),t.slice(0,c)+x+t.slice(c)+k+d):t+k+(-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(k)){const n=c[a++];if(e.push(t),void 0!==n){const e=r.getAttribute(n.toLowerCase()+x).split(k),t=/([.?@])?(.*)/.exec(n);s.push({type:1,index:o,name:t[2],strings:e,ctor:"."===t[1]?X:"?"===t[1]?Y:"@"===t[1]?Q:q})}else s.push({type:6,index:o})}for(const t of e)r.removeAttribute(t)}if(R.test(r.tagName)){const e=r.textContent.split(k),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===S)s.push({type:2,index:o});else{let e=-1;for(;-1!==(e=r.data.indexOf(k,e+1));)s.push({type:7,index:o}),e+=k.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 G=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 V(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 V{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 G(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 V(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 X extends q{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}}const K=y?y.emptyScript:"";class Y extends q{constructor(){super(...arguments),this.type=4}j(e){e&&e!==L?this.element.setAttribute(this.name,K):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,V),(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 V(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 pe(e){void 0!==this._$AN?(ue(this),this._$AM=e,de(this)):this._$AM=e}function fe(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=fe),null!==(n=(o=e)._$AQ)&&void 0!==n||(o._$AQ=pe))};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 A`
<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)}(tZ)),tZ}const rZ=Q,oZ=z;var aZ=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:p,lang:f,loading:h}){const[g,m]=oZ.useState(!1);return oZ.useEffect((()=>{g||(Promise.resolve().then((()=>nZ())),m(!0))}),[]),g?rZ.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:p,lang:f,loading:h}):null};const iZ=n(aZ);var sZ,lZ=function(e){return["zh_CN","zh_TW"].includes(e)?e.replace("_","-"):"zh_HK"===e?"zh-TW":e.split("_")[0]},cZ=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"];function uZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uZ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pZ=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,p=void 0===d?"giscus":d,f=e.loading,h=void 0===f?"lazy":f,g=e.emitMetadata,m=void 0===g?"0":g,b=Lp(e,cZ),v=kH(),y=Pz().isDarkMode,w=z.useMemo((function(){return btoa(function(e,t){var n=t?"dark":"light",r=AY.gray[n][11],o=AY.gray[n][10],a=AY.gray[n][7],i=t?AY.red[n][9]:AY.volcano[n][9],s=t?AY.gold[n][9]:AY.orange[n][9],l=t?AY.lime[n][9]:AY.green[n][9],c=t?AY.blue[n][9]:AY.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 bH(sZ||(sZ=gf(["\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,QU(i,.4),o,QU(i,.6),l,s,c,o,o,o,QU(i,.2),l,QU(l,.2),s,QU(i,.2),o,QU(c,.2),s,o,a,c,e.colorText,e.colorFillTertiary,e.colorBorderSecondary,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,e.colorBorder,e.colorFillSecondary,pG(e.colorPrimary),e.colorPrimary,e.colorPrimaryBorder,e.colorPrimaryHover,e.colorPrimaryBorderHover,e.colorPrimaryActive,QU(pG(e.colorPrimary),.5),QU(e.colorPrimary,.5),QU(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(iZ,dZ({emitMetadata:m,id:p,inputPosition:u,lang:lZ(l),loading:h,mapping:i,reactionsEnabled:o,theme:"data:text/css;base64,".concat(w)},b))})}));var fZ,hZ,gZ=gH((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(fZ||(fZ=gf(["\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(hZ||(hZ=gf(["\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)}})),mZ=["glow","children","className","size"];function bZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bZ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const yZ=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=Lp(e,mZ),l=gZ(i),c=l.styles,u=l.cx;return Q.jsxs(DE,vZ(vZ({className:u(c.button,o),size:i},s),{},{children:[n&&Q.jsx("div",{className:c.glow}),r]}))}));var wZ,xZ,kZ,SZ,CZ=gH((function(e){var t=e.css,n=e.responsive,r=e.token,o=e.cx;return{content:t(wZ||(wZ=gf(["\n height: 64px;\n padding: 0 24px;\n background-color: ",";\n border-bottom: 1px solid ",";\n\n "," {\n padding: 0 12px;\n }\n "])),QU(r.colorBgLayout,.4),r.colorSplit,n.mobile),header:o(t(xZ||(xZ=gf(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:t(kZ||(kZ=gf(["\n z-index: 10;\n "]))),right:t(SZ||(SZ=gf(["\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)}})),EZ=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"];function DZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function OZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DZ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _Z=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=Lp(e,EZ),p=Bz().mobile,f=CZ(),h=f.cx,g=f.styles;return Q.jsx("section",OZ(OZ({className:h(g.header,u)},d),{},{children:Q.jsx(dY,{align:"center",className:g.content,distribution:"space-between",horizontal:!0,width:"auto",children:p?Q.jsxs(Q.Fragment,{children:[Q.jsx(dY,{className:t,style:OZ({flex:0},c),children:o}),Q.jsx(dY,{className:h(g.left,r),horizontal:!0,style:OZ({flex:1,overflow:"hidden"},l),children:a}),Q.jsx(dY,{className:t,style:OZ({flex:0},s),children:i})]}):Q.jsxs(Q.Fragment,{children:[Q.jsx(dY,{className:h(g.left,r),horizontal:!0,style:OZ({flex:0},l),children:a}),Q.jsx(dY,{className:n,style:OZ({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(dY,{align:"center",gap:8,horizontal:!0,children:i})]})]})})}))}));function $Z(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 jZ=zp("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 NZ=function(e){return Q.jsx(jZ,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$Z(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({style:{overflow:"visible"}},e))};var PZ,IZ,TZ,FZ,RZ,AZ,MZ,LZ,BZ,zZ,HZ=gH((function(e,t){var n=e.css,r=e.stylish,o=e.responsive,a=n(PZ||(PZ=gf(["\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(IZ||(IZ=gf(["\n overflow-x: hidden;\n overflow-y: auto;\n height: 100vh;\n "]))),aside:n(TZ||(TZ=gf(["\n position: sticky;\n z-index: 2;\n height: 100%;\n "]))),asideInner:n(FZ||(FZ=gf(["\n overflow-x: hidden;\n overflow-y: auto;\n width: 100%;\n height: calc(100vh - ","px);\n "])),t),content:n(RZ||(RZ=gf(["\n position: relative;\n flex: 1;\n max-width: 100%;\n "]))),footer:n(AZ||(AZ=gf(["\n position: relative;\n max-width: 100%;\n "]))),glass:n(MZ||(MZ=gf(["\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(LZ||(LZ=gf(["\n position: sticky;\n z-index: 999;\n top: 0;\n max-width: 100%;\n "]))),main:n(BZ||(BZ=gf(["\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n "]))),toc:n(zZ||(zZ=gf([""])))}})),WZ=["headerHeight","children","className","style"],UZ=["children","className"],GZ=["headerHeight","children","className","style"],VZ=["headerHeight","children","className"];function qZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qZ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var KZ=z.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=e.style,a=Lp(e,WZ),i=HZ(t),s=i.cx,l=i.styles;return Q.jsxs("header",XZ(XZ({className:s(l.header,r),style:XZ({height:t},o)},a),{},{children:[Q.jsx("div",{className:l.glass}),n]}))})),YZ=z.memo((function(e){var t=e.children,n=e.className,r=Lp(e,UZ),o=HZ(),a=o.cx,i=o.styles;return Q.jsx("main",XZ(XZ({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=Lp(e,GZ),i=HZ(t),s=i.cx,l=i.styles;return Q.jsx("aside",XZ(XZ({className:s(l.aside,r),style:XZ({top:t},o)},a),{},{children:n}))})),JZ=z.memo((function(e){var t=e.headerHeight,n=e.children,r=e.className,o=Lp(e,VZ),a=HZ(t),i=a.cx,s=a.styles;return Q.jsx("div",XZ(XZ({className:i(s.asideInner,r)},o),{},{children:n}))}));function ZZ(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 e0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZZ(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const t0=z.memo((function(e){var t=Object.assign({},(sz(e),e));return Q.jsx("svg",e0(e0({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 n0(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 r0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n0(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const o0=z.memo((function(e){var t=Object.assign({},(sz(e),e));return Q.jsxs("svg",r0(r0({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 a0(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 i0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a0(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const s0=z.memo((function(e){var t=Object.assign({},(sz(e),e));return Q.jsx("svg",i0(i0({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 l0,c0={path:"assets/logo-3d.webp",pkg:"@lobehub/assets-logo",version:"1.1.0"},u0={path:"assets/logo-flat.svg",pkg:"@lobehub/assets-logo",version:"1.1.0"},d0=gH((function(e){return{extraTitle:(0,e.css)(l0||(l0=gf(["\n font-weight: 300;\n white-space: nowrap;\n "])))}})),p0=["type","size","style","extra","className"];function f0(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 h0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f0(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const g0=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=Lp(e,p0),u=mU(),d=kH(),p=d0().styles;switch(r){case"3d":t=Q.jsx(yU,h0({alt:"lobehub",height:a,src:u(c0),style:i,width:a},c));break;case"flat":t=Q.jsx(yU,{alt:"lobehub",height:a,src:u(u0),style:i,width:a});break;case"high-contrast":t=Q.jsx(o0,h0({height:a,style:i,width:a},c));break;case"text":t=Q.jsx(s0,h0({className:l,height:a,style:i,width:2.9375*a},c));break;case"combine":t=Q.jsxs(Q.Fragment,{children:[Q.jsx(yU,{alt:"lobehub",height:a,src:u(c0),width:a}),Q.jsx(s0,{style:{height:a,marginLeft:Math.round(a/4),width:"auto"}})]})}if(!s)return t;var f=Math.round(a/3*1.9);return Q.jsxs(dY,h0(h0({align:"center",className:l,horizontal:!0,style:i},c),{},{children:[t,Q.jsx(t0,{style:{color:d.colorFill,height:f,width:f}}),Q.jsx("div",{className:p.extraTitle,style:{fontSize:f},children:s})]}))}));var m0,b0,v0,y0,w0,x0,k0,S0,C0,E0=function(e){var t,n=e.type,r=e.scale,o=e.appearance,a=NW(n),i="dark"===o;return Mp(t={},"color".concat(a,"Bg"),r[o][1]),Mp(t,"color".concat(a,"BgHover"),r[o][2]),Mp(t,"color".concat(a,"Border"),r[o][4]),Mp(t,"color".concat(a,"BorderHover"),r[o][i?5:3]),Mp(t,"color".concat(a,"Hover"),r[o][i?10:8]),Mp(t,"color".concat(a),r[o][9]),Mp(t,"color".concat(a,"Active"),r[o][i?7:10]),Mp(t,"color".concat(a,"TextHover"),r[o][i?10:8]),Mp(t,"color".concat(a,"Text"),r[o][9]),Mp(t,"color".concat(a,"TextActive"),r[o][i?7:10]),t},D0=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]}},O0={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"]}},_0={blue:AY.blue.dark[9],cyan:AY.cyan.dark[9],geekblue:AY.geekblue.dark[9],gold:AY.gold.dark[9],green:AY.green.dark[9],lime:AY.lime.dark[9],magenta:AY.magenta.dark[9],orange:AY.orange.dark[9],purple:AY.purple.dark[9],red:AY.red.dark[9],volcano:AY.volcano.dark[9],yellow:AY.yellow.dark[9]},$0=[_0.red,_0.orange,_0.gold,_0.yellow,_0.lime,_0.green,_0.cyan,_0.blue,_0.geekblue,_0.purple,_0.magenta,_0.volcano],j0={mauve:O0.mauve.dark[9],olive:O0.olive.dark[9],sage:O0.sage.dark[9],sand:O0.sand.dark[9],slate:O0.slate.dark[9]},N0=[j0.mauve,j0.slate,j0.sage,j0.olive,j0.sand];function P0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P0(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T0(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 F0(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 F0(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 F0(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 R0,A0,M0=function(e){var t,n=e.name,r=e.scale,o=e.appearance,a={},i=T0(r[o].entries());try{for(i.s();!(t=i.n()).done;){var s=bm(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=T0(r["".concat(o,"A")].entries());try{for(d.s();!(u=d.n()).done;){var p=bm(u.value,2),f=p[0],h=p[1];0!==f&&12!==f&&(a["".concat(n).concat(f,"A")]=h)}}catch(g){d.e(g)}finally{d.f()}return I0(I0({},a),function(e){var t,n=e.name,r=e.scale,o=e.appearance;return Mp(t={},"".concat(n,"Bg"),r["".concat(o,"A")][1]),Mp(t,"".concat(n,"BgHover"),r["".concat(o,"A")][2]),Mp(t,"".concat(n,"Border"),r[o][4]),Mp(t,"".concat(n,"BorderSecondary"),r[o][3]),Mp(t,"".concat(n,"BorderHover"),r[o][5]),Mp(t,"".concat(n,"Hover"),r[o][10]),Mp(t,"".concat(n),r[o][9]),Mp(t,"".concat(n,"Active"),r[o][7]),Mp(t,"".concat(n,"TextHover"),r["".concat(o,"A")][10]),Mp(t,"".concat(n,"Text"),r["".concat(o,"A")][9]),Mp(t,"".concat(n,"TextActive"),r["".concat(o,"A")][7]),t}({appearance:o,name:n,scale:r}))},L0=gH((function(e,t){var n=e.css,r=e.token;return{active:n(R0||(R0=gf(["\n box-shadow: 0 0 0 2px ",";\n "])),r.colorTextTertiary),container:n(A0||(A0=gf(["\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 B0=z.memo((function(e){var t=e.colors,n=e.activeColor,r=e.onSelect,o=e.size,a=void 0===o?24:o,i=kH(),s=L0(a),l=s.cx,c=s.styles;return Q.jsxs(dY,{gap:8,horizontal:!0,style:{flexWrap:"wrap"},children:[Q.jsx(dY,{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(dY,{className:l(c.container,t&&c.active),onClick:function(){null==r||r(e)},style:{background:e}},e)}))]})}));var z0,H0=gH((function(e){var t=e.css,n=e.token,r=e.prefixCls,o=".".concat(r,"-tabs");return{tabs:t(z0||(z0=gf(["\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)}})),W0=["className"];function U0(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 G0=z.memo((function(e){var t=e.className,n=Lp(e,W0),r=H0(),o=r.styles,a=r.cx;return Q.jsx(_R,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U0(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:a(o.tabs,t)},n))}));const V0=G0;function q0(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 X0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q0(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q0(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K0=E0({appearance:"dark",scale:AY.bnw,type:"Primary"}),Y0=D0({appearance:"dark",scale:AY.gray}),Q0=E0({appearance:"dark",scale:AY.lime,type:"Success"}),J0=E0({appearance:"dark",scale:AY.gold,type:"Warning"}),Z0=E0({appearance:"dark",scale:AY.red,type:"Error"}),e1=E0({appearance:"dark",scale:AY.blue,type:"Info"});const t1=X0(X0(X0(X0(X0(X0(X0({},K0),Y0),Q0),J0),Z0),e1),{},{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:e1.colorInfoText,colorLinkActive:e1.colorInfoTextActive,colorLinkHover:e1.colorInfoTextHover,colorTextLightSolid:Y0.colorBgLayout});function n1(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 r1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n1(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var o1=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},a={},i=AY[n];i&&(o=E0({appearance:"dark",scale:i,type:"Primary"}));var s=O0[r];return s&&(a=D0({appearance:"dark",scale:s})),r1(r1(r1(r1({},t),t1),o),a)};function a1(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 i1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a1(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s1=E0({appearance:"light",scale:AY.bnw,type:"Primary"}),l1=D0({appearance:"light",scale:AY.gray}),c1=E0({appearance:"light",scale:AY.green,type:"Success"}),u1=E0({appearance:"light",scale:AY.orange,type:"Warning"}),d1=E0({appearance:"light",scale:AY.volcano,type:"Error"}),p1=E0({appearance:"light",scale:AY.geekblue,type:"Info"});const f1=i1(i1(i1(i1(i1(i1(i1({},s1),l1),c1),u1),d1),p1),{},{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:p1.colorInfoText,colorLinkActive:p1.colorInfoTextActive,colorLinkHover:p1.colorInfoTextHover,colorTextLightSolid:l1.colorBgLayout});function h1(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 g1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h1(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m1=function(e,t){var n=e.primaryColor,r=e.neutralColor,o={},a={},i=AY[n];i&&(o=E0({appearance:"light",scale:i,type:"Primary"}));var s=O0[r];return s&&(a=D0({appearance:"light",scale:s})),g1(g1(g1(g1({},t),f1),o),a)},b1='"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',v1='"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif',y1={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',v1,b1].join(","),fontFamilyCode:["Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",v1,b1].join(",")};function w1(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 x1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w1(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k1;const S1=function(e){return bH(k1||(k1=gf(["\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 .","-alert {\n span[role='img'] {\n align-self: flex-start;\n width: 16px;\n height: 16px;\n margin-top: 3px;\n }\n\n .","-alert-description {\n word-break: break-all;\n word-wrap: break-word;\n }\n\n &.","-alert-with-description {\n padding-block: 12px;\n padding-inline: 12px;\n\n .","-alert-message {\n font-size: 14px;\n font-weight: 600;\n word-break: break-all;\n word-wrap: break-word;\n }\n }\n }\n\n @media (max-width: 575px) {\n .","-tooltip {\n display: none !important;\n }\n }\n"])),e.prefixCls,e.prefixCls,pG(e.colorPrimary),pG(e.colorPrimary),pG(e.colorPrimaryActive),e.prefixCls,e.colorBgLayout,e.colorText,e.borderRadiusSM,e.prefixCls,e.colorText,e.prefixCls,e.colorBgContainer,e.prefixCls,e.prefixCls,e.prefixCls,e.prefixCls,e.prefixCls)};var C1;const E1=mH((function(e){var t,n=e.theme;return[(t=n,bH(C1||(C1=gf(["\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)),S1(n)]}));var D1=["children","customStylish","customToken","enableWebfonts","webfonts","customTheme"];function O1(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 _1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O1(Object(n),!0).forEach((function(t){Mp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $1=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=Lp(e,D1),u=mU(),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"})],p=z.useCallback((function(e){return _1(_1({},function(e){var t=e.css,n=e.token,r=e.isDarkMode,o=yH(m0||(m0=gf(["\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(b0||(b0=gf(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),blurStrong:t(v0||(v0=gf(["\n backdrop-filter: blur(36px);\n "]))),bottomScrollbar:t(y0||(y0=gf(["\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(w0||(w0=gf(["\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(x0||(x0=gf(["\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: 1.8;\n color: ",";\n word-break: break-all;\n word-wrap: break-word;\n\n + * {\n margin-block-end: 0.5em;\n }\n }\n\n > *:last-child {\n margin-bottom: 0 !important;\n }\n\n blockquote {\n margin: 16px 0;\n padding: 0 12px;\n\n p {\n font-style: italic;\n color: ",";\n }\n }\n\n p:not(:last-child) {\n margin-bottom: 1em;\n }\n\n a {\n color: ",";\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n }\n\n img {\n max-width: 100%;\n }\n\n pre,\n [data-code-type='highlighter'] {\n border: none;\n border-radius: ","px;\n\n > code {\n padding: 0 !important;\n border: none !important;\n }\n }\n\n > :not([data-code-type='highlighter']) code {\n padding: 2px 6px;\n\n font-size: ","px;\n color: ",";\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n }\n\n table {\n border-spacing: 0;\n\n width: 100%;\n margin-block: 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(k0||(k0=gf(["\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 "]))),noScrollbar:t(S0||(S0=gf(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:t(C0||(C0=gf(["\n cursor: pointer;\n color: ",";\n\n &:hover {\n color: ",";\n }\n "])),n.colorTextSecondary,n.colorText)}}(e)),null==n?void 0:n(e))}),[n]),f=z.useCallback((function(e){return _1(_1({},function(e){for(var t=e.isDarkMode,n={},r=0,o=Object.entries(AY);r<o.length;r++){var a=bm(o[r],2),i=a[0],s=a[1];n=I0(I0({},n),M0({appearance:t?"dark":"light",name:cU(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?o1:m1,token:x1(x1({},y1),{},{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(iJ,{url:e},e)})),Q.jsx(xH,{speedy:!0,children:Q.jsxs(wH,_1(_1({customStylish:p,customToken:f},c),{},{theme:h,children:[Q.jsx(E1,{}),Q.jsx(C$,{style:{minHeight:"inherit",width:"inherit"},children:t})]}))})]})}));const j1={};function N1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&j1[t[0]]||("string"==typeof t[0]&&(j1[t[0]]=new Date),function(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))}const P1=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function I1(e,t,n){e.loadNamespaces(t,P1(e,n))}function T1(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,P1(e,r))}const F1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,R1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},A1=e=>R1[e];let M1,L1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(F1,A1)};const B1={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L1={...L1,...e}}(e.options.react),function(e){M1=e}(e)}},z1=z.createContext();class H1{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function W1(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=z.useContext(z1)||{},a=n||r||M1;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new H1),!a){N1("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&&N1("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...L1,...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):(N1("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[p,f]=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&&f(d)}return m.current=!0,u||s||(t.lng?T1(a,t.lng,c,(()=>{m.current&&f(d)})):I1(a,c,(()=>{m.current&&f(d)}))),u&&g&&g!==h&&m.current&&f(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&&f(d),b.current=!1}),[a,l]);const v=[p,a,u];if(v.t=p,v.i18n=a,v.ready=u,u)return v;if(!u&&!s)return v;throw new Promise((e=>{t.lng?T1(a,t.lng,c,(()=>e())):I1(a,c,(()=>e()))}))}const U1="https://github.com/lobehub/sd-webui-lobe-theme";var G1={exports:{}};var V1={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 q1="object"==typeof process&&{npm_package_devDependencies_lint_staged:"^15",npm_package_dependencies_semver:"^7",npm_package_devDependencies_prettier:"^3",npm_package_scripts_ci:"npm run lint && npm run type-check",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_devDependencies__lobehub_i18n_cli:"latest",NODE:"/usr/local/bin/node",npm_package_homepage:"https://github.com/lobehub/sd-webui-lobe-theme",npm_package_dependencies_lucide_react:"latest",npm_package_dependencies_polished:"^4",npm_package_devDependencies__types_semver:"^7.5.2",npm_package_devDependencies_typescript:"^5",INIT_CWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",SHELL:"/opt/homebrew/bin/fish",TERM:"xterm-256color",npm_package_dependencies_ahooks:"^3",npm_package_dependencies_react_i18next:"^13",npm_package_devDependencies_vite:"^4",npm_package_scripts_lint_md:"remark . --quiet --output",TMPDIR:"/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/",npm_package_dependencies_i18next_http_backend:"^2",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_release:"semantic-release",npm_config_email:"",npm_package_scripts_test_update:"vitest -u",npm_package_devDependencies__vitejs_plugin_react:"^4",npm_package_scripts_dev:"vite",TERM_SESSION_ID:"af3defca-a108-4954-84a5-9314beeb3eaa",npm_package_private:"true",npm_package_sideEffects:"false",npm_package_scripts_i18n:"lobe-i18n",npm_config_registry:"https://registry.npmmirror.com",npm_package_repository_url:"https://github.com/lobehub/sd-webui-lobe-theme.git",npm_package_dependencies_react_dom:"^18",npm_package_peerDependencies_react_dom:">=18",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_dependencies_zustand_utils:"^1.3.1",USER:"canisminor",npm_package_description:"The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.",npm_package_dependencies_react_dnd:"^16",npm_package_license:"AGPL3",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_devDependencies__types_react:"^18",npm_package_devDependencies__types_react_tag_input:"^6",npm_package_devDependencies_semantic_release:"^21",COMMAND_MODE:"unix2003",OPENAI_API_KEY:"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",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",PNPM_SCRIPT_SRC_DIR:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.0FS6viEdoI/Listeners",npm_package_dependencies_react_helmet:"^6",npm_package_dependencies_zustand:"^4.4.1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_package_dependencies_react_rnd:"^10",npm_package_devDependencies_eslint:"^8",npm_package_devDependencies_query_string:"^8",npm_package_devDependencies_remark:"^14",npm_execpath:"/opt/homebrew/lib/node_modules/pnpm/bin/pnpm.cjs",omp_last_status_generation:"13",FIG_JETBRAINS_SHELL_INTEGRATION:"1",npm_package_scripts_type_check:"tsc --noEmit",npm_package_dependencies_swr:"^2",npm_package_devDependencies__types_react_dom:"^18",PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/canisminor/Library/Python/3.10/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin",TERMINAL_EMULATOR:"JetBrains-JediTerm",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",__CFBundleIdentifier:"com.jetbrains.WebStorm",npm_package_author:"canisminor1990 <i@canisminor.cc>",npm_package_devDependencies_commitlint:"^18",PWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",npm_package_dependencies_react_dnd_html5_backend:"^16",npm_package_devDependencies_terser:"^5",npm_command:"run-script",npm_package_bugs_url:"https://github.com/lobehub/sd-webui-lobe-theme/issues/new",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_devDependencies_jsdom:"^22",npm_package_devDependencies_remark_cli:"^11",npm_lifecycle_event:"build",POSH_SHELL_VERSION:"3.6.1",npm_package_name:"sd-webui-lobe-theme",npm_package_keywords_0:"stable-diffusion-webui",npm_package_repository_type:"git",npm_package_dependencies_shiki_es:"^0.14",npm_package_devDependencies__lobehub_lint:"latest",npm_package_keywords_1:"sd-webui-kitchen-theme",npm_config_resolution_mode:"highest",NODE_PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.9.0_terser@5.24.0/node_modules/vite/bin/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.9.0_terser@5.24.0/node_modules/vite/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.9.0_terser@5.24.0/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/node_modules",npm_package_keywords_2:"kitchen-theme",npm_package_scripts_build:"vite build",npm_package_scripts_start:"npm run dev",npm_package_dependencies_antd_style:"latest",npm_package_devDependencies__vitest_coverage_v8:"latest",npm_package_peerDependencies_antd_style:">=3",XPC_FLAGS:"0x0",npm_package_keywords_3:"extensions",npm_package_devDependencies_vitest:"latest",npm_package_devDependencies_stylelint:"^15.10",npm_package_devDependencies__types_lodash_es:"^4",omp_lastcommand:"pnpm i",npm_package_main:"javascript/main.js",npm_package_dependencies__lobehub_ui:"latest",npm_package_devDependencies_fast_deep_equal:"^3",npm_config_node_gyp:"/opt/homebrew/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"application.com.jetbrains.WebStorm.178111849.178115108",npm_package_version:"3.0.10",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',HOME:"/Users/canisminor",SHLVL:"2",npm_package_scripts_test:"vitest --passWithNoTests",npm_package_dependencies_react_layout_kit:"^1",npm_package_dependencies_react_tag_input:"^6",npm_package_devDependencies__commitlint_cli:"^18",npm_package_devDependencies_husky:"^8",npm_config_lockfile:"",npm_package_publishConfig_access:"public",npm_package_dependencies_lucide_static:"latest",LOGNAME:"canisminor",npm_package_scripts_test_coverage:"vitest run --coverage --passWithNoTests",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_lifecycle_script:"vite build",LC_CTYPE:"UTF-8",npm_package_dependencies_lodash_es:"^4",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_dependencies_react:"^18",npm_package_devDependencies__vitejs_plugin_react_swc:"^3",npm_package_peerDependencies_react:">=18",npm_package_lint_staged____js_jsx__1:"stylelint --fix --allow-empty-input",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.1 darwin arm64",npm_package_devDependencies__types_node:"^20",npm_package_devDependencies__types_react_helmet:"^6",npm_package_files_0:"javascript",npm_package_scripts_prepare:"husky install",POSH_THEME:"/Users/canisminor/.cmli/omp/mytheme.omp.json",npm_package_dependencies_antd:"^5",npm_package_peerDependencies_antd:">=5",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_dependencies_i18next:"^23",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_node_execpath:"/usr/local/bin/node",NODE_ENV:"production"}.NODE_DEBUG&&/\bsemver\b/i.test({npm_package_devDependencies_lint_staged:"^15",npm_package_dependencies_semver:"^7",npm_package_devDependencies_prettier:"^3",npm_package_scripts_ci:"npm run lint && npm run type-check",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_devDependencies__lobehub_i18n_cli:"latest",NODE:"/usr/local/bin/node",npm_package_homepage:"https://github.com/lobehub/sd-webui-lobe-theme",npm_package_dependencies_lucide_react:"latest",npm_package_dependencies_polished:"^4",npm_package_devDependencies__types_semver:"^7.5.2",npm_package_devDependencies_typescript:"^5",INIT_CWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",SHELL:"/opt/homebrew/bin/fish",TERM:"xterm-256color",npm_package_dependencies_ahooks:"^3",npm_package_dependencies_react_i18next:"^13",npm_package_devDependencies_vite:"^4",npm_package_scripts_lint_md:"remark . --quiet --output",TMPDIR:"/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/",npm_package_dependencies_i18next_http_backend:"^2",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_release:"semantic-release",npm_config_email:"",npm_package_scripts_test_update:"vitest -u",npm_package_devDependencies__vitejs_plugin_react:"^4",npm_package_scripts_dev:"vite",TERM_SESSION_ID:"af3defca-a108-4954-84a5-9314beeb3eaa",npm_package_private:"true",npm_package_sideEffects:"false",npm_package_scripts_i18n:"lobe-i18n",npm_config_registry:"https://registry.npmmirror.com",npm_package_repository_url:"https://github.com/lobehub/sd-webui-lobe-theme.git",npm_package_dependencies_react_dom:"^18",npm_package_peerDependencies_react_dom:">=18",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_dependencies_zustand_utils:"^1.3.1",USER:"canisminor",npm_package_description:"The modern theme for stable diffusion webui, exquisite interface design, highly customizable UI, and efficiency boosting features.",npm_package_dependencies_react_dnd:"^16",npm_package_license:"AGPL3",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_devDependencies__types_react:"^18",npm_package_devDependencies__types_react_tag_input:"^6",npm_package_devDependencies_semantic_release:"^21",COMMAND_MODE:"unix2003",OPENAI_API_KEY:"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",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",PNPM_SCRIPT_SRC_DIR:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.0FS6viEdoI/Listeners",npm_package_dependencies_react_helmet:"^6",npm_package_dependencies_zustand:"^4.4.1",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",npm_package_dependencies_react_rnd:"^10",npm_package_devDependencies_eslint:"^8",npm_package_devDependencies_query_string:"^8",npm_package_devDependencies_remark:"^14",npm_execpath:"/opt/homebrew/lib/node_modules/pnpm/bin/pnpm.cjs",omp_last_status_generation:"13",FIG_JETBRAINS_SHELL_INTEGRATION:"1",npm_package_scripts_type_check:"tsc --noEmit",npm_package_dependencies_swr:"^2",npm_package_devDependencies__types_react_dom:"^18",PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin:/opt/homebrew/lib/node_modules/pnpm/dist/node-gyp-bin:/Users/canisminor/Library/Python/3.10/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.bin",TERMINAL_EMULATOR:"JetBrains-JediTerm",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",__CFBundleIdentifier:"com.jetbrains.WebStorm",npm_package_author:"canisminor1990 <i@canisminor.cc>",npm_package_devDependencies_commitlint:"^18",PWD:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme",npm_package_dependencies_react_dnd_html5_backend:"^16",npm_package_devDependencies_terser:"^5",npm_command:"run-script",npm_package_bugs_url:"https://github.com/lobehub/sd-webui-lobe-theme/issues/new",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_devDependencies_jsdom:"^22",npm_package_devDependencies_remark_cli:"^11",npm_lifecycle_event:"build",POSH_SHELL_VERSION:"3.6.1",npm_package_name:"sd-webui-lobe-theme",npm_package_keywords_0:"stable-diffusion-webui",npm_package_repository_type:"git",npm_package_dependencies_shiki_es:"^0.14",npm_package_devDependencies__lobehub_lint:"latest",npm_package_keywords_1:"sd-webui-kitchen-theme",npm_config_resolution_mode:"highest",NODE_PATH:"/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.9.0_terser@5.24.0/node_modules/vite/bin/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.9.0_terser@5.24.0/node_modules/vite/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/vite@4.5.0_@types+node@20.9.0_terser@5.24.0/node_modules:/Users/canisminor/stable-diffusion-webui/extensions/sd-webui-lobe-theme/node_modules/.pnpm/node_modules",npm_package_keywords_2:"kitchen-theme",npm_package_scripts_build:"vite build",npm_package_scripts_start:"npm run dev",npm_package_dependencies_antd_style:"latest",npm_package_devDependencies__vitest_coverage_v8:"latest",npm_package_peerDependencies_antd_style:">=3",XPC_FLAGS:"0x0",npm_package_keywords_3:"extensions",npm_package_devDependencies_vitest:"latest",npm_package_devDependencies_stylelint:"^15.10",npm_package_devDependencies__types_lodash_es:"^4",omp_lastcommand:"pnpm i",npm_package_main:"javascript/main.js",npm_package_dependencies__lobehub_ui:"latest",npm_package_devDependencies_fast_deep_equal:"^3",npm_config_node_gyp:"/opt/homebrew/lib/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js",XPC_SERVICE_NAME:"application.com.jetbrains.WebStorm.178111849.178115108",npm_package_version:"3.0.10",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',HOME:"/Users/canisminor",SHLVL:"2",npm_package_scripts_test:"vitest --passWithNoTests",npm_package_dependencies_react_layout_kit:"^1",npm_package_dependencies_react_tag_input:"^6",npm_package_devDependencies__commitlint_cli:"^18",npm_package_devDependencies_husky:"^8",npm_config_lockfile:"",npm_package_publishConfig_access:"public",npm_package_dependencies_lucide_static:"latest",LOGNAME:"canisminor",npm_package_scripts_test_coverage:"vitest run --coverage --passWithNoTests",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_lifecycle_script:"vite build",LC_CTYPE:"UTF-8",npm_package_dependencies_lodash_es:"^4",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_dependencies_react:"^18",npm_package_devDependencies__vitejs_plugin_react_swc:"^3",npm_package_peerDependencies_react:">=18",npm_package_lint_staged____js_jsx__1:"stylelint --fix --allow-empty-input",npm_config_user_agent:"pnpm/8.6.10 npm/? node/v18.16.1 darwin arm64",npm_package_devDependencies__types_node:"^20",npm_package_devDependencies__types_react_helmet:"^6",npm_package_files_0:"javascript",npm_package_scripts_prepare:"husky install",POSH_THEME:"/Users/canisminor/.cmli/omp/mytheme.omp.json",npm_package_dependencies_antd:"^5",npm_package_peerDependencies_antd:">=5",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_dependencies_i18next:"^23",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_node_execpath:"/usr/local/bin/node",NODE_ENV:"production"}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=V1,a=q1,i=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=u++;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)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),f("FULL",`^${l[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),f("LOOSE",`^${l[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),f("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),f("COERCERTL",l[c.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(G1,G1.exports);var X1=G1.exports;const K1=Object.freeze({loose:!0}),Y1=Object.freeze({});var Q1=e=>e?"object"!=typeof e?K1:e:Y1;const J1=/^[0-9]+$/,Z1=(e,t)=>{const n=J1.test(e),r=J1.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var e2={compareIdentifiers:Z1,rcompareIdentifiers:(e,t)=>Z1(t,e)};const t2=q1,{MAX_LENGTH:n2,MAX_SAFE_INTEGER:r2}=V1,{safeRe:o2,t:a2}=X1,i2=Q1,{compareIdentifiers:s2}=e2;var l2=class e{constructor(t,n){if(n=i2(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>n2)throw new TypeError(`version is longer than ${n2} characters`);t2("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?o2[a2.LOOSE]:o2[a2.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>r2||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r2||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r2||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<r2)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(t2("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)),s2(this.major,t.major)||s2(this.minor,t.minor)||s2(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(t2("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 s2(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(t2("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 s2(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===s2(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 c2=l2;var u2=(e,t,n=!1)=>{if(e instanceof c2)return e;try{return new c2(e,t)}catch(r){if(!n)return null;throw r}};const d2=u2;var p2=(e,t)=>{const n=d2(e,t);return n?n.version:null};const f2=u2;var h2=(e,t)=>{const n=f2(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const g2=l2;var m2=(e,t,n,r,o)=>{"string"==typeof n&&(o=r,r=n,n=void 0);try{return new g2(e instanceof g2?e.version:e,n).inc(t,r,o).version}catch(a){return null}};const b2=u2;var v2=(e,t)=>{const n=b2(e,null,!0),r=b2(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 y2=l2;var w2=(e,t)=>new y2(e,t).major;const x2=l2;var k2=(e,t)=>new x2(e,t).minor;const S2=l2;var C2=(e,t)=>new S2(e,t).patch;const E2=u2;var D2=(e,t)=>{const n=E2(e,t);return n&&n.prerelease.length?n.prerelease:null};const O2=l2;var _2=(e,t,n)=>new O2(e,n).compare(new O2(t,n));const $2=_2;var j2=(e,t,n)=>$2(t,e,n);const N2=_2;var P2=(e,t)=>N2(e,t,!0);const I2=l2;var T2=(e,t,n)=>{const r=new I2(e,n),o=new I2(t,n);return r.compare(o)||r.compareBuild(o)};const F2=T2;var R2=(e,t)=>e.sort(((e,n)=>F2(e,n,t)));const A2=T2;var M2=(e,t)=>e.sort(((e,n)=>A2(n,e,t)));const L2=_2;var B2=(e,t,n)=>L2(e,t,n)>0;const z2=_2;var H2=(e,t,n)=>z2(e,t,n)<0;const W2=_2;var U2=(e,t,n)=>0===W2(e,t,n);const G2=_2;var V2=(e,t,n)=>0!==G2(e,t,n);const q2=_2;var X2=(e,t,n)=>q2(e,t,n)>=0;const K2=_2;var Y2=(e,t,n)=>K2(e,t,n)<=0;const Q2=U2,J2=V2,Z2=B2,e5=X2,t5=H2,n5=Y2;var r5=(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 Q2(e,n,r);case"!=":return J2(e,n,r);case">":return Z2(e,n,r);case">=":return e5(e,n,r);case"<":return t5(e,n,r);case"<=":return n5(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const o5=l2,a5=u2,{safeRe:i5,t:s5}=X1;var l5,c5,u5=(e,t)=>{if(e instanceof o5)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=i5[s5.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),i5[s5.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i5[s5.COERCERTL].lastIndex=-1}else n=e.match(i5[s5.COERCE]);return null===n?null:a5(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)};var d5=p5;function p5(e){var t=this;if(t instanceof p5||(t=new p5),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 f5(e,t,n){var r=t===e.head?new m5(n,null,t,e):new m5(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function h5(e,t){e.tail=new m5(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function g5(e,t){e.head=new m5(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function m5(e,t,n,r){if(!(this instanceof m5))return new m5(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}p5.Node=m5,p5.create=p5,p5.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},p5.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++}},p5.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++}},p5.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)h5(this,arguments[e]);return this.length},p5.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)g5(this,arguments[e]);return this.length},p5.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}},p5.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}},p5.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},p5.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},p5.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},p5.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},p5.prototype.map=function(e,t){t=t||this;for(var n=new p5,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},p5.prototype.mapReverse=function(e,t){t=t||this;for(var n=new p5,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},p5.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},p5.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},p5.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},p5.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},p5.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new p5;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},p5.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new p5;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},p5.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=f5(this,o,n[r]);return a},p5.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{(c5?l5:(c5=1,l5=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(p5)}catch(qre){}const b5=d5,v5=Symbol("max"),y5=Symbol("length"),w5=Symbol("lengthCalculator"),x5=Symbol("allowStale"),k5=Symbol("maxAge"),S5=Symbol("dispose"),C5=Symbol("noDisposeOnSet"),E5=Symbol("lruList"),D5=Symbol("cache"),O5=Symbol("updateAgeOnGet"),_5=()=>1;const $5=(e,t,n)=>{const r=e[D5].get(t);if(r){const t=r.value;if(j5(e,t)){if(P5(e,r),!e[x5])return}else n&&(e[O5]&&(r.value.now=Date.now()),e[E5].unshiftNode(r));return t.value}},j5=(e,t)=>{if(!t||!t.maxAge&&!e[k5])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[k5]&&n>e[k5]},N5=e=>{if(e[y5]>e[v5])for(let t=e[E5].tail;e[y5]>e[v5]&&null!==t;){const n=t.prev;P5(e,t),t=n}},P5=(e,t)=>{if(t){const n=t.value;e[S5]&&e[S5](n.key,n.value),e[y5]-=n.length,e[D5].delete(n.key),e[E5].removeNode(t)}};class I5{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const T5=(e,t,n,r)=>{let o=n.value;j5(e,o)&&(P5(e,n),e[x5]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var F5,R5,A5,M5,L5=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[v5]=e.max||1/0;const t=e.length||_5;if(this[w5]="function"!=typeof t?_5:t,this[x5]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[k5]=e.maxAge||0,this[S5]=e.dispose,this[C5]=e.noDisposeOnSet||!1,this[O5]=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[v5]=e||1/0,N5(this)}get max(){return this[v5]}set allowStale(e){this[x5]=!!e}get allowStale(){return this[x5]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[k5]=e,N5(this)}get maxAge(){return this[k5]}set lengthCalculator(e){"function"!=typeof e&&(e=_5),e!==this[w5]&&(this[w5]=e,this[y5]=0,this[E5].forEach((e=>{e.length=this[w5](e.value,e.key),this[y5]+=e.length}))),N5(this)}get lengthCalculator(){return this[w5]}get length(){return this[y5]}get itemCount(){return this[E5].length}rforEach(e,t){t=t||this;for(let n=this[E5].tail;null!==n;){const r=n.prev;T5(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[E5].head;null!==n;){const r=n.next;T5(this,e,n,t),n=r}}keys(){return this[E5].toArray().map((e=>e.key))}values(){return this[E5].toArray().map((e=>e.value))}reset(){this[S5]&&this[E5]&&this[E5].length&&this[E5].forEach((e=>this[S5](e.key,e.value))),this[D5]=new Map,this[E5]=new b5,this[y5]=0}dump(){return this[E5].map((e=>!j5(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[E5]}set(e,t,n){if((n=n||this[k5])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[w5](t,e);if(this[D5].has(e)){if(o>this[v5])return P5(this,this[D5].get(e)),!1;const a=this[D5].get(e).value;return this[S5]&&(this[C5]||this[S5](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[y5]+=o-a.length,a.length=o,this.get(e),N5(this),!0}const a=new I5(e,t,o,r,n);return a.length>this[v5]?(this[S5]&&this[S5](e,t),!1):(this[y5]+=a.length,this[E5].unshift(a),this[D5].set(e,this[E5].head),N5(this),!0)}has(e){if(!this[D5].has(e))return!1;const t=this[D5].get(e).value;return!j5(this,t)}get(e){return $5(this,e,!0)}peek(e){return $5(this,e,!1)}pop(){const e=this[E5].tail;return e?(P5(this,e),e.value):null}del(e){P5(this,this[D5].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[D5].forEach(((e,t)=>$5(this,t,!1)))}};function B5(){if(R5)return F5;R5=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=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&h(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,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(f(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(qre){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}F5=e;const t=new L5({max:1e3}),n=Q1,r=z5(),o=q1,a=l2,{safeRe:i,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:u}=X1,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=V1,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},m=(e,t)=>(o("comp",e,t),e=w(e,t),o("caret",e),e=v(e,t),o("tildes",e),e=k(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?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}))},k=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const n=t.loose?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),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(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,p,f)=>`${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`:p?`<=${c}.${u}.${d}-${p}`: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 F5}function z5(){if(M5)return A5;M5=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(qre){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(">")))))))}}A5=t;const n=Q1,{safeRe:r,t:o}=X1,a=r5,i=q1,s=l2,l=B5();return A5}const H5=B5();var W5=(e,t,n)=>{try{t=new H5(t,n)}catch(qre){return!1}return t.test(e)};const U5=B5();var G5=(e,t)=>new U5(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const V5=l2,q5=B5();var X5=(e,t,n)=>{let r=null,o=null,a=null;try{a=new q5(t,n)}catch(qre){return null}return e.forEach((e=>{a.test(e)&&(r&&-1!==o.compare(e)||(r=e,o=new V5(r,n)))})),r};const K5=l2,Y5=B5();var Q5=(e,t,n)=>{let r=null,o=null,a=null;try{a=new Y5(t,n)}catch(qre){return null}return e.forEach((e=>{a.test(e)&&(r&&1!==o.compare(e)||(r=e,o=new K5(r,n)))})),r};const J5=l2,Z5=B5(),e4=B2;var t4=(e,t)=>{e=new Z5(e,t);let n=new J5("0.0.0");if(e.test(n))return n;if(n=new J5("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 J5(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!e4(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!e4(n,o)||(n=o)}return n&&e.test(n)?n:null};const n4=B5();var r4=(e,t)=>{try{return new n4(e,t).range||"*"}catch(qre){return null}};const o4=l2,a4=z5(),{ANY:i4}=a4,s4=B5(),l4=W5,c4=B2,u4=H2,d4=Y2,p4=X2;var f4=(e,t,n,r)=>{let o,a,i,s,l;switch(e=new o4(e,r),t=new s4(t,r),n){case">":o=c4,a=d4,i=u4,s=">",l=">=";break;case"<":o=u4,a=p4,i=c4,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l4(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===i4&&(e=new a4(">=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 h4=f4;var g4=(e,t,n)=>h4(e,t,">",n);const m4=f4;var b4=(e,t,n)=>m4(e,t,"<",n);const v4=B5();var y4=(e,t,n)=>(e=new v4(e,n),t=new v4(t,n),e.intersects(t,n));const w4=W5,x4=_2;const k4=B5(),S4=z5(),{ANY:C4}=S4,E4=W5,D4=_2,O4=[new S4(">=0.0.0-0")],_4=[new S4(">=0.0.0")],$4=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===C4){if(1===t.length&&t[0].semver===C4)return!0;e=n.includePrerelease?O4:_4}if(1===t.length&&t[0].semver===C4){if(n.includePrerelease)return!0;t=_4}const r=new Set;let o,a,i,s,l,c,u;for(const f of e)">"===f.operator||">="===f.operator?o=j4(o,f,n):"<"===f.operator||"<="===f.operator?a=N4(a,f,n):r.add(f.semver);if(r.size>1)return null;if(o&&a){if(i=D4(o.semver,a.semver,n),i>0)return null;if(0===i&&(">="!==o.operator||"<="!==a.operator))return null}for(const f of r){if(o&&!E4(f,String(o),n))return null;if(a&&!E4(f,String(a),n))return null;for(const e of t)if(!E4(f,String(e),n))return!1;return!0}let d=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver,p=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver;d&&1===d.prerelease.length&&"<"===a.operator&&0===d.prerelease[0]&&(d=!1);for(const f of t){if(u=u||">"===f.operator||">="===f.operator,c=c||"<"===f.operator||"<="===f.operator,o)if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),">"===f.operator||">="===f.operator){if(s=j4(o,f,n),s===f&&s!==o)return!1}else if(">="===o.operator&&!E4(o.semver,String(f),n))return!1;if(a)if(d&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===d.major&&f.semver.minor===d.minor&&f.semver.patch===d.patch&&(d=!1),"<"===f.operator||"<="===f.operator){if(l=N4(a,f,n),l===f&&l!==a)return!1}else if("<="===a.operator&&!E4(a.semver,String(f),n))return!1;if(!f.operator&&(a||o)&&0!==i)return!1}return!(o&&c&&!a&&0!==i)&&(!(a&&u&&!o&&0!==i)&&(!p&&!d))},j4=(e,t,n)=>{if(!e)return t;const r=D4(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},N4=(e,t,n)=>{if(!e)return t;const r=D4(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var P4=(e,t,n={})=>{if(e===t)return!0;e=new k4(e,n),t=new k4(t,n);let r=!1;e:for(const o of e.set){for(const e of t.set){const t=$4(o,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const I4=X1,T4=V1,F4=l2,R4=e2,A4=(e,t,n)=>{const r=[];let o=null,a=null;const i=e.sort(((e,t)=>x4(e,t,n)));for(const u of i){w4(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 M4=n({parse:u2,valid:p2,clean:h2,inc:m2,diff:v2,major:w2,minor:k2,patch:C2,prerelease:D2,compare:_2,rcompare:j2,compareLoose:P2,compareBuild:T2,sort:R2,rsort:M2,gt:B2,lt:H2,eq:U2,neq:V2,gte:X2,lte:Y2,cmp:r5,coerce:u5,Comparator:z5(),Range:B5(),satisfies:W5,toComparators:G5,maxSatisfying:X5,minSatisfying:Q5,minVersion:t4,validRange:r4,outside:f4,gtr:g4,ltr:b4,intersects:y4,simplifyRange:A4,subset:P4,SemVer:F4,re:I4.re,src:I4.src,tokens:I4.t,SEMVER_SPEC_VERSION:T4.SEMVER_SPEC_VERSION,RELEASE_TYPES:T4.RELEASE_TYPES,compareIdentifiers:R4.compareIdentifiers,rcompareIdentifiers:R4.rcompareIdentifiers}),L4=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},B4=e=>e?L4(e):L4;var z4={exports:{}},H4={},W4=z,U4=RY;var G4="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},V4=U4.useSyncExternalStore,q4=W4.useRef,X4=W4.useEffect,K4=W4.useMemo,Y4=W4.useDebugValue;H4.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var a=q4(null);if(null===a.current){var i={hasValue:!1,value:null};a.current=i}else i=a.current;a=K4((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,G4(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=V4(e,a[0],a[1]);return X4((function(){i.hasValue=!0,i.value=s}),[s]),Y4(s),s},z4.exports=H4;const Q4=n(z4.exports),{useDebugValue:J4}=H,{useSyncExternalStoreWithSelector:Z4}=Q4;const e3=e=>{const t="function"==typeof e?B4(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=Z4(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return J4(r),r}(t,e,n);return Object.assign(n,t),n},t3=new Map,n3=e=>{const t=t3.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},r3=(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(Fte){}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=t3.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return t3.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let p=!0;o.setState=(e,t,a)=>{const c=n(e,t);if(!p)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}`},{...n3(l.name),[s]:o.getState()}),c)};const f=(...e)=>{const t=p;p=!1,n(...e),p=t},h=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(h):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?h:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){const e=o.dispatch;o.dispatch=(...t)=>{e(...t)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):o3(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void f(e.state);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)&&f(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return f(h),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(n3(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(n3(l.name));case"ROLLBACK":return o3(e.state,(e=>{if(void 0===s)return f(e),void(null==u||u.init(o.getState()));f(e[s]),null==u||u.init(n3(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return o3(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&f(e[s]):f(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return f(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return p=!p}return}})),h},o3=(e,t)=>{let n;try{n=JSON.parse(e)}catch(Fte){console.error("[zustand devtools middleware] Could not parse the received json",Fte)}void 0!==n&&t(n)},a3="3.0.10",i3=[{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"}],s3=async e=>{await fetch("/lobe/config",{body:JSON.stringify(e),headers:{"Content-Type":"application/json"},method:"POST"})},l3={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},c3={currentTab:"tab_txt2img",latestVersion:a3,loading:!0,localeOptions:i3,setting:l3,themeMode:"dark",version:a3},u3="SD-LOBE-SETTING",d3=(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/${U1.replace("https://github.com/","")}/releases/latest`),t=await e.json();return t&&t.tag_name&&M4.clean(t.tag_name)||a3})();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:i3})();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(u3);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=l3);const r={...l3,...t};await s3(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:a3})();e((()=>({version:t})),!1,"onLoadVersion")},onSetSetting:async n=>{const r={...t().setting,...n};localStorage.setItem(u3,JSON.stringify(r)),await s3(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")}}),p3=e=>({...l3,...e.setting}),f3=e=>e.currentTab,h3=e=>e.themeMode,g3=(m3?e3(m3):e3)(r3(((...e)=>({...c3,...d3(...e)}))));var m3;const b3=z.memo((e=>{const{version:t,latestVersion:n}=g3((e=>({latestVersion:e.latestVersion,version:e.version})),Fp),r=M4.gte(t,n);return Q.jsx("a",{href:U1,rel:"noreferrer",target:"_blank",children:r?Q.jsxs(wz,{color:"success",...e,children:["v",t]}):Q.jsxs(wz,{color:"warning",...e,children:["v",t," / latest v",n]})})})),v3=U1.replace("https://github.com/",""),y3=z.memo((({open:e,onCancel:t})=>{const n=g3(p3,aJ),r=kH(),{t:o}=W1();return Q.jsx(HY,{footer:!1,onCancel:t,open:e,title:Q.jsxs(dY,{align:"center",gap:4,horizontal:!0,children:[Q.jsx("a",{href:"https://discord.gg/AYFPHvv2jT",rel:"noreferrer",target:"_blank",children:Q.jsx(VH,{icon:NZ,title:"Discord"})}),Q.jsx("a",{href:U1,rel:"noreferrer",target:"_blank",children:Q.jsx(VH,{icon:Yp,title:v3})}),Q.jsxs(qM,{children:[o("themeFeedback"),Q.jsx(b3,{})]})]}),children:Q.jsxs(dY,{gap:32,children:[Q.jsxs(nY,{gap:16,horizontal:!0,style:{background:r.colorBgLayout,border:`1px solid ${r.colorBorderSecondary}`,borderRadius:r.borderRadiusLG,padding:"16px 0"},children:[Q.jsx(DE,{icon:Q.jsx(OH,{icon:NZ}),size:"large",children:"Join Discover"}),Q.jsx(yZ,{icon:Q.jsx(OH,{icon:Yp}),children:"LobeTheme Github"})]}),Q.jsx(pZ,{lang:n.i18n,mapping:"number",repo:v3,repoId:"R_kgDOJCPcNg",term:"53"})]})})})),w3=y3,x3=z.memo((()=>{const{t:e}=W1();return Q.jsx(dY,{height:"100vh",width:"100%",children:Q.jsxs(nY,{flex:1,gap:12,width:"100%",children:[Q.jsx(g0,{extra:"SD",size:48,type:"combine"}),Q.jsxs(nY,{gap:16,horizontal:!0,children:[Q.jsx(OH,{icon:Zp,spin:!0}),e("appInitializing")]})]})})})),k3=x3,S3=z.memo((({size:e=32,style:t,logoCustomUrl:n,logoCustomTitle:r})=>{let o=Q.jsx(g0,{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=SU(n);r&&(o=Q.jsx(OU,{emoji:r,size:e,style:t}))}return Q.jsxs(qM,{align:"center",size:.3*e,children:[o,Q.jsx("b",{style:{fontSize:.6*e,whiteSpace:"nowrap"},children:r})]})})),C3=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}}))),E3=z.memo((({size:e=32,style:t})=>{const n=g3(p3,aJ),r=g3(h3,Fp);return"kitchen"===n.logoType?Q.jsx(C3,{size:.75*e,style:t,themeMode:r}):"custom"===n.logoType?Q.jsx(S3,{logoCustomTitle:n.logoCustomTitle,logoCustomUrl:n.logoCustomUrl,size:e,style:t}):Q.jsx(g0,{extra:"SD",size:e,style:t,type:"combine"})})),D3=gH((({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 O3={};const _3=z.createContext({dragDropManager:void 0});function $3(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 j3="function"==typeof Symbol&&Symbol.observable||"@@observable",N3=function(){return Math.random().toString(36).substring(7).split("").join(".")},P3={INIT:"@@redux/INIT"+N3(),REPLACE:"@@redux/REPLACE"+N3(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+N3()}};function I3(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error($3(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error($3(1));return n(I3)(e,t)}if("function"!=typeof e)throw new Error($3(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($3(3));return a}function d(e){if("function"!=typeof e)throw new Error($3(4));if(l)throw new Error($3(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error($3(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),i=null}}}function p(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($3(7));if(void 0===e.type)throw new Error($3(8));if(l)throw new Error($3(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 p({type:P3.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error($3(10));o=e,p({type:P3.REPLACE})}})[j3]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error($3(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[j3]=function(){return this},e},r}function T3(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 F3(e){return"object"==typeof e}const R3="dnd-core/INIT_COORDS",A3="dnd-core/BEGIN_DRAG",M3="dnd-core/PUBLISH_DRAG_SOURCE",L3="dnd-core/HOVER",B3="dnd-core/DROP",z3="dnd-core/END_DRAG";function H3(e,t){return{type:R3,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const W3={type:R3,payload:{clientOffset:null,sourceClientOffset:null}};function U3(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:a}=n,i=e.getMonitor(),s=e.getRegistry();e.dispatch(H3(o)),function(e,t,n){T3(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){T3(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(W3);let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){T3("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),c=a(l)}e.dispatch(H3(o,c));const u=s.getSource(l).beginDrag(i,l);if(null==u)return;!function(e){T3(F3(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:A3,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function G3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V3(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){G3(e,t,n[t])}))}return e}function q3(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){T3(e.isDragging(),"Cannot call drop while not dragging."),T3(!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){T3(void 0===e||F3(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:B3,payload:{dropResult:V3({},t,i)}};e.dispatch(s)}))}}function X3(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){T3(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:z3}}}function K3(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function Y3(e){return function(t,{clientOffset:n}={}){!function(e){T3(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];K3(t.getTargetType(o),n)||e.splice(r,1)}}(r,a,o.getItemType()),function(e,t,n){T3(t.isDragging(),"Cannot call hover while not dragging."),T3(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];T3(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");T3(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:L3,payload:{targetIds:r,clientOffset:n||null}}}}function Q3(e){return function(){if(e.getMonitor().isDragging())return{type:M3}}}class J3{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:U3(e),publishDragSource:Q3(e),hover:Y3(e),drop:q3(e),endDrag:X3(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 Z3(e,t){return{x:e.x-t.x,y:e.y-t.y}}const e6=[],t6=[];e6.__IS_NONE__=!0,t6.__IS_ALL__=!0;class n6{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;T3("function"==typeof e,"listener must be a function."),T3(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!==e6&&(e===t6||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){T3("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 T3(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(T3(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return K3(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(T3(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&&!K3(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?Z3(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?Z3(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const r6="undefined"!=typeof global?global:self,o6=r6.MutationObserver||r6.WebKitMutationObserver;function a6(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const i6="function"==typeof o6?function(e){let t=1;const n=new o6(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:a6;class s6{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 l6=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=i6(this.flush),this.requestErrorThrow=a6((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},c6=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new s6(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(l6.registerPendingError);const u6="dnd-core/ADD_SOURCE",d6="dnd-core/ADD_TARGET",p6="dnd-core/REMOVE_SOURCE",f6="dnd-core/REMOVE_TARGET";function h6(e,t){t&&Array.isArray(e)?e.forEach((e=>h6(e,!1))):T3("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 g6,m6;(m6=g6||(g6={})).SOURCE="SOURCE",m6.TARGET="TARGET";let b6=0;function v6(e){const t=(b6++).toString();switch(e){case g6.SOURCE:return`S${t}`;case g6.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function y6(e){switch(e[0]){case"S":return g6.SOURCE;case"T":return g6.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function w6(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 x6{addSource(e,t){h6(e),function(e){T3("function"==typeof e.canDrag,"Expected canDrag to be a function."),T3("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),T3("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(g6.SOURCE,e,t);return this.store.dispatch(function(e){return{type:u6,payload:{sourceId:e}}}(n)),n}addTarget(e,t){h6(e,!0),function(e){T3("function"==typeof e.canDrop,"Expected canDrop to be a function."),T3("function"==typeof e.hover,"Expected hover to be a function."),T3("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(g6.TARGET,e,t);return this.store.dispatch(function(e){return{type:d6,payload:{targetId:e}}}(n)),n}containsHandler(e){return w6(this.dragSources,e)||w6(this.dropTargets,e)}getSource(e,t=!1){T3(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return T3(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return T3(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return T3(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return y6(e)===g6.SOURCE}isTargetId(e){return y6(e)===g6.TARGET}removeSource(e){var t;T3(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:p6,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},l6.enqueueTask(c6.create(t))}removeTarget(e){T3(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:f6,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);T3(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){T3(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=v6(e);return this.types.set(r,t),e===g6.SOURCE?this.dragSources.set(r,n):e===g6.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 k6=(e,t)=>e===t;function S6(e=e6,t){switch(t.type){case L3:break;case u6:case d6:case f6:case p6:return e6;default:return t6}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=k6){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 e6;const i=r[r.length-1],s=n[n.length-1];return i!==s&&(i&&o.push(i),s&&o.push(s)),o}function C6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const E6={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function D6(e=E6,t){const{payload:n}=t;switch(t.type){case R3:case A3:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case L3: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){C6(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case z3:case B3:return E6;default:return e}var r,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}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){O6(e,t,n[t])}))}return e}const $6={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function j6(e=$6,t){const{payload:n}=t;switch(t.type){case A3:return _6({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case M3:return _6({},e,{isSourcePublic:!0});case L3:return _6({},e,{targetIds:n.targetIds});case f6:return-1===e.targetIds.indexOf(n.targetId)?e:_6({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case B3:return _6({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case z3:return _6({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function N6(e=0,t){switch(t.type){case u6:case d6:return e+1;case p6:case f6:return e-1;default:return e}}function P6(e=0){return e+1}function I6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T6(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){I6(e,t,n[t])}))}return e}function F6(e={},t){return{dirtyHandlerIds:S6(e.dirtyHandlerIds,{type:t.type,payload:T6({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:D6(e.dragOffset,t),refCount:N6(e.refCount,t),dragOperation:j6(e.dragOperation,t),stateId:P6(e.stateId)};var n,r,o}function R6(e,t=void 0,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return I3(F6,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),a=new n6(o,new x6(o)),i=new J3(o,a),s=e(i,t,n);return i.receiveBackend(s),i}function A6(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 M6=0;const L6=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var B6=z.memo((function(e){var{children:t}=e,n=A6(e,["children"]);const[r,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=z6(),n,r){const o=t;o[L6]||(o[L6]={dragDropManager:R6(e,t,n,r)});return o[L6]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return z.useEffect((()=>{if(o){const e=z6();return++M6,()=>{0==--M6&&(e[L6]=null)}}}),[]),Q.jsx(_3.Provider,{value:r,children:t})}));function z6(){return"undefined"!=typeof global?global:window}const H6=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})),W6="undefined"!=typeof window?z.useLayoutEffect:z.useEffect;function U6(e,t,n){const[r,o]=z.useState((()=>t(e))),a=z.useCallback((()=>{const a=t(e);aJ(r,a)||(o(a),n&&n())}),[r,e,n]);return W6(a),[r,a]}function G6(e,t,n){return function(e,t,n){const[r,o]=U6(e,t,n);return W6((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function V6(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),z.useMemo((()=>"function"==typeof e?e():e),n)}function q6(e){return z.useMemo((()=>e.hooks.dragSource()),[e])}function X6(e){return z.useMemo((()=>e.hooks.dragPreview()),[e])}let K6=!1,Y6=!1;class Q6{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){T3(!K6,"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 K6=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{K6=!1}}isDragging(){if(!this.sourceId)return!1;T3(!Y6,"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 Y6=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Y6=!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 J6=!1;class Z6{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;T3(!J6,"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 J6=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{J6=!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 e8(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 t8(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function n8(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 T3("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=>{o8(n,e),o8(t,e)}}):z.cloneElement(e,{ref:t})}(r,n?t=>e(t,n):e)}}function r8(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=n8(r);t[n]=()=>e}})),t}function o8(e,t){"function"==typeof e?e(t):e.current=t}class a8{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!e8(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!e8(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=r8({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,t8(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,t8(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 i8{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!e8(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=r8({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,t8(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 s8(){const{dragDropManager:e}=z.useContext(_3);return T3(null!=e,"Expected drag drop context"),e}class l8{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 c8(e,t,n){const r=s8(),o=function(e,t,n){const r=z.useMemo((()=>new l8(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 T3(null!=t,"spec.type must be defined"),t}),[e])}(e);W6((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 u8(e){return z.useMemo((()=>e.hooks.dropTarget()),[e])}class d8{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 p8(e,t,n){const r=s8(),o=function(e,t){const n=z.useMemo((()=>new d8(e,t)),[t]);return z.useEffect((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return z.useMemo((()=>(T3(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);W6((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 f8=r(Object.freeze(Object.defineProperty({__proto__:null,DndContext:_3,DndProvider:B6,DragPreviewImage:H6,useDrag:function(e,t){const n=V6(e,t);T3(!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=s8();return z.useMemo((()=>new Q6(e)),[e])}(),o=function(e,t){const n=s8(),r=z.useMemo((()=>new a8(n.getBackend())),[n]);return W6((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),W6((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return c8(n,r,o),[G6(n.collect,r,o),q6(o),X6(o)]},useDragDropManager:s8,useDragLayer:function(e){const t=s8().getMonitor(),[n,r]=U6(t,e);return z.useEffect((()=>t.subscribeToOffsetChange(r))),z.useEffect((()=>t.subscribeToStateChange(r))),n},useDrop:function(e,t){const n=V6(e,t),r=function(){const e=s8();return z.useMemo((()=>new Z6(e)),[e])}(),o=function(e){const t=s8(),n=z.useMemo((()=>new i8(t.getBackend())),[t]);return W6((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return p8(n,r,o),[G6(n.collect,r,o),u8(o)]}},Symbol.toStringTag,{value:"Module"})));function h8(e){let t=null;return()=>(null==t&&(t=e()),t)}class g8{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 m8{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 b8="__NATIVE_FILE__",v8="__NATIVE_URL__",y8="__NATIVE_TEXT__",w8="__NATIVE_HTML__",x8=Object.freeze(Object.defineProperty({__proto__:null,FILE:b8,HTML:w8,TEXT:y8,URL:v8},Symbol.toStringTag,{value:"Module"}));function k8(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const S8={[b8]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[w8]:{exposeProperties:{html:(e,t)=>k8(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[v8]:{exposeProperties:{urls:(e,t)=>k8(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[y8]:{exposeProperties:{text:(e,t)=>k8(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function C8(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(S8).filter((e=>{const n=S8[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const E8=h8((()=>/firefox/i.test(navigator.userAgent))),D8=h8((()=>Boolean(window.safari)));class O8{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 p=0;p<n;p++)r.push(p);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],a=[];let i,s;for(let p=0;p<n-1;p++)i=e[p+1]-e[p],s=t[p+1]-t[p],o.push(i),a.push(s/i);const l=[a[0]];for(let p=0;p<o.length-1;p++){const e=a[p],t=a[p+1];if(e*t<=0)l.push(0);else{i=o[p];const n=o[p+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 p=0;p<l.length-1;p++){d=a[p];const e=l[p],t=1/o[p],n=e+l[p+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 $8(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 j8(e){return{x:e.clientX,y:e.clientY}}function N8(e,t,n,r,o){const a="IMG"===(i=t).nodeName&&(E8()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(i)));var i,s;const l=$8(a?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:p,anchorY:f}=r,{dragPreviewWidth:h,dragPreviewHeight:g}=function(e,t,n,r){let o=e?t.width:n,a=e?t.height:r;return D8()&&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 O8([0,.5,1],[c.x,c.x/u*h,c.x+h-u]).interpolate(p),y:v?b:(()=>{let e=new O8([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(f);return D8()&&a&&(e+=(window.devicePixelRatio-1)*g),e})()}}class P8{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 I8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T8(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){I8(e,t,n[t])}))}return e}class F8{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 T8({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return T8({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(x8).some((t=>x8[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=S8[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new m8(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&&$8(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=j8(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=C8(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=N8(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=C8(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:j8(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=j8(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)):C8(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:j8(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 P8(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new g8(this.isNodeInDocument)}}let R8;const A8=r(Object.freeze(Object.defineProperty({__proto__:null,HTML5Backend:function(e,t,n){return new F8(e,t,n)},NativeTypes:x8,getEmptyImage:function(){return R8||(R8=new Image,R8.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),R8}},Symbol.toStringTag,{value:"Module"})));var M8=function(){};var L8=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},B8=function(e){return e!=e},z8=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var H8=function(e,t,n){return t==t?z8(e,t,n):L8(e,B8,n)};var W8=function(e,t){return!!(null==e?0:e.length)&&H8(e,t,0)>-1};var U8=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},G8=rK,V8=M8,q8=G8&&1/Tq(new G8([,-0]))[1]==1/0?function(e){return new G8(e)}:V8,X8=_q,K8=W8,Y8=U8,Q8=$q,J8=q8,Z8=Tq;var e7=function(e,t,n){var r=-1,o=K8,a=e.length,i=!0,s=[],l=s;if(n)i=!1,o=Y8;else if(a>=200){var c=t?null:J8(e);if(c)return Z8(c);i=!1,o=Q8,l=new X8}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 p=l.length;p--;)if(l[p]===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 t7=function(e){return e&&e.length?e7(e):[]},n7={};Object.defineProperty(n7,"__esModule",{value:!0});var r7=a7(z),o7=a7(fd);function a7(e){return e&&e.__esModule?e:{default:e}}var i7=function(e){return r7.default.createElement("button",{className:e.classNames.clearAll,onClick:e.onClick},"Clear all")};i7.propTypes={classNames:o7.default.object,onClick:o7.default.func},n7.default=i7;var s7={};var l7=function(e){return function(t){return null==e?void 0:e[t]}},c7=l7({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var u7=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},d7=Uq,p7=MG,f7=SG?SG.prototype:void 0,h7=f7?f7.toString:void 0;var g7=function e(t){if("string"==typeof t)return t;if(d7(t))return u7(t,e)+"";if(p7(t))return h7?h7.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},m7=g7;var b7=function(e){return null==e?"":m7(e)},v7=c7,y7=b7,w7=/[&<>"']/g,x7=RegExp(w7.source);var k7=function(e){return(e=y7(e))&&x7.test(e)?e.replace(w7,v7):e};Object.defineProperty(s7,"__esModule",{value:!0});var S7=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}}(),C7=z,E7=$7(C7),D7=$7(fd),O7=$7(LK),_7=$7(k7);function $7(e){return e&&e.__esModule?e:{default:e}}function j7(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 N7=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=j7(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):E7.default.createElement("span",{dangerouslySetInnerHTML:r.markIt(e,t)})},j7(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,C7.Component),S7(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,O7.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 E7.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)?E7.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},E7.default.createElement("ul",null," ",n," ")):null}}]),t}();N7.propTypes={query:D7.default.string.isRequired,selectedIndex:D7.default.number.isRequired,suggestions:D7.default.array.isRequired,handleClick:D7.default.func.isRequired,handleHover:D7.default.func.isRequired,minQueryLength:D7.default.number,shouldRenderSuggestions:D7.default.func,isFocused:D7.default.bool.isRequired,classNames:D7.default.object,labelField:D7.default.string.isRequired,renderSuggestion:D7.default.func},N7.defaultProps={minQueryLength:2},s7.default=N7;var P7={},I7={},T7=b7,F7=/[\\^$.*+?()[\]{}|]/g,R7=RegExp(F7.source);var A7=function(e){return(e=T7(e))&&R7.test(e)?e.replace(F7,"\\$&"):e};Object.defineProperty(I7,"__esModule",{value:!0}),I7.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,L7.default)(t);return new RegExp("["+n+"]+")},I7.canDrag=function(e){var t=e.moveTag,n=e.readOnly,r=e.allowDragDrop;return void 0!==t&&!n&&r},I7.canDrop=function(e){var t=e.readOnly,n=e.allowDragDrop;return!t&&n};var M7,L7=(M7=A7)&&M7.__esModule?M7:{default:M7};var B7={},z7={};Object.defineProperty(z7,"__esModule",{value:!0}),z7.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},z7.DEFAULT_PLACEHOLDER="Press enter to add new tag",z7.DEFAULT_LABEL_FIELD="text",z7.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"},z7.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"},Object.defineProperty(B7,"__esModule",{value:!0});var H7=G7(z),W7=G7(fd),U7=z7;function G7(e){return e&&e.__esModule?e:{default:e}}var V7=String.fromCharCode(215),q7=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(U7.KEYS.ENTER.includes(e.keyCode)||e.keyCode===U7.KEYS.SPACE)return e.preventDefault(),void e.stopPropagation();e.keyCode===U7.KEYS.BACKSPACE&&r(e)};if(t)return H7.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 H7.default.createElement(c,{onRemove:r,onKeyDown:s,className:o,"aria-label":l,tag:a,index:i})}return H7.default.createElement("button",{onClick:r,onKeyDown:s,className:o,type:"button","aria-label":l},V7)};q7.propTypes={className:W7.default.string,onRemove:W7.default.func.isRequired,readOnly:W7.default.bool,removeComponent:W7.default.func,tag:W7.default.shape({id:W7.default.string.isRequired,className:W7.default.string,key:W7.default.string}),index:W7.default.number.isRequired},B7.default=q7,Object.defineProperty(P7,"__esModule",{value:!0});var X7=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")},K7=z,Y7=n9(K7),Q7=f8,J7=n9(fd),Z7=n9(Yb),e9=I7,t9=n9(B7);function n9(e){return e&&e.__esModule?e:{default:e}}var r9="tag",o9=function(e){var t=(0,K7.useRef)(null),n=e.readOnly,r=e.tag,o=e.classNames,a=e.index,i=(0,Q7.useDrag)((function(){return{type:r9,collect:function(e){return{isDragging:!!e.isDragging()}},item:e,canDrag:function(){return(0,e9.canDrag)(e)}}})),s=X7(i,2),l=s[0].isDragging,c=s[1],u=(0,Q7.useDrop)((function(){return{accept:r9,drop:function(t,n){var r=t.index,o=a;r!==o&&e.moveTag(r,o)},canDrop:function(e){return(0,e9.canDrop)(e)}}}));c((0,X7(u,2)[1])(t));var d=e.tag[e.labelField],p=r.className,f=void 0===p?"":p,h=l?0:1;return Y7.default.createElement("span",{ref:t,className:(0,Z7.default)("tag-wrapper",o.tag,f),style:{opacity:h,cursor:(0,e9.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onTouchStart:e.onTagClicked},d,Y7.default.createElement(t9.default,{tag:e.tag,className:o.remove,removeComponent:e.removeComponent,onRemove:e.onDelete,readOnly:n,index:a}))};o9.propTypes={labelField:J7.default.string,onDelete:J7.default.func.isRequired,tag:J7.default.shape({id:J7.default.string.isRequired,className:J7.default.string,key:J7.default.string}),moveTag:J7.default.func,removeComponent:J7.default.func,onTagClicked:J7.default.func,classNames:J7.default.object,readOnly:J7.default.bool,index:J7.default.number.isRequired},o9.defaultProps={labelField:"text",readOnly:!1},P7.default=o9,Object.defineProperty(O3,"__esModule",{value:!0}),O3.KEYS=O3.WithOutContext=O3.WithContext=void 0;var a9=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},i9=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}}(),s9=z,l9=x9(s9),c9=f8,u9=A8,d9=x9(LK),p9=x9(M8),f9=x9(t7),h9=x9(n7),g9=x9(s7),m9=x9(fd),b9=x9(Yb),v9=x9(P7),y9=I7,w9=z7;function x9(e){return e&&e.__esModule?e:{default:e}}function k9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S9=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));C9.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,s9.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,s9.Component),i9(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,d9.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===w9.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===w9.KEYS.TAB&&""===n||e.preventDefault();var i=a&&-1!==r?o[r]:k9({id:n},this.props.labelField,n);""!==i&&this.addTag(i)}e.keyCode===w9.KEYS.BACKSPACE&&""===n&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===w9.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:r<=0?o.length-1:r-1,selectionMode:!0})),e.keyCode===w9.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,y9.buildRegExpFromDelimiters)(this.props.delimiters),c=s.split(l);(0,f9.default)(c).forEach((function(e){return t.addTag(k9({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=a9({},w9.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,p=i.inputFieldPosition,f=i.inputValue,h=i.inputProps,g=i.clearAll,m=i.tags,b=d?p:w9.INPUT_FIELD_POSITIONS.BOTTOM,v=this.props.readOnly?null:l9.default.createElement("div",{className:n.tagInput},l9.default.createElement("input",a9({},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:f,"data-automation":"input","data-testid":"input"})),l9.default.createElement(g9.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&&l9.default.createElement(h9.default,{classNames:n,onClick:this.clearAll}));return l9.default.createElement("div",{className:(0,b9.default)(n.tags,"react-tags-wrapper"),ref:this.reactTagsRef},l9.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===w9.INPUT_FIELD_POSITIONS.TOP&&v,l9.default.createElement("div",{className:n.selected},t,b===w9.INPUT_FIELD_POSITIONS.INLINE&&v),b===w9.INPUT_FIELD_POSITIONS.BOTTOM&&v)}}]),t}();S9.propTypes={placeholder:m9.default.string,labelField:m9.default.string,suggestions:m9.default.arrayOf(m9.default.shape({id:m9.default.string.isRequired})),delimiters:m9.default.arrayOf(m9.default.number),autofocus:m9.default.bool,inline:m9.default.bool,inputFieldPosition:m9.default.oneOf([w9.INPUT_FIELD_POSITIONS.INLINE,w9.INPUT_FIELD_POSITIONS.TOP,w9.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:m9.default.func,handleAddition:m9.default.func,onTagUpdate:m9.default.func,handleDrag:m9.default.func,handleFilterSuggestions:m9.default.func,handleTagClick:m9.default.func,allowDeleteFromEmptyInput:m9.default.bool,allowAdditionFromPaste:m9.default.bool,allowDragDrop:m9.default.bool,handleInputChange:m9.default.func,handleInputFocus:m9.default.func,handleInputBlur:m9.default.func,minQueryLength:m9.default.number,shouldRenderSuggestions:m9.default.func,removeComponent:m9.default.func,autocomplete:m9.default.oneOfType([m9.default.bool,m9.default.number]),readOnly:m9.default.bool,classNames:m9.default.object,name:m9.default.string,id:m9.default.string,maxLength:m9.default.number,inputValue:m9.default.string,tags:m9.default.arrayOf(m9.default.shape({id:m9.default.string.isRequired,className:m9.default.string})),allowUnique:m9.default.bool,renderSuggestion:m9.default.func,inputProps:m9.default.object,editable:m9.default.bool,clearAll:m9.default.bool,onClearAll:m9.default.func},S9.defaultProps={placeholder:w9.DEFAULT_PLACEHOLDER,labelField:w9.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)}(w9.KEYS.ENTER),[w9.KEYS.TAB]),autofocus:!0,inline:!0,inputFieldPosition:w9.INPUT_FIELD_POSITIONS.INLINE,handleDelete:p9.default,handleAddition:p9.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[],inputProps:{},onTagUpdate:p9.default,editable:!1,clearAll:!1,handleClearAll:p9.default};var C9=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=a9({},w9.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 l9.default.createElement(l9.default.Fragment,{key:n},c===n?l9.default.createElement("div",{className:s.editTagInput},l9.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"})):l9.default.createElement(v9.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}))}))}},E9=O3.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 l9.default.createElement(c9.DndProvider,{backend:u9.HTML5Backend},l9.default.createElement(S9,t))};O3.WithOutContext=S9,O3.KEYS=w9.KEYS;const D9={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=D9.createButton(`${e}_formatconvert`,"🪄",(()=>D9.onClickConvert(e)));t.append(r)},convert(e){const t=/\{|\[|\}|\]|[^{}[\]]+/gmu;let n=D9.convertStr(e);const r=D9.convertStr2Array(n);n=D9.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]=D9.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 D9.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=D9.convert(t.value);t.value=null===n.match(/^masterpiece, best quality,/)?""+n:n,D9.dispatchInputEvent(t);const r=gradioApp().querySelector(`#${e}_neg_prompt > label > textarea`),o=D9.convert(r.value);r.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,D9.dispatchInputEvent(r)},round:e=>Math.round(1e4*e)/1e4},O9=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=gH((({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};
}
}
`)),$9=E9,j9=[188,13],N9=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,O9(n)];t(o),r(o)}),[e]),u=z.useCallback(((n,o,a)=>{const i=[...e];i.splice(o,1),i.splice(a,0,O9(n)),t(i),r(i)}),[e]),d=z.useCallback(((n,o)=>{const a=[...e];a[n]=O9(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($9,{delimiters:j9,editable:!0,handleAddition:c,handleDelete:l,handleDrag:u,id:o,inline:!0,inputFieldPosition:"bottom",onTagUpdate:d,tags:e})})})),P9=z.memo((({type:e})=>{const[t,n]=z.useState([]),{styles:r}=D3(),{t:o}=W1(),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=D9.convertStr(e);return D9.convertStr2Array(t).map((e=>{if(e.includes("<"))return e;const t=e.replaceAll(/\s+/g," ").replaceAll(/|\.\|。/g,",").replaceAll(/“||”|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return D9.convertStr2Array(t).join(", ")})).map((e=>O9({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(N9,{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:"➡️"})]})]})})),I9=P9,T9=z.memo((()=>{const{styles:e}=D3(),{t:t}=W1();return Q.jsxs("div",{className:e.view,children:[Q.jsx("span",{style:{marginBottom:-10},children:t("positive")}),Q.jsx(I9,{type:"positive"}),Q.jsx("span",{style:{marginBottom:-10},children:t("negative")}),Q.jsx(I9,{type:"negative"})]})})),F9=T9,R9={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"}},A9={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%)"}},M9={kitchen:R9.dark.colorPrimary,..._0},L9=[M9.kitchen,...$0],B9={kitchen:A9.dark.colorNeutral,...j0},z9=[B9.kitchen,...N0],H9=(e,t)=>{if(!t)return"";let n="primary"===e?M9:B9,r=Object.entries(n).find((e=>e[1]===t));return null==r?void 0:r[0]},W9=gH((({css:e,responsive:t})=>e`
${t.mobile} {
.ant-row.ant-form-item-row {
flex-direction: column !important;
}
}
`)),U9=z.memo((()=>{const e=g3(p3,aJ),{onSetSetting:t,localeOptions:n}=g3((e=>({localeOptions:e.localeOptions,onSetSetting:e.onSetSetting})),Fp),[r,o]=z.useState(e),[a,i]=z.useState(e.primaryColor||void 0),[s,l]=z.useState(e.neutralColor||void 0),{styles:c}=W9(),{t:u}=W1(),d=z.useCallback((()=>{t(l3),location.reload()}),[]),p=z.useCallback((e=>{t({...e,neutralColor:s,primaryColor:a}),location.reload()}),[a,s]),f=z.useMemo((()=>({children:[{children:Q.jsx(iP,{options:n}),desc:u("settingLanguageDesc"),label:u("settingLanguage"),name:"i18n"},{children:Q.jsx(iz,{}),desc:u("settingReduceAnimationDesc"),label:u("settingReduceAnimation"),name:"liteAnimation",valuePropName:"checked"},{children:Q.jsx(B0,{activeColor:a?M9[a]:void 0,colors:L9,onSelect:e=>i(H9("primary",e))}),desc:u("settingPrimaryColorDesc"),label:u("settingPrimaryColor")},{children:Q.jsx(B0,{activeColor:s?B9[s]:void 0,colors:z9,onSelect:e=>l(H9("neutral",e))}),desc:u("settingNeutralColorDesc"),label:u("settingNeutralColor")},{children:Q.jsx(CB,{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(SM,{}),desc:u("settingCustomLogoDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomLogo"),name:"logoCustomUrl"},{children:Q.jsx(SM,{}),desc:u("settingCustomTitleDesc"),divider:!1,hidden:"custom"!==r.logoType,label:u("settingCustomTitle"),name:"logoCustomTitle"},{children:Q.jsx(S3,{logoCustomTitle:r.logoCustomTitle,logoCustomUrl:r.logoCustomUrl}),divider:!1,hidden:"custom"!==r.logoType,label:u("settingLogoPreview")},{children:Q.jsx(iz,{}),desc:u("settingSvgIconsDesc"),label:u("settingSvgIcons"),name:"svgIcon",valuePropName:"checked"},{children:Q.jsx(iz,{}),desc:u("settingCustomFontDesc"),label:u("settingCustomFont"),name:"enableWebFont",valuePropName:"checked"}],icon:nf,title:u("settingGroupTheme")})),[a,s,r.logoType,r.logoCustomTitle,r.logoCustomUrl]),h=z.useMemo((()=>({children:[{children:Q.jsx(CB,{options:[{label:u("scroll"),value:"scroll"},{label:u("resizable"),value:"resizable"}]}),desc:u("settingPromptDisplayModeDesc"),label:u("settingPromptDisplayMode"),name:"promptTextareaType"},{children:Q.jsx(iz,{}),desc:u("settingPromptHighlightDesc"),label:u("settingPromptHighlight"),name:"enableHighlight",valuePropName:"checked"},{children:Q.jsx(iz,{}),desc:u("settingPromptEditorDesc"),label:u("settingPromptEditor"),name:"promptEditor",valuePropName:"checked"}],icon:df,title:u("settingGroupPromptTextarea")})),[]),g=z.useMemo((()=>({children:[{children:Q.jsx(iz,{}),desc:u("settingSplitPreviewerDesc"),label:u("settingSplitPreviewer"),name:"layoutSplitPreview",valuePropName:"checked"},{children:Q.jsx(iz,{}),desc:u("settingHideFooterDesc"),label:u("settingHideFooter"),name:"layoutHideFooter",valuePropName:"checked"}],icon:Jp,title:u("settingGroupLayout")})),[]),m=z.useMemo((()=>({children:[{children:Q.jsx(iz,{}),desc:u("settingQuickSettingSidebarEnableDesc"),label:u("settingQuickSettingSidebarEnable"),name:"enableSidebar",valuePropName:"checked"},{children:Q.jsx(iz,{}),desc:u("settingQuickSettingSidebarDefaultExpandDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultExpand"),name:"sidebarExpand",valuePropName:"checked"},{children:Q.jsx(CB,{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(VA,{}),desc:u("settingQuickSettingSidebarDefaultWidthDesc"),hidden:!r.enableSidebar,label:u("settingQuickSettingSidebarDefaultWidth"),name:"sidebarWidth"}],icon:rf,title:u("settingGroupQuickSettingSidebar")})),[r.enableSidebar]),b=z.useMemo((()=>({children:[{children:Q.jsx(iz,{}),desc:u("settingExtraNetworkSidebarEnableDesc"),label:u("settingExtraNetworkSidebarEnable"),name:"enableExtraNetworkSidebar",valuePropName:"checked"},{children:Q.jsx(CB,{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(iz,{}),desc:u("settingExtraNetworkSidebarDefaultExpandDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultExpand"),name:"extraNetworkSidebarExpand",valuePropName:"checked"},{children:Q.jsx(VA,{}),desc:u("settingExtraNetworkSidebarDefaultWidthDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultWidth"),name:"extraNetworkSidebarWidth"},{children:Q.jsx(VA,{}),desc:u("settingExtraNetworkSidebarDefaultCardSizeDesc"),hidden:!r.enableExtraNetworkSidebar,label:u("settingExtraNetworkSidebarDefaultCardSize"),name:"extraNetworkCardSize"}],icon:af,title:u("settingGroupExtraNetworkSidebar")})),[r.enableExtraNetworkSidebar]);return Q.jsx(ZJ,{className:c,footer:Q.jsxs(Q.Fragment,{children:[Q.jsx(DE,{htmlType:"button",onClick:d,style:{borderRadius:4},children:u("settingButtonReset")}),Q.jsx(DE,{htmlType:"submit",style:{borderRadius:4},type:"primary",children:u("settingButtonSubmit")})]}),initialValues:e,items:[f,h,g,m,b],onFinish:p,onValuesChange:(e,t)=>o(t)})})),G9=U9,V9=z.memo((({open:e,onCancel:t})=>{const{t:n}=W1();return Q.jsx(HY,{footer:!1,onCancel:t,open:e,title:Q.jsxs(dY,{align:"center",gap:4,horizontal:!0,children:[Q.jsx("a",{href:U1,rel:"noreferrer",target:"_blank",children:Q.jsx(VH,{icon:Hp,title:"Setting Documents"})}),Q.jsxs(qM,{children:[n("themeSetting"),Q.jsx(b3,{})]})]}),children:Q.jsx(G9,{})})})),q9=V9,X9="%[a-f0-9]{2}",K9=new RegExp("("+X9+")|([^%]+?)","gi"),Y9=new RegExp("("+X9+")+","gi");function Q9(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([],Q9(n),Q9(r))}function J9(e){try{return decodeURIComponent(e)}catch{let t=e.match(K9)||[];for(let n=1;n<t.length;n++)t=(e=Q9(t,n).join("")).match(K9)||[];return e}}function Z9(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=Y9.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=J9(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Y9.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 eee(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 tee(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 nee=e=>null==e,ree=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),oee=Symbol("encodeFragmentIdentifier");function aee(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function iee(e,t){return t.encode?t.strict?ree(e):encodeURIComponent(e):e}function see(e,t){return t.decode?Z9(e):e}function lee(e){return Array.isArray(e)?e.sort():"object"==typeof e?lee(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function cee(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function uee(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 dee(e){const t=(e=cee(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function pee(e,t){aee((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&&see(n,e).includes(e.arrayFormatSeparator);n=a?see(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>see(t,e))):null===n?n:see(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?see(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>see(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]=eee(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:see(i,t),n(see(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]=uee(n,t);else r[o]=uee(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]=lee(n):e[t]=n,e}),Object.create(null))}function fee(e,t){if(!e)return"";aee((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&nee(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,[iee(t,e),"[",o,"]"].join("")]:[...n,[iee(t,e),"[",iee(o,e),"]=",iee(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[iee(t,e),"[]"].join("")]:[...n,[iee(t,e),"[]=",iee(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,[iee(t,e),":list="].join("")]:[...n,[iee(t,e),":list=",iee(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?[[iee(n,e),t,iee(o,e)].join("")]:[[r,iee(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,iee(t,e)]:[...n,[iee(t,e),"=",iee(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?iee(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?iee(n,t)+"[]":o.reduce(r(n),[]).join("&"):iee(n,t)+"="+iee(o,t)})).filter((e=>e.length>0)).join("&")}function hee(e,t){var n;t={decode:!0,...t};let[r,o]=eee(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:pee(dee(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:see(o,t)}:{}}}function gee(e,t){t={encode:!0,strict:!0,[oee]:!0,...t};const n=cee(e.url).split("?")[0]||"";let r=fee({...pee(dee(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[oee]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function mee(e,t,n){n={parseFragmentIdentifier:!0,[oee]:!1,...n};const{url:r,query:o,fragmentIdentifier:a}=hee(e,n);return gee({url:r,query:tee(o,t),fragmentIdentifier:a},n)}const bee=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(e,t,n){return mee(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:dee,parse:pee,parseUrl:hee,pick:mee,stringify:fee,stringifyUrl:gee},Symbol.toStringTag,{value:"Module"})),vee=()=>{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},yee=z.memo((({children:e})=>{const{onSetThemeMode:t,themeMode:n}=g3((e=>({onInit:e.onInit,onSetThemeMode:e.onSetThemeMode,themeMode:e.themeMode})),Fp),r=g3(p3,aJ),o=vee();z.useEffect((()=>{const e=String(bee.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=R9[n];else{const t=AY[r.primaryColor];e=E0({appearance:n,scale:t,type:"Primary"})}if(r.neutralColor)if("kitchen"===r.neutralColor)t=A9[n];else{const e=O0[r.neutralColor];t=D0({appearance:n,scale:e})}return{...e,...t}}),[r.primaryColor,r.neutralColor,n]);return r&&Q.jsx($1,{customToken:a,enableWebfonts:r.enableWebFont,themeMode:n,children:e})})),wee={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 xee{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||wee,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 xee(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new xee(this.logger,e)}}var kee=new xee;class See{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 Cee(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}function Eee(e){return null==e?"":""+e}function Dee(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 Oee(e,t,n){const{obj:r,k:o}=Dee(e,t,Object);r[o]=n}function _ee(e,t){const{obj:n,k:r}=Dee(e,t);if(n)return n[r]}function $ee(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]):$ee(e[r],t[r],n):e[r]=t[r]);return e}function jee(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Nee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Pee(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>Nee[e])):e}const Iee=[" ",",","?","!",";"];function Tee(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?Tee(s,l,n):void 0}o=o[r[a]]}return o}function Fee(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Ree extends See{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:Tee(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),Oee(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?$ee(s,n,o):s={...s,...n},Oee(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 Aee={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 Mee={};class Lee extends See{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=kee.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=Iee.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 p=u&&u.usedKey||a,f=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(p,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?f:p;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,p=Lee.hasDefaultValue(t),f=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=t[`defaultValue${f}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(r=!0,d=g),this.isValidLookup(d)||(i=!0,d=a);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:d,b=p&&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=p&&r!==d?r:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,o,b,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{r([e],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=Aee.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(),p=void 0!==i.context&&("string"==typeof i.context||"number"==typeof i.context)&&""!==i.context,f=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(a=e,!Mee[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Mee[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((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)),p){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 Bee(e){return e.charAt(0).toUpperCase()+e.slice(1)}class zee{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kee.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Fee(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=Fee(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]=Bee(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]=Bee(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Bee(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 Hee=[{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}],Wee={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 Uee=["v1","v2","v3"],Gee=["v4"],Vee={zero:0,one:1,two:2,few:3,many:4,other:5};class qee{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=kee.create("pluralResolver"),this.options.compatibilityJSON&&!Gee.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 Hee.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:Wee[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(Fee(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)=>Vee[e]-Vee[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!Uee.includes(this.options.compatibilityJSON)}}function Xee(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=Tee(e,n,r),void 0===a&&(a=Tee(t,n,r))),a}class Kee{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=kee.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:Pee,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?jee(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?jee(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?jee(t.nestingPrefix):t.nestingPrefixEscaped||jee("$t("),this.nestingSuffix=t.nestingSuffix?jee(t.nestingSuffix):t.nestingSuffixEscaped||jee(")"),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=Xee(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(Xee(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=Eee(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(Fte){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,Fte),`${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=Eee(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 Yee(e){const t={};return function(n,r,o){const a=r+JSON.stringify(o);let i=t[a];return i||(i=e(Fee(r),o),t[a]=i),i(n)}}class Qee{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=kee.create("formatter"),this.options=e,this.formats={number:Yee(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:Yee(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:Yee(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:Yee(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:Yee(((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()]=Yee(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 Jee extends See{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=kee.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}=Dee(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 Zee(){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 ete(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 tte(){}class nte extends See{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=ete(e),this.services={},this.logger=kee,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=Zee();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...ete(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?kee.init(o(this.modules.logger),this.options):kee.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=Qee);const n=new zee(this.options);this.store=new Ree(this.options.resources,this.options);const a=this.services;a.logger=kee,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new qee(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 Kee(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Jee(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 Lee(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=tte),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=Cee(),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]:tte;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=Cee();return e||(e=this.languages),t||(t=this.options.ns),n||(n=tte),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&&Aee.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=Cee();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=Cee();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=Cee();"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 zee(Zee());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 nte(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]:tte;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new nte(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 Ree(this.store.data,r),o.services.resourceStore=o.store),o.translator=new Lee(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 rte=nte.createInstance();function ote(e){return(ote="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)}rte.createInstance=nte.createInstance,rte.createInstance,rte.dir,rte.init,rte.loadResources,rte.reloadResources,rte.use,rte.changeLanguage,rte.getFixedT,rte.t,rte.exists,rte.setDefaultNamespace,rte.hasLoadedNamespace,rte.loadNamespaces,rte.loadLanguages;var ate=[],ite=ate.forEach,ste=ate.slice;function lte(e){return ite.call(ste.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function cte(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":ote(XMLHttpRequest))}function ute(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 dte,pte={exports:{}},fte={exports:{}};function hte(){return dte||(dte=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(Fte){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 p(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 f(e){this.map={},e instanceof f?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}f.prototype.append=function(e,t){e=u(e),t=d(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=d(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},o&&(f.prototype[Symbol.iterator]=f.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 f(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 f(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 k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},v.call(w.prototype),v.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];k.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(E){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function C(n,r){return new Promise((function(o,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 f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){o(new k(r,n))}),0)},c.onerror=function(){setTimeout((function(){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(Fte){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 f?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=f,t.Request=w,t.Response=k),e.Headers=f,e.Request=w,e.Response=k,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}(fte,fte.exports)),fte.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!==ute&&("undefined"==typeof window||void 0===window.document)){var o=r||hte();o.default&&(o=o.default),n.default=o,e.exports=n.default}}(pte,pte.exports);var gte=pte.exports;const mte=n(gte),bte=e({__proto__:null,default:mte},[gte]);function vte(e){return(vte="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 yte,wte,xte;"function"==typeof fetch&&(yte="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),cte()&&("undefined"!=typeof global&&global.XMLHttpRequest?wte=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(wte=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?xte=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(xte=window.ActiveXObject)),yte||!bte||wte||xte||(yte=mte||bte),"function"!=typeof yte&&(yte=void 0);var kte=function(e,t){if(t&&"object"===vte(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},Ste=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):yte(e,t).then(r).catch(n)},Cte=!1,Ete=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},yte&&0!==t.indexOf("file:")?function(e,t,n,r){e.queryStringParams&&(t=kte(t,e.queryStringParams));var o=lte({},"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=lte({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},Cte?{}:a);try{Ste(t,i,r)}catch(Fte){if(!a||0===Object.keys(a).length||!Fte.message||Fte.message.indexOf("not implemented")<0)return r(Fte);try{Object.keys(a).forEach((function(e){delete i[e]})),Ste(t,i,r),Cte=!0}catch(s){r(s)}}}(e,t,n,r):cte()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===vte(n)&&(n=kte("",n).slice(1)),e.queryStringParams&&(t=kte(t,e.queryStringParams));try{var o;(o=wte?new wte:new xte("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(Fte){console&&console.log(Fte)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function Dte(e){return(Dte="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 Ote(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"!==Dte(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dte(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dte(t)?t:String(t)}var $te=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:Ete,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},jte=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=lte(n,this.options||{},$te()),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(Fte){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&&Ote(t.prototype,n),r&&Ote(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();jte.type="backend";const Nte=JSON.parse(localStorage.getItem(u3));rte.use(B1).use(jte).init({backend:{loadPath:"/lobe/locales/{{lng}}"},debug:!1,fallbackLng:"en_US",lng:(null==Nte?void 0:Nte.i18n)||"en_US"});const Pte=gH((({css:e,token:t,cx:n,stylish:r,prefixCls:o})=>{const a=`${o}-highlighter`;return{container:e`
pointer-events: none;
position: absolute;
overflow-x: hidden;
overflow-y: auto;
padding: 8px;
pre {
font-family: ${t.fontFamilyCode} !important;
font-size: 13px !important;
line-height: 1.5 !important;
color: ${t.colorSuccess};
text-overflow: ellipsis !important;
word-wrap: break-word;
white-space: pre-wrap;
vertical-align: bottom !important;
}
`,loading:n(r.blur,e`
position: absolute;
z-index: 10;
top: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
height: 34px;
padding: 0 8px;
font-family: ${t.fontFamilyCode};
color: ${t.colorTextTertiary};
border-radius: ${t.borderRadius};
`),shiki:n(`${a}-shiki`,e`
margin: 0;
padding: 0;
.shiki {
overflow-x: auto;
margin: 0;
padding: 0;
background: none !important;
}
`)}}));"undefined"!=typeof globalThis?globalThis:void 0!=={}||("undefined"!=typeof global?global:"undefined"!=typeof self&&self);var Ite,Tte={exports:{}};Ite=()=>{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||S(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&&S("no native wasm support detected");var d,p,f,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=p=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=f=new Uint32Array(e),r.HEAPF32=new Float32Array(e),r.HEAPF64=new Float64Array(e)}r.INITIAL_MEMORY;var v=[],y=[],w=[],x=0,k=null;function S(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 $(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){S(t)}}function j(e){for(;e.length>0;)e.shift()(r)}function N(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 P=[null,[],[]];function I(e,t){var n=P[e];0===t||10===t?((1===e?c:u)(m(n,0)),n.length=0):n.push(t)}var T,F={emscripten_get_now:E,emscripten_memcpy_big:function(e,t,n){p.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=p.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),N(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=f[t>>2],s=f[t+4>>2];t+=8;for(var l=0;l<s;l++)I(e,p[i+l]);o+=s}return f[r>>2]=o,0}};function R(e){function n(){T||(T=!0,r.calledRun=!0,h||(j(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;j(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;j(v)}(),x>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),n()}),1)):n()))}if(function(){var e={env:F,wasi_snapshot_preview1:F};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&&k){var t=k;k=null,t()}}()}function o(e){t(e.instance)}function a(t){return(s||!i||"function"!=typeof fetch?Promise.resolve().then((function(){return $(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 $(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),S(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(p,e,t):""},k=function e(){T||R(),T||(k=e)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return R(),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 Fte,Rte,Ate=Tte.exports=Ite(),Mte={exports:{}};Mte.exports=(Fte={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),p=n.getForeground(e),f=n.getBackground(e);return 0!==t&&(l=t),8!==r&&(c=r),null!==o&&(u=o?1:0),-1!==a&&(d=a),0!==i&&(p=i),0!==s&&(f=s),(l<<0|c<<8|u<<10|d<<11|p<<15|f<<24)>>>0},t.toOptionalTokenType=function(e){return e}},996:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicScopeAttributesProvider=t.BasicScopeAttributes=void 0;const r=n(878);class o{constructor(e,t){this.languageId=e,this.tokenType=t}}t.BasicScopeAttributes=o;class 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 p(e,t,n,r,o){const i=a.createMatchers(t,f),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 f(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,f);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)p(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&&p(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),p=d._tokenizeString(this,l,a,0,t,u,!0,r);return i.disposeOnigString(l),{lineLength:c,lineTokens:u,ruleStack:p.stack,stoppedEarly:p.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,f).map((e=>e.matcher)))),this.unbalancedBracketScopes=t.flatMap((e=>a.createMatchers(e,f).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 p{constructor(){this.kind=1}}t.SelfReference=p;class f{constructor(e){this.ruleName=e,this.kind=2}}t.RelativeReference=f;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 p;const t=e.indexOf("#");if(-1===t)return new h(e);if(0===t)return new f(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,f,h){const g=t.content.length;let m=!1,b=-1;if(f){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:f}=u(d.rule,e,d.stack.endRule,n,o===l),h=c.findNextMatchSync(t,o,f);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),p(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 p=0;r.DebugFlags.InDebugMode&&(p=i.performanceNow());const f=u.findNextMatchSync(t,o,d);if(r.DebugFlags.InDebugMode){const e=i.performanceNow()-p;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()),f&&console.log(`matched rule id: ${f.ruleId} from ${f.captureIndices[0].start} to ${f.captureIndices[0].end}`)}return f?{captureIndices:f.captureIndices,matchedRuleId:f.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,p=0;const f=i.contentNameScopesList.getScopeNames();for(let h=0,g=e.length;h<g;h++){const i=e[h];if(!i.matcher(f))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,p=i.priority,u===a))break}return d?{priorityMatch:-1===p,captureIndices:d,matchedRuleId:l}:null}(u,e,t,n,o,a,s);if(!d)return l;if(!l)return d;const p=l.captureIndices[0].start,f=d.captureIndices[0].start;return f<p||d.priorityMatch&&f===p?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,f=s.matchedRuleId,h=!!(u&&u.length>0)&&u[0].end>o;if(f===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),p(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(f);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(f,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),p(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),p(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),p(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 p(e,t,n,r,a,i,s){if(0===i.length)return;const c=t.content,u=Math.min(i.length,s.length),d=[],p=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>p)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),p=t.getContentName(c,s),f=d.pushAttributed(p,e),h=r.push(t.retokenizeCapturedWithRuleId,u.start,-1,!1,null,d,f),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 f(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 f{constructor(e,t){this.scopes=e,this.endPos=t}}t.LocalStackElement=f},974:(e,t)=>{function n(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}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=[],p=[];function f(){d.push(c),p.push(u)}function h(){c=d.pop(),u=p.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)),f(),c=1;continue}if(2===l.type){u=[],f(),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,f(),c=4,u=t;continue}if(3===l.type){let n={};i&&(n.$vscodeTextmateLocation=l.toLocation(t)),u[e]=n,f(),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),f(),c=4,u=e;continue}if(3===l.type){let e={};i&&(e.$vscodeTextmateLocation=l.toLocation(t)),u.push(e),f(),c=1,u=e;continue}g("unexpected token in array")}g("unknown state")}return 0!==p.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 p(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 f=0,h=null,g=[],m=[],b=null;function v(e,t){g.push(f),m.push(h),f=e,h=t}function y(){if(0===g.length)return w("illegal state stack");f=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)},k=function(){if(null===b)return w("missing <key>");let e=[];h[b]=e,b=null,v(2,e)},S=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!==f)return w("unexpected </dict>");y()}function D(){return 1===f||2!==f?w("unexpected </array>"):void y()}function O(e){if(1===f){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===f?h.push(e):h=e}function _(e){if(isNaN(e))return w("cannot parse float");if(1===f){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===f?h.push(e):h=e}function $(e){if(isNaN(e))return w("cannot parse integer");if(1===f){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===f?h.push(e):h=e}function j(e){if(1===f){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===f?h.push(e):h=e}function N(e){if(1===f){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===f?h.push(e):h=e}function P(e){if(1===f){if(null===b)return w("missing <key>");h[b]=e,b=null}else 2===f?h.push(e):h=e}function I(){let e=p(">"),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=p("</");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 p=e.charCodeAt(o);if(63===p){s(1),d("?>");continue}if(33===p){if(s(1),u("--")){d("--\x3e");continue}d(">");continue}if(47===p){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===f?x():2===f?S():(h={},null!==n&&(h[n]={filename:t,line:a,char:i}),v(1,h)),g.isClosed&&E();continue;case"array":1===f?k():2===f?C():(h=[],v(2,h)),g.isClosed&&D();continue;case"key":F=T(g),1!==f?w("unexpected <key>"):null!==b?w("too many <key>"):b=F;continue;case"string":O(T(g));continue;case"real":_(parseFloat(T(g)));continue;case"integer":$(parseInt(T(g),10));continue;case"date":j(new Date(T(g)));continue;case"data":N(T(g));continue;case"true":T(g),P(!0);continue;case"false":T(g),P(!1);continue}if(!/^plist/.test(g.name))return w("unexpected opened tag "+g.name)}var F;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 p 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=p;class f{static createCaptureRule(e,t,n,r,o){return e.registerRule((e=>new l(t,e,n,r,o)))}static getCompiledRuleId(e,t,n){return e.id||t.registerRule((o=>{if(e.id=o,e.match)return new c(e.$vscodeTextmateLocation,e.id,e.name,e.match,f._compileCaptures(e.captures,t,n));if(void 0===e.begin){e.repository&&(n=r.mergeObjects({},n,e.repository));let o=e.patterns;return void 0===o&&e.include&&(o=[{include:e.include}]),new u(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,f._compilePatterns(o,t,n))}return e.while?new p(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.while,f._compileCaptures(e.whileCaptures||e.captures,t,n),f._compilePatterns(e.patterns,t,n)):new d(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,f._compileCaptures(e.beginCaptures||e.captures,t,n),e.end,f._compileCaptures(e.endCaptures||e.captures,t,n),e.applyEndPatternLast,f._compilePatterns(e.patterns,t,n))})),e.id}static _compileCaptures(e,t,n){let r=[];if(e){let o=0;for(const t in e){if("$vscodeTextmateLocation"===t)continue;const e=parseInt(t,10);e>o&&(o=e)}for(let e=0;e<=o;e++)r[e]=null;for(const a in e){if("$vscodeTextmateLocation"===a)continue;const o=parseInt(a,10);let i=0;e[a].patterns&&(i=f.getCompiledRuleId(e[a],t,n)),r[o]=f.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=f.getCompiledRuleId(n[i.include],t,n);break;case 2:let r=n[e.ruleName];r&&(s=f.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=f.getCompiledRuleId(e,t,l.repository))}else s=f.getCompiledRuleId(l.repository.$self,t,l.repository)}}else s=f.getCompiledRuleId(i,t,n);if(-1!==s){const e=t.getRule(s);let n=!1;if((e instanceof u||e instanceof d||e instanceof p)&&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=f;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)),f=new p(new d(0,null,-1,0,0),[]);for(let r=0,o=e.length;r<o;r++){let t=e[r];f.insert(0,t.scope,t.parentScopes,t.fontStyle,l.getId(t.foreground),l.getId(t.background))}return new o(l,c,f)}(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 p{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(e){return 1===e.length||e.sort(this._cmpBySpecificity),e}static _cmpBySpecificity(e,t){if(e.scopeDepth===t.scopeDepth){const n=e.parentScopes,r=t.parentScopes;let o=null===n?0:n.length,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 p._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):p._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 p(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=p},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()}}},Rte={},function e(t){var n=Rte[t];if(void 0!==n)return n.exports;var r=Rte[t]={exports:{}};return Fte[t].call(r.exports,r,r.exports,e),r.exports}(787));var Lte=Mte.exports;const Bte=[{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 zte,Hte,Wte,Ute,Gte,Vte,qte,Xte=(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))(Xte||{});class Kte{static toBinaryStr(e){let t=e.toString(2);for(;t.length<32;)t="0"+t;return t}static printMetadata(e){let t=Kte.getLanguageId(e),n=Kte.getTokenType(e),r=Kte.getFontStyle(e),o=Kte.getForeground(e),a=Kte.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=Kte.getLanguageId(e),s=Kte.getTokenType(e),l=Kte.getFontStyle(e),c=Kte.getForeground(e),u=Kte.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|(Kte.containsBalancedBrackets(e)?1:0)<<10|c<<15|u<<24)>>>0}}function Yte(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function Qte(e){return e.startsWith("./")?e.slice(2):e}function Jte(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function Zte(...e){return e.map(Yte).map(Qte).join("/")}function ene(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 p(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 f(){if(o="",d=0,a=r,l=s,u=c,r>=n)return a=n,i=17;let t=e.charCodeAt(r);if(tne(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(tne(t));return i=15}if(nne(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(nne(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=p(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&&!nne(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++,nne(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||!rne(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&&rne(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&rne(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&rne(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&&rne(e.charCodeAt(r))){for(r++;r<e.length&&rne(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(tne(e)||nne(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=f()}while(e>=12&&e<=15);return e}:f,getToken:()=>i,getTokenValue:()=>o,getTokenOffset:()=>a,getTokenLength:()=>r-a,getTokenStartLine:()=>l,getTokenStartCharacter:()=>a-u,getTokenError:()=>d}}function tne(e){return 32===e||9===e}function nne(e){return 10===e||13===e}function rne(e){return e>=48&&e<=57}(Hte=zte||(zte={}))[Hte.lineFeed=10]="lineFeed",Hte[Hte.carriageReturn=13]="carriageReturn",Hte[Hte.space=32]="space",Hte[Hte._0=48]="_0",Hte[Hte._1=49]="_1",Hte[Hte._2=50]="_2",Hte[Hte._3=51]="_3",Hte[Hte._4=52]="_4",Hte[Hte._5=53]="_5",Hte[Hte._6=54]="_6",Hte[Hte._7=55]="_7",Hte[Hte._8=56]="_8",Hte[Hte._9=57]="_9",Hte[Hte.a=97]="a",Hte[Hte.b=98]="b",Hte[Hte.c=99]="c",Hte[Hte.d=100]="d",Hte[Hte.e=101]="e",Hte[Hte.f=102]="f",Hte[Hte.g=103]="g",Hte[Hte.h=104]="h",Hte[Hte.i=105]="i",Hte[Hte.j=106]="j",Hte[Hte.k=107]="k",Hte[Hte.l=108]="l",Hte[Hte.m=109]="m",Hte[Hte.n=110]="n",Hte[Hte.o=111]="o",Hte[Hte.p=112]="p",Hte[Hte.q=113]="q",Hte[Hte.r=114]="r",Hte[Hte.s=115]="s",Hte[Hte.t=116]="t",Hte[Hte.u=117]="u",Hte[Hte.v=118]="v",Hte[Hte.w=119]="w",Hte[Hte.x=120]="x",Hte[Hte.y=121]="y",Hte[Hte.z=122]="z",Hte[Hte.A=65]="A",Hte[Hte.B=66]="B",Hte[Hte.C=67]="C",Hte[Hte.D=68]="D",Hte[Hte.E=69]="E",Hte[Hte.F=70]="F",Hte[Hte.G=71]="G",Hte[Hte.H=72]="H",Hte[Hte.I=73]="I",Hte[Hte.J=74]="J",Hte[Hte.K=75]="K",Hte[Hte.L=76]="L",Hte[Hte.M=77]="M",Hte[Hte.N=78]="N",Hte[Hte.O=79]="O",Hte[Hte.P=80]="P",Hte[Hte.Q=81]="Q",Hte[Hte.R=82]="R",Hte[Hte.S=83]="S",Hte[Hte.T=84]="T",Hte[Hte.U=85]="U",Hte[Hte.V=86]="V",Hte[Hte.W=87]="W",Hte[Hte.X=88]="X",Hte[Hte.Y=89]="Y",Hte[Hte.Z=90]="Z",Hte[Hte.asterisk=42]="asterisk",Hte[Hte.backslash=92]="backslash",Hte[Hte.closeBrace=125]="closeBrace",Hte[Hte.closeBracket=93]="closeBracket",Hte[Hte.colon=58]="colon",Hte[Hte.comma=44]="comma",Hte[Hte.dot=46]="dot",Hte[Hte.doubleQuote=34]="doubleQuote",Hte[Hte.minus=45]="minus",Hte[Hte.openBrace=123]="openBrace",Hte[Hte.openBracket=91]="openBracket",Hte[Hte.plus=43]="plus",Hte[Hte.slash=47]="slash",Hte[Hte.formFeed=12]="formFeed",Hte[Hte.tab=9]="tab",(Wte||(Wte={})).DEFAULT={allowTrailingComma:!1},(Gte=Ute||(Ute={}))[Gte.None=0]="None",Gte[Gte.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",Gte[Gte.UnexpectedEndOfString=2]="UnexpectedEndOfString",Gte[Gte.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",Gte[Gte.InvalidUnicode=4]="InvalidUnicode",Gte[Gte.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",Gte[Gte.InvalidCharacter=6]="InvalidCharacter",(qte=Vte||(Vte={}))[qte.OpenBraceToken=1]="OpenBraceToken",qte[qte.CloseBraceToken=2]="CloseBraceToken",qte[qte.OpenBracketToken=3]="OpenBracketToken",qte[qte.CloseBracketToken=4]="CloseBracketToken",qte[qte.CommaToken=5]="CommaToken",qte[qte.ColonToken=6]="ColonToken",qte[qte.NullKeyword=7]="NullKeyword",qte[qte.TrueKeyword=8]="TrueKeyword",qte[qte.FalseKeyword=9]="FalseKeyword",qte[qte.StringLiteral=10]="StringLiteral",qte[qte.NumericLiteral=11]="NumericLiteral",qte[qte.LineCommentTrivia=12]="LineCommentTrivia",qte[qte.BlockCommentTrivia=13]="BlockCommentTrivia",qte[qte.LineBreakTrivia=14]="LineBreakTrivia",qte[qte.Trivia=15]="Trivia",qte[qte.Unknown=16]="Unknown",qte[qte.EOF=17]="EOF";const one=function(e,t=[],n=Wte.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=Wte.DEFAULT){const r=ene(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),p=i(t.onArrayBegin),f=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 k(e){const t=r.getTokenValue();return e?h(t):(u(t),o.push(t)),w(),!0}function S(){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):(k(!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(){p(),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 f(),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 k(!0);default:return S()}}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 ane,ine;(ine=ane||(ane={}))[ine.InvalidSymbol=1]="InvalidSymbol",ine[ine.InvalidNumberFormat=2]="InvalidNumberFormat",ine[ine.PropertyNameExpected=3]="PropertyNameExpected",ine[ine.ValueExpected=4]="ValueExpected",ine[ine.ColonExpected=5]="ColonExpected",ine[ine.CommaExpected=6]="CommaExpected",ine[ine.CloseBraceExpected=7]="CloseBraceExpected",ine[ine.CloseBracketExpected=8]="CloseBracketExpected",ine[ine.EndOfFileExpected=9]="EndOfFileExpected",ine[ine.InvalidCommentToken=10]="InvalidCommentToken",ine[ine.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",ine[ine.UnexpectedEndOfString=12]="UnexpectedEndOfString",ine[ine.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",ine[ine.InvalidUnicode=14]="InvalidUnicode",ine[ine.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",ine[ine.InvalidCharacter=16]="InvalidCharacter","process"in globalThis&&"undefined"!=typeof process&&void 0!==process.release&&process.release.name;let sne="";const lne="dist/";let cne=null;function une(e){return`${sne}${e}`}async function dne(e){const t=[],n=await async function(e){const t=une(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then((e=>e.text()))}(e);let r;try{r=JSON.parse(n)}catch(Fte){if(r=one(n,t,{allowTrailingComma:!0}),t.length)throw t[0]}return r}async function pne(e){const t=fne(await dne(e));if(t.include){const n=await pne(Zte(...Jte(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 fne(e){const t=e.type||"dark",n={name:e.name,type:t,...e,...mne(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 hne={light:"#333333",dark:"#bbbbbb"},gne={light:"#fffffe",dark:"#1e1e1e"};function mne(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?hne.light:hne.dark),i||(i="light"===e.type?gne.light:gne.dark),{fg:a,bg:i}}class bne{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 dne(e)}(Bte.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 vne(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:xne(e,a,o)}}return n}function yne(e,t){let n=e+".";return e===t||t.substring(0,n.length)===n}function wne(e,t,n,r){if(!yne(e,n))return!1;let o=t.length-1,a=r.length-1;for(;o>=0&&a>=0;)yne(t[o],r[a])&&o--,a--;return-1===o}function xne(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(/ /);wne(l[l.length-1],l.slice(0,l.length-1),t,n)&&(r[o++]=s,e=a)}}return r}var kne=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Sne={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Cne(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 Ene(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 Dne(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){Sne[r]&&t.push({type:"setDecoration",value:Sne[r]})}else if(r<=29){const e=Sne[r-20];e&&t.push({type:"resetDecoration",value:e})}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:kne[r-30]}});else if(38===r){const n=Ene(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:kne[r-40]}});else if(48===r){const n=Ene(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:kne[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:kne[r-100+8]}})}return t}var One={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=One){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<kne.length;n++)r.push(t(kne[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 $ne(e,t){const n=t.split(/\r?\n/),r=_ne(Object.fromEntries(kne.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=Cne(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=Dne(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=Xte.None;return t.decorations.has("bold")&&(o|=Xte.Bold),t.decorations.has("italic")&&(o|=Xte.Italic),t.decorations.has("underline")&&(o|=Xte.Underline),{content:t.value,color:n,fontStyle:o}}))))}const jne={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 Nne(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]||jne[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&Xte.Italic&&o.push("font-style: italic"),e.fontStyle&Xte.Bold&&o.push("font-weight: bold"),e.fontStyle&Xte.Underline&&o.push("text-decoration: underline"),a("token",{style:o.join("; "),tokens:n,token:e,index:r},[(i=e.content,i.replace(/[&<>"']/g,(e=>Pne[e])))]);var i})))})))])}const Pne={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};class Ine extends Lte.Registry{constructor(e){super(e),this._resolver=e,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=Bte.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 pne(`${this.themesPath}${e}.json`)),this._resolvedThemes[e]):((e=fne(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 Tne(e){return"string"==typeof e?Bte.find((t=>{var n;return t.id===e||(null==(n=t.aliases)?void 0:n.includes(e))})):e}async function Fne(e){var t,n;const{_languages:r,_themes:o,_wasmPath:a}=function(e){var t;let n=Bte,r=e.themes||[],o=(null==(t=e.paths)?void 0:t.wasm)?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":lne;return e.langs&&(n=e.langs.map(Tne)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:n,_themes:r,_wasmPath:o}}(e),i=new bne(async function(e){if(!cne){let t;t=Ate.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(une(Zte(...Jte(e),"onig.wasm")))}),cne=t.then((()=>({createOnigScanner:e=>Ate.createOnigScanner(e),createOnigString:e=>Ate.createOnigString(e)})))}return cne}(a),"vscode-oniguruma"),s=new Ine(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<kne.length;t++){const n=`#A${t.toString().padStart(5,"0")}`,r=kne[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 p(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=Lte.INITIAL,s=[],l=[];for(let c=0,u=a.length;c<u;c++){let n,u,d,p=a[c];if(""===p){s=[],l.push([]);continue}o.includeExplanation&&(n=r.tokenizeLine(p,i),u=n.tokens,d=0);let f=r.tokenizeLine2(p,i),h=f.tokens.length/2;for(let r=0;r<h;r++){let n=f.tokens[2*r],a=r+1<h?f.tokens[2*r+2]:p.length;if(n===a)continue;let i=f.tokens[2*r+1],l=t[Kte.getForeground(i)],c=Kte.getFontStyle(i),g=[];if(o.includeExplanation){let t=0;for(;n+t<a;){let n=u[d],r=p.substring(n.startIndex,n.endIndex);t+=r.length,g.push({content:r,scopes:vne(e,n.scopes)}),d++}}s.push({content:p.substring(n,a),color:l,fontStyle:c,explanation:g})}l.push(s),s=[],i=f.ruleStack}return l}(a,i,e,o,r)}function f(e,t){const{_theme:n}=d(t);return $ne(n,e)}return{codeToThemedTokens:p,codeToHtml:function(e,t="text",n){let r;r="object"==typeof t?t:{lang:t,theme:n};const o=p(e,r.lang,r.theme,{includeExplanation:!1}),{_theme:a}=d(r.theme);return Nne(o,{fg:a.fg,bg:a.bg,lineOptions:null==r?void 0:r.lineOptions,themeName:a.name})},ansiToThemedTokens:f,ansiToHtml:function(e,t){const n=f(e,null==t?void 0:t.theme),{_theme:r}=d(null==t?void 0:t.theme);return Nne(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=Tne(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 Rne;sne=(Rne="https://cdn.jsdelivr.net/npm/shiki-es@0.14.0/dist/assets/").endsWith("/")?Rne:Rne+"/";const{useDebugValue:Ane}=H,{useSyncExternalStoreWithSelector:Mne}=Q4;const Lne=(e,t)=>{const n=B4(e),r=(e,r=t)=>function(e,t=e.getState,n){const r=Mne(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Ane(r),r}(n,e,r);return Object.assign(r,n),r},Bne=((e,t)=>e?Lne(e,t):Lne)(((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 Fne({langs:null==n?void 0:n.langs,themes:null==n?void 0:n.themes});e({highlighter:t})}}})),Fp),zne=z.memo((({children:e,language:t,options:n})=>{const{styles:r}=Pte(),{isDarkMode:o}=Pz(),[a,i]=Bne((e=>[e.codeToHtml,!e.highlighter]));return z.useEffect((()=>{Bne.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(nY,{className:r.loading,gap:8,horizontal:!0,children:[Q.jsx(OH,{icon:Zp,spin:!0}),"Highlighting..."]})]})})),Hne=e=>{const t=e?"dark":"light",n=e?AY.gray[t][6]:AY.gray[t][7],r=e?AY.yellow[t][9]:AY.yellow[t][10],o=e?AY.gold[t][9]:AY.orange[t][9],a=e?AY.lime[t][9]:AY.green[t][10],i=e?AY.blue[t][9]:AY.geekblue[t][8];return{colors:{"editor.foreground":a},name:t,tokenColors:[{scope:"comma",settings:{foreground:n}},{scope:"func",settings:{foreground:i}},{scope:"and",settings:{fontStyle:"bold",foreground:i}},{scope:"bracket",settings:{foreground:i}},{scope:"model-type",settings:{fontStyle:"italic",foreground:o}},{scope:"model-name",settings:{fontStyle:"bold",foreground:o}},{scope:"model-bracket",settings:{foreground:o}},{scope:"number",settings:{foreground:e?AY.purple[t][10]:AY.purple[t][9]}},{scope:"wildcards",settings:{fontStyle:"italic",foreground:r}}],type:t}},Wne={langs:[{aliases:["prompt"],grammar:{$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",fileTypes:["prompt"],name:"prompt",patterns:[{match:"[,]",name:"comma"},{match:"[:|]",name:"func"},{match:"AND",name:"and"},{match:"<([^:]+):([^:]+):([^>]+)>",captures:{0:{name:"model-bracket"},1:{name:"model-type"},2:{name:"model-name"},3:{name:"number"}}},{match:"[<|>]",name:"model-bracket"},{match:"[(|)|\\[|\\]|{|}]",name:"bracket"},{match:"\\d+(\\.\\d+)?",name:"number"},{match:"__.*__",name:"wildcards"}],scopeName:"source.prompt"},id:"prompt",scopeName:"source.prompt"}],themes:[Hne(!0),Hne(!1)]},Une=z.memo((({parentId:e})=>{const t=z.useRef(null),[n,r]=z.useState(""),{styles:o,theme:a}=Pte(),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=fG(zK((function(){var e=zG(c);return e?{width:e.clientWidth,height:e.clientHeight}:void 0})),2),d=u[0],p=u[1],WK((function(){var e=zG(c);if(e){var t=new Vv((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;p({width:n,height:r})}))}));return t.observe(e),function(){t.disconnect()}}}),[],c),d);var c,u,d,p;const f=function(e,t){void 0===t&&(t=function(){return!0});var n=fG(zK(),2),r=n[0],o=n[1],a=mG(t);return WG((function(){var t=zG(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)}),[]);return z.useEffect((()=>{t.current.scroll(0,(null==f?void 0:f.top)||0)}),[null==f?void 0:f.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:null==l?void 0:l.width},children:Q.jsx(zne,{language:"prompt",options:Wne,children:n.trim()})})})),Gne=z.memo((({parentId:e})=>{const{loading:t}=g3((e=>({loading:e.loading})),Fp);return Q.jsx(yee,{children:!1===t&&Q.jsx(Une,{parentId:e})})})),Vne=(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(Gne,{parentId:e})})}))};const qne=(e,t,n)=>{var r;if((null==e?void 0:e.textContent)&&n)for(const o of t)(null==(r=null==e?void 0:e.textContent)?void 0:r.includes(o))&&(e.innerHTML=n.replace('width="24"','width="16"').replace('height="24"','height="16"'))},Xne=e=>bH`
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: ${pG(e.colorPrimary)};
background: ${e.colorPrimary};
&:hover {
color: ${pG(e.colorPrimary)} !important;
background: ${e.colorPrimaryHover} !important;
}
&:active {
color: ${pG(e.colorPrimaryActive)} !important;
background: ${e.colorPrimaryActive} !important;
}
}
`,Kne=e=>bH`
button {
cursor: pointer;
min-width: fit-content !important;
&.gradio-button {
&.tool {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
min-width: 36px !important;
max-width: 36px !important;
height: 36px;
min-height: 36px !important;
max-height: 36px;
padding: 0;
font-size: 14px;
line-height: 1;
background: ${e.colorFillSecondary};
border: 1px solid ${e.colorBorderSecondary};
border-radius: ${e.borderRadius}px;
&:hover {
background: ${e.colorFill};
}
&.lg {
max-width: max(36px, 100%) !important;
}
}
&.secondary,
&.primary {
overflow: hidden;
flex: 1;
font-size: 14px;
line-height: 1;
text-overflow: ellipsis;
&:active {
box-shadow: ${e.boxShadowSecondary};
}
}
&.secondary {
font-weight: 500;
background: ${e.colorFillTertiary};
border: 1px solid ${e.colorBorderSecondary};
border-radius: ${e.borderRadius}px !important;
&:hover {
color: ${e.colorText};
background: ${e.colorFill};
border-color: ${e.colorBorder};
}
}
&:not(.tool, .svelte-1p4r00v) {
&.primary,
&.secondary {
&.lg {
height: 44px !important;
min-height: 44px !important;
max-height: 44px !important;
}
}
}
&[id$='_generate'] {
height: 44px !important;
min-height: 44px !important;
max-height: 44px !important;
}
&[id$='_interrupt'] {
min-width: 0;
border-right: none !important;
border-radius: ${e.borderRadius}px 0 0 ${e.borderRadius}px !important;
}
&[id$='_skip'] {
min-width: 0;
border-radius: 0 ${e.borderRadius}px ${e.borderRadius}px 0 !important;
}
&[id$='_interrupt'],
&[id$='_skip'] {
color: #fff !important;
background: ${e.colorError} !important;
&:hover {
color: #fff !important;
background: ${e.colorErrorHover} !important;
}
&:active {
color: #fff !important;
background: ${e.colorErrorActive} !important;
}
}
&#interrogate,
&#deepbooru {
display: block !important;
}
}
}
div[id^='image_buttons_'] {
flex-wrap: wrap;
gap: 4px !important;
> button {
flex: 1;
min-width: min(30%, 56px);
font-size: 12px !important;
}
}
`,Yne=e=>bH`
.label-wrap {
transition: padding 400ms ${e.motionEaseOut};
> span:not(.icon) {
display: flex;
gap: 8px;
align-items: center;
font-size: 14px;
font-weight: 600;
line-height: 1;
transition: color 400ms ${e.motionEaseOut};
&::before {
content: '';
display: block;
width: 8px;
height: 8px;
background: ${e.colorPrimary};
border-radius: 4px;
}
}
&.open {
padding-bottom: 16px;
border-bottom: 1px dashed ${e.colorBorderSecondary};
span {
color: ${e.colorText};
}
}
}
`,Qne=e=>bH`
.gradio-group,
.gradio-row {
gap: 12px !important;
}
.block.padded {
&.gradio-box:not(.gradio-accordion) {
padding: 16px !important;
}
&.gradio-box,
&.gradio-accordion {
&:not(.hidden):has(div) {
margin: 0 !important;
padding: 16px !important;
border: 1px solid ${e.colorBorderSecondary} !important;
}
}
}
.panel {
margin: 0 !important;
padding: 16px !important;
}
.compact,
.wrap {
gap: 12px !important;
}
#tabs > div {
padding: unset;
border: none;
}
#system_info {
align-items: flex-start;
justify-content: flex-start;
}
#img2img_results,
#txt2img_results,
#extras_gallery_container {
position: sticky;
top: 80px !important;
}
#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: ${pG(e.colorPrimary)};
background: ${e.colorPrimary};
}
}
}
`,Jne=e=>bH`
#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;
}
}
}
}
`,Zne=e=>{const t=bH`
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 bH`
.livePreview,
.gradio-gallery,
.gradio-image,
.gradio-video,
.gradio-file {
${t}
}
div.block {
&.livePreview,
&.gradio-gallery,
&.gradio-image,
&.gradio-video,
&.gradio-file {
${t}
}
}
div.svelte-awbtu4 {
.livePreview,
.gradio-gallery,
.gradio-image,
.gradio-video,
.gradio-file {
${t}
}
}
button.thumbnail-item {
background: ${e.colorBgContainer} !important;
}
`},ere=e=>bH`
.block.gradio-checkbox {
margin: 0 !important;
}
input {
&:not([type='range'], [type='checkbox'], [type='number'], [type='radio'], .border-none) {
resize: none;
overflow: hidden;
width: 100%;
height: 36px !important;
text-overflow: ellipsis;
white-space: nowrap;
border-radius: ${e.borderRadius}px;
}
&[type='checkbox'],
&[type='radio'] {
cursor: pointer;
flex: 0;
width: ${e.fontSize}px;
min-width: ${e.fontSize}px;
max-width: ${e.fontSize}px;
height: ${e.fontSize}px;
min-height: ${e.fontSize}px;
max-height: ${e.fontSize}px;
appearance: none !important;
}
&[type='checkbox'] {
--ring-color: transparent;
position: relative;
line-height: var(--line-sm);
background-color: ${e.colorFillTertiary} !important;
border: 1px solid ${e.colorBorder} !important;
border-radius: ${e.borderRadiusSM}px !important;
&:checked {
background-color: ${e.colorPrimary} !important;
background-image: var(--checkbox-check) !important;
border-color: ${e.colorPrimaryBorder} !important;
}
}
&[type='number'] {
height: 28px !important;
border-radius: ${e.borderRadius}px;
}
}
`,tre=e=>bH`
.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;
}
}
}
`,nre=yH`
0% {
background-position: 0 0;
}
100% {
background-position: 24px 24px;
}
`,rre=e=>bH`
.progress-container {
flex-direction: column;
}
.eta-bar {
overflow: hidden;
opacity: 1 !important;
background: linear-gradient(
to right,
${e.colorFillQuaternary},
${e.colorFill}
) !important;
backdrop-filter: saturate(180%) blur(10px);
border: 1px solid ${e.colorBorder};
border-radius: ${e.borderRadius}px;
}
.wrap.svelte-j1gjts:has(div) {
overflow: hidden;
min-height: 36px;
background: ${e.colorBgContainer} !important;
border-radius: ${e.borderRadius}px;
box-shadow: 0 0 0 2px ${e.colorBgContainer};
.meta-text,
.meta-text-center {
font-size: 12px;
color: ${e.colorTextDescription};
}
}
.progressDiv {
position: relative !important;
top: 0 !important;
overflow: hidden;
background: ${e.colorBgElevated} !important;
> .progress {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: flex-end;
line-height: 1;
text-shadow: 0 1px 1px rgba(0, 0, 0, 40%);
&::before {
content: '';
position: absolute;
z-index: 1;
inset: 0;
overflow: hidden;
background-image: linear-gradient(
-45deg,
rgba(255, 255, 255, 20%) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 20%) 50%,
rgba(255, 255, 255, 20%) 75%,
transparent 75%,
transparent
);
background-size: 24px 24px;
animation: ${nre} 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%);
}
}
}
`,ore=e=>bH`
input[type='range'] {
cursor: pointer;
height: 3px;
margin-top: 8px;
appearance: none;
background: ${e.colorTextQuaternary};
border-radius: ${e.borderRadiusXS}px;
outline: none;
&::-webkit-slider-thumb {
width: 12px;
height: 16px;
appearance: none;
background: ${e.colorBgElevated};
border: 1px solid ${e.colorTextQuaternary};
border-radius: ${e.borderRadiusSM}px;
&:hover,
&:active {
background: ${e.colorPrimary};
border-color: ${e.colorPrimary};
}
}
&:hover {
background: ${e.colorPrimaryBorderHover};
}
&:active {
background: ${e.colorPrimary};
}
}
`,are=e=>bH`
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};
}
}
`,ire=e=>bH`
.tabitem,
.gradio-tabitem {
padding: 16px !important;
background: ${e.colorBgContainer};
border: none !important;
border-radius: ${e.borderRadius}px;
}
#tabs {
> .tabitem.gradio-tabitem {
background: transparent !important;
}
}
.tab-nav {
gap: 8px;
margin-bottom: 8px;
border: none !important;
button {
cursor: pointer;
display: block;
flex: 1 !important;
min-width: 100px;
padding: 8px !important;
font-size: 14px;
background: ${e.colorFillTertiary} !important;
border: none !important;
border-radius: 4px !important;
transition: all 0.2s ease-in-out;
&:hover {
color: ${e.colorText} !important;
background: ${e.colorFill} !important;
border: none !important;
}
&.selected {
font-weight: 600;
color: ${e.colorText} !important;
background: ${e.colorFillSecondary} !important;
border: none !important;
border-bottom: 2px solid ${e.colorPrimary} !important;
border-bottom-right-radius: 0 !important;
border-bottom-left-radius: 0 !important;
}
}
}
#tab_settings .tab-nav {
button {
background: transparent !important;
border-radius: 0 !important;
&:hover {
background: transparent !important;
border-radius: 0 !important;
}
&.selected {
background: transparent !important;
border: none !important;
border-left: 2px solid var(--color-primary) !important;
border-radius: 0 !important;
}
}
}
`,sre=mH((({theme:e})=>{return[(t=e,bH`
:root,
.dark {
--primary-50: ${t.geekblue1};
--primary-100: ${t.geekblue2};
--primary-200: ${t.geekblue3};
--primary-300: ${t.geekblue4};
--primary-400: ${t.geekblue5};
--primary-500: ${t.geekblue6};
--primary-600: ${t.geekblue7};
--primary-700: ${t.geekblue8};
--primary-800: ${t.geekblue9};
--primary-900: ${t.geekblue10};
--primary-950: ${t.geekblue11};
--secondary-50: ${t.geekblue1};
--secondary-100: ${t.geekblue2};
--secondary-200: ${t.geekblue3};
--secondary-300: ${t.geekblue4};
--secondary-400: ${t.geekblue5};
--secondary-500: ${t.geekblue6};
--secondary-600: ${t.geekblue7};
--secondary-700: ${t.geekblue8};
--secondary-800: ${t.geekblue9};
--secondary-900: ${t.geekblue10};
--secondary-950: ${t.geekblue11};
--neutral-50: ${t.colorText};
--neutral-100: ${t.colorText};
--neutral-200: ${t.colorTextSecondary};
--neutral-300: ${t.colorTextTertiary};
--neutral-400: ${t.colorTextQuaternary};
--neutral-500: ${t.colorFill};
--neutral-600: ${t.colorFillSecondary};
--neutral-700: ${t.colorFillTertiary};
--neutral-800: ${t.colorFillQuaternary};
--neutral-900: ${t.colorBgElevated};
--neutral-950: ${t.colorBgContainer};
--spacing-xxs: ${t.paddingXXS/4}px;
--spacing-xs: ${t.paddingXS/4}px;
--spacing-sm: ${t.paddingSM/4}px;
--spacing-md: ${t.paddingMD/4}px;
--spacing-lg: ${t.paddingLG/4}px;
--spacing-xl: ${t.paddingXL/4}px;
--spacing-xxl: ${t.paddingXL/4}px;
--radius-xxs: ${t.borderRadiusXS}px;
--radius-xs: ${t.borderRadiusXS}px;
--radius-sm: ${t.borderRadiusSM}px;
--radius-md: ${t.borderRadius}px;
--radius-lg: ${t.borderRadius}px;
--radius-xl: ${t.borderRadiusLG}px;
--radius-xxl: ${t.borderRadiusLG}px;
--text-xxs: ${t.fontSizeSM}px;
--text-xs: ${t.fontSizeSM}px;
--text-sm: ${t.fontSize}px;
--text-md: ${t.fontSize}px;
--text-lg: ${t.fontSizeLG}px;
--text-xl: ${t.fontSizeXL}px;
--text-xxl: ${t.fontSizeXL}px;
--font: ${t.fontFamily};
--font-mono: ${t.fontFamilyCode};
--body-background-fill: ${t.colorBgLayout};
--body-text-color: ${t.colorText};
--body-text-size: ${t.fontSize}px;
--body-text-weight: 400;
--embed-radius: ${t.borderRadius}px;
--color-accent: ${t.colorPrimary};
--color-accent-soft: ${t.colorPrimaryHover};
--background-fill-primary: ${t.colorBgLayout};
--background-fill-secondary: ${t.colorBgContainer};
--border-color-accent: ${t.colorBorder};
--border-color-primary: ${t.colorBorderSecondary};
--link-text-color: ${t.colorInfoText};
--link-text-color-active: ${t.colorInfoTextActive};
--link-text-color-hover: ${t.colorInfoTextHover};
--link-text-color-visited: ${t.colorInfoText};
--body-text-color-subdued: ${t.colorTextDescription};
--shadow-drop: ${t.boxShadowSecondary};
--shadow-drop-lg: ${t.boxShadow};
--shadow-inset: ${t.boxShadowSecondary} inset;
--shadow-spread: 3px;
--block-background-fill: ${t.colorBgContainer};
--block-border-color: ${t.colorBorderSecondary};
--block-border-width: 1px;
--block-info-text-color: ${t.colorTextSecondary};
--block-info-text-size: var(--text-sm);
--block-info-text-weight: 400;
--block-label-background-fill: ${t.colorFillSecondary};
--block-label-border-color: ${t.colorBorderSecondary};
--block-label-border-width: 1px;
--block-label-shadow: ${t.boxShadowTertiary};
--block-label-text-color: ${t.colorText} --block-label-margin: 0;
--block-label-padding: var(--spacing-sm) var(--spacing-lg);
--block-label-radius: ${t.borderRadius}px;
--block-label-right-radius: ${t.borderRadius}px;
--block-label-text-size: ${t.fontSizeSM}px;
--block-label-text-weight: 400;
--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);
--block-radius: ${t.borderRadius}px;
--block-shadow: none;
--block-title-background-fill: none;
--block-title-border-color: none;
--block-title-border-width: 0;
--block-title-text-color: ${t.colorText};
--block-title-padding: 0;
--block-title-radius: none;
--block-title-text-size: ${t.fontSize}px;
--block-title-text-weight: 400;
--container-radius: ${t.borderRadiusLG}px;
--form-gap-width: 1px;
--layout-gap: var(--spacing-xxl);
--panel-background-fill: ${t.colorBgContainer};
--panel-border-color: ${t.colorBorderSecondary};
--panel-border-width: 0;
--section-header-text-size: ${t.fontSize}px;
--section-header-text-weight: 400;
--chatbot-code-background-color: ${t.colorBgContainer};
--checkbox-background-color: ${t.colorFillTertiary};
--checkbox-background-color-focus: ${t.colorFillSecondary};
--checkbox-background-color-hover: ${t.colorFillSecondary};
--checkbox-background-color-selected: ${t.colorPrimary};
--checkbox-border-color: ${t.colorBorderSecondary};
--checkbox-border-color-focus: ${t.colorBorder};
--checkbox-border-color-hover: ${t.colorBorder};
--checkbox-border-color-selected: ${t.colorPrimary};
--checkbox-border-radius: ${t.borderRadiusXS}px;
--checkbox-border-width: 1px;
--checkbox-label-background-fill: ${t.colorFillTertiary};
--checkbox-label-background-fill-hover: ${t.colorFillSecondary};
--checkbox-label-background-fill-selected: ${t.colorFillSecondary};
--checkbox-label-border-color: ${t.colorBorderSecondary};
--checkbox-label-border-color-hover: ${t.colorBorder};
--checkbox-label-border-width: 1px;
--checkbox-label-gap: var(--spacing-lg);
--checkbox-label-padding: var(--spacing-md) calc(2 * var(--spacing-md));
--checkbox-label-shadow: none;
--checkbox-label-text-size: ${t.fontSize}px;
--checkbox-label-text-weight: 400;
--checkbox-shadow: none;
--checkbox-label-text-color: ${t.colorTextDescription};
--checkbox-label-text-color-selected: ${t.colorText};
--error-background-fill: ${t.colorErrorBg};
--error-border-color: ${t.colorErrorBorder};
--error-border-width: 1px;
--error-text-color: ${t.colorErrorText};
--input-background-fill: ${t.colorFillTertiary};
--input-background-fill-focus: ${t.colorFillSecondary};
--input-background-fill-hover: ${t.colorFillSecondary};
--input-border-color: ${t.colorBorderSecondary};
--input-border-color-focus: ${t.colorBorder};
--input-border-color-hover: ${t.colorBorder};
--input-border-width: 1px;
--input-padding: var(--spacing-xl);
--input-placeholder-color: ${t.colorTextQuaternary};
--input-radius: ${t.borderRadius}px;
--input-shadow: none;
--input-shadow-focus: none;
--input-text-size: ${t.fontSize}px;
--input-text-weight: 400;
--loader-color: ${t.colorPrimary};
--prose-text-size: ${t.fontSize}px;
--prose-text-weight: 400;
--prose-header-text-weight: 600;
--slider-color: ${t.colorPrimary};
--stat-background-fill: ${t.geekblue4};
--table-border-color: ${t.colorBorderSecondary};
--table-even-background-fill: transparent;
--table-odd-background-fill: ${t.colorFillTertiary};
--table-radius: var(--radius-lg);
--table-row-focus: ${t.colorFillSecondary};
--button-border-width: 1px;
--button-cancel-background-fill: ${t.colorError};
--button-cancel-background-fill-hover: ${t.colorErrorHover};
--button-cancel-border-color: ${t.colorErrorBorder};
--button-cancel-border-color-hover: ${t.colorErrorBorderHover};
--button-cancel-text-color: ${pG(t.colorError)};
--button-cancel-text-color-hover: ${pG(t.colorError)};
--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));
--button-large-radius: ${t.borderRadius}px;
--button-large-text-size: ${t.fontSizeLG}px;
--button-large-text-weight: 600;
--button-primary-background-fill: ${t.colorPrimary};
--button-primary-background-fill-hover: ${t.colorPrimaryHover};
--button-primary-border-color: ${t.colorPrimaryBorder};
--button-primary-border-color-hover: ${t.colorPrimaryBorderHover};
--button-primary-text-color: ${pG(t.colorPrimary)};
--button-primary-text-color-hover: ${pG(t.colorPrimary)};
--button-secondary-background-fill: ${t.colorFillSecondary};
--button-secondary-background-fill-hover: ${t.colorFill};
--button-secondary-border-color: ${t.colorBorderSecondary};
--button-secondary-border-color-hover: ${t.colorBorder};
--button-secondary-text-color: ${t.colorTextSecondary};
--button-secondary-text-color-hover: ${t.colorText};
--button-shadow: none;
--button-shadow-active: none;
--button-shadow-hover: none;
--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));
--button-small-radius: ${t.borderRadiusSM}px;
--button-small-text-size: ${t.fontSize}px;
--button-small-text-weight: 400;
--button-transition: none;
}
.dark {
--checkbox-check: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
--radio-circle: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}
`),Xne(e),Kne(e),Qne(e),Zne(e),ere(e),bH`
[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;
}
}
`,Yne(e),tre(e),rre(e),ore(e),are(e),ire(e),Jne(e)];var t})),lre=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))),cre=gH((({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;
}
.float {
${n.blur};
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
}
[id^='html_info_']:has(div.prose) {
p {
padding: 8px;
font-family: ${t.fontFamilyCode};
font-size: 13px !important;
color: ${t.colorInfo} !important;
background: ${t.colorInfoBg};
border: 1px solid ${t.colorInfoBorder};
border-radius: ${t.borderRadius}px;
}
}
#txt2img_styles_edit_button #img2img_styles_edit_button {
max-width: 36px !important;
}
#txt2img_generate,
#img2img_generate,
#extras_generate {
border-radius: ${t.borderRadius}px !important;
}
#txt2img_results,
#img2img_results,
#extras_results {
padding: 0 !important;
background: transparent !important;
}
#txt2img_render,
#img2img_render {
display: block !important;
margin-top: 16px;
padding: 0 !important;
background: transparent;
}
.block.gradio-html:has(div.prose) {
display: block;
p {
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
b {
color: ${r?t.colorPrimaryText:t.colorPrimaryTextHover};
}
}
}
[id$='_override_settings_row']:has(div.hidden) {
display: none;
}
.gradio-group:has(.gradio-group:has(div:empty)) {
display: none;
}
${o.mobile} {
.gradio-row:has([id$='2img_results'], [id$='2img_results']) {
flex-direction: column-reverse;
}
}
`,splitView:e`
#txt2img_toprow,
#img2img_toprow {
flex-direction: column !important;
padding: 0 !important;
background: transparent !important;
}
`,text2img:e`
button[id$='_generate'] {
height: 44px !important;
min-height: 44px !important;
max-height: 44px !important;
}
#txt2img_accordions,
#img2img_accordions {
flex-direction: column;
padding: 0 !important;
background: transparent !important;
> div {
background-color: ${t.colorBgContainer}!important;
}
}
#img2img_toprow .interrogate-col {
flex-flow: row wrap;
min-width: 100% !important;
}
[id$='img_settings'],
.gradio-column.compact {
display: flex !important;
flex-direction: column !important;
gap: 12px !important;
.gradio-column:has(#img2img_res_switch_btn, #txt2img_res_switch_btn) {
min-width: min(36px, 100%) !important;
}
> div:not([id$='_script_container'], .gradio-tabs):has(div),
> fieldset {
flex-flow: row wrap;
gap: 12px;
margin: 0 !important;
padding: 16px !important;
background-color: ${t.colorBgContainer}!important;
border-radius: ${t.borderRadius}px !important;
}
.gradio-tabitem {
background: ${t.colorFillTertiary} !important;
}
[id$='_script_container'] {
display: flex;
flex-direction: column;
gap: 12px;
* {
--layout-gap: 12px !important;
}
> div {
display: flex;
flex-direction: column;
gap: 12px;
> div.gr-group.gradio-group:has(.label-wrap) {
gap: 12px !important;
margin: 0 !important;
padding: 16px !important;
background-color: ${t.colorBgContainer}!important;
border: 1px solid ${t.colorBorderSecondary} !important;
border-radius: ${t.borderRadius}px !important;
}
}
.gradio-accordion:not(.hidden):has(div) {
padding: 0 !important;
border: none !important;
}
#script_list,
> .gradio-group:not(.hidden):has(div) {
display: flex;
flex-direction: column;
margin: 0;
padding: 16px;
background-color: ${t.colorBgContainer} !important;
border: 1px solid ${t.colorBorderSecondary} !important;
border-radius: ${t.borderRadius}px !important;
box-shadow: none;
> .gradio-accordion {
padding: 0 !important;
border: none !important;
}
}
#script_list {
padding: 8px 16px 12px !important;
}
}
}
#img2img_column_batch {
min-width: 100% !important;
}
#tab_txt2img,
#tab_img2img {
[id$='_settings'] {
min-width: 0 !important;
div.svelte-15lo0d8 > *,
div.svelte-15lo0d8 > .form > * {
flex: 1;
}
}
#txt2img_gallery {
overflow: hidden !important;
border-radius: var(--border-radius) !important;
}
[id$='2img_tools'] > div {
display: flex;
justify-content: center;
button {
max-width: unset !important;
}
}
.gradio-html[id^='img2img_label_copy_to'] {
display: none;
}
.gradio-row[id^='img2img_copy_to'],
.gap.compact,
.image-buttons,
.image_buttons_extras {
gap: 8px !important;
}
}
#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: ${t.fontFamilyCode};
font-size: 13px !important;
line-height: 1.5 !important;
word-wrap: break-word !important;
white-space: pre-wrap !important;
transition:
all 0.3s,
height 0s;
}
}
[id$='2img_prompt'] > label > textarea {
color: ${t.colorSuccessTextHover};
&:focus {
color: ${t.colorSuccessText};
}
}
[id$='2img_neg_prompt'] > label > textarea {
color: ${t.colorErrorTextHover};
&:focus {
color: ${t.colorError};
}
}
.block.token-counter {
z-index: 10 !important;
top: -12px;
right: 4px;
scale: 0.8;
background: ${t.colorBgContainer} !important;
> .translucent {
display: none;
}
span {
display: inline-block;
font-family: ${t.fontFamilyCode};
}
}
#lobe_txt2img_prompt .prompt_editor {
min-height: ${74}px;
max-height: ${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"};
}
}
`}))),ure=z.memo((({className:e,...t})=>{const n=z.useRef(null),{mobile:r}=Bz(),o=g3(p3,aJ),{cx:a,styles:i}=cre({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"),D9.addPromptButton("txt2img"),D9.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(lre,{})]})})),dre=gH((({css:e,token:t},{headerHeight:n=64,size:r=86})=>({body:e`
.hide {
display: none;
}
.extra-networks .tab-nav > button {
&:first-child {
display: none;
}
}
#txt2img_extra_search,
#img2img_extra_search {
width: 100% !important;
max-width: unset !important;
}
#txt2img-extra-network-sidebar,
#img2img-extra-network-sidebar {
button.lg.secondary.gradio-button,
#txt2img_extra_sort,
#img2img_extra_sort {
height: 34px !important;
min-height: 34px !important;
}
.tabitem {
padding: 0 !important;
background: transparent;
}
}
.extra-network-cards {
height: unset;
min-height: unset;
.name {
background: unset !important;
}
.additional {
position: relative !important;
}
}
.extra-network-thumbs .name {
overflow: hidden;
display: block;
font-size: 12px !important;
text-overflow: ellipsis;
white-space: nowrap;
background: transparent;
}
.extra-network-cards,
.extra-network-thumbs {
overflow: unset;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(${r}px, 1fr));
gap: 8px;
&:has(.nocards) {
display: flex;
flex-direction: column;
}
}
.extra-networks {
.tab-nav {
align-items: center;
> * {
height: 40px !important;
margin: 0 !important;
font-size: 14px !important;
}
}
.extra-network-subdirs {
display: flex;
flex-wrap: wrap;
gap: 4px;
align-items: center;
margin-bottom: 12px;
padding: 0 !important;
> button {
cursor: pointer;
zoom: 0.8;
flex: 1;
min-width: 100px;
margin: 0;
}
}
.actions {
.name {
overflow: hidden;
display: block;
font-weight: bold;
text-overflow: ellipsis;
text-shadow: 0 1px 1px rgb(0 0 0 / 90%);
white-space: nowrap;
background: linear-gradient(0deg, rgb(0 0 0 / 80%), transparent);
}
.additional {
position: absolute;
display: none;
> ul {
display: flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0;
a {
margin: 0 !important;
padding: 0 !important;
font-size: 15px !important;
color: #fff;
text-overflow: ellipsis;
text-shadow: 1px 1px black;
white-space: nowrap;
}
}
}
}
.card {
overflow: hidden;
width: 100% !important;
height: ${1.5*r}px !important;
margin: 0 !important;
background-size: cover;
border: 1px solid ${t.colorBorderSecondary};
border-radius: ${t.borderRadiusSM}px;
outline: none;
transition:
box-shadow 200ms ${t.motionEaseOut},
scale 400ms ${t.motionEaseOut};
.name {
font-size: 12px !important;
}
&:hover {
border-color: ${t.colorPrimary};
box-shadow: 0 0 0 1px ${t.colorPrimary};
.additional {
display: flex !important;
}
.name {
white-space: unset;
}
}
&:active {
scale: 0.9;
}
}
.button-row {
padding: 0 4px;
background: rgba(0, 0, 0, 50%);
border-bottom-left-radius: ${t.borderRadius}px;
> div {
font-size: 15px !important;
text-shadow: none !important;
}
}
.metadata-button {
&::before {
content: '' !important;
}
}
}
div#txt2img_extra_networks,
div#img2img_extra_networks {
display: block !important;
.tabitem.gradio-tabitem.svelte-19hvt5v {
padding: 0 !important;
background: transparent;
}
.search {
box-sizing: border-box;
width: 100%;
max-width: 100%;
max-height: 36px !important;
padding: 8px;
}
button {
height: 32px !important;
}
}
textarea {
resize: none;
overflow-y: hidden !important;
font-family: ${t.fontFamily};
}
`,container:e`
height: calc(100vh - ${n}px);
`}))),pre=["txt2img","img2img"],fre=["textual_inversion","hypernetworks","checkpoints","lora","lycoris"],hre={checkpoints:"ckp",hypernetworks:"hyper",lora:"lora",lycoris:"lycoris",textual_inversion:"ti"},gre=new Set(["🌐","💡","🏷️"]),mre="lobeDone",bre=(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 vre(e){return null==e}const yre=()=>{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 pre){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,p,f,h,g="",m=!1,b=!1;const v=[];for(const y of pre)for(const n of fre){if(f=hre[n],i=`${y}_${n}_cards`,s=document.querySelector(`#${i}`),vre(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[mre])break;if(n.dataset[mre]="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"),vre(d)&&(d=document.createElement("ul"),c.append(d)),u=n.querySelector(".actions .additional a"),vre(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,gre.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="🖼️",bre(u,b)),!m)continue;if(p=n.querySelector(".actions .additional .search_term"),!p)return;if(g=p.innerHTML,!g)continue;const r=document.createElement("a");r.href="#",r.innerHTML="🌐",bre(r,b),r.title="Open this model's civitai url",r.setAttribute("onclick",`open_model_url(event, '${f}', '${g}')`);const i=document.createElement("a");i.href="#",i.innerHTML="💡",bre(i,b),i.title="Add trigger words to prompt",i.setAttribute("onclick",`add_trigger_words(event, '${f}', '${g}')`);const s=document.createElement("a");s.href="#",s.innerHTML="🏷️",bre(s,b),s.title="Use prompt from preview image",s.setAttribute("onclick",`use_preview_prompt(event, '${f}', '${g}')`),d.append(r),b&&l&&d.append(document.createElement("br")),d.append(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>=fre.length||s>n)&&(clearInterval(o),n=s??n)}t++}),2e3)},t()},wre=z.memo((()=>{const e=z.useRef(null),t=z.useRef(null),[n,r]=z.useState(!0),o=g3(p3,aJ),a=g3(f3,Fp),[i,s]=z.useState(o.extraNetworkCardSize||86),{styles:l}=dre({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"),p=d.querySelectorAll("div.tabitem.gradio-tabitem")[0];if(l&&d&&(null==(n=e.current)||n.append(l),c.id="txt2img_render",null==s||s.append(c),null==(a=t.current)||a.append(d),p.id="img2img_render",null==u||u.append(p)),document.querySelector(".extra-network-cards"))return yre(),void r(!1)}console.timeEnd("🤯 [layout] inject - ExtraNetworkSidebar")}),[]),UK((()=>{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=yre);const r=null==(t=document.querySelector("#img2img_extra_refresh"))?void 0:t.nextSibling;r&&(r.onclick=yre),yre()}catch(a){console.debug(a)}console.timeEnd("🤯 [extranetwork] force reload")}),2e3),Q.jsxs(Q.Fragment,{children:[Q.jsxs(GQ,{className:l.body,children:[n&&Q.jsx(NF,{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(ZQ,{children:[Q.jsx(VH,{icon:o.extraNetworkCardSize<i?hf:ff,onClick:()=>s(o.extraNetworkCardSize),size:{blockSize:24,fontSize:16}}),Q.jsx(KB,{defaultValue:i,max:256,min:64,onChange:s,step:8,style:{flex:1},value:i})]})]})})),xre=z.memo((({headerHeight:e})=>{const{mobile:t}=Bz(),n=g3(p3,aJ),[r,o]=z.useState(!t&&n.extraNetworkSidebarExpand),[a,i]=z.useState("fixed"===n.extraNetworkFixedMode),{styles:s,theme:l}=dre({headerHeight:e}),{t:c}=W1();z.useEffect((()=>{t&&o(!1)}),[t]);const u=t||a?"fixed":"float";return Q.jsx(RQ,{defaultSize:{width:n.extraNetworkSidebarWidth},expand:r,minWidth:n.extraNetworkSidebarWidth,mode:u,onExpandChange:o,pin:a,placement:"right",children:Q.jsx(JZ,{children:Q.jsxs(KQ,{className:s.container,style:"float"===u?{background:l.colorBgContainer,minWidth:n.extraNetworkSidebarWidth}:{minWidth:n.extraNetworkSidebarWidth},children:[Q.jsx(rJ,{pin:a,position:"right",setExpand:o,setPin:i,title:c("extraNetwork")}),Q.jsx(wre,{})]})})})})),kre=xre,Sre=[{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"}],Cre=[{icon:Q.jsx(OH,{icon:Wp,size:"small"}),openExternal:!0,title:"Report Bug",url:`${U1}/issues/new/choose`},{icon:Q.jsx(OH,{icon:Kp,size:"small"}),openExternal:!0,title:"Request Feature",url:`${U1}/issues/new/choose`}],Ere=[{icon:Q.jsx(OH,{icon:Yp,size:"small"}),openExternal:!0,title:"GitHub",url:U1},{icon:Q.jsx(OH,{icon:Xp,size:"small"}),openExternal:!0,title:"Changelog",url:`${U1}/blob/main/CHANGELOG.md`}],Dre=[{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"}],Ore=gH((({css:e})=>({footer:e`
footer {
display: block !important;
}
`}))),_re=z.memo((({className:e,...t})=>{const n=g3(p3,aJ),{cx:r,styles:o}=Ore(),{t:a}=W1(),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)),console.timeEnd("🤯 [layout] inject - Footer")}),[]),Q.jsx("div",{className:r(o.footer,e),...t,children:Q.jsx(fJ,{bottom:Q.jsx("div",{ref:i}),columns:n.layoutHideFooter?[]:[{items:Sre,title:a("resources")},{items:Cre,title:a("community")},{items:Ere,title:a("help")},{items:Dre,title:a("moreProducts")}]})})})),$re=_re,jre=({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"})}),Nre=z.memo((()=>{const[e,t]=z.useState(!1),[n,r]=z.useState(!1),o=g3(h3,Fp),{mobile:a}=Bz(),{t:i}=W1(),s=z.useCallback((()=>{const e="light"===o?"dark":"light",t=bee.parseUrl(window.location.href);t.query.__theme=e,window.location.replace(bee.stringifyUrl(t))}),[o]);return Q.jsxs(Q.Fragment,{children:[Q.jsxs(qM.Compact,{children:[!a&&Q.jsxs(Q.Fragment,{children:[Q.jsx("a",{href:"https://civitai.com/",rel:"noreferrer",target:"_blank",children:Q.jsx(VH,{icon:jre,title:"Civitai"})}),Q.jsx("a",{href:"https://supagruen.github.io/StableDiffusion-CheatSheet/",rel:"noreferrer",target:"_blank",children:Q.jsx(VH,{icon:Qp,title:"Cheat Sheet"})}),Q.jsx(VH,{icon:Yp,onClick:()=>r(!0),title:i("feedback")})]}),Q.jsx(VH,{icon:"light"===o?uf:tf,onClick:s,title:i("switchTheme")}),Q.jsx(VH,{icon:cf,onClick:()=>t(!0),title:i("setting")})]}),Q.jsx(q9,{onCancel:()=>t(!1),open:e}),Q.jsx(w3,{onCancel:()=>r(!1),open:n})]})})),Pre=Nre,Ire=()=>Array.prototype.slice.call(gradioApp().querySelectorAll("#tabs > .tab-nav:first-of-type button")),Tre=()=>{console.debug("🤯 [nav] generate nav list");const e=Array.prototype.slice.call(gradioApp().querySelectorAll('#tabs > [id^="tab_"]'));return Ire().map(((t,n)=>({id:e[n].id,index:n,label:dU(String(t.textContent))})))},Fre=z.memo((()=>{const e=g3(f3,Fp),{mobile:t}=Bz(),[n,r]=z.useState(!1),[o,a]=z.useState([]),i=z.useMemo((()=>Tre()),[]),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;Ire()[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(mY,{items:o,opened:n,setOpened:r}):Q.jsx(V0,{activeKey:e,items:o,onChange:s})})),Rre=z.memo((({children:e})=>{const{themeMode:t,version:n}=g3((e=>({themeMode:e.themeMode,version:e.version})),Fp),r=kH();return Q.jsx(_Z,{actions:Q.jsx(Pre,{themeMode:t}),actionsStyle:{flex:0},logo:Q.jsx("a",{href:`${U1}/releases`,rel:"noreferrer",style:{alignItems:"center",color:r.colorText,display:"flex"},target:"_blank",children:Q.jsx(LH,{title:`sd-webui-lobe-theme v${n}`,children:Q.jsx(E3,{})})}),nav:Q.jsxs(Q.Fragment,{children:[Q.jsx(Fre,{}),e]})})})),Are=z.memo((()=>{const e=g3(p3,aJ),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(GQ,{children:[e.promptEditor&&Q.jsx(F9,{}),Q.jsx("div",{ref:t})]})})),Mre=gH((({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;
}
}
`}))),Lre=z.memo((({headerHeight:e})=>{const{mobile:t}=Bz(),n=g3(p3,aJ),[r,o]=z.useState(!t&&n.sidebarExpand),[a,i]=z.useState("fixed"===n.sidebarFixedMode),[s,l]=z.useState(n.sidebarWidth),{styles:c,theme:u}=Mre({headerHeight:e,width:s}),{t:d}=W1();z.useEffect((()=>{t&&o(!1)}),[t]);const p=t||a?"fixed":"float";return Q.jsx(RQ,{defaultSize:{width:n.sidebarWidth},expand:r,minWidth:n.sidebarWidth,mode:p,onExpandChange:o,onSizeChange:(e,t)=>(null==t?void 0:t.width)&&l(Number.parseInt(String(t.width))),pin:a,placement:"left",style:{display:"flex",flexDirection:"column"},children:Q.jsx(JZ,{children:Q.jsxs(KQ,{className:c.container,style:"float"===p?{background:u.colorBgContainer,minWidth:n.sidebarWidth}:{minWidth:n.sidebarWidth},children:[Q.jsx(rJ,{pin:a,position:"left",setExpand:o,setPin:i,title:d("quickSetting")}),Q.jsx(Are,{})]})})})})),Bre=Lre,zre=gH((({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},
${iG(45,r.colorPrimary)},
${r.colorPrimary},
${iG(-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 {
padding: 16px !important;
}
`,sidebar:t`
height: calc(100vh - ${a}px);
`}))),Hre=64,Wre=z.memo((()=>{const e=g3(p3,aJ),{cx:t,styles:n}=zre({headerHeight:Hre,isPrimaryColor:Boolean(e.primaryColor)});return z.useEffect((()=>{e.enableHighlight&&(Vne("#txt2img_prompt","#lobe_txt2img_prompt"),Vne("#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'),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'),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="m2 22 1-1h3l9-9" />\n <path d="M3 21v-3l9-9" />\n <path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" />\n</svg>\n'),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'),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'),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'),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'),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'),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'),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'),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'),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'),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'),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'),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'),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="M5 12h14" />\n <path d="m12 5 7 7-7 7" />\n</svg>\n'),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'),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'),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'),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'),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'),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'),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'),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');console.timeEnd("🤯 [svgIcon] replace")})()}),[]),Q.jsxs(Q.Fragment,{children:[Q.jsx(sre,{}),Q.jsx(KZ,{headerHeight:Hre,children:Q.jsx(Rre,{})}),Q.jsxs(YZ,{children:[Q.jsx("div",{className:e.liteAnimation?n.backgroundLite:n.background}),e.enableSidebar&&Q.jsx(QZ,{className:n.sidebar,headerHeight:Hre,style:{flex:0,zIndex:50},children:Q.jsx(Bre,{headerHeight:Hre})}),Q.jsx(ure,{className:t(!e.enableSidebar&&n.quicksettings)}),(null==e?void 0:e.enableExtraNetworkSidebar)&&Q.jsx(QZ,{className:n.sidebar,headerHeight:Hre,style:{flex:0,zIndex:50},children:Q.jsx(kre,{headerHeight:Hre})})]}),Q.jsx($re,{})]})})),Ure={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"},Gre=`data:application/manifest+json;base64,${btoa(JSON.stringify(Ure))}`,Vre=z.memo((()=>{const[e,t]=z.useState(!0),{setCurrentTab:n,onInit:r,storeLoading:o}=g3((e=>({onInit:e.onInit,setCurrentTab:e.setCurrentTab,storeLoading:e.loading})),Fp);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(Tp,{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:Gre,rel:"manifest"})]}),Q.jsx(yee,{children:!1===o&&!1===e?Q.jsx(Wre,{}):Q.jsx(k3,{})})]})}));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(Vre,{})),console.timeEnd("🤯 Lobe Theme load in DevMode")}),{once:!0});