@lax-wp/design-system 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system.css +1 -1
- package/dist/index.es.js +23279 -14720
- package/dist/index.umd.js +183 -61
- package/package.json +3 -1
- package/dist/components/data-display/badge/Badge.d.ts +0 -44
- package/dist/components/data-display/banner/Banner.d.ts +0 -41
- package/dist/components/data-display/code-editor/CodeEditor.d.ts +0 -4
- package/dist/components/data-display/code-editor/JsonGrid.d.ts +0 -14
- package/dist/components/data-display/code-editor/Tabs.d.ts +0 -12
- package/dist/components/data-display/pdf-viewer/PdfViewer.d.ts +0 -45
- package/dist/components/data-display/popper/Popper.d.ts +0 -57
- package/dist/components/data-display/status-color-mapping/StatusColorMapping.d.ts +0 -29
- package/dist/components/data-display/typography/Typography.d.ts +0 -15
- package/dist/components/feedback/toast/Toast.d.ts +0 -29
- package/dist/components/forms/checkbox/Checkbox.d.ts +0 -55
- package/dist/components/forms/color-picker/ColorPicker.d.ts +0 -60
- package/dist/components/forms/creatable-select/CreatableSelect.d.ts +0 -92
- package/dist/components/forms/currency-input/CurrencyInputField.d.ts +0 -73
- package/dist/components/forms/currency-input/currency.constant.d.ts +0 -6
- package/dist/components/forms/date-range/DateRange.d.ts +0 -72
- package/dist/components/forms/debounce-input/DebounceInputField.d.ts +0 -76
- package/dist/components/forms/input-field/InputField.d.ts +0 -62
- package/dist/components/forms/percentage-input/PercentageInputField.d.ts +0 -75
- package/dist/components/forms/text-field/TextField.d.ts +0 -48
- package/dist/components/forms/toggle/Toggle.d.ts +0 -71
- package/dist/components/tooltip/Tooltip.d.ts +0 -13
- package/dist/hooks/useOutsideClick.d.ts +0 -28
- package/dist/hooks/usePythonSyntax.d.ts +0 -28
- package/dist/hooks/useTheme.d.ts +0 -6
- package/dist/index.d.ts +0 -48
- package/dist/services/monacoManager.d.ts +0 -28
- package/dist/types/index.d.ts +0 -66
- package/dist/utils/messageConstants.d.ts +0 -16
- package/dist/utils/utilities.d.ts +0 -13
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(xe,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react"),require("framer-motion"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","framer-motion","react-dom"],E):(xe=typeof globalThis<"u"?globalThis:xe||self,E(xe.LaxDesignSystem={},xe.React,xe.FramerMotion,xe.ReactDOM))})(this,function(xe,E,Ze,zr){"use strict";function u0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const A=u0(E),d0=u0(zr);var Xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ya={exports:{}},xi={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var f0;function qy(){if(f0)return xi;f0=1;var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},f=null,g=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(g=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:g,props:d,_owner:o.current}}return xi.Fragment=r,xi.jsx=a,xi.jsxs=a,xi}var wi={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var m0;function Qy(){return m0||(m0=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";function p(L){if(L===null||typeof L!="object")return null;var te=h&&L[h]||L[m];return typeof te=="function"?te:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(L){{for(var te=arguments.length,ae=new Array(te>1?te-1:0),fe=1;fe<te;fe++)ae[fe-1]=arguments[fe];w("error",L,ae)}}function w(L,te,ae){{var fe=b.ReactDebugCurrentFrame,ke=fe.getStackAddendum();ke!==""&&(te+="%s",ae=ae.concat([ke]));var Ve=ae.map(function(Oe){return String(Oe)});Ve.unshift("Warning: "+te),Function.prototype.apply.call(console[L],console,Ve)}}var S=!1,v=!1,I=!1,O=!1,N=!1,T;T=Symbol.for("react.module.reference");function P(L){return!!(typeof L=="string"||typeof L=="function"||L===n||L===i||N||L===o||L===c||L===u||O||L===g||S||v||I||typeof L=="object"&&L!==null&&(L.$$typeof===f||L.$$typeof===d||L.$$typeof===a||L.$$typeof===s||L.$$typeof===l||L.$$typeof===T||L.getModuleId!==void 0))}function M(L,te,ae){var fe=L.displayName;if(fe)return fe;var ke=te.displayName||te.name||"";return ke!==""?ae+"("+ke+")":ae}function x(L){return L.displayName||"Context"}function $(L){if(L==null)return null;if(typeof L.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof L=="function")return L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof L=="object")switch(L.$$typeof){case s:var te=L;return x(te)+".Consumer";case a:var ae=L;return x(ae._context)+".Provider";case l:return M(L,L.render,"ForwardRef");case d:var fe=L.displayName||null;return fe!==null?fe:$(L.type)||"Memo";case f:{var ke=L,Ve=ke._payload,Oe=ke._init;try{return $(Oe(Ve))}catch{return null}}}return null}var F=Object.assign,k=0,j,z,H,V,_,D,B;function R(){}R.__reactDisabledLog=!0;function W(){{if(k===0){j=console.log,z=console.info,H=console.warn,V=console.error,_=console.group,D=console.groupCollapsed,B=console.groupEnd;var L={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:L,log:L,warn:L,error:L,group:L,groupCollapsed:L,groupEnd:L})}k++}}function K(){{if(k--,k===0){var L={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},L,{value:j}),info:F({},L,{value:z}),warn:F({},L,{value:H}),error:F({},L,{value:V}),group:F({},L,{value:_}),groupCollapsed:F({},L,{value:D}),groupEnd:F({},L,{value:B})})}k<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=b.ReactCurrentDispatcher,U;function Q(L,te,ae){{if(U===void 0)try{throw Error()}catch(ke){var fe=ke.stack.trim().match(/\n( *(at )?)/);U=fe&&fe[1]||""}return`
|
|
18
|
+
`+U+L}}var Z=!1,se;{var pe=typeof WeakMap=="function"?WeakMap:Map;se=new pe}function Y(L,te){if(!L||Z)return"";{var ae=se.get(L);if(ae!==void 0)return ae}var fe;Z=!0;var ke=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ve;Ve=q.current,q.current=null,W();try{if(te){var Oe=function(){throw Error()};if(Object.defineProperty(Oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Oe,[])}catch(qt){fe=qt}Reflect.construct(L,[],Oe)}else{try{Oe.call()}catch(qt){fe=qt}L.call(Oe.prototype)}}else{try{throw Error()}catch(qt){fe=qt}L()}}catch(qt){if(qt&&fe&&typeof qt.stack=="string"){for(var Se=qt.stack.split(`
|
|
19
|
+
`),gt=fe.stack.split(`
|
|
20
|
+
`),Be=Se.length-1,ft=gt.length-1;Be>=1&&ft>=0&&Se[Be]!==gt[ft];)ft--;for(;Be>=1&&ft>=0;Be--,ft--)if(Se[Be]!==gt[ft]){if(Be!==1||ft!==1)do if(Be--,ft--,ft<0||Se[Be]!==gt[ft]){var je=`
|
|
21
|
+
`+Se[Be].replace(" at new "," at ");return L.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",L.displayName)),typeof L=="function"&&se.set(L,je),je}while(Be>=1&&ft>=0);break}}}finally{Z=!1,q.current=Ve,K(),Error.prepareStackTrace=ke}var br=L?L.displayName||L.name:"",Vr=br?Q(br):"";return typeof L=="function"&&se.set(L,Vr),Vr}function Ce(L,te,ae){return Y(L,!1)}function ne(L){var te=L.prototype;return!!(te&&te.isReactComponent)}function Ie(L,te,ae){if(L==null)return"";if(typeof L=="function")return Y(L,ne(L));if(typeof L=="string")return Q(L);switch(L){case c:return Q("Suspense");case u:return Q("SuspenseList")}if(typeof L=="object")switch(L.$$typeof){case l:return Ce(L.render);case d:return Ie(L.type,te,ae);case f:{var fe=L,ke=fe._payload,Ve=fe._init;try{return Ie(Ve(ke),te,ae)}catch{}}}return""}var ve=Object.prototype.hasOwnProperty,Ye={},it=b.ReactDebugCurrentFrame;function Le(L){if(L){var te=L._owner,ae=Ie(L.type,L._source,te?te.type:null);it.setExtraStackFrame(ae)}else it.setExtraStackFrame(null)}function St(L,te,ae,fe,ke){{var Ve=Function.call.bind(ve);for(var Oe in L)if(Ve(L,Oe)){var Se=void 0;try{if(typeof L[Oe]!="function"){var gt=Error((fe||"React class")+": "+ae+" type `"+Oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof L[Oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw gt.name="Invariant Violation",gt}Se=L[Oe](te,Oe,fe,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Be){Se=Be}Se&&!(Se instanceof Error)&&(Le(ke),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",fe||"React class",ae,Oe,typeof Se),Le(null)),Se instanceof Error&&!(Se.message in Ye)&&(Ye[Se.message]=!0,Le(ke),y("Failed %s type: %s",ae,Se.message),Le(null))}}}var Fe=Array.isArray;function Me(L){return Fe(L)}function bt(L){{var te=typeof Symbol=="function"&&Symbol.toStringTag,ae=te&&L[Symbol.toStringTag]||L.constructor.name||"Object";return ae}}function Te(L){try{return Mt(L),!1}catch{return!0}}function Mt(L){return""+L}function at(L){if(Te(L))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(L)),Mt(L)}var ir=b.ReactCurrentOwner,Xt={key:!0,ref:!0,__self:!0,__source:!0},jt,fr;function _e(L){if(ve.call(L,"ref")){var te=Object.getOwnPropertyDescriptor(L,"ref").get;if(te&&te.isReactWarning)return!1}return L.ref!==void 0}function De(L){if(ve.call(L,"key")){var te=Object.getOwnPropertyDescriptor(L,"key").get;if(te&&te.isReactWarning)return!1}return L.key!==void 0}function Rt(L,te){typeof L.ref=="string"&&ir.current}function Lt(L,te){{var ae=function(){jt||(jt=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",te))};ae.isReactWarning=!0,Object.defineProperty(L,"key",{get:ae,configurable:!0})}}function Dt(L,te){{var ae=function(){fr||(fr=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",te))};ae.isReactWarning=!0,Object.defineProperty(L,"ref",{get:ae,configurable:!0})}}var he=function(L,te,ae,fe,ke,Ve,Oe){var Se={$$typeof:t,type:L,key:te,ref:ae,props:Oe,_owner:Ve};return Se._store={},Object.defineProperty(Se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(Se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ke}),Object.freeze&&(Object.freeze(Se.props),Object.freeze(Se)),Se};function de(L,te,ae,fe,ke){{var Ve,Oe={},Se=null,gt=null;ae!==void 0&&(at(ae),Se=""+ae),De(te)&&(at(te.key),Se=""+te.key),_e(te)&&(gt=te.ref,Rt(te,ke));for(Ve in te)ve.call(te,Ve)&&!Xt.hasOwnProperty(Ve)&&(Oe[Ve]=te[Ve]);if(L&&L.defaultProps){var Be=L.defaultProps;for(Ve in Be)Oe[Ve]===void 0&&(Oe[Ve]=Be[Ve])}if(Se||gt){var ft=typeof L=="function"?L.displayName||L.name||"Unknown":L;Se&&Lt(Oe,ft),gt&&Dt(Oe,ft)}return he(L,Se,gt,ke,fe,ir.current,Oe)}}var Ae=b.ReactCurrentOwner,Ne=b.ReactDebugCurrentFrame;function $e(L){if(L){var te=L._owner,ae=Ie(L.type,L._source,te?te.type:null);Ne.setExtraStackFrame(ae)}else Ne.setExtraStackFrame(null)}var pt;pt=!1;function tr(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function ar(){{if(Ae.current){var L=$(Ae.current.type);if(L)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+L+"`."}return""}}function _t(L){return""}var Vt={};function Et(L){{var te=ar();if(!te){var ae=typeof L=="string"?L:L.displayName||L.name;ae&&(te=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+ae+">.")}return te}}function _r(L,te){{if(!L._store||L._store.validated||L.key!=null)return;L._store.validated=!0;var ae=Et(te);if(Vt[ae])return;Vt[ae]=!0;var fe="";L&&L._owner&&L._owner!==Ae.current&&(fe=" It was passed a child from "+$(L._owner.type)+"."),$e(L),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,fe),$e(null)}}function Wt(L,te){{if(typeof L!="object")return;if(Me(L))for(var ae=0;ae<L.length;ae++){var fe=L[ae];tr(fe)&&_r(fe,te)}else if(tr(L))L._store&&(L._store.validated=!0);else if(L){var ke=p(L);if(typeof ke=="function"&&ke!==L.entries)for(var Ve=ke.call(L),Oe;!(Oe=Ve.next()).done;)tr(Oe.value)&&_r(Oe.value,te)}}}function Je(L){{var te=L.type;if(te==null||typeof te=="string")return;var ae;if(typeof te=="function")ae=te.propTypes;else if(typeof te=="object"&&(te.$$typeof===l||te.$$typeof===d))ae=te.propTypes;else return;if(ae){var fe=$(te);St(ae,L.props,"prop",fe,L)}else if(te.PropTypes!==void 0&&!pt){pt=!0;var ke=$(te);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ke||"Unknown")}typeof te.getDefaultProps=="function"&&!te.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function He(L){{for(var te=Object.keys(L.props),ae=0;ae<te.length;ae++){var fe=te[ae];if(fe!=="children"&&fe!=="key"){$e(L),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),$e(null);break}}L.ref!==null&&($e(L),y("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Bt={};function Tr(L,te,ae,fe,ke,Ve){{var Oe=P(L);if(!Oe){var Se="";(L===void 0||typeof L=="object"&&L!==null&&Object.keys(L).length===0)&&(Se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var gt=_t();gt?Se+=gt:Se+=ar();var Be;L===null?Be="null":Me(L)?Be="array":L!==void 0&&L.$$typeof===t?(Be="<"+($(L.type)||"Unknown")+" />",Se=" Did you accidentally export a JSX literal instead of a component?"):Be=typeof L,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Be,Se)}var ft=de(L,te,ae,ke,Ve);if(ft==null)return ft;if(Oe){var je=te.children;if(je!==void 0)if(fe)if(Me(je)){for(var br=0;br<je.length;br++)Wt(je[br],L);Object.freeze&&Object.freeze(je)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Wt(je,L)}if(ve.call(te,"key")){var Vr=$(L),qt=Object.keys(te).filter(function(Da){return Da!=="key"}),Kr=qt.length>0?"{key: someKey, "+qt.join(": ..., ")+": ...}":"{key: someKey}";if(!Bt[Vr+Kr]){var bi=qt.length>0?"{"+qt.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,Kr,Vr,bi,Vr),Bt[Vr+Kr]=!0}}return L===n?He(ft):Je(ft),ft}}function sr(L,te,ae){return Tr(L,te,ae,!0)}function xt(L,te,ae){return Tr(L,te,ae,!1)}var pn=xt,Qr=sr;wi.Fragment=n,wi.jsx=pn,wi.jsxs=Qr}()),wi}var p0;function Ky(){return p0||(p0=1,process.env.NODE_ENV==="production"?Ya.exports=qy():Ya.exports=Qy()),Ya.exports}var C=Ky(),Tc={exports:{}};/*!
|
|
31
31
|
Copyright (c) 2018 Jed Watson.
|
|
32
32
|
Licensed under the MIT License (MIT), see
|
|
33
33
|
http://jedwatson.github.io/classnames
|
|
34
|
-
*/var
|
|
34
|
+
*/var g0;function e2(){return g0||(g0=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Tc)),Tc.exports}var t2=e2();const J=Oc(t2),ge=({children:e,variant:t="regular",size:r="medium",onClick:n,className:o,highlight:i,appearance:a="title",style:s})=>{const l=()=>{switch(r){case"extra-small":return"text-xs";case"small":return"text-sm";case"display-small":return"text-xl";case"medium":return"text-base";case"display-medium":return"text-2xl";case"large":return"text-lg";case"extra-large":return"text-4xl";default:return"text-base"}},c=()=>{switch(a){case"title":return"text-neutral-900 dark:text-white";case"body":return"text-neutral-600 dark:text-black-100";case"subtitle":return"text-neutral-400 dark:text-black-300";case"custom":return""}},u=()=>{switch(t){case"regular":return"font-normal";case"medium":return"font-medium";case"semibold":return"font-semibold";case"bold":return"font-bold";case"extrablack":return"font-black";default:return"font-normal"}},d=`${l()} ${u()} ${c()}`,f=J(d,o,i?"bg-yellow-100 dark:bg-yellow-900":"");return C.jsx("div",{className:f,onClick:n,style:s,children:e})};ge.displayName="Typography";const h0=E.forwardRef(({id:e,value:t,onChange:r,onKeyDown:n,message:o,messageType:i="default",defaultValue:a,disabled:s=!1,max:l,min:c,required:u=!1,label:d,type:f="text",placeholder:g,fieldSuffix:h,wrapperClassNames:m,inputClassNames:p,inputStyle:b={},inputProps:y},w)=>{const S=E.useRef(null),[v,I]=E.useState(0),O=()=>i==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200":i==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200":i==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200":"border-neutral-200 dark:border-black-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",N=()=>i==="error"?"text-red-500 dark:text-red-400":i==="success"?"text-green-500 dark:text-green-400":i==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-black-100",T=e||`input-${d?.replace(/\s+/g,"-").toLowerCase()}`;E.useEffect(()=>{if(h&&S.current){const M=new ResizeObserver($=>{const F=$[0];if(F){const k=Math.ceil(F.contentRect.width)+24;I(k)}});M.observe(S.current);const x=Math.ceil(S.current.offsetWidth)+12;return I(x),()=>{M.disconnect()}}else I(0)},[h]);const P=()=>({"--input-bg-color":"var(--tw-bg-opacity, 1) rgb(var(--bg-color))","--text-color":"#111827",paddingRight:`${h?Math.max(12,v):12}px`,...b});return C.jsxs("div",{className:J("flex flex-col w-full",m),children:[C.jsx("style",{children:`
|
|
35
35
|
.input-field input:-webkit-autofill,
|
|
36
36
|
.input-field input:-webkit-autofill:hover,
|
|
37
37
|
.input-field input:-webkit-autofill:focus {
|
|
@@ -46,7 +46,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
46
46
|
-webkit-text-fill-color: white !important;
|
|
47
47
|
-webkit-box-shadow: 0 0 0px 1000px var(--input-bg-color) inset !important;
|
|
48
48
|
}
|
|
49
|
-
`}),d?
|
|
49
|
+
`}),d?C.jsx("label",{htmlFor:T,className:"mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:"extra-small",appearance:"subtitle",children:[d,u&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}):null,C.jsxs("div",{className:"relative input-field",children:[C.jsx("input",{...y,ref:w,id:T,type:f,value:t,defaultValue:a,placeholder:g,required:u,disabled:s,max:l,min:c,onKeyDown:n,style:P(),className:J("border border-solid h-8 rounded-md block w-full pl-3","text-sm font-medium text-neutral-900 dark:text-black-100","bg-white dark:bg-black-600","transition-colors duration-200 ease-in-out","focus:outline-none focus:ring-2",O(),s&&"opacity-70 cursor-not-allowed bg-neutral-50 dark:bg-black-700",p),onChange:M=>r(M.target.value),onClick:M=>M.stopPropagation()}),h&&C.jsx("div",{ref:S,className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:h})]}),C.jsx(Ze.AnimatePresence,{children:o&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:C.jsx(ge,{className:J("mt-1",N()),appearance:"custom",size:"extra-small",variant:"medium",children:o})})})]})});h0.displayName="InputField";const r2=E.forwardRef(({label:e,placeholder:t,value:r,onChange:n,rows:o=4,message:i,messageType:a="default",defaultValue:s,required:l=!1,disabled:c=!1,className:u,inputRef:d,maxLength:f,originalCase:g=!1,noBorder:h=!1,id:m,inputStyle:p,...b},y)=>{const w=m||`textarea-${Math.random().toString(36).substr(2,9)}`,S=r?.length||0,v=f&&S>f-Math.min(50,f/5),I=f&&S>=f,O=()=>a==="error"?"border-red-300 dark:border-red-500 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400":a==="success"?"border-green-300 dark:border-green-500 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400":a==="info"?"border-blue-300 dark:border-blue-500 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400":"border-gray-300 dark:border-gray-600",N=()=>a==="error"?"text-red-500 dark:text-red-400":a==="success"?"text-green-500 dark:text-green-400":a==="info"?"text-blue-500 dark:text-blue-400":"text-gray-500 dark:text-gray-400";return C.jsxs("div",{className:J("flex flex-col gap-0.5 relative",u),children:[e&&C.jsx("label",{htmlFor:w,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",{capitalize:!g}),children:C.jsxs(ge,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[e,l&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),C.jsx("textarea",{...b,id:w,ref:y||d,onChange:T=>n(T.target.value),defaultValue:s,value:r,required:l,disabled:c,rows:o,placeholder:t,maxLength:f||void 0,style:p,className:J("border rounded-lg bg-white dark:bg-black-600 block w-full py-2.5 px-3","font-inter font-medium text-sm transition-colors duration-200","focus:ring-2 focus:outline-none resize-vertical min-h-[2.5rem]",!h&&O(),{"border-none focus:border-none focus:ring-0":h,"bg-gray-50 dark:bg-gray-700 text-gray-400 dark:text-gray-500 cursor-not-allowed":c,"placeholder:text-gray-400 dark:placeholder:text-gray-500":c,"text-gray-900 dark:text-gray-100":!c,"placeholder:text-gray-400 dark:placeholder:text-gray-400":!c}),onClick:T=>T.stopPropagation(),"aria-invalid":i&&a==="error"?"true":"false","aria-describedby":i?`${w}-message`:void 0}),f&&C.jsxs(ge,{className:"mt-0.5 text-right text-gray-600 dark:text-gray-400",appearance:"custom",size:"extra-small",children:[C.jsx("span",{className:J({"text-red-500 dark:text-red-400":I,"text-yellow-500 dark:text-yellow-400":v&&!I}),children:S}),C.jsxs("span",{className:"text-gray-400 dark:text-gray-500",children:[" ","/ ",f]})]}),C.jsx(Ze.AnimatePresence,{children:i&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${w}-message`,role:a==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",N()),appearance:"custom",size:"extra-small",variant:"medium",children:i})})})]})});function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},le.apply(null,arguments)}function we(e){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(e)}var n2=Symbol.for("react.element"),o2=Symbol.for("react.transitional.element"),i2=Symbol.for("react.fragment");function v0(e){return e&&we(e)==="object"&&(e.$$typeof===n2||e.$$typeof===o2)&&e.type===i2}function Ja(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return E.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Ja(n)):v0(n)&&n.props?r=r.concat(Ja(n.props.children,t)):r.push(n))}),r}var Pc={},kc=[],a2=function(t){kc.push(t)};function Io(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=kc.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function s2(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=kc.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function b0(){Pc={}}function y0(e,t,r){!t&&!Pc[r]&&(e(!1,r),Pc[r]=!0)}function ht(e,t){y0(Io,e,t)}function l2(e,t){y0(s2,e,t)}ht.preMessage=a2,ht.resetWarned=b0,ht.noteOnce=l2;function c2(e,t){if(we(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(we(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C0(e){var t=c2(e,"string");return we(t)=="symbol"?t:t+""}function X(e,t,r){return(t=C0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(r),!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e){return e instanceof HTMLElement||e instanceof SVGElement}function u2(e){return e&&we(e)==="object"&&Si(e.nativeElement)?e.nativeElement:Si(e)?e:null}function Za(e){var t=u2(e);if(t)return t;if(e instanceof E.Component){var r;return(r=zr.findDOMNode)===null||r===void 0?void 0:r.call(zr,e)}return null}var qa={exports:{}},qe={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-is.production.min.js
|
|
52
52
|
*
|
|
@@ -54,7 +54,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var
|
|
57
|
+
*/var w0;function d2(){if(w0)return qe;w0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function m(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case o:case n:case c:case u:return p;default:switch(p=p&&p.$$typeof,p){case s:case a:case l:case f:case d:case i:return p;default:return b}}case t:return b}}}return qe.ContextConsumer=a,qe.ContextProvider=i,qe.Element=e,qe.ForwardRef=l,qe.Fragment=r,qe.Lazy=f,qe.Memo=d,qe.Portal=t,qe.Profiler=o,qe.StrictMode=n,qe.Suspense=c,qe.SuspenseList=u,qe.isAsyncMode=function(){return!1},qe.isConcurrentMode=function(){return!1},qe.isContextConsumer=function(p){return m(p)===a},qe.isContextProvider=function(p){return m(p)===i},qe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},qe.isForwardRef=function(p){return m(p)===l},qe.isFragment=function(p){return m(p)===r},qe.isLazy=function(p){return m(p)===f},qe.isMemo=function(p){return m(p)===d},qe.isPortal=function(p){return m(p)===t},qe.isProfiler=function(p){return m(p)===o},qe.isStrictMode=function(p){return m(p)===n},qe.isSuspense=function(p){return m(p)===c},qe.isSuspenseList=function(p){return m(p)===u},qe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===o||p===n||p===c||p===u||p===g||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===i||p.$$typeof===a||p.$$typeof===l||p.$$typeof===h||p.getModuleId!==void 0)},qe.typeOf=m,qe}var Qe={};/**
|
|
58
58
|
* @license React
|
|
59
59
|
* react-is.development.js
|
|
60
60
|
*
|
|
@@ -62,18 +62,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var nd;function Sv(){return nd||(nd=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,p=!1,m=!1,b=!1,y=!1,I;I=Symbol.for("react.module.reference");function x(ae){return!!(typeof ae=="string"||typeof ae=="function"||ae===r||ae===n||y||ae===i||ae===l||ae===c||b||ae===g||h||p||m||typeof ae=="object"&&ae!==null&&(ae.$$typeof===f||ae.$$typeof===d||ae.$$typeof===o||ae.$$typeof===a||ae.$$typeof===s||ae.$$typeof===I||ae.getModuleId!==void 0))}function v(ae){if(typeof ae=="object"&&ae!==null){var Qe=ae.$$typeof;switch(Qe){case e:var ze=ae.type;switch(ze){case r:case n:case i:case l:case c:return ze;default:var Zt=ze&&ze.$$typeof;switch(Zt){case u:case a:case s:case f:case d:case o:return Zt;default:return Qe}}case t:return Qe}}}var S=a,E=o,w=e,T=s,k=r,V=f,C=d,N=t,F=n,P=i,j=l,B=c,U=!1,Q=!1;function $(ae){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(ae){return Q||(Q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(ae){return v(ae)===a}function _(ae){return v(ae)===o}function X(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===e}function K(ae){return v(ae)===s}function ee(ae){return v(ae)===r}function D(ae){return v(ae)===f}function Z(ae){return v(ae)===d}function ne(ae){return v(ae)===t}function ce(ae){return v(ae)===n}function Ee(ae){return v(ae)===i}function z(ae){return v(ae)===l}function Re(ae){return v(ae)===c}Oe.ContextConsumer=S,Oe.ContextProvider=E,Oe.Element=w,Oe.ForwardRef=T,Oe.Fragment=k,Oe.Lazy=V,Oe.Memo=C,Oe.Portal=N,Oe.Profiler=F,Oe.StrictMode=P,Oe.Suspense=j,Oe.SuspenseList=B,Oe.isAsyncMode=$,Oe.isConcurrentMode=L,Oe.isContextConsumer=G,Oe.isContextProvider=_,Oe.isElement=X,Oe.isForwardRef=K,Oe.isFragment=ee,Oe.isLazy=D,Oe.isMemo=Z,Oe.isPortal=ne,Oe.isProfiler=ce,Oe.isStrictMode=Ee,Oe.isSuspense=z,Oe.isSuspenseList=Re,Oe.isValidElementType=x,Oe.typeOf=v}()),Oe}var id;function wv(){return id||(id=1,process.env.NODE_ENV==="production"?Mo.exports=Iv():Mo.exports=Sv()),Mo.exports}var $s=wv();function od(e,t,r){var i=R.useRef({});return(!("value"in i.current)||r(i.current.condition,t))&&(i.current.value=e(),i.current.condition=t),i.current.value}var Av=Number(O.version.split(".")[0]),ad=function(t,r){typeof t=="function"?t(r):pe(t)==="object"&&t&&"current"in t&&(t.current=r)},Ds=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=r.filter(Boolean);return n.length<=1?n[0]:function(o){r.forEach(function(a){ad(a,o)})}},sd=function(t){var r,i;if(!t)return!1;if(ud(t)&&Av>=19)return!0;var n=$s.isMemo(t)?t.type.type:t.type;return!(typeof n=="function"&&!((r=n.prototype)!==null&&r!==void 0&&r.render)&&n.$$typeof!==$s.ForwardRef||typeof t=="function"&&!((i=t.prototype)!==null&&i!==void 0&&i.render)&&t.$$typeof!==$s.ForwardRef)};function ud(e){return O.isValidElement(e)&&!Zc(e)}var ld=function(t){if(t&&ud(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null};function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cd(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Kc(i.key),i)}}function yt(e,t,r){return t&&cd(e.prototype,t),r&&cd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gi(e,t){return gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gi(e,t)}function nn(e,t){if(typeof t!="function"&&t!==null)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&&gi(e,t)}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hi(e)}function _s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_s=function(){return!!e})()}function ve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tv(e,t){if(t&&(pe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ve(e)}function on(e){var t=_s();return function(){var r,i=hi(e);if(t){var n=hi(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return Tv(this,r)}}function Gs(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Ov(e){if(Array.isArray(e))return Gs(e)}function dd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hs(e,t){if(e){if(typeof e=="string")return Gs(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gs(e,t):void 0}}function kv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
66
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
67
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,t){return hd(e)||Pv(e,t)||Hs(e,t)||vd()}function vi(e){for(var t=0,r,i=0,n=e.length;n>=4;++i,n-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function yr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nv(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var bd="data-rc-order",yd="data-rc-priority",Fv="rc-util-key",Ws=new Map;function Cd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Fv}function jo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Rv(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function zs(e){return Array.from((Ws.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function xd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!yr())return null;var r=t.csp,i=t.prepend,n=t.priority,o=n===void 0?0:n,a=Rv(i),u=a==="prependQueue",s=document.createElement("style");s.setAttribute(bd,a),u&&o&&s.setAttribute(yd,"".concat(o)),r!=null&&r.nonce&&(s.nonce=r?.nonce),s.innerHTML=e;var l=jo(t),c=l.firstChild;if(i){if(u){var d=(t.styles||zs(l)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(bd)))return!1;var g=Number(f.getAttribute(yd)||0);return o>=g});if(d.length)return l.insertBefore(s,d[d.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function Ed(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=jo(t);return(t.styles||zs(r)).find(function(i){return i.getAttribute(Cd(t))===e})}function Id(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ed(e,t);if(r){var i=jo(t);i.removeChild(r)}}function Mv(e,t){var r=Ws.get(e);if(!r||!Nv(document,r)){var i=xd("",t),n=i.parentNode;Ws.set(e,n),e.removeChild(i)}}function wn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=jo(r),n=zs(i),o=W(W({},r),{},{styles:n});Mv(i,o);var a=Ed(t,o);if(a){var u,s;if((u=o.csp)!==null&&u!==void 0&&u.nonce&&a.nonce!==((s=o.csp)===null||s===void 0?void 0:s.nonce)){var l;a.nonce=(l=o.csp)===null||l===void 0?void 0:l.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var c=xd(e,o);return c.setAttribute(Cd(o),t),c}function Sd(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function dt(e,t){if(e==null)return{};var r,i,n=Sd(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xs(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function n(o,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=i.has(o);if(Ye(!s,"Warning: There may be circular references"),s)return!1;if(o===a)return!0;if(r&&u>1)return!1;i.add(o);var l=u+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var c=0;c<o.length;c++)if(!n(o[c],a[c],l))return!1;return!0}if(o&&a&&pe(o)==="object"&&pe(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(f){return n(o[f],a[f],l)})}return!1}return n(e,t)}var Vv="%";function Us(e){return e.join(Vv)}var jv=function(){function e(t){bt(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),H(this,"extracted",new Set),this.instanceId=t}return yt(e,[{key:"get",value:function(r){return this.opGet(Us(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,i){return this.opUpdate(Us(r),i)}},{key:"opUpdate",value:function(r,i){var n=this.cache.get(r),o=i(n);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),An="data-token-hash",er="data-css-hash",Lv="data-cache-path",Hr="__cssinjs_instance__";function Bv(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(er,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(n){n[Hr]=n[Hr]||e,n[Hr]===e&&document.head.insertBefore(n,r)});var i={};Array.from(document.querySelectorAll("style[".concat(er,"]"))).forEach(function(n){var o=n.getAttribute(er);if(i[o]){if(n[Hr]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else i[o]=!0})}return new jv(e)}var bi=R.createContext({hashPriority:"low",cache:Bv(),defaultCache:!0});function $v(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ys=function(){function e(){bt(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return yt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var i,n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(u){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(u)}}),(i=a)!==null&&i!==void 0&&i.value&&o&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(r){var i;return(i=this.internalGet(r,!0))===null||i===void 0?void 0:i[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,i){var n=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(l,c){var d=fe(l,2),f=d[1];return n.internalGet(c)[1]<f?[c,n.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]),a=fe(o,1),u=a[0];this.delete(u)}this.keys.push(r)}var s=this.cache;r.forEach(function(l,c){if(c===r.length-1)s.set(l,{value:[i,n.cacheCallTimes++]});else{var d=s.get(l);d?d.map||(d.map=new Map):s.set(l,{map:new Map}),s=s.get(l).map}})}},{key:"deleteByPath",value:function(r,i){var n=r.get(i[0]);if(i.length===1){var o;return n.map?r.set(i[0],{map:n.map}):r.delete(i[0]),(o=n.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(n.map,i.slice(1));return(!n.map||n.map.size===0)&&!n.value&&r.delete(i[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(i){return!$v(i,r)}),this.deleteByPath(this.cache,r)}}]),e}();H(Ys,"MAX_CACHE_SIZE",20),H(Ys,"MAX_CACHE_OFFSET",5);var wd=0,Ad=function(){function e(t){bt(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=wd,t.length===0&&Bs(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),wd+=1}return yt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(i,n){return n(r,i)},void 0)}}]),e}(),Js=new Ys;function Zs(e){var t=Array.isArray(e)?e:[e];return Js.has(t)||Js.set(t,new Ad(t)),Js.get(t)}var Dv=new WeakMap,qs={};function _v(e,t){for(var r=Dv,i=0;i<t.length;i+=1){var n=t[i];r.has(n)||r.set(n,new WeakMap),r=r.get(n)}return r.has(qs)||r.set(qs,e()),r.get(qs)}var Td=new WeakMap;function yi(e){var t=Td.get(e)||"";return t||(Object.keys(e).forEach(function(r){var i=e[r];t+=r,i instanceof Ad?t+=i.id:i&&pe(i)==="object"?t+=yi(i):t+=i}),t=vi(t),Td.set(e,t)),t}function Od(e,t){return vi("".concat(t,"_").concat(yi(e)))}var Qs=yr();function Ci(e){return typeof e=="number"?"".concat(e,"px"):e}function Lo(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n)return e;var o=W(W({},i),{},H(H({},An,t),er,r)),a=Object.keys(o).map(function(u){var s=o[u];return s?"".concat(u,'="').concat(s,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Bo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Gv=function(t,r,i){return Object.keys(t).length?".".concat(r).concat(i!=null&&i.scope?".".concat(i.scope):"","{").concat(Object.entries(t).map(function(n){var o=fe(n,2),a=o[0],u=o[1];return"".concat(a,":").concat(u,";")}).join(""),"}"):""},kd=function(t,r,i){var n={},o={};return Object.entries(t).forEach(function(a){var u,s,l=fe(a,2),c=l[0],d=l[1];if(i!=null&&(u=i.preserve)!==null&&u!==void 0&&u[c])o[c]=d;else if((typeof d=="string"||typeof d=="number")&&!(i!=null&&(s=i.ignore)!==null&&s!==void 0&&s[c])){var f,g=Bo(c,i?.prefix);n[g]=typeof d=="number"&&!(i!=null&&(f=i.unitless)!==null&&f!==void 0&&f[c])?"".concat(d,"px"):String(d),o[c]="var(".concat(g,")")}}),[o,Gv(n,r,{scope:i?.scope})]},Pd=process.env.NODE_ENV!=="test"&&yr()?R.useLayoutEffect:R.useEffect,Nd=function(t,r){var i=R.useRef(!0);Pd(function(){return t(i.current)},r),Pd(function(){return i.current=!1,function(){i.current=!0}},[])},Fd=function(t,r){Nd(function(i){if(!i)return t()},r)},Hv=W({},R),Rd=Hv.useInsertionEffect,Wv=function(t,r,i){R.useMemo(t,i),Nd(function(){return r(!0)},i)},zv=Rd?function(e,t,r){return Rd(function(){return e(),t()},r)}:Wv,Xv=W({},R),Uv=Xv.useInsertionEffect,Yv=function(t){var r=[],i=!1;function n(o){if(i){process.env.NODE_ENV!=="production"&&Bs(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(o)}return R.useEffect(function(){return i=!1,function(){i=!0,r.length&&r.forEach(function(o){return o()})}},t),n},Jv=function(){return function(t){t()}},Zv=typeof Uv<"u"?Yv:Jv;function qv(){return!1}var Ks=!1;function Qv(){return Ks}const Kv=process.env.NODE_ENV==="production"?qv:Qv;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var $o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if($o&&typeof $o.webpackHotUpdate=="function"){var eb=$o.webpackHotUpdate;$o.webpackHotUpdate=function(){return Ks=!0,setTimeout(function(){Ks=!1},0),eb.apply(void 0,arguments)}}}function eu(e,t,r,i,n){var o=R.useContext(bi),a=o.cache,u=[e].concat(de(t)),s=Us(u),l=Zv([s]),c=Kv(),d=function(p){a.opUpdate(s,function(m){var b=m||[void 0,void 0],y=fe(b,2),I=y[0],x=I===void 0?0:I,v=y[1],S=v;process.env.NODE_ENV!=="production"&&v&&c&&(i?.(S,c),S=null);var E=S||r(),w=[x,E];return p?p(w):w})};R.useMemo(function(){d()},[s]);var f=a.opGet(s);process.env.NODE_ENV!=="production"&&!f&&(d(),f=a.opGet(s));var g=f[1];return zv(function(){n?.(g)},function(h){return d(function(p){var m=fe(p,2),b=m[0],y=m[1];return h&&b===0&&n?.(g),[b+1,y]}),function(){a.opUpdate(s,function(p){var m=p||[],b=fe(m,2),y=b[0],I=y===void 0?0:y,x=b[1],v=I-1;return v===0?(l(function(){(h||!a.opGet(s))&&i?.(x,!1)}),null):[I-1,x]})}},[s]),g}var tb={},rb=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",an=new Map;function nb(e){an.set(e,(an.get(e)||0)+1)}function ib(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(An,'="').concat(e,'"]'));r.forEach(function(i){if(i[Hr]===t){var n;(n=i.parentNode)===null||n===void 0||n.removeChild(i)}})}}var ob=0;function ab(e,t){an.set(e,(an.get(e)||0)-1);var r=new Set;an.forEach(function(i,n){i<=0&&r.add(n)}),an.size-r.size>ob&&r.forEach(function(i){ib(i,t),an.delete(i)})}var sb=function(t,r,i,n){var o=i.getDerivativeToken(t),a=W(W({},o),r);return n&&(a=n(a)),a},Md="token";function ub(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=O.useContext(bi),n=i.cache.instanceId,o=i.container,a=r.salt,u=a===void 0?"":a,s=r.override,l=s===void 0?tb:s,c=r.formatToken,d=r.getComputedToken,f=r.cssVar,g=_v(function(){return Object.assign.apply(Object,[{}].concat(de(t)))},t),h=yi(g),p=yi(l),m=f?yi(f):"",b=eu(Md,[u,e.id,h,p,m],function(){var y,I=d?d(g,l,e):sb(g,l,e,c),x=W({},I),v="";if(f){var S=kd(I,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),E=fe(S,2);I=E[0],v=E[1]}var w=Od(I,u);I._tokenKey=w,x._tokenKey=Od(x,u);var T=(y=f?.key)!==null&&y!==void 0?y:w;I._themeKey=T,nb(T);var k="".concat(rb,"-").concat(vi(w));return I._hashId=k,[I,k,x,v,f?.key||""]},function(y){ab(y[0]._themeKey,n)},function(y){var I=fe(y,4),x=I[0],v=I[3];if(f&&v){var S=wn(v,vi("css-variables-".concat(x._themeKey)),{mark:er,prepend:"queue",attachTo:o,priority:-999});S[Hr]=n,S.setAttribute(An,x._themeKey)}});return b}var lb=function(t,r,i){var n=fe(t,5),o=n[2],a=n[3],u=n[4],s=i||{},l=s.plain;if(!a)return null;var c=o._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=Lo(a,u,c,f,l);return[d,c,g]},cb={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},Vd="comm",jd="rule",Ld="decl",db="@import",fb="@namespace",pb="@keyframes",mb="@layer",Bd=Math.abs,tu=String.fromCharCode;function $d(e){return e.trim()}function Do(e,t,r){return e.replace(t,r)}function gb(e,t,r){return e.indexOf(t,r)}function Tn(e,t){return e.charCodeAt(t)|0}function On(e,t,r){return e.slice(t,r)}function sr(e){return e.length}function hb(e){return e.length}function _o(e,t){return t.push(e),e}var Go=1,kn=1,Dd=0,Dt=0,ot=0,Pn="";function ru(e,t,r,i,n,o,a,u){return{value:e,root:t,parent:r,type:i,props:n,children:o,line:Go,column:kn,length:a,return:"",siblings:u}}function vb(){return ot}function bb(){return ot=Dt>0?Tn(Pn,--Dt):0,kn--,ot===10&&(kn=1,Go--),ot}function tr(){return ot=Dt<Dd?Tn(Pn,Dt++):0,kn++,ot===10&&(kn=1,Go++),ot}function Wr(){return Tn(Pn,Dt)}function Ho(){return Dt}function Wo(e,t){return On(Pn,e,t)}function xi(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 Go=kn=1,Dd=sr(Pn=e),Dt=0,[]}function Cb(e){return Pn="",e}function nu(e){return $d(Wo(Dt-1,iu(e===91?e+2:e===40?e+1:e)))}function xb(e){for(;(ot=Wr())&&ot<33;)tr();return xi(e)>2||xi(ot)>3?"":" "}function Eb(e,t){for(;--t&&tr()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Wo(e,Ho()+(t<6&&Wr()==32&&tr()==32))}function iu(e){for(;tr();)switch(ot){case e:return Dt;case 34:case 39:e!==34&&e!==39&&iu(ot);break;case 40:e===41&&iu(e);break;case 92:tr();break}return Dt}function Ib(e,t){for(;tr()&&e+ot!==57;)if(e+ot===84&&Wr()===47)break;return"/*"+Wo(t,Dt-1)+"*"+tu(e===47?e:tr())}function Sb(e){for(;!xi(Wr());)tr();return Wo(e,Dt)}function wb(e){return Cb(zo("",null,null,null,[""],e=yb(e),0,[0],e))}function zo(e,t,r,i,n,o,a,u,s){for(var l=0,c=0,d=a,f=0,g=0,h=0,p=1,m=1,b=1,y=0,I="",x=n,v=o,S=i,E=I;m;)switch(h=y,y=tr()){case 40:if(h!=108&&Tn(E,d-1)==58){gb(E+=Do(nu(y),"&","&\f"),"&\f",Bd(l?u[l-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=nu(y);break;case 9:case 10:case 13:case 32:E+=xb(h);break;case 92:E+=Eb(Ho()-1,7);continue;case 47:switch(Wr()){case 42:case 47:_o(Ab(Ib(tr(),Ho()),t,r,s),s),(xi(h||1)==5||xi(Wr()||1)==5)&&sr(E)&&On(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*p:u[l++]=sr(E)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:b==-1&&(E=Do(E,/\f/g,"")),g>0&&(sr(E)-d||p===0&&h===47)&&_o(g>32?Gd(E+";",i,r,d-1,s):Gd(Do(E," ","")+";",i,r,d-2,s),s);break;case 59:E+=";";default:if(_o(S=_d(E,t,r,l,c,n,u,I,x=[],v=[],d,o),o),y===123)if(c===0)zo(E,t,S,S,x,o,d,u,v);else{switch(f){case 99:if(Tn(E,3)===110)break;case 108:if(Tn(E,2)===97)break;default:c=0;case 100:case 109:case 115:}c?zo(e,S,S,i&&_o(_d(e,S,S,0,0,n,u,I,n,x=[],d,v),v),n,v,d,u,i?x:v):zo(E,S,S,S,[""],v,0,u,v)}}l=c=g=0,p=b=1,I=E="",d=a;break;case 58:d=1+sr(E),g=h;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&bb()==125)continue}switch(E+=tu(y),y*p){case 38:b=c>0?1:(E+="\f",-1);break;case 44:u[l++]=(sr(E)-1)*b,b=1;break;case 64:Wr()===45&&(E+=nu(tr())),f=Wr(),c=d=sr(I=E+=Sb(Ho())),y++;break;case 45:h===45&&sr(E)==2&&(p=0)}}return o}function _d(e,t,r,i,n,o,a,u,s,l,c,d){for(var f=n-1,g=n===0?o:[""],h=hb(g),p=0,m=0,b=0;p<i;++p)for(var y=0,I=On(e,f+1,f=Bd(m=a[p])),x=e;y<h;++y)(x=$d(m>0?g[y]+" "+I:Do(I,/&\f/g,g[y])))&&(s[b++]=x);return ru(e,t,r,n===0?jd:u,s,l,c,d)}function Ab(e,t,r,i){return ru(e,t,r,Vd,tu(vb()),On(e,2,-2),0,i)}function Gd(e,t,r,i,n){return ru(e,t,r,Ld,On(e,0,i),On(e,i+1,-1),i,n)}function ou(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function Tb(e,t,r,i){switch(e.type){case mb:if(e.children.length)break;case db:case fb:case Ld:return e.return=e.return||e.value;case Vd:return"";case pb:return e.return=e.value+"{"+ou(e.children,i)+"}";case jd:if(!sr(e.value=e.props.join(",")))return""}return sr(r=ou(e.children,i))?e.return=e.value+"{"+r+"}":""}function Hd(e,t){var r=t.path,i=t.parentSelectors;Ye(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(i.length?" Selector: ".concat(i.join(" | ")):""))}var Ob=function(t,r,i){if(t==="content"){var n=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof r!="string"||o.indexOf(r)===-1&&!n.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&Hd("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),i)}},kb=function(t,r,i){t==="animation"&&i.hashId&&r!=="none"&&Hd("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),i)},Wd="data-ant-cssinjs-cache-path",zd="_FILE_STYLE__",sn,Xd=!0;function Pb(){if(!sn&&(sn={},yr())){var e=document.createElement("div");e.className=Wd,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(/"$/,""),t.split(";").forEach(function(n){var o=n.split(":"),a=fe(o,2),u=a[0],s=a[1];sn[u]=s});var r=document.querySelector("style[".concat(Wd,"]"));if(r){var i;Xd=!1,(i=r.parentNode)===null||i===void 0||i.removeChild(r)}document.body.removeChild(e)}}function Nb(e){return Pb(),!!sn[e]}function Fb(e){var t=sn[e],r=null;if(t&&yr())if(Xd)r=zd;else{var i=document.querySelector("style[".concat(er,'="').concat(sn[e],'"]'));i?r=i.innerHTML:delete sn[e]}return[r,t]}var Ud="_skip_check_",Yd="_multi_value_";function Xo(e){var t=ou(wb(e),Tb);return t.replace(/\{%%%\:[^;];}/g,";")}function Rb(e){return pe(e)==="object"&&e&&(Ud in e||Yd in e)}function Jd(e,t,r){if(!t)return e;var i=".".concat(t),n=r==="low"?":where(".concat(i,")"):i,o=e.split(",").map(function(a){var u,s=a.trim().split(/\s+/),l=s[0]||"",c=((u=l.match(/^\w+/))===null||u===void 0?void 0:u[0])||"";return l="".concat(c).concat(n).concat(l.slice(c.length)),[l].concat(de(s.slice(1))).join(" ")});return o.join(",")}var Mb=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},n=i.root,o=i.injectHash,a=i.parentSelectors,u=r.hashId,s=r.layer,l=r.path,c=r.hashPriority,d=r.transformers,f=d===void 0?[]:d,g=r.linters,h=g===void 0?[]:g,p="",m={};function b(x){var v=x.getName(u);if(!m[v]){var S=e(x.style,r,{root:!1,parentSelectors:a}),E=fe(S,1),w=E[0];m[v]="@keyframes ".concat(x.getName(u)).concat(w)}}function y(x){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(S){Array.isArray(S)?y(S,v):S&&v.push(S)}),v}var I=y(Array.isArray(t)?t:[t]);return I.forEach(function(x){var v=typeof x=="string"&&!n?{}:x;if(typeof v=="string")p+="".concat(v,`
|
|
68
|
-
`);else if(v._keyframe)b(v);else{var
|
|
69
|
-
`))):p="{".concat(p,"}"),[p,m]};function Zd(e,t){return vi("".concat(e.join("%")).concat(t))}function Vb(){return null}var qd="style";function au(e,t){var r=e.token,i=e.path,n=e.hashId,o=e.layer,a=e.nonce,u=e.clientOnly,s=e.order,l=s===void 0?0:s,c=R.useContext(bi),d=c.autoClear,f=c.mock,g=c.defaultCache,h=c.hashPriority,p=c.container,m=c.ssrInline,b=c.transformers,y=c.linters,I=c.cache,x=c.layer,v=r._tokenKey,S=[v];x&&S.push("layer"),S.push.apply(S,de(i));var E=Qs;process.env.NODE_ENV!=="production"&&f!==void 0&&(E=f==="client");var w=eu(qd,S,function(){var N=S.join("|");if(Nb(N)){var F=Fb(N),P=fe(F,2),j=P[0],B=P[1];if(j)return[j,v,B,{},u,l]}var U=t(),Q=Mb(U,{hashId:n,hashPriority:h,layer:x?o:void 0,path:i.join("-"),transformers:b,linters:y}),$=fe(Q,2),L=$[0],G=$[1],_=Xo(L),X=Zd(S,_);return[_,v,X,G,u,l]},function(N,F){var P=fe(N,3),j=P[2];(F||d)&&Qs&&Id(j,{mark:er,attachTo:p})},function(N){var F=fe(N,4),P=F[0];F[1];var j=F[2],B=F[3];if(E&&P!==zd){var U={mark:er,prepend:x?!1:"queue",attachTo:p,priority:l},Q=typeof a=="function"?a():a;Q&&(U.csp={nonce:Q});var $=[],L=[];Object.keys(B).forEach(function(_){_.startsWith("@layer")?$.push(_):L.push(_)}),$.forEach(function(_){wn(Xo(B[_]),"_layer-".concat(_),W(W({},U),{},{prepend:!0}))});var G=wn(P,j,U);G[Hr]=I.instanceId,G.setAttribute(An,v),process.env.NODE_ENV!=="production"&&G.setAttribute(Lv,S.join("|")),L.forEach(function(_){wn(Xo(B[_]),"_effect-".concat(_),U)})}}),T=fe(w,3),k=T[0],V=T[1],C=T[2];return function(N){var F;return!m||E||!g?F=R.createElement(Vb,null):F=R.createElement("style",se({},H(H({},An,V),er,C),{dangerouslySetInnerHTML:{__html:k}})),R.createElement(R.Fragment,null,F,N)}}var jb=function(t,r,i){var n=fe(t,6),o=n[0],a=n[1],u=n[2],s=n[3],l=n[4],c=n[5],d=i||{},f=d.plain;if(l)return null;var g=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return g=Lo(o,a,u,h,f),s&&Object.keys(s).forEach(function(p){if(!r[p]){r[p]=!0;var m=Xo(s[p]),b=Lo(m,a,"_effect-".concat(p),h,f);p.startsWith("@layer")?g=b+g:g+=b}}),[c,u,g]},Qd="cssVar",Lb=function(t,r){var i=t.key,n=t.prefix,o=t.unitless,a=t.ignore,u=t.token,s=t.scope,l=s===void 0?"":s,c=O.useContext(bi),d=c.cache.instanceId,f=c.container,g=u._tokenKey,h=[].concat(de(t.path),[i,l,g]),p=eu(Qd,h,function(){var m=r(),b=kd(m,i,{prefix:n,unitless:o,ignore:a,scope:l}),y=fe(b,2),I=y[0],x=y[1],v=Zd(h,x);return[I,x,v,i]},function(m){var b=fe(m,3),y=b[2];Qs&&Id(y,{mark:er,attachTo:f})},function(m){var b=fe(m,3),y=b[1],I=b[2];if(y){var x=wn(y,I,{mark:er,prepend:"queue",attachTo:f,priority:-999});x[Hr]=d,x.setAttribute(An,i)}});return p},Bb=function(t,r,i){var n=fe(t,4),o=n[1],a=n[2],u=n[3],s=i||{},l=s.plain;if(!o)return null;var c=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},f=Lo(o,u,a,d,l);return[c,a,f]};H(H(H({},qd,jb),Md,lb),Qd,Bb);function Nn(e){return e.notSplit=!0,e}Nn(["borderTop","borderBottom"]),Nn(["borderTop"]),Nn(["borderBottom"]),Nn(["borderLeft","borderRight"]),Nn(["borderLeft"]),Nn(["borderRight"]);var $b=O.createContext({});function Db(e){return hd(e)||dd(e)||Hs(e)||vd()}function ur(e,t){for(var r=e,i=0;i<t.length;i+=1){if(r==null)return;r=r[t[i]]}return r}function Kd(e,t,r,i){if(!t.length)return r;var n=Db(t),o=n[0],a=n.slice(1),u;return!e&&typeof o=="number"?u=[]:Array.isArray(e)?u=de(e):u=W({},e),i&&r===void 0&&a.length===1?delete u[o][a[0]]:u[o]=Kd(u[o],a,r,i),u}function rr(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&i&&r===void 0&&!ur(e,t.slice(0,-1))?e:Kd(e,t,r,i)}function _b(e){return pe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ef(e){return Array.isArray(e)?[]:{}}var Gb=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Fn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=ef(t[0]);return t.forEach(function(n){function o(a,u){var s=new Set(u),l=ur(n,a),c=Array.isArray(l);if(c||_b(l)){if(!s.has(l)){s.add(l);var d=ur(i,a);c?i=rr(i,a,[]):(!d||pe(d)!=="object")&&(i=rr(i,a,ef(l))),Gb(l).forEach(function(f){o([].concat(de(a),[f]),s)})}}else i=rr(i,a,l)}o([])}),i}function tf(){}let Cr=null;function Hb(){Cr=null,qc()}let rf=tf;process.env.NODE_ENV!=="production"&&(rf=(e,t,r)=>{Ye(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Hb()});const Rn=rf,nf=R.createContext({}),Ei=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=R.useContext(nf),r=(i,n,o)=>{if(!i)if(t===!1&&n==="deprecated"){const a=Cr;Cr||(Cr={}),Cr[e]=Cr[e]||[],Cr[e].includes(o||"")||Cr[e].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",Cr)}else process.env.NODE_ENV!=="production"&&Rn(i,e,o)};return r.deprecated=(i,n,o,a)=>{r(i,"deprecated",`\`${n}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=tf,e},Wb=O.createContext(void 0);var zb={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Xb=W(W({},zb),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});const Ub={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};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"]},Xb),Object.assign({},Ub);const kt="${label} is not a valid ${type}",Uo={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},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:kt,method:kt,array:kt,object:kt,number:kt,date:kt,boolean:kt,integer:kt,float:kt,regexp:kt,email:kt,url:kt,hex:kt},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}"}}}};Object.assign({},Uo.Modal);let Yo=[];const of=()=>Yo.reduce((e,t)=>Object.assign(Object.assign({},e),t),Uo.Modal);function Yb(e){if(e){const t=Object.assign({},e);return Yo.push(t),of(),()=>{Yo=Yo.filter(r=>r!==t),of()}}Object.assign({},Uo.Modal)}const af=O.createContext(void 0),sf="internalMark",uf=e=>{const{locale:t={},children:r,_ANT_MARK__:i}=e;if(process.env.NODE_ENV!=="production"){const o=Ei("LocaleProvider");process.env.NODE_ENV!=="production"&&o(i===sf,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}R.useEffect(()=>Yb(t?.Modal),[t]);const n=R.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return R.createElement(af.Provider,{value:n},r)};process.env.NODE_ENV!=="production"&&(uf.displayName="LocaleProvider");const lf={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"},Ii=Object.assign(Object.assign({},lf),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
65
|
+
*/var S0;function f2(){return S0||(S0=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=!1,m=!1,p=!1,b=!1,y=!1,w;w=Symbol.for("react.module.reference");function S(ne){return!!(typeof ne=="string"||typeof ne=="function"||ne===r||ne===o||y||ne===n||ne===c||ne===u||b||ne===g||h||m||p||typeof ne=="object"&&ne!==null&&(ne.$$typeof===f||ne.$$typeof===d||ne.$$typeof===i||ne.$$typeof===a||ne.$$typeof===l||ne.$$typeof===w||ne.getModuleId!==void 0))}function v(ne){if(typeof ne=="object"&&ne!==null){var Ie=ne.$$typeof;switch(Ie){case e:var ve=ne.type;switch(ve){case r:case o:case n:case c:case u:return ve;default:var Ye=ve&&ve.$$typeof;switch(Ye){case s:case a:case l:case f:case d:case i:return Ye;default:return Ie}}case t:return Ie}}}var I=a,O=i,N=e,T=l,P=r,M=f,x=d,$=t,F=o,k=n,j=c,z=u,H=!1,V=!1;function _(ne){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(ne){return V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(ne){return v(ne)===a}function R(ne){return v(ne)===i}function W(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function K(ne){return v(ne)===l}function q(ne){return v(ne)===r}function U(ne){return v(ne)===f}function Q(ne){return v(ne)===d}function Z(ne){return v(ne)===t}function se(ne){return v(ne)===o}function pe(ne){return v(ne)===n}function Y(ne){return v(ne)===c}function Ce(ne){return v(ne)===u}Qe.ContextConsumer=I,Qe.ContextProvider=O,Qe.Element=N,Qe.ForwardRef=T,Qe.Fragment=P,Qe.Lazy=M,Qe.Memo=x,Qe.Portal=$,Qe.Profiler=F,Qe.StrictMode=k,Qe.Suspense=j,Qe.SuspenseList=z,Qe.isAsyncMode=_,Qe.isConcurrentMode=D,Qe.isContextConsumer=B,Qe.isContextProvider=R,Qe.isElement=W,Qe.isForwardRef=K,Qe.isFragment=q,Qe.isLazy=U,Qe.isMemo=Q,Qe.isPortal=Z,Qe.isProfiler=se,Qe.isStrictMode=pe,Qe.isSuspense=Y,Qe.isSuspenseList=Ce,Qe.isValidElementType=S,Qe.typeOf=v}()),Qe}var E0;function m2(){return E0||(E0=1,process.env.NODE_ENV==="production"?qa.exports=d2():qa.exports=f2()),qa.exports}var Fc=m2();function $c(e,t,r){var n=A.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var p2=Number(E.version.split(".")[0]),Mc=function(t,r){typeof t=="function"?t(r):we(t)==="object"&&t&&"current"in t&&(t.current=r)},Ei=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(i){r.forEach(function(a){Mc(a,i)})}},Qa=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $c(function(){return Ei.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},Ii=function(t){var r,n;if(!t)return!1;if(I0(t)&&p2>=19)return!0;var o=Fc.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==Fc.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==Fc.ForwardRef)};function I0(e){return E.isValidElement(e)&&!v0(e)}var Ka=function(t){if(t&&I0(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},jc=A.createContext(null);function g2(e){var t=e.children,r=e.onBatchResize,n=A.useRef(0),o=A.useRef([]),i=A.useContext(jc),a=A.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return A.createElement(jc.Provider,{value:a},t)}var A0=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),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(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t}()}(),Rc=typeof window<"u"&&typeof document<"u"&&window.document===document,es=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),h2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(es):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),v2=2;function b2(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){h2(i)}function s(){var l=Date.now();if(r){if(l-o<v2)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=l}return s}var y2=20,C2=["top","right","bottom","left","width","height","size","weight"],x2=typeof MutationObserver<"u",w2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=b2(this.refresh.bind(this),y2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Rc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),x2?(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(){!Rc||!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(t){var r=t.propertyName,n=r===void 0?"":r,o=C2.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),N0=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ao=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||es},O0=rs(0,0,0,0);function ts(e){return parseFloat(e)||0}function T0(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+ts(i)},0)}function S2(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=ts(a)}return r}function E2(e){var t=e.getBBox();return rs(0,0,t.width,t.height)}function I2(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return O0;var n=Ao(e).getComputedStyle(e),o=S2(n),i=o.left+o.right,a=o.top+o.bottom,s=ts(n.width),l=ts(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=T0(n,"left","right")+i),Math.round(l+a)!==r&&(l-=T0(n,"top","bottom")+a)),!N2(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return rs(o.left,o.top,s,l)}var A2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ao(e).SVGGraphicsElement}:function(e){return e instanceof Ao(e).SVGElement&&typeof e.getBBox=="function"}}();function N2(e){return e===Ao(e).document.documentElement}function O2(e){return Rc?A2(e)?E2(e):I2(e):O0}function T2(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return N0(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function rs(e,t,r,n){return{x:e,y:t,width:r,height:n}}var P2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=rs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=O2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),k2=function(){function e(t,r){var n=T2(r);N0(this,{target:t,contentRect:n})}return e}(),F2=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new A0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ao(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new P2(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ao(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new k2(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),P0=typeof WeakMap<"u"?new WeakMap:new A0,k0=function(){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 r=w2.getInstance(),n=new F2(t,r,this);P0.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){k0.prototype[e]=function(){var t;return(t=P0.get(this))[e].apply(t,arguments)}});var $2=function(){return typeof es.ResizeObserver<"u"?es.ResizeObserver:k0}(),hn=new Map;function F0(e){e.forEach(function(t){var r,n=t.target;(r=hn.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var $0=new $2(F0);process.env.NODE_ENV,process.env.NODE_ENV;function M2(e,t){hn.has(e)||(hn.set(e,new Set),$0.observe(e)),hn.get(e).add(t)}function j2(e,t){hn.has(e)&&(hn.get(e).delete(t),hn.get(e).size||($0.unobserve(e),hn.delete(e)))}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C0(n.key),n)}}function Pt(e,t,r){return t&&M0(e.prototype,t),r&&M0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ai(e,t)}function Gr(e,t){if(typeof t!="function"&&t!==null)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&&Ai(e,t)}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ni(e)}function Lc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lc=function(){return!!e})()}function be(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R2(e,t){if(t&&(we(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return be(e)}function Hr(e){var t=Lc();return function(){var r,n=Ni(e);if(t){var o=Ni(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return R2(this,r)}}var L2=function(e){Gr(r,e);var t=Hr(r);function r(){return Tt(this,r),t.apply(this,arguments)}return Pt(r,[{key:"render",value:function(){return this.props.children}}]),r}(A.Component);function D2(e,t){var r=e.children,n=e.disabled,o=A.useRef(null),i=A.useRef(null),a=A.useContext(jc),s=typeof r=="function",l=s?r(o):r,c=A.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&A.isValidElement(l)&&Ii(l),d=u?Ka(l):null,f=Qa(d,o),g=function(){var b;return Za(o.current)||(o.current&&we(o.current)==="object"?Za((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||Za(i.current)};A.useImperativeHandle(t,function(){return g()});var h=A.useRef(e);h.current=e;var m=A.useCallback(function(p){var b=h.current,y=b.onResize,w=b.data,S=p.getBoundingClientRect(),v=S.width,I=S.height,O=p.offsetWidth,N=p.offsetHeight,T=Math.floor(v),P=Math.floor(I);if(c.current.width!==T||c.current.height!==P||c.current.offsetWidth!==O||c.current.offsetHeight!==N){var M={width:T,height:P,offsetWidth:O,offsetHeight:N};c.current=M;var x=O===Math.round(v)?v:O,$=N===Math.round(I)?I:N,F=G(G({},M),{},{offsetWidth:x,offsetHeight:$});a?.(F,p,w),y&&Promise.resolve().then(function(){y(F,p)})}},[]);return A.useEffect(function(){var p=g();return p&&!n&&M2(p,m),function(){return j2(p,m)}},[o.current,n]),A.createElement(L2,{ref:i},u?A.cloneElement(l,{ref:f}):l)}var j0=A.forwardRef(D2);process.env.NODE_ENV!=="production"&&(j0.displayName="SingleObserver");var _2="rc-observer-key";function V2(e,t){var r=e.children,n=typeof r=="function"?[r]:Ja(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Io(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Io(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,i){var a=o?.key||"".concat(_2,"-").concat(i);return A.createElement(j0,le({},e,{key:a,ref:i===0?t:void 0}),o)})}var ns=A.forwardRef(V2);process.env.NODE_ENV!=="production"&&(ns.displayName="ResizeObserver"),ns.Collection=g2;function Dc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function B2(e){if(Array.isArray(e))return Dc(e)}function R0(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _c(e,t){if(e){if(typeof e=="string")return Dc(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dc(e,t):void 0}}function z2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
66
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(e){return B2(e)||R0(e)||_c(e)||z2()}var L0=function(t){return+setTimeout(t,16)},D0=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(L0=function(t){return window.requestAnimationFrame(t)},D0=function(t){return window.cancelAnimationFrame(t)});var _0=0,os=new Map;function V0(e){os.delete(e)}var tn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_0+=1;var n=_0;function o(i){if(i===0)V0(n),t();else{var a=L0(function(){o(i-1)});os.set(n,a)}}return o(r),n};tn.cancel=function(e){var t=os.get(e);return V0(e),D0(t)},process.env.NODE_ENV!=="production"&&(tn.ids=function(){return os});function B0(e){if(Array.isArray(e))return e}function G2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function z0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
67
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(e,t){return B0(e)||G2(e,t)||_c(e,t)||z0()}function Oi(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function lr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function H2(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var G0="data-rc-order",H0="data-rc-priority",W2="rc-util-key",Vc=new Map;function W0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):W2}function is(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function U2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Bc(e){return Array.from((Vc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function U0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!lr())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=U2(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(G0,a),s&&i&&l.setAttribute(H0,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=is(t),u=c.firstChild;if(n){if(s){var d=(t.styles||Bc(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(G0)))return!1;var g=Number(f.getAttribute(H0)||0);return i>=g});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function X0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=is(t);return(t.styles||Bc(r)).find(function(n){return n.getAttribute(W0(t))===e})}function Ti(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=X0(e,t);if(r){var n=is(t);n.removeChild(r)}}function X2(e,t){var r=Vc.get(e);if(!r||!H2(document,r)){var n=U0("",t),o=n.parentNode;Vc.set(e,o),e.removeChild(n)}}function vn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=is(r),o=Bc(n),i=G(G({},r),{},{styles:o});X2(n,i);var a=X0(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=U0(e,i);return u.setAttribute(W0(i),t),u}function Y2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function vt(e,t){if(e==null)return{};var r,n,o=Y2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function zc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(ht(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&we(i)==="object"&&we(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return!1}return o(e,t)}var J2="%";function Gc(e){return e.join(J2)}var Z2=function(){function e(t){Tt(this,e),X(this,"instanceId",void 0),X(this,"cache",new Map),X(this,"extracted",new Set),this.instanceId=t}return Pt(e,[{key:"get",value:function(r){return this.opGet(Gc(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Gc(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e}(),No="data-token-hash",Wr="data-css-hash",q2="data-cache-path",zn="__cssinjs_instance__";function Q2(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Wr,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[zn]=o[zn]||e,o[zn]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Wr,"]"))).forEach(function(o){var i=o.getAttribute(Wr);if(n[i]){if(o[zn]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new Z2(e)}var Pi=A.createContext({hashPriority:"low",cache:Q2(),defaultCache:!0});function K2(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Hc=function(){function e(){Tt(this,e),X(this,"cache",void 0),X(this,"keys",void 0),X(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Pt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=ie(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=ie(i,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var i;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!K2(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();X(Hc,"MAX_CACHE_SIZE",20),X(Hc,"MAX_CACHE_OFFSET",5);var Y0=0,J0=function(){function e(t){Tt(this,e),X(this,"derivatives",void 0),X(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Y0,t.length===0&&Io(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Y0+=1}return Pt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}(),Wc=new Hc;function Uc(e){var t=Array.isArray(e)?e:[e];return Wc.has(t)||Wc.set(t,new J0(t)),Wc.get(t)}var eC=new WeakMap,Xc={};function tC(e,t){for(var r=eC,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Xc)||r.set(Xc,e()),r.get(Xc)}var Z0=new WeakMap;function ki(e){var t=Z0.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof J0?t+=n.id:n&&we(n)==="object"?t+=ki(n):t+=n}),t=Oi(t),Z0.set(e,t)),t}function q0(e,t){return Oi("".concat(t,"_").concat(ki(e)))}var Yc=lr();function st(e){return typeof e=="number"?"".concat(e,"px"):e}function as(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=G(G({},n),{},X(X({},No,t),Wr,r)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var ss=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},rC=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=ie(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Q0=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=ie(a,2),u=c[0],d=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var f,g=ss(u,n?.prefix);o[g]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(g,")")}}),[i,rC(o,r,{scope:n?.scope})]},K0=process.env.NODE_ENV!=="test"&&lr()?A.useLayoutEffect:A.useEffect,rr=function(t,r){var n=A.useRef(!0);K0(function(){return t(n.current)},r),K0(function(){return n.current=!1,function(){n.current=!0}},[])},em=function(t,r){rr(function(n){if(!n)return t()},r)},nC=G({},A),tm=nC.useInsertionEffect,oC=function(t,r,n){A.useMemo(t,n),rr(function(){return r(!0)},n)},iC=tm?function(e,t,r){return tm(function(){return e(),t()},r)}:oC,aC=G({},A),sC=aC.useInsertionEffect,lC=function(t){var r=[],n=!1;function o(i){if(n){process.env.NODE_ENV!=="production"&&Io(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return A.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},cC=function(){return function(t){t()}},uC=typeof sC<"u"?lC:cC;function dC(){return!1}var Jc=!1;function fC(){return Jc}const mC=process.env.NODE_ENV==="production"?dC:fC;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(ls&&typeof ls.webpackHotUpdate=="function"){var pC=ls.webpackHotUpdate;ls.webpackHotUpdate=function(){return Jc=!0,setTimeout(function(){Jc=!1},0),pC.apply(void 0,arguments)}}}function Zc(e,t,r,n,o){var i=A.useContext(Pi),a=i.cache,s=[e].concat(ue(t)),l=Gc(s),c=uC([l]),u=mC(),d=function(m){a.opUpdate(l,function(p){var b=p||[void 0,void 0],y=ie(b,2),w=y[0],S=w===void 0?0:w,v=y[1],I=v;process.env.NODE_ENV!=="production"&&v&&u&&(n?.(I,u),I=null);var O=I||r(),N=[S,O];return m?m(N):N})};A.useMemo(function(){d()},[l]);var f=a.opGet(l);process.env.NODE_ENV!=="production"&&!f&&(d(),f=a.opGet(l));var g=f[1];return iC(function(){o?.(g)},function(h){return d(function(m){var p=ie(m,2),b=p[0],y=p[1];return h&&b===0&&o?.(g),[b+1,y]}),function(){a.opUpdate(l,function(m){var p=m||[],b=ie(p,2),y=b[0],w=y===void 0?0:y,S=b[1],v=w-1;return v===0?(c(function(){(h||!a.opGet(l))&&n?.(S,!1)}),null):[w-1,S]})}},[l]),g}var gC={},hC=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lo=new Map;function vC(e){lo.set(e,(lo.get(e)||0)+1)}function bC(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(No,'="').concat(e,'"]'));r.forEach(function(n){if(n[zn]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var yC=0;function CC(e,t){lo.set(e,(lo.get(e)||0)-1);var r=new Set;lo.forEach(function(n,o){n<=0&&r.add(o)}),lo.size-r.size>yC&&r.forEach(function(n){bC(n,t),lo.delete(n)})}var xC=function(t,r,n,o){var i=n.getDerivativeToken(t),a=G(G({},i),r);return o&&(a=o(a)),a},rm="token";function wC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.useContext(Pi),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?gC:l,u=r.formatToken,d=r.getComputedToken,f=r.cssVar,g=tC(function(){return Object.assign.apply(Object,[{}].concat(ue(t)))},t),h=ki(g),m=ki(c),p=f?ki(f):"",b=Zc(rm,[s,e.id,h,m,p],function(){var y,w=d?d(g,c,e):xC(g,c,e,u),S=G({},w),v="";if(f){var I=Q0(w,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),O=ie(I,2);w=O[0],v=O[1]}var N=q0(w,s);w._tokenKey=N,S._tokenKey=q0(S,s);var T=(y=f?.key)!==null&&y!==void 0?y:N;w._themeKey=T,vC(T);var P="".concat(hC,"-").concat(Oi(N));return w._hashId=P,[w,P,S,v,f?.key||""]},function(y){CC(y[0]._themeKey,o)},function(y){var w=ie(y,4),S=w[0],v=w[3];if(f&&v){var I=vn(v,Oi("css-variables-".concat(S._themeKey)),{mark:Wr,prepend:"queue",attachTo:i,priority:-999});I[zn]=o,I.setAttribute(No,S._themeKey)}});return b}var SC=function(t,r,n){var o=ie(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=as(a,s,u,f,c);return[d,u,g]},EC={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},nm="comm",om="rule",im="decl",IC="@import",AC="@namespace",NC="@keyframes",OC="@layer",am=Math.abs,qc=String.fromCharCode;function sm(e){return e.trim()}function cs(e,t,r){return e.replace(t,r)}function TC(e,t,r){return e.indexOf(t,r)}function Oo(e,t){return e.charCodeAt(t)|0}function To(e,t,r){return e.slice(t,r)}function rn(e){return e.length}function PC(e){return e.length}function us(e,t){return t.push(e),e}var ds=1,Po=1,lm=0,Pr=0,zt=0,ko="";function Qc(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ds,column:Po,length:a,return:"",siblings:s}}function kC(){return zt}function FC(){return zt=Pr>0?Oo(ko,--Pr):0,Po--,zt===10&&(Po=1,ds--),zt}function Ur(){return zt=Pr<lm?Oo(ko,Pr++):0,Po++,zt===10&&(Po=1,ds++),zt}function Gn(){return Oo(ko,Pr)}function fs(){return Pr}function ms(e,t){return To(ko,e,t)}function Fi(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 $C(e){return ds=Po=1,lm=rn(ko=e),Pr=0,[]}function MC(e){return ko="",e}function Kc(e){return sm(ms(Pr-1,eu(e===91?e+2:e===40?e+1:e)))}function jC(e){for(;(zt=Gn())&&zt<33;)Ur();return Fi(e)>2||Fi(zt)>3?"":" "}function RC(e,t){for(;--t&&Ur()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return ms(e,fs()+(t<6&&Gn()==32&&Ur()==32))}function eu(e){for(;Ur();)switch(zt){case e:return Pr;case 34:case 39:e!==34&&e!==39&&eu(zt);break;case 40:e===41&&eu(e);break;case 92:Ur();break}return Pr}function LC(e,t){for(;Ur()&&e+zt!==57;)if(e+zt===84&&Gn()===47)break;return"/*"+ms(t,Pr-1)+"*"+qc(e===47?e:Ur())}function DC(e){for(;!Fi(Gn());)Ur();return ms(e,Pr)}function _C(e){return MC(ps("",null,null,null,[""],e=$C(e),0,[0],e))}function ps(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,h=0,m=1,p=1,b=1,y=0,w="",S=o,v=i,I=n,O=w;p;)switch(h=y,y=Ur()){case 40:if(h!=108&&Oo(O,d-1)==58){TC(O+=cs(Kc(y),"&","&\f"),"&\f",am(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:O+=Kc(y);break;case 9:case 10:case 13:case 32:O+=jC(h);break;case 92:O+=RC(fs()-1,7);continue;case 47:switch(Gn()){case 42:case 47:us(VC(LC(Ur(),fs()),t,r,l),l),(Fi(h||1)==5||Fi(Gn()||1)==5)&&rn(O)&&To(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*m:s[c++]=rn(O)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(O=cs(O,/\f/g,"")),g>0&&(rn(O)-d||m===0&&h===47)&&us(g>32?um(O+";",n,r,d-1,l):um(cs(O," ","")+";",n,r,d-2,l),l);break;case 59:O+=";";default:if(us(I=cm(O,t,r,c,u,o,s,w,S=[],v=[],d,i),i),y===123)if(u===0)ps(O,t,I,I,S,i,d,s,v);else{switch(f){case 99:if(Oo(O,3)===110)break;case 108:if(Oo(O,2)===97)break;default:u=0;case 100:case 109:case 115:}u?ps(e,I,I,n&&us(cm(e,I,I,0,0,o,s,w,o,S=[],d,v),v),o,v,d,s,n?S:v):ps(O,I,I,I,[""],v,0,s,v)}}c=u=g=0,m=b=1,w=O="",d=a;break;case 58:d=1+rn(O),g=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&FC()==125)continue}switch(O+=qc(y),y*m){case 38:b=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(rn(O)-1)*b,b=1;break;case 64:Gn()===45&&(O+=Kc(Ur())),f=Gn(),u=d=rn(w=O+=DC(fs())),y++;break;case 45:h===45&&rn(O)==2&&(m=0)}}return i}function cm(e,t,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,g=o===0?i:[""],h=PC(g),m=0,p=0,b=0;m<n;++m)for(var y=0,w=To(e,f+1,f=am(p=a[m])),S=e;y<h;++y)(S=sm(p>0?g[y]+" "+w:cs(w,/&\f/g,g[y])))&&(l[b++]=S);return Qc(e,t,r,o===0?om:s,l,c,u,d)}function VC(e,t,r,n){return Qc(e,t,r,nm,qc(kC()),To(e,2,-2),0,n)}function um(e,t,r,n,o){return Qc(e,t,r,im,To(e,0,n),To(e,n+1,-1),n,o)}function tu(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function BC(e,t,r,n){switch(e.type){case OC:if(e.children.length)break;case IC:case AC:case im:return e.return=e.return||e.value;case nm:return"";case NC:return e.return=e.value+"{"+tu(e.children,n)+"}";case om:if(!rn(e.value=e.props.join(",")))return""}return rn(r=tu(e.children,n))?e.return=e.value+"{"+r+"}":""}function dm(e,t){var r=t.path,n=t.parentSelectors;ht(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var zC=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&dm("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},GC=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&dm("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},fm="data-ant-cssinjs-cache-path",mm="_FILE_STYLE__",co,pm=!0;function HC(){if(!co&&(co={},lr())){var e=document.createElement("div");e.className=fm,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(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=ie(i,2),s=a[0],l=a[1];co[s]=l});var r=document.querySelector("style[".concat(fm,"]"));if(r){var n;pm=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function WC(e){return HC(),!!co[e]}function UC(e){var t=co[e],r=null;if(t&&lr())if(pm)r=mm;else{var n=document.querySelector("style[".concat(Wr,'="').concat(co[e],'"]'));n?r=n.innerHTML:delete co[e]}return[r,t]}var gm="_skip_check_",hm="_multi_value_";function gs(e){var t=tu(_C(e),BC);return t.replace(/\{%%%\:[^;];}/g,";")}function XC(e){return we(e)==="object"&&e&&(gm in e||hm in e)}function vm(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(ue(l.slice(1))).join(" ")});return i.join(",")}var YC=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d,g=r.linters,h=g===void 0?[]:g,m="",p={};function b(S){var v=S.getName(s);if(!p[v]){var I=e(S.style,r,{root:!1,parentSelectors:a}),O=ie(I,1),N=O[0];p[v]="@keyframes ".concat(S.getName(s)).concat(N)}}function y(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(I){Array.isArray(I)?y(I,v):I&&v.push(I)}),v}var w=y(Array.isArray(t)?t:[t]);return w.forEach(function(S){var v=typeof S=="string"&&!o?{}:S;if(typeof v=="string")m+="".concat(v,`
|
|
68
|
+
`);else if(v._keyframe)b(v);else{var I=f.reduce(function(O,N){var T;return(N==null||(T=N.visit)===null||T===void 0?void 0:T.call(N,O))||O},v);Object.keys(I).forEach(function(O){var N=I[O];if(we(N)==="object"&&N&&(O!=="animationName"||!N._keyframe)&&!XC(N)){var T=!1,P=O.trim(),M=!1;(o||i)&&s?P.startsWith("@")?T=!0:P==="&"?P=vm("",s,u):P=vm(O,s,u):o&&!s&&(P==="&"||P==="")&&(P="",M=!0);var x=e(N,r,{root:M,injectHash:T,parentSelectors:[].concat(ue(a),[P])}),$=ie(x,2),F=$[0],k=$[1];p=G(G({},p),k),m+="".concat(P).concat(F)}else{let H=function(V,_){process.env.NODE_ENV!=="production"&&(we(N)!=="object"||!(N!=null&&N[gm]))&&[zC,GC].concat(ue(h)).forEach(function(R){return R(V,_,{path:c,hashId:s,parentSelectors:a})});var D=V.replace(/[A-Z]/g,function(R){return"-".concat(R.toLowerCase())}),B=_;!EC[V]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),V==="animationName"&&_!==null&&_!==void 0&&_._keyframe&&(b(_),B=_.getName(s)),m+="".concat(D,":").concat(B,";")};var j,z=(j=N?.value)!==null&&j!==void 0?j:N;we(N)==="object"&&N!==null&&N!==void 0&&N[hm]&&Array.isArray(z)?z.forEach(function(V){H(O,V)}):H(O,z)}})}}),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(l.name,";")}).join(`
|
|
69
|
+
`))):m="{".concat(m,"}"),[m,p]};function bm(e,t){return Oi("".concat(e.join("%")).concat(t))}function JC(){return null}var ym="style";function ru(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=A.useContext(Pi),d=u.autoClear,f=u.mock,g=u.defaultCache,h=u.hashPriority,m=u.container,p=u.ssrInline,b=u.transformers,y=u.linters,w=u.cache,S=u.layer,v=r._tokenKey,I=[v];S&&I.push("layer"),I.push.apply(I,ue(n));var O=Yc;process.env.NODE_ENV!=="production"&&f!==void 0&&(O=f==="client");var N=Zc(ym,I,function(){var $=I.join("|");if(WC($)){var F=UC($),k=ie(F,2),j=k[0],z=k[1];if(j)return[j,v,z,{},s,c]}var H=t(),V=YC(H,{hashId:o,hashPriority:h,layer:S?i:void 0,path:n.join("-"),transformers:b,linters:y}),_=ie(V,2),D=_[0],B=_[1],R=gs(D),W=bm(I,R);return[R,v,W,B,s,c]},function($,F){var k=ie($,3),j=k[2];(F||d)&&Yc&&Ti(j,{mark:Wr,attachTo:m})},function($){var F=ie($,4),k=F[0];F[1];var j=F[2],z=F[3];if(O&&k!==mm){var H={mark:Wr,prepend:S?!1:"queue",attachTo:m,priority:c},V=typeof a=="function"?a():a;V&&(H.csp={nonce:V});var _=[],D=[];Object.keys(z).forEach(function(R){R.startsWith("@layer")?_.push(R):D.push(R)}),_.forEach(function(R){vn(gs(z[R]),"_layer-".concat(R),G(G({},H),{},{prepend:!0}))});var B=vn(k,j,H);B[zn]=w.instanceId,B.setAttribute(No,v),process.env.NODE_ENV!=="production"&&B.setAttribute(q2,I.join("|")),D.forEach(function(R){vn(gs(z[R]),"_effect-".concat(R),H)})}}),T=ie(N,3),P=T[0],M=T[1],x=T[2];return function($){var F;return!p||O||!g?F=A.createElement(JC,null):F=A.createElement("style",le({},X(X({},No,M),Wr,x),{dangerouslySetInnerHTML:{__html:P}})),A.createElement(A.Fragment,null,F,$)}}var ZC=function(t,r,n){var o=ie(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=n||{},f=d.plain;if(c)return null;var g=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=as(i,a,s,h,f),l&&Object.keys(l).forEach(function(m){if(!r[m]){r[m]=!0;var p=gs(l[m]),b=as(p,a,"_effect-".concat(m),h,f);m.startsWith("@layer")?g=b+g:g+=b}}),[u,s,g]},Cm="cssVar",qC=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=E.useContext(Pi),d=u.cache.instanceId,f=u.container,g=s._tokenKey,h=[].concat(ue(t.path),[n,c,g]),m=Zc(Cm,h,function(){var p=r(),b=Q0(p,n,{prefix:o,unitless:i,ignore:a,scope:c}),y=ie(b,2),w=y[0],S=y[1],v=bm(h,S);return[w,S,v,n]},function(p){var b=ie(p,3),y=b[2];Yc&&Ti(y,{mark:Wr,attachTo:f})},function(p){var b=ie(p,3),y=b[1],w=b[2];if(y){var S=vn(y,w,{mark:Wr,prepend:"queue",attachTo:f,priority:-999});S[zn]=d,S.setAttribute(No,n)}});return m},QC=function(t,r,n){var o=ie(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=as(i,s,a,d,c);return[u,a,f]};X(X(X({},ym,ZC),rm,SC),Cm,QC);var Qt=function(){function e(t,r){Tt(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=r}return Pt(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function Fo(e){return e.notSplit=!0,e}Fo(["borderTop","borderBottom"]),Fo(["borderTop"]),Fo(["borderBottom"]),Fo(["borderLeft","borderRight"]),Fo(["borderLeft"]),Fo(["borderRight"]);var nu=E.createContext({});function KC(e){return B0(e)||R0(e)||_c(e)||z0()}function nn(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function xm(e,t,r,n){if(!t.length)return r;var o=KC(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=ue(e):s=G({},e),n&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=xm(s[i],a,r,n),s}function Xr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!nn(e,t.slice(0,-1))?e:xm(e,t,r,n)}function ex(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function wm(e){return Array.isArray(e)?[]:{}}var tx=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function $o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=wm(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=nn(o,a),u=Array.isArray(c);if(u||ex(c)){if(!l.has(c)){l.add(c);var d=nn(n,a);u?n=Xr(n,a,[]):(!d||we(d)!=="object")&&(n=Xr(n,a,wm(c))),tx(c).forEach(function(f){i([].concat(ue(a),[f]),l)})}}else n=Xr(n,a,c)}i([])}),n}function Sm(){}let bn=null;function rx(){bn=null,b0()}let Em=Sm;process.env.NODE_ENV!=="production"&&(Em=(e,t,r)=>{ht(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&rx()});const Mo=Em,Im=A.createContext({}),kr=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=A.useContext(Im),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=bn;bn||(bn={}),bn[e]=bn[e]||[],bn[e].includes(i||"")||bn[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",bn)}else process.env.NODE_ENV!=="production"&&Mo(n,e,i)};return r.deprecated=(n,o,i,a)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=Sm,e},nx=E.createContext(void 0);var ox={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"},ix={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},ax=G(G({},ix),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});const Am={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Nm={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"]},ax),timePickerLocale:Object.assign({},Am)},yr="${label} is not a valid ${type}",uo={locale:"en",Pagination:ox,DatePicker:Nm,TimePicker:Am,Calendar:Nm,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:yr,method:yr,array:yr,object:yr,number:yr,date:yr,boolean:yr,integer:yr,float:yr,regexp:yr,email:yr,url:yr,hex:yr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},uo.Modal);let hs=[];const Om=()=>hs.reduce((e,t)=>Object.assign(Object.assign({},e),t),uo.Modal);function sx(e){if(e){const t=Object.assign({},e);return hs.push(t),Om(),()=>{hs=hs.filter(r=>r!==t),Om()}}Object.assign({},uo.Modal)}const ou=E.createContext(void 0),lx=(e,t)=>{const r=A.useContext(ou),n=A.useMemo(()=>{var i;const a=t||uo[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=A.useMemo(()=>{const i=r?.locale;return r?.exist&&!i?uo.locale:i},[r]);return[n,o]},Tm="internalMark",Pm=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=kr("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===Tm,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}A.useEffect(()=>sx(t?.Modal),[t]);const o=A.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return A.createElement(ou.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(Pm.displayName="LocaleProvider");const km={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"},$i=Object.assign(Object.assign({},km),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
70
70
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
71
|
-
'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}),lt=Math.round;function su(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=r.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)i[n]=t(i[n]||0,r[n]||"",n);return r[3]?i[3]=r[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const cf=(e,t,r)=>r===0?e:e/100;function Si(e,t){const r=t||255;return e>r?r:e<0?0:e}class tt{constructor(t){H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(this,"_brightness",void 0);function r(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let n=function(o){return i.startsWith(o)};const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):n("rgb")?this.fromRgbString(i):n("hsl")?this.fromHslString(i):(n("hsv")||n("hsb"))&&this.fromHsvString(i)}else if(t instanceof tt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Si(t.r),this.g=Si(t.g),this.b=Si(t.b),this.a=typeof t.a=="number"?Si(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),i=t(this.g),n=t(this.b);return .2126*r+.7152*i+.0722*n}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=lt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),i=this.getSaturation();let n=this.getLightness()-t/100;return n<0&&(n=0),this._c({h:r,s:i,l:n,a:this.a})}lighten(t=10){const r=this.getHue(),i=this.getSaturation();let n=this.getLightness()+t/100;return n>1&&(n=1),this._c({h:r,s:i,l:n,a:this.a})}mix(t,r=50){const i=this._c(t),n=r/100,o=u=>(i[u]-this[u])*n+this[u],a={r:lt(o("r")),g:lt(o("g")),b:lt(o("b")),a:lt(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),i=this.a+r.a*(1-this.a),n=o=>lt((this[o]*this.a+r[o]*r.a*(1-this.a))/i);return this._c({r:n("r"),g:n("g"),b:n("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.g||0).toString(16);t+=i.length===2?i:"0"+i;const n=(this.b||0).toString(16);if(t+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=lt(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=lt(this.getSaturation()*100),i=lt(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${i}%,${this.a})`:`hsl(${t},${r}%,${i}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,i){const n=this.clone();return n[t]=Si(r,i),n}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function i(n,o){return parseInt(r[n]+r[o||n],16)}r.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=r[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=r[6]?i(6,7)/255:1)}fromHsl({h:t,s:r,l:i,a:n}){if(this._h=t%360,this._s=r,this._l=i,this.a=typeof n=="number"?n:1,r<=0){const f=lt(i*255);this.r=f,this.g=f,this.b=f}let o=0,a=0,u=0;const s=t/60,l=(1-Math.abs(2*i-1))*r,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(o=l,a=c):s>=1&&s<2?(o=c,a=l):s>=2&&s<3?(a=l,u=c):s>=3&&s<4?(a=c,u=l):s>=4&&s<5?(o=c,u=l):s>=5&&s<6&&(o=l,u=c);const d=i-l/2;this.r=lt((o+d)*255),this.g=lt((a+d)*255),this.b=lt((u+d)*255)}fromHsv({h:t,s:r,v:i,a:n}){this._h=t%360,this._s=r,this._v=i,this.a=typeof n=="number"?n:1;const o=lt(i*255);if(this.r=o,this.g=o,this.b=o,r<=0)return;const a=t/60,u=Math.floor(a),s=a-u,l=lt(i*(1-r)*255),c=lt(i*(1-r*s)*255),d=lt(i*(1-r*(1-s))*255);switch(u){case 0:this.g=d,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=c;break;case 4:this.r=d,this.g=l;break;case 5:default:this.g=l,this.b=c;break}}fromHsvString(t){const r=su(t,cf);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=su(t,cf);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=su(t,(i,n)=>n.includes("%")?lt(i/100*255):i);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var Jo=2,df=.16,Jb=.05,Zb=.05,qb=.15,ff=5,pf=4,Qb=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function mf(e,t,r){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=r?Math.round(e.h)-Jo*t:Math.round(e.h)+Jo*t:i=r?Math.round(e.h)+Jo*t:Math.round(e.h)-Jo*t,i<0?i+=360:i>=360&&(i-=360),i}function gf(e,t,r){if(e.h===0&&e.s===0)return e.s;var i;return r?i=e.s-df*t:t===pf?i=e.s+df:i=e.s+Jb*t,i>1&&(i=1),r&&t===ff&&i>.1&&(i=.1),i<.06&&(i=.06),Math.round(i*100)/100}function hf(e,t,r){var i;return r?i=e.v+Zb*t:i=e.v-qb*t,i=Math.max(0,Math.min(1,i)),Math.round(i*100)/100}function Zo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],i=new tt(e),n=i.toHsv(),o=ff;o>0;o-=1){var a=new tt({h:mf(n,o,!0),s:gf(n,o,!0),v:hf(n,o,!0)});r.push(a)}r.push(i);for(var u=1;u<=pf;u+=1){var s=new tt({h:mf(n,u),s:gf(n,u),v:hf(n,u)});r.push(s)}return t.theme==="dark"?Qb.map(function(l){var c=l.index,d=l.amount;return new tt(t.backgroundColor||"#141414").mix(r[c],d).toHexString()}):r.map(function(l){return l.toHexString()})}var uu={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"},lu=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];lu.primary=lu[5];var cu=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];cu.primary=cu[5];var du=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];du.primary=du[5];var fu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];fu.primary=fu[5];var pu=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];pu.primary=pu[5];var mu=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];mu.primary=mu[5];var gu=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];gu.primary=gu[5];var hu=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];hu.primary=hu[5];var vu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];vu.primary=vu[5];var bu=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];bu.primary=bu[5];var yu=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];yu.primary=yu[5];var Cu=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Cu.primary=Cu[5];var xu=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];xu.primary=xu[5];var Eu={red:lu,volcano:cu,orange:du,gold:fu,yellow:pu,lime:mu,green:gu,cyan:hu,blue:vu,geekblue:bu,purple:yu,magenta:Cu,grey:xu};function Kb(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:i,colorWarning:n,colorError:o,colorInfo:a,colorPrimary:u,colorBgBase:s,colorTextBase:l}=e,c=t(u),d=t(i),f=t(n),g=t(o),h=t(a),p=r(s,l),m=e.colorLink||e.colorInfo,b=t(m),y=new tt(g[1]).mix(new tt(g[3]),50).toHexString();return Object.assign(Object.assign({},p),{colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[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:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new tt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const e1=e=>{let t=e,r=e,i=e,n=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:i,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:n}};function t1(e){const{motionUnit:t,motionBase:r,borderRadius:i,lineWidth:n}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:n+1},e1(i))}const r1=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function n1(e){return(e+8)/e}function i1(e){const t=Array.from({length:10}).map((r,i)=>{const n=i-1,o=e*Math.pow(Math.E,n/5),a=i>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:n1(r)}))}const o1=e=>{const t=i1(e),r=t.map(c=>c.size),i=t.map(c=>c.lineHeight),n=r[1],o=r[0],a=r[2],u=i[1],s=i[0],l=i[2];return{fontSizeSM:o,fontSize:n,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:u,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(u*n),fontHeightLG:Math.round(l*a),fontHeightSM:Math.round(s*o),lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};function a1(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const _t=(e,t)=>new tt(e).setA(t).toRgbString(),wi=(e,t)=>new tt(e).darken(t).toHexString(),s1=e=>{const t=Zo(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]}},u1=(e,t)=>{const r=e||"#fff",i=t||"#000";return{colorBgBase:r,colorTextBase:i,colorText:_t(i,.88),colorTextSecondary:_t(i,.65),colorTextTertiary:_t(i,.45),colorTextQuaternary:_t(i,.25),colorFill:_t(i,.15),colorFillSecondary:_t(i,.06),colorFillTertiary:_t(i,.04),colorFillQuaternary:_t(i,.02),colorBgSolid:_t(i,1),colorBgSolidHover:_t(i,.75),colorBgSolidActive:_t(i,.95),colorBgLayout:wi(r,4),colorBgContainer:wi(r,0),colorBgElevated:wi(r,0),colorBgSpotlight:_t(i,.85),colorBgBlur:"transparent",colorBorder:wi(r,15),colorBorderSecondary:wi(r,6)}};function l1(e){uu.pink=uu.magenta,Eu.pink=Eu.magenta;const t=Object.keys(lf).map(r=>{const i=e[r]===uu[r]?Eu[r]:Zo(e[r]);return Array.from({length:10},()=>1).reduce((n,o,a)=>(n[`${r}-${a+1}`]=i[a],n[`${r}${a+1}`]=i[a],n),{})}).reduce((r,i)=>(r=Object.assign(Object.assign({},r),i),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Kb(e,{generateColorPalettes:s1,generateNeutralColorPalettes:u1})),o1(e.fontSize)),a1(e)),r1(e)),t1(e))}const vf=Zs(l1),Iu={token:Ii,override:{override:Ii},hashed:!0},bf=O.createContext(Iu),qo="ant",Su="anticon",c1=(e,t)=>t||(e?`${qo}-${e}`:qo),lr=R.createContext({getPrefixCls:c1,iconPrefixCls:Su}),{Consumer:ik}=lr,d1=`-ant-${Date.now()}-${Math.random()}`;function f1(e,t){const r={},i=(a,u)=>{let s=a.clone();return s=u?.(s)||s,s.toRgbString()},n=(a,u)=>{const s=new tt(a),l=Zo(s.toRgbString());r[`${u}-color`]=i(s),r[`${u}-color-disabled`]=l[1],r[`${u}-color-hover`]=l[4],r[`${u}-color-active`]=l[6],r[`${u}-color-outline`]=s.clone().setA(.2).toRgbString(),r[`${u}-color-deprecated-bg`]=l[0],r[`${u}-color-deprecated-border`]=l[2]};if(t.primaryColor){n(t.primaryColor,"primary");const a=new tt(t.primaryColor),u=Zo(a.toRgbString());u.forEach((l,c)=>{r[`primary-${c+1}`]=l}),r["primary-color-deprecated-l-35"]=i(a,l=>l.lighten(35)),r["primary-color-deprecated-l-20"]=i(a,l=>l.lighten(20)),r["primary-color-deprecated-t-20"]=i(a,l=>l.tint(20)),r["primary-color-deprecated-t-50"]=i(a,l=>l.tint(50)),r["primary-color-deprecated-f-12"]=i(a,l=>l.setA(l.a*.12));const s=new tt(u[0]);r["primary-color-active-deprecated-f-30"]=i(s,l=>l.setA(l.a*.3)),r["primary-color-active-deprecated-d-02"]=i(s,l=>l.darken(2))}return t.successColor&&n(t.successColor,"success"),t.warningColor&&n(t.warningColor,"warning"),t.errorColor&&n(t.errorColor,"error"),t.infoColor&&n(t.infoColor,"info"),`
|
|
71
|
+
'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}),Jt=Math.round;function iu(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Fm=(e,t,r)=>r===0?e:e/100;function Mi(e,t){const r=t||255;return e>r?r:e<0?0:e}class yt{constructor(t){X(this,"isValid",!0),X(this,"r",0),X(this,"g",0),X(this,"b",0),X(this,"a",1),X(this,"_h",void 0),X(this,"_s",void 0),X(this,"_l",void 0),X(this,"_v",void 0),X(this,"_max",void 0),X(this,"_min",void 0),X(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof yt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Mi(t.r),this.g=Mi(t.g),this.b=Mi(t.b),this.a=typeof t.a=="number"?Mi(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Jt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:Jt(i("r")),g:Jt(i("g")),b:Jt(i("b")),a:Jt(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>Jt((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Jt(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Jt(this.getSaturation()*100),n=Jt(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=Mi(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const f=Jt(n*255);this.r=f,this.g=f,this.b=f}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=n-c/2;this.r=Jt((i+d)*255),this.g=Jt((a+d)*255),this.b=Jt((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=Jt(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Jt(n*(1-r)*255),u=Jt(n*(1-r*l)*255),d=Jt(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=iu(t,Fm);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=iu(t,Fm);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=iu(t,(n,o)=>o.includes("%")?Jt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var vs=2,$m=.16,cx=.05,ux=.05,dx=.15,Mm=5,jm=4,fx=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Rm(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-vs*t:Math.round(e.h)+vs*t:n=r?Math.round(e.h)+vs*t:Math.round(e.h)-vs*t,n<0?n+=360:n>=360&&(n-=360),n}function Lm(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-$m*t:t===jm?n=e.s+$m:n=e.s+cx*t,n>1&&(n=1),r&&t===Mm&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function Dm(e,t,r){var n;return r?n=e.v+ux*t:n=e.v-dx*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function ji(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new yt(e),o=n.toHsv(),i=Mm;i>0;i-=1){var a=new yt({h:Rm(o,i,!0),s:Lm(o,i,!0),v:Dm(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=jm;s+=1){var l=new yt({h:Rm(o,s),s:Lm(o,s),v:Dm(o,s)});r.push(l)}return t.theme==="dark"?fx.map(function(c){var u=c.index,d=c.amount;return new yt(t.backgroundColor||"#141414").mix(r[u],d).toHexString()}):r.map(function(c){return c.toHexString()})}var jo={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"},au=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];au.primary=au[5];var su=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];su.primary=su[5];var lu=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];lu.primary=lu[5];var cu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];cu.primary=cu[5];var uu=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];uu.primary=uu[5];var du=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];du.primary=du[5];var fu=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fu.primary=fu[5];var mu=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];mu.primary=mu[5];var Ro=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ro.primary=Ro[5];var pu=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];pu.primary=pu[5];var gu=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];gu.primary=gu[5];var hu=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];hu.primary=hu[5];var vu=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];vu.primary=vu[5];var bu={red:au,volcano:su,orange:lu,gold:cu,yellow:uu,lime:du,green:fu,cyan:mu,blue:Ro,geekblue:pu,purple:gu,magenta:hu,grey:vu};function mx(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(n),f=t(o),g=t(i),h=t(a),m=r(l,c),p=e.colorLink||e.colorInfo,b=t(p),y=new yt(g[1]).mix(new yt(g[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:y,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[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:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new yt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const px=e=>{let t=e,r=e,n=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?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function gx(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},px(n))}const hx=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function bs(e){return(e+8)/e}function vx(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:bs(r)}))}const bx=e=>{const t=vx(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function yx(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Fr=(e,t)=>new yt(e).setA(t).toRgbString(),Ri=(e,t)=>new yt(e).darken(t).toHexString(),Cx=e=>{const t=ji(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]}},xx=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Fr(n,.88),colorTextSecondary:Fr(n,.65),colorTextTertiary:Fr(n,.45),colorTextQuaternary:Fr(n,.25),colorFill:Fr(n,.15),colorFillSecondary:Fr(n,.06),colorFillTertiary:Fr(n,.04),colorFillQuaternary:Fr(n,.02),colorBgSolid:Fr(n,1),colorBgSolidHover:Fr(n,.75),colorBgSolidActive:Fr(n,.95),colorBgLayout:Ri(r,4),colorBgContainer:Ri(r,0),colorBgElevated:Ri(r,0),colorBgSpotlight:Fr(n,.85),colorBgBlur:"transparent",colorBorder:Ri(r,15),colorBorderSecondary:Ri(r,6)}};function wx(e){jo.pink=jo.magenta,bu.pink=bu.magenta;const t=Object.keys(km).map(r=>{const n=e[r]===jo[r]?bu[r]:ji(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),mx(e,{generateColorPalettes:Cx,generateNeutralColorPalettes:xx})),bx(e.fontSize)),yx(e)),hx(e)),gx(e))}const _m=Uc(wx),yu={token:$i,override:{override:$i},hashed:!0},Vm=E.createContext(yu),Li="ant",Cu="anticon",Sx=(e,t)=>t||(e?`${Li}-${e}`:Li),Zt=A.createContext({getPrefixCls:Sx,iconPrefixCls:Cu}),{Consumer:Z$}=Zt,Bm={};function xu(e){const t=A.useContext(Zt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Bm,styles:Bm},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}const Ex=`-ant-${Date.now()}-${Math.random()}`;function Ix(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{const l=new yt(a),c=ji(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new yt(t.primaryColor),s=ji(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));const l=new yt(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.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"),`
|
|
72
72
|
:root {
|
|
73
73
|
${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
|
|
74
74
|
`)}
|
|
75
75
|
}
|
|
76
|
-
`.trim()}function p1(e,t){const r=f1(e,t);yr()?wn(r,`${d1}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Rn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Qo=R.createContext(!1),m1=({children:e,disabled:t})=>{const r=R.useContext(Qo);return R.createElement(Qo.Provider,{value:t??r},e)},Ai=R.createContext(void 0),g1=({children:e,size:t})=>{const r=R.useContext(Ai);return R.createElement(Ai.Provider,{value:t||r},e)};function h1(){const e=O.useContext(Qo),t=O.useContext(Ai);return{componentDisabled:e,componentSize:t}}var yf=yt(function e(){bt(this,e)}),Cf="CALC_UNIT",v1=new RegExp(Cf,"g");function wu(e){return typeof e=="number"?"".concat(e).concat(Cf):e}var b1=function(e){nn(r,e);var t=on(r);function r(i,n){var o;bt(this,r),o=t.call(this),H(ve(o),"result",""),H(ve(o),"unitlessCssVar",void 0),H(ve(o),"lowPriority",void 0);var a=pe(i);return o.unitlessCssVar=n,i instanceof r?o.result="(".concat(i.result,")"):a==="number"?o.result=wu(i):a==="string"&&(o.result=i),o}return yt(r,[{key:"add",value:function(n){return n instanceof r?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(wu(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof r?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(wu(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof r?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var o=this,a=n||{},u=a.unit,s=!0;return typeof u=="boolean"?s=u:Array.from(this.unitlessCssVar).some(function(l){return o.result.includes(l)})&&(s=!1),this.result=this.result.replace(v1,s?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(yf),y1=function(e){nn(r,e);var t=on(r);function r(i){var n;return bt(this,r),n=t.call(this),H(ve(n),"result",0),i instanceof r?n.result=i.result:typeof i=="number"&&(n.result=i),n}return yt(r,[{key:"add",value:function(n){return n instanceof r?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof r?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof r?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof r?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),r}(yf),C1=function(t,r){var i=t==="css"?b1:y1;return function(n){return new i(n,r)}},xf=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Mn(e){var t=R.useRef();t.current=e;var r=R.useCallback(function(){for(var i,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(i=t.current)===null||i===void 0?void 0:i.call.apply(i,[t].concat(o))},[]);return r}function Ti(e){var t=R.useRef(!1),r=R.useState(e),i=fe(r,2),n=i[0],o=i[1];R.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(u,s){s&&t.current||o(u)}return[n,a]}function Au(e){return e!==void 0}function x1(e,t){var r=t||{},i=r.defaultValue,n=r.value,o=r.onChange,a=r.postState,u=Ti(function(){return Au(n)?n:Au(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),s=fe(u,2),l=s[0],c=s[1],d=n!==void 0?n:l,f=a?a(d):d,g=Mn(o),h=Ti([d]),p=fe(h,2),m=p[0],b=p[1];Fd(function(){var I=m[0];l!==I&&g(l,I)},[m]),Fd(function(){Au(n)||c(n)},[n]);var y=Mn(function(I,x){c(I,x),b([d],x)});return[f,y]}function Ef(e,t,r,i){var n=W({},t[e]);if(i!=null&&i.deprecatedTokens){var o=i.deprecatedTokens;o.forEach(function(u){var s=fe(u,2),l=s[0],c=s[1];if(process.env.NODE_ENV!=="production"&&Ye(!(n!=null&&n[l]),"Component Token `".concat(String(l),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(c),"` instead.")),n!=null&&n[l]||n!=null&&n[c]){var d;(d=n[c])!==null&&d!==void 0||(n[c]=n?.[l])}})}var a=W(W({},r),n);return Object.keys(a).forEach(function(u){a[u]===t[u]&&delete a[u]}),a}var If=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Tu=!0;function Ou(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!If)return Object.assign.apply(Object,[{}].concat(t));Tu=!1;var i={};return t.forEach(function(n){if(pe(n)==="object"){var o=Object.keys(n);o.forEach(function(a){Object.defineProperty(i,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),Tu=!0,i}var Sf={};function E1(){}var I1=function(t){var r,i=t,n=E1;return If&&typeof Proxy<"u"&&(r=new Set,i=new Proxy(t,{get:function(a,u){if(Tu){var s;(s=r)===null||s===void 0||s.add(u)}return a[u]}}),n=function(a,u){var s;Sf[a]={global:Array.from(r),component:W(W({},(s=Sf[a])===null||s===void 0?void 0:s.component),u)}}),{token:i,keys:r,flush:n}};function wf(e,t,r){if(typeof r=="function"){var i;return r(Ou(t,(i=t[e])!==null&&i!==void 0?i:{}))}return r??{}}function S1(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return"max(".concat(i.map(function(o){return Ci(o)}).join(","),")")},min:function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return"min(".concat(i.map(function(o){return Ci(o)}).join(","),")")}}}var w1=1e3*60*10,A1=function(){function e(){bt(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return yt(e,[{key:"set",value:function(r,i){this.clear();var n=this.getCompositeKey(r);this.map.set(n,i),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(r){var i=this.getCompositeKey(r),n=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(r){var i=this,n=r.map(function(o){return o&&pe(o)==="object"?"obj_".concat(i.getObjectID(o)):"".concat(pe(o),"_").concat(o)});return n.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var i=this.nextID;return this.objectIDMap.set(r,i),this.nextID+=1,i}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(n,o){i-n>w1&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Af=new A1;function T1(e,t){return O.useMemo(function(){var r=Af.get(t);if(r)return r;var i=e();return Af.set(t,i),i},t)}var O1=function(){return{}};function k1(e){var t=e.useCSP,r=t===void 0?O1:t,i=e.useToken,n=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,u=e.getCompUnitless;function s(f,g,h,p){var m=Array.isArray(f)?f[0]:f;function b(w){return"".concat(String(m)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var y=p?.unitless||{},I=typeof u=="function"?u(f):{},x=W(W({},I),{},H({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(w){x[b(w)]=y[w]});var v=W(W({},p),{},{unitless:x,prefixToken:b}),S=c(f,g,h,v),E=l(m,h,v);return function(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,k=S(w,T),V=fe(k,2),C=V[1],N=E(T),F=fe(N,2),P=F[0],j=F[1];return[P,C,j]}}function l(f,g,h){var p=h.unitless,m=h.injectStyle,b=m===void 0?!0:m,y=h.prefixToken,I=h.ignore,x=function(E){var w=E.rootCls,T=E.cssVar,k=T===void 0?{}:T,V=i(),C=V.realToken;return Lb({path:[f],prefix:k.prefix,key:k.key,unitless:p,ignore:I,token:C,scope:w},function(){var N=wf(f,C,g),F=Ef(f,C,N,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(N).forEach(function(P){F[y(P)]=F[P],delete F[P]}),F}),null},v=function(E){var w=i(),T=w.cssVar;return[function(k){return b&&T?O.createElement(O.Fragment,null,O.createElement(x,{rootCls:E,cssVar:T,component:f}),k):k},T?.key]};return v}function c(f,g,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(f)?f:[f,f],b=fe(m,1),y=b[0],I=m.join("-"),x=e.layer||{name:"antd"};return function(v){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,E=i(),w=E.theme,T=E.realToken,k=E.hashId,V=E.token,C=E.cssVar,N=n(),F=N.rootPrefixCls,P=N.iconPrefixCls,j=r(),B=C?"css":"js",U=T1(function(){var X=new Set;return C&&Object.keys(p.unitless||{}).forEach(function(K){X.add(Bo(K,C.prefix)),X.add(Bo(K,xf(y,C.prefix)))}),C1(B,X)},[B,y,C?.prefix]),Q=S1(B),$=Q.max,L=Q.min,G={theme:w,token:V,hashId:k,nonce:function(){return j.nonce},clientOnly:p.clientOnly,layer:x,order:p.order||-999};typeof o=="function"&&au(W(W({},G),{},{clientOnly:!1,path:["Shared",F]}),function(){return o(V,{prefix:{rootPrefixCls:F,iconPrefixCls:P},csp:j})});var _=au(W(W({},G),{},{path:[I,v,P]}),function(){if(p.injectStyle===!1)return[];var X=I1(V),K=X.token,ee=X.flush,D=wf(y,T,h),Z=".".concat(v),ne=Ef(y,T,D,{deprecatedTokens:p.deprecatedTokens});C&&D&&pe(D)==="object"&&Object.keys(D).forEach(function(Re){D[Re]="var(".concat(Bo(Re,xf(y,C.prefix)),")")});var ce=Ou(K,{componentCls:Z,prefixCls:v,iconCls:".".concat(P),antCls:".".concat(F),calc:U,max:$,min:L},C?D:ne),Ee=g(ce,{hashId:k,prefixCls:v,rootPrefixCls:F,iconPrefixCls:P});ee(y,ne);var z=typeof a=="function"?a(ce,v,S,p.resetFont):null;return[p.resetStyle===!1?null:z,Ee]});return[_,k]}}function d(f,g,h){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=c(f,g,h,W({resetStyle:!1,order:-998},p)),b=function(I){var x=I.prefixCls,v=I.rootCls,S=v===void 0?x:v;return m(x,S),null};return process.env.NODE_ENV!=="production"&&(b.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),b}return{genStyleHooks:s,genSubStyleComponent:d,genComponentStyleHook:c}}const P1="5.27.0";function ku(e){return e>=0&&e<=255}function Ko(e,t){const{r,g:i,b:n,a:o}=new tt(e).toRgb();if(o<1)return e;const{r:a,g:u,b:s}=new tt(t).toRgb();for(let l=.01;l<=1;l+=.01){const c=Math.round((r-a*(1-l))/l),d=Math.round((i-u*(1-l))/l),f=Math.round((n-s*(1-l))/l);if(ku(c)&&ku(d)&&ku(f))return new tt({r:c,g:d,b:f,a:Math.round(l*100)/100}).toRgbString()}return new tt({r,g:i,b:n,a:1}).toRgbString()}var N1=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};function Tf(e){const{override:t}=e,r=N1(e,["override"]),i=Object.assign({},t);Object.keys(Ii).forEach(f=>{delete i[f]});const n=Object.assign(Object.assign({},r),i),o=480,a=576,u=768,s=992,l=1200,c=1600;return n.motion===!1&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},n),{colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:Ko(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:Ko(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:Ko(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:Ko(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
76
|
+
`.trim()}function Ax(e,t){const r=Ix(e,t);lr()?vn(r,`${Ex}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Lo=A.createContext(!1),Nx=({children:e,disabled:t})=>{const r=A.useContext(Lo);return A.createElement(Lo.Provider,{value:t??r},e)},Do=A.createContext(void 0),Ox=({children:e,size:t})=>{const r=A.useContext(Do);return A.createElement(Do.Provider,{value:t||r},e)};function Tx(){const e=E.useContext(Lo),t=E.useContext(Do);return{componentDisabled:e,componentSize:t}}var zm=Pt(function e(){Tt(this,e)}),Gm="CALC_UNIT",Px=new RegExp(Gm,"g");function wu(e){return typeof e=="number"?"".concat(e).concat(Gm):e}var kx=function(e){Gr(r,e);var t=Hr(r);function r(n,o){var i;Tt(this,r),i=t.call(this),X(be(i),"result",""),X(be(i),"unitlessCssVar",void 0),X(be(i),"lowPriority",void 0);var a=we(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=wu(n):a==="string"&&(i.result=n),i}return Pt(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(wu(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(wu(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(Px,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(zm),Fx=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;return Tt(this,r),o=t.call(this),X(be(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return Pt(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(zm),$x=function(t,r){var n=t==="css"?kx:Fx;return function(o){return new n(o,r)}},Hm=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function cr(e){var t=A.useRef();t.current=e;var r=A.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}function Di(e){var t=A.useRef(!1),r=A.useState(e),n=ie(r,2),o=n[0],i=n[1];A.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function Su(e){return e!==void 0}function ys(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,s=Di(function(){return Su(o)?o:Su(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=ie(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=a?a(d):d,g=cr(i),h=Di([d]),m=ie(h,2),p=m[0],b=m[1];em(function(){var w=p[0];c!==w&&g(c,w)},[p]),em(function(){Su(o)||u(o)},[o]);var y=cr(function(w,S){u(w,S),b([d],S)});return[f,y]}function Wm(e,t,r,n){var o=G({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(s){var l=ie(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&ht(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var d;(d=o[u])!==null&&d!==void 0||(o[u]=o?.[c])}})}var a=G(G({},r),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var Um=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Eu=!0;function Yr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Um)return Object.assign.apply(Object,[{}].concat(t));Eu=!1;var n={};return t.forEach(function(o){if(we(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),Eu=!0,n}var Xm={};function Mx(){}var jx=function(t){var r,n=t,o=Mx;return Um&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,s){if(Eu){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;Xm[a]={global:Array.from(r),component:G(G({},(l=Xm[a])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function Ym(e,t,r){if(typeof r=="function"){var n;return r(Yr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Rx(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(i){return st(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(i){return st(i)}).join(","),")")}}}var Lx=1e3*60*10,Dx=function(){function e(){Tt(this,e),X(this,"map",new Map),X(this,"objectIDMap",new WeakMap),X(this,"nextID",0),X(this,"lastAccessBeat",new Map),X(this,"accessBeat",0)}return Pt(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(i){return i&&we(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(we(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>Lx&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),Jm=new Dx;function _x(e,t){return E.useMemo(function(){var r=Jm.get(t);if(r)return r;var n=e();return Jm.set(t,n),n},t)}var Vx=function(){return{}};function Bx(e){var t=e.useCSP,r=t===void 0?Vx:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,g,h,m){var p=Array.isArray(f)?f[0]:f;function b(N){return"".concat(String(p)).concat(N.slice(0,1).toUpperCase()).concat(N.slice(1))}var y=m?.unitless||{},w=typeof s=="function"?s(f):{},S=G(G({},w),{},X({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(N){S[b(N)]=y[N]});var v=G(G({},m),{},{unitless:S,prefixToken:b}),I=u(f,g,h,v),O=c(p,h,v);return function(N){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,P=I(N,T),M=ie(P,2),x=M[1],$=O(T),F=ie($,2),k=F[0],j=F[1];return[k,x,j]}}function c(f,g,h){var m=h.unitless,p=h.injectStyle,b=p===void 0?!0:p,y=h.prefixToken,w=h.ignore,S=function(O){var N=O.rootCls,T=O.cssVar,P=T===void 0?{}:T,M=n(),x=M.realToken;return qC({path:[f],prefix:P.prefix,key:P.key,unitless:m,ignore:w,token:x,scope:N},function(){var $=Ym(f,x,g),F=Wm(f,x,$,{deprecatedTokens:h?.deprecatedTokens});return Object.keys($).forEach(function(k){F[y(k)]=F[k],delete F[k]}),F}),null},v=function(O){var N=n(),T=N.cssVar;return[function(P){return b&&T?E.createElement(E.Fragment,null,E.createElement(S,{rootCls:O,cssVar:T,component:f}),P):P},T?.key]};return v}function u(f,g,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(f)?f:[f,f],b=ie(p,1),y=b[0],w=p.join("-"),S=e.layer||{name:"antd"};return function(v){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,O=n(),N=O.theme,T=O.realToken,P=O.hashId,M=O.token,x=O.cssVar,$=o(),F=$.rootPrefixCls,k=$.iconPrefixCls,j=r(),z=x?"css":"js",H=_x(function(){var W=new Set;return x&&Object.keys(m.unitless||{}).forEach(function(K){W.add(ss(K,x.prefix)),W.add(ss(K,Hm(y,x.prefix)))}),$x(z,W)},[z,y,x?.prefix]),V=Rx(z),_=V.max,D=V.min,B={theme:N,token:M,hashId:P,nonce:function(){return j.nonce},clientOnly:m.clientOnly,layer:S,order:m.order||-999};typeof i=="function"&&ru(G(G({},B),{},{clientOnly:!1,path:["Shared",F]}),function(){return i(M,{prefix:{rootPrefixCls:F,iconPrefixCls:k},csp:j})});var R=ru(G(G({},B),{},{path:[w,v,k]}),function(){if(m.injectStyle===!1)return[];var W=jx(M),K=W.token,q=W.flush,U=Ym(y,T,h),Q=".".concat(v),Z=Wm(y,T,U,{deprecatedTokens:m.deprecatedTokens});x&&U&&we(U)==="object"&&Object.keys(U).forEach(function(Ce){U[Ce]="var(".concat(ss(Ce,Hm(y,x.prefix)),")")});var se=Yr(K,{componentCls:Q,prefixCls:v,iconCls:".".concat(k),antCls:".".concat(F),calc:H,max:_,min:D},x?U:Z),pe=g(se,{hashId:P,prefixCls:v,rootPrefixCls:F,iconPrefixCls:k});q(y,Z);var Y=typeof a=="function"?a(se,v,I,m.resetFont):null;return[m.resetStyle===!1?null:Y,pe]});return[R,P]}}function d(f,g,h){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=u(f,g,h,G({resetStyle:!1,order:-998},m)),b=function(w){var S=w.prefixCls,v=w.rootCls,I=v===void 0?S:v;return p(S,I),null};return process.env.NODE_ENV!=="production"&&(b.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),b}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const fo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],zx="5.27.0";function Iu(e){return e>=0&&e<=255}function _i(e,t){const{r,g:n,b:o,a:i}=new yt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new yt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-a*(1-c))/c),d=Math.round((n-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(Iu(u)&&Iu(d)&&Iu(f))return new yt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new yt({r,g:n,b:o,a:1}).toRgbString()}var Gx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Zm(e){const{override:t}=e,r=Gx(e,["override"]),n=Object.assign({},t);Object.keys($i).forEach(f=>{delete n[f]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:_i(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:_i(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_i(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:_i(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:`
|
|
77
77
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
78
78
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
79
79
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -85,10 +85,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
85
85
|
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
86
86
|
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
87
87
|
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
88
|
-
`,screenXS:
|
|
89
|
-
0 1px 2px -2px ${new
|
|
90
|
-
0 3px 6px 0 ${new
|
|
91
|
-
0 5px 12px 4px ${new
|
|
88
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
89
|
+
0 1px 2px -2px ${new yt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
90
|
+
0 3px 6px 0 ${new yt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
91
|
+
0 5px 12px 4px ${new yt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
92
92
|
`,boxShadowDrawerRight:`
|
|
93
93
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
94
94
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
@@ -105,49 +105,165 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
105
105
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
106
106
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
107
107
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
108
|
-
`,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)"}),i)}var Of=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};const kf={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},F1={motionBase:!0,motionUnit:!0},R1={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Pf=(e,t,r)=>{const i=r.getDerivativeToken(e),{override:n}=t,o=Of(t,["override"]);let a=Object.assign(Object.assign({},i),{override:n});return a=Tf(a),o&&Object.entries(o).forEach(([u,s])=>{const{theme:l}=s,c=Of(s,["theme"]);let d=c;l&&(d=Pf(Object.assign(Object.assign({},a),c),{override:c},l)),a[u]=d}),a};function Oi(){const{token:e,hashed:t,theme:r,override:i,cssVar:n}=O.useContext(bf),o=`${P1}-${t||""}`,a=r||vf,[u,s,l]=ub(a,[Ii,e],{salt:o,override:i,getComputedToken:Pf,formatToken:Tf,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:kf,ignore:F1,preserve:R1}});return[a,l,t?s:"",u,n]}const Pu=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),M1=()=>({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"}}),V1=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),j1=(e,t,r,i)=>{const n=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return i!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},u),a),{[n]:a})}},L1=(e,t)=>({outline:`${Ci(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Nf=e=>({[`.${e}`]:Object.assign(Object.assign({},M1()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:B1,genComponentStyleHook:$1}=k1({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=O.useContext(lr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,i,n]=Oi();return{theme:e,realToken:t,hashId:r,token:i,cssVar:n}},useCSP:()=>{const{csp:e}=O.useContext(lr);return e??{}},getResetStyles:(e,t)=>{var r;const i=V1(e);return[i,{"&":i},Nf((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Su)]},getCommonStyle:j1,getCompUnitless:()=>kf}),D1=(e,t)=>{const[r,i]=Oi();return au({token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Nf(e))},_1=Object.assign({},R),{useId:Ff}=_1,G1=typeof Ff>"u"?()=>"":Ff;function H1(e,t,r){var i,n;const o=Ei("ConfigProvider"),a=e||{},u=a.inherit===!1||!t?Object.assign(Object.assign({},Iu),{hashed:(i=t?.hashed)!==null&&i!==void 0?i:Iu.hashed,cssVar:t?.cssVar}):t,s=G1();if(process.env.NODE_ENV!=="production"){const l=a.cssVar||u.cssVar,c=!!(typeof a.cssVar=="object"&&(!((n=a.cssVar)===null||n===void 0)&&n.key)||s);process.env.NODE_ENV!=="production"&&o(!l||c,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return od(()=>{var l,c;if(!e)return t;const d=Object.assign({},u.components);Object.keys(e.components||{}).forEach(h=>{d[h]=Object.assign(Object.assign({},d[h]),e.components[h])});const f=`css-var-${s.replace(/:/g,"")}`,g=((l=a.cssVar)!==null&&l!==void 0?l:u.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof u.cssVar=="object"?u.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||f});return Object.assign(Object.assign(Object.assign({},u),a),{token:Object.assign(Object.assign({},u.token),a.token),components:d,cssVar:g})},[a,u],(l,c)=>l.some((d,f)=>{const g=c[f];return!Xs(d,g,!0)}))}var W1=["children"],Rf=R.createContext({});function z1(e){var t=e.children,r=dt(e,W1);return R.createElement(Rf.Provider,{value:r},t)}var X1=function(e){nn(r,e);var t=on(r);function r(){return bt(this,r),t.apply(this,arguments)}return yt(r,[{key:"render",value:function(){return this.props.children}}]),r}(R.Component);function U1(e){var t=R.useReducer(function(u){return u+1},0),r=fe(t,2),i=r[1],n=R.useRef(e),o=Mn(function(){return n.current}),a=Mn(function(u){n.current=typeof u=="function"?u(n.current):u,i()});return[o,a]}var zr="none",ea="appear",ta="enter",ra="leave",Mf="none",nr="prepare",Vn="start",jn="active",Nu="end",Vf="prepared";function jf(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Y1(e,t){var r={animationend:jf("Animation","AnimationEnd"),transitionend:jf("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var J1=Y1(yr(),typeof window<"u"?window:{}),Lf={};if(yr()){var Z1=document.createElement("div");Lf=Z1.style}var na={};function Bf(e){if(na[e])return na[e];var t=J1[e];if(t)for(var r=Object.keys(t),i=r.length,n=0;n<i;n+=1){var o=r[n];if(Object.prototype.hasOwnProperty.call(t,o)&&o in Lf)return na[e]=t[o],na[e]}return""}var $f=Bf("animationend"),Df=Bf("transitionend"),_f=!!($f&&Df),Gf=$f||"animationend",Hf=Df||"transitionend";function Wf(e,t){if(!e)return null;if(pe(e)==="object"){var r=t.replace(/-\w/g,function(i){return i[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const q1=function(e){var t=O.useRef();function r(n){n&&(n.removeEventListener(Hf,e),n.removeEventListener(Gf,e))}function i(n){t.current&&t.current!==n&&r(t.current),n&&n!==t.current&&(n.addEventListener(Hf,e),n.addEventListener(Gf,e),t.current=n)}return R.useEffect(function(){return function(){r(t.current)}},[]),[i,r]};var zf=yr()?O.useLayoutEffect:O.useEffect;const Q1=function(){var e=R.useRef(null);function t(){ar.cancel(e.current)}function r(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=ar(function(){n<=1?i({isCanceled:function(){return o!==e.current}}):r(i,n-1)});e.current=o}return R.useEffect(function(){return function(){t()}},[]),[r,t]};var K1=[nr,Vn,jn,Nu],ey=[nr,Vf],Xf=!1,ty=!0;function Uf(e){return e===jn||e===Nu}const ry=function(e,t,r){var i=Ti(Mf),n=fe(i,2),o=n[0],a=n[1],u=Q1(),s=fe(u,2),l=s[0],c=s[1];function d(){a(nr,!0)}var f=t?ey:K1;return zf(function(){if(o!==Mf&&o!==Nu){var g=f.indexOf(o),h=f[g+1],p=r(o);p===Xf?a(h,!0):h&&l(function(m){function b(){m.isCanceled()||a(h,!0)}p===!0?b():Promise.resolve(p).then(b)})}},[e,o]),R.useEffect(function(){return function(){c()}},[]),[d,o]};function ny(e,t,r,i){var n=i.motionEnter,o=n===void 0?!0:n,a=i.motionAppear,u=a===void 0?!0:a,s=i.motionLeave,l=s===void 0?!0:s,c=i.motionDeadline,d=i.motionLeaveImmediately,f=i.onAppearPrepare,g=i.onEnterPrepare,h=i.onLeavePrepare,p=i.onAppearStart,m=i.onEnterStart,b=i.onLeaveStart,y=i.onAppearActive,I=i.onEnterActive,x=i.onLeaveActive,v=i.onAppearEnd,S=i.onEnterEnd,E=i.onLeaveEnd,w=i.onVisibleChanged,T=Ti(),k=fe(T,2),V=k[0],C=k[1],N=U1(zr),F=fe(N,2),P=F[0],j=F[1],B=Ti(null),U=fe(B,2),Q=U[0],$=U[1],L=P(),G=O.useRef(!1),_=O.useRef(null);function X(){return r()}var K=O.useRef(!1);function ee(){j(zr),$(null,!0)}var D=Mn(function(Xe){var Ge=P();if(Ge!==zr){var mt=X();if(!(Xe&&!Xe.deadline&&Xe.target!==mt)){var Qt=K.current,Kt;Ge===ea&&Qt?Kt=v?.(mt,Xe):Ge===ta&&Qt?Kt=S?.(mt,Xe):Ge===ra&&Qt&&(Kt=E?.(mt,Xe)),Qt&&Kt!==!1&&ee()}}}),Z=q1(D),ne=fe(Z,1),ce=ne[0],Ee=function(Ge){switch(Ge){case ea:return H(H(H({},nr,f),Vn,p),jn,y);case ta:return H(H(H({},nr,g),Vn,m),jn,I);case ra:return H(H(H({},nr,h),Vn,b),jn,x);default:return{}}},z=R.useMemo(function(){return Ee(L)},[L]),Re=ry(L,!e,function(Xe){if(Xe===nr){var Ge=z[nr];return Ge?Ge(X()):Xf}if(ze in z){var mt;$(((mt=z[ze])===null||mt===void 0?void 0:mt.call(z,X(),null))||null)}return ze===jn&&L!==zr&&(ce(X()),c>0&&(clearTimeout(_.current),_.current=setTimeout(function(){D({deadline:!0})},c))),ze===Vf&&ee(),ty}),ae=fe(Re,2),Qe=ae[0],ze=ae[1],Zt=Uf(ze);K.current=Zt;var _r=O.useRef(null);zf(function(){if(!(G.current&&_r.current===t)){C(t);var Xe=G.current;G.current=!0;var Ge;!Xe&&t&&u&&(Ge=ea),Xe&&t&&o&&(Ge=ta),(Xe&&!t&&l||!Xe&&d&&!t&&l)&&(Ge=ra);var mt=Ee(Ge);Ge&&(e||mt[nr])?(j(Ge),Qe()):j(zr),_r.current=t}},[t]),O.useEffect(function(){(L===ea&&!u||L===ta&&!o||L===ra&&!l)&&j(zr)},[u,o,l]),O.useEffect(function(){return function(){G.current=!1,clearTimeout(_.current)}},[]);var qt=R.useRef(!1);O.useEffect(function(){V&&(qt.current=!0),V!==void 0&&L===zr&&((qt.current||V)&&w?.(V),qt.current=!0)},[V,L]);var xt=Q;return z[nr]&&ze===Vn&&(xt=W({transition:"none"},xt)),[L,ze,xt,V??t]}function iy(e){var t=e;pe(e)==="object"&&(t=e.transitionSupport);function r(n,o){return!!(n.motionName&&t&&o!==!1)}var i=R.forwardRef(function(n,o){var a=n.visible,u=a===void 0?!0:a,s=n.removeOnLeave,l=s===void 0?!0:s,c=n.forceRender,d=n.children,f=n.motionName,g=n.leavedClassName,h=n.eventProps,p=R.useContext(Rf),m=p.motion,b=r(n,m),y=O.useRef(),I=O.useRef();function x(){try{return y.current instanceof HTMLElement?y.current:Ev(I.current)}catch{return null}}var v=ny(b,u,x,n),S=fe(v,4),E=S[0],w=S[1],T=S[2],k=S[3],V=R.useRef(k);k&&(V.current=!0);var C=R.useCallback(function(U){y.current=U,ad(o,U)},[o]),N,F=W(W({},h),{},{visible:u});if(!d)N=null;else if(E===zr)k?N=d(W({},F),C):!l&&V.current&&g?N=d(W(W({},F),{},{className:g}),C):c||!l&&!g?N=d(W(W({},F),{},{style:{display:"none"}}),C):N=null;else{var P;w===nr?P="prepare":Uf(w)?P="active":w===Vn&&(P="start");var j=Wf(f,"".concat(E,"-").concat(P));N=d(W(W({},F),{},{className:re(Wf(f,E),H(H({},j,j&&P),f,typeof f=="string")),style:T}),C)}if(R.isValidElement(N)&&sd(N)){var B=ld(N);B||(N=R.cloneElement(N,{ref:C}))}return R.createElement(X1,{ref:I},N)});return i.displayName="CSSMotion",i}const Yf=iy(_f);var Fu="add",Ru="keep",Mu="remove",Vu="removed";function oy(e){var t;return e&&pe(e)==="object"&&"key"in e?t=e:t={key:e},W(W({},t),{},{key:String(t.key)})}function ju(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(oy)}function ay(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],i=0,n=t.length,o=ju(e),a=ju(t);o.forEach(function(l){for(var c=!1,d=i;d<n;d+=1){var f=a[d];if(f.key===l.key){i<d&&(r=r.concat(a.slice(i,d).map(function(g){return W(W({},g),{},{status:Fu})})),i=d),r.push(W(W({},f),{},{status:Ru})),i+=1,c=!0;break}}c||r.push(W(W({},l),{},{status:Mu}))}),i<n&&(r=r.concat(a.slice(i).map(function(l){return W(W({},l),{},{status:Fu})})));var u={};r.forEach(function(l){var c=l.key;u[c]=(u[c]||0)+1});var s=Object.keys(u).filter(function(l){return u[l]>1});return s.forEach(function(l){r=r.filter(function(c){var d=c.key,f=c.status;return d!==l||f!==Mu}),r.forEach(function(c){c.key===l&&(c.status=Ru)})}),r}var sy=["component","children","onVisibleChanged","onAllRemoved"],uy=["status"],ly=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yf,r=function(i){nn(o,i);var n=on(o);function o(){var a;bt(this,o);for(var u=arguments.length,s=new Array(u),l=0;l<u;l++)s[l]=arguments[l];return a=n.call.apply(n,[this].concat(s)),H(ve(a),"state",{keyEntities:[]}),H(ve(a),"removeKey",function(c){a.setState(function(d){var f=d.keyEntities.map(function(g){return g.key!==c?g:W(W({},g),{},{status:Vu})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(g){var h=g.status;return h!==Vu}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return yt(o,[{key:"render",value:function(){var u=this,s=this.state.keyEntities,l=this.props,c=l.component,d=l.children,f=l.onVisibleChanged;l.onAllRemoved;var g=dt(l,sy),h=c||R.Fragment,p={};return ly.forEach(function(m){p[m]=g[m],delete g[m]}),delete g.keys,R.createElement(h,g,s.map(function(m,b){var y=m.status,I=dt(m,uy),x=y===Fu||y===Ru;return R.createElement(t,se({},p,{key:I.key,visible:x,eventProps:I,onVisibleChanged:function(S){f?.(S,{key:I.key}),S||u.removeKey(I.key)}}),function(v,S){return d(W(W({},v),{},{index:b}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(u,s){var l=u.keys,c=s.keyEntities,d=ju(l),f=ay(c,d);return{keyEntities:f.filter(function(g){var h=c.find(function(p){var m=p.key;return g.key===m});return!(h&&h.status===Vu&&g.status===Mu)})}}}]),o}(R.Component);return H(r,"defaultProps",{component:"div"}),r}cy(_f);const Lu=R.createContext(!0);process.env.NODE_ENV!=="production"&&(Lu.displayName="MotionCacheContext");function dy(e){const t=R.useContext(Lu),{children:r}=e,[,i]=Oi(),{motion:n}=i,o=R.useRef(!1);return o.current||(o.current=t!==n),o.current?R.createElement(Lu.Provider,{value:n},R.createElement(z1,{motion:n},r)):r}const Jf=R.memo(({dropdownMatchSelectWidth:e})=>(Ei("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Jf.displayName="PropWarning");const fy=process.env.NODE_ENV!=="production"?Jf:()=>null;var py=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};let Bu=!1;process.env.NODE_ENV;const my=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Zf;function gy(){return Zf||qo}function hy(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const vy=e=>{const{prefixCls:t,iconPrefixCls:r,theme:i,holderRender:n}=e;t!==void 0&&(Zf=t),i&&hy(i)&&(process.env.NODE_ENV!=="production"&&Rn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),p1(gy(),i))},by=e=>{const{children:t,csp:r,autoInsertSpaceInButton:i,alert:n,anchor:o,form:a,locale:u,componentSize:s,direction:l,space:c,splitter:d,virtual:f,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:p,legacyLocale:m,parentContext:b,iconPrefixCls:y,theme:I,componentDisabled:x,segmented:v,statistic:S,spin:E,calendar:w,carousel:T,cascader:k,collapse:V,typography:C,checkbox:N,descriptions:F,divider:P,drawer:j,skeleton:B,steps:U,image:Q,layout:$,list:L,mentions:G,modal:_,progress:X,result:K,slider:ee,breadcrumb:D,menu:Z,pagination:ne,input:ce,textArea:Ee,empty:z,badge:Re,radio:ae,rate:Qe,switch:ze,transfer:Zt,avatar:_r,message:qt,tag:xt,table:Xe,card:Ge,tabs:mt,timeline:Qt,timePicker:Kt,upload:yn,notification:Cn,tree:ci,colorPicker:Os,datePicker:ks,rangePicker:Rc,flex:Mc,wave:Vc,dropdown:jc,warning:Lc,tour:Bc,tooltip:$c,popover:Io,popconfirm:Ps,floatButton:tn,floatButtonGroup:So,variant:wo,inputNumber:Ns,treeSelect:Dc}=e,Ao=R.useCallback((M,J)=>{const{prefixCls:ie}=e;if(J)return J;const ue=ie||b.getPrefixCls("");return M?`${ue}-${M}`:ue},[b.getPrefixCls,e.prefixCls]),di=y||b.iconPrefixCls||Su,xn=r||b.csp;D1(di,xn);const En=H1(I,b.theme,{prefixCls:Ao("")});process.env.NODE_ENV!=="production"&&(Bu=Bu||!!En);const To={csp:xn,autoInsertSpaceInButton:i,alert:n,anchor:o,locale:u||m,direction:l,space:c,splitter:d,virtual:f,popupMatchSelectWidth:h??g,popupOverflow:p,getPrefixCls:Ao,iconPrefixCls:di,theme:En,segmented:v,statistic:S,spin:E,calendar:w,carousel:T,cascader:k,collapse:V,typography:C,checkbox:N,descriptions:F,divider:P,drawer:j,skeleton:B,steps:U,image:Q,input:ce,textArea:Ee,layout:$,list:L,mentions:G,modal:_,progress:X,result:K,slider:ee,breadcrumb:D,menu:Z,pagination:ne,empty:z,badge:Re,radio:ae,rate:Qe,switch:ze,transfer:Zt,avatar:_r,message:qt,tag:xt,table:Xe,card:Ge,tabs:mt,timeline:Qt,timePicker:Kt,upload:yn,notification:Cn,tree:ci,colorPicker:Os,datePicker:ks,rangePicker:Rc,flex:Mc,wave:Vc,dropdown:jc,warning:Lc,tour:Bc,tooltip:$c,popover:Io,popconfirm:Ps,floatButton:tn,floatButtonGroup:So,variant:wo,inputNumber:Ns,treeSelect:Dc};process.env.NODE_ENV!=="production"&&Ei("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const rn=Object.assign({},b);Object.keys(To).forEach(M=>{To[M]!==void 0&&(rn[M]=To[M])}),my.forEach(M=>{const J=e[M];J&&(rn[M]=J)}),typeof i<"u"&&(rn.button=Object.assign({autoInsertSpace:i},rn.button));const Gr=od(()=>rn,rn,(M,J)=>{const ie=Object.keys(M),ue=Object.keys(J);return ie.length!==ue.length||ie.some(xe=>M[xe]!==J[xe])}),{layer:Oo}=R.useContext(bi),_c=R.useMemo(()=>({prefixCls:di,csp:xn,layer:Oo?"antd":void 0}),[di,xn,Oo]);let ut=R.createElement(R.Fragment,null,R.createElement(fy,{dropdownMatchSelectWidth:g}),t);const Fs=R.useMemo(()=>{var M,J,ie,ue;return Fn(((M=Uo.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||{},((ie=(J=Gr.locale)===null||J===void 0?void 0:J.Form)===null||ie===void 0?void 0:ie.defaultValidateMessages)||{},((ue=Gr.form)===null||ue===void 0?void 0:ue.validateMessages)||{},a?.validateMessages||{})},[Gr,a?.validateMessages]);Object.keys(Fs).length>0&&(ut=R.createElement(Wb.Provider,{value:Fs},ut)),u&&(ut=R.createElement(uf,{locale:u,_ANT_MARK__:sf},ut)),ut=R.createElement($b.Provider,{value:_c},ut),s&&(ut=R.createElement(g1,{size:s},ut)),ut=R.createElement(dy,null,ut);const Gc=R.useMemo(()=>{const M=En||{},{algorithm:J,token:ie,components:ue,cssVar:xe}=M,je=py(M,["algorithm","token","components","cssVar"]),be=J&&(!Array.isArray(J)||J.length>0)?Zs(J):vf,ge={};Object.entries(ue||{}).forEach(([Ue,Ke])=>{const et=Object.assign({},Ke);"algorithm"in et&&(et.algorithm===!0?et.theme=be:(Array.isArray(et.algorithm)||typeof et.algorithm=="function")&&(et.theme=Zs(et.algorithm)),delete et.algorithm),ge[Ue]=et});const ct=Object.assign(Object.assign({},Ii),ie);return Object.assign(Object.assign({},je),{theme:be,token:ct,components:ge,override:Object.assign({override:ct},ge),cssVar:xe})},[En]);return I&&(ut=R.createElement(bf.Provider,{value:Gc},ut)),Gr.warning&&(ut=R.createElement(nf.Provider,{value:Gr.warning},ut)),x!==void 0&&(ut=R.createElement(m1,{disabled:x},ut)),R.createElement(lr.Provider,{value:Gr},ut)},Ln=e=>{const t=R.useContext(lr),r=R.useContext(af);return R.createElement(by,Object.assign({parentContext:t,legacyLocale:r},e))};Ln.ConfigContext=lr,Ln.SizeContext=Ai,Ln.config=vy,Ln.useConfig=h1,Object.defineProperty(Ln,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Rn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ai)}),process.env.NODE_ENV!=="production"&&(Ln.displayName="ConfigProvider");const yy=(e,t,r)=>O.isValidElement(e)?O.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function Cy(e,t){return yy(e,e,t)}const qf=e=>{const[,,,,t]=Oi();return t?`${e}-css-var`:""};function Qf(e,t){this.v=e,this.k=t}function gt(e,t,r,i){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}gt=function(a,u,s,l){function c(d,f){gt(a,d,function(g){return this._invoke(d,f,g)})}u?n?n(a,u,{value:s,enumerable:!l,configurable:!l,writable:!l}):a[u]=s:(c("next",0),c("throw",1),c("return",2))},gt(e,t,r,i)}function $u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},i=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function o(g,h,p,m){var b=h&&h.prototype instanceof u?h:u,y=Object.create(b.prototype);return gt(y,"_invoke",function(I,x,v){var S,E,w,T=0,k=v||[],V=!1,C={p:0,n:0,v:e,a:N,f:N.bind(e,4),d:function(P,j){return S=P,E=0,w=e,C.n=j,a}};function N(F,P){for(E=F,w=P,t=0;!V&&T&&!j&&t<k.length;t++){var j,B=k[t],U=C.p,Q=B[2];F>3?(j=Q===P)&&(w=B[(E=B[4])?5:(E=3,3)],B[4]=B[5]=e):B[0]<=U&&((j=F<2&&U<B[1])?(E=0,C.v=P,C.n=B[1]):U<Q&&(j=F<3||B[0]>P||P>Q)&&(B[4]=F,B[5]=P,C.n=Q,E=0))}if(j||F>1)return a;throw V=!0,P}return function(F,P,j){if(T>1)throw TypeError("Generator is already running");for(V&&P===1&&N(P,j),E=P,w=j;(t=E<2?e:w)||!V;){S||(E?E<3?(E>1&&(C.n=-1),N(E,w)):C.n=w:C.v=w);try{if(T=2,S){if(E||(F="next"),t=S[F]){if(!(t=t.call(S,w)))throw TypeError("iterator result is not an object");if(!t.done)return t;w=t.value,E<2&&(E=0)}else E===1&&(t=S.return)&&t.call(S),E<2&&(w=TypeError("The iterator does not provide a '"+F+"' method"),E=1);S=e}else if((t=(V=C.n<0)?w:I.call(x,C))!==a)break}catch(B){S=e,E=1,w=B}finally{T=1}}return{value:t,done:V}}}(g,p,m),!0),y}var a={};function u(){}function s(){}function l(){}t=Object.getPrototypeOf;var c=[][i]?t(t([][i]())):(gt(t={},i,function(){return this}),t),d=l.prototype=u.prototype=Object.create(c);function f(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,l):(g.__proto__=l,gt(g,n,"GeneratorFunction")),g.prototype=Object.create(d),g}return s.prototype=l,gt(d,"constructor",l),gt(l,"constructor",s),s.displayName="GeneratorFunction",gt(l,n,"GeneratorFunction"),gt(d),gt(d,n,"Generator"),gt(d,i,function(){return this}),gt(d,"toString",function(){return"[object Generator]"}),($u=function(){return{w:o,m:f}})()}function ia(e,t){function r(n,o,a,u){try{var s=e[n](o),l=s.value;return l instanceof Qf?t.resolve(l.v).then(function(c){r("next",c,a,u)},function(c){r("throw",c,a,u)}):t.resolve(l).then(function(c){s.value=c,a(s)},function(c){return r("throw",c,a,u)})}catch(c){u(c)}}var i;this.next||(gt(ia.prototype),gt(ia.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),gt(this,"_invoke",function(n,o,a){function u(){return new t(function(s,l){r(n,a,s,l)})}return i=i?i.then(u,u):u()},!0)}function Kf(e,t,r,i,n){return new ia($u().w(e,t,r,i),n||Promise)}function xy(e,t,r,i,n){var o=Kf(e,t,r,i,n);return o.next().then(function(a){return a.done?a.value:o.next()})}function Ey(e){var t=Object(e),r=[];for(var i in t)r.unshift(i);return function n(){for(;r.length;)if((i=r.pop())in t)return n.value=i,n.done=!1,n;return n.done=!0,n}}function ep(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(pe(e)+" is not iterable")}function ht(){var e=$u(),t=e.m(ht),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function i(a){var u=typeof a=="function"&&a.constructor;return!!u&&(u===r||(u.displayName||u.name)==="GeneratorFunction")}var n={throw:1,return:2,break:3,continue:3};function o(a){var u,s;return function(l){u||(u={stop:function(){return s(l.a,2)},catch:function(){return l.v},abrupt:function(d,f){return s(l.a,n[d],f)},delegateYield:function(d,f,g){return u.resultName=f,s(l.d,ep(d),g)},finish:function(d){return s(l.f,d)}},s=function(d,f,g){l.p=u.prev,l.n=u.next;try{return d(f,g)}finally{u.next=l.n}}),u.resultName&&(u[u.resultName]=l.v,u.resultName=void 0),u.sent=l.v,u.next=l.n;try{return a.call(this,u)}finally{l.p=u.prev,l.n=u.next}}}return(ht=function(){return{wrap:function(s,l,c,d){return e.w(o(s),l,c,d&&d.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(s,l){return new Qf(s,l)},AsyncIterator:ia,async:function(s,l,c,d,f){return(i(l)?Kf:xy)(o(s),l,c,d,f)},keys:Ey,values:ep}})()}function tp(e,t,r,i,n,o,a){try{var u=e[o](a),s=u.value}catch(l){return void r(l)}u.done?t(s):Promise.resolve(s).then(i,n)}function un(e){return function(){var t=this,r=arguments;return new Promise(function(i,n){var o=e.apply(t,r);function a(s){tp(o,i,n,a,u,"next",s)}function u(s){tp(o,i,n,a,u,"throw",s)}a(void 0)})}}var ki=W({},Rs),Iy=ki.version,Du=ki.render,Sy=ki.unmountComponentAtNode,oa;try{var wy=Number((Iy||"").split(".")[0]);wy>=18&&(oa=ki.createRoot)}catch{}function rp(e){var t=ki.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&pe(t)==="object"&&(t.usingClientEntryPoint=e)}var aa="__rc_react_root__";function Ay(e,t){rp(!0);var r=t[aa]||oa(t);rp(!1),r.render(e),t[aa]=r}function Ty(e,t){Du?.(e,t)}function Oy(e,t){if(oa){Ay(e,t);return}Ty(e,t)}function ky(e){return _u.apply(this,arguments)}function _u(){return _u=un(ht().mark(function e(t){return ht().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.resolve().then(function(){var n;(n=t[aa])===null||n===void 0||n.unmount(),delete t[aa]}));case 1:case"end":return i.stop()}},e)})),_u.apply(this,arguments)}function Py(e){Sy(e)}function Ny(e){return Gu.apply(this,arguments)}function Gu(){return Gu=un(ht().mark(function e(t){return ht().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(oa===void 0){i.next=2;break}return i.abrupt("return",ky(t));case 2:Py(t);case 3:case"end":return i.stop()}},e)})),Gu.apply(this,arguments)}let Fy=(e,t)=>{if(process.env.NODE_ENV!=="production"){const r=parseInt(R.version.split(".")[0],10),i=Object.keys(Rs);process.env.NODE_ENV!=="production"&&Rn(r<19||i.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return Oy(e,t),()=>Ny(t)};function Ry(e){return Fy}function My(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(i){delete r[i]}),r}const Vy=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,i=t.height;if(r||i)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=n.width,a=n.height;if(o||a)return!0}}return!1},jy=$1("Wave",e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),Hu=`${qo}-wave-target`;function Wu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function Ly(e){const{borderTopColor:t,borderColor:r,backgroundColor:i}=getComputedStyle(e);return Wu(t)?t:Wu(r)?r:Wu(i)?i:null}function zu(e){return Number.isNaN(e)?0:e}const By=e=>{const{className:t,target:r,component:i,registerUnmount:n}=e,o=R.useRef(null),a=R.useRef(null);R.useEffect(()=>{a.current=n()},[]);const[u,s]=R.useState(null),[l,c]=R.useState([]),[d,f]=R.useState(0),[g,h]=R.useState(0),[p,m]=R.useState(0),[b,y]=R.useState(0),[I,x]=R.useState(!1),v={left:d,top:g,width:p,height:b,borderRadius:l.map(w=>`${w}px`).join(" ")};u&&(v["--wave-color"]=u);function S(){const w=getComputedStyle(r);s(Ly(r));const T=w.position==="static",{borderLeftWidth:k,borderTopWidth:V}=w;f(T?r.offsetLeft:zu(-parseFloat(k))),h(T?r.offsetTop:zu(-parseFloat(V))),m(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:C,borderTopRightRadius:N,borderBottomLeftRadius:F,borderBottomRightRadius:P}=w;c([C,N,P,F].map(j=>zu(parseFloat(j))))}if(R.useEffect(()=>{if(r){const w=ar(()=>{S(),x(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(S),T.observe(r)),()=>{ar.cancel(w),T?.disconnect()}}},[]),!I)return null;const E=(i==="Checkbox"||i==="Radio")&&r?.classList.contains(Hu);return R.createElement(Yf,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,T)=>{var k,V;if(T.deadline||T.propertyName==="opacity"){const C=(k=o.current)===null||k===void 0?void 0:k.parentElement;(V=a.current)===null||V===void 0||V.call(a).then(()=>{C?.remove()})}return!1}},({className:w},T)=>R.createElement("div",{ref:Ds(o,T),className:re(t,w,{"wave-quick":E}),style:v}))},$y=(e,t)=>{var r;const{component:i}=t;if(i==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild);const o=Ry();let a=null;function u(){return a}a=o(R.createElement(By,Object.assign({},t,{target:e,registerUnmount:u})),n)},Dy=(e,t,r)=>{const{wave:i}=R.useContext(lr),[,n,o]=Oi(),a=Mn(l=>{const c=e.current;if(i?.disabled||!c)return;const d=c.querySelector(`.${Hu}`)||c,{showEffect:f}=i||{};(f||$y)(d,{className:t,token:n,component:r,event:l,hashId:o})}),u=R.useRef(null);return l=>{ar.cancel(u.current),u.current=ar(()=>{a(l)})}},np=e=>{const{children:t,disabled:r,component:i}=e,{getPrefixCls:n}=O.useContext(lr),o=O.useRef(null),a=n("wave"),[,u]=jy(a),s=Dy(o,re(a,u),i);if(O.useEffect(()=>{const c=o.current;if(!c||c.nodeType!==1||r)return;const d=f=>{!Vy(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s(f)};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0)}},[r]),!O.isValidElement(t))return t??null;const l=sd(t)?Ds(ld(t),o):o;return Cy(t,{ref:l})};process.env.NODE_ENV!=="production"&&(np.displayName="Wave");var ln="RC_FORM_INTERNAL_HOOKS",Le=function(){Ye(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Bn=R.createContext({getFieldValue:Le,getFieldsValue:Le,getFieldError:Le,getFieldWarning:Le,getFieldsError:Le,isFieldsTouched:Le,isFieldTouched:Le,isFieldValidating:Le,isFieldsValidating:Le,resetFields:Le,setFields:Le,setFieldValue:Le,setFieldsValue:Le,validateFields:Le,submit:Le,getInternalHooks:function(){return Le(),{dispatch:Le,initEntityValue:Le,registerField:Le,useSubscribe:Le,setInitialValues:Le,destroyForm:Le,setCallbacks:Le,registerWatch:Le,getFields:Le,setValidateMessages:Le,setPreserve:Le,getInitialValue:Le}}}),sa=R.createContext(null);function Xu(e){return e==null?[]:Array.isArray(e)?e:[e]}function _y(e){return e&&!!e._init}function Uu(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Yu=Uu();function Gy(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Hy(e,t,r){if(_s())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var n=new(e.bind.apply(e,i));return r&&gi(n,r.prototype),n}function Ju(e){var t=typeof Map=="function"?new Map:void 0;return Ju=function(i){if(i===null||!Gy(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(i))return t.get(i);t.set(i,n)}function n(){return Hy(i,arguments,hi(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gi(n,i)},Ju(e)}var Wy=/%[sdj%]/g,ip=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(ip=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(i){return typeof i=="string"})&&console.warn(t,r)});function Zu(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var i=r.field;t[i]=t[i]||[],t[i].push(r)}),t}function Pt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var n=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(Wy,function(u){if(u==="%%")return"%";if(n>=o)return u;switch(u){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch{return"[Circular]"}break;default:return u}});return a}return e}function zy(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function st(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||zy(t)&&typeof e=="string"&&!e)}function Xy(e,t,r){var i=[],n=0,o=e.length;function a(u){i.push.apply(i,de(u||[])),n++,n===o&&r(i)}e.forEach(function(u){t(u,a)})}function op(e,t,r){var i=0,n=e.length;function o(a){if(a&&a.length){r(a);return}var u=i;i=i+1,u<n?t(e[u],o):r([])}o([])}function Uy(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,de(e[r]||[]))}),t}var ap=function(e){nn(r,e);var t=on(r);function r(i,n){var o;return bt(this,r),o=t.call(this,"Async Validation Error"),H(ve(o),"errors",void 0),H(ve(o),"fields",void 0),o.errors=i,o.fields=n,o}return yt(r)}(Ju(Error));function Yy(e,t,r,i,n){if(t.first){var o=new Promise(function(f,g){var h=function(b){return i(b),b.length?g(new ap(b,Zu(b))):f(n)},p=Uy(e);op(p,r,h)});return o.catch(function(f){return f}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],u=Object.keys(e),s=u.length,l=0,c=[],d=new Promise(function(f,g){var h=function(m){if(c.push.apply(c,m),l++,l===s)return i(c),c.length?g(new ap(c,Zu(c))):f(n)};u.length||(i(c),f(n)),u.forEach(function(p){var m=e[p];a.indexOf(p)!==-1?op(m,r,h):Xy(m,r,h)})});return d.catch(function(f){return f}),d}function Jy(e){return!!(e&&e.message!==void 0)}function Zy(e,t){for(var r=e,i=0;i<t.length;i++){if(r==null)return r;r=r[t[i]]}return r}function sp(e,t){return function(r){var i;return e.fullFields?i=Zy(t,e.fullFields):i=t[r.field||e.fullField],Jy(r)?(r.field=r.field||e.fullField,r.fieldValue=i,r):{message:typeof r=="function"?r():r,fieldValue:i,field:r.field||e.fullField}}}function up(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];pe(i)==="object"&&pe(e[r])==="object"?e[r]=W(W({},e[r]),i):e[r]=i}}return e}var $n="enum",qy=function(t,r,i,n,o){t[$n]=Array.isArray(t[$n])?t[$n]:[],t[$n].indexOf(r)===-1&&n.push(Pt(o.messages[$n],t.fullField,t[$n].join(", ")))},Qy=function(t,r,i,n,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||n.push(Pt(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||n.push(Pt(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ky=function(t,r,i,n,o){var a=typeof t.len=="number",u=typeof t.min=="number",s=typeof t.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,d=null,f=typeof r=="number",g=typeof r=="string",h=Array.isArray(r);if(f?d="number":g?d="string":h&&(d="array"),!d)return!1;h&&(c=r.length),g&&(c=r.replace(l,"_").length),a?c!==t.len&&n.push(Pt(o.messages[d].len,t.fullField,t.len)):u&&!s&&c<t.min?n.push(Pt(o.messages[d].min,t.fullField,t.min)):s&&!u&&c>t.max?n.push(Pt(o.messages[d].max,t.fullField,t.max)):u&&s&&(c<t.min||c>t.max)&&n.push(Pt(o.messages[d].range,t.fullField,t.min,t.max))},lp=function(t,r,i,n,o,a){t.required&&(!i.hasOwnProperty(t.field)||st(r,a||t.type))&&n.push(Pt(o.messages.required,t.fullField))},ua;const eC=function(){if(ua)return ua;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",i="[a-fA-F\\d]{1,4}",n=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(r,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(r,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(r,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(r,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(r,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(r,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(r,"|(?::").concat(i,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(n.join("|"),")").concat(o),u=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),s=new RegExp("^".concat(r,"$")),l=new RegExp("^".concat(a,"$")),c=function(S){return S&&S.exact?u:new RegExp("(?:".concat(t(S)).concat(r).concat(t(S),")|(?:").concat(t(S)).concat(a).concat(t(S),")"),"g")};c.v4=function(v){return v&&v.exact?s:new RegExp("".concat(t(v)).concat(r).concat(t(v)),"g")},c.v6=function(v){return v&&v.exact?l:new RegExp("".concat(t(v)).concat(a).concat(t(v)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",g=c.v4().source,h=c.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",m="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",I='(?:[/?#][^\\s"]*)?',x="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(g,"|").concat(h,"|").concat(p).concat(m).concat(b,")").concat(y).concat(I);return ua=new RegExp("(?:^".concat(x,"$)"),"i"),ua};var cp={email:/^(([^<>()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pi={integer:function(t){return Pi.number(t)&&parseInt(t,10)===t},float:function(t){return Pi.number(t)&&!Pi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return pe(t)==="object"&&!Pi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cp.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(eC())},hex:function(t){return typeof t=="string"&&!!t.match(cp.hex)}},tC=function(t,r,i,n,o){if(t.required&&r===void 0){lp(t,r,i,n,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;a.indexOf(u)>-1?Pi[u](r)||n.push(Pt(o.messages.types[u],t.fullField,t.type)):u&&pe(r)!==t.type&&n.push(Pt(o.messages.types[u],t.fullField,t.type))},rC=function(t,r,i,n,o){(/^\s+$/.test(r)||r==="")&&n.push(Pt(o.messages.whitespace,t.fullField))};const ye={required:lp,whitespace:rC,type:tC,range:Ky,enum:qy,pattern:Qy};var nC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o)}i(a)},iC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(r==null&&!t.required)return i();ye.required(t,r,n,a,o,"array"),r!=null&&(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o))}i(a)},oC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&ye.type(t,r,n,a,o)}i(a)},aC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r,"date")&&!t.required)return i();if(ye.required(t,r,n,a,o),!st(r,"date")){var s;r instanceof Date?s=r:s=new Date(r),ye.type(t,s,n,a,o),s&&ye.range(t,s.getTime(),n,a,o)}}i(a)},sC="enum",uC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&ye[sC](t,r,n,a,o)}i(a)},lC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o))}i(a)},cC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o))}i(a)},dC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&ye.type(t,r,n,a,o)}i(a)},fC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(r===""&&(r=void 0),st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o))}i(a)},pC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),r!==void 0&&ye.type(t,r,n,a,o)}i(a)},mC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r,"string")&&!t.required)return i();ye.required(t,r,n,a,o),st(r,"string")||ye.pattern(t,r,n,a,o)}i(a)},gC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r)&&!t.required)return i();ye.required(t,r,n,a,o),st(r)||ye.type(t,r,n,a,o)}i(a)},hC=function(t,r,i,n,o){var a=[],u=Array.isArray(r)?"array":pe(r);ye.required(t,r,n,a,o,u),i(a)},vC=function(t,r,i,n,o){var a=[],u=t.required||!t.required&&n.hasOwnProperty(t.field);if(u){if(st(r,"string")&&!t.required)return i();ye.required(t,r,n,a,o,"string"),st(r,"string")||(ye.type(t,r,n,a,o),ye.range(t,r,n,a,o),ye.pattern(t,r,n,a,o),t.whitespace===!0&&ye.whitespace(t,r,n,a,o))}i(a)},qu=function(t,r,i,n,o){var a=t.type,u=[],s=t.required||!t.required&&n.hasOwnProperty(t.field);if(s){if(st(r,a)&&!t.required)return i();ye.required(t,r,n,u,o,a),st(r,a)||ye.type(t,r,n,u,o)}i(u)};const Ni={string:vC,method:dC,number:fC,boolean:oC,regexp:gC,integer:cC,float:lC,array:iC,object:pC,enum:uC,pattern:mC,date:aC,url:qu,hex:qu,email:qu,required:hC,any:nC};var Fi=function(){function e(t){bt(this,e),H(this,"rules",null),H(this,"_messages",Yu),this.define(t)}return yt(e,[{key:"define",value:function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(pe(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(n){var o=r[n];i.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=up(Uu(),r)),this._messages}},{key:"validate",value:function(r){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,u=n,s=o;if(typeof u=="function"&&(s=u,u={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function l(h){var p=[],m={};function b(I){if(Array.isArray(I)){var x;p=(x=p).concat.apply(x,de(I))}else p.push(I)}for(var y=0;y<h.length;y++)b(h[y]);p.length?(m=Zu(p),s(p,m)):s(null,a)}if(u.messages){var c=this.messages();c===Yu&&(c=Uu()),up(c,u.messages),u.messages=c}else u.messages=this.messages();var d={},f=u.keys||Object.keys(this.rules);f.forEach(function(h){var p=i.rules[h],m=a[h];p.forEach(function(b){var y=b;typeof y.transform=="function"&&(a===r&&(a=W({},a)),m=a[h]=y.transform(m),m!=null&&(y.type=y.type||(Array.isArray(m)?"array":pe(m)))),typeof y=="function"?y={validator:y}:y=W({},y),y.validator=i.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=i.getType(y),d[h]=d[h]||[],d[h].push({rule:y,value:m,source:a,field:h}))})});var g={};return Yy(d,u,function(h,p){var m=h.rule,b=(m.type==="object"||m.type==="array")&&(pe(m.fields)==="object"||pe(m.defaultField)==="object");b=b&&(m.required||!m.required&&h.value),m.field=h.field;function y(E,w){return W(W({},w),{},{fullField:"".concat(m.fullField,".").concat(E),fullFields:m.fullFields?[].concat(de(m.fullFields),[E]):[E]})}function I(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(E)?E:[E];!u.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&m.message!==void 0&&(w=[].concat(m.message));var T=w.map(sp(m,a));if(u.first&&T.length)return g[m.field]=1,p(T);if(!b)p(T);else{if(m.required&&!h.value)return m.message!==void 0?T=[].concat(m.message).map(sp(m,a)):u.error&&(T=[u.error(m,Pt(u.messages.required,m.field))]),p(T);var k={};m.defaultField&&Object.keys(h.value).map(function(N){k[N]=m.defaultField}),k=W(W({},k),h.rule.fields);var V={};Object.keys(k).forEach(function(N){var F=k[N],P=Array.isArray(F)?F:[F];V[N]=P.map(y.bind(null,N))});var C=new e(V);C.messages(u.messages),h.rule.options&&(h.rule.options.messages=u.messages,h.rule.options.error=u.error),C.validate(h.value,h.rule.options||u,function(N){var F=[];T&&T.length&&F.push.apply(F,de(T)),N&&N.length&&F.push.apply(F,de(N)),p(F.length?F:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,h.value,I,h.source,u);else if(m.validator){try{x=m.validator(m,h.value,I,h.source,u)}catch(E){var v,S;(v=(S=console).error)===null||v===void 0||v.call(S,E),u.suppressValidatorError||setTimeout(function(){throw E},0),I(E.message)}x===!0?I():x===!1?I(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||"".concat(m.fullField||m.field," fails")):x instanceof Array?I(x):x instanceof Error&&I(x.message)}x&&x.then&&x.then(function(){return I()},function(E){return I(E)})},function(h){l(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ni.hasOwnProperty(r.type))throw new Error(Pt("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),n=i.indexOf("message");return n!==-1&&i.splice(n,1),i.length===1&&i[0]==="required"?Ni.required:Ni[this.getType(r)]||void 0}}]),e}();H(Fi,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ni[t]=r}),H(Fi,"warning",ip),H(Fi,"messages",Yu),H(Fi,"validators",Ni);var Nt="'${name}' is not a valid ${type}",dp={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:Nt,method:Nt,array:Nt,object:Nt,number:Nt,date:Nt,boolean:Nt,integer:Nt,float:Nt,regexp:Nt,email:Nt,url:Nt,hex:Nt},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}"}},fp=Fi;function bC(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var i=r.slice(2,-1);return t[i]})}var pp="CODE_LOGIC_ERROR";function Qu(e,t,r,i,n){return Ku.apply(this,arguments)}function Ku(){return Ku=un(ht().mark(function e(t,r,i,n,o){var a,u,s,l,c,d,f,g,h;return ht().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return a=W({},i),delete a.ruleIndex,fp.warning=function(){},a.validator&&(u=a.validator,a.validator=function(){try{return u.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(pp)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),l=new fp(H({},t,[a])),c=Fn(dp,n.validateMessages),l.messages(c),d=[],m.prev=10,m.next=13,Promise.resolve(l.validate(H({},t,r),W({},n)));case 13:m.next=18;break;case 15:m.prev=15,m.t0=m.catch(10),m.t0.errors&&(d=m.t0.errors.map(function(b,y){var I=b.message,x=I===pp?c.default:I;return R.isValidElement(x)?R.cloneElement(x,{key:"error_".concat(y)}):x}));case 18:if(!(!d.length&&s)){m.next=23;break}return m.next=21,Promise.all(r.map(function(b,y){return Qu("".concat(t,".").concat(y),b,s,n,o)}));case 21:return f=m.sent,m.abrupt("return",f.reduce(function(b,y){return[].concat(de(b),de(y))},[]));case 23:return g=W(W({},i),{},{name:t,enum:(i.enum||[]).join(", ")},o),h=d.map(function(b){return typeof b=="string"?bC(b,g):b}),m.abrupt("return",h);case 26:case"end":return m.stop()}},e,null,[[10,15]])})),Ku.apply(this,arguments)}function yC(e,t,r,i,n,o){var a=e.join("."),u=r.map(function(c,d){var f=c.validator,g=W(W({},c),{},{ruleIndex:d});return f&&(g.validator=function(h,p,m){var b=!1,y=function(){for(var v=arguments.length,S=new Array(v),E=0;E<v;E++)S[E]=arguments[E];Promise.resolve().then(function(){Ye(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||m.apply(void 0,S)})},I=f(h,p,y);b=I&&typeof I.then=="function"&&typeof I.catch=="function",Ye(b,"`callback` is deprecated. Please return a promise instead."),b&&I.then(function(){m()}).catch(function(x){m(x||" ")})}),g}).sort(function(c,d){var f=c.warningOnly,g=c.ruleIndex,h=d.warningOnly,p=d.ruleIndex;return!!f==!!h?g-p:f?1:-1}),s;if(n===!0)s=new Promise(function(){var c=un(ht().mark(function d(f,g){var h,p,m;return ht().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<u.length)){y.next=12;break}return p=u[h],y.next=5,Qu(a,t,p,i,o);case 5:if(m=y.sent,!m.length){y.next=9;break}return g([{errors:m,rule:p}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return c.apply(this,arguments)}}());else{var l=u.map(function(c){return Qu(a,t,c,i,o).then(function(d){return{errors:d,rule:c}})});s=(n?xC(l):CC(l)).then(function(c){return Promise.reject(c)})}return s.catch(function(c){return c}),s}function CC(e){return el.apply(this,arguments)}function el(){return el=un(ht().mark(function e(t){return ht().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(t).then(function(n){var o,a=(o=[]).concat.apply(o,de(n));return a}));case 1:case"end":return i.stop()}},e)})),el.apply(this,arguments)}function xC(e){return tl.apply(this,arguments)}function tl(){return tl=un(ht().mark(function e(t){var r;return ht().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=0,n.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(u){u.errors.length&&o([u]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return n.stop()}},e)})),tl.apply(this,arguments)}function rt(e){return Xu(e)}function mp(e,t){var r={};return t.forEach(function(i){var n=ur(e,i);r=rr(r,i,n)}),r}function Dn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return gp(t,i,r)})}function gp(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(i,n){return e[n]===i})}function EC(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||pe(e)!=="object"||pe(t)!=="object")return!1;var r=Object.keys(e),i=Object.keys(t),n=new Set([].concat(r,i));return de(n).every(function(o){var a=e[o],u=t[o];return typeof a=="function"&&typeof u=="function"?!0:a===u})}function IC(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&pe(t.target)==="object"&&e in t.target?t.target[e]:t}function hp(e,t,r){var i=e.length;if(t<0||t>=i||r<0||r>=i)return e;var n=e[t],o=t-r;return o>0?[].concat(de(e.slice(0,r)),[n],de(e.slice(r,t)),de(e.slice(t+1,i))):o<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,r+1)),[n],de(e.slice(r+1,i))):e}var SC=["name"],Gt=[];function rl(e,t,r,i,n,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):i!==n}var nl=function(e){nn(r,e);var t=on(r);function r(i){var n;if(bt(this,r),n=t.call(this,i),H(ve(n),"state",{resetCount:0}),H(ve(n),"cancelRegisterFunc",null),H(ve(n),"mounted",!1),H(ve(n),"touched",!1),H(ve(n),"dirty",!1),H(ve(n),"validatePromise",void 0),H(ve(n),"prevValidating",void 0),H(ve(n),"errors",Gt),H(ve(n),"warnings",Gt),H(ve(n),"cancelRegister",function(){var s=n.props,l=s.preserve,c=s.isListField,d=s.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(c,l,rt(d)),n.cancelRegisterFunc=null}),H(ve(n),"getNamePath",function(){var s=n.props,l=s.name,c=s.fieldContext,d=c.prefixName,f=d===void 0?[]:d;return l!==void 0?[].concat(de(f),de(l)):[]}),H(ve(n),"getRules",function(){var s=n.props,l=s.rules,c=l===void 0?[]:l,d=s.fieldContext;return c.map(function(f){return typeof f=="function"?f(d):f})}),H(ve(n),"refresh",function(){n.mounted&&n.setState(function(s){var l=s.resetCount;return{resetCount:l+1}})}),H(ve(n),"metaCache",null),H(ve(n),"triggerMetaEvent",function(s){var l=n.props.onMetaChange;if(l){var c=W(W({},n.getMeta()),{},{destroy:s});Xs(n.metaCache,c)||l(c),n.metaCache=c}else n.metaCache=null}),H(ve(n),"onStoreChange",function(s,l,c){var d=n.props,f=d.shouldUpdate,g=d.dependencies,h=g===void 0?[]:g,p=d.onReset,m=c.store,b=n.getNamePath(),y=n.getValue(s),I=n.getValue(m),x=l&&Dn(l,b);switch(c.type==="valueUpdate"&&c.source==="external"&&!Xs(y,I)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=Gt,n.warnings=Gt,n.triggerMetaEvent()),c.type){case"reset":if(!l||x){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=Gt,n.warnings=Gt,n.triggerMetaEvent(),p?.(),n.refresh();return}break;case"remove":{if(f&&rl(f,s,m,y,I,c)){n.reRender();return}break}case"setField":{var v=c.data;if(x){"touched"in v&&(n.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(n.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(n.errors=v.errors||Gt),"warnings"in v&&(n.warnings=v.warnings||Gt),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in v&&Dn(l,b,!0)){n.reRender();return}if(f&&!b.length&&rl(f,s,m,y,I,c)){n.reRender();return}break}case"dependenciesUpdate":{var S=h.map(rt);if(S.some(function(E){return Dn(c.relatedFields,E)})){n.reRender();return}break}default:if(x||(!h.length||b.length||f)&&rl(f,s,m,y,I,c)){n.reRender();return}break}f===!0&&n.reRender()}),H(ve(n),"validateRules",function(s){var l=n.getNamePath(),c=n.getValue(),d=s||{},f=d.triggerName,g=d.validateOnly,h=g===void 0?!1:g,p=Promise.resolve().then(un(ht().mark(function m(){var b,y,I,x,v,S,E;return ht().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(n.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(b=n.props,y=b.validateFirst,I=y===void 0?!1:y,x=b.messageVariables,v=b.validateDebounce,S=n.getRules(),f&&(S=S.filter(function(k){return k}).filter(function(k){var V=k.validateTrigger;if(!V)return!0;var C=Xu(V);return C.includes(f)})),!(v&&f)){T.next=10;break}return T.next=8,new Promise(function(k){setTimeout(k,v)});case 8:if(n.validatePromise===p){T.next=10;break}return T.abrupt("return",[]);case 10:return E=yC(l,c,S,s,I,x),E.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gt;if(n.validatePromise===p){var V;n.validatePromise=null;var C=[],N=[];(V=k.forEach)===null||V===void 0||V.call(k,function(F){var P=F.rule.warningOnly,j=F.errors,B=j===void 0?Gt:j;P?N.push.apply(N,de(B)):C.push.apply(C,de(B))}),n.errors=C,n.warnings=N,n.triggerMetaEvent(),n.reRender()}}),T.abrupt("return",E);case 13:case"end":return T.stop()}},m)})));return h||(n.validatePromise=p,n.dirty=!0,n.errors=Gt,n.warnings=Gt,n.triggerMetaEvent(),n.reRender()),p}),H(ve(n),"isFieldValidating",function(){return!!n.validatePromise}),H(ve(n),"isFieldTouched",function(){return n.touched}),H(ve(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var s=n.props.fieldContext,l=s.getInternalHooks(ln),c=l.getInitialValue;return c(n.getNamePath())!==void 0}),H(ve(n),"getErrors",function(){return n.errors}),H(ve(n),"getWarnings",function(){return n.warnings}),H(ve(n),"isListField",function(){return n.props.isListField}),H(ve(n),"isList",function(){return n.props.isList}),H(ve(n),"isPreserve",function(){return n.props.preserve}),H(ve(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var s={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return s}),H(ve(n),"getOnlyChild",function(s){if(typeof s=="function"){var l=n.getMeta();return W(W({},n.getOnlyChild(s(n.getControlled(),l,n.props.fieldContext))),{},{isFunction:!0})}var c=Vs(s);return c.length!==1||!R.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),H(ve(n),"getValue",function(s){var l=n.props.fieldContext.getFieldsValue,c=n.getNamePath();return ur(s||l(!0),c)}),H(ve(n),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=n.props,c=l.name,d=l.trigger,f=l.validateTrigger,g=l.getValueFromEvent,h=l.normalize,p=l.valuePropName,m=l.getValueProps,b=l.fieldContext,y=f!==void 0?f:b.validateTrigger,I=n.getNamePath(),x=b.getInternalHooks,v=b.getFieldsValue,S=x(ln),E=S.dispatch,w=n.getValue(),T=m||function(F){return H({},p,F)},k=s[d],V=c!==void 0?T(w):{};process.env.NODE_ENV!=="production"&&V&&Object.keys(V).forEach(function(F){Ye(typeof V[F]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(F,")"))});var C=W(W({},s),V);C[d]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var F,P=arguments.length,j=new Array(P),B=0;B<P;B++)j[B]=arguments[B];g?F=g.apply(void 0,j):F=IC.apply(void 0,[p].concat(j)),h&&(F=h(F,w,v(!0))),F!==w&&E({type:"updateValue",namePath:I,value:F}),k&&k.apply(void 0,j)};var N=Xu(y||[]);return N.forEach(function(F){var P=C[F];C[F]=function(){P&&P.apply(void 0,arguments);var j=n.props.rules;j&&j.length&&E({type:"validateField",namePath:I,triggerName:F})}}),C}),i.fieldContext){var o=i.fieldContext.getInternalHooks,a=o(ln),u=a.initEntityValue;u(ve(n))}return n}return yt(r,[{key:"componentDidMount",value:function(){var n=this.props,o=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var u=a.getInternalHooks,s=u(ln),l=s.registerField;this.cancelRegisterFunc=l(this)}o===!0&&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 n=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),u=a.child,s=a.isFunction,l;return s?l=u:R.isValidElement(u)?l=R.cloneElement(u,this.getControlled(u.props)):(Ye(!u,"`children` of Field is not validate ReactElement."),l=u),R.createElement(R.Fragment,{key:n},l)}}]),r}(R.Component);H(nl,"contextType",Bn),H(nl,"defaultProps",{trigger:"onChange",valuePropName:"value"});function vp(e){var t,r=e.name,i=dt(e,SC),n=R.useContext(Bn),o=R.useContext(sa),a=r!==void 0?rt(r):void 0,u=(t=i.isListField)!==null&&t!==void 0?t:!!o,s="keep";return u||(s="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&i.preserve===!1&&u&&a.length<=1&&Ye(!1,"`preserve` should not apply on Form.List fields."),R.createElement(nl,se({key:s,name:a,isListField:u},i,{fieldContext:n}))}function wC(e){var t=e.name,r=e.initialValue,i=e.children,n=e.rules,o=e.validateTrigger,a=e.isListField,u=R.useContext(Bn),s=R.useContext(sa),l=R.useRef({keys:[],id:0}),c=l.current,d=R.useMemo(function(){var p=rt(u.prefixName)||[];return[].concat(de(p),de(rt(t)))},[u.prefixName,t]),f=R.useMemo(function(){return W(W({},u),{},{prefixName:d})},[u,d]),g=R.useMemo(function(){return{getKey:function(m){var b=d.length,y=m[b];return[c.keys[y],m.slice(b+1)]}}},[d]);if(typeof i!="function")return Ye(!1,"Form.List only accepts function as children."),null;var h=function(m,b,y){var I=y.source;return I==="internal"?!1:m!==b};return R.createElement(sa.Provider,{value:g},R.createElement(Bn.Provider,{value:f},R.createElement(vp,{name:[],shouldUpdate:h,rules:n,validateTrigger:o,initialValue:r,isList:!0,isListField:a??!!s},function(p,m){var b=p.value,y=b===void 0?[]:b,I=p.onChange,x=u.getFieldValue,v=function(){var T=x(d||[]);return T||[]},S={add:function(T,k){var V=v();k>=0&&k<=V.length?(c.keys=[].concat(de(c.keys.slice(0,k)),[c.id],de(c.keys.slice(k))),I([].concat(de(V.slice(0,k)),[T],de(V.slice(k))))):(process.env.NODE_ENV!=="production"&&(k<0||k>V.length)&&Ye(!1,"The second parameter of the add function should be a valid positive number."),c.keys=[].concat(de(c.keys),[c.id]),I([].concat(de(V),[T]))),c.id+=1},remove:function(T){var k=v(),V=new Set(Array.isArray(T)?T:[T]);V.size<=0||(c.keys=c.keys.filter(function(C,N){return!V.has(N)}),I(k.filter(function(C,N){return!V.has(N)})))},move:function(T,k){if(T!==k){var V=v();T<0||T>=V.length||k<0||k>=V.length||(c.keys=hp(c.keys,T,k),I(hp(V,T,k)))}}},E=y||[];return Array.isArray(E)||(E=[],process.env.NODE_ENV!=="production"&&Ye(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),i(E.map(function(w,T){var k=c.keys[T];return k===void 0&&(c.keys[T]=c.id,k=c.keys[T],c.id+=1),{name:T,key:k,isListField:!0}}),S,m)})))}function AC(e){var t=!1,r=e.length,i=[];return e.length?new Promise(function(n,o){e.forEach(function(a,u){a.catch(function(s){return t=!0,s}).then(function(s){r-=1,i[u]=s,!(r>0)&&(t&&o(i),n(i))})})}):Promise.resolve([])}var bp="__@field_split__";function il(e){return e.map(function(t){return"".concat(pe(t),":").concat(t)}).join(bp)}var _n=function(){function e(){bt(this,e),H(this,"kvs",new Map)}return yt(e,[{key:"set",value:function(r,i){this.kvs.set(il(r),i)}},{key:"get",value:function(r){return this.kvs.get(il(r))}},{key:"update",value:function(r,i){var n=this.get(r),o=i(n);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(il(r))}},{key:"map",value:function(r){return de(this.kvs.entries()).map(function(i){var n=fe(i,2),o=n[0],a=n[1],u=o.split(bp);return r({key:u.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=fe(l,3),d=c[1],f=c[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(i){var n=i.key,o=i.value;return r[n.join(".")]=o,null}),r}}]),e}(),TC=["name"],OC=yt(function e(t){var r=this;bt(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),H(this,"getInternalHooks",function(i){return i===ln?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Ye(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(i){r.subscribable=i}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(i,n){if(r.initialValues=i||{},n){var o,a=Fn(i,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(u){var s=u.key;a=rr(a,s,ur(i,s))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),H(this,"destroyForm",function(i){if(i)r.updateStore({});else{var n=new _n;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=n}}),H(this,"getInitialValue",function(i){var n=ur(r.initialValues,i);return i.length?Fn(n):n}),H(this,"setCallbacks",function(i){r.callbacks=i}),H(this,"setValidateMessages",function(i){r.validateMessages=i}),H(this,"setPreserve",function(i){r.preserve=i}),H(this,"watchList",[]),H(this,"registerWatch",function(i){return r.watchList.push(i),function(){r.watchList=r.watchList.filter(function(n){return n!==i})}}),H(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var n=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(n,o,i)})}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||Ye(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),H(this,"updateStore",function(i){r.store=i}),H(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?r.fieldEntities.filter(function(n){return n.getNamePath().length}):r.fieldEntities}),H(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new _n;return r.getFieldEntities(i).forEach(function(o){var a=o.getNamePath();n.set(a,o)}),n}),H(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return r.getFieldEntities(!0);var n=r.getFieldsMap(!0);return i.map(function(o){var a=rt(o);return n.get(a)||{INVALIDATE_NAME_PATH:rt(o)}})}),H(this,"getFieldsValue",function(i,n){r.warningUnhooked();var o,a,u;if(i===!0||Array.isArray(i)?(o=i,a=n):i&&pe(i)==="object"&&(u=i.strict,a=i.filter),o===!0&&!a)return r.store;var s=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),l=[];return s.forEach(function(c){var d,f,g="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(u){var h,p;if((h=(p=c).isList)!==null&&h!==void 0&&h.call(p))return}else if(!o&&(d=(f=c).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)l.push(g);else{var m="getMeta"in c?c.getMeta():null;a(m)&&l.push(g)}}),mp(r.store,l.map(rt))}),H(this,"getFieldValue",function(i){r.warningUnhooked();var n=rt(i);return ur(r.store,n)}),H(this,"getFieldsError",function(i){r.warningUnhooked();var n=r.getFieldEntitiesForNamePathList(i);return n.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:rt(i[a]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(i){r.warningUnhooked();var n=rt(i),o=r.getFieldsError([n])[0];return o.errors}),H(this,"getFieldWarning",function(i){r.warningUnhooked();var n=rt(i),o=r.getFieldsError([n])[0];return o.warnings}),H(this,"isFieldsTouched",function(){r.warningUnhooked();for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var a=n[0],u=n[1],s,l=!1;n.length===0?s=null:n.length===1?Array.isArray(a)?(s=a.map(rt),l=!1):(s=null,l=a):(s=a.map(rt),l=u);var c=r.getFieldEntities(!0),d=function(m){return m.isFieldTouched()};if(!s)return l?c.every(function(p){return d(p)||p.isList()}):c.some(d);var f=new _n;s.forEach(function(p){f.set(p,[])}),c.forEach(function(p){var m=p.getNamePath();s.forEach(function(b){b.every(function(y,I){return m[I]===y})&&f.update(b,function(y){return[].concat(de(y),[p])})})});var g=function(m){return m.some(d)},h=f.map(function(p){var m=p.value;return m});return l?h.every(g):h.some(g)}),H(this,"isFieldTouched",function(i){return r.warningUnhooked(),r.isFieldsTouched([i])}),H(this,"isFieldsValidating",function(i){r.warningUnhooked();var n=r.getFieldEntities();if(!i)return n.some(function(a){return a.isFieldValidating()});var o=i.map(rt);return n.some(function(a){var u=a.getNamePath();return Dn(o,u)&&a.isFieldValidating()})}),H(this,"isFieldValidating",function(i){return r.warningUnhooked(),r.isFieldsValidating([i])}),H(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new _n,o=r.getFieldEntities(!0);o.forEach(function(s){var l=s.props.initialValue,c=s.getNamePath();if(l!==void 0){var d=n.get(c)||new Set;d.add({entity:s,value:l}),n.set(c,d)}});var a=function(l){l.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var f=c.getNamePath(),g=r.getInitialValue(f);if(g!==void 0)Ye(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=n.get(f);if(h&&h.size>1)Ye(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var p=r.getFieldValue(f),m=c.isListField();!m&&(!i.skipExist||p===void 0)&&r.updateStore(rr(r.store,f,de(h)[0].value))}}}})},u;i.entities?u=i.entities:i.namePathList?(u=[],i.namePathList.forEach(function(s){var l=n.get(s);if(l){var c;(c=u).push.apply(c,de(de(l).map(function(d){return d.entity})))}})):u=o,a(u)}),H(this,"resetFields",function(i){r.warningUnhooked();var n=r.store;if(!i){r.updateStore(Fn(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(n,null,{type:"reset"}),r.notifyWatch();return}var o=i.map(rt);o.forEach(function(a){var u=r.getInitialValue(a);r.updateStore(rr(r.store,a,u))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(n,o,{type:"reset"}),r.notifyWatch(o)}),H(this,"setFields",function(i){r.warningUnhooked();var n=r.store,o=[];i.forEach(function(a){var u=a.name,s=dt(a,TC),l=rt(u);o.push(l),"value"in s&&r.updateStore(rr(r.store,l,s.value)),r.notifyObservers(n,[l],{type:"setField",data:a})}),r.notifyWatch(o)}),H(this,"getFields",function(){var i=r.getFieldEntities(!0),n=i.map(function(o){var a=o.getNamePath(),u=o.getMeta(),s=W(W({},u),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return n}),H(this,"initEntityValue",function(i){var n=i.props.initialValue;if(n!==void 0){var o=i.getNamePath(),a=ur(r.store,o);a===void 0&&r.updateStore(rr(r.store,o,n))}}),H(this,"isMergedPreserve",function(i){var n=i!==void 0?i:r.preserve;return n??!0}),H(this,"registerField",function(i){r.fieldEntities.push(i);var n=i.getNamePath();if(r.notifyWatch([n]),i.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[i],skipExist:!0}),r.notifyObservers(o,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,u){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==i}),!r.isMergedPreserve(u)&&(!a||s.length>1)){var l=a?void 0:r.getInitialValue(n);if(n.length&&r.getFieldValue(n)!==l&&r.fieldEntities.every(function(d){return!gp(d.getNamePath(),n)})){var c=r.store;r.updateStore(rr(c,n,l,!0)),r.notifyObservers(c,[n],{type:"remove"}),r.triggerDependenciesUpdate(c,n)}}r.notifyWatch([n])}}),H(this,"dispatch",function(i){switch(i.type){case"updateValue":{var n=i.namePath,o=i.value;r.updateValue(n,o);break}case"validateField":{var a=i.namePath,u=i.triggerName;r.validateFields([a],{triggerName:u});break}}}),H(this,"notifyObservers",function(i,n,o){if(r.subscribable){var a=W(W({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(u){var s=u.onStoreChange;s(i,n,a)})}else r.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(i,n){var o=r.getDependencyChildrenFields(n);return o.length&&r.validateFields(o),r.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[n].concat(de(o))}),o}),H(this,"updateValue",function(i,n){var o=rt(i),a=r.store;r.updateStore(rr(r.store,o,n)),r.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);var u=r.triggerDependenciesUpdate(a,o),s=r.callbacks.onValuesChange;if(s){var l=mp(r.store,[o]);s(l,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(de(u)))}),H(this,"setFieldsValue",function(i){r.warningUnhooked();var n=r.store;if(i){var o=Fn(r.store,i);r.updateStore(o)}r.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),H(this,"setFieldValue",function(i,n){r.setFields([{name:i,value:n,errors:[],warnings:[]}])}),H(this,"getDependencyChildrenFields",function(i){var n=new Set,o=[],a=new _n;r.getFieldEntities().forEach(function(s){var l=s.props.dependencies;(l||[]).forEach(function(c){var d=rt(c);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(s),f})})});var u=function s(l){var c=a.get(l)||new Set;c.forEach(function(d){if(!n.has(d)){n.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(o.push(f),s(f))}})};return u(i),o}),H(this,"triggerOnFieldsChange",function(i,n){var o=r.callbacks.onFieldsChange;if(o){var a=r.getFields();if(n){var u=new _n;n.forEach(function(l){var c=l.name,d=l.errors;u.set(c,d)}),a.forEach(function(l){l.errors=u.get(l.name)||l.errors})}var s=a.filter(function(l){var c=l.name;return Dn(i,c)});s.length&&o(s,a)}}),H(this,"validateFields",function(i,n){r.warningUnhooked();var o,a;Array.isArray(i)||typeof i=="string"||typeof n=="string"?(o=i,a=n):a=i;var u=!!o,s=u?o.map(rt):[],l=[],c=String(Date.now()),d=new Set,f=a||{},g=f.recursive,h=f.dirty;r.getFieldEntities(!0).forEach(function(y){if(u||s.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var I=y.getNamePath();if(d.add(I.join(c)),!u||Dn(s,I,g)){var x=y.validateRules(W({validateMessages:W(W({},dp),r.validateMessages)},a));l.push(x.then(function(){return{name:I,errors:[],warnings:[]}}).catch(function(v){var S,E=[],w=[];return(S=v.forEach)===null||S===void 0||S.call(v,function(T){var k=T.rule.warningOnly,V=T.errors;k?w.push.apply(w,de(V)):E.push.apply(E,de(V))}),E.length?Promise.reject({name:I,errors:E,warnings:w}):{name:I,errors:E,warnings:w}}))}}});var p=AC(l);r.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var I=y.map(function(x){var v=x.name;return v});r.notifyObservers(r.store,I,{type:"validateFinish"}),r.triggerOnFieldsChange(I,y)});var m=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(s)):Promise.reject([])}).catch(function(y){var I=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:r.getFieldsValue(s),errorFields:I,outOfDate:r.lastValidatePromise!==p})});m.catch(function(y){return y});var b=s.filter(function(y){return d.has(y.join(c))});return r.triggerOnFieldsChange(b),m}),H(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(i){var n=r.callbacks.onFinish;if(n)try{n(i)}catch(o){console.error(o)}}).catch(function(i){var n=r.callbacks.onFinishFailed;n&&n(i)})}),this.forceRootUpdate=t});function yp(e){var t=R.useRef(),r=R.useState({}),i=fe(r,2),n=i[1];if(!t.current)if(e)t.current=e;else{var o=function(){n({})},a=new OC(o);t.current=a.getForm()}return[t.current]}var ol=R.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),kC=function(t){var r=t.validateMessages,i=t.onFormChange,n=t.onFormFinish,o=t.children,a=R.useContext(ol),u=R.useRef({});return R.createElement(ol.Provider,{value:W(W({},a),{},{validateMessages:W(W({},a.validateMessages),r),triggerFormChange:function(l,c){i&&i(l,{changedFields:c,forms:u.current}),a.triggerFormChange(l,c)},triggerFormFinish:function(l,c){n&&n(l,{values:c,forms:u.current}),a.triggerFormFinish(l,c)},registerForm:function(l,c){l&&(u.current=W(W({},u.current),{},H({},l,c))),a.registerForm(l,c)},unregisterForm:function(l){var c=W({},u.current);delete c[l],u.current=c,a.unregisterForm(l)}})},o)},PC=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],NC=function(t,r){var i=t.name,n=t.initialValues,o=t.fields,a=t.form,u=t.preserve,s=t.children,l=t.component,c=l===void 0?"form":l,d=t.validateMessages,f=t.validateTrigger,g=f===void 0?"onChange":f,h=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,I=dt(t,PC),x=R.useRef(null),v=R.useContext(ol),S=yp(a),E=fe(S,1),w=E[0],T=w.getInternalHooks(ln),k=T.useSubscribe,V=T.setInitialValues,C=T.setCallbacks,N=T.setValidateMessages,F=T.setPreserve,P=T.destroyForm;R.useImperativeHandle(r,function(){return W(W({},w),{},{nativeElement:x.current})}),R.useEffect(function(){return v.registerForm(i,w),function(){v.unregisterForm(i)}},[v,w,i]),N(W(W({},v.validateMessages),d)),C({onValuesChange:h,onFieldsChange:function(X){if(v.triggerFormChange(i,X),p){for(var K=arguments.length,ee=new Array(K>1?K-1:0),D=1;D<K;D++)ee[D-1]=arguments[D];p.apply(void 0,[X].concat(ee))}},onFinish:function(X){v.triggerFormFinish(i,X),m&&m(X)},onFinishFailed:b}),F(u);var j=R.useRef(null);V(n,!j.current),j.current||(j.current=!0),R.useEffect(function(){return function(){return P(y)}},[]);var B,U=typeof s=="function";if(U){var Q=w.getFieldsValue(!0);B=s(Q,w)}else B=s;k(!U);var $=R.useRef();R.useEffect(function(){EC($.current||[],o||[])||w.setFields(o||[]),$.current=o},[o,w]);var L=R.useMemo(function(){return W(W({},w),{},{validateTrigger:g})},[w,g]),G=R.createElement(sa.Provider,{value:null},R.createElement(Bn.Provider,{value:L},B));return c===!1?G:R.createElement(c,se({},I,{ref:x,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),w.submit()},onReset:function(X){var K;X.preventDefault(),w.resetFields(),(K=I.onReset)===null||K===void 0||K.call(I,X)}}),G)};function Cp(e){try{return JSON.stringify(e)}catch{return Math.random()}}var FC=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=O.useRef(t);Ye(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function RC(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t[0],n=t[1],o=n===void 0?{}:n,a=_y(o)?{form:o}:o,u=a.form,s=O.useState(),l=fe(s,2),c=l[0],d=l[1],f=O.useMemo(function(){return Cp(c)},[c]),g=O.useRef(f);g.current=f;var h=O.useContext(Bn),p=u||h,m=p&&p._init;process.env.NODE_ENV!=="production"&&Ye(t.length===2?u?m:!0:m,"useWatch requires a form instance since it can not auto detect from context.");var b=rt(i),y=O.useRef(b);return y.current=b,FC(b),O.useEffect(function(){if(m){var I=p.getFieldsValue,x=p.getInternalHooks,v=x(ln),S=v.registerWatch,E=function(V,C){var N=a.preserve?C:V;return typeof i=="function"?i(N):ur(N,y.current)},w=S(function(k,V){var C=E(k,V),N=Cp(C);g.current!==N&&(g.current=N,d(C))}),T=E(I(),I(!0));return c!==T&&d(T),w}},[m]),c}var MC=R.forwardRef(NC),Ri=MC;Ri.FormProvider=kC,Ri.Field=vp,Ri.List=wC,Ri.useForm=yp,Ri.useWatch=RC;const xp=R.createContext({});process.env.NODE_ENV!=="production"&&(xp.displayName="FormItemInputContext");var VC=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],jC=O.forwardRef(function(e,t){var r=e.prefixCls,i=r===void 0?"rc-checkbox":r,n=e.className,o=e.style,a=e.checked,u=e.disabled,s=e.defaultChecked,l=s===void 0?!1:s,c=e.type,d=c===void 0?"checkbox":c,f=e.title,g=e.onChange,h=dt(e,VC),p=O.useRef(null),m=O.useRef(null),b=x1(l,{value:a}),y=fe(b,2),I=y[0],x=y[1];O.useImperativeHandle(t,function(){return{focus:function(w){var T;(T=p.current)===null||T===void 0||T.focus(w)},blur:function(){var w;(w=p.current)===null||w===void 0||w.blur()},input:p.current,nativeElement:m.current}});var v=re(i,n,H(H({},"".concat(i,"-checked"),I),"".concat(i,"-disabled"),u)),S=function(w){u||("checked"in e||x(w.target.checked),g?.({target:W(W({},e),{},{type:d,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return R.createElement("span",{className:v,title:f,style:o,ref:m},R.createElement("input",se({},h,{className:"".concat(i,"-input"),ref:p,onChange:S,disabled:u,checked:!!I,type:d})),R.createElement("span",{className:"".concat(i,"-inner")}))});function LC(e){const t=O.useRef(null),r=()=>{ar.cancel(t.current),t.current=null};return[()=>{r(),t.current=ar(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),r()),e?.(o)}]}const BC=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Pu(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},Pu(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Pu(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:L1(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ci(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Ci(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
108
|
+
`,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)"}),n)}var qm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Qm={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Hx={motionBase:!0,motionUnit:!0},Wx={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Km=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=qm(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=Zm(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=qm(l,["theme"]);let d=u;c&&(d=Km(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=d}),a};function Hn(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=E.useContext(Vm),i=`${zx}-${t||""}`,a=r||_m,[s,l,c]=wC(a,[$i,e],{salt:i,override:n,getComputedToken:Km,formatToken:Zm,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Qm,ignore:Hx,preserve:Wx}});return[a,c,t?l:"",s,o]}const ep={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},_o=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),tp=()=>({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"}}),rp=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ux=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Xx=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},np=(e,t)=>({outline:`${st(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Yx=(e,t)=>({"&:focus-visible":np(e,t)}),op=e=>({[`.${e}`]:Object.assign(Object.assign({},tp()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Vi,genComponentStyleHook:Jx,genSubStyleComponent:Zx}=Bx({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=E.useContext(Zt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Hn();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=E.useContext(Zt);return e??{}},getResetStyles:(e,t)=>{var r;const n=Ux(e);return[n,{"&":n},op((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Cu)]},getCommonStyle:Xx,getCompUnitless:()=>Qm});function qx(e,t){return fo.reduce((r,n)=>{const o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const Qx=(e,t)=>{const[r,n]=Hn();return ru({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>op(e))},Kx=Object.assign({},A),{useId:ip}=Kx,ew=typeof ip>"u"?()=>"":ip;function tw(e,t,r){var n,o;const i=kr("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},yu),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:yu.hashed,cssVar:t?.cssVar}):t,l=ew();if(process.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);process.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return $c(()=>{var c,u;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(h=>{d[h]=Object.assign(Object.assign({},d[h]),e.components[h])});const f=`css-var-${l.replace(/:/g,"")}`,g=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:d,cssVar:g})},[a,s],(c,u)=>c.some((d,f)=>{const g=u[f];return!zc(d,g,!0)}))}var rw=["children"],ap=A.createContext({});function nw(e){var t=e.children,r=vt(e,rw);return A.createElement(ap.Provider,{value:r},t)}var ow=function(e){Gr(r,e);var t=Hr(r);function r(){return Tt(this,r),t.apply(this,arguments)}return Pt(r,[{key:"render",value:function(){return this.props.children}}]),r}(A.Component);function iw(e){var t=A.useReducer(function(s){return s+1},0),r=ie(t,2),n=r[1],o=A.useRef(e),i=cr(function(){return o.current}),a=cr(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var Wn="none",Cs="appear",xs="enter",ws="leave",sp="none",Jr="prepare",Vo="start",Bo="active",Au="end",lp="prepared";function cp(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function aw(e,t){var r={animationend:cp("Animation","AnimationEnd"),transitionend:cp("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var sw=aw(lr(),typeof window<"u"?window:{}),up={};if(lr()){var lw=document.createElement("div");up=lw.style}var Ss={};function dp(e){if(Ss[e])return Ss[e];var t=sw[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in up)return Ss[e]=t[i],Ss[e]}return""}var fp=dp("animationend"),mp=dp("transitionend"),pp=!!(fp&&mp),gp=fp||"animationend",hp=mp||"transitionend";function vp(e,t){if(!e)return null;if(we(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const cw=function(e){var t=E.useRef();function r(o){o&&(o.removeEventListener(hp,e),o.removeEventListener(gp,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(hp,e),o.addEventListener(gp,e),t.current=o)}return A.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var bp=lr()?E.useLayoutEffect:E.useEffect;const uw=function(){var e=A.useRef(null);function t(){tn.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=tn(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return A.useEffect(function(){return function(){t()}},[]),[r,t]};var dw=[Jr,Vo,Bo,Au],fw=[Jr,lp],yp=!1,mw=!0;function Cp(e){return e===Bo||e===Au}const pw=function(e,t,r){var n=Di(sp),o=ie(n,2),i=o[0],a=o[1],s=uw(),l=ie(s,2),c=l[0],u=l[1];function d(){a(Jr,!0)}var f=t?fw:dw;return bp(function(){if(i!==sp&&i!==Au){var g=f.indexOf(i),h=f[g+1],m=r(i);m===yp?a(h,!0):h&&c(function(p){function b(){p.isCanceled()||a(h,!0)}m===!0?b():Promise.resolve(m).then(b)})}},[e,i]),A.useEffect(function(){return function(){u()}},[]),[d,i]};function gw(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,g=n.onEnterPrepare,h=n.onLeavePrepare,m=n.onAppearStart,p=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,w=n.onEnterActive,S=n.onLeaveActive,v=n.onAppearEnd,I=n.onEnterEnd,O=n.onLeaveEnd,N=n.onVisibleChanged,T=Di(),P=ie(T,2),M=P[0],x=P[1],$=iw(Wn),F=ie($,2),k=F[0],j=F[1],z=Di(null),H=ie(z,2),V=H[0],_=H[1],D=k(),B=E.useRef(!1),R=E.useRef(null);function W(){return r()}var K=E.useRef(!1);function q(){j(Wn),_(null,!0)}var U=cr(function(Fe){var Me=k();if(Me!==Wn){var bt=W();if(!(Fe&&!Fe.deadline&&Fe.target!==bt)){var Te=K.current,Mt;Me===Cs&&Te?Mt=v?.(bt,Fe):Me===xs&&Te?Mt=I?.(bt,Fe):Me===ws&&Te&&(Mt=O?.(bt,Fe)),Te&&Mt!==!1&&q()}}}),Q=cw(U),Z=ie(Q,1),se=Z[0],pe=function(Me){switch(Me){case Cs:return X(X(X({},Jr,f),Vo,m),Bo,y);case xs:return X(X(X({},Jr,g),Vo,p),Bo,w);case ws:return X(X(X({},Jr,h),Vo,b),Bo,S);default:return{}}},Y=A.useMemo(function(){return pe(D)},[D]),Ce=pw(D,!e,function(Fe){if(Fe===Jr){var Me=Y[Jr];return Me?Me(W()):yp}if(ve in Y){var bt;_(((bt=Y[ve])===null||bt===void 0?void 0:bt.call(Y,W(),null))||null)}return ve===Bo&&D!==Wn&&(se(W()),u>0&&(clearTimeout(R.current),R.current=setTimeout(function(){U({deadline:!0})},u))),ve===lp&&q(),mw}),ne=ie(Ce,2),Ie=ne[0],ve=ne[1],Ye=Cp(ve);K.current=Ye;var it=E.useRef(null);bp(function(){if(!(B.current&&it.current===t)){x(t);var Fe=B.current;B.current=!0;var Me;!Fe&&t&&s&&(Me=Cs),Fe&&t&&i&&(Me=xs),(Fe&&!t&&c||!Fe&&d&&!t&&c)&&(Me=ws);var bt=pe(Me);Me&&(e||bt[Jr])?(j(Me),Ie()):j(Wn),it.current=t}},[t]),E.useEffect(function(){(D===Cs&&!s||D===xs&&!i||D===ws&&!c)&&j(Wn)},[s,i,c]),E.useEffect(function(){return function(){B.current=!1,clearTimeout(R.current)}},[]);var Le=A.useRef(!1);E.useEffect(function(){M&&(Le.current=!0),M!==void 0&&D===Wn&&((Le.current||M)&&N?.(M),Le.current=!0)},[M,D]);var St=V;return Y[Jr]&&ve===Vo&&(St=G({transition:"none"},St)),[D,ve,St,M??t]}function hw(e){var t=e;we(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=A.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,g=o.leavedClassName,h=o.eventProps,m=A.useContext(ap),p=m.motion,b=r(o,p),y=E.useRef(),w=E.useRef();function S(){try{return y.current instanceof HTMLElement?y.current:Za(w.current)}catch{return null}}var v=gw(b,s,S,o),I=ie(v,4),O=I[0],N=I[1],T=I[2],P=I[3],M=A.useRef(P);P&&(M.current=!0);var x=A.useCallback(function(H){y.current=H,Mc(i,H)},[i]),$,F=G(G({},h),{},{visible:s});if(!d)$=null;else if(O===Wn)P?$=d(G({},F),x):!c&&M.current&&g?$=d(G(G({},F),{},{className:g}),x):u||!c&&!g?$=d(G(G({},F),{},{style:{display:"none"}}),x):$=null;else{var k;N===Jr?k="prepare":Cp(N)?k="active":N===Vo&&(k="start");var j=vp(f,"".concat(O,"-").concat(k));$=d(G(G({},F),{},{className:J(vp(f,O),X(X({},j,j&&k),f,typeof f=="string")),style:T}),x)}if(A.isValidElement($)&&Ii($)){var z=Ka($);z||($=A.cloneElement($,{ref:x}))}return A.createElement(ow,{ref:w},$)});return n.displayName="CSSMotion",n}const mo=hw(pp);var Nu="add",Ou="keep",Tu="remove",Pu="removed";function vw(e){var t;return e&&we(e)==="object"&&"key"in e?t=e:t={key:e},G(G({},t),{},{key:String(t.key)})}function ku(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(vw)}function bw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=ku(e),a=ku(t);i.forEach(function(c){for(var u=!1,d=n;d<o;d+=1){var f=a[d];if(f.key===c.key){n<d&&(r=r.concat(a.slice(n,d).map(function(g){return G(G({},g),{},{status:Nu})})),n=d),r.push(G(G({},f),{},{status:Ou})),n+=1,u=!0;break}}u||r.push(G(G({},c),{},{status:Tu}))}),n<o&&(r=r.concat(a.slice(n).map(function(c){return G(G({},c),{},{status:Nu})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Tu}),r.forEach(function(u){u.key===c&&(u.status=Ou)})}),r}var yw=["component","children","onVisibleChanged","onAllRemoved"],Cw=["status"],xw=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ww(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mo,r=function(n){Gr(i,n);var o=Hr(i);function i(){var a;Tt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),X(be(a),"state",{keyEntities:[]}),X(be(a),"removeKey",function(u){a.setState(function(d){var f=d.keyEntities.map(function(g){return g.key!==u?g:G(G({},g),{},{status:Pu})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(g){var h=g.status;return h!==Pu}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Pt(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var g=vt(c,yw),h=u||A.Fragment,m={};return xw.forEach(function(p){m[p]=g[p],delete g[p]}),delete g.keys,A.createElement(h,g,l.map(function(p,b){var y=p.status,w=vt(p,Cw),S=y===Nu||y===Ou;return A.createElement(t,le({},m,{key:w.key,visible:S,eventProps:w,onVisibleChanged:function(I){f?.(I,{key:w.key}),I||s.removeKey(w.key)}}),function(v,I){return d(G(G({},v),{},{index:b}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=ku(c),f=bw(u,d);return{keyEntities:f.filter(function(g){var h=u.find(function(m){var p=m.key;return g.key===p});return!(h&&h.status===Pu&&g.status===Tu)})}}}]),i}(A.Component);return X(r,"defaultProps",{component:"div"}),r}const Sw=ww(pp),Fu=A.createContext(!0);process.env.NODE_ENV!=="production"&&(Fu.displayName="MotionCacheContext");function Ew(e){const t=A.useContext(Fu),{children:r}=e,[,n]=Hn(),{motion:o}=n,i=A.useRef(!1);return i.current||(i.current=t!==o),i.current?A.createElement(Fu.Provider,{value:o},A.createElement(nw,{motion:o},r)):r}const xp=A.memo(({dropdownMatchSelectWidth:e})=>(kr("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(xp.displayName="PropWarning");const Iw=process.env.NODE_ENV!=="production"?xp:()=>null;var Aw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let $u=!1;process.env.NODE_ENV;const Nw=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let wp;function Ow(){return wp||Li}function Tw(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Pw=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(wp=t),n&&Tw(n)&&(process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ax(Ow(),n))},kw=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:p,parentContext:b,iconPrefixCls:y,theme:w,componentDisabled:S,segmented:v,statistic:I,spin:O,calendar:N,carousel:T,cascader:P,collapse:M,typography:x,checkbox:$,descriptions:F,divider:k,drawer:j,skeleton:z,steps:H,image:V,layout:_,list:D,mentions:B,modal:R,progress:W,result:K,slider:q,breadcrumb:U,menu:Q,pagination:Z,input:se,textArea:pe,empty:Y,badge:Ce,radio:ne,rate:Ie,switch:ve,transfer:Ye,avatar:it,message:Le,tag:St,table:Fe,card:Me,tabs:bt,timeline:Te,timePicker:Mt,upload:at,notification:ir,tree:Xt,colorPicker:jt,datePicker:fr,rangePicker:_e,flex:De,wave:Rt,dropdown:Lt,warning:Dt,tour:he,tooltip:de,popover:Ae,popconfirm:Ne,floatButton:$e,floatButtonGroup:pt,variant:tr,inputNumber:ar,treeSelect:_t}=e,Vt=A.useCallback((L,te)=>{const{prefixCls:ae}=e;if(te)return te;const fe=ae||b.getPrefixCls("");return L?`${fe}-${L}`:fe},[b.getPrefixCls,e.prefixCls]),Et=y||b.iconPrefixCls||Cu,_r=r||b.csp;Qx(Et,_r);const Wt=tw(w,b.theme,{prefixCls:Vt("")});process.env.NODE_ENV!=="production"&&($u=$u||!!Wt);const Je={csp:_r,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||p,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:h??g,popupOverflow:m,getPrefixCls:Vt,iconPrefixCls:Et,theme:Wt,segmented:v,statistic:I,spin:O,calendar:N,carousel:T,cascader:P,collapse:M,typography:x,checkbox:$,descriptions:F,divider:k,drawer:j,skeleton:z,steps:H,image:V,input:se,textArea:pe,layout:_,list:D,mentions:B,modal:R,progress:W,result:K,slider:q,breadcrumb:U,menu:Q,pagination:Z,empty:Y,badge:Ce,radio:ne,rate:Ie,switch:ve,transfer:Ye,avatar:it,message:Le,tag:St,table:Fe,card:Me,tabs:bt,timeline:Te,timePicker:Mt,upload:at,notification:ir,tree:Xt,colorPicker:jt,datePicker:fr,rangePicker:_e,flex:De,wave:Rt,dropdown:Lt,warning:Dt,tour:he,tooltip:de,popover:Ae,popconfirm:Ne,floatButton:$e,floatButtonGroup:pt,variant:tr,inputNumber:ar,treeSelect:_t};process.env.NODE_ENV!=="production"&&kr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const He=Object.assign({},b);Object.keys(Je).forEach(L=>{Je[L]!==void 0&&(He[L]=Je[L])}),Nw.forEach(L=>{const te=e[L];te&&(He[L]=te)}),typeof n<"u"&&(He.button=Object.assign({autoInsertSpace:n},He.button));const Bt=$c(()=>He,He,(L,te)=>{const ae=Object.keys(L),fe=Object.keys(te);return ae.length!==fe.length||ae.some(ke=>L[ke]!==te[ke])}),{layer:Tr}=A.useContext(Pi),sr=A.useMemo(()=>({prefixCls:Et,csp:_r,layer:Tr?"antd":void 0}),[Et,_r,Tr]);let xt=A.createElement(A.Fragment,null,A.createElement(Iw,{dropdownMatchSelectWidth:g}),t);const pn=A.useMemo(()=>{var L,te,ae,fe;return $o(((L=uo.Form)===null||L===void 0?void 0:L.defaultValidateMessages)||{},((ae=(te=Bt.locale)===null||te===void 0?void 0:te.Form)===null||ae===void 0?void 0:ae.defaultValidateMessages)||{},((fe=Bt.form)===null||fe===void 0?void 0:fe.validateMessages)||{},a?.validateMessages||{})},[Bt,a?.validateMessages]);Object.keys(pn).length>0&&(xt=A.createElement(nx.Provider,{value:pn},xt)),s&&(xt=A.createElement(Pm,{locale:s,_ANT_MARK__:Tm},xt)),xt=A.createElement(nu.Provider,{value:sr},xt),l&&(xt=A.createElement(Ox,{size:l},xt)),xt=A.createElement(Ew,null,xt);const Qr=A.useMemo(()=>{const L=Wt||{},{algorithm:te,token:ae,components:fe,cssVar:ke}=L,Ve=Aw(L,["algorithm","token","components","cssVar"]),Oe=te&&(!Array.isArray(te)||te.length>0)?Uc(te):_m,Se={};Object.entries(fe||{}).forEach(([Be,ft])=>{const je=Object.assign({},ft);"algorithm"in je&&(je.algorithm===!0?je.theme=Oe:(Array.isArray(je.algorithm)||typeof je.algorithm=="function")&&(je.theme=Uc(je.algorithm)),delete je.algorithm),Se[Be]=je});const gt=Object.assign(Object.assign({},$i),ae);return Object.assign(Object.assign({},Ve),{theme:Oe,token:gt,components:Se,override:Object.assign({override:gt},Se),cssVar:ke})},[Wt]);return w&&(xt=A.createElement(Vm.Provider,{value:Qr},xt)),Bt.warning&&(xt=A.createElement(Im.Provider,{value:Bt.warning},xt)),S!==void 0&&(xt=A.createElement(Nx,{disabled:S},xt)),A.createElement(Zt.Provider,{value:Bt},xt)},zo=e=>{const t=A.useContext(Zt),r=A.useContext(ou);return A.createElement(kw,Object.assign({parentContext:t,legacyLocale:r},e))};zo.ConfigContext=Zt,zo.SizeContext=Do,zo.config=Pw,zo.useConfig=Tx,Object.defineProperty(zo,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Mo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Do)}),process.env.NODE_ENV!=="production"&&(zo.displayName="ConfigProvider");var Fw={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 Sp(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function $w(e){return Sp(e)instanceof ShadowRoot}function Es(e){return $w(e)?Sp(e):null}function Mw(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function jw(e,t){ht(e,"[@ant-design/icons] ".concat(t))}function Ep(e){return we(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(we(e.icon)==="object"||typeof e.icon=="function")}function Ip(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Mw(r)]=n}return t},{})}function Mu(e,t,r){return r?E.createElement(e.tag,G(G({key:t},Ip(e.attrs)),r),(e.children||[]).map(function(n,o){return Mu(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):E.createElement(e.tag,G({key:t},Ip(e.attrs)),(e.children||[]).map(function(n,o){return Mu(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ap(e){return ji(e)[0]}function Np(e){return e?Array.isArray(e)?e:[e]:[]}var Rw=`
|
|
109
|
+
.anticon {
|
|
110
|
+
display: inline-flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
color: inherit;
|
|
113
|
+
font-style: normal;
|
|
114
|
+
line-height: 0;
|
|
115
|
+
text-align: center;
|
|
116
|
+
text-transform: none;
|
|
117
|
+
vertical-align: -0.125em;
|
|
118
|
+
text-rendering: optimizeLegibility;
|
|
119
|
+
-webkit-font-smoothing: antialiased;
|
|
120
|
+
-moz-osx-font-smoothing: grayscale;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.anticon > * {
|
|
124
|
+
line-height: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.anticon svg {
|
|
128
|
+
display: inline-block;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.anticon::before {
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.anticon .anticon-icon {
|
|
136
|
+
display: block;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.anticon[tabindex] {
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.anticon-spin::before,
|
|
144
|
+
.anticon-spin {
|
|
145
|
+
display: inline-block;
|
|
146
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
147
|
+
animation: loadingCircle 1s infinite linear;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@-webkit-keyframes loadingCircle {
|
|
151
|
+
100% {
|
|
152
|
+
-webkit-transform: rotate(360deg);
|
|
153
|
+
transform: rotate(360deg);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@keyframes loadingCircle {
|
|
158
|
+
100% {
|
|
159
|
+
-webkit-transform: rotate(360deg);
|
|
160
|
+
transform: rotate(360deg);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
`,Lw=function(t){var r=E.useContext(nu),n=r.csp,o=r.prefixCls,i=r.layer,a=Rw;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
|
164
|
+
`).concat(a,`
|
|
165
|
+
}`)),E.useEffect(function(){var s=t.current,l=Es(s);vn(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])},Dw=["icon","className","onClick","style","primaryColor","secondaryColor"],Bi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function _w(e){var t=e.primaryColor,r=e.secondaryColor;Bi.primaryColor=t,Bi.secondaryColor=r||Ap(t),Bi.calculated=!!r}function Vw(){return G({},Bi)}var Go=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=vt(t,Dw),c=A.useRef(),u=Bi;if(a&&(u={primaryColor:a,secondaryColor:s||Ap(a)}),Lw(c),jw(Ep(r),"icon should be icon definiton, but got ".concat(r)),!Ep(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=G(G({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Mu(d.icon,"svg-".concat(d.name),G(G({className:n,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Go.displayName="IconReact",Go.getTwoToneColors=Vw,Go.setTwoToneColors=_w;function Op(e){var t=Np(e),r=ie(t,2),n=r[0],o=r[1];return Go.setTwoToneColors({primaryColor:n,secondaryColor:o})}function Bw(){var e=Go.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var zw=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Op(Ro.primary);var mr=A.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=vt(e,zw),u=A.useContext(nu),d=u.prefixCls,f=d===void 0?"anticon":d,g=u.rootClassName,h=J(g,f,X(X({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!o||n.name==="loading"),r),m=a;m===void 0&&s&&(m=-1);var p=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Np(l),y=ie(b,2),w=y[0],S=y[1];return A.createElement("span",le({role:"img","aria-label":n.name},c,{ref:t,tabIndex:m,onClick:s,className:h}),A.createElement(Go,{icon:n,primaryColor:w,secondaryColor:S,style:p}))});mr.displayName="AntdIcon",mr.getTwoToneColor=Bw,mr.setTwoToneColor=Op;var Gw=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:Fw}))},Tp=A.forwardRef(Gw);process.env.NODE_ENV!=="production"&&(Tp.displayName="CheckCircleFilled");var Hw={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"},Ww=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:Hw}))},Pp=A.forwardRef(Ww);process.env.NODE_ENV!=="production"&&(Pp.displayName="CloseCircleFilled");var Uw={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"},Xw=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:Uw}))},kp=A.forwardRef(Xw);process.env.NODE_ENV!=="production"&&(kp.displayName="CloseOutlined");var Yw=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
166
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
167
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
168
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
169
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
170
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
171
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
172
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
173
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
174
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
175
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
176
|
+
summary tabIndex target title type useMap value width wmode wrap`,Jw=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
177
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
178
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
179
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
180
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
181
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
182
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Zw="".concat(Yw," ").concat(Jw).split(/[\s\n]+/),qw="aria-",Qw="data-";function Fp(e,t){return e.indexOf(t)===0}function Kw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=G({},t);var n={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||Fp(o,qw))||r.data&&Fp(o,Qw)||r.attr&&Zw.includes(o))&&(n[o]=e[o])}),n}function $p(e){return e&&E.isValidElement(e)&&e.type===E.Fragment}const eS=(e,t,r)=>E.isValidElement(e)?E.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function zi(e,t){return eS(e,e,t)}const Mp=e=>{const[,,,,t]=Hn();return t?`${e}-css-var`:""};var tS={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"},rS=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:tS}))},Is=A.forwardRef(rS);process.env.NODE_ENV!=="production"&&(Is.displayName="LoadingOutlined");const ju=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(ju.displayName="zIndexContext");const yn=100,nS=yn*10+yn,jp={Modal:yn,Drawer:yn,Popover:yn,Popconfirm:yn,Tooltip:yn,Tour:yn,FloatButton:yn},oS={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function iS(e){return e in jp}const aS=(e,t)=>{const[,r]=Hn(),n=E.useContext(ju),o=iS(e);let i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+jp[e]:a+=oS[e],i=[n===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=kr(e),s=r.zIndexPopupBase+nS,l=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};function Rp(e,t){this.v=e,this.k=t}function nr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}nr=function(a,s,l,c){function u(d,f){nr(a,d,function(g){return this._invoke(d,f,g)})}s?o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l:(u("next",0),u("throw",1),u("return",2))},nr(e,t,r,n)}function Ru(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(g,h,m,p){var b=h&&h.prototype instanceof s?h:s,y=Object.create(b.prototype);return nr(y,"_invoke",function(w,S,v){var I,O,N,T=0,P=v||[],M=!1,x={p:0,n:0,v:e,a:$,f:$.bind(e,4),d:function(k,j){return I=k,O=0,N=e,x.n=j,a}};function $(F,k){for(O=F,N=k,t=0;!M&&T&&!j&&t<P.length;t++){var j,z=P[t],H=x.p,V=z[2];F>3?(j=V===k)&&(N=z[(O=z[4])?5:(O=3,3)],z[4]=z[5]=e):z[0]<=H&&((j=F<2&&H<z[1])?(O=0,x.v=k,x.n=z[1]):H<V&&(j=F<3||z[0]>k||k>V)&&(z[4]=F,z[5]=k,x.n=V,O=0))}if(j||F>1)return a;throw M=!0,k}return function(F,k,j){if(T>1)throw TypeError("Generator is already running");for(M&&k===1&&$(k,j),O=k,N=j;(t=O<2?e:N)||!M;){I||(O?O<3?(O>1&&(x.n=-1),$(O,N)):x.n=N:x.v=N);try{if(T=2,I){if(O||(F="next"),t=I[F]){if(!(t=t.call(I,N)))throw TypeError("iterator result is not an object");if(!t.done)return t;N=t.value,O<2&&(O=0)}else O===1&&(t=I.return)&&t.call(I),O<2&&(N=TypeError("The iterator does not provide a '"+F+"' method"),O=1);I=e}else if((t=(M=x.n<0)?N:w.call(S,x))!==a)break}catch(z){I=e,O=1,N=z}finally{T=1}}return{value:t,done:M}}}(g,m,p),!0),y}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(nr(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,nr(g,o,"GeneratorFunction")),g.prototype=Object.create(d),g}return l.prototype=c,nr(d,"constructor",c),nr(c,"constructor",l),l.displayName="GeneratorFunction",nr(c,o,"GeneratorFunction"),nr(d),nr(d,o,"Generator"),nr(d,n,function(){return this}),nr(d,"toString",function(){return"[object Generator]"}),(Ru=function(){return{w:i,m:f}})()}function As(e,t){function r(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof Rp?t.resolve(c.v).then(function(u){r("next",u,a,s)},function(u){r("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return r("throw",u,a,s)})}catch(u){s(u)}}var n;this.next||(nr(As.prototype),nr(As.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),nr(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){r(o,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function Lp(e,t,r,n,o){return new As(Ru().w(e,t,r,n),o||Promise)}function sS(e,t,r,n,o){var i=Lp(e,t,r,n,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function lS(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Dp(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(we(e)+" is not iterable")}function ze(){var e=Ru(),t=e.m(ze),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,o[d],f)},delegateYield:function(d,f,g){return s.resultName=f,l(c.d,Dp(d),g)},finish:function(d){return l(c.f,d)}},l=function(d,f,g){c.p=s.prev,c.n=s.next;try{return d(f,g)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(ze=function(){return{wrap:function(l,c,u,d){return e.w(i(l),c,u,d&&d.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Rp(l,c)},AsyncIterator:As,async:function(l,c,u,d,f){return(n(c)?Lp:sS)(i(l),c,u,d,f)},keys:lS,values:Dp}})()}function _p(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function ur(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){_p(i,n,o,a,s,"next",l)}function s(l){_p(i,n,o,a,s,"throw",l)}a(void 0)})}}var Gi=G({},d0),cS=Gi.version,Lu=Gi.render,uS=Gi.unmountComponentAtNode,Ns;try{var dS=Number((cS||"").split(".")[0]);dS>=18&&(Ns=Gi.createRoot)}catch{}function Vp(e){var t=Gi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&we(t)==="object"&&(t.usingClientEntryPoint=e)}var Os="__rc_react_root__";function fS(e,t){Vp(!0);var r=t[Os]||Ns(t);Vp(!1),r.render(e),t[Os]=r}function mS(e,t){Lu?.(e,t)}function pS(e,t){if(Ns){fS(e,t);return}mS(e,t)}function gS(e){return Du.apply(this,arguments)}function Du(){return Du=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Os])===null||o===void 0||o.unmount(),delete t[Os]}));case 1:case"end":return n.stop()}},e)})),Du.apply(this,arguments)}function hS(e){uS(e)}function vS(e){return _u.apply(this,arguments)}function _u(){return _u=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Ns===void 0){n.next=2;break}return n.abrupt("return",gS(t));case 2:hS(t);case 3:case"end":return n.stop()}},e)})),_u.apply(this,arguments)}let bS=(e,t)=>{if(process.env.NODE_ENV!=="production"){const r=parseInt(A.version.split(".")[0],10),n=Object.keys(d0);process.env.NODE_ENV!=="production"&&Mo(r<19||n.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return pS(e,t),()=>vS(t)};function yS(e){return bS}const Vu=()=>({height:0,opacity:0}),Bp=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},CS=e=>({height:e?e.offsetHeight:0}),Bu=(e,t)=>t?.deadline===!0||t.propertyName==="height",xS=(e=Li)=>({motionName:`${e}-motion-collapse`,onAppearStart:Vu,onEnterStart:Vu,onAppearActive:Bp,onEnterActive:Bp,onLeaveStart:CS,onLeaveActive:Vu,onAppearEnd:Bu,onEnterEnd:Bu,onLeaveEnd:Bu,motionDeadline:500}),wS=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Ts(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const zp=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},SS=Jx("Wave",e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),zu=`${Li}-wave-target`;function Gu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function ES(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Gu(t)?t:Gu(r)?r:Gu(n)?n:null}function Hu(e){return Number.isNaN(e)?0:e}const IS=e=>{const{className:t,target:r,component:n,registerUnmount:o}=e,i=A.useRef(null),a=A.useRef(null);A.useEffect(()=>{a.current=o()},[]);const[s,l]=A.useState(null),[c,u]=A.useState([]),[d,f]=A.useState(0),[g,h]=A.useState(0),[m,p]=A.useState(0),[b,y]=A.useState(0),[w,S]=A.useState(!1),v={left:d,top:g,width:m,height:b,borderRadius:c.map(N=>`${N}px`).join(" ")};s&&(v["--wave-color"]=s);function I(){const N=getComputedStyle(r);l(ES(r));const T=N.position==="static",{borderLeftWidth:P,borderTopWidth:M}=N;f(T?r.offsetLeft:Hu(-parseFloat(P))),h(T?r.offsetTop:Hu(-parseFloat(M))),p(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:x,borderTopRightRadius:$,borderBottomLeftRadius:F,borderBottomRightRadius:k}=N;u([x,$,k,F].map(j=>Hu(parseFloat(j))))}if(A.useEffect(()=>{if(r){const N=tn(()=>{I(),S(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(I),T.observe(r)),()=>{tn.cancel(N),T?.disconnect()}}},[]),!w)return null;const O=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(zu);return A.createElement(mo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(N,T)=>{var P,M;if(T.deadline||T.propertyName==="opacity"){const x=(P=i.current)===null||P===void 0?void 0:P.parentElement;(M=a.current)===null||M===void 0||M.call(a).then(()=>{x?.remove()})}return!1}},({className:N},T)=>A.createElement("div",{ref:Ei(i,T),className:J(t,N,{"wave-quick":O}),style:v}))},AS=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e?.insertBefore(o,e?.firstChild);const i=yS();let a=null;function s(){return a}a=i(A.createElement(IS,Object.assign({},t,{target:e,registerUnmount:s})),o)},NS=(e,t,r)=>{const{wave:n}=A.useContext(Zt),[,o,i]=Hn(),a=cr(c=>{const u=e.current;if(n?.disabled||!u)return;const d=u.querySelector(`.${zu}`)||u,{showEffect:f}=n||{};(f||AS)(d,{className:t,token:o,component:r,event:c,hashId:i})}),s=A.useRef(null);return c=>{tn.cancel(s.current),s.current=tn(()=>{a(c)})}},Wu=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=E.useContext(Zt),i=E.useRef(null),a=o("wave"),[,s]=SS(a),l=NS(i,J(a,s),n);if(E.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||r)return;const d=f=>{!zp(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[r]),!E.isValidElement(t))return t??null;const c=Ii(t)?Ei(Ka(t),i):i;return zi(t,{ref:c})};process.env.NODE_ENV!=="production"&&(Wu.displayName="Wave");const OS=e=>{const t=E.useContext(Do);return E.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Gp=A.createContext(null),TS=(e,t)=>{const r=A.useContext(Gp),n=A.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return J(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},PS=e=>{const{children:t}=e;return A.createElement(Gp.Provider,{value:null},t)};var kS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Hp=A.createContext(void 0),FS=e=>{const{getPrefixCls:t,direction:r}=A.useContext(Zt),{prefixCls:n,size:o,className:i}=e,a=kS(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Hn(),c=A.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const d=kr("Button.Group");d.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&d(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=J(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return A.createElement(Hp.Provider,{value:o},A.createElement("div",Object.assign({},a,{className:u})))},Wp=/^[\u4E00-\u9FA5]{2}$/,Uu=Wp.test.bind(Wp);function Up(e){return typeof e=="string"}function Ps(e){return e==="text"||e==="link"}function $S(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Up(e.type)&&Uu(e.props.children)?zi(e,{children:e.props.children.split("").join(r)}):Up(e)?Uu(e)?E.createElement("span",null,e.split("").join(r)):E.createElement("span",null,e):$p(e)?E.createElement("span",null,e):e}function MS(e,t){let r=!1;const n=[];return E.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(r&&a){const s=n.length-1,l=n[s];n[s]=`${l}${o}`}else n.push(o);r=a}),E.Children.map(n,o=>$S(o,t))}["default","primary","danger"].concat(ue(fo));const Xu=E.forwardRef((e,t)=>{const{className:r,style:n,children:o,prefixCls:i}=e,a=J(`${i}-icon`,r);return E.createElement("span",{ref:t,className:a,style:n},o)}),Xp=E.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:o,iconClassName:i}=e,a=J(`${r}-loading-icon`,n);return E.createElement(Xu,{prefixCls:r,className:a,style:o,ref:t},E.createElement(Is,{className:i}))}),Yu=()=>({width:0,opacity:0,transform:"scale(0)"}),Ju=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),jS=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:i,mount:a}=e,s=!!r;return n?E.createElement(Xp,{prefixCls:t,className:o,style:i}):E.createElement(mo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Yu,onAppearActive:Ju,onEnterStart:Yu,onEnterActive:Ju,onLeaveStart:Ju,onLeaveActive:Yu},({className:l,style:c},u)=>{const d=Object.assign(Object.assign({},i),c);return E.createElement(Xp,{prefixCls:t,className:J(o,l),style:d,ref:u})})},Yp=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),RS=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},Yp(`${t}-primary`,o),Yp(`${t}-danger`,i)]}};var LS=["b"],DS=["v"],Zu=function(t){return Math.round(Number(t||0))},_S=function(t){if(t instanceof yt)return t;if(t&&we(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=vt(r,LS);return G(G({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Cn=function(e){Gr(r,e);var t=Hr(r);function r(n){return Tt(this,r),t.call(this,_S(n))}return Pt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Zu(o.s*100),a=Zu(o.b*100),s=Zu(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=vt(o,DS);return G(G({},a),{},{b:i,a:this.a})}}]),r}(yt),VS="rc-color-picker",Ho=function(t){return t instanceof Cn?t:new Cn(t)},BS=Ho("#1677ff"),Jp=function(t){var r=t.offset,n=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=n.current.getBoundingClientRect(),d=u.width,f=u.height,g=d/2,h=f/2,m=(r.x+g)/l,p=1-(r.y+h)/c,b=i.toHsb(),y=m,w=(r.x+g)/l*360;if(a)switch(a){case"hue":return Ho(G(G({},b),{},{h:w<=0?0:w}));case"alpha":return Ho(G(G({},b),{},{a:y<=0?0:y}))}return Ho({h:b.h,s:m<=0?0:m,b:p>=1?1:p,a:b.a})},Zp=function(t,r){var n=t.toHsb();switch(r){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},zS=function(t){var r=t.color,n=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(n,"-color-block");return E.createElement("div",{className:J(s,o),style:i,onClick:a},E.createElement("div",{className:"".concat(s,"-inner"),style:{background:r}}))};function GS(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}function qp(e){var t=e.targetRef,r=e.containerRef,n=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=E.useState({x:0,y:0}),u=ie(c,2),d=u[0],f=u[1],g=E.useRef(null),h=E.useRef(null);E.useEffect(function(){f(a())},[s]),E.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null}},[]);var m=function(S){var v=GS(S),I=v.pageX,O=v.pageY,N=r.current.getBoundingClientRect(),T=N.x,P=N.y,M=N.width,x=N.height,$=t.current.getBoundingClientRect(),F=$.width,k=$.height,j=F/2,z=k/2,H=Math.max(0,Math.min(I-T,M))-j,V=Math.max(0,Math.min(O-P,x))-z,_={x:H,y:n==="x"?d.y:V};if(F===0&&k===0||F!==k)return!1;o?.(_)},p=function(S){S.preventDefault(),m(S)},b=function(S){S.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,i?.()},y=function(S){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),!l&&(m(S),document.addEventListener("mousemove",p),document.addEventListener("mouseup",b),document.addEventListener("touchmove",p),document.addEventListener("touchend",b),g.current=p,h.current=b)};return[d,y]}var Qp=function(t){var r=t.size,n=r===void 0?"default":r,o=t.color,i=t.prefixCls;return E.createElement("div",{className:J("".concat(i,"-handler"),X({},"".concat(i,"-handler-sm"),n==="small")),style:{backgroundColor:o}})},Kp=function(t){var r=t.children,n=t.style,o=t.prefixCls;return E.createElement("div",{className:"".concat(o,"-palette"),style:G({position:"relative"},n)},r)},eg=E.forwardRef(function(e,t){var r=e.children,n=e.x,o=e.y;return E.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),HS=function(t){var r=t.color,n=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=E.useRef(),l=E.useRef(),c=E.useRef(r),u=cr(function(m){var p=Jp({offset:m,targetRef:l,containerRef:s,color:r});c.current=p,n(p)}),d=qp({color:r,containerRef:s,targetRef:l,calculate:function(){return Zp(r)},onDragChange:u,onDragChangeComplete:function(){return i?.(c.current)},disabledDrag:a}),f=ie(d,2),g=f[0],h=f[1];return E.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},E.createElement(Kp,{prefixCls:o},E.createElement(eg,{x:g.x,y:g.y,ref:l},E.createElement(Qp,{color:r.toRgbString(),prefixCls:o})),E.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},WS=function(t,r){var n=ys(t,{value:r}),o=ie(n,2),i=o[0],a=o[1],s=E.useMemo(function(){return Ho(i)},[i]);return[s,a]},US=function(t){var r=t.colors,n=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=E.useMemo(function(){return r.map(function(c,u){var d=Ho(c);return a==="alpha"&&u===r.length-1&&(d=new Cn(d.setA(1))),d.toRgbString()}).join(",")},[r,a]);return E.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},n)},XS=function(t){var r=t.prefixCls,n=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=E.useRef(),u=E.useRef(),d=E.useRef(s),f=function(v){return l==="hue"?v.getHue():v.a*100},g=cr(function(S){var v=Jp({offset:S,targetRef:u,containerRef:c,color:s,type:l});d.current=v,i(f(v))}),h=qp({color:s,targetRef:u,containerRef:c,calculate:function(){return Zp(s,l)},onDragChange:g,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:o}),m=ie(h,2),p=m[0],b=m[1],y=E.useMemo(function(){if(l==="hue"){var S=s.toHsb();S.s=1,S.b=1,S.a=1;var v=new Cn(S);return v}return s},[s,l]),w=E.useMemo(function(){return n.map(function(S){return"".concat(S.color," ").concat(S.percent,"%")})},[n]);return E.createElement("div",{ref:c,className:J("".concat(r,"-slider"),"".concat(r,"-slider-").concat(l)),onMouseDown:b,onTouchStart:b},E.createElement(Kp,{prefixCls:r},E.createElement(eg,{x:p.x,y:p.y,ref:u},E.createElement(Qp,{size:"small",color:y.toHexString(),prefixCls:r})),E.createElement(US,{colors:w,type:l,prefixCls:r})))};function YS(e){return A.useMemo(function(){var t=e||{},r=t.slider;return[r||XS]},[e])}var JS=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],ZS=E.forwardRef(function(e,t){var r=e.value,n=e.defaultValue,o=e.prefixCls,i=o===void 0?VS:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,g=e.disabled,h=g===void 0?!1:g,m=e.components,p=YS(m),b=ie(p,1),y=b[0],w=WS(n||BS,r),S=ie(w,2),v=S[0],I=S[1],O=E.useMemo(function(){return v.setA(1).toRgbString()},[v]),N=function(V,_){r||I(V),a?.(V,_)},T=function(V){return new Cn(v.setHue(V))},P=function(V){return new Cn(v.setA(V/100))},M=function(V){N(T(V),{type:"hue",value:V})},x=function(V){N(P(V),{type:"alpha",value:V})},$=function(V){s&&s(T(V))},F=function(V){s&&s(P(V))},k=J("".concat(i,"-panel"),l,X({},"".concat(i,"-panel-disabled"),h)),j={prefixCls:i,disabled:h,color:v},z=E.createElement(E.Fragment,null,E.createElement(HS,le({onChange:N},j,{onChangeComplete:s})),E.createElement("div",{className:"".concat(i,"-slider-container")},E.createElement("div",{className:J("".concat(i,"-slider-group"),X({},"".concat(i,"-slider-group-disabled-alpha"),f))},E.createElement(y,le({},j,{type:"hue",colors:JS,min:0,max:359,value:v.getHue(),onChange:M,onChangeComplete:$})),!f&&E.createElement(y,le({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:O}],min:0,max:100,value:v.a*100,onChange:x,onChangeComplete:F}))),E.createElement(zS,{color:v.toRgbString(),prefixCls:i})));return E.createElement("div",{className:k,style:c,ref:t},typeof u=="function"?u(z):z)});process.env.NODE_ENV!=="production"&&(ZS.displayName="ColorPicker");const qS=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",QS=(e,t)=>e?qS(e,t):"";let qu=function(){function e(t){Tt(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new Cn(this.colors[0].color.metaColor)):this.metaColor=new Cn(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Pt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return QS(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();const KS=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
183
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
184
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),eE=e=>({animationDuration:e,animationFillMode:"both"}),tE=e=>({animationDuration:e,animationFillMode:"both"}),tg=(e,t,r,n,o=!1)=>{const i=o?"&":"";return{[`
|
|
185
|
+
${i}${e}-enter,
|
|
186
|
+
${i}${e}-appear
|
|
187
|
+
`]:Object.assign(Object.assign({},eE(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},tE(n)),{animationPlayState:"paused"}),[`
|
|
188
|
+
${i}${e}-enter${e}-enter-active,
|
|
189
|
+
${i}${e}-appear${e}-appear-active
|
|
190
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},rE=new Qt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),nE=new Qt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),oE=(e,t=!1)=>{const{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[tg(n,rE,nE,e.motionDurationMid,t),{[`
|
|
191
|
+
${o}${n}-enter,
|
|
192
|
+
${o}${n}-appear
|
|
193
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]},iE=new Qt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),aE=new Qt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),rg=new Qt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ng=new Qt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),sE=new Qt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),lE=new Qt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),cE=new Qt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),uE=new Qt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),dE=new Qt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),fE=new Qt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),mE=new Qt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),pE=new Qt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),gE={zoom:{inKeyframes:iE,outKeyframes:aE},"zoom-big":{inKeyframes:rg,outKeyframes:ng},"zoom-big-fast":{inKeyframes:rg,outKeyframes:ng},"zoom-left":{inKeyframes:cE,outKeyframes:uE},"zoom-right":{inKeyframes:dE,outKeyframes:fE},"zoom-up":{inKeyframes:sE,outKeyframes:lE},"zoom-down":{inKeyframes:mE,outKeyframes:pE}},hE=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=gE[t];return[tg(n,o,i,e.motionDurationFast),{[`
|
|
194
|
+
${n}-enter,
|
|
195
|
+
${n}-appear
|
|
196
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},vE=e=>e instanceof qu?e:new qu(e),bE=(e,t)=>{const{r,g:n,b:o,a:i}=e.toRgb(),a=new Cn(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:r*.299+n*.587+o*.114>192},og=e=>{const{paddingInline:t,onlyIconSize:r}=e;return Yr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},ig=e=>{var t,r,n,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:bs(s),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:bs(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:bs(c),g=bE(new qu(e.colorBgSolid),"#fff")?"#000":"#fff",h=fo.reduce((m,p)=>Object.assign(Object.assign({},m),{[`${p}ShadowColor`]:`0 ${st(e.controlOutlineWidth)} 0 ${_i(e[`${p}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},yE=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${st(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:tp(),"> a":{color:"currentColor"},"&:not(:disabled)":Yx(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},ag=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),CE=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),xE=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),wE=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ks=(e,t,r,n,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},ag(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),SE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},wE(e))}),EE=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Fs=(e,t,r,n)=>{const i=n&&["link","text"].includes(n)?EE:SE;return Object.assign(Object.assign({},i(e)),ag(e.componentCls,t,r))},$s=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},Fs(e,n,o))}),Ms=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},Fs(e,n,o))}),js=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Rs=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Fs(e,r,n))}),on=(e,t,r,n,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},Fs(e,n,o,r))}),IE=e=>{const{componentCls:t}=e;return fo.reduce((r,n)=>{const o=e[`${n}6`],i=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${n}ShadowColor`]},$s(e,e.colorTextLightSolid,o,{background:a},{background:c})),Ms(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),js(e)),Rs(e,i,{color:o,background:s},{color:o,background:l})),on(e,o,"link",{color:a},{color:c})),on(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},AE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},$s(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),js(e)),Rs(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),ks(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),on(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),NE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Ms(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),js(e)),Rs(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),on(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),on(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),ks(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),OE=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},$s(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ms(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),js(e)),Rs(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),on(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),on(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ks(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),TE=e=>Object.assign(Object.assign({},on(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),ks(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),PE=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:AE(e),[`${t}-color-primary`]:NE(e),[`${t}-color-dangerous`]:OE(e),[`${t}-color-link`]:TE(e)},IE(e))},kE=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ms(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),on(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),$s(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),on(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Qu=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:n,padding:`${st(l)} ${st(a)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:CE(e)},{[`${r}${r}-round${t}`]:xE(e)}]},FE=e=>{const t=Yr(e,{fontSize:e.contentFontSize});return Qu(t,e.componentCls)},$E=e=>{const t=Yr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Qu(t,`${e.componentCls}-sm`)},ME=e=>{const t=Yr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Qu(t,`${e.componentCls}-lg`)},jE=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},RE=Vi("Button",e=>{const t=og(e);return[yE(t),FE(t),$E(t),ME(t),jE(t),PE(t),kE(t),RS(t)]},ig,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function LE(e,t,r,n){const{focusElCls:o,focus:i,borderElCls:a}=r,s=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function DE(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";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 _E(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},LE(e,n,t,r)),DE(r,n,t))}}function VE(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function BE(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function zE(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},VE(e,t,e.componentCls)),BE(e.componentCls,t))}}const GE=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:o}=e,i=o(n).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},HE=Zx(["Button","compact"],e=>{const t=og(e);return[_E(t),zE(t),GE(t)]},ig);var WE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function UE(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const XE={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Hi=E.forwardRef((e,t)=>{var r,n;const{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u,size:d,styles:f,disabled:g,className:h,rootClassName:m,children:p,icon:b,iconPosition:y="start",ghost:w=!1,block:S=!1,htmlType:v="button",classNames:I,style:O={},autoInsertSpace:N,autoFocus:T}=e,P=WE(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=l||"default",{button:x}=E.useContext(Zt),$=u||x?.shape||"default",[F,k]=E.useMemo(()=>{if(a&&s)return[a,s];if(l||c){const de=XE[M]||[];return c?["danger",de[1]]:de}return x?.color&&x?.variant?[x.color,x.variant]:["default","outlined"]},[l,a,s,c,x?.variant,x?.color]),z=F==="danger"?"dangerous":F,{getPrefixCls:H,direction:V,autoInsertSpace:_,className:D,style:B,classNames:R,styles:W}=xu("button"),K=(r=N??_)!==null&&r!==void 0?r:!0,q=H("btn",i),[U,Q,Z]=RE(q),se=E.useContext(Lo),pe=g??se,Y=E.useContext(Hp),Ce=E.useMemo(()=>UE(o),[o]),[ne,Ie]=E.useState(Ce.loading),[ve,Ye]=E.useState(!1),it=E.useRef(null),Le=Qa(t,it),St=E.Children.count(p)===1&&!b&&!Ps(k),Fe=E.useRef(!0);E.useEffect(()=>(Fe.current=!1,()=>{Fe.current=!0}),[]),rr(()=>{let de=null;Ce.delay>0?de=setTimeout(()=>{de=null,Ie(!0)},Ce.delay):Ie(Ce.loading);function Ae(){de&&(clearTimeout(de),de=null)}return Ae},[Ce.delay,Ce.loading]),E.useEffect(()=>{if(!it.current||!K)return;const de=it.current.textContent||"";St&&Uu(de)?ve||Ye(!0):ve&&Ye(!1)}),E.useEffect(()=>{T&&it.current&&it.current.focus()},[]);const Me=E.useCallback(de=>{var Ae;if(ne||pe){de.preventDefault();return}(Ae=e.onClick)===null||Ae===void 0||Ae.call(e,("href"in e,de))},[e.onClick,ne,pe]);if(process.env.NODE_ENV!=="production"){const de=kr("Button");process.env.NODE_ENV!=="production"&&de(!(typeof b=="string"&&b.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&de(!(w&&Ps(k)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:bt,compactItemClassnames:Te}=TS(q,V),Mt={large:"lg",small:"sm",middle:void 0},at=OS(de=>{var Ae,Ne;return(Ne=(Ae=d??bt)!==null&&Ae!==void 0?Ae:Y)!==null&&Ne!==void 0?Ne:de}),ir=at&&(n=Mt[at])!==null&&n!==void 0?n:"",Xt=ne?"loading":b,jt=Ts(P,["navigate"]),fr=J(q,Q,Z,{[`${q}-${$}`]:$!=="default"&&$,[`${q}-${M}`]:M,[`${q}-dangerous`]:c,[`${q}-color-${z}`]:z,[`${q}-variant-${k}`]:k,[`${q}-${ir}`]:ir,[`${q}-icon-only`]:!p&&p!==0&&!!Xt,[`${q}-background-ghost`]:w&&!Ps(k),[`${q}-loading`]:ne,[`${q}-two-chinese-chars`]:ve&&K&&!ne,[`${q}-block`]:S,[`${q}-rtl`]:V==="rtl",[`${q}-icon-end`]:y==="end"},Te,h,m,D),_e=Object.assign(Object.assign({},B),O),De=J(I?.icon,R.icon),Rt=Object.assign(Object.assign({},f?.icon||{}),W.icon||{}),Lt=b&&!ne?E.createElement(Xu,{prefixCls:q,className:De,style:Rt},b):o&&typeof o=="object"&&o.icon?E.createElement(Xu,{prefixCls:q,className:De,style:Rt},o.icon):E.createElement(jS,{existIcon:!!b,prefixCls:q,loading:ne,mount:Fe.current}),Dt=p||p===0?MS(p,St&&K):null;if(jt.href!==void 0)return U(E.createElement("a",Object.assign({},jt,{className:J(fr,{[`${q}-disabled`]:pe}),href:pe?void 0:jt.href,style:_e,onClick:Me,ref:Le,tabIndex:pe?-1:0}),Lt,Dt));let he=E.createElement("button",Object.assign({},P,{type:v,className:fr,style:_e,onClick:Me,disabled:pe,ref:Le}),Lt,Dt,Te&&E.createElement(HE,{prefixCls:q}));return Ps(k)||(he=E.createElement(Wu,{component:"Button",disabled:ne},he)),U(he)});Hi.Group=FS,Hi.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(Hi.displayName="Button");var sg=A.createContext(null),lg=[];function YE(e,t){var r=A.useState(function(){if(!lr())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),n=ie(r,1),o=n[0],i=A.useRef(!1),a=A.useContext(sg),s=A.useState(lg),l=ie(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(h){u(function(m){var p=[h].concat(ue(m));return p})});function f(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return rr(function(){return e?a?a(f):f():g(),g},[e]),rr(function(){c.length&&(c.forEach(function(h){return h()}),u(lg))},[c]),[o,d]}function JE(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";vn(`
|
|
197
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
198
|
+
`).concat(u,`
|
|
199
|
+
`).concat(d,`
|
|
200
|
+
}`),t)}catch(h){console.error(h),o=l,i=c}}document.body.appendChild(r);var f=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,g=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Ti(t),{width:f,height:g}}function ZE(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:JE(e)}function qE(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var QE="rc-util-locker-".concat(Date.now()),cg=0;function KE(e){var t=!!e,r=A.useState(function(){return cg+=1,"".concat(QE,"_").concat(cg)}),n=ie(r,1),o=n[0];rr(function(){if(t){var i=ZE(document.body).width,a=qE();vn(`
|
|
201
|
+
html body {
|
|
202
|
+
overflow-y: hidden;
|
|
203
|
+
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
204
|
+
}`),o)}else Ti(o);return function(){Ti(o)}},[t,o])}var e5=!1;function t5(e){return e5}var ug=function(t){return t===!1?!1:!lr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ku=A.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=A.useState(r),u=ie(c,2),d=u[0],f=u[1],g=d||r;process.env.NODE_ENV!=="production"&&ht(lr()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),A.useEffect(function(){(s||r)&&f(r)},[r,s]);var h=A.useState(function(){return ug(o)}),m=ie(h,2),p=m[0],b=m[1];A.useEffect(function(){var x=ug(o);b(x??null)});var y=YE(g&&!p,i),w=ie(y,2),S=w[0],v=w[1],I=p??S;KE(n&&r&&lr()&&(I===S||I===document.body));var O=null;if(l&&Ii(l)&&t){var N=l;O=N.ref}var T=Qa(O,t);if(!g||!lr()||p===void 0)return null;var P=I===!1||t5(),M=l;return t&&(M=A.cloneElement(l,{ref:T})),A.createElement(sg.Provider,{value:v},P?M:zr.createPortal(M,I))});process.env.NODE_ENV!=="production"&&(Ku.displayName="Portal");function r5(){var e=G({},A);return e.useId}var dg=0,fg=r5();const mg=fg?function(t){var r=fg();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=A.useState("ssr-id"),n=ie(r,2),o=n[0],i=n[1];return A.useEffect(function(){var a=dg;dg+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};var po="RC_FORM_INTERNAL_HOOKS",lt=function(){ht(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Wo=A.createContext({getFieldValue:lt,getFieldsValue:lt,getFieldError:lt,getFieldWarning:lt,getFieldsError:lt,isFieldsTouched:lt,isFieldTouched:lt,isFieldValidating:lt,isFieldsValidating:lt,resetFields:lt,setFields:lt,setFieldValue:lt,setFieldsValue:lt,validateFields:lt,submit:lt,getInternalHooks:function(){return lt(),{dispatch:lt,initEntityValue:lt,registerField:lt,useSubscribe:lt,setInitialValues:lt,destroyForm:lt,setCallbacks:lt,registerWatch:lt,getFields:lt,setValidateMessages:lt,setPreserve:lt,getInitialValue:lt}}}),Ls=A.createContext(null);function ed(e){return e==null?[]:Array.isArray(e)?e:[e]}function n5(e){return e&&!!e._init}function td(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var rd=td();function o5(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function i5(e,t,r){if(Lc())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Ai(o,r.prototype),o}function nd(e){var t=typeof Map=="function"?new Map:void 0;return nd=function(n){if(n===null||!o5(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return i5(n,arguments,Ni(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ai(o,n)},nd(e)}var a5=/%[sdj%]/g,pg=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(pg=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function od(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Cr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(a5,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function s5(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ut(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||s5(t)&&typeof e=="string"&&!e)}function l5(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,ue(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function gg(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<o?t(e[s],i):r([])}i([])}function c5(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,ue(e[r]||[]))}),t}var hg=function(e){Gr(r,e);var t=Hr(r);function r(n,o){var i;return Tt(this,r),i=t.call(this,"Async Validation Error"),X(be(i),"errors",void 0),X(be(i),"fields",void 0),i.errors=n,i.fields=o,i}return Pt(r)}(nd(Error));function u5(e,t,r,n,o){if(t.first){var i=new Promise(function(f,g){var h=function(b){return n(b),b.length?g(new hg(b,od(b))):f(o)},m=c5(e);gg(m,r,h)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,g){var h=function(p){if(u.push.apply(u,p),c++,c===l)return n(u),u.length?g(new hg(u,od(u))):f(o)};s.length||(n(u),f(o)),s.forEach(function(m){var p=e[m];a.indexOf(m)!==-1?gg(p,r,h):l5(p,r,h)})});return d.catch(function(f){return f}),d}function d5(e){return!!(e&&e.message!==void 0)}function f5(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function vg(e,t){return function(r){var n;return e.fullFields?n=f5(t,e.fullFields):n=t[r.field||e.fullField],d5(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function bg(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];we(n)==="object"&&we(e[r])==="object"?e[r]=G(G({},e[r]),n):e[r]=n}}return e}var Uo="enum",m5=function(t,r,n,o,i){t[Uo]=Array.isArray(t[Uo])?t[Uo]:[],t[Uo].indexOf(r)===-1&&o.push(Cr(i.messages[Uo],t.fullField,t[Uo].join(", ")))},p5=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Cr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||o.push(Cr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},g5=function(t,r,n,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,f=typeof r=="number",g=typeof r=="string",h=Array.isArray(r);if(f?d="number":g?d="string":h&&(d="array"),!d)return!1;h&&(u=r.length),g&&(u=r.replace(c,"_").length),a?u!==t.len&&o.push(Cr(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Cr(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Cr(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Cr(i.messages[d].range,t.fullField,t.min,t.max))},yg=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||Ut(r,a||t.type))&&o.push(Cr(i.messages.required,t.fullField))},Ds;const h5=function(){if(Ds)return Ds;var e="[a-fA-F\\d:]",t=function(I){return I&&I.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?: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}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(I){return I&&I.exact?s:new RegExp("(?:".concat(t(I)).concat(r).concat(t(I),")|(?:").concat(t(I)).concat(a).concat(t(I),")"),"g")};u.v4=function(v){return v&&v.exact?l:new RegExp("".concat(t(v)).concat(r).concat(t(v)),"g")},u.v6=function(v){return v&&v.exact?c:new RegExp("".concat(t(v)).concat(a).concat(t(v)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,h=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(g,"|").concat(h,"|").concat(m).concat(p).concat(b,")").concat(y).concat(w);return Ds=new RegExp("(?:^".concat(S,"$)"),"i"),Ds};var Cg={email:/^(([^<>()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wi={integer:function(t){return Wi.number(t)&&parseInt(t,10)===t},float:function(t){return Wi.number(t)&&!Wi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return we(t)==="object"&&!Wi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Cg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(h5())},hex:function(t){return typeof t=="string"&&!!t.match(Cg.hex)}},v5=function(t,r,n,o,i){if(t.required&&r===void 0){yg(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Wi[s](r)||o.push(Cr(i.messages.types[s],t.fullField,t.type)):s&&we(r)!==t.type&&o.push(Cr(i.messages.types[s],t.fullField,t.type))},b5=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(Cr(i.messages.whitespace,t.fullField))};const Re={required:yg,whitespace:b5,type:v5,range:g5,enum:m5,pattern:p5};var y5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i)}n(a)},C5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Re.required(t,r,o,a,i,"array"),r!=null&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},x5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},w5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"date")&&!t.required)return n();if(Re.required(t,r,o,a,i),!Ut(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Re.type(t,l,o,a,i),l&&Re.range(t,l.getTime(),o,a,i)}}n(a)},S5="enum",E5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re[S5](t,r,o,a,i)}n(a)},I5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},A5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},N5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},O5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i))}n(a)},T5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),r!==void 0&&Re.type(t,r,o,a,i)}n(a)},P5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Re.required(t,r,o,a,i),Ut(r,"string")||Re.pattern(t,r,o,a,i)}n(a)},k5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r)&&!t.required)return n();Re.required(t,r,o,a,i),Ut(r)||Re.type(t,r,o,a,i)}n(a)},F5=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":we(r);Re.required(t,r,o,a,i,s),n(a)},$5=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ut(r,"string")&&!t.required)return n();Re.required(t,r,o,a,i,"string"),Ut(r,"string")||(Re.type(t,r,o,a,i),Re.range(t,r,o,a,i),Re.pattern(t,r,o,a,i),t.whitespace===!0&&Re.whitespace(t,r,o,a,i))}n(a)},id=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Ut(r,a)&&!t.required)return n();Re.required(t,r,o,s,i,a),Ut(r,a)||Re.type(t,r,o,s,i)}n(s)};const Ui={string:$5,method:N5,number:O5,boolean:x5,regexp:k5,integer:A5,float:I5,array:C5,object:T5,enum:E5,pattern:P5,date:w5,url:id,hex:id,email:id,required:F5,any:y5};var Xi=function(){function e(t){Tt(this,e),X(this,"rules",null),X(this,"_messages",rd),this.define(t)}return Pt(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(we(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=bg(td(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(h){var m=[],p={};function b(w){if(Array.isArray(w)){var S;m=(S=m).concat.apply(S,ue(w))}else m.push(w)}for(var y=0;y<h.length;y++)b(h[y]);m.length?(p=od(m),l(m,p)):l(null,a)}if(s.messages){var u=this.messages();u===rd&&(u=td()),bg(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(h){var m=n.rules[h],p=a[h];m.forEach(function(b){var y=b;typeof y.transform=="function"&&(a===r&&(a=G({},a)),p=a[h]=y.transform(p),p!=null&&(y.type=y.type||(Array.isArray(p)?"array":we(p)))),typeof y=="function"?y={validator:y}:y=G({},y),y.validator=n.getValidationMethod(y),y.validator&&(y.field=h,y.fullField=y.fullField||h,y.type=n.getType(y),d[h]=d[h]||[],d[h].push({rule:y,value:p,source:a,field:h}))})});var g={};return u5(d,s,function(h,m){var p=h.rule,b=(p.type==="object"||p.type==="array")&&(we(p.fields)==="object"||we(p.defaultField)==="object");b=b&&(p.required||!p.required&&h.value),p.field=h.field;function y(O,N){return G(G({},N),{},{fullField:"".concat(p.fullField,".").concat(O),fullFields:p.fullFields?[].concat(ue(p.fullFields),[O]):[O]})}function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=Array.isArray(O)?O:[O];!s.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&p.message!==void 0&&(N=[].concat(p.message));var T=N.map(vg(p,a));if(s.first&&T.length)return g[p.field]=1,m(T);if(!b)m(T);else{if(p.required&&!h.value)return p.message!==void 0?T=[].concat(p.message).map(vg(p,a)):s.error&&(T=[s.error(p,Cr(s.messages.required,p.field))]),m(T);var P={};p.defaultField&&Object.keys(h.value).map(function($){P[$]=p.defaultField}),P=G(G({},P),h.rule.fields);var M={};Object.keys(P).forEach(function($){var F=P[$],k=Array.isArray(F)?F:[F];M[$]=k.map(y.bind(null,$))});var x=new e(M);x.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),x.validate(h.value,h.rule.options||s,function($){var F=[];T&&T.length&&F.push.apply(F,ue(T)),$&&$.length&&F.push.apply(F,ue($)),m(F.length?F:null)})}}var S;if(p.asyncValidator)S=p.asyncValidator(p,h.value,w,h.source,s);else if(p.validator){try{S=p.validator(p,h.value,w,h.source,s)}catch(O){var v,I;(v=(I=console).error)===null||v===void 0||v.call(I,O),s.suppressValidatorError||setTimeout(function(){throw O},0),w(O.message)}S===!0?w():S===!1?w(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(O){return w(O)})},function(h){c(h)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Ui.hasOwnProperty(r.type))throw new Error(Cr("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?Ui.required:Ui[this.getType(r)]||void 0}}]),e}();X(Xi,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ui[t]=r}),X(Xi,"warning",pg),X(Xi,"messages",rd),X(Xi,"validators",Ui);var xr="'${name}' is not a valid ${type}",xg={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:xr,method:xr,array:xr,object:xr,number:xr,date:xr,boolean:xr,integer:xr,float:xr,regexp:xr,email:xr,url:xr,hex:xr},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}"}},wg=Xi;function M5(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Sg="CODE_LOGIC_ERROR";function ad(e,t,r,n,o){return sd.apply(this,arguments)}function sd(){return sd=ur(ze().mark(function e(t,r,n,o,i){var a,s,l,c,u,d,f,g,h;return ze().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=G({},n),delete a.ruleIndex,wg.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Sg)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new wg(X({},t,[a])),u=$o(xg,o.validateMessages),c.messages(u),d=[],p.prev=10,p.next=13,Promise.resolve(c.validate(X({},t,r),G({},o)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(d=p.t0.errors.map(function(b,y){var w=b.message,S=w===Sg?u.default:w;return A.isValidElement(S)?A.cloneElement(S,{key:"error_".concat(y)}):S}));case 18:if(!(!d.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(b,y){return ad("".concat(t,".").concat(y),b,l,o,i)}));case 21:return f=p.sent,p.abrupt("return",f.reduce(function(b,y){return[].concat(ue(b),ue(y))},[]));case 23:return g=G(G({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=d.map(function(b){return typeof b=="string"?M5(b,g):b}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),sd.apply(this,arguments)}function j5(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,d){var f=u.validator,g=G(G({},u),{},{ruleIndex:d});return f&&(g.validator=function(h,m,p){var b=!1,y=function(){for(var v=arguments.length,I=new Array(v),O=0;O<v;O++)I[O]=arguments[O];Promise.resolve().then(function(){ht(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||p.apply(void 0,I)})},w=f(h,m,y);b=w&&typeof w.then=="function"&&typeof w.catch=="function",ht(b,"`callback` is deprecated. Please return a promise instead."),b&&w.then(function(){p()}).catch(function(S){p(S||" ")})}),g}).sort(function(u,d){var f=u.warningOnly,g=u.ruleIndex,h=d.warningOnly,m=d.ruleIndex;return!!f==!!h?g-m:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=ur(ze().mark(function d(f,g){var h,m,p;return ze().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return m=s[h],y.next=5,ad(a,t,m,n,i);case 5:if(p=y.sent,!p.length){y.next=9;break}return g([{errors:p,rule:m}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return ad(a,t,u,n,i).then(function(d){return{errors:d,rule:u}})});l=(o?L5(c):R5(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function R5(e){return ld.apply(this,arguments)}function ld(){return ld=ur(ze().mark(function e(t){return ze().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,ue(o));return a}));case 1:case"end":return n.stop()}},e)})),ld.apply(this,arguments)}function L5(e){return cd.apply(this,arguments)}function cd(){return cd=ur(ze().mark(function e(t){var r;return ze().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),cd.apply(this,arguments)}function kt(e){return ed(e)}function Eg(e,t){var r={};return t.forEach(function(n){var o=nn(e,n);r=Xr(r,n,o)}),r}function Xo(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Ig(t,n,r)})}function Ig(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function D5(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||we(e)!=="object"||we(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return ue(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function _5(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&we(t.target)==="object"&&e in t.target?t.target[e]:t}function Ag(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(ue(e.slice(0,r)),[o],ue(e.slice(r,t)),ue(e.slice(t+1,n))):i<0?[].concat(ue(e.slice(0,t)),ue(e.slice(t+1,r+1)),[o],ue(e.slice(r+1,n))):e}var V5=["name"],$r=[];function ud(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var dd=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;if(Tt(this,r),o=t.call(this,n),X(be(o),"state",{resetCount:0}),X(be(o),"cancelRegisterFunc",null),X(be(o),"mounted",!1),X(be(o),"touched",!1),X(be(o),"dirty",!1),X(be(o),"validatePromise",void 0),X(be(o),"prevValidating",void 0),X(be(o),"errors",$r),X(be(o),"warnings",$r),X(be(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,kt(d)),o.cancelRegisterFunc=null}),X(be(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(ue(f),ue(c)):[]}),X(be(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),X(be(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),X(be(o),"metaCache",null),X(be(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=G(G({},o.getMeta()),{},{destroy:l});zc(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),X(be(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,g=d.dependencies,h=g===void 0?[]:g,m=d.onReset,p=u.store,b=o.getNamePath(),y=o.getValue(l),w=o.getValue(p),S=c&&Xo(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!zc(y,w)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=$r,o.warnings=$r,o.triggerMetaEvent()),u.type){case"reset":if(!c||S){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=$r,o.warnings=$r,o.triggerMetaEvent(),m?.(),o.refresh();return}break;case"remove":{if(f&&ud(f,l,p,y,w,u)){o.reRender();return}break}case"setField":{var v=u.data;if(S){"touched"in v&&(o.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(o.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(o.errors=v.errors||$r),"warnings"in v&&(o.warnings=v.warnings||$r),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in v&&Xo(c,b,!0)){o.reRender();return}if(f&&!b.length&&ud(f,l,p,y,w,u)){o.reRender();return}break}case"dependenciesUpdate":{var I=h.map(kt);if(I.some(function(O){return Xo(u.relatedFields,O)})){o.reRender();return}break}default:if(S||(!h.length||b.length||f)&&ud(f,l,p,y,w,u)){o.reRender();return}break}f===!0&&o.reRender()}),X(be(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,g=d.validateOnly,h=g===void 0?!1:g,m=Promise.resolve().then(ur(ze().mark(function p(){var b,y,w,S,v,I,O;return ze().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,w=y===void 0?!1:y,S=b.messageVariables,v=b.validateDebounce,I=o.getRules(),f&&(I=I.filter(function(P){return P}).filter(function(P){var M=P.validateTrigger;if(!M)return!0;var x=ed(M);return x.includes(f)})),!(v&&f)){T.next=10;break}return T.next=8,new Promise(function(P){setTimeout(P,v)});case 8:if(o.validatePromise===m){T.next=10;break}return T.abrupt("return",[]);case 10:return O=j5(c,u,I,l,w,S),O.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$r;if(o.validatePromise===m){var M;o.validatePromise=null;var x=[],$=[];(M=P.forEach)===null||M===void 0||M.call(P,function(F){var k=F.rule.warningOnly,j=F.errors,z=j===void 0?$r:j;k?$.push.apply($,ue(z)):x.push.apply(x,ue(z))}),o.errors=x,o.warnings=$,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",O);case 13:case"end":return T.stop()}},p)})));return h||(o.validatePromise=m,o.dirty=!0,o.errors=$r,o.warnings=$r,o.triggerMetaEvent(),o.reRender()),m}),X(be(o),"isFieldValidating",function(){return!!o.validatePromise}),X(be(o),"isFieldTouched",function(){return o.touched}),X(be(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(po),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),X(be(o),"getErrors",function(){return o.errors}),X(be(o),"getWarnings",function(){return o.warnings}),X(be(o),"isListField",function(){return o.props.isListField}),X(be(o),"isList",function(){return o.props.isList}),X(be(o),"isPreserve",function(){return o.props.preserve}),X(be(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),X(be(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return G(G({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Ja(l);return u.length!==1||!A.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),X(be(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return nn(l||c(!0),u)}),X(be(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,d=c.trigger,f=c.validateTrigger,g=c.getValueFromEvent,h=c.normalize,m=c.valuePropName,p=c.getValueProps,b=c.fieldContext,y=f!==void 0?f:b.validateTrigger,w=o.getNamePath(),S=b.getInternalHooks,v=b.getFieldsValue,I=S(po),O=I.dispatch,N=o.getValue(),T=p||function(F){return X({},m,F)},P=l[d],M=u!==void 0?T(N):{};process.env.NODE_ENV!=="production"&&M&&Object.keys(M).forEach(function(F){ht(typeof M[F]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(F,")"))});var x=G(G({},l),M);x[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,k=arguments.length,j=new Array(k),z=0;z<k;z++)j[z]=arguments[z];g?F=g.apply(void 0,j):F=_5.apply(void 0,[m].concat(j)),h&&(F=h(F,N,v(!0))),F!==N&&O({type:"updateValue",namePath:w,value:F}),P&&P.apply(void 0,j)};var $=ed(y||[]);return $.forEach(function(F){var k=x[F];x[F]=function(){k&&k.apply(void 0,arguments);var j=o.props.rules;j&&j.length&&O({type:"validateField",namePath:w,triggerName:F})}}),x}),n.fieldContext){var i=n.fieldContext.getInternalHooks,a=i(po),s=a.initEntityValue;s(be(o))}return o}return Pt(r,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(po),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&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 o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:A.isValidElement(s)?c=A.cloneElement(s,this.getControlled(s.props)):(ht(!s,"`children` of Field is not validate ReactElement."),c=s),A.createElement(A.Fragment,{key:o},c)}}]),r}(A.Component);X(dd,"contextType",Wo),X(dd,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Ng(e){var t,r=e.name,n=vt(e,V5),o=A.useContext(Wo),i=A.useContext(Ls),a=r!==void 0?kt(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&a.length<=1&&ht(!1,"`preserve` should not apply on Form.List fields."),A.createElement(dd,le({key:l,name:a,isListField:s},n,{fieldContext:o}))}function B5(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=A.useContext(Wo),l=A.useContext(Ls),c=A.useRef({keys:[],id:0}),u=c.current,d=A.useMemo(function(){var m=kt(s.prefixName)||[];return[].concat(ue(m),ue(kt(t)))},[s.prefixName,t]),f=A.useMemo(function(){return G(G({},s),{},{prefixName:d})},[s,d]),g=A.useMemo(function(){return{getKey:function(p){var b=d.length,y=p[b];return[u.keys[y],p.slice(b+1)]}}},[d]);if(typeof n!="function")return ht(!1,"Form.List only accepts function as children."),null;var h=function(p,b,y){var w=y.source;return w==="internal"?!1:p!==b};return A.createElement(Ls.Provider,{value:g},A.createElement(Wo.Provider,{value:f},A.createElement(Ng,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:r,isList:!0,isListField:a??!!l},function(m,p){var b=m.value,y=b===void 0?[]:b,w=m.onChange,S=s.getFieldValue,v=function(){var T=S(d||[]);return T||[]},I={add:function(T,P){var M=v();P>=0&&P<=M.length?(u.keys=[].concat(ue(u.keys.slice(0,P)),[u.id],ue(u.keys.slice(P))),w([].concat(ue(M.slice(0,P)),[T],ue(M.slice(P))))):(process.env.NODE_ENV!=="production"&&(P<0||P>M.length)&&ht(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(ue(u.keys),[u.id]),w([].concat(ue(M),[T]))),u.id+=1},remove:function(T){var P=v(),M=new Set(Array.isArray(T)?T:[T]);M.size<=0||(u.keys=u.keys.filter(function(x,$){return!M.has($)}),w(P.filter(function(x,$){return!M.has($)})))},move:function(T,P){if(T!==P){var M=v();T<0||T>=M.length||P<0||P>=M.length||(u.keys=Ag(u.keys,T,P),w(Ag(M,T,P)))}}},O=y||[];return Array.isArray(O)||(O=[],process.env.NODE_ENV!=="production"&&ht(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),n(O.map(function(N,T){var P=u.keys[T];return P===void 0&&(u.keys[T]=u.id,P=u.keys[T],u.id+=1),{name:T,key:P,isListField:!0}}),I,p)})))}function z5(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var Og="__@field_split__";function fd(e){return e.map(function(t){return"".concat(we(t),":").concat(t)}).join(Og)}var Yo=function(){function e(){Tt(this,e),X(this,"kvs",new Map)}return Pt(e,[{key:"set",value:function(r,n){this.kvs.set(fd(r),n)}},{key:"get",value:function(r){return this.kvs.get(fd(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(fd(r))}},{key:"map",value:function(r){return ue(this.kvs.entries()).map(function(n){var o=ie(n,2),i=o[0],a=o[1],s=i.split(Og);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ie(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e}(),G5=["name"],H5=Pt(function e(t){var r=this;Tt(this,e),X(this,"formHooked",!1),X(this,"forceRootUpdate",void 0),X(this,"subscribable",!0),X(this,"store",{}),X(this,"fieldEntities",[]),X(this,"initialValues",{}),X(this,"callbacks",{}),X(this,"validateMessages",null),X(this,"preserve",null),X(this,"lastValidatePromise",null),X(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),X(this,"getInternalHooks",function(n){return n===po?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ht(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),X(this,"useSubscribe",function(n){r.subscribable=n}),X(this,"prevWithoutPreserves",null),X(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=$o(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Xr(a,l,nn(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),X(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Yo;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),X(this,"getInitialValue",function(n){var o=nn(r.initialValues,n);return n.length?$o(o):o}),X(this,"setCallbacks",function(n){r.callbacks=n}),X(this,"setValidateMessages",function(n){r.validateMessages=n}),X(this,"setPreserve",function(n){r.preserve=n}),X(this,"watchList",[]),X(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),X(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),X(this,"timeoutId",null),X(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||ht(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),X(this,"updateStore",function(n){r.store=n}),X(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),X(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Yo;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),X(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=kt(i);return o.get(a)||{INVALIDATE_NAME_PATH:kt(i)}})}),X(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&we(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,f,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,m;if((h=(m=u).isList)!==null&&h!==void 0&&h.call(m))return}else if(!i&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(g);else{var p="getMeta"in u?u.getMeta():null;a(p)&&c.push(g)}}),Eg(r.store,c.map(kt))}),X(this,"getFieldValue",function(n){r.warningUnhooked();var o=kt(n);return nn(r.store,o)}),X(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:kt(n[a]),errors:[],warnings:[]}})}),X(this,"getFieldError",function(n){r.warningUnhooked();var o=kt(n),i=r.getFieldsError([o])[0];return i.errors}),X(this,"getFieldWarning",function(n){r.warningUnhooked();var o=kt(n),i=r.getFieldsError([o])[0];return i.warnings}),X(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(kt),c=!1):(l=null,c=a):(l=a.map(kt),c=s);var u=r.getFieldEntities(!0),d=function(p){return p.isFieldTouched()};if(!l)return c?u.every(function(m){return d(m)||m.isList()}):u.some(d);var f=new Yo;l.forEach(function(m){f.set(m,[])}),u.forEach(function(m){var p=m.getNamePath();l.forEach(function(b){b.every(function(y,w){return p[w]===y})&&f.update(b,function(y){return[].concat(ue(y),[m])})})});var g=function(p){return p.some(d)},h=f.map(function(m){var p=m.value;return p});return c?h.every(g):h.some(g)}),X(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),X(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(a){return a.isFieldValidating()});var i=n.map(kt);return o.some(function(a){var s=a.getNamePath();return Xo(i,s)&&a.isFieldValidating()})}),X(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),X(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Yo,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),g=r.getInitialValue(f);if(g!==void 0)ht(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=o.get(f);if(h&&h.size>1)ht(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var m=r.getFieldValue(f),p=u.isListField();!p&&(!n.skipExist||m===void 0)&&r.updateStore(Xr(r.store,f,ue(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,ue(ue(c).map(function(d){return d.entity})))}})):s=i,a(s)}),X(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore($o(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(kt);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Xr(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),X(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=vt(a,G5),c=kt(s);i.push(c),"value"in l&&r.updateStore(Xr(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),X(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=G(G({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),X(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=nn(r.store,i);a===void 0&&r.updateStore(Xr(r.store,i,o))}}),X(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),X(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(d){return!Ig(d.getNamePath(),o)})){var u=r.store;r.updateStore(Xr(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),X(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}}),X(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=G(G({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),X(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ue(i))}),i}),X(this,"updateValue",function(n,o){var i=kt(n),a=r.store;r.updateStore(Xr(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Eg(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(ue(s)))}),X(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=$o(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),X(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),X(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Yo;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=kt(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(n),i}),X(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Yo;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Xo(n,u)});l.length&&i(l,a)}}),X(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(kt):[],c=[],u=String(Date.now()),d=new Set,f=a||{},g=f.recursive,h=f.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var w=y.getNamePath();if(d.add(w.join(u)),!s||Xo(l,w,g)){var S=y.validateRules(G({validateMessages:G(G({},xg),r.validateMessages)},a));c.push(S.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(v){var I,O=[],N=[];return(I=v.forEach)===null||I===void 0||I.call(v,function(T){var P=T.rule.warningOnly,M=T.errors;P?N.push.apply(N,ue(M)):O.push.apply(O,ue(M))}),O.length?Promise.reject({name:w,errors:O,warnings:N}):{name:w,errors:O,warnings:N}}))}}});var m=z5(c);r.lastValidatePromise=m,m.catch(function(y){return y}).then(function(y){var w=y.map(function(S){var v=S.name;return v});r.notifyObservers(r.store,w,{type:"validateFinish"}),r.triggerOnFieldsChange(w,y)});var p=m.then(function(){return r.lastValidatePromise===m?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var w=y.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:w,outOfDate:r.lastValidatePromise!==m})});p.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return r.triggerOnFieldsChange(b),p}),X(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function Tg(e){var t=A.useRef(),r=A.useState({}),n=ie(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new H5(i);t.current=a.getForm()}return[t.current]}var md=A.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),W5=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=A.useContext(md),s=A.useRef({});return A.createElement(md.Provider,{value:G(G({},a),{},{validateMessages:G(G({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=G(G({},s.current),{},X({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=G({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},U5=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],X5=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,g=f===void 0?"onChange":f,h=t.onValuesChange,m=t.onFieldsChange,p=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,w=vt(t,U5),S=A.useRef(null),v=A.useContext(md),I=Tg(a),O=ie(I,1),N=O[0],T=N.getInternalHooks(po),P=T.useSubscribe,M=T.setInitialValues,x=T.setCallbacks,$=T.setValidateMessages,F=T.setPreserve,k=T.destroyForm;A.useImperativeHandle(r,function(){return G(G({},N),{},{nativeElement:S.current})}),A.useEffect(function(){return v.registerForm(n,N),function(){v.unregisterForm(n)}},[v,N,n]),$(G(G({},v.validateMessages),d)),x({onValuesChange:h,onFieldsChange:function(W){if(v.triggerFormChange(n,W),m){for(var K=arguments.length,q=new Array(K>1?K-1:0),U=1;U<K;U++)q[U-1]=arguments[U];m.apply(void 0,[W].concat(q))}},onFinish:function(W){v.triggerFormFinish(n,W),p&&p(W)},onFinishFailed:b}),F(s);var j=A.useRef(null);M(o,!j.current),j.current||(j.current=!0),A.useEffect(function(){return function(){return k(y)}},[]);var z,H=typeof l=="function";if(H){var V=N.getFieldsValue(!0);z=l(V,N)}else z=l;P(!H);var _=A.useRef();A.useEffect(function(){D5(_.current||[],i||[])||N.setFields(i||[]),_.current=i},[i,N]);var D=A.useMemo(function(){return G(G({},N),{},{validateTrigger:g})},[N,g]),B=A.createElement(Ls.Provider,{value:null},A.createElement(Wo.Provider,{value:D},z));return u===!1?B:A.createElement(u,le({},w,{ref:S,onSubmit:function(W){W.preventDefault(),W.stopPropagation(),N.submit()},onReset:function(W){var K;W.preventDefault(),N.resetFields(),(K=w.onReset)===null||K===void 0||K.call(w,W)}}),B)};function Pg(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Y5=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=E.useRef(t);ht(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function J5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=o===void 0?{}:o,a=n5(i)?{form:i}:i,s=a.form,l=E.useState(),c=ie(l,2),u=c[0],d=c[1],f=E.useMemo(function(){return Pg(u)},[u]),g=E.useRef(f);g.current=f;var h=E.useContext(Wo),m=s||h,p=m&&m._init;process.env.NODE_ENV!=="production"&&ht(t.length===2?s?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var b=kt(n),y=E.useRef(b);return y.current=b,Y5(b),E.useEffect(function(){if(p){var w=m.getFieldsValue,S=m.getInternalHooks,v=S(po),I=v.registerWatch,O=function(M,x){var $=a.preserve?x:M;return typeof n=="function"?n($):nn($,y.current)},N=I(function(P,M){var x=O(P,M),$=Pg(x);g.current!==$&&(g.current=$,d(x))}),T=O(w(),w(!0));return u!==T&&d(T),N}},[p]),u}var Z5=A.forwardRef(X5),Yi=Z5;Yi.FormProvider=W5,Yi.Field=Ng,Yi.List=B5,Yi.useForm=Tg,Yi.useWatch=J5;const _s=A.createContext({});process.env.NODE_ENV!=="production"&&(_s.displayName="FormItemInputContext");const q5=({children:e,status:t,override:r})=>{const n=A.useContext(_s),o=A.useMemo(()=>{const i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return A.createElement(_s.Provider,{value:o},e)},Q5=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=E.createElement(q5,{override:!0,status:!0},o)),t&&(o=E.createElement(PS,null,o)),o},K5=function(){if(typeof navigator>"u"||typeof window>"u")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(e?.substr(0,4))};function eI(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=A.useRef();if(!r||!r.points)return null;var g={position:"absolute"};if(r.autoArrow!==!1){var h=r.points[0],m=r.points[1],p=h[0],b=h[1],y=m[0],w=m[1];p===y||!["t","b"].includes(p)?g.top=d:p==="t"?g.top=0:g.bottom=0,b===w||!["l","r"].includes(b)?g.left=c:b==="l"?g.left=0:g.right=0}return A.createElement("div",{ref:f,className:J("".concat(t,"-arrow"),a),style:g},s)}function tI(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?A.createElement(mo,le({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return A.createElement("div",{style:{zIndex:n},className:J("".concat(t,"-mask"),s)})}):null}var kg=A.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(kg.displayName="PopupContent");var Fg=A.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,g=e.arrow,h=e.arrowPos,m=e.align,p=e.motion,b=e.maskMotion,y=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,v=e.portal,I=e.zIndex,O=e.onMouseEnter,N=e.onMouseLeave,T=e.onPointerEnter,P=e.onPointerDownCapture,M=e.ready,x=e.offsetX,$=e.offsetY,F=e.offsetR,k=e.offsetB,j=e.onAlign,z=e.onPrepare,H=e.stretch,V=e.targetWidth,_=e.targetHeight,D=typeof r=="function"?r():r,B=l||c,R=w?.length>0,W=A.useState(!w||!R),K=ie(W,2),q=K[0],U=K[1];if(rr(function(){!q&&R&&a&&U(!0)},[q,R,a]),!q)return null;var Q="auto",Z={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(M||!l){var se,pe=m.points,Y=m.dynamicInset||((se=m._experimental)===null||se===void 0?void 0:se.dynamicInset),Ce=Y&&pe[0][1]==="r",ne=Y&&pe[0][0]==="b";Ce?(Z.right=F,Z.left=Q):(Z.left=x,Z.right=Q),ne?(Z.bottom=k,Z.top=Q):(Z.top=$,Z.bottom=Q)}var Ie={};return H&&(H.includes("height")&&_?Ie.height=_:H.includes("minHeight")&&_&&(Ie.minHeight=_),H.includes("width")&&V?Ie.width=V:H.includes("minWidth")&&V&&(Ie.minWidth=V)),l||(Ie.pointerEvents="none"),A.createElement(v,{open:y||B,getContainer:w&&function(){return w(a)},autoDestroy:S},A.createElement(tI,{prefixCls:o,open:l,zIndex:I,mask:f,motion:b}),A.createElement(ns,{onResize:j,disabled:!l},function(ve){return A.createElement(mo,le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:z,onEnterPrepare:z,visible:l,onVisibleChanged:function(it){var Le;p==null||(Le=p.onVisibleChanged)===null||Le===void 0||Le.call(p,it),s(it)}}),function(Ye,it){var Le=Ye.className,St=Ye.style,Fe=J(o,Le,n);return A.createElement("div",{ref:Ei(ve,t,it),className:Fe,style:G(G(G(G({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},Z),Ie),St),{},{boxSizing:"border-box",zIndex:I},i),onMouseEnter:O,onMouseLeave:N,onPointerEnter:T,onClick:d,onPointerDownCapture:P},g&&A.createElement(eI,{prefixCls:o,arrow:g,arrowPos:h,align:m}),A.createElement(kg,{cache:!l&&!u},D))})}))});process.env.NODE_ENV!=="production"&&(Fg.displayName="Popup");var $g=A.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Ii(r),i=A.useCallback(function(s){Mc(t,n?n(s):s)},[n]),a=Qa(i,Ka(r));return o?A.cloneElement(r,{ref:a}):r});process.env.NODE_ENV!=="production"&&($g.displayName="TriggerWrapper");var Mg=A.createContext(null);function jg(e){return e?Array.isArray(e)?e:[e]:[]}function rI(e,t,r,n){return A.useMemo(function(){var o=jg(r??t),i=jg(n??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}function nI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function oI(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(nI((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function Rg(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Ji(e){return e.ownerDocument.defaultView}function pd(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=Ji(r).getComputedStyle(r),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Zi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function qi(e){return Zi(parseFloat(e),0)}function Lg(e,t){var r=G({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Ji(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,g=n.clientHeight,h=n.offsetWidth,m=n.clientWidth,p=qi(s),b=qi(l),y=qi(c),w=qi(u),S=Zi(Math.round(d.width/h*1e3)/1e3),v=Zi(Math.round(d.height/f*1e3)/1e3),I=(h-m-y-w)*S,O=(f-g-p-b)*v,N=p*v,T=b*v,P=y*S,M=w*S,x=0,$=0;if(i==="clip"){var F=qi(a);x=F*S,$=F*v}var k=d.x+P-x,j=d.y+N-$,z=k+d.width+2*x-P-M-I,H=j+d.height+2*$-N-T-O;r.left=Math.max(r.left,k),r.top=Math.max(r.top,j),r.right=Math.min(r.right,z),r.bottom=Math.min(r.bottom,H)}}),r}function Dg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function _g(e,t){var r=t||[],n=ie(r,2),o=n[0],i=n[1];return[Dg(e.width,o),Dg(e.height,i)]}function Vg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Jo(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Un(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function iI(e,t,r,n,o,i,a){var s=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=ie(s,2),c=l[0],u=l[1],d=A.useRef(0),f=A.useMemo(function(){return t?pd(t):[]},[t]),g=A.useRef({}),h=function(){g.current={}};e||h();var m=cr(function(){if(t&&r&&e){let Br=function(Ga,Bn){var so=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mt,Ha=B.x+Ga,Ic=B.y+Bn,a0=Ha+ne,s0=Ic+Ce,l0=Math.max(Ha,so.left),me=Math.max(Ic,so.top),Ee=Math.min(a0,so.right),wt=Math.min(s0,so.bottom);return Math.max(0,(Ee-l0)*(wt-me))},Ci=function(){Oe=B.y+He,Se=Oe+Ce,gt=B.x+Je,Be=gt+ne};var y,w,S,v,I=t,O=I.ownerDocument,N=Ji(I),T=N.getComputedStyle(I),P=T.position,M=I.style.left,x=I.style.top,$=I.style.right,F=I.style.bottom,k=I.style.overflow,j=G(G({},o[n]),i),z=O.createElement("div");(y=I.parentElement)===null||y===void 0||y.appendChild(z),z.style.left="".concat(I.offsetLeft,"px"),z.style.top="".concat(I.offsetTop,"px"),z.style.position=P,z.style.height="".concat(I.offsetHeight,"px"),z.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var H;if(Array.isArray(r))H={x:r[0],y:r[1],width:0,height:0};else{var V,_,D=r.getBoundingClientRect();D.x=(V=D.x)!==null&&V!==void 0?V:D.left,D.y=(_=D.y)!==null&&_!==void 0?_:D.top,H={x:D.x,y:D.y,width:D.width,height:D.height}}var B=I.getBoundingClientRect(),R=N.getComputedStyle(I),W=R.height,K=R.width;B.x=(w=B.x)!==null&&w!==void 0?w:B.left,B.y=(S=B.y)!==null&&S!==void 0?S:B.top;var q=O.documentElement,U=q.clientWidth,Q=q.clientHeight,Z=q.scrollWidth,se=q.scrollHeight,pe=q.scrollTop,Y=q.scrollLeft,Ce=B.height,ne=B.width,Ie=H.height,ve=H.width,Ye={left:0,top:0,right:U,bottom:Q},it={left:-Y,top:-pe,right:Z-Y,bottom:se-pe},Le=j.htmlRegion,St="visible",Fe="visibleFirst";Le!=="scroll"&&Le!==Fe&&(Le=St);var Me=Le===Fe,bt=Lg(it,f),Te=Lg(Ye,f),Mt=Le===St?Te:bt,at=Me?Te:Mt;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var ir=I.getBoundingClientRect();I.style.left=M,I.style.top=x,I.style.right=$,I.style.bottom=F,I.style.overflow=k,(v=I.parentElement)===null||v===void 0||v.removeChild(z);var Xt=Zi(Math.round(ne/parseFloat(K)*1e3)/1e3),jt=Zi(Math.round(Ce/parseFloat(W)*1e3)/1e3);if(Xt===0||jt===0||Si(r)&&!zp(r))return;var fr=j.offset,_e=j.targetOffset,De=_g(B,fr),Rt=ie(De,2),Lt=Rt[0],Dt=Rt[1],he=_g(H,_e),de=ie(he,2),Ae=de[0],Ne=de[1];H.x-=Ae,H.y-=Ne;var $e=j.points||[],pt=ie($e,2),tr=pt[0],ar=pt[1],_t=Vg(ar),Vt=Vg(tr),Et=Jo(H,_t),_r=Jo(B,Vt),Wt=G({},j),Je=Et.x-_r.x+Lt,He=Et.y-_r.y+Dt,Bt=Br(Je,He),Tr=Br(Je,He,Te),sr=Jo(H,["t","l"]),xt=Jo(B,["t","l"]),pn=Jo(H,["b","r"]),Qr=Jo(B,["b","r"]),L=j.overflow||{},te=L.adjustX,ae=L.adjustY,fe=L.shiftX,ke=L.shiftY,Ve=function(Bn){return typeof Bn=="boolean"?Bn:Bn>=0},Oe,Se,gt,Be;Ci();var ft=Ve(ae),je=Vt[0]===_t[0];if(ft&&Vt[0]==="t"&&(Se>at.bottom||g.current.bt)){var br=He;je?br-=Ce-Ie:br=sr.y-Qr.y-Dt;var Vr=Br(Je,br),qt=Br(Je,br,Te);Vr>Bt||Vr===Bt&&(!Me||qt>=Tr)?(g.current.bt=!0,He=br,Dt=-Dt,Wt.points=[Un(Vt,0),Un(_t,0)]):g.current.bt=!1}if(ft&&Vt[0]==="b"&&(Oe<at.top||g.current.tb)){var Kr=He;je?Kr+=Ce-Ie:Kr=pn.y-xt.y-Dt;var bi=Br(Je,Kr),Da=Br(Je,Kr,Te);bi>Bt||bi===Bt&&(!Me||Da>=Tr)?(g.current.tb=!0,He=Kr,Dt=-Dt,Wt.points=[Un(Vt,0),Un(_t,0)]):g.current.tb=!1}var bc=Ve(te),yc=Vt[1]===_t[1];if(bc&&Vt[1]==="l"&&(Be>at.right||g.current.rl)){var wo=Je;yc?wo-=ne-ve:wo=sr.x-Qr.x-Lt;var So=Br(wo,He),_a=Br(wo,He,Te);So>Bt||So===Bt&&(!Me||_a>=Tr)?(g.current.rl=!0,Je=wo,Lt=-Lt,Wt.points=[Un(Vt,1),Un(_t,1)]):g.current.rl=!1}if(bc&&Vt[1]==="r"&&(gt<at.left||g.current.lr)){var Eo=Je;yc?Eo+=ne-ve:Eo=pn.x-xt.x-Lt;var Va=Br(Eo,He),yi=Br(Eo,He,Te);Va>Bt||Va===Bt&&(!Me||yi>=Tr)?(g.current.lr=!0,Je=Eo,Lt=-Lt,Wt.points=[Un(Vt,1),Un(_t,1)]):g.current.lr=!1}Ci();var en=fe===!0?0:fe;typeof en=="number"&&(gt<Te.left&&(Je-=gt-Te.left-Lt,H.x+ve<Te.left+en&&(Je+=H.x-Te.left+ve-en)),Be>Te.right&&(Je-=Be-Te.right-Lt,H.x>Te.right-en&&(Je+=H.x-Te.right+en)));var oo=ke===!0?0:ke;typeof oo=="number"&&(Oe<Te.top&&(He-=Oe-Te.top-Dt,H.y+Ie<Te.top+oo&&(He+=H.y-Te.top+Ie-oo)),Se>Te.bottom&&(He-=Se-Te.bottom-Dt,H.y>Te.bottom-oo&&(He+=H.y-Te.bottom+oo)));var io=B.x+Je,ao=io+ne,Ba=B.y+He,qf=Ba+Ce,Cc=H.x,xc=Cc+ve,wc=H.y,Qf=wc+Ie,Kf=Math.max(io,Cc),Sc=Math.min(ao,xc),e0=(Kf+Sc)/2,t0=e0-io,Ec=Math.max(Ba,wc),r0=Math.min(qf,Qf),n0=(Ec+r0)/2,o0=n0-Ba;a?.(t,Wt);var gn=ir.right-B.x-(Je+B.width),za=ir.bottom-B.y-(He+B.height);Xt===1&&(Je=Math.round(Je),gn=Math.round(gn)),jt===1&&(He=Math.round(He),za=Math.round(za));var i0={ready:!0,offsetX:Je/Xt,offsetY:He/jt,offsetR:gn/Xt,offsetB:za/jt,arrowX:t0/Xt,arrowY:o0/jt,scaleX:Xt,scaleY:jt,align:Wt};u(i0)}}),p=function(){d.current+=1;var w=d.current;Promise.resolve().then(function(){d.current===w&&m()})},b=function(){u(function(w){return G(G({},w),{},{ready:!1})})};return rr(b,[n]),rr(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,p]}function aI(e,t,r,n,o){rr(function(){if(e&&t&&r){let d=function(){n(),o()};var i=t,a=r,s=pd(i),l=pd(a),c=Ji(a),u=new Set([c].concat(ue(s),ue(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}function sI(e,t,r,n,o,i,a,s){var l=A.useRef(e);l.current=e;var c=A.useRef(!1);A.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){c.current=!1},f=function(S){var v;l.current&&!a(((v=S.composedPath)===null||v===void 0||(v=v.call(S))===null||v===void 0?void 0:v[0])||S.target)&&!c.current&&s(!1)},g=Ji(n);g.addEventListener("pointerdown",d,!0),g.addEventListener("mousedown",f,!0),g.addEventListener("contextmenu",f,!0);var h=Es(r);if(h&&(h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var m,p,b=r==null||(m=r.getRootNode)===null||m===void 0?void 0:m.call(r),y=(p=n.getRootNode)===null||p===void 0?void 0:p.call(n);Io(b===y,"trigger element and popup element should in same shadow root.")}return function(){g.removeEventListener("pointerdown",d,!0),g.removeEventListener("mousedown",f,!0),g.removeEventListener("contextmenu",f,!0),h&&(h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var lI=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function cI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ku,t=A.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,g=r.onPopupVisibleChange,h=r.afterPopupVisibleChange,m=r.mouseEnterDelay,p=r.mouseLeaveDelay,b=p===void 0?.1:p,y=r.focusDelay,w=r.blurDelay,S=r.mask,v=r.maskClosable,I=v===void 0?!0:v,O=r.getPopupContainer,N=r.forceRender,T=r.autoDestroy,P=r.destroyPopupOnHide,M=r.popup,x=r.popupClassName,$=r.popupStyle,F=r.popupPlacement,k=r.builtinPlacements,j=k===void 0?{}:k,z=r.popupAlign,H=r.zIndex,V=r.stretch,_=r.getPopupClassNameFromAlign,D=r.fresh,B=r.alignPoint,R=r.onPopupClick,W=r.onPopupAlign,K=r.arrow,q=r.popupMotion,U=r.maskMotion,Q=r.popupTransitionName,Z=r.popupAnimation,se=r.maskTransitionName,pe=r.maskAnimation,Y=r.className,Ce=r.getTriggerDOMNode,ne=vt(r,lI),Ie=T||P||!1,ve=A.useState(!1),Ye=ie(ve,2),it=Ye[0],Le=Ye[1];rr(function(){Le(K5())},[]);var St=A.useRef({}),Fe=A.useContext(Mg),Me=A.useMemo(function(){return{registerSubPopup:function(Ee,wt){St.current[Ee]=wt,Fe?.registerSubPopup(Ee,wt)}}},[Fe]),bt=mg(),Te=A.useState(null),Mt=ie(Te,2),at=Mt[0],ir=Mt[1],Xt=A.useRef(null),jt=cr(function(me){Xt.current=me,Si(me)&&at!==me&&ir(me),Fe?.registerSubPopup(bt,me)}),fr=A.useState(null),_e=ie(fr,2),De=_e[0],Rt=_e[1],Lt=A.useRef(null),Dt=cr(function(me){Si(me)&&De!==me&&(Rt(me),Lt.current=me)}),he=A.Children.only(a),de=he?.props||{},Ae={},Ne=cr(function(me){var Ee,wt,Yt=De;return Yt?.contains(me)||((Ee=Es(Yt))===null||Ee===void 0?void 0:Ee.host)===me||me===Yt||at?.contains(me)||((wt=Es(at))===null||wt===void 0?void 0:wt.host)===me||me===at||Object.values(St.current).some(function(Ot){return Ot?.contains(me)||me===Ot})}),$e=Rg(i,q,Z,Q),pt=Rg(i,U,pe,se),tr=A.useState(f||!1),ar=ie(tr,2),_t=ar[0],Vt=ar[1],Et=d??_t,_r=cr(function(me){d===void 0&&Vt(me)});rr(function(){Vt(d||!1)},[d]);var Wt=A.useRef(Et);Wt.current=Et;var Je=A.useRef([]);Je.current=[];var He=cr(function(me){var Ee;_r(me),((Ee=Je.current[Je.current.length-1])!==null&&Ee!==void 0?Ee:Et)!==me&&(Je.current.push(me),g?.(me))}),Bt=A.useRef(),Tr=function(){clearTimeout(Bt.current)},sr=function(Ee){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Tr(),wt===0?He(Ee):Bt.current=setTimeout(function(){He(Ee)},wt*1e3)};A.useEffect(function(){return Tr},[]);var xt=A.useState(!1),pn=ie(xt,2),Qr=pn[0],L=pn[1];rr(function(me){(!me||Et)&&L(!0)},[Et]);var te=A.useState(null),ae=ie(te,2),fe=ae[0],ke=ae[1],Ve=A.useState(null),Oe=ie(Ve,2),Se=Oe[0],gt=Oe[1],Be=function(Ee){gt([Ee.clientX,Ee.clientY])},ft=iI(Et,at,B&&Se!==null?Se:De,F,j,z,W),je=ie(ft,11),br=je[0],Vr=je[1],qt=je[2],Kr=je[3],bi=je[4],Da=je[5],bc=je[6],yc=je[7],wo=je[8],So=je[9],_a=je[10],Eo=rI(it,l,c,u),Va=ie(Eo,2),yi=Va[0],en=Va[1],oo=yi.has("click"),io=en.has("click")||en.has("contextMenu"),ao=cr(function(){Qr||_a()}),Ba=function(){Wt.current&&B&&io&&sr(!1)};aI(Et,De,at,ao,Ba),rr(function(){ao()},[Se,F]),rr(function(){Et&&!(j!=null&&j[F])&&ao()},[JSON.stringify(z)]);var qf=A.useMemo(function(){var me=oI(j,i,So,B);return J(me,_?.(So))},[So,_,j,i,B]);A.useImperativeHandle(n,function(){return{nativeElement:Lt.current,popupElement:Xt.current,forceAlign:ao}});var Cc=A.useState(0),xc=ie(Cc,2),wc=xc[0],Qf=xc[1],Kf=A.useState(0),Sc=ie(Kf,2),e0=Sc[0],t0=Sc[1],Ec=function(){if(V&&De){var Ee=De.getBoundingClientRect();Qf(Ee.width),t0(Ee.height)}},r0=function(){Ec(),ao()},n0=function(Ee){L(!1),_a(),h?.(Ee)},o0=function(){return new Promise(function(Ee){Ec(),ke(function(){return Ee})})};rr(function(){fe&&(_a(),fe(),ke(null))},[fe]);function gn(me,Ee,wt,Yt){Ae[me]=function(Ot){var Ac;Yt?.(Ot),sr(Ee,wt);for(var c0=arguments.length,Zy=new Array(c0>1?c0-1:0),Nc=1;Nc<c0;Nc++)Zy[Nc-1]=arguments[Nc];(Ac=de[me])===null||Ac===void 0||Ac.call.apply(Ac,[de,Ot].concat(Zy))}}(oo||io)&&(Ae.onClick=function(me){var Ee;Wt.current&&io?sr(!1):!Wt.current&&oo&&(Be(me),sr(!0));for(var wt=arguments.length,Yt=new Array(wt>1?wt-1:0),Ot=1;Ot<wt;Ot++)Yt[Ot-1]=arguments[Ot];(Ee=de.onClick)===null||Ee===void 0||Ee.call.apply(Ee,[de,me].concat(Yt))});var za=sI(Et,io,De,at,S,I,Ne,sr),i0=yi.has("hover"),Br=en.has("hover"),Ci,Ga;i0&&(gn("onMouseEnter",!0,m,function(me){Be(me)}),gn("onPointerEnter",!0,m,function(me){Be(me)}),Ci=function(Ee){(Et||Qr)&&at!==null&&at!==void 0&&at.contains(Ee.target)&&sr(!0,m)},B&&(Ae.onMouseMove=function(me){var Ee;(Ee=de.onMouseMove)===null||Ee===void 0||Ee.call(de,me)})),Br&&(gn("onMouseLeave",!1,b),gn("onPointerLeave",!1,b),Ga=function(){sr(!1,b)}),yi.has("focus")&&gn("onFocus",!0,y),en.has("focus")&&gn("onBlur",!1,w),yi.has("contextMenu")&&(Ae.onContextMenu=function(me){var Ee;Wt.current&&en.has("contextMenu")?sr(!1):(Be(me),sr(!0)),me.preventDefault();for(var wt=arguments.length,Yt=new Array(wt>1?wt-1:0),Ot=1;Ot<wt;Ot++)Yt[Ot-1]=arguments[Ot];(Ee=de.onContextMenu)===null||Ee===void 0||Ee.call.apply(Ee,[de,me].concat(Yt))}),Y&&(Ae.className=J(de.className,Y));var Bn=A.useRef(!1);Bn.current||(Bn.current=N||Et||Qr);var so=G(G({},de),Ae),Ha={},Ic=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ic.forEach(function(me){ne[me]&&(Ha[me]=function(){for(var Ee,wt=arguments.length,Yt=new Array(wt),Ot=0;Ot<wt;Ot++)Yt[Ot]=arguments[Ot];(Ee=so[me])===null||Ee===void 0||Ee.call.apply(Ee,[so].concat(Yt)),ne[me].apply(ne,Yt)})});var a0=A.cloneElement(he,G(G({},so),Ha)),s0={x:Da,y:bc},l0=K?G({},K!==!0?K:{}):null;return A.createElement(A.Fragment,null,A.createElement(ns,{disabled:!Et,ref:Dt,onResize:r0},A.createElement($g,{getTriggerDOMNode:Ce},a0)),Bn.current&&A.createElement(Mg.Provider,{value:Me},A.createElement(Fg,{portal:e,ref:jt,prefixCls:i,popup:M,className:J(x,qf),style:$,target:De,onMouseEnter:Ci,onMouseLeave:Ga,onPointerEnter:Ci,zIndex:H,open:Et,keepDom:Qr,fresh:D,onClick:R,onPointerDownCapture:za,mask:S,motion:$e,maskMotion:pt,onVisibleChanged:n0,onPrepare:o0,forceRender:N,autoDestroy:Ie,getPopupContainer:O,align:So,arrow:l0,arrowPos:s0,ready:br,offsetX:Vr,offsetY:qt,offsetR:Kr,offsetB:bi,onAlign:ao,stretch:V,targetWidth:wc/yc,targetHeight:e0/wo})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const uI=cI(Ku);var dI={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"},fI=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:dI}))},Bg=A.forwardRef(fI);process.env.NODE_ENV!=="production"&&(Bg.displayName="CheckOutlined");function mI(){const[,e]=A.useReducer(t=>t+1,0);return e}function zg(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return A.createElement("div",{className:J("".concat(r,"-content"),a),style:s},A.createElement("div",{className:J("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Zo={shiftX:64,adjustY:1},qo={adjustX:1,shiftY:!0},Mr=[0,0],pI={left:{points:["cr","cl"],overflow:qo,offset:[-4,0],targetOffset:Mr},right:{points:["cl","cr"],overflow:qo,offset:[4,0],targetOffset:Mr},top:{points:["bc","tc"],overflow:Zo,offset:[0,-4],targetOffset:Mr},bottom:{points:["tc","bc"],overflow:Zo,offset:[0,4],targetOffset:Mr},topLeft:{points:["bl","tl"],overflow:Zo,offset:[0,-4],targetOffset:Mr},leftTop:{points:["tr","tl"],overflow:qo,offset:[-4,0],targetOffset:Mr},topRight:{points:["br","tr"],overflow:Zo,offset:[0,-4],targetOffset:Mr},rightTop:{points:["tl","tr"],overflow:qo,offset:[4,0],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:Zo,offset:[0,4],targetOffset:Mr},rightBottom:{points:["bl","br"],overflow:qo,offset:[4,0],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:Zo,offset:[0,4],targetOffset:Mr},leftBottom:{points:["br","bl"],overflow:qo,offset:[-4,0],targetOffset:Mr}},gI=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],hI=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,g=t.children,h=t.onVisibleChange,m=t.afterVisibleChange,p=t.transitionName,b=t.animation,y=t.motion,w=t.placement,S=w===void 0?"right":w,v=t.align,I=v===void 0?{}:v,O=t.destroyTooltipOnHide,N=O===void 0?!1:O,T=t.defaultVisible,P=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var x=t.overlay,$=t.id,F=t.showArrow,k=F===void 0?!0:F,j=t.classNames,z=t.styles,H=vt(t,gI),V=mg($),_=E.useRef(null);E.useImperativeHandle(r,function(){return _.current});var D=G({},H);"visible"in t&&(D.popupVisible=t.visible);var B=function(){return A.createElement(zg,{key:"content",prefixCls:f,id:V,bodyClassName:j?.body,overlayInnerStyle:G(G({},M),z?.body)},x)},R=function(){var K=A.Children.only(g),q=K?.props||{},U=G(G({},q),{},{"aria-describedby":x?V:null});return A.cloneElement(g,U)};return A.createElement(uI,le({popupClassName:J(n,j?.root),prefixCls:f,popup:B,action:i,builtinPlacements:pI,popupPlacement:S,ref:_,popupAlign:I,getPopupContainer:P,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:p,popupAnimation:b,popupMotion:y,defaultPopupVisible:T,autoDestroy:N,mouseLeaveDelay:c,popupStyle:G(G({},u),z?.root),mouseEnterDelay:s,arrow:k},D),R())};const vI=E.forwardRef(hI);function bI(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-c,f=u,g=2*o-s,h=l,m=2*o-i,p=a,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1),w=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,S=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${d} ${f} L ${g} ${h} A ${n} ${n} 0 0 0 ${m} ${p} Z')`;return{arrowShadowWidth:b,arrowPath:S,arrowPolygon:w}}const yI=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${st(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},Gg=8;function Hg(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?Gg:n}}function Vs(e,t){return e?t:{}}function CI(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},yI(e,t,o)),{"&:before":{background:t}})]},Vs(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${st(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vs(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${st(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vs(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Vs(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function xI(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Wg={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"]}},wI={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"]}},SI=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function EI(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i}=e,a=t/2,s={},l=Hg({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Wg).forEach(c=>{const u=n&&wI[c]||Wg[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=d,SI.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=a+o;break}if(n)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-l.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":d.offset[0]=l.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":d.offset[1]=-l.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":d.offset[1]=l.arrowOffsetHorizontal*2-a;break}d.overflow=xI(c,l,t,r),d.htmlRegion="visibleFirst"}),s}const II=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:g}=e,h=t(a).add(g).add(f).equal(),m=t(a).mul(2).add(g).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},_o(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:m,minHeight:l,padding:`${st(e.calc(u).div(2).equal())} ${st(d)}`,color:`var(--ant-tooltip-color,${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,Gg)}},[`${r}-content`]:{position:"relative"}}),qx(e,(p,{darkColor:b})=>({[`&${r}-${p}`]:{[`${r}-inner`]:{backgroundColor:b},[`${r}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},CI(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},AI=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Hg({contentRadius:e.borderRadius,limitVerticalRadius:!0})),bI(Yr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Ug=(e,t=!0)=>Vi("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=Yr(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[II(s),hE(n,"zoom-big-fast")]},AI,{resetStyle:!1,injectStyle:t})(e),NI=fo.map(e=>`${e}-inverse`);function OI(e,t=!0){return t?[].concat(ue(NI),ue(fo)).includes(e):fo.includes(e)}function Xg(e,t){const r=OI(t),n=J({[`${e}-${t}`]:t&&r}),o={},i={},a=vE(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const TI=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=A.useContext(Zt),l=s("tooltip",t),[c,u,d]=Ug(l),f=Xg(l,i),g=f.arrowStyle,h=Object.assign(Object.assign({},a),f.overlayStyle),m=J(u,d,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return c(A.createElement("div",{className:m,style:g},A.createElement("div",{className:`${l}-arrow`}),A.createElement(zg,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var PI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Bs=A.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:g,arrow:h=!0,title:m,overlay:p,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:w=!0,motion:S,getPopupContainer:v,placement:I="top",mouseEnterDelay:O=.1,mouseLeaveDelay:N=.1,overlayStyle:T,rootClassName:P,overlayClassName:M,styles:x,classNames:$}=e,F=PI(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),k=!!h,[,j]=Hn(),{getPopupContainer:z,getPrefixCls:H,direction:V,className:_,style:D,classNames:B,styles:R}=xu("tooltip"),W=kr("Tooltip"),K=A.useRef(null),q=()=>{var _e;(_e=K.current)===null||_e===void 0||_e.forceAlign()};A.useImperativeHandle(t,()=>{var _e,De;return{forceAlign:q,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(_e=K.current)===null||_e===void 0?void 0:_e.nativeElement,popupElement:(De=K.current)===null||De===void 0?void 0:De.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([_e,De])=>{W.deprecated(!(_e in e),_e,De)}),process.env.NODE_ENV!=="production"&&W(!f||typeof f=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&W(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[U,Q]=ys(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),Z=!m&&!p&&m!==0,se=_e=>{var De,Rt;Q(Z?!1:_e),Z||((De=e.onOpenChange)===null||De===void 0||De.call(e,_e),(Rt=e.onVisibleChange)===null||Rt===void 0||Rt.call(e,_e))},pe=A.useMemo(()=>{var _e,De;let Rt=y;return typeof h=="object"&&(Rt=(De=(_e=h.pointAtCenter)!==null&&_e!==void 0?_e:h.arrowPointAtCenter)!==null&&De!==void 0?De:y),b||EI({arrowPointAtCenter:Rt,autoAdjustOverflow:w,arrowWidth:k?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS})},[y,h,b,j]),Y=A.useMemo(()=>m===0?m:p||m||"",[p,m]),Ce=A.createElement(Q5,{space:!0},typeof Y=="function"?Y():Y),ne=H("tooltip",o),Ie=H(),ve=e["data-popover-inject"];let Ye=U;!("open"in e)&&!("visible"in e)&&Z&&(Ye=!1);const it=A.isValidElement(c)&&!$p(c)?c:A.createElement("span",null,c),Le=it.props,St=!Le.className||typeof Le.className=="string"?J(Le.className,i||`${ne}-open`):Le.className,[Fe,Me,bt]=Ug(ne,!ve),Te=Xg(ne,s),Mt=Te.arrowStyle,at=J(M,{[`${ne}-rtl`]:V==="rtl"},Te.className,P,Me,bt,_,B.root,$?.root),ir=J(B.body,$?.body),[Xt,jt]=aS("Tooltip",F.zIndex),fr=A.createElement(vI,Object.assign({},F,{zIndex:Xt,showArrow:k,placement:I,mouseEnterDelay:O,mouseLeaveDelay:N,prefixCls:ne,classNames:{root:at,body:ir},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt),R.root),D),T),x?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},R.body),l),x?.body),Te.overlayStyle)},getTooltipContainer:v||a||z,ref:K,builtinPlacements:pe,overlay:Ce,visible:Ye,onVisibleChange:se,afterVisibleChange:u??d,arrowContent:A.createElement("span",{className:`${ne}-arrow-content`}),motion:{motionName:wS(Ie,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!f}),Ye?zi(it,{className:St}):it);return Fe(A.createElement(ju.Provider,{value:jt},fr))});process.env.NODE_ENV!=="production"&&(Bs.displayName="Tooltip"),Bs._InternalPanelDoNotUseOrYouWillBeFired=TI;var kI=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],FI=E.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,g=e.onChange,h=vt(e,kI),m=E.useRef(null),p=E.useRef(null),b=ys(c,{value:a}),y=ie(b,2),w=y[0],S=y[1];E.useImperativeHandle(t,function(){return{focus:function(N){var T;(T=m.current)===null||T===void 0||T.focus(N)},blur:function(){var N;(N=m.current)===null||N===void 0||N.blur()},input:m.current,nativeElement:p.current}});var v=J(n,o,X(X({},"".concat(n,"-checked"),w),"".concat(n,"-disabled"),s)),I=function(N){s||("checked"in e||S(N.target.checked),g?.({target:G(G({},e),{},{type:d,checked:N.target.checked}),stopPropagation:function(){N.stopPropagation()},preventDefault:function(){N.preventDefault()},nativeEvent:N.nativeEvent}))};return A.createElement("span",{className:v,title:f,style:i,ref:p},A.createElement("input",le({},h,{className:"".concat(n,"-input"),ref:m,onChange:I,disabled:s,checked:!!w,type:d})),A.createElement("span",{className:"".concat(n,"-inner")}))});function $I(e){const t=E.useRef(null),r=()=>{tn.cancel(t.current),t.current=null};return[()=>{r(),t.current=tn(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e?.(i)}]}const MI=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},_o(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},_o(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},_o(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:np(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${st(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
109
205
|
${r}:not(${r}-disabled),
|
|
110
206
|
${t}:not(${t}-disabled)
|
|
111
207
|
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
112
208
|
${r}-checked:not(${r}-disabled),
|
|
113
209
|
${t}-checked:not(${t}-disabled)
|
|
114
|
-
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function $C(e,t){const r=Ou(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return BC(r)}const Ep=B1("Checkbox",(e,{prefixCls:t})=>[$C(t,e)]),Ip=O.createContext(null);var DC=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};const _C=(e,t)=>{var r;const{prefixCls:i,className:n,rootClassName:o,children:a,indeterminate:u=!1,style:s,onMouseEnter:l,onMouseLeave:c,skipGroup:d=!1,disabled:f}=e,g=DC(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:p,checkbox:m}=R.useContext(lr),b=R.useContext(Ip),{isFormItemInput:y}=R.useContext(xp),I=R.useContext(Qo),x=(r=b?.disabled||f)!==null&&r!==void 0?r:I,v=R.useRef(g.value),S=R.useRef(null),E=Ds(t,S);if(process.env.NODE_ENV!=="production"){const U=Ei("Checkbox");process.env.NODE_ENV!=="production"&&U("checked"in g||!!b||!("value"in g),"usage","`value` is not a valid prop, do you mean `checked`?")}R.useEffect(()=>{b?.registerValue(g.value)},[]),R.useEffect(()=>{if(!d)return g.value!==v.current&&(b?.cancelValue(v.current),b?.registerValue(g.value),v.current=g.value),()=>b?.cancelValue(g.value)},[g.value]),R.useEffect(()=>{var U;!((U=S.current)===null||U===void 0)&&U.input&&(S.current.input.indeterminate=u)},[u]);const w=h("checkbox",i),T=qf(w),[k,V,C]=Ep(w,T),N=Object.assign({},g);b&&!d&&(N.onChange=(...U)=>{g.onChange&&g.onChange.apply(g,U),b.toggleOption&&b.toggleOption({label:a,value:g.value})},N.name=b.name,N.checked=b.value.includes(g.value));const F=re(`${w}-wrapper`,{[`${w}-rtl`]:p==="rtl",[`${w}-wrapper-checked`]:N.checked,[`${w}-wrapper-disabled`]:x,[`${w}-wrapper-in-form-item`]:y},m?.className,n,o,C,T,V),P=re({[`${w}-indeterminate`]:u},Hu,V),[j,B]=LC(N.onClick);return k(R.createElement(np,{component:"Checkbox",disabled:x},R.createElement("label",{className:F,style:Object.assign(Object.assign({},m?.style),s),onMouseEnter:l,onMouseLeave:c,onClick:j},R.createElement(jC,Object.assign({},N,{onClick:B,prefixCls:w,className:P,disabled:x,ref:E})),a!=null&&R.createElement("span",{className:`${w}-label`},a))))},al=R.forwardRef(_C);process.env.NODE_ENV!=="production"&&(al.displayName="Checkbox");var GC=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};const HC=R.forwardRef((e,t)=>{const{defaultValue:r,children:i,options:n=[],prefixCls:o,className:a,rootClassName:u,style:s,onChange:l}=e,c=GC(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=R.useContext(lr),[g,h]=R.useState(c.value||r||[]),[p,m]=R.useState([]);R.useEffect(()=>{"value"in c&&h(c.value||[])},[c.value]);const b=R.useMemo(()=>n.map(P=>typeof P=="string"||typeof P=="number"?{label:P,value:P}:P),[n]),y=P=>{m(j=>j.filter(B=>B!==P))},I=P=>{m(j=>[].concat(de(j),[P]))},x=P=>{const j=g.indexOf(P.value),B=de(g);j===-1?B.push(P.value):B.splice(j,1),"value"in c||h(B),l?.(B.filter(U=>p.includes(U)).sort((U,Q)=>{const $=b.findIndex(G=>G.value===U),L=b.findIndex(G=>G.value===Q);return $-L}))},v=d("checkbox",o),S=`${v}-group`,E=qf(v),[w,T,k]=Ep(v,E),V=My(c,["value","disabled"]),C=n.length?b.map(P=>R.createElement(al,{prefixCls:v,key:P.value.toString(),disabled:"disabled"in P?P.disabled:c.disabled,value:P.value,checked:g.includes(P.value),onChange:P.onChange,className:re(`${S}-item`,P.className),style:P.style,title:P.title,id:P.id,required:P.required},P.label)):i,N=R.useMemo(()=>({toggleOption:x,value:g,disabled:c.disabled,name:c.name,registerValue:I,cancelValue:y}),[x,g,c.disabled,c.name,I,y]),F=re(S,{[`${S}-rtl`]:f==="rtl"},a,u,k,E,T);return w(R.createElement("div",Object.assign({className:F,style:s},V,{ref:t}),R.createElement(Ip.Provider,{value:N},C)))}),la=al;la.Group=HC,la.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(la.displayName="Checkbox");const Sp=O.forwardRef(({id:e,label:t,checked:r,isChecked:i,onChange:n,disabled:o=!1,required:a=!1,message:u,messageType:s="default",wrapperClassName:l,checkboxClassName:c,labelClassName:d,size:f="medium",variant:g="default",labelPosition:h="right",checkboxProps:p},m)=>{const b=r!==void 0?r:i||!1,y=()=>{switch(f){case"small":return"w-3 h-3";case"large":return"w-5 h-5";default:return"w-4 h-4"}},I=()=>{if(s==="error")return"text-red-600 border-red-300 focus:ring-red-500 dark:focus:ring-red-600";if(s==="success")return"text-green-600 border-green-300 focus:ring-green-500 dark:focus:ring-green-600";if(s==="info")return"text-blue-600 border-blue-300 focus:ring-blue-500 dark:focus:ring-blue-600";switch(g){case"outline":return"text-primary-600 bg-transparent border-neutral-300 focus:ring-primary-500 dark:focus:ring-primary-600";case"solid":return"text-primary-600 bg-primary-50 border-primary-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-primary-900/20";default:return"text-primary-600 bg-gray-100 border-gray-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-neutral-600 dark:border-gray-600"}},x=()=>s==="error"?"text-red-500 dark:text-red-400":s==="success"?"text-green-500 dark:text-green-400":s==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",v=()=>{switch(f){case"small":return"extra-small";case"large":return"medium";default:return"small"}},S=T=>{n(T.target.checked,T)},E=A.jsx(la,{...p,ref:m,id:e,checked:b,onChange:S,disabled:o,className:re("rounded focus:ring-2 focus:ring-offset-gray-800 transition-colors duration-200",y(),I(),o&&"opacity-50 cursor-not-allowed",c),"aria-required":a,"aria-invalid":u&&s==="error"?"true":"false","aria-describedby":u?`${e}-message`:void 0}),w=t?A.jsx("label",{htmlFor:e,className:re("font-medium cursor-pointer transition-colors duration-200",o?"text-neutral-400 dark:text-neutral-600 cursor-not-allowed":"text-neutral-900 dark:text-neutral-100",h==="right"?"ml-2":"mr-2",d),children:A.jsxs(Ce,{variant:"medium",size:v(),appearance:"body",children:[t,a&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}):null;return A.jsxs("div",{className:re("flex flex-col",l),children:[A.jsx("div",{className:re("flex items-center",h==="left"&&"flex-row-reverse justify-end"),children:h==="left"?A.jsxs(A.Fragment,{children:[E,w]}):A.jsxs(A.Fragment,{children:[E,w]})}),A.jsx(He.AnimatePresence,{children:u&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-message`,role:s==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",x()),appearance:"custom",size:"extra-small",variant:"medium",children:u})})})]})});Sp.displayName="Checkbox";const wp=O.forwardRef(({id:e,label:t,value:r,defaultValue:i="#000000",onChange:n,onColorChange:o,disabled:a=!1,required:u=!1,message:s,messageType:l="default",wrapperClassName:c,inputClassName:d,labelClassName:f,size:g="medium",showValue:h=!1,valueFormat:p="hex",inputProps:m,helpText:b},y)=>{const I=r!==void 0?r:i,x=()=>{switch(g){case"small":return"w-8 h-8";case"large":return"w-16 h-16";default:return"w-12 h-12"}},v=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",S=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",E=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},w=C=>{const N=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(C);if(!N)return C;const F=parseInt(N[1],16),P=parseInt(N[2],16),j=parseInt(N[3],16);return`rgb(${F}, ${P}, ${j})`},T=C=>{const N=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(C);if(!N)return C;const F=parseInt(N[1],16)/255,P=parseInt(N[2],16)/255,j=parseInt(N[3],16)/255,B=Math.max(F,P,j),U=Math.min(F,P,j);let Q=0,$=0;const L=(B+U)/2;if(B!==U){const G=B-U;switch($=L>.5?G/(2-B-U):G/(B+U),B){case F:Q=(P-j)/G+(P<j?6:0);break;case P:Q=(j-F)/G+2;break;case j:Q=(F-P)/G+4;break}Q/=6}return`hsl(${Math.round(Q*360)}, ${Math.round($*100)}%, ${Math.round(L*100)}%)`},k=()=>{switch(p){case"rgb":return w(I);case"hsl":return T(I);default:return I.toUpperCase()}},V=C=>{const N=C.target.value;n(N,C),o?.(N)};return A.jsxs("div",{className:re("flex flex-col w-full",c),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:E(),appearance:"subtitle",children:[t,u&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),b&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:b}),A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"relative",children:A.jsx("input",{...m,ref:y,type:"color",id:e,value:I,onChange:V,disabled:a,required:u,className:re("border rounded-md cursor-pointer transition-all duration-200","focus:outline-none focus:ring-2",x(),S(),a&&"opacity-50 cursor-not-allowed",d),style:{backgroundColor:I},"aria-required":u,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||b?`${e}-description`:void 0})}),h&&A.jsx("div",{className:"flex-1",children:A.jsx(Ce,{variant:"medium",size:"small",appearance:"body",className:"font-mono text-neutral-700 dark:text-neutral-300",children:k()})})]}),A.jsx(He.AnimatePresence,{children:s&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",v()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),b&&!s&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:b})]})});wp.displayName="ColorPicker";function WC(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]}function zC(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var XC=function(){function e(r){var i=this;this._insertTag=function(n){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(n,o),i.tags.push(n)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zC(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=WC(n);try{o.insertRule(i,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var n;return(n=i.parentNode)==null?void 0:n.removeChild(i)}),this.tags=[],this.ctr=0},e}(),vt="-ms-",ca="-moz-",Se="-webkit-",Ap="comm",sl="rule",ul="decl",UC="@import",Tp="@keyframes",YC="@layer",JC=Math.abs,da=String.fromCharCode,ZC=Object.assign;function qC(e,t){return ft(e,0)^45?(((t<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function Op(e){return e.trim()}function QC(e,t){return(e=t.exec(e))?e[0]:e}function we(e,t,r){return e.replace(t,r)}function ll(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function Mi(e,t,r){return e.slice(t,r)}function cr(e){return e.length}function cl(e){return e.length}function fa(e,t){return t.push(e),e}function KC(e,t){return e.map(t).join("")}var pa=1,Gn=1,kp=0,Et=0,at=0,Hn="";function ma(e,t,r,i,n,o,a){return{value:e,root:t,parent:r,type:i,props:n,children:o,line:pa,column:Gn,length:a,return:""}}function Vi(e,t){return ZC(ma("",null,null,"",null,null,0),e,{length:-e.length},t)}function ex(){return at}function tx(){return at=Et>0?ft(Hn,--Et):0,Gn--,at===10&&(Gn=1,pa--),at}function Ft(){return at=Et<kp?ft(Hn,Et++):0,Gn++,at===10&&(Gn=1,pa++),at}function dr(){return ft(Hn,Et)}function ga(){return Et}function ji(e,t){return Mi(Hn,e,t)}function Li(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 Pp(e){return pa=Gn=1,kp=cr(Hn=e),Et=0,[]}function Np(e){return Hn="",e}function ha(e){return Op(ji(Et-1,dl(e===91?e+2:e===40?e+1:e)))}function rx(e){for(;(at=dr())&&at<33;)Ft();return Li(e)>2||Li(at)>3?"":" "}function nx(e,t){for(;--t&&Ft()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return ji(e,ga()+(t<6&&dr()==32&&Ft()==32))}function dl(e){for(;Ft();)switch(at){case e:return Et;case 34:case 39:e!==34&&e!==39&&dl(at);break;case 40:e===41&&dl(e);break;case 92:Ft();break}return Et}function ix(e,t){for(;Ft()&&e+at!==57;)if(e+at===84&&dr()===47)break;return"/*"+ji(t,Et-1)+"*"+da(e===47?e:Ft())}function ox(e){for(;!Li(dr());)Ft();return ji(e,Et)}function ax(e){return Np(va("",null,null,null,[""],e=Pp(e),0,[0],e))}function va(e,t,r,i,n,o,a,u,s){for(var l=0,c=0,d=a,f=0,g=0,h=0,p=1,m=1,b=1,y=0,I="",x=n,v=o,S=i,E=I;m;)switch(h=y,y=Ft()){case 40:if(h!=108&&ft(E,d-1)==58){ll(E+=we(ha(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:E+=ha(y);break;case 9:case 10:case 13:case 32:E+=rx(h);break;case 92:E+=nx(ga()-1,7);continue;case 47:switch(dr()){case 42:case 47:fa(sx(ix(Ft(),ga()),t,r),s);break;default:E+="/"}break;case 123*p:u[l++]=cr(E)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:b==-1&&(E=we(E,/\f/g,"")),g>0&&cr(E)-d&&fa(g>32?Rp(E+";",i,r,d-1):Rp(we(E," ","")+";",i,r,d-2),s);break;case 59:E+=";";default:if(fa(S=Fp(E,t,r,l,c,n,u,I,x=[],v=[],d),o),y===123)if(c===0)va(E,t,S,S,x,o,d,u,v);else switch(f===99&&ft(E,3)===110?100:f){case 100:case 108:case 109:case 115:va(e,S,S,i&&fa(Fp(e,S,S,0,0,n,u,I,n,x=[],d),v),n,v,d,u,i?x:v);break;default:va(E,S,S,S,[""],v,0,u,v)}}l=c=g=0,p=b=1,I=E="",d=a;break;case 58:d=1+cr(E),g=h;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&tx()==125)continue}switch(E+=da(y),y*p){case 38:b=c>0?1:(E+="\f",-1);break;case 44:u[l++]=(cr(E)-1)*b,b=1;break;case 64:dr()===45&&(E+=ha(Ft())),f=dr(),c=d=cr(I=E+=ox(ga())),y++;break;case 45:h===45&&cr(E)==2&&(p=0)}}return o}function Fp(e,t,r,i,n,o,a,u,s,l,c){for(var d=n-1,f=n===0?o:[""],g=cl(f),h=0,p=0,m=0;h<i;++h)for(var b=0,y=Mi(e,d+1,d=JC(p=a[h])),I=e;b<g;++b)(I=Op(p>0?f[b]+" "+y:we(y,/&\f/g,f[b])))&&(s[m++]=I);return ma(e,t,r,n===0?sl:u,s,l,c)}function sx(e,t,r){return ma(e,t,r,Ap,da(ex()),Mi(e,2,-2),0)}function Rp(e,t,r,i){return ma(e,t,r,ul,Mi(e,0,i),Mi(e,i+1,-1),i)}function Wn(e,t){for(var r="",i=cl(e),n=0;n<i;n++)r+=t(e[n],n,e,t)||"";return r}function ux(e,t,r,i){switch(e.type){case YC:if(e.children.length)break;case UC:case ul:return e.return=e.return||e.value;case Ap:return"";case Tp:return e.return=e.value+"{"+Wn(e.children,i)+"}";case sl:e.value=e.props.join(",")}return cr(r=Wn(e.children,i))?e.return=e.value+"{"+r+"}":""}function lx(e){var t=cl(e);return function(r,i,n,o){for(var a="",u=0;u<t;u++)a+=e[u](r,i,n,o)||"";return a}}function cx(e){return function(t){t.root||(t=t.return)&&e(t)}}function Mp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dx=function(t,r,i){for(var n=0,o=0;n=o,o=dr(),n===38&&o===12&&(r[i]=1),!Li(o);)Ft();return ji(t,Et)},fx=function(t,r){var i=-1,n=44;do switch(Li(n)){case 0:n===38&&dr()===12&&(r[i]=1),t[i]+=dx(Et-1,r,i);break;case 2:t[i]+=ha(n);break;case 4:if(n===44){t[++i]=dr()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=da(n)}while(n=Ft());return t},px=function(t,r){return Np(fx(Pp(t),r))},Vp=new WeakMap,mx=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,n=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Vp.get(i))&&!n){Vp.set(t,!0);for(var o=[],a=px(r,o),u=i.props,s=0,l=0;s<a.length;s++)for(var c=0;c<u.length;c++,l++)t.props[l]=o[s]?a[s].replace(/&\f/g,u[c]):u[c]+" "+a[s]}}},gx=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function jp(e,t){switch(qC(e,t)){case 5103:return Se+"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 Se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Se+e+ca+e+vt+e+e;case 6828:case 4268:return Se+e+vt+e+e;case 6165:return Se+e+vt+"flex-"+e+e;case 5187:return Se+e+we(e,/(\w+).+(:[^]+)/,Se+"box-$1$2"+vt+"flex-$1$2")+e;case 5443:return Se+e+vt+"flex-item-"+we(e,/flex-|-self/,"")+e;case 4675:return Se+e+vt+"flex-line-pack"+we(e,/align-content|flex-|-self/,"")+e;case 5548:return Se+e+vt+we(e,"shrink","negative")+e;case 5292:return Se+e+vt+we(e,"basis","preferred-size")+e;case 6060:return Se+"box-"+we(e,"-grow","")+Se+e+vt+we(e,"grow","positive")+e;case 4554:return Se+we(e,/([^-])(transform)/g,"$1"+Se+"$2")+e;case 6187:return we(we(we(e,/(zoom-|grab)/,Se+"$1"),/(image-set)/,Se+"$1"),e,"")+e;case 5495:case 3959:return we(e,/(image-set\([^]*)/,Se+"$1$`$1");case 4968:return we(we(e,/(.+:)(flex-)?(.*)/,Se+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Se+e+e;case 4095:case 3583:case 4068:case 2532:return we(e,/(.+)-inline(.+)/,Se+"$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(cr(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+ca+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ll(e,"stretch")?jp(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,cr(e)-3-(~ll(e,"!important")&&10))){case 107:return we(e,":",":"+Se)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(ft(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+vt+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return Se+e+vt+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+vt+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+vt+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+vt+e+e}return e}var hx=function(t,r,i,n){if(t.length>-1&&!t.return)switch(t.type){case ul:t.return=jp(t.value,t.length);break;case Tp:return Wn([Vi(t,{value:we(t.value,"@","@"+Se)})],n);case sl:if(t.length)return KC(t.props,function(o){switch(QC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([Vi(t,{props:[we(o,/:(read-\w+)/,":"+ca+"$1")]})],n);case"::placeholder":return Wn([Vi(t,{props:[we(o,/:(plac\w+)/,":"+Se+"input-$1")]}),Vi(t,{props:[we(o,/:(plac\w+)/,":"+ca+"$1")]}),Vi(t,{props:[we(o,/:(plac\w+)/,vt+"input-$1")]})],n)}return""})}},vx=[hx],bx=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var n=t.stylisPlugins||vx,o={},a,u=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),b=1;b<m.length;b++)o[m[b]]=!0;u.push(p)});var s,l=[mx,gx];{var c,d=[ux,cx(function(p){c.insert(p)})],f=lx(l.concat(n,d)),g=function(m){return Wn(ax(m),f)};s=function(m,b,y,I){c=y,g(m?m+"{"+b.styles+"}":b.styles),I&&(h.inserted[b.name]=!0)}}var h={key:r,sheet:new XC({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:s};return h.sheet.hydrate(u),h},ba={exports:{}},ke={};/** @license React v16.13.1
|
|
210
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function jI(e,t){const r=Yr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return MI(r)}const Yg=Vi("Checkbox",(e,{prefixCls:t})=>[jI(t,e)]),Jg=E.createContext(null);var RI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const LI=(e,t)=>{var r;const{prefixCls:n,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,g=RI(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:m,checkbox:p}=A.useContext(Zt),b=A.useContext(Jg),{isFormItemInput:y}=A.useContext(_s),w=A.useContext(Lo),S=(r=b?.disabled||f)!==null&&r!==void 0?r:w,v=A.useRef(g.value),I=A.useRef(null),O=Ei(t,I);if(process.env.NODE_ENV!=="production"){const H=kr("Checkbox");process.env.NODE_ENV!=="production"&&H("checked"in g||!!b||!("value"in g),"usage","`value` is not a valid prop, do you mean `checked`?")}A.useEffect(()=>{b?.registerValue(g.value)},[]),A.useEffect(()=>{if(!d)return g.value!==v.current&&(b?.cancelValue(v.current),b?.registerValue(g.value),v.current=g.value),()=>b?.cancelValue(g.value)},[g.value]),A.useEffect(()=>{var H;!((H=I.current)===null||H===void 0)&&H.input&&(I.current.input.indeterminate=s)},[s]);const N=h("checkbox",n),T=Mp(N),[P,M,x]=Yg(N,T),$=Object.assign({},g);b&&!d&&($.onChange=(...H)=>{g.onChange&&g.onChange.apply(g,H),b.toggleOption&&b.toggleOption({label:a,value:g.value})},$.name=b.name,$.checked=b.value.includes(g.value));const F=J(`${N}-wrapper`,{[`${N}-rtl`]:m==="rtl",[`${N}-wrapper-checked`]:$.checked,[`${N}-wrapper-disabled`]:S,[`${N}-wrapper-in-form-item`]:y},p?.className,o,i,x,T,M),k=J({[`${N}-indeterminate`]:s},zu,M),[j,z]=$I($.onClick);return P(A.createElement(Wu,{component:"Checkbox",disabled:S},A.createElement("label",{className:F,style:Object.assign(Object.assign({},p?.style),l),onMouseEnter:c,onMouseLeave:u,onClick:j},A.createElement(FI,Object.assign({},$,{onClick:z,prefixCls:N,className:k,disabled:S,ref:O})),a!=null&&A.createElement("span",{className:`${N}-label`},a))))},gd=A.forwardRef(LI);process.env.NODE_ENV!=="production"&&(gd.displayName="Checkbox");var DI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const _I=A.forwardRef((e,t)=>{const{defaultValue:r,children:n,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=DI(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=A.useContext(Zt),[g,h]=A.useState(u.value||r||[]),[m,p]=A.useState([]);A.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const b=A.useMemo(()=>o.map(k=>typeof k=="string"||typeof k=="number"?{label:k,value:k}:k),[o]),y=k=>{p(j=>j.filter(z=>z!==k))},w=k=>{p(j=>[].concat(ue(j),[k]))},S=k=>{const j=g.indexOf(k.value),z=ue(g);j===-1?z.push(k.value):z.splice(j,1),"value"in u||h(z),c?.(z.filter(H=>m.includes(H)).sort((H,V)=>{const _=b.findIndex(B=>B.value===H),D=b.findIndex(B=>B.value===V);return _-D}))},v=d("checkbox",i),I=`${v}-group`,O=Mp(v),[N,T,P]=Yg(v,O),M=Ts(u,["value","disabled"]),x=o.length?b.map(k=>A.createElement(gd,{prefixCls:v,key:k.value.toString(),disabled:"disabled"in k?k.disabled:u.disabled,value:k.value,checked:g.includes(k.value),onChange:k.onChange,className:J(`${I}-item`,k.className),style:k.style,title:k.title,id:k.id,required:k.required},k.label)):n,$=A.useMemo(()=>({toggleOption:S,value:g,disabled:u.disabled,name:u.name,registerValue:w,cancelValue:y}),[S,g,u.disabled,u.name,w,y]),F=J(I,{[`${I}-rtl`]:f==="rtl"},a,s,P,O,T);return N(A.createElement("div",Object.assign({className:F,style:l},M,{ref:t}),A.createElement(Jg.Provider,{value:$},x)))}),zs=gd;zs.Group=_I,zs.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(zs.displayName="Checkbox");var VI={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"},BI=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:VI}))},Zg=A.forwardRef(BI);process.env.NODE_ENV!=="production"&&(Zg.displayName="EyeOutlined");var zI={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},GI=function(){var t=E.useRef([]),r=E.useRef(null);return E.useEffect(function(){var n=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),t.current};process.env.NODE_ENV;var qg=0,HI=process.env.NODE_ENV!=="test"&&lr();function WI(){var e;return HI?(e=qg,qg+=1):e="TEST_OR_SSR",e}const UI=function(e){var t=A.useState(),r=ie(t,2),n=r[0],o=r[1];return A.useEffect(function(){o("rc_progress_".concat(WI()))},[]),e||n};var Qg=function(t){var r=t.bg,n=t.children;return A.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function Kg(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),o="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(o)})}var eh=A.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=n&&we(n)==="object",g=f?"#FFF":void 0,h=u/2,m=A.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:h,cy:h,stroke:g,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return m;var p="".concat(o,"-conic"),b=d?"".concat(180+d/2,"deg"):"0deg",y=Kg(n,(360-d)/360),w=Kg(n,1),S="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),v="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(w.join(", "),")");return A.createElement(A.Fragment,null,A.createElement("mask",{id:p},m),A.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(p,")")},A.createElement(Qg,{bg:v},A.createElement(Qg,{bg:S}))))});process.env.NODE_ENV!=="production"&&(eh.displayName="PtgCircle");var Qi=100,hd=function(t,r,n,o,i,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=n/100*360*((360-a)/360),g=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-o)/100*r;c==="round"&&o!==100&&(h+=u/2,h>=r&&(h=r-.01));var m=Qi/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(i+f+g,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},XI=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function th(e){var t=e??[];return Array.isArray(t)?t:[t]}var rh=function(t){var r=G(G({},zI),t),n=r.id,o=r.prefixCls,i=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,d=r.trailColor,f=r.strokeLinecap,g=r.style,h=r.className,m=r.strokeColor,p=r.percent,b=vt(r,XI),y=Qi/2,w=UI(n),S="".concat(w,"-gradient"),v=y-a/2,I=Math.PI*2*v,O=c>0?90+c/2:-90,N=I*((360-c)/360),T=we(i)==="object"?i:{count:i,gap:2},P=T.count,M=T.gap,x=th(p),$=th(m),F=$.find(function(D){return D&&we(D)==="object"}),k=F&&we(F)==="object",j=k?"butt":f,z=hd(I,N,0,100,O,c,u,d,j,a),H=GI(),V=function(){var B=0;return x.map(function(R,W){var K=$[W]||$[$.length-1],q=hd(I,N,B,R,O,c,u,K,j,a);return B+=R,A.createElement(eh,{key:W,color:K,ptg:R,radius:v,prefixCls:o,gradientId:S,style:q,strokeLinecap:j,strokeWidth:a,gapDegree:c,ref:function(Q){H[W]=Q},size:Qi})}).reverse()},_=function(){var B=Math.round(P*(x[0]/100)),R=100/P,W=0;return new Array(P).fill(null).map(function(K,q){var U=q<=B-1?$[0]:d,Q=U&&we(U)==="object"?"url(#".concat(S,")"):void 0,Z=hd(I,N,W,R,O,c,u,U,"butt",a,M);return W+=(N-Z.strokeDashoffset+M)*100/N,A.createElement("circle",{key:q,className:"".concat(o,"-circle-path"),r:v,cx:y,cy:y,stroke:Q,strokeWidth:a,opacity:1,style:Z,ref:function(pe){H[q]=pe}})})};return A.createElement("svg",le({className:J("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Qi," ").concat(Qi),style:g,id:n,role:"presentation"},b),!P&&A.createElement("circle",{className:"".concat(o,"-circle-trail"),r:v,cx:y,cy:y,stroke:d,strokeLinecap:j,strokeWidth:s||a,style:z}),P?_():V())};process.env.NODE_ENV!=="production"&&(rh.displayName="Circle");function Xn(e){return!e||e<0?0:e>100?100:e}function Gs({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const YI=({percent:e,success:t,successPercent:r})=>{const n=Xn(Gs({success:t,successPercent:r}));return[n,Xn(Xn(e)-n)]},JI=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||jo.green,t||null]},Hs=(e,t,r)=>{var n,o,i,a;let s=-1,l=-1;if(t==="step"){const c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=r?.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},ZI=3,qI=e=>ZI/e*100,QI=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[f,g]=Hs(u,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(qI(f),6));const m={width:f,height:g,fontSize:f*.15+6},p=A.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),b=YI(e),y=o||s==="dashboard"&&"bottom"||void 0,w=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=JI({success:c,strokeColor:e.strokeColor}),v=J(`${t}-inner`,{[`${t}-circle-gradient`]:w}),I=A.createElement(rh,{steps:d,percent:d?b[1]:b,strokeWidth:h,trailWidth:h,strokeColor:d?S[1]:S,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:p,gapPosition:y}),O=f<=20,N=A.createElement("div",{className:v,style:m},I,!O&&l);return O?A.createElement(Bs,{title:l},N):N},Ws="--progress-line-stroke-color",nh="--progress-percent",oh=e=>{const t=e?"100%":"-100%";return new Qt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},KI=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},_o(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Ws})`]},height:"100%",width:`calc(1 / var(${nh}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${st(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:oh(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:oh(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},e4=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},t4=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},r4=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},n4=Vi("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=Yr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[KI(r),e4(r),t4(r),r4(r)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var o4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const i4=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},a4=(e,t)=>{const{from:r=jo.blue,to:n=jo.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=o4(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=i4(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Ws]:l}}const a=`linear-gradient(${o}, ${r}, ${n})`;return{background:a,[Ws]:a}},s4=e=>{const{prefixCls:t,direction:r,percent:n,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:g}=u,h=a&&typeof a!="string"?a4(a,r):{[Ws]:a,background:a},m=s==="square"||s==="butt"?0:void 0,p=o??[-1,i||(o==="small"?6:8)],[b,y]=Hs(p,"line",{strokeWidth:i});process.env.NODE_ENV!=="production"&&kr("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size");const w={backgroundColor:c||void 0,borderRadius:m},S=Object.assign(Object.assign({width:`${Xn(n)}%`,height:y,borderRadius:m},h),{[nh]:Xn(n)/100}),v=Gs(e),I={width:`${Xn(v)}%`,height:y,borderRadius:m,backgroundColor:d?.strokeColor},O={width:b<0?"100%":b},N=A.createElement("div",{className:`${t}-inner`,style:w},A.createElement("div",{className:J(`${t}-bg`,`${t}-bg-${g}`),style:S},g==="inner"&&l),v!==void 0&&A.createElement("div",{className:`${t}-success-bg`,style:I})),T=g==="outer"&&f==="start",P=g==="outer"&&f==="end";return g==="outer"&&f==="center"?A.createElement("div",{className:`${t}-layout-bottom`},N,l):A.createElement("div",{className:`${t}-outer`,style:O},T&&l,N,P&&l)},l4=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(o/100)),f=t??[t==="small"?2:14,i],[g,h]=Hs(f,"step",{steps:r,strokeWidth:i}),m=g/r,p=Array.from({length:r});for(let b=0;b<r;b++){const y=Array.isArray(a)?a[b]:a;p[b]=A.createElement("div",{key:b,className:J(`${l}-steps-item`,{[`${l}-steps-item-active`]:b<=u-1}),style:{backgroundColor:b<=u-1?y:s,width:m,height:h}})}return A.createElement("div",{className:`${l}-steps-outer`},p,c)};var c4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const u4=["normal","exception","active","success"],ih=A.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:g,percentPosition:h={}}=e,m=c4(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:p="end",type:b="outer"}=h,y=Array.isArray(a)?a[0]:a,w=typeof a=="string"||Array.isArray(a)?a:void 0,S=A.useMemo(()=>{if(y){const V=typeof y=="string"?y:Object.values(y)[0];return new yt(V).isLight()}return!1},[a]),v=A.useMemo(()=>{var V,_;const D=Gs(e);return parseInt(D!==void 0?(V=D??0)===null||V===void 0?void 0:V.toString():(_=s??0)===null||_===void 0?void 0:_.toString(),10)},[s,e.success,e.successPercent]),I=A.useMemo(()=>!u4.includes(d)&&v>=100?"success":d||"normal",[d,v]),{getPrefixCls:O,direction:N,progress:T}=A.useContext(Zt),P=O("progress",r),[M,x,$]=n4(P),F=u==="line",k=F&&!i,j=A.useMemo(()=>{if(!c)return null;const V=Gs(e);let _;const D=f||(R=>`${R}%`),B=F&&S&&b==="inner";return b==="inner"||f||I!=="exception"&&I!=="success"?_=D(Xn(s),Xn(V)):I==="exception"?_=F?A.createElement(Pp,null):A.createElement(kp,null):I==="success"&&(_=F?A.createElement(Tp,null):A.createElement(Bg,null)),A.createElement("span",{className:J(`${P}-text`,{[`${P}-text-bright`]:B,[`${P}-text-${p}`]:k,[`${P}-text-${b}`]:k}),title:typeof _=="string"?_:void 0},_)},[c,s,v,I,u,P,f]);if(process.env.NODE_ENV!=="production"){const V=kr("Progress");V.deprecated(!("successPercent"in e),"successPercent","success.percent"),V.deprecated(!("width"in e),"width","size"),(u==="circle"||u==="dashboard")&&(Array.isArray(l)?process.env.NODE_ENV!=="production"&&V(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof l=="object"&&process.env.NODE_ENV!=="production"&&V(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&V.deprecated(!1,"success.progress","success.percent")}let z;u==="line"?z=i?A.createElement(l4,Object.assign({},e,{strokeColor:w,prefixCls:P,steps:typeof i=="object"?i.count:i}),j):A.createElement(s4,Object.assign({},e,{strokeColor:y,prefixCls:P,direction:N,percentPosition:{align:p,type:b}}),j):(u==="circle"||u==="dashboard")&&(z=A.createElement(QI,Object.assign({},e,{strokeColor:y,prefixCls:P,progressStatus:I}),j));const H=J(P,`${P}-status-${I}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&Hs(l,"circle")[0]<=20,[`${P}-line`]:k,[`${P}-line-align-${p}`]:k,[`${P}-line-position-${b}`]:k,[`${P}-steps`]:i,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:N==="rtl"},T?.className,n,o,x,$);return M(A.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T?.style),g),className:H,role:"progressbar","aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100},Ts(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))});process.env.NODE_ENV!=="production"&&(ih.displayName="Progress");var d4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},f4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:d4}))},ah=A.forwardRef(f4);process.env.NODE_ENV!=="production"&&(ah.displayName="DeleteOutlined");var m4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},p4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:m4}))},sh=A.forwardRef(p4);process.env.NODE_ENV!=="production"&&(sh.displayName="DownloadOutlined");var g4={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},h4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:g4}))},lh=A.forwardRef(h4);process.env.NODE_ENV!=="production"&&(lh.displayName="FileTwoTone");var v4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},b4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:v4}))},ch=A.forwardRef(b4);process.env.NODE_ENV!=="production"&&(ch.displayName="PaperClipOutlined");var y4={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},C4=function(t,r){return A.createElement(mr,le({},t,{ref:r,icon:y4}))},uh=A.forwardRef(C4);process.env.NODE_ENV!=="production"&&(uh.displayName="PictureTwoTone");const vd=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(ht(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function x4(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function dh(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function w4(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){r.append("".concat(o,"[]"),a)});return}r.append(o,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(x4(e,t),dh(t)):e.onSuccess(dh(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(o){n[o]!==null&&t.setRequestHeader(o,n[o])}),t.send(r),{abort:function(){t.abort()}}}var S4=function(){var e=ur(ze().mark(function t(r,n){var o,i,a,s,l,c,u,d;return ze().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:c=function(){return c=ur(ze().mark(function m(p){return ze().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(w){p.file(function(S){n(S)?(p.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=p.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),w(S)):w(null)})}));case 1:case"end":return y.stop()}},m)})),c.apply(this,arguments)},l=function(m){return c.apply(this,arguments)},s=function(){return s=ur(ze().mark(function m(p){var b,y,w,S,v;return ze().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:b=p.createReader(),y=[];case 2:return O.next=5,new Promise(function(N){b.readEntries(N,function(){return N([])})});case 5:if(w=O.sent,S=w.length,S){O.next=9;break}return O.abrupt("break",12);case 9:for(v=0;v<S;v++)y.push(w[v]);O.next=2;break;case 12:return O.abrupt("return",y);case 13:case"end":return O.stop()}},m)})),s.apply(this,arguments)},a=function(m){return s.apply(this,arguments)},o=[],i=[],r.forEach(function(h){return i.push(h.webkitGetAsEntry())}),u=function(){var h=ur(ze().mark(function m(p,b){var y,w;return ze().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(p){v.next=2;break}return v.abrupt("return");case 2:if(p.path=b||"",!p.isFile){v.next=10;break}return v.next=6,l(p);case 6:y=v.sent,y&&o.push(y),v.next=15;break;case 10:if(!p.isDirectory){v.next=15;break}return v.next=13,a(p);case 13:w=v.sent,i.push.apply(i,ue(w));case 15:case"end":return v.stop()}},m)}));return function(p,b){return h.apply(this,arguments)}}(),d=0;case 9:if(!(d<i.length)){g.next=15;break}return g.next=12,u(i[d]);case 12:d++,g.next=9;break;case 15:return g.abrupt("return",o);case 16:case"end":return g.stop()}},t)}));return function(r,n){return e.apply(this,arguments)}}(),E4=+new Date,I4=0;function bd(){return"rc-upload-".concat(E4,"-").concat(++I4)}var A4=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],N4=function(e){Gr(r,e);var t=Hr(r);function r(){var n;Tt(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),X(be(n),"state",{uid:bd()}),X(be(n),"reqs",{}),X(be(n),"fileInput",void 0),X(be(n),"_isMounted",void 0),X(be(n),"onChange",function(s){var l=n.props,c=l.accept,u=l.directory,d=s.target.files,f=ue(d).filter(function(g){return!u||vd(g,c)});n.uploadFiles(f),n.reset()}),X(be(n),"onClick",function(s){var l=n.fileInput;if(l){var c=s.target,u=n.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),X(be(n),"onKeyDown",function(s){s.key==="Enter"&&n.onClick(s)}),X(be(n),"onDataTransferFiles",function(){var s=ur(ze().mark(function l(c,u){var d,f,g,h,m,p,b;return ze().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(d=n.props,f=d.multiple,g=d.accept,h=d.directory,m=ue(c.items||[]),p=ue(c.files||[]),(p.length>0||m.some(function(S){return S.kind==="file"}))&&u?.(),!h){w.next=11;break}return w.next=7,S4(Array.prototype.slice.call(m),function(S){return vd(S,n.props.accept)});case 7:p=w.sent,n.uploadFiles(p),w.next=14;break;case 11:b=ue(p).filter(function(S){return vd(S,g)}),f===!1&&(b=p.slice(0,1)),n.uploadFiles(b);case 14:case"end":return w.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),X(be(n),"onFilePaste",function(){var s=ur(ze().mark(function l(c){var u,d;return ze().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(u=n.props.pastable,u){g.next=3;break}return g.abrupt("return");case 3:if(c.type!=="paste"){g.next=6;break}return d=c.clipboardData,g.abrupt("return",n.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return g.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),X(be(n),"onFileDragOver",function(s){s.preventDefault()}),X(be(n),"onFileDrop",function(){var s=ur(ze().mark(function l(c){var u;return ze().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return u=c.dataTransfer,f.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),X(be(n),"uploadFiles",function(s){var l=ue(s),c=l.map(function(u){return u.uid=bd(),n.processFile(u,l)});Promise.all(c).then(function(u){var d=n.props.onBatchStart;d?.(u.map(function(f){var g=f.origin,h=f.parsedFile;return{file:g,parsedFile:h}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){n.post(f)})})}),X(be(n),"processFile",function(){var s=ur(ze().mark(function l(c,u){var d,f,g,h,m,p,b,y,w;return ze().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(d=n.props.beforeUpload,f=c,!d){v.next=14;break}return v.prev=3,v.next=6,d(c,u);case 6:f=v.sent,v.next=12;break;case 9:v.prev=9,v.t0=v.catch(3),f=!1;case 12:if(f!==!1){v.next=14;break}return v.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(g=n.props.action,typeof g!="function"){v.next=21;break}return v.next=18,g(c);case 18:h=v.sent,v.next=22;break;case 21:h=g;case 22:if(m=n.props.data,typeof m!="function"){v.next=29;break}return v.next=26,m(c);case 26:p=v.sent,v.next=30;break;case 29:p=m;case 30:return b=(we(f)==="object"||typeof f=="string")&&f?f:c,b instanceof File?y=b:y=new File([b],c.name,{type:c.type}),w=y,w.uid=c.uid,v.abrupt("return",{origin:c,data:p,parsedFile:w,action:h});case 35:case"end":return v.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),X(be(n),"saveFileInput",function(s){n.fileInput=s}),n}return Pt(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,g=u.name,h=u.headers,m=u.withCredentials,p=u.method,b=s.uid,y=f||w4,w={action:l,filename:g,data:a,file:c,headers:h,withCredentials:m,method:p||"post",onProgress:function(v){var I=i.props.onProgress;I?.(v,c)},onSuccess:function(v,I){var O=i.props.onSuccess;O?.(v,c,I),delete i.reqs[b]},onError:function(v,I){var O=i.props.onError;O?.(v,I,c),delete i.reqs[b]}};d(s),this.reqs[b]=y(w)}}},{key:"reset",value:function(){this.setState({uid:bd()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,d=o.id,f=o.name,g=o.style,h=o.styles,m=h===void 0?{}:h,p=o.multiple,b=o.accept,y=o.capture,w=o.children,S=o.directory,v=o.openFileDialogOnClick,I=o.onMouseEnter,O=o.onMouseLeave,N=o.hasControlInside,T=vt(o,A4),P=J(X(X(X({},a,!0),"".concat(a,"-disabled"),u),s,s)),M=S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},x=u?{}:{onClick:v?this.onClick:function(){},onKeyDown:v?this.onKeyDown:function(){},onMouseEnter:I,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:N?void 0:"0"};return E.createElement(i,le({},x,{className:P,role:N?void 0:"button",style:g}),E.createElement("input",le({},Kw(T,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(F){return F.stopPropagation()},key:this.state.uid,style:G({display:"none"},m.input),className:c.input,accept:b},M,{multiple:p,onChange:this.onChange},y!=null?{capture:y}:{})),w)}}]),r}(E.Component);function yd(){}var Cd=function(e){Gr(r,e);var t=Hr(r);function r(){var n;Tt(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=t.call.apply(t,[this].concat(i)),X(be(n),"uploader",void 0),X(be(n),"saveUploader",function(s){n.uploader=s}),n}return Pt(r,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return E.createElement(N4,le({},this.props,{ref:this.saveUploader}))}}]),r}(E.Component);X(Cd,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:yd,onError:yd,onSuccess:yd,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const O4=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${st(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${st(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
211
|
+
&:not(${t}-disabled):hover,
|
|
212
|
+
&-hover:not(${t}-disabled)
|
|
213
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${st(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r},
|
|
214
|
+
p${t}-text,
|
|
215
|
+
p${t}-hint
|
|
216
|
+
`]:{color:e.colorTextDisabled}}}}}},T4=e=>{const{componentCls:t,iconCls:r,fontSize:n,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},rp()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},ep),{padding:`0 ${st(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
217
|
+
${l}:focus-visible,
|
|
218
|
+
&.picture ${l}
|
|
219
|
+
`]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},P4=e=>{const{componentCls:t}=e,r=new Qt("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new Qt("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:oE(e)},r,n]},k4=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
|
|
220
|
+
${a}${a}-picture,
|
|
221
|
+
${a}${a}-picture-card,
|
|
222
|
+
${a}${a}-picture-circle
|
|
223
|
+
`]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${st(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},ep),{width:n,height:n,lineHeight:st(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${st(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${Ro[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ro.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},F4=e=>{const{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
|
|
224
|
+
${t}-wrapper${t}-picture-card-wrapper,
|
|
225
|
+
${t}-wrapper${t}-picture-circle-wrapper
|
|
226
|
+
`]:Object.assign(Object.assign({},rp()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${st(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${st(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${st(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
227
|
+
${r}-eye,
|
|
228
|
+
${r}-download,
|
|
229
|
+
${r}-delete
|
|
230
|
+
`]:{zIndex:10,width:n,margin:`0 ${st(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${st(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${st(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},$4=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},M4=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},_o(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},j4=Vi("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:o,calc:i}=e,a=Yr(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[M4(a),O4(a),k4(a),F4(a),T4(a),P4(a),$4(a),KS(a)]},e=>({actionsColor:e.colorIcon}));function Us(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Xs(e,t){const r=ue(t),n=r.findIndex(({uid:o})=>o===e.uid);return n===-1?r.push(e):r[n]=e,r}function xd(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function R4(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(o=>o[r]!==e[r]);return n.length===t.length?null:n}const L4=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},fh=e=>e.indexOf("image/")===0,D4=e=>{if(e.type&&!e.thumbUrl)return fh(e.type);const t=e.thumbUrl||e.url||"",r=L4(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Yn=200;function _4(e){return new Promise(t=>{if(!e.type||!fh(e.type)){t("");return}const r=document.createElement("canvas");r.width=Yn,r.height=Yn,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yn}px; height: ${Yn}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=Yn,l=Yn,c=0,u=0;i>a?(l=a*(Yn/i),u=-(l-s)/2):(s=i*(Yn/a),c=-(s-l)/2),n.drawImage(o,c,u,s,l);const d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const V4=A.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:h,previewIcon:m,removeIcon:p,downloadIcon:b,extra:y,onPreview:w,onDownload:S,onClose:v},I)=>{var O,N;const{status:T}=i,[P,M]=A.useState(T);A.useEffect(()=>{T!=="removed"&&M(T)},[T]);const[x,$]=A.useState(!1);A.useEffect(()=>{const Y=setTimeout(()=>{$(!0)},300);return()=>{clearTimeout(Y)}},[]);const F=l(i);let k=A.createElement("div",{className:`${e}-icon`},F);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!i.thumbUrl&&!i.url){const Y=J(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});k=A.createElement("div",{className:Y},F)}else{const Y=d?.(i)?A.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):F,Ce=J(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});k=A.createElement("a",{className:Ce,onClick:ne=>w(i,ne),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}const j=J(`${e}-list-item`,`${e}-list-item-${P}`),z=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,H=(typeof g=="function"?g(i):g)?c((typeof p=="function"?p(i):p)||A.createElement(ah,null),()=>v(i),e,n.removeFile,!0):null,V=(typeof h=="function"?h(i):h)&&P==="done"?c((typeof b=="function"?b(i):b)||A.createElement(sh,null),()=>S(i),e,n.downloadFile):null,_=o!=="picture-card"&&o!=="picture-circle"&&A.createElement("span",{key:"download-delete",className:J(`${e}-list-item-actions`,{picture:o==="picture"})},V,H),D=typeof y=="function"?y(i):y,B=D&&A.createElement("span",{className:`${e}-list-item-extra`},D),R=J(`${e}-list-item-name`),W=i.url?A.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:R,title:i.name},z,{href:i.url,onClick:Y=>w(i,Y)}),i.name,B):A.createElement("span",{key:"view",className:R,onClick:Y=>w(i,Y),title:i.name},i.name,B),K=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?A.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Y=>w(i,Y),title:n.previewFile},typeof m=="function"?m(i):m||A.createElement(Zg,null)):null,q=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&A.createElement("span",{className:`${e}-list-item-actions`},K,P==="done"&&V,H),{getPrefixCls:U}=A.useContext(Zt),Q=U(),Z=A.createElement("div",{className:j},k,W,_,q,x&&A.createElement(mo,{motionName:`${Q}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:Y})=>{const Ce="percent"in i?A.createElement(ih,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return A.createElement("div",{className:J(`${e}-list-item-progress`,Y)},Ce)})),se=i.response&&typeof i.response=="string"?i.response:((O=i.error)===null||O===void 0?void 0:O.statusText)||((N=i.error)===null||N===void 0?void 0:N.message)||n.uploadError,pe=P==="error"?A.createElement(Bs,{title:se,getPopupContainer:Y=>Y.parentNode},Z):Z;return A.createElement("div",{className:J(`${e}-list-item-container`,t),style:r,ref:I},u?u(pe,i,a,{download:S.bind(null,i),preview:w.bind(null,i),remove:v.bind(null,i)}):pe)}),B4=(e,t)=>{const{listType:r="text",previewFile:n=_4,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=D4,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:m,previewIcon:p,downloadIcon:b,extra:y,progress:w={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:v=!0,itemRender:I,disabled:O}=e,N=mI(),[T,P]=A.useState(!1),M=["picture-card","picture-circle"].includes(r);A.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(R=>{!(R.originFileObj instanceof File||R.originFileObj instanceof Blob)||R.thumbUrl!==void 0||(R.thumbUrl="",n?.(R.originFileObj).then(W=>{R.thumbUrl=W||"",N()}))})},[r,d,n]),A.useEffect(()=>{P(!0)},[]);const x=(R,W)=>{if(o)return W?.preventDefault(),o(R)},$=R=>{typeof i=="function"?i(R):R.url&&window.open(R.url)},F=R=>{a?.(R)},k=R=>{if(l)return l(R,r);const W=R.status==="uploading";if(r.startsWith("picture")){const K=r==="picture"?A.createElement(Is,null):s.uploading,q=c?.(R)?A.createElement(uh,null):A.createElement(lh,null);return W?K:q}return W?A.createElement(Is,null):A.createElement(ch,null)},j=(R,W,K,q,U)=>{const Q={type:"text",size:"small",title:q,onClick:Z=>{var se,pe;W(),A.isValidElement(R)&&((pe=(se=R.props).onClick)===null||pe===void 0||pe.call(se,Z))},className:`${K}-list-item-action`,disabled:U?O:!1};return A.isValidElement(R)?A.createElement(Hi,Object.assign({},Q,{icon:zi(R,Object.assign(Object.assign({},R.props),{onClick:()=>{}}))})):A.createElement(Hi,Object.assign({},Q),A.createElement("span",null,R))};A.useImperativeHandle(t,()=>({handlePreview:x,handleDownload:$}));const{getPrefixCls:z}=A.useContext(Zt),H=z("upload",u),V=z(),_=J(`${H}-list`,`${H}-list-${r}`),D=A.useMemo(()=>Ts(xS(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),B=Object.assign(Object.assign({},M?{}:D),{motionDeadline:2e3,motionName:`${H}-${M?"animate-inline":"animate"}`,keys:ue(d.map(R=>({key:R.uid,file:R}))),motionAppear:T});return A.createElement("div",{className:_},A.createElement(Sw,Object.assign({},B,{component:!1}),({key:R,file:W,className:K,style:q})=>A.createElement(V4,{key:R,locale:s,prefixCls:H,className:K,style:q,file:W,items:d,progress:w,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:h,removeIcon:m,previewIcon:p,downloadIcon:b,extra:y,iconRender:k,actionIconRender:j,itemRender:I,onPreview:x,onDownload:$,onClose:F})),S&&A.createElement(mo,Object.assign({},B,{visible:v,forceRender:!0}),({className:R,style:W})=>zi(S,K=>({className:J(K.className,R),style:Object.assign(Object.assign(Object.assign({},W),{pointerEvents:R?"none":void 0}),K.style)}))))},mh=A.forwardRef(B4);process.env.NODE_ENV!=="production"&&(mh.displayName="UploadList");var z4=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Ki=`__LIST_IGNORE_${Date.now()}__`,G4=(e,t)=>{const r=xu("upload"),{fileList:n,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:g,locale:h,iconRender:m,isImageUrl:p,progress:b,prefixCls:y,className:w,type:S="select",children:v,style:I,itemRender:O,maxCount:N,data:T={},multiple:P=!1,hasControlInside:M=!0,action:x="",accept:$="",supportServerRender:F=!0,rootClassName:k}=e,j=A.useContext(Lo),z=g??j,H=e.customRequest||r.customRequest,[V,_]=ys(o||[],{value:n,postState:he=>he??[]}),[D,B]=A.useState("drop"),R=A.useRef(null),W=A.useRef(null);if(process.env.NODE_ENV!=="production"){const he=kr("Upload");process.env.NODE_ENV!=="production"&&he("fileList"in e||!("value"in e),"usage","`value` is not a valid prop, do you mean `fileList`?"),he.deprecated(!("transformFile"in e),"transformFile","beforeUpload")}A.useMemo(()=>{const he=Date.now();(n||[]).forEach((de,Ae)=>{!de.uid&&!Object.isFrozen(de)&&(de.uid=`__AUTO__${he}_${Ae}__`)})},[n]);const K=(he,de,Ae)=>{let Ne=ue(de),$e=!1;N===1?Ne=Ne.slice(-1):N&&($e=Ne.length>N,Ne=Ne.slice(0,N)),zr.flushSync(()=>{_(Ne)});const pt={file:he,fileList:Ne};Ae&&(pt.event=Ae),(!$e||he.status==="removed"||Ne.some(tr=>tr.uid===he.uid))&&zr.flushSync(()=>{u?.(pt)})},q=(he,de)=>z4(void 0,void 0,void 0,function*(){const{beforeUpload:Ae,transformFile:Ne}=e;let $e=he;if(Ae){const pt=yield Ae(he,de);if(pt===!1)return!1;if(delete he[Ki],pt===Ki)return Object.defineProperty(he,Ki,{value:!0,configurable:!0}),!1;typeof pt=="object"&&pt&&($e=pt)}return Ne&&($e=yield Ne($e)),$e}),U=he=>{const de=he.filter($e=>!$e.file[Ki]);if(!de.length)return;const Ae=de.map($e=>Us($e.file));let Ne=ue(V);Ae.forEach($e=>{Ne=Xs($e,Ne)}),Ae.forEach(($e,pt)=>{let tr=$e;if(de[pt].parsedFile)$e.status="uploading";else{const{originFileObj:ar}=$e;let _t;try{_t=new File([ar],ar.name,{type:ar.type})}catch{_t=new Blob([ar],{type:ar.type}),_t.name=ar.name,_t.lastModifiedDate=new Date,_t.lastModified=new Date().getTime()}_t.uid=$e.uid,tr=_t}K(tr,Ne)})},Q=(he,de,Ae)=>{try{typeof he=="string"&&(he=JSON.parse(he))}catch{}if(!xd(de,V))return;const Ne=Us(de);Ne.status="done",Ne.percent=100,Ne.response=he,Ne.xhr=Ae;const $e=Xs(Ne,V);K(Ne,$e)},Z=(he,de)=>{if(!xd(de,V))return;const Ae=Us(de);Ae.status="uploading",Ae.percent=he.percent;const Ne=Xs(Ae,V);K(Ae,Ne,he)},se=(he,de,Ae)=>{if(!xd(Ae,V))return;const Ne=Us(Ae);Ne.error=he,Ne.response=de,Ne.status="error";const $e=Xs(Ne,V);K(Ne,$e)},pe=he=>{let de;Promise.resolve(typeof i=="function"?i(he):i).then(Ae=>{var Ne;if(Ae===!1)return;const $e=R4(he,V);$e&&(de=Object.assign(Object.assign({},he),{status:"removed"}),V?.forEach(pt=>{const tr=de.uid!==void 0?"uid":"name";pt[tr]===de[tr]&&!Object.isFrozen(pt)&&(pt.status="removed")}),(Ne=R.current)===null||Ne===void 0||Ne.abort(de),K(de,$e))})},Y=he=>{B(he.type),he.type==="drop"&&d?.(he)};A.useImperativeHandle(t,()=>({onBatchStart:U,onSuccess:Q,onProgress:Z,onError:se,fileList:V,upload:R.current,nativeElement:W.current}));const{getPrefixCls:Ce,direction:ne,upload:Ie}=A.useContext(Zt),ve=Ce("upload",y),Ye=Object.assign(Object.assign({onBatchStart:U,onError:se,onProgress:Z,onSuccess:Q},e),{customRequest:H,data:T,multiple:P,action:x,accept:$,supportServerRender:F,prefixCls:ve,disabled:z,beforeUpload:q,onChange:void 0,hasControlInside:M});delete Ye.className,delete Ye.style,(!v||z)&&delete Ye.id;const it=`${ve}-wrapper`,[Le,St,Fe]=j4(ve,it),[Me]=lx("Upload",uo.Upload),{showRemoveIcon:bt,showPreviewIcon:Te,showDownloadIcon:Mt,removeIcon:at,previewIcon:ir,downloadIcon:Xt,extra:jt}=typeof a=="boolean"?{}:a,fr=typeof bt>"u"?!z:bt,_e=(he,de)=>a?A.createElement(mh,{prefixCls:ve,listType:s,items:V,previewFile:f,onPreview:l,onDownload:c,onRemove:pe,showRemoveIcon:fr,showPreviewIcon:Te,showDownloadIcon:Mt,removeIcon:at,previewIcon:ir,downloadIcon:Xt,iconRender:m,extra:jt,locale:Object.assign(Object.assign({},Me),h),isImageUrl:p,progress:b,appendAction:he,appendActionVisible:de,itemRender:O,disabled:z}):he,De=J(it,w,k,St,Fe,Ie?.className,{[`${ve}-rtl`]:ne==="rtl",[`${ve}-picture-card-wrapper`]:s==="picture-card",[`${ve}-picture-circle-wrapper`]:s==="picture-circle"}),Rt=Object.assign(Object.assign({},Ie?.style),I);if(S==="drag"){const he=J(St,ve,`${ve}-drag`,{[`${ve}-drag-uploading`]:V.some(de=>de.status==="uploading"),[`${ve}-drag-hover`]:D==="dragover",[`${ve}-disabled`]:z,[`${ve}-rtl`]:ne==="rtl"});return Le(A.createElement("span",{className:De,ref:W},A.createElement("div",{className:he,style:Rt,onDrop:Y,onDragOver:Y,onDragLeave:Y},A.createElement(Cd,Object.assign({},Ye,{ref:R,className:`${ve}-btn`}),A.createElement("div",{className:`${ve}-drag-container`},v))),_e()))}const Lt=J(ve,`${ve}-select`,{[`${ve}-disabled`]:z,[`${ve}-hidden`]:!v}),Dt=A.createElement("div",{className:Lt,style:Rt},A.createElement(Cd,Object.assign({},Ye,{ref:R})));return Le(s==="picture-card"||s==="picture-circle"?A.createElement("span",{className:De,ref:W},_e(Dt,!!v)):A.createElement("span",{className:De,ref:W},Dt,_e()))},wd=A.forwardRef(G4);process.env.NODE_ENV!=="production"&&(wd.displayName="Upload");var H4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const ph=A.forwardRef((e,t)=>{var{style:r,height:n,hasControlInside:o=!1}=e,i=H4(e,["style","height","hasControlInside"]);return A.createElement(wd,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))});process.env.NODE_ENV!=="production"&&(ph.displayName="Dragger");const Qo=wd;Qo.Dragger=ph,Qo.LIST_IGNORE=Ki;const gh=E.forwardRef(({id:e,label:t,checked:r,isChecked:n,onChange:o,disabled:i=!1,required:a=!1,message:s,messageType:l="default",wrapperClassName:c,checkboxClassName:u,labelClassName:d,size:f="medium",variant:g="default",labelPosition:h="right",checkboxProps:m},p)=>{const b=r!==void 0?r:n||!1,y=()=>{switch(f){case"small":return"w-3 h-3";case"large":return"w-5 h-5";default:return"w-4 h-4"}},w=()=>{if(l==="error")return"text-red-600 border-red-300 focus:ring-red-500 dark:focus:ring-red-600";if(l==="success")return"text-green-600 border-green-300 focus:ring-green-500 dark:focus:ring-green-600";if(l==="info")return"text-blue-600 border-blue-300 focus:ring-blue-500 dark:focus:ring-blue-600";switch(g){case"outline":return"text-primary-600 bg-transparent border-neutral-300 focus:ring-primary-500 dark:focus:ring-primary-600";case"solid":return"text-primary-600 bg-primary-50 border-primary-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-primary-900/20";default:return"text-primary-600 bg-gray-100 border-gray-300 focus:ring-primary-500 dark:focus:ring-primary-600 dark:bg-neutral-600 dark:border-gray-600"}},S=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",v=()=>{switch(f){case"small":return"extra-small";case"large":return"medium";default:return"small"}},I=T=>{o(T.target.checked,T)},O=C.jsx(zs,{...m,ref:p,id:e,checked:b,onChange:I,disabled:i,className:J("rounded focus:ring-2 focus:ring-offset-gray-800 transition-colors duration-200",y(),w(),i&&"opacity-50 cursor-not-allowed",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s?`${e}-message`:void 0}),N=t?C.jsx("label",{htmlFor:e,className:J("font-medium cursor-pointer transition-colors duration-200",i?"text-neutral-400 dark:text-neutral-600 cursor-not-allowed":"text-neutral-900 dark:text-neutral-100",h==="right"?"ml-2":"mr-2",d),children:C.jsxs(ge,{variant:"medium",size:v(),appearance:"body",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}):null;return C.jsxs("div",{className:J("flex flex-col",c),children:[C.jsx("div",{className:J("flex items-center",h==="left"&&"flex-row-reverse justify-end"),children:h==="left"?C.jsxs(C.Fragment,{children:[O,N]}):C.jsxs(C.Fragment,{children:[O,N]})}),C.jsx(Ze.AnimatePresence,{children:s&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-message`,role:l==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",S()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})})]})});gh.displayName="Checkbox";const hh=E.forwardRef(({id:e,label:t,value:r,defaultValue:n="#000000",onChange:o,onColorChange:i,disabled:a=!1,required:s=!1,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,size:g="medium",showValue:h=!1,valueFormat:m="hex",inputProps:p,helpText:b},y)=>{const w=r!==void 0?r:n,S=()=>{switch(g){case"small":return"w-8 h-8";case"large":return"w-16 h-16";default:return"w-12 h-12"}},v=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",I=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",O=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},N=x=>{const $=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);if(!$)return x;const F=parseInt($[1],16),k=parseInt($[2],16),j=parseInt($[3],16);return`rgb(${F}, ${k}, ${j})`},T=x=>{const $=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);if(!$)return x;const F=parseInt($[1],16)/255,k=parseInt($[2],16)/255,j=parseInt($[3],16)/255,z=Math.max(F,k,j),H=Math.min(F,k,j);let V=0,_=0;const D=(z+H)/2;if(z!==H){const B=z-H;switch(_=D>.5?B/(2-z-H):B/(z+H),z){case F:V=(k-j)/B+(k<j?6:0);break;case k:V=(j-F)/B+2;break;case j:V=(F-k)/B+4;break}V/=6}return`hsl(${Math.round(V*360)}, ${Math.round(_*100)}%, ${Math.round(D*100)}%)`},P=()=>{switch(m){case"rgb":return N(w);case"hsl":return T(w);default:return w.toUpperCase()}},M=x=>{const $=x.target.value;o($,x),i?.($)};return C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:O(),appearance:"subtitle",children:[t,s&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),b&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:b}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("div",{className:"relative",children:C.jsx("input",{...p,ref:y,type:"color",id:e,value:w,onChange:M,disabled:a,required:s,className:J("border rounded-md cursor-pointer transition-all duration-200","focus:outline-none focus:ring-2",S(),I(),a&&"opacity-50 cursor-not-allowed",d),style:{backgroundColor:w},"aria-required":s,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||b?`${e}-description`:void 0})}),h&&C.jsx("div",{className:"flex-1",children:C.jsx(ge,{variant:"medium",size:"small",appearance:"body",className:"font-mono text-neutral-700 dark:text-neutral-300",children:P()})})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",v()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),b&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:b})]})});hh.displayName="ColorPicker";function W4(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]}function U4(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var X4=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(U4(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=W4(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),or="-ms-",Ys="-moz-",We="-webkit-",vh="comm",Sd="rule",Ed="decl",Y4="@import",bh="@keyframes",J4="@layer",Z4=Math.abs,Js=String.fromCharCode,q4=Object.assign;function Q4(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function yh(e){return e.trim()}function K4(e,t){return(e=t.exec(e))?e[0]:e}function Ue(e,t,r){return e.replace(t,r)}function Id(e,t){return e.indexOf(t)}function Kt(e,t){return e.charCodeAt(t)|0}function ea(e,t,r){return e.slice(t,r)}function an(e){return e.length}function Ad(e){return e.length}function Zs(e,t){return t.push(e),e}function e3(e,t){return e.map(t).join("")}var qs=1,Ko=1,Ch=0,pr=0,Gt=0,ei="";function Qs(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:qs,column:Ko,length:a,return:""}}function ta(e,t){return q4(Qs("",null,null,"",null,null,0),e,{length:-e.length},t)}function t3(){return Gt}function r3(){return Gt=pr>0?Kt(ei,--pr):0,Ko--,Gt===10&&(Ko=1,qs--),Gt}function wr(){return Gt=pr<Ch?Kt(ei,pr++):0,Ko++,Gt===10&&(Ko=1,qs++),Gt}function sn(){return Kt(ei,pr)}function Ks(){return pr}function ra(e,t){return ea(ei,e,t)}function na(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 xh(e){return qs=Ko=1,Ch=an(ei=e),pr=0,[]}function wh(e){return ei="",e}function el(e){return yh(ra(pr-1,Nd(e===91?e+2:e===40?e+1:e)))}function n3(e){for(;(Gt=sn())&&Gt<33;)wr();return na(e)>2||na(Gt)>3?"":" "}function o3(e,t){for(;--t&&wr()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return ra(e,Ks()+(t<6&&sn()==32&&wr()==32))}function Nd(e){for(;wr();)switch(Gt){case e:return pr;case 34:case 39:e!==34&&e!==39&&Nd(Gt);break;case 40:e===41&&Nd(e);break;case 92:wr();break}return pr}function i3(e,t){for(;wr()&&e+Gt!==57;)if(e+Gt===84&&sn()===47)break;return"/*"+ra(t,pr-1)+"*"+Js(e===47?e:wr())}function a3(e){for(;!na(sn());)wr();return ra(e,pr)}function s3(e){return wh(tl("",null,null,null,[""],e=xh(e),0,[0],e))}function tl(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,h=0,m=1,p=1,b=1,y=0,w="",S=o,v=i,I=n,O=w;p;)switch(h=y,y=wr()){case 40:if(h!=108&&Kt(O,d-1)==58){Id(O+=Ue(el(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:O+=el(y);break;case 9:case 10:case 13:case 32:O+=n3(h);break;case 92:O+=o3(Ks()-1,7);continue;case 47:switch(sn()){case 42:case 47:Zs(l3(i3(wr(),Ks()),t,r),l);break;default:O+="/"}break;case 123*m:s[c++]=an(O)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:p=0;case 59+u:b==-1&&(O=Ue(O,/\f/g,"")),g>0&&an(O)-d&&Zs(g>32?Eh(O+";",n,r,d-1):Eh(Ue(O," ","")+";",n,r,d-2),l);break;case 59:O+=";";default:if(Zs(I=Sh(O,t,r,c,u,o,s,w,S=[],v=[],d),i),y===123)if(u===0)tl(O,t,I,I,S,i,d,s,v);else switch(f===99&&Kt(O,3)===110?100:f){case 100:case 108:case 109:case 115:tl(e,I,I,n&&Zs(Sh(e,I,I,0,0,o,s,w,o,S=[],d),v),o,v,d,s,n?S:v);break;default:tl(O,I,I,I,[""],v,0,s,v)}}c=u=g=0,m=b=1,w=O="",d=a;break;case 58:d=1+an(O),g=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&r3()==125)continue}switch(O+=Js(y),y*m){case 38:b=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(an(O)-1)*b,b=1;break;case 64:sn()===45&&(O+=el(wr())),f=sn(),u=d=an(w=O+=a3(Ks())),y++;break;case 45:h===45&&an(O)==2&&(m=0)}}return i}function Sh(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],g=Ad(f),h=0,m=0,p=0;h<n;++h)for(var b=0,y=ea(e,d+1,d=Z4(m=a[h])),w=e;b<g;++b)(w=yh(m>0?f[b]+" "+y:Ue(y,/&\f/g,f[b])))&&(l[p++]=w);return Qs(e,t,r,o===0?Sd:s,l,c,u)}function l3(e,t,r){return Qs(e,t,r,vh,Js(t3()),ea(e,2,-2),0)}function Eh(e,t,r,n){return Qs(e,t,r,Ed,ea(e,0,n),ea(e,n+1,-1),n)}function ti(e,t){for(var r="",n=Ad(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function c3(e,t,r,n){switch(e.type){case J4:if(e.children.length)break;case Y4:case Ed:return e.return=e.return||e.value;case vh:return"";case bh:return e.return=e.value+"{"+ti(e.children,n)+"}";case Sd:e.value=e.props.join(",")}return an(r=ti(e.children,n))?e.return=e.value+"{"+r+"}":""}function u3(e){var t=Ad(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function d3(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ih(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var f3=function(t,r,n){for(var o=0,i=0;o=i,i=sn(),o===38&&i===12&&(r[n]=1),!na(i);)wr();return ra(t,pr)},m3=function(t,r){var n=-1,o=44;do switch(na(o)){case 0:o===38&&sn()===12&&(r[n]=1),t[n]+=f3(pr-1,r,n);break;case 2:t[n]+=el(o);break;case 4:if(o===44){t[++n]=sn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Js(o)}while(o=wr());return t},p3=function(t,r){return wh(m3(xh(t),r))},Ah=new WeakMap,g3=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ah.get(n))&&!o){Ah.set(t,!0);for(var i=[],a=p3(r,i),s=n.props,l=0,c=0;l<a.length;l++)for(var u=0;u<s.length;u++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[u]):s[u]+" "+a[l]}}},h3=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Nh(e,t){switch(Q4(e,t)){case 5103:return We+"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 We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return We+e+Ys+e+or+e+e;case 6828:case 4268:return We+e+or+e+e;case 6165:return We+e+or+"flex-"+e+e;case 5187:return We+e+Ue(e,/(\w+).+(:[^]+)/,We+"box-$1$2"+or+"flex-$1$2")+e;case 5443:return We+e+or+"flex-item-"+Ue(e,/flex-|-self/,"")+e;case 4675:return We+e+or+"flex-line-pack"+Ue(e,/align-content|flex-|-self/,"")+e;case 5548:return We+e+or+Ue(e,"shrink","negative")+e;case 5292:return We+e+or+Ue(e,"basis","preferred-size")+e;case 6060:return We+"box-"+Ue(e,"-grow","")+We+e+or+Ue(e,"grow","positive")+e;case 4554:return We+Ue(e,/([^-])(transform)/g,"$1"+We+"$2")+e;case 6187:return Ue(Ue(Ue(e,/(zoom-|grab)/,We+"$1"),/(image-set)/,We+"$1"),e,"")+e;case 5495:case 3959:return Ue(e,/(image-set\([^]*)/,We+"$1$`$1");case 4968:return Ue(Ue(e,/(.+:)(flex-)?(.*)/,We+"box-pack:$3"+or+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+We+e+e;case 4095:case 3583:case 4068:case 2532:return Ue(e,/(.+)-inline(.+)/,We+"$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(an(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return Ue(e,/(.+:)(.+)-([^]+)/,"$1"+We+"$2-$3$1"+Ys+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Id(e,"stretch")?Nh(Ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Kt(e,t+1)!==115)break;case 6444:switch(Kt(e,an(e)-3-(~Id(e,"!important")&&10))){case 107:return Ue(e,":",":"+We)+e;case 101:return Ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+We+(Kt(e,14)===45?"inline-":"")+"box$3$1"+We+"$2$3$1"+or+"$2box$3")+e}break;case 5936:switch(Kt(e,t+11)){case 114:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return We+e+or+Ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return We+e+or+e+e}return e}var v3=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Ed:t.return=Nh(t.value,t.length);break;case bh:return ti([ta(t,{value:Ue(t.value,"@","@"+We)})],o);case Sd:if(t.length)return e3(t.props,function(i){switch(K4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ti([ta(t,{props:[Ue(i,/:(read-\w+)/,":"+Ys+"$1")]})],o);case"::placeholder":return ti([ta(t,{props:[Ue(i,/:(plac\w+)/,":"+We+"input-$1")]}),ta(t,{props:[Ue(i,/:(plac\w+)/,":"+Ys+"$1")]}),ta(t,{props:[Ue(i,/:(plac\w+)/,or+"input-$1")]})],o)}return""})}},b3=[v3],y3=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||b3,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),b=1;b<p.length;b++)i[p[b]]=!0;s.push(m)});var l,c=[g3,h3];{var u,d=[c3,d3(function(m){u.insert(m)})],f=u3(c.concat(o,d)),g=function(p){return ti(s3(p),f)};l=function(p,b,y,w){u=y,g(p?p+"{"+b.styles+"}":b.styles),w&&(h.inserted[b.name]=!0)}}var h={key:r,sheet:new X4({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h},rl={exports:{}},Ke={};/** @license React v16.13.1
|
|
115
231
|
* react-is.production.min.js
|
|
116
232
|
*
|
|
117
233
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
118
234
|
*
|
|
119
235
|
* This source code is licensed under the MIT license found in the
|
|
120
236
|
* LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/var
|
|
237
|
+
*/var Oh;function C3(){if(Oh)return Ke;Oh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(v){if(typeof v=="object"&&v!==null){var I=v.$$typeof;switch(I){case t:switch(v=v.type,v){case l:case c:case n:case i:case o:case d:return v;default:switch(v=v&&v.$$typeof,v){case s:case u:case h:case g:case a:return v;default:return I}}case r:return I}}}function S(v){return w(v)===c}return Ke.AsyncMode=l,Ke.ConcurrentMode=c,Ke.ContextConsumer=s,Ke.ContextProvider=a,Ke.Element=t,Ke.ForwardRef=u,Ke.Fragment=n,Ke.Lazy=h,Ke.Memo=g,Ke.Portal=r,Ke.Profiler=i,Ke.StrictMode=o,Ke.Suspense=d,Ke.isAsyncMode=function(v){return S(v)||w(v)===l},Ke.isConcurrentMode=S,Ke.isContextConsumer=function(v){return w(v)===s},Ke.isContextProvider=function(v){return w(v)===a},Ke.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Ke.isForwardRef=function(v){return w(v)===u},Ke.isFragment=function(v){return w(v)===n},Ke.isLazy=function(v){return w(v)===h},Ke.isMemo=function(v){return w(v)===g},Ke.isPortal=function(v){return w(v)===r},Ke.isProfiler=function(v){return w(v)===i},Ke.isStrictMode=function(v){return w(v)===o},Ke.isSuspense=function(v){return w(v)===d},Ke.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===c||v===i||v===o||v===d||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===h||v.$$typeof===g||v.$$typeof===a||v.$$typeof===s||v.$$typeof===u||v.$$typeof===p||v.$$typeof===b||v.$$typeof===y||v.$$typeof===m)},Ke.typeOf=w,Ke}var et={};/** @license React v16.13.1
|
|
122
238
|
* react-is.development.js
|
|
123
239
|
*
|
|
124
240
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
125
241
|
*
|
|
126
242
|
* This source code is licensed under the MIT license found in the
|
|
127
243
|
* LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/var Bp;function Cx(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function I(z){return typeof z=="string"||typeof z=="function"||z===i||z===l||z===o||z===n||z===d||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===h||z.$$typeof===g||z.$$typeof===a||z.$$typeof===u||z.$$typeof===c||z.$$typeof===m||z.$$typeof===b||z.$$typeof===y||z.$$typeof===p)}function x(z){if(typeof z=="object"&&z!==null){var Re=z.$$typeof;switch(Re){case t:var ae=z.type;switch(ae){case s:case l:case i:case o:case n:case d:return ae;default:var Qe=ae&&ae.$$typeof;switch(Qe){case u:case c:case h:case g:case a:return Qe;default:return Re}}case r:return Re}}}var v=s,S=l,E=u,w=a,T=t,k=c,V=i,C=h,N=g,F=r,P=o,j=n,B=d,U=!1;function Q(z){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),$(z)||x(z)===s}function $(z){return x(z)===l}function L(z){return x(z)===u}function G(z){return x(z)===a}function _(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function X(z){return x(z)===c}function K(z){return x(z)===i}function ee(z){return x(z)===h}function D(z){return x(z)===g}function Z(z){return x(z)===r}function ne(z){return x(z)===o}function ce(z){return x(z)===n}function Ee(z){return x(z)===d}Pe.AsyncMode=v,Pe.ConcurrentMode=S,Pe.ContextConsumer=E,Pe.ContextProvider=w,Pe.Element=T,Pe.ForwardRef=k,Pe.Fragment=V,Pe.Lazy=C,Pe.Memo=N,Pe.Portal=F,Pe.Profiler=P,Pe.StrictMode=j,Pe.Suspense=B,Pe.isAsyncMode=Q,Pe.isConcurrentMode=$,Pe.isContextConsumer=L,Pe.isContextProvider=G,Pe.isElement=_,Pe.isForwardRef=X,Pe.isFragment=K,Pe.isLazy=ee,Pe.isMemo=D,Pe.isPortal=Z,Pe.isProfiler=ne,Pe.isStrictMode=ce,Pe.isSuspense=Ee,Pe.isValidElementType=I,Pe.typeOf=x}()),Pe}var $p;function xx(){return $p||($p=1,process.env.NODE_ENV==="production"?ba.exports=yx():ba.exports=Cx()),ba.exports}var fl,Dp;function Ex(){if(Dp)return fl;Dp=1;var e=xx(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=i,o[e.Memo]=n;function a(h){return e.isMemo(h)?n:o[h.$$typeof]||t}var u=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function g(h,p,m){if(typeof p!="string"){if(f){var b=d(p);b&&b!==f&&g(h,b,m)}var y=s(p);l&&(y=y.concat(l(p)));for(var I=a(h),x=a(p),v=0;v<y.length;++v){var S=y[v];if(!r[S]&&!(m&&m[S])&&!(x&&x[S])&&!(I&&I[S])){var E=c(p,S);try{u(h,S,E)}catch{}}}}return h}return fl=g,fl}Ex();var Ix=!0;function _p(e,t,r){var i="";return r.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(i+=n+" ")}),i}var pl=function(t,r,i){var n=t.key+"-"+r.name;(i===!1||Ix===!1)&&t.registered[n]===void 0&&(t.registered[n]=r.styles)},Gp=function(t,r,i){pl(t,r,i);var n=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+n:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Sx(e){for(var t=0,r,i=0,n=e.length;n>=4;++i,n-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wx={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,scale: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},Ax=/[A-Z]|^ms/g,Tx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hp=function(t){return t.charCodeAt(1)===45},Wp=function(t){return t!=null&&typeof t!="boolean"},ml=Mp(function(e){return Hp(e)?e:e.replace(Ax,"-$&").toLowerCase()}),zp=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Tx,function(i,n,o){return fr={name:n,styles:o,next:fr},n})}return wx[t]!==1&&!Hp(t)&&typeof r=="number"&&r!==0?r+"px":r};function Bi(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return fr={name:n.name,styles:n.styles,next:fr},n.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fr={name:a.name,styles:a.styles,next:fr},a=a.next;var u=o.styles+";";return u}return Ox(e,t,r)}case"function":{if(e!==void 0){var s=fr,l=r(e);return fr=s,Bi(e,t,l)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function Ox(e,t,r){var i="";if(Array.isArray(r))for(var n=0;n<r.length;n++)i+=Bi(e,t,r[n])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var u=a;t!=null&&t[u]!==void 0?i+=o+"{"+t[u]+"}":Wp(u)&&(i+=ml(o)+":"+zp(o,u)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Wp(a[s])&&(i+=ml(o)+":"+zp(o,a[s])+";");else{var l=Bi(e,t,a);switch(o){case"animation":case"animationName":{i+=ml(o)+":"+l+";";break}default:i+=o+"{"+l+"}"}}}return i}var Xp=/label:\s*([^\s;{]+)\s*(;|$)/g,fr;function ya(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,n="";fr=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,n+=Bi(r,t,o);else{var a=o;n+=a[0]}for(var u=1;u<e.length;u++)if(n+=Bi(r,t,e[u]),i){var s=o;n+=s[u]}Xp.lastIndex=0;for(var l="",c;(c=Xp.exec(n))!==null;)l+="-"+c[1];var d=Sx(n)+l;return{name:d,styles:n,next:fr}}var kx=function(t){return t()},Px=R.useInsertionEffect?R.useInsertionEffect:!1,Up=Px||kx,Yp=R.createContext(typeof HTMLElement<"u"?bx({key:"css"}):null);Yp.Provider;var Jp=function(t){return O.forwardRef(function(r,i){var n=O.useContext(Yp);return t(r,n,i)})},Zp=R.createContext({}),gl={}.hasOwnProperty,hl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Nx=function(t,r){var i={};for(var n in r)gl.call(r,n)&&(i[n]=r[n]);return i[hl]=t,i},Fx=function(t){var r=t.cache,i=t.serialized,n=t.isStringTag;return pl(r,i,n),Up(function(){return Gp(r,i,n)}),null},Rx=Jp(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var n=e[hl],o=[i],a="";typeof e.className=="string"?a=_p(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var u=ya(o,void 0,R.useContext(Zp));a+=t.key+"-"+u.name;var s={};for(var l in e)gl.call(e,l)&&l!=="css"&&l!==hl&&(s[l]=e[l]);return s.className=a,r&&(s.ref=r),R.createElement(R.Fragment,null,R.createElement(Fx,{cache:t,serialized:u,isStringTag:typeof n=="string"}),R.createElement(n,s))}),Mx=Rx,le=function(t,r){var i=arguments;if(r==null||!gl.call(r,"css"))return R.createElement.apply(void 0,i);var n=i.length,o=new Array(n);o[0]=Mx,o[1]=Nx(t,r);for(var a=2;a<n;a++)o[a]=i[a];return R.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(le||(le={}));function vl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ya(t)}function Vx(){var e=vl.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function jx(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const Lx=Math.min,Bx=Math.max,Ca=Math.round,xa=Math.floor,Ea=e=>({x:e,y:e});function $x(e){const{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function Ia(){return typeof window<"u"}function qp(e){return Kp(e)?(e.nodeName||"").toLowerCase():"#document"}function xr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qp(e){var t;return(t=(Kp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kp(e){return Ia()?e instanceof Node||e instanceof xr(e).Node:!1}function Dx(e){return Ia()?e instanceof Element||e instanceof xr(e).Element:!1}function bl(e){return Ia()?e instanceof HTMLElement||e instanceof xr(e).HTMLElement:!1}function em(e){return!Ia()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xr(e).ShadowRoot}const _x=new Set(["inline","contents"]);function tm(e){const{overflow:t,overflowX:r,overflowY:i,display:n}=yl(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!_x.has(n)}function Gx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Hx=new Set(["html","body","#document"]);function Wx(e){return Hx.has(qp(e))}function yl(e){return xr(e).getComputedStyle(e)}function zx(e){if(qp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||em(e)&&e.host||Qp(e);return em(t)?t.host:t}function rm(e){const t=zx(e);return Wx(t)?e.ownerDocument?e.ownerDocument.body:e.body:bl(t)&&tm(t)?t:rm(t)}function Sa(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const n=rm(e),o=n===((i=e.ownerDocument)==null?void 0:i.body),a=xr(n);if(o){const u=Cl(a);return t.concat(a,a.visualViewport||[],tm(n)?n:[],u&&r?Sa(u):[])}return t.concat(n,Sa(n,[],r))}function Cl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xx(e){const t=yl(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const n=bl(e),o=n?e.offsetWidth:r,a=n?e.offsetHeight:i,u=Ca(r)!==o||Ca(i)!==a;return u&&(r=o,i=a),{width:r,height:i,$:u}}function xl(e){return Dx(e)?e:e.contextElement}function nm(e){const t=xl(e);if(!bl(t))return Ea(1);const r=t.getBoundingClientRect(),{width:i,height:n,$:o}=Xx(t);let a=(o?Ca(r.width):r.width)/i,u=(o?Ca(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const Ux=Ea(0);function Yx(e){const t=xr(e);return!Gx()||!t.visualViewport?Ux:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jx(e,t,r){return!1}function im(e,t,r,i){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),o=xl(e);let a=Ea(1);t&&(a=nm(e));const u=Jx()?Yx(o):Ea(0);let s=(n.left+u.x)/a.x,l=(n.top+u.y)/a.y,c=n.width/a.x,d=n.height/a.y;if(o){const f=xr(o),g=i;let h=f,p=Cl(h);for(;p&&i&&g!==h;){const m=nm(p),b=p.getBoundingClientRect(),y=yl(p),I=b.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,x=b.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;s*=m.x,l*=m.y,c*=m.x,d*=m.y,s+=I,l+=x,h=xr(p),p=Cl(h)}}return $x({width:c,height:d,x:s,y:l})}function om(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zx(e,t){let r=null,i;const n=Qp(e);function o(){var u;clearTimeout(i),(u=r)==null||u.disconnect(),r=null}function a(u,s){u===void 0&&(u=!1),s===void 0&&(s=1),o();const l=e.getBoundingClientRect(),{left:c,top:d,width:f,height:g}=l;if(u||t(),!f||!g)return;const h=xa(d),p=xa(n.clientWidth-(c+f)),m=xa(n.clientHeight-(d+g)),b=xa(c),I={rootMargin:-h+"px "+-p+"px "+-m+"px "+-b+"px",threshold:Bx(0,Lx(1,s))||1};let x=!0;function v(S){const E=S[0].intersectionRatio;if(E!==s){if(!x)return a();E?a(!1,E):i=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!om(l,e.getBoundingClientRect())&&a(),x=!1}try{r=new IntersectionObserver(v,{...I,root:n.ownerDocument})}catch{r=new IntersectionObserver(v,I)}r.observe(e)}return a(!0),o}function qx(e,t,r,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=i,l=xl(e),c=n||o?[...l?Sa(l):[],...Sa(t)]:[];c.forEach(b=>{n&&b.addEventListener("scroll",r,{passive:!0}),o&&b.addEventListener("resize",r)});const d=l&&u?Zx(l,r):null;let f=-1,g=null;a&&(g=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var I;(I=g)==null||I.observe(t)})),r()}),l&&!s&&g.observe(l),g.observe(t));let h,p=s?im(e):null;s&&m();function m(){const b=im(e);p&&!om(p,b)&&r(),p=b,h=requestAnimationFrame(m)}return r(),()=>{var b;c.forEach(y=>{n&&y.removeEventListener("scroll",r),o&&y.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,s&&cancelAnimationFrame(h)}}var El=O.useLayoutEffect,Qx=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],wa=function(){};function Kx(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function e2(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];var o=[].concat(i);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(Kx(e,a)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var Aa=function(t){return l2(t)?t.filter(Boolean):pe(t)==="object"&&t!==null?[t]:[]},am=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=dt(t,Qx);return W({},r)},Je=function(t,r,i){var n=t.cx,o=t.getStyles,a=t.getClassNames,u=t.className;return{css:o(r,t),className:n(i??{},a(r,t),u)}};function Ta(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function t2(e){return Ta(e)?window.innerHeight:e.clientHeight}function sm(e){return Ta(e)?window.pageYOffset:e.scrollTop}function Oa(e,t){if(Ta(e)){window.scrollTo(0,t);return}e.scrollTop=t}function r2(e){var t=getComputedStyle(e),r=t.position==="absolute",i=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(r&&t.position==="static")&&i.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function n2(e,t,r,i){return r*((e=e/i-1)*e*e+1)+t}function ka(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:wa,n=sm(e),o=t-n,a=10,u=0;function s(){u+=a;var l=n2(u,n,o,r);Oa(e,l),u<r?window.requestAnimationFrame(s):i(e)}s()}function um(e,t){var r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),n=t.offsetHeight/3;i.bottom+n>r.bottom?Oa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):i.top-n<r.top&&Oa(e,Math.max(t.offsetTop-n,0))}function i2(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function lm(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function o2(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var cm=!1,a2={get passive(){return cm=!0}},Pa=typeof window<"u"?window:{};Pa.addEventListener&&Pa.removeEventListener&&(Pa.addEventListener("p",wa,a2),Pa.removeEventListener("p",wa,!1));var s2=cm;function u2(e){return e!=null}function l2(e){return Array.isArray(e)}function $i(e,t,r){return e?t:r}function uk(e){return e}function lk(e){return e}var c2=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];var o=Object.entries(t).filter(function(a){var u=fe(a,1),s=u[0];return!i.includes(s)});return o.reduce(function(a,u){var s=fe(u,2),l=s[0],c=s[1];return a[l]=c,a},{})},d2=["children","innerProps"],f2=["children","innerProps"];function p2(e){var t=e.maxHeight,r=e.menuEl,i=e.minHeight,n=e.placement,o=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=r2(r),l={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return l;var c=s.getBoundingClientRect(),d=c.height,f=r.getBoundingClientRect(),g=f.bottom,h=f.height,p=f.top,m=r.offsetParent.getBoundingClientRect(),b=m.top,y=a?window.innerHeight:t2(s),I=sm(s),x=parseInt(getComputedStyle(r).marginBottom,10),v=parseInt(getComputedStyle(r).marginTop,10),S=b-v,E=y-p,w=S+I,T=d-I-p,k=g-y+I+x,V=I+p-v,C=160;switch(n){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(T>=h&&!a)return o&&ka(s,k,C),{placement:"bottom",maxHeight:t};if(!a&&T>=i||a&&E>=i){o&&ka(s,k,C);var N=a?E-x:T-x;return{placement:"bottom",maxHeight:N}}if(n==="auto"||a){var F=t,P=a?S:w;return P>=i&&(F=Math.min(P-x-u,t)),{placement:"top",maxHeight:F}}if(n==="bottom")return o&&Oa(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(S>=h)return{placement:"top",maxHeight:t};if(w>=h&&!a)return o&&ka(s,V,C),{placement:"top",maxHeight:t};if(!a&&w>=i||a&&S>=i){var j=t;return(!a&&w>=i||a&&S>=i)&&(j=a?S-v:w-v),o&&ka(s,V,C),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return l}function m2(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dm=function(t){return t==="auto"?"bottom":t},g2=function(t,r){var i,n=t.placement,o=t.theme,a=o.borderRadius,u=o.spacing,s=o.colors;return W((i={label:"menu"},H(i,m2(n),"100%"),H(i,"position","absolute"),H(i,"width","100%"),H(i,"zIndex",1),i),r?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},fm=O.createContext(null),h2=function(t){var r=t.children,i=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,u=t.menuShouldScrollIntoView,s=t.theme,l=O.useContext(fm)||{},c=l.setPortalPlacement,d=O.useRef(null),f=O.useState(n),g=fe(f,2),h=g[0],p=g[1],m=O.useState(null),b=fe(m,2),y=b[0],I=b[1],x=s.spacing.controlHeight;return El(function(){var v=d.current;if(v){var S=a==="fixed",E=u&&!S,w=p2({maxHeight:n,menuEl:v,minHeight:i,placement:o,shouldScroll:E,isFixedPosition:S,controlHeight:x});p(w.maxHeight),I(w.placement),c?.(w.placement)}},[n,o,a,u,i,c,x]),r({ref:d,placerProps:W(W({},t),{},{placement:y||dm(o),maxHeight:h})})},v2=function(t){var r=t.children,i=t.innerRef,n=t.innerProps;return le("div",se({},Je(t,"menu",{menu:!0}),{ref:i},n),r)},b2=v2,y2=function(t,r){var i=t.maxHeight,n=t.theme.spacing.baseUnit;return W({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:n,paddingTop:n})},C2=function(t){var r=t.children,i=t.innerProps,n=t.innerRef,o=t.isMulti;return le("div",se({},Je(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},i),r)},pm=function(t,r){var i=t.theme,n=i.spacing.baseUnit,o=i.colors;return W({textAlign:"center"},r?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},x2=pm,E2=pm,I2=function(t){var r=t.children,i=r===void 0?"No options":r,n=t.innerProps,o=dt(t,d2);return le("div",se({},Je(W(W({},o),{},{children:i,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),i)},S2=function(t){var r=t.children,i=r===void 0?"Loading...":r,n=t.innerProps,o=dt(t,f2);return le("div",se({},Je(W(W({},o),{},{children:i,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),i)},w2=function(t){var r=t.rect,i=t.offset,n=t.position;return{left:r.left,position:n,top:i,width:r.width,zIndex:1}},A2=function(t){var r=t.appendTo,i=t.children,n=t.controlElement,o=t.innerProps,a=t.menuPlacement,u=t.menuPosition,s=O.useRef(null),l=O.useRef(null),c=O.useState(dm(a)),d=fe(c,2),f=d[0],g=d[1],h=O.useMemo(function(){return{setPortalPlacement:g}},[]),p=O.useState(null),m=fe(p,2),b=m[0],y=m[1],I=O.useCallback(function(){if(n){var E=i2(n),w=u==="fixed"?0:window.pageYOffset,T=E[f]+w;(T!==b?.offset||E.left!==b?.rect.left||E.width!==b?.rect.width)&&y({offset:T,rect:E})}},[n,u,f,b?.offset,b?.rect.left,b?.rect.width]);El(function(){I()},[I]);var x=O.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),n&&s.current&&(l.current=qx(n,s.current,I,{elementResize:"ResizeObserver"in window}))},[n,I]);El(function(){x()},[x]);var v=O.useCallback(function(E){s.current=E,x()},[x]);if(!r&&u!=="fixed"||!b)return null;var S=le("div",se({ref:v},Je(W(W({},t),{},{offset:b.offset,position:u,rect:b.rect}),"menuPortal",{"menu-portal":!0}),o),i);return le(fm.Provider,{value:h},r?Sn.createPortal(S,r):S)},T2=function(t){var r=t.isDisabled,i=t.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},O2=function(t){var r=t.children,i=t.innerProps,n=t.isDisabled,o=t.isRtl;return le("div",se({},Je(t,"container",{"--is-disabled":n,"--is-rtl":o}),i),r)},k2=function(t,r){var i=t.theme.spacing,n=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return W({alignItems:"center",display:n&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},P2=function(t){var r=t.children,i=t.innerProps,n=t.isMulti,o=t.hasValue;return le("div",se({},Je(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),i),r)},N2=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},F2=function(t){var r=t.children,i=t.innerProps;return le("div",se({},Je(t,"indicatorsContainer",{indicators:!0}),i),r)},mm,R2=["size"],M2=["innerProps","isRtl","size"];function V2(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var j2=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:V2},gm=function(t){var r=t.size,i=dt(t,R2);return le("svg",se({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:j2},i))},Il=function(t){return le(gm,se({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},hm=function(t){return le(gm,se({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},vm=function(t,r){var i=t.isFocused,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return W({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:i?a.neutral60:a.neutral20,padding:o*2,":hover":{color:i?a.neutral80:a.neutral40}})},L2=vm,B2=function(t){var r=t.children,i=t.innerProps;return le("div",se({},Je(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),r||le(hm,null))},$2=vm,D2=function(t){var r=t.children,i=t.innerProps;return le("div",se({},Je(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),r||le(Il,null))},_2=function(t,r){var i=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return W({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:i?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},G2=function(t){var r=t.innerProps;return le("span",se({},r,Je(t,"indicatorSeparator",{"indicator-separator":!0})))},H2=Vx(mm||(mm=jx([`
|
|
244
|
+
*/var Th;function x3(){return Th||(Th=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(Y){return typeof Y=="string"||typeof Y=="function"||Y===n||Y===c||Y===i||Y===o||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===h||Y.$$typeof===g||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===u||Y.$$typeof===p||Y.$$typeof===b||Y.$$typeof===y||Y.$$typeof===m)}function S(Y){if(typeof Y=="object"&&Y!==null){var Ce=Y.$$typeof;switch(Ce){case t:var ne=Y.type;switch(ne){case l:case c:case n:case i:case o:case d:return ne;default:var Ie=ne&&ne.$$typeof;switch(Ie){case s:case u:case h:case g:case a:return Ie;default:return Ce}}case r:return Ce}}}var v=l,I=c,O=s,N=a,T=t,P=u,M=n,x=h,$=g,F=r,k=i,j=o,z=d,H=!1;function V(Y){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(Y)||S(Y)===l}function _(Y){return S(Y)===c}function D(Y){return S(Y)===s}function B(Y){return S(Y)===a}function R(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function W(Y){return S(Y)===u}function K(Y){return S(Y)===n}function q(Y){return S(Y)===h}function U(Y){return S(Y)===g}function Q(Y){return S(Y)===r}function Z(Y){return S(Y)===i}function se(Y){return S(Y)===o}function pe(Y){return S(Y)===d}et.AsyncMode=v,et.ConcurrentMode=I,et.ContextConsumer=O,et.ContextProvider=N,et.Element=T,et.ForwardRef=P,et.Fragment=M,et.Lazy=x,et.Memo=$,et.Portal=F,et.Profiler=k,et.StrictMode=j,et.Suspense=z,et.isAsyncMode=V,et.isConcurrentMode=_,et.isContextConsumer=D,et.isContextProvider=B,et.isElement=R,et.isForwardRef=W,et.isFragment=K,et.isLazy=q,et.isMemo=U,et.isPortal=Q,et.isProfiler=Z,et.isStrictMode=se,et.isSuspense=pe,et.isValidElementType=w,et.typeOf=S}()),et}var Ph;function w3(){return Ph||(Ph=1,process.env.NODE_ENV==="production"?rl.exports=C3():rl.exports=x3()),rl.exports}var Od,kh;function S3(){if(kh)return Od;kh=1;var e=w3(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(h){return e.isMemo(h)?o:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function g(h,m,p){if(typeof m!="string"){if(f){var b=d(m);b&&b!==f&&g(h,b,p)}var y=l(m);c&&(y=y.concat(c(m)));for(var w=a(h),S=a(m),v=0;v<y.length;++v){var I=y[v];if(!r[I]&&!(p&&p[I])&&!(S&&S[I])&&!(w&&w[I])){var O=u(m,I);try{s(h,I,O)}catch{}}}}return h}return Od=g,Od}S3();var E3=!0;function Fh(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Td=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||E3===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},$h=function(t,r,n){Td(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function I3(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var A3={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,scale: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},N3=/[A-Z]|^ms/g,O3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mh=function(t){return t.charCodeAt(1)===45},jh=function(t){return t!=null&&typeof t!="boolean"},Pd=Ih(function(e){return Mh(e)?e:e.replace(N3,"-$&").toLowerCase()}),Rh=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(O3,function(n,o,i){return ln={name:o,styles:i,next:ln},o})}return A3[t]!==1&&!Mh(t)&&typeof r=="number"&&r!==0?r+"px":r};function oa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ln={name:o.name,styles:o.styles,next:ln},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ln={name:a.name,styles:a.styles,next:ln},a=a.next;var s=i.styles+";";return s}return T3(e,t,r)}case"function":{if(e!==void 0){var l=ln,c=r(e);return ln=l,oa(e,t,c)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function T3(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=oa(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":jh(s)&&(n+=Pd(i)+":"+Rh(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)jh(a[l])&&(n+=Pd(i)+":"+Rh(i,a[l])+";");else{var c=oa(e,t,a);switch(i){case"animation":case"animationName":{n+=Pd(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var Lh=/label:\s*([^\s;{]+)\s*(;|$)/g,ln;function nl(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ln=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=oa(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=oa(r,t,e[s]),n){var l=i;o+=l[s]}Lh.lastIndex=0;for(var c="",u;(u=Lh.exec(o))!==null;)c+="-"+u[1];var d=I3(o)+c;return{name:d,styles:o,next:ln}}var P3=function(t){return t()},k3=A.useInsertionEffect?A.useInsertionEffect:!1,Dh=k3||P3,_h=A.createContext(typeof HTMLElement<"u"?y3({key:"css"}):null);_h.Provider;var Vh=function(t){return E.forwardRef(function(r,n){var o=E.useContext(_h);return t(r,o,n)})},Bh=A.createContext({}),kd={}.hasOwnProperty,Fd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",F3=function(t,r){var n={};for(var o in r)kd.call(r,o)&&(n[o]=r[o]);return n[Fd]=t,n},$3=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Td(r,n,o),Dh(function(){return $h(r,n,o)}),null},M3=Vh(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Fd],i=[n],a="";typeof e.className=="string"?a=Fh(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=nl(i,void 0,A.useContext(Bh));a+=t.key+"-"+s.name;var l={};for(var c in e)kd.call(e,c)&&c!=="css"&&c!==Fd&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),A.createElement(A.Fragment,null,A.createElement($3,{cache:t,serialized:s,isStringTag:typeof o=="string"}),A.createElement(o,l))}),j3=M3,ye=function(t,r){var n=arguments;if(r==null||!kd.call(r,"css"))return A.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=j3,i[1]=F3(t,r);for(var a=2;a<o;a++)i[a]=n[a];return A.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ye||(ye={}));function $d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return nl(t)}function R3(){var e=$d.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function L3(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const D3=Math.min,_3=Math.max,ol=Math.round,il=Math.floor,al=e=>({x:e,y:e});function V3(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function sl(){return typeof window<"u"}function zh(e){return Hh(e)?(e.nodeName||"").toLowerCase():"#document"}function xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gh(e){var t;return(t=(Hh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hh(e){return sl()?e instanceof Node||e instanceof xn(e).Node:!1}function B3(e){return sl()?e instanceof Element||e instanceof xn(e).Element:!1}function Md(e){return sl()?e instanceof HTMLElement||e instanceof xn(e).HTMLElement:!1}function Wh(e){return!sl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof xn(e).ShadowRoot}const z3=new Set(["inline","contents"]);function Uh(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=jd(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!z3.has(o)}function G3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const H3=new Set(["html","body","#document"]);function W3(e){return H3.has(zh(e))}function jd(e){return xn(e).getComputedStyle(e)}function U3(e){if(zh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wh(e)&&e.host||Gh(e);return Wh(t)?t.host:t}function Xh(e){const t=U3(e);return W3(t)?e.ownerDocument?e.ownerDocument.body:e.body:Md(t)&&Uh(t)?t:Xh(t)}function ll(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Xh(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=xn(o);if(i){const s=Rd(a);return t.concat(a,a.visualViewport||[],Uh(o)?o:[],s&&r?ll(s):[])}return t.concat(o,ll(o,[],r))}function Rd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X3(e){const t=jd(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Md(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=ol(r)!==i||ol(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Ld(e){return B3(e)?e:e.contextElement}function Yh(e){const t=Ld(e);if(!Md(t))return al(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=X3(t);let a=(i?ol(r.width):r.width)/n,s=(i?ol(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Y3=al(0);function J3(e){const t=xn(e);return!G3()||!t.visualViewport?Y3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Z3(e,t,r){return!1}function Jh(e,t,r,n){t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=Ld(e);let a=al(1);t&&(a=Yh(e));const s=Z3()?J3(i):al(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=xn(i),g=n;let h=f,m=Rd(h);for(;m&&n&&g!==h;){const p=Yh(m),b=m.getBoundingClientRect(),y=jd(m),w=b.left+(m.clientLeft+parseFloat(y.paddingLeft))*p.x,S=b.top+(m.clientTop+parseFloat(y.paddingTop))*p.y;l*=p.x,c*=p.y,u*=p.x,d*=p.y,l+=w,c+=S,h=xn(m),m=Rd(h)}}return V3({width:u,height:d,x:l,y:c})}function Zh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function q3(e,t){let r=null,n;const o=Gh(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:g}=c;if(s||t(),!f||!g)return;const h=il(d),m=il(o.clientWidth-(u+f)),p=il(o.clientHeight-(d+g)),b=il(u),w={rootMargin:-h+"px "+-m+"px "+-p+"px "+-b+"px",threshold:_3(0,D3(1,l))||1};let S=!0;function v(I){const O=I[0].intersectionRatio;if(O!==l){if(!S)return a();O?a(!1,O):n=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!Zh(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(v,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(v,w)}r.observe(e)}return a(!0),i}function Q3(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Ld(e),u=o||i?[...c?ll(c):[],...ll(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?q3(c,r):null;let f=-1,g=null;a&&(g=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let h,m=l?Jh(e):null;l&&p();function p(){const b=Jh(e);m&&!Zh(m,b)&&r(),m=b,h=requestAnimationFrame(p)}return r(),()=>{var b;u.forEach(y=>{o&&y.removeEventListener("scroll",r),i&&y.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(h)}}var Dd=E.useLayoutEffect,K3=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],cl=function(){};function eA(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function tA(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=[].concat(n);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(eA(e,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var ul=function(t){return uA(t)?t.filter(Boolean):we(t)==="object"&&t!==null?[t]:[]},qh=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=vt(t,K3);return G({},r)},It=function(t,r,n){var o=t.cx,i=t.getStyles,a=t.getClassNames,s=t.className;return{css:i(r,t),className:o(n??{},a(r,t),s)}};function dl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function rA(e){return dl(e)?window.innerHeight:e.clientHeight}function Qh(e){return dl(e)?window.pageYOffset:e.scrollTop}function fl(e,t){if(dl(e)){window.scrollTo(0,t);return}e.scrollTop=t}function nA(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function oA(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function ml(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cl,o=Qh(e),i=t-o,a=10,s=0;function l(){s+=a;var c=oA(s,o,i,r);fl(e,c),s<r?window.requestAnimationFrame(l):n(e)}l()}function Kh(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),o=t.offsetHeight/3;n.bottom+o>r.bottom?fl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-o<r.top&&fl(e,Math.max(t.offsetTop-o,0))}function iA(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function ev(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function aA(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var tv=!1,sA={get passive(){return tv=!0}},pl=typeof window<"u"?window:{};pl.addEventListener&&pl.removeEventListener&&(pl.addEventListener("p",cl,sA),pl.removeEventListener("p",cl,!1));var lA=tv;function cA(e){return e!=null}function uA(e){return Array.isArray(e)}function ia(e,t,r){return e?t:r}function a8(e){return e}function s8(e){return e}var dA=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=Object.entries(t).filter(function(a){var s=ie(a,1),l=s[0];return!n.includes(l)});return i.reduce(function(a,s){var l=ie(s,2),c=l[0],u=l[1];return a[c]=u,a},{})},fA=["children","innerProps"],mA=["children","innerProps"];function pA(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=nA(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,f=r.getBoundingClientRect(),g=f.bottom,h=f.height,m=f.top,p=r.offsetParent.getBoundingClientRect(),b=p.top,y=a?window.innerHeight:rA(l),w=Qh(l),S=parseInt(getComputedStyle(r).marginBottom,10),v=parseInt(getComputedStyle(r).marginTop,10),I=b-v,O=y-m,N=I+w,T=d-w-m,P=g-y+w+S,M=w+m-v,x=160;switch(o){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(T>=h&&!a)return i&&ml(l,P,x),{placement:"bottom",maxHeight:t};if(!a&&T>=n||a&&O>=n){i&&ml(l,P,x);var $=a?O-S:T-S;return{placement:"bottom",maxHeight:$}}if(o==="auto"||a){var F=t,k=a?I:N;return k>=n&&(F=Math.min(k-S-s,t)),{placement:"top",maxHeight:F}}if(o==="bottom")return i&&fl(l,P),{placement:"bottom",maxHeight:t};break;case"top":if(I>=h)return{placement:"top",maxHeight:t};if(N>=h&&!a)return i&&ml(l,M,x),{placement:"top",maxHeight:t};if(!a&&N>=n||a&&I>=n){var j=t;return(!a&&N>=n||a&&I>=n)&&(j=a?I-v:N-v),i&&ml(l,M,x),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function gA(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var rv=function(t){return t==="auto"?"bottom":t},hA=function(t,r){var n,o=t.placement,i=t.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return G((n={label:"menu"},X(n,gA(o),"100%"),X(n,"position","absolute"),X(n,"width","100%"),X(n,"zIndex",1),n),r?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},nv=E.createContext(null),vA=function(t){var r=t.children,n=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=E.useContext(nv)||{},u=c.setPortalPlacement,d=E.useRef(null),f=E.useState(o),g=ie(f,2),h=g[0],m=g[1],p=E.useState(null),b=ie(p,2),y=b[0],w=b[1],S=l.spacing.controlHeight;return Dd(function(){var v=d.current;if(v){var I=a==="fixed",O=s&&!I,N=pA({maxHeight:o,menuEl:v,minHeight:n,placement:i,shouldScroll:O,isFixedPosition:I,controlHeight:S});m(N.maxHeight),w(N.placement),u?.(N.placement)}},[o,i,a,s,n,u,S]),r({ref:d,placerProps:G(G({},t),{},{placement:y||rv(i),maxHeight:h})})},bA=function(t){var r=t.children,n=t.innerRef,o=t.innerProps;return ye("div",le({},It(t,"menu",{menu:!0}),{ref:n},o),r)},yA=bA,CA=function(t,r){var n=t.maxHeight,o=t.theme.spacing.baseUnit;return G({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},xA=function(t){var r=t.children,n=t.innerProps,o=t.innerRef,i=t.isMulti;return ye("div",le({},It(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),r)},ov=function(t,r){var n=t.theme,o=n.spacing.baseUnit,i=n.colors;return G({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},wA=ov,SA=ov,EA=function(t){var r=t.children,n=r===void 0?"No options":r,o=t.innerProps,i=vt(t,fA);return ye("div",le({},It(G(G({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},IA=function(t){var r=t.children,n=r===void 0?"Loading...":r,o=t.innerProps,i=vt(t,mA);return ye("div",le({},It(G(G({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},AA=function(t){var r=t.rect,n=t.offset,o=t.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},NA=function(t){var r=t.appendTo,n=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=E.useRef(null),c=E.useRef(null),u=E.useState(rv(a)),d=ie(u,2),f=d[0],g=d[1],h=E.useMemo(function(){return{setPortalPlacement:g}},[]),m=E.useState(null),p=ie(m,2),b=p[0],y=p[1],w=E.useCallback(function(){if(o){var O=iA(o),N=s==="fixed"?0:window.pageYOffset,T=O[f]+N;(T!==b?.offset||O.left!==b?.rect.left||O.width!==b?.rect.width)&&y({offset:T,rect:O})}},[o,s,f,b?.offset,b?.rect.left,b?.rect.width]);Dd(function(){w()},[w]);var S=E.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&l.current&&(c.current=Q3(o,l.current,w,{elementResize:"ResizeObserver"in window}))},[o,w]);Dd(function(){S()},[S]);var v=E.useCallback(function(O){l.current=O,S()},[S]);if(!r&&s!=="fixed"||!b)return null;var I=ye("div",le({ref:v},It(G(G({},t),{},{offset:b.offset,position:s,rect:b.rect}),"menuPortal",{"menu-portal":!0}),i),n);return ye(nv.Provider,{value:h},r?zr.createPortal(I,r):I)},OA=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},TA=function(t){var r=t.children,n=t.innerProps,o=t.isDisabled,i=t.isRtl;return ye("div",le({},It(t,"container",{"--is-disabled":o,"--is-rtl":i}),n),r)},PA=function(t,r){var n=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return G({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},kA=function(t){var r=t.children,n=t.innerProps,o=t.isMulti,i=t.hasValue;return ye("div",le({},It(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),r)},FA=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},$A=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"indicatorsContainer",{indicators:!0}),n),r)},iv,MA=["size"],jA=["innerProps","isRtl","size"];function RA(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var LA=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:RA},av=function(t){var r=t.size,n=vt(t,MA);return ye("svg",le({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:LA},n))},_d=function(t){return ye(av,le({size:20},t),ye("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sv=function(t){return ye(av,le({size:20},t),ye("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},lv=function(t,r){var n=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return G({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},DA=lv,_A=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||ye(sv,null))},VA=lv,BA=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||ye(_d,null))},zA=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return G({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},GA=function(t){var r=t.innerProps;return ye("span",le({},r,It(t,"indicatorSeparator",{"indicator-separator":!0})))},HA=R3(iv||(iv=L3([`
|
|
129
245
|
0%, 80%, 100% { opacity: 0; }
|
|
130
246
|
40% { opacity: 1; }
|
|
131
|
-
`]))),W2=function(t,r){var i=t.isFocused,n=t.size,o=t.theme,a=o.colors,u=o.spacing.baseUnit;return W({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},r?{}:{color:i?a.neutral60:a.neutral20,padding:u*2})},Sl=function(t){var r=t.delay,i=t.offset;return le("span",{css:vl({animation:"".concat(H2," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},z2=function(t){var r=t.innerProps,i=t.isRtl,n=t.size,o=n===void 0?4:n,a=dt(t,M2);return le("div",se({},Je(W(W({},a),{},{innerProps:r,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),le(Sl,{delay:0,offset:i}),le(Sl,{delay:160,offset:!0}),le(Sl,{delay:320,offset:!i}))},X2=function(t,r){var i=t.isDisabled,n=t.isFocused,o=t.theme,a=o.colors,u=o.borderRadius,s=o.spacing;return W({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:i?a.neutral5:a.neutral0,borderColor:i?a.neutral10:n?a.primary:a.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:n?a.primary:a.neutral30}})},U2=function(t){var r=t.children,i=t.isDisabled,n=t.isFocused,o=t.innerRef,a=t.innerProps,u=t.menuIsOpen;return le("div",se({ref:o},Je(t,"control",{control:!0,"control--is-disabled":i,"control--is-focused":n,"control--menu-is-open":u}),a,{"aria-disabled":i||void 0}),r)},Y2=U2,J2=["data"],Z2=function(t,r){var i=t.theme.spacing;return r?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},q2=function(t){var r=t.children,i=t.cx,n=t.getStyles,o=t.getClassNames,a=t.Heading,u=t.headingProps,s=t.innerProps,l=t.label,c=t.theme,d=t.selectProps;return le("div",se({},Je(t,"group",{group:!0}),s),le(a,se({},u,{selectProps:d,theme:c,getStyles:n,getClassNames:o,cx:i}),l),le("div",null,r))},Q2=function(t,r){var i=t.theme,n=i.colors,o=i.spacing;return W({label:"group",cursor:"default",display:"block"},r?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},K2=function(t){var r=am(t);r.data;var i=dt(r,J2);return le("div",se({},Je(t,"groupHeading",{"group-heading":!0}),i))},eE=q2,tE=["innerRef","isDisabled","isHidden","inputClassName"],rE=function(t,r){var i=t.isDisabled,n=t.value,o=t.theme,a=o.spacing,u=o.colors;return W(W({visibility:i?"hidden":"visible",transform:n?"translateZ(0)":""},nE),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},bm={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},nE={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":W({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},bm)},iE=function(t){return W({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},bm)},oE=function(t){var r=t.cx,i=t.value,n=am(t),o=n.innerRef,a=n.isDisabled,u=n.isHidden,s=n.inputClassName,l=dt(n,tE);return le("div",se({},Je(t,"input",{"input-container":!0}),{"data-value":i||""}),le("input",se({className:r({input:!0},s),ref:o,style:iE(u),disabled:a},l)))},aE=oE,sE=function(t,r){var i=t.theme,n=i.spacing,o=i.borderRadius,a=i.colors;return W({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},uE=function(t,r){var i=t.theme,n=i.borderRadius,o=i.colors,a=t.cropWithEllipsis;return W({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},lE=function(t,r){var i=t.theme,n=i.spacing,o=i.borderRadius,a=i.colors,u=t.isFocused;return W({alignItems:"center",display:"flex"},r?{}:{borderRadius:o/2,backgroundColor:u?a.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},ym=function(t){var r=t.children,i=t.innerProps;return le("div",i,r)},cE=ym,dE=ym;function fE(e){var t=e.children,r=e.innerProps;return le("div",se({role:"button"},r),t||le(Il,{size:14}))}var pE=function(t){var r=t.children,i=t.components,n=t.data,o=t.innerProps,a=t.isDisabled,u=t.removeProps,s=t.selectProps,l=i.Container,c=i.Label,d=i.Remove;return le(l,{data:n,innerProps:W(W({},Je(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:s},le(c,{data:n,innerProps:W({},Je(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),le(d,{data:n,innerProps:W(W({},Je(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},u),selectProps:s}))},mE=pE,gE=function(t,r){var i=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.theme,u=a.spacing,s=a.colors;return W({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:o?s.primary:n?s.primary25:"transparent",color:i?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?s.primary:s.primary50}})},hE=function(t){var r=t.children,i=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.innerRef,u=t.innerProps;return le("div",se({},Je(t,"option",{option:!0,"option--is-disabled":i,"option--is-focused":n,"option--is-selected":o}),{ref:a,"aria-disabled":i},u),r)},vE=hE,bE=function(t,r){var i=t.theme,n=i.spacing,o=i.colors;return W({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},yE=function(t){var r=t.children,i=t.innerProps;return le("div",se({},Je(t,"placeholder",{placeholder:!0}),i),r)},CE=yE,xE=function(t,r){var i=t.isDisabled,n=t.theme,o=n.spacing,a=n.colors;return W({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:i?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},EE=function(t){var r=t.children,i=t.isDisabled,n=t.innerProps;return le("div",se({},Je(t,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),n),r)},IE=EE,SE={ClearIndicator:D2,Control:Y2,DropdownIndicator:B2,DownChevron:hm,CrossIcon:Il,Group:eE,GroupHeading:K2,IndicatorsContainer:F2,IndicatorSeparator:G2,Input:aE,LoadingIndicator:z2,Menu:b2,MenuList:C2,MenuPortal:A2,LoadingMessage:S2,NoOptionsMessage:I2,MultiValue:mE,MultiValueContainer:cE,MultiValueLabel:dE,MultiValueRemove:fE,Option:vE,Placeholder:CE,SelectContainer:O2,SingleValue:IE,ValueContainer:P2},wE=function(t){return W(W({},SE),t.components)},Cm=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function AE(e,t){return!!(e===t||Cm(e)&&Cm(t))}function TE(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!AE(e[r],t[r]))return!1;return!0}function OE(e,t){t===void 0&&(t=TE);var r=null;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;var a=e.apply(this,n);return r={lastResult:a,lastArgs:n,lastThis:this},a}return i.clear=function(){r=null},i}function kE(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var PE=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:kE},NE=function(t){return le("span",se({css:PE},t))},xm=NE,FE={guidance:function(t){var r=t.isSearchable,i=t.isMulti,n=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(i?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,i=t.label,n=i===void 0?"":i,o=t.labels,a=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var r=t.context,i=t.focused,n=t.options,o=t.label,a=o===void 0?"":o,u=t.selectValue,s=t.isDisabled,l=t.isSelected,c=t.isAppleDevice,d=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(r==="value"&&u)return"value ".concat(a," focused, ").concat(d(u,i),".");if(r==="menu"&&c){var f=s?" disabled":"",g="".concat(l?" selected":"").concat(f);return"".concat(a).concat(g,", ").concat(d(n,i),".")}return""},onFilter:function(t){var r=t.inputValue,i=t.resultsMessage;return"".concat(i).concat(r?" for search term "+r:"",".")}},RE=function(t){var r=t.ariaSelection,i=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,a=t.isFocused,u=t.selectValue,s=t.selectProps,l=t.id,c=t.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,g=s.inputValue,h=s.isMulti,p=s.isOptionDisabled,m=s.isSearchable,b=s.menuIsOpen,y=s.options,I=s.screenReaderStatus,x=s.tabSelectsValue,v=s.isLoading,S=s["aria-label"],E=s["aria-live"],w=O.useMemo(function(){return W(W({},FE),d||{})},[d]),T=O.useMemo(function(){var P="";if(r&&w.onChange){var j=r.option,B=r.options,U=r.removedValue,Q=r.removedValues,$=r.value,L=function(Z){return Array.isArray(Z)?null:Z},G=U||j||L($),_=G?f(G):"",X=B||Q||void 0,K=X?X.map(f):[],ee=W({isDisabled:G&&p(G,u),label:_,labels:K},r);P=w.onChange(ee)}return P},[r,w,p,u,f]),k=O.useMemo(function(){var P="",j=i||n,B=!!(i&&u&&u.includes(i));if(j&&w.onFocus){var U={focused:j,label:f(j),isDisabled:p(j,u),isSelected:B,options:o,context:j===i?"menu":"value",selectValue:u,isAppleDevice:c};P=w.onFocus(U)}return P},[i,n,f,p,w,o,u,c]),V=O.useMemo(function(){var P="";if(b&&y.length&&!v&&w.onFilter){var j=I({count:o.length});P=w.onFilter({inputValue:g,resultsMessage:j})}return P},[o,g,b,w,y,I,v]),C=r?.action==="initial-input-focus",N=O.useMemo(function(){var P="";if(w.guidance){var j=n?"value":b?"menu":"input";P=w.guidance({"aria-label":S,context:j,isDisabled:i&&p(i,u),isMulti:h,isSearchable:m,tabSelectsValue:x,isInitialFocus:C})}return P},[S,i,n,h,p,m,b,w,u,x,C]),F=le(O.Fragment,null,le("span",{id:"aria-selection"},T),le("span",{id:"aria-focused"},k),le("span",{id:"aria-results"},V),le("span",{id:"aria-guidance"},N));return le(O.Fragment,null,le(xm,{id:l},C&&F),le(xm,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!C&&F))},ME=RE,wl=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],VE=new RegExp("["+wl.map(function(e){return e.letters}).join("")+"]","g"),Em={},Al=0;Al<wl.length;Al++)for(var Tl=wl[Al],Ol=0;Ol<Tl.letters.length;Ol++)Em[Tl.letters[Ol]]=Tl.base;var Im=function(t){return t.replace(VE,function(r){return Em[r]})},jE=OE(Im),Sm=function(t){return t.replace(/^\s+|\s+$/g,"")},LE=function(t){return"".concat(t.label," ").concat(t.value)},BE=function(t){return function(r,i){if(r.data.__isNew__)return!0;var n=W({ignoreCase:!0,ignoreAccents:!0,stringify:LE,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,a=n.ignoreAccents,u=n.stringify,s=n.trim,l=n.matchFrom,c=s?Sm(i):i,d=s?Sm(u(r)):u(r);return o&&(c=c.toLowerCase(),d=d.toLowerCase()),a&&(c=jE(c),d=Im(d)),l==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},$E=["innerRef"];function DE(e){var t=e.innerRef,r=dt(e,$E),i=c2(r,"onExited","in","enter","exit","appear");return le("input",se({ref:t},i,{css:vl({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var _E=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function GE(e){var t=e.isEnabled,r=e.onBottomArrive,i=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,a=O.useRef(!1),u=O.useRef(!1),s=O.useRef(0),l=O.useRef(null),c=O.useCallback(function(m,b){if(l.current!==null){var y=l.current,I=y.scrollTop,x=y.scrollHeight,v=y.clientHeight,S=l.current,E=b>0,w=x-v-I,T=!1;w>b&&a.current&&(i&&i(m),a.current=!1),E&&u.current&&(o&&o(m),u.current=!1),E&&b>w?(r&&!a.current&&r(m),S.scrollTop=x,T=!0,a.current=!0):!E&&-b>I&&(n&&!u.current&&n(m),S.scrollTop=0,T=!0,u.current=!0),T&&_E(m)}},[r,i,n,o]),d=O.useCallback(function(m){c(m,m.deltaY)},[c]),f=O.useCallback(function(m){s.current=m.changedTouches[0].clientY},[]),g=O.useCallback(function(m){var b=s.current-m.changedTouches[0].clientY;c(m,b)},[c]),h=O.useCallback(function(m){if(m){var b=s2?{passive:!1}:!1;m.addEventListener("wheel",d,b),m.addEventListener("touchstart",f,b),m.addEventListener("touchmove",g,b)}},[g,f,d]),p=O.useCallback(function(m){m&&(m.removeEventListener("wheel",d,!1),m.removeEventListener("touchstart",f,!1),m.removeEventListener("touchmove",g,!1))},[g,f,d]);return O.useEffect(function(){if(t){var m=l.current;return h(m),function(){p(m)}}},[t,h,p]),function(m){l.current=m}}var wm=["boxSizing","height","overflow","paddingRight","position"],Am={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Tm(e){e.cancelable&&e.preventDefault()}function Om(e){e.stopPropagation()}function km(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Pm(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nm=!!(typeof window<"u"&&window.document&&window.document.createElement),Di=0,zn={capture:!1,passive:!1};function HE(e){var t=e.isEnabled,r=e.accountForScrollbars,i=r===void 0?!0:r,n=O.useRef({}),o=O.useRef(null),a=O.useCallback(function(s){if(Nm){var l=document.body,c=l&&l.style;if(i&&wm.forEach(function(h){var p=c&&c[h];n.current[h]=p}),i&&Di<1){var d=parseInt(n.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+d||0;Object.keys(Am).forEach(function(h){var p=Am[h];c&&(c[h]=p)}),c&&(c.paddingRight="".concat(g,"px"))}l&&Pm()&&(l.addEventListener("touchmove",Tm,zn),s&&(s.addEventListener("touchstart",km,zn),s.addEventListener("touchmove",Om,zn))),Di+=1}},[i]),u=O.useCallback(function(s){if(Nm){var l=document.body,c=l&&l.style;Di=Math.max(Di-1,0),i&&Di<1&&wm.forEach(function(d){var f=n.current[d];c&&(c[d]=f)}),l&&Pm()&&(l.removeEventListener("touchmove",Tm,zn),s&&(s.removeEventListener("touchstart",km,zn),s.removeEventListener("touchmove",Om,zn)))}},[i]);return O.useEffect(function(){if(t){var s=o.current;return a(s),function(){u(s)}}},[t,a,u]),function(s){o.current=s}}function WE(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var zE=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},XE=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:WE};function UE(e){var t=e.children,r=e.lockEnabled,i=e.captureEnabled,n=i===void 0?!0:i,o=e.onBottomArrive,a=e.onBottomLeave,u=e.onTopArrive,s=e.onTopLeave,l=GE({isEnabled:n,onBottomArrive:o,onBottomLeave:a,onTopArrive:u,onTopLeave:s}),c=HE({isEnabled:r}),d=function(g){l(g),c(g)};return le(O.Fragment,null,r&&le("div",{onClick:zE,css:XE}),t(d))}function YE(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var JE=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:YE},ZE=function(t){var r=t.name,i=t.onFocus;return le("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:JE,value:"",onChange:function(){}})},qE=ZE;function kl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function QE(){return kl(/^iPhone/i)}function Fm(){return kl(/^Mac/i)}function KE(){return kl(/^iPad/i)||Fm()&&navigator.maxTouchPoints>1}function eI(){return QE()||KE()}function tI(){return Fm()||eI()}var rI=function(t){return t.label},Rm=function(t){return t.label},Mm=function(t){return t.value},nI=function(t){return!!t.isDisabled},iI={clearIndicator:$2,container:T2,control:X2,dropdownIndicator:L2,group:Z2,groupHeading:Q2,indicatorsContainer:N2,indicatorSeparator:_2,input:rE,loadingIndicator:W2,loadingMessage:E2,menu:g2,menuList:y2,menuPortal:w2,multiValue:sE,multiValueLabel:uE,multiValueRemove:lE,noOptionsMessage:x2,option:gE,placeholder:bE,singleValue:xE,valueContainer:k2},oI={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},aI=4,Vm=4,sI=38,uI=Vm*2,lI={baseUnit:Vm,controlHeight:sI,menuGutter:uI},Pl={borderRadius:aI,colors:oI,spacing:lI},cI={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:lm(),captureMenuScroll:!lm(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:BE(),formatGroupLabel:rI,getOptionLabel:Rm,getOptionValue:Mm,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:nI,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!o2(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function jm(e,t,r,i){var n=_m(e,t,r),o=Gm(e,t,r),a=Dm(e,t),u=Fa(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:a,value:u,index:i}}function Na(e,t){return e.options.map(function(r,i){if("options"in r){var n=r.options.map(function(a,u){return jm(e,a,t,u)}).filter(function(a){return $m(e,a)});return n.length>0?{type:"group",data:r,options:n,index:i}:void 0}var o=jm(e,r,t,i);return $m(e,o)?o:void 0}).filter(u2)}function Lm(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,de(r.options.map(function(i){return i.data}))):t.push(r.data),t},[])}function Bm(e,t){return e.reduce(function(r,i){return i.type==="group"?r.push.apply(r,de(i.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(i.index,"-").concat(n.index)}}))):r.push({data:i.data,id:"".concat(t,"-").concat(i.index)}),r},[])}function dI(e,t){return Lm(Na(e,t))}function $m(e,t){var r=e.inputValue,i=r===void 0?"":r,n=t.data,o=t.isSelected,a=t.label,u=t.value;return(!Wm(e)||!o)&&Hm(e,{label:a,value:u,data:n},i)}function fI(e,t){var r=e.focusedValue,i=e.selectValue,n=i.indexOf(r);if(n>-1){var o=t.indexOf(r);if(o>-1)return r;if(n<t.length)return t[n]}return null}function pI(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Nl=function(t,r){var i,n=(i=t.find(function(o){return o.data===r}))===null||i===void 0?void 0:i.id;return n||null},Dm=function(t,r){return t.getOptionLabel(r)},Fa=function(t,r){return t.getOptionValue(r)};function _m(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function Gm(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var i=Fa(e,t);return r.some(function(n){return Fa(e,n)===i})}function Hm(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var Wm=function(t){var r=t.hideSelectedOptions,i=t.isMulti;return r===void 0?i:r},mI=1,zm=function(e){nn(r,e);var t=on(r);function r(i){var n;if(bt(this,r),n=t.call(this,i),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(s){n.controlRef=s},n.focusedOptionRef=null,n.getFocusedOptionRef=function(s){n.focusedOptionRef=s},n.menuListRef=null,n.getMenuListRef=function(s){n.menuListRef=s},n.inputRef=null,n.getInputRef=function(s){n.inputRef=s},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(s,l){var c=n.props,d=c.onChange,f=c.name;l.name=f,n.ariaOnChange(s,l),d(s,l)},n.setValue=function(s,l,c){var d=n.props,f=d.closeMenuOnSelect,g=d.isMulti,h=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:h}),f&&(n.setState({inputIsHiddenAfterUpdate:!g}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(s,{action:l,option:c})},n.selectOption=function(s){var l=n.props,c=l.blurInputOnSelect,d=l.isMulti,f=l.name,g=n.state.selectValue,h=d&&n.isOptionSelected(s,g),p=n.isOptionDisabled(s,g);if(h){var m=n.getOptionValue(s);n.setValue(g.filter(function(b){return n.getOptionValue(b)!==m}),"deselect-option",s)}else if(!p)d?n.setValue([].concat(de(g),[s]),"select-option",s):n.setValue(s,"select-option");else{n.ariaOnChange(s,{action:"select-option",option:s,name:f});return}c&&n.blurInput()},n.removeValue=function(s){var l=n.props.isMulti,c=n.state.selectValue,d=n.getOptionValue(s),f=c.filter(function(h){return n.getOptionValue(h)!==d}),g=$i(l,f,f[0]||null);n.onChange(g,{action:"remove-value",removedValue:s}),n.focusInput()},n.clearValue=function(){var s=n.state.selectValue;n.onChange($i(n.props.isMulti,[],null),{action:"clear",removedValues:s})},n.popValue=function(){var s=n.props.isMulti,l=n.state.selectValue,c=l[l.length-1],d=l.slice(0,l.length-1),f=$i(s,d,d[0]||null);c&&n.onChange(f,{action:"pop-value",removedValue:c})},n.getFocusedOptionId=function(s){return Nl(n.state.focusableOptionsWithIds,s)},n.getFocusableOptionsWithIds=function(){return Bm(Na(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return e2.apply(void 0,[n.props.classNamePrefix].concat(l))},n.getOptionLabel=function(s){return Dm(n.props,s)},n.getOptionValue=function(s){return Fa(n.props,s)},n.getStyles=function(s,l){var c=n.props.unstyled,d=iI[s](l,c);d.boxSizing="border-box";var f=n.props.styles[s];return f?f(d,l):d},n.getClassNames=function(s,l){var c,d;return(c=(d=n.props.classNames)[s])===null||c===void 0?void 0:c.call(d,l)},n.getElementId=function(s){return"".concat(n.state.instancePrefix,"-").concat(s)},n.getComponents=function(){return wE(n.props)},n.buildCategorizedOptions=function(){return Na(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Lm(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(s,l){n.setState({ariaSelection:W({value:s},l)})},n.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(s){n.blockOptionHover=!1},n.onControlMouseDown=function(s){if(!s.defaultPrevented){var l=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&n.onMenuClose():l&&n.openMenu("first"):(l&&(n.openAfterFocus=!0),n.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},n.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!n.props.isDisabled){var l=n.props,c=l.isMulti,d=l.menuIsOpen;n.focusInput(),d?(n.setState({inputIsHiddenAfterUpdate:!c}),n.onMenuClose()):n.openMenu("first"),s.preventDefault()}},n.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(n.clearValue(),s.preventDefault(),n.openAfterFocus=!1,s.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(s){typeof n.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Ta(s.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(s)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(s){var l=s.touches,c=l&&l.item(0);c&&(n.initialTouchX=c.clientX,n.initialTouchY=c.clientY,n.userIsDragging=!1)},n.onTouchMove=function(s){var l=s.touches,c=l&&l.item(0);if(c){var d=Math.abs(c.clientX-n.initialTouchX),f=Math.abs(c.clientY-n.initialTouchY),g=5;n.userIsDragging=d>g||f>g}},n.onTouchEnd=function(s){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(s.target)&&n.menuListRef&&!n.menuListRef.contains(s.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(s){n.userIsDragging||n.onControlMouseDown(s)},n.onClearIndicatorTouchEnd=function(s){n.userIsDragging||n.onClearIndicatorMouseDown(s)},n.onDropdownIndicatorTouchEnd=function(s){n.userIsDragging||n.onDropdownIndicatorMouseDown(s)},n.handleInputChange=function(s){var l=n.props.inputValue,c=s.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(c,{action:"input-change",prevInputValue:l}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(s){n.props.onFocus&&n.props.onFocus(s),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(s){var l=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(s),n.onInputChange("",{action:"input-blur",prevInputValue:l}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(s){if(!(n.blockOptionHover||n.state.focusedOption===s)){var l=n.getFocusableOptions(),c=l.indexOf(s);n.setState({focusedOption:s,focusedOptionId:c>-1?n.getFocusedOptionId(s):null})}},n.shouldHideSelectedOptions=function(){return Wm(n.props)},n.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),n.focus()},n.onKeyDown=function(s){var l=n.props,c=l.isMulti,d=l.backspaceRemovesValue,f=l.escapeClearsValue,g=l.inputValue,h=l.isClearable,p=l.isDisabled,m=l.menuIsOpen,b=l.onKeyDown,y=l.tabSelectsValue,I=l.openMenuOnFocus,x=n.state,v=x.focusedOption,S=x.focusedValue,E=x.selectValue;if(!p&&!(typeof b=="function"&&(b(s),s.defaultPrevented))){switch(n.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||g)return;n.focusValue("previous");break;case"ArrowRight":if(!c||g)return;n.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(S)n.removeValue(S);else{if(!d)return;c?n.popValue():h&&n.clearValue()}break;case"Tab":if(n.isComposing||s.shiftKey||!m||!y||!v||I&&n.isOptionSelected(v,E))return;n.selectOption(v);break;case"Enter":if(s.keyCode===229)break;if(m){if(!v||n.isComposing)return;n.selectOption(v);break}return;case"Escape":m?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:g}),n.onMenuClose()):h&&f&&n.clearValue();break;case" ":if(g)return;if(!m){n.openMenu("first");break}if(!v)return;n.selectOption(v);break;case"ArrowUp":m?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":m?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!m)return;n.focusOption("pageup");break;case"PageDown":if(!m)return;n.focusOption("pagedown");break;case"Home":if(!m)return;n.focusOption("first");break;case"End":if(!m)return;n.focusOption("last");break;default:return}s.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++mI),n.state.selectValue=Aa(i.value),i.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),a=n.buildFocusableOptions(),u=a.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=a[u],n.state.focusedOptionId=Nl(o,a[u])}return n}return yt(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&um(this.menuListRef,this.focusedOptionRef),tI()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(n){var o=this.props,a=o.isDisabled,u=o.menuIsOpen,s=this.state.isFocused;(s&&!a&&n.isDisabled||s&&u&&!n.menuIsOpen)&&this.focusInput(),s&&a&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!a&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(um(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,o){this.props.onInputChange(n,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var o=this,a=this.state,u=a.selectValue,s=a.isFocused,l=this.buildFocusableOptions(),c=n==="first"?0:l.length-1;if(!this.props.isMulti){var d=l.indexOf(u[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(n){var o=this.state,a=o.selectValue,u=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=a.indexOf(u);u||(s=-1);var l=a.length-1,c=-1;if(a.length){switch(n){case"previous":s===0?c=0:s===-1?c=l:c=s-1;break;case"next":s>-1&&s<l&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,u=this.getFocusableOptions();if(u.length){var s=0,l=u.indexOf(a);a||(l=-1),n==="up"?s=l>0?l-1:u.length-1:n==="down"?s=(l+1)%u.length:n==="pageup"?(s=l-o,s<0&&(s=0)):n==="pagedown"?(s=l+o,s>u.length-1&&(s=u.length-1)):n==="last"&&(s=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(u[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Pl):W(W({},Pl),this.props.theme):Pl}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,a=this.getStyles,u=this.getClassNames,s=this.getValue,l=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,g=d.isRtl,h=d.options,p=this.hasValue();return{clearValue:n,cx:o,getStyles:a,getClassNames:u,getValue:s,hasValue:p,isMulti:f,isRtl:g,options:h,selectOption:l,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,o=n.isClearable,a=n.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(n,o){return _m(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return Gm(this.props,n,o)}},{key:"filterOption",value:function(n,o){return Hm(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:a,selectValue:u})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,o=n.isDisabled,a=n.isSearchable,u=n.inputId,s=n.inputValue,l=n.tabIndex,c=n.form,d=n.menuIsOpen,f=n.required,g=this.getComponents(),h=g.Input,p=this.state,m=p.inputIsHidden,b=p.ariaSelection,y=this.commonProps,I=u||this.getElementId("input"),x=W(W(W({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?b?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?R.createElement(h,se({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:I,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:s},x)):R.createElement(DE,se({id:I,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:wa,onFocus:this.onInputFocus,disabled:o,tabIndex:l,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,o=this.getComponents(),a=o.MultiValue,u=o.MultiValueContainer,s=o.MultiValueLabel,l=o.MultiValueRemove,c=o.SingleValue,d=o.Placeholder,f=this.commonProps,g=this.props,h=g.controlShouldRenderValue,p=g.isDisabled,m=g.isMulti,b=g.inputValue,y=g.placeholder,I=this.state,x=I.selectValue,v=I.focusedValue,S=I.isFocused;if(!this.hasValue()||!h)return b?null:R.createElement(d,se({},f,{key:"placeholder",isDisabled:p,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),y);if(m)return x.map(function(w,T){var k=w===v,V="".concat(n.getOptionLabel(w),"-").concat(n.getOptionValue(w));return R.createElement(a,se({},f,{components:{Container:u,Label:s,Remove:l},isFocused:k,isDisabled:p,key:V,index:T,removeProps:{onClick:function(){return n.removeValue(w)},onTouchEnd:function(){return n.removeValue(w)},onMouseDown:function(N){N.preventDefault()}},data:w}),n.formatOptionLabel(w,"value"))});if(b)return null;var E=x[0];return R.createElement(c,se({},f,{data:E,isDisabled:p}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.ClearIndicator,a=this.commonProps,u=this.props,s=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||s||!this.hasValue()||l)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(o,se({},a,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.LoadingIndicator,a=this.commonProps,u=this.props,s=u.isDisabled,l=u.isLoading,c=this.state.isFocused;if(!o||!l)return null;var d={"aria-hidden":"true"};return R.createElement(o,se({},a,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,a=n.IndicatorSeparator;if(!o||!a)return null;var u=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return R.createElement(a,se({},u,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator;if(!o)return null;var a=this.commonProps,u=this.props.isDisabled,s=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(o,se({},a,{innerProps:l,isDisabled:u,isFocused:s}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),a=o.Group,u=o.GroupHeading,s=o.Menu,l=o.MenuList,c=o.MenuPortal,d=o.LoadingMessage,f=o.NoOptionsMessage,g=o.Option,h=this.commonProps,p=this.state.focusedOption,m=this.props,b=m.captureMenuScroll,y=m.inputValue,I=m.isLoading,x=m.loadingMessage,v=m.minMenuHeight,S=m.maxMenuHeight,E=m.menuIsOpen,w=m.menuPlacement,T=m.menuPosition,k=m.menuPortalTarget,V=m.menuShouldBlockScroll,C=m.menuShouldScrollIntoView,N=m.noOptionsMessage,F=m.onMenuScrollToTop,P=m.onMenuScrollToBottom;if(!E)return null;var j=function(_,X){var K=_.type,ee=_.data,D=_.isDisabled,Z=_.isSelected,ne=_.label,ce=_.value,Ee=p===ee,z=D?void 0:function(){return n.onOptionHover(ee)},Re=D?void 0:function(){return n.selectOption(ee)},ae="".concat(n.getElementId("option"),"-").concat(X),Qe={id:ae,onClick:Re,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":n.state.isAppleDevice?void 0:Z};return R.createElement(g,se({},h,{innerProps:Qe,data:ee,isDisabled:D,isSelected:Z,key:ae,label:ne,type:K,value:ce,isFocused:Ee,innerRef:Ee?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(_.data,"menu"))},B;if(this.hasOptions())B=this.getCategorizedOptions().map(function(G){if(G.type==="group"){var _=G.data,X=G.options,K=G.index,ee="".concat(n.getElementId("group"),"-").concat(K),D="".concat(ee,"-heading");return R.createElement(a,se({},h,{key:ee,data:_,options:X,Heading:u,headingProps:{id:D,data:G.data},label:n.formatGroupLabel(G.data)}),G.options.map(function(Z){return j(Z,"".concat(K,"-").concat(Z.index))}))}else if(G.type==="option")return j(G,"".concat(G.index))});else if(I){var U=x({inputValue:y});if(U===null)return null;B=R.createElement(d,h,U)}else{var Q=N({inputValue:y});if(Q===null)return null;B=R.createElement(f,h,Q)}var $={minMenuHeight:v,maxMenuHeight:S,menuPlacement:w,menuPosition:T,menuShouldScrollIntoView:C},L=R.createElement(h2,se({},h,$),function(G){var _=G.ref,X=G.placerProps,K=X.placement,ee=X.maxHeight;return R.createElement(s,se({},h,$,{innerRef:_,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:I,placement:K}),R.createElement(UE,{captureEnabled:b,onTopArrive:F,onBottomArrive:P,lockEnabled:V},function(D){return R.createElement(l,se({},h,{innerRef:function(ne){n.getMenuListRef(ne),D(ne)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:n.getElementId("listbox")},isLoading:I,maxHeight:ee,focusedOption:p}),B)}))});return k||T==="fixed"?R.createElement(c,se({},h,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:T}),L):L}},{key:"renderFormField",value:function(){var n=this,o=this.props,a=o.delimiter,u=o.isDisabled,s=o.isMulti,l=o.name,c=o.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!u)return R.createElement(qE,{name:l,onFocus:this.onValueInputFocus});if(!(!l||u))if(s)if(a){var f=d.map(function(p){return n.getOptionValue(p)}).join(a);return R.createElement("input",{name:l,type:"hidden",value:f})}else{var g=d.length>0?d.map(function(p,m){return R.createElement("input",{key:"i-".concat(m),name:l,type:"hidden",value:n.getOptionValue(p)})}):R.createElement("input",{name:l,type:"hidden",value:""});return R.createElement("div",null,g)}else{var h=d[0]?this.getOptionValue(d[0]):"";return R.createElement("input",{name:l,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,o=this.state,a=o.ariaSelection,u=o.focusedOption,s=o.focusedValue,l=o.isFocused,c=o.selectValue,d=this.getFocusableOptions();return R.createElement(ME,se({},n,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:u,focusedValue:s,isFocused:l,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),o=n.Control,a=n.IndicatorsContainer,u=n.SelectContainer,s=n.ValueContainer,l=this.props,c=l.className,d=l.id,f=l.isDisabled,g=l.menuIsOpen,h=this.state.isFocused,p=this.commonProps=this.getCommonProps();return R.createElement(u,se({},p,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:h}),this.renderLiveRegion(),R.createElement(o,se({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:h,menuIsOpen:g}),R.createElement(s,se({},p,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(a,se({},p,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var a=o.prevProps,u=o.clearFocusValueOnUpdate,s=o.inputIsHiddenAfterUpdate,l=o.ariaSelection,c=o.isFocused,d=o.prevWasFocused,f=o.instancePrefix,g=n.options,h=n.value,p=n.menuIsOpen,m=n.inputValue,b=n.isMulti,y=Aa(h),I={};if(a&&(h!==a.value||g!==a.options||p!==a.menuIsOpen||m!==a.inputValue)){var x=p?dI(n,y):[],v=p?Bm(Na(n,y),"".concat(f,"-option")):[],S=u?fI(o,y):null,E=pI(o,x),w=Nl(v,E);I={selectValue:y,focusedOption:E,focusedOptionId:w,focusableOptionsWithIds:v,focusedValue:S,clearFocusValueOnUpdate:!1}}var T=s!=null&&n!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},k=l,V=c&&d;return c&&!V&&(k={value:$i(b,y,y[0]||null),options:y,action:"initial-input-focus"},V=!d),l?.action==="initial-input-focus"&&(k=null),W(W(W({},I),T),{},{prevProps:n,ariaSelection:k,prevWasFocused:V})}}]),r}(O.Component);zm.defaultProps=cI;var gI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function hI(e){var t=e.defaultInputValue,r=t===void 0?"":t,i=e.defaultMenuIsOpen,n=i===void 0?!1:i,o=e.defaultValue,a=o===void 0?null:o,u=e.inputValue,s=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,g=e.value,h=dt(e,gI),p=O.useState(u!==void 0?u:r),m=fe(p,2),b=m[0],y=m[1],I=O.useState(s!==void 0?s:n),x=fe(I,2),v=x[0],S=x[1],E=O.useState(g!==void 0?g:a),w=fe(E,2),T=w[0],k=w[1],V=O.useCallback(function(U,Q){typeof l=="function"&&l(U,Q),k(U)},[l]),C=O.useCallback(function(U,Q){var $;typeof c=="function"&&($=c(U,Q)),y($!==void 0?$:U)},[c]),N=O.useCallback(function(){typeof f=="function"&&f(),S(!0)},[f]),F=O.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),P=u!==void 0?u:b,j=s!==void 0?s:v,B=g!==void 0?g:T;return W(W({},h),{},{inputValue:P,menuIsOpen:j,onChange:V,onInputChange:C,onMenuClose:F,onMenuOpen:N,value:B})}var vI=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Xm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,n=String(t).toLowerCase(),o=String(i.getOptionValue(r)).toLowerCase(),a=String(i.getOptionLabel(r)).toLowerCase();return o===n||a===n},Fl={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,i,n){return!(!t||r.some(function(o){return Xm(t,o,n)})||i.some(function(o){return Xm(t,o,n)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function bI(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,i=e.createOptionPosition,n=i===void 0?"last":i,o=e.formatCreateLabel,a=o===void 0?Fl.formatCreateLabel:o,u=e.isValidNewOption,s=u===void 0?Fl.isValidNewOption:u,l=e.getNewOptionData,c=l===void 0?Fl.getNewOptionData:l,d=e.onCreateOption,f=e.options,g=f===void 0?[]:f,h=e.onChange,p=dt(e,vI),m=p.getOptionValue,b=m===void 0?Mm:m,y=p.getOptionLabel,I=y===void 0?Rm:y,x=p.inputValue,v=p.isLoading,S=p.isMulti,E=p.value,w=p.name,T=O.useMemo(function(){return s(x,Aa(E),g,{getOptionValue:b,getOptionLabel:I})?c(x,a(x)):void 0},[a,c,I,b,x,s,g,E]),k=O.useMemo(function(){return(r||!v)&&T?n==="first"?[T].concat(de(g)):[].concat(de(g),[T]):g},[r,n,v,T,g]),V=O.useCallback(function(C,N){if(N.action!=="select-option")return h(C,N);var F=Array.isArray(C)?C:[C];if(F[F.length-1]===T){if(d)d(x);else{var P=c(x,x),j={action:"create-option",name:w,option:P};h($i(S,[].concat(de(Aa(E)),[P]),P),j)}return}h(C,N)},[c,x,S,w,T,d,h,E]);return W(W({},p),{},{options:k,onChange:V})}var yI=O.forwardRef(function(e,t){var r=hI(e),i=bI(r);return R.createElement(zm,se({ref:t},i))}),CI=yI;const Um=e=>e,xI=(()=>{let e=Um;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Um}}})();function Xr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function cn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Xr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ra={exports:{}},Ma={exports:{}},Ne={};/** @license React v16.13.1
|
|
247
|
+
`]))),WA=function(t,r){var n=t.isFocused,o=t.size,i=t.theme,a=i.colors,s=i.spacing.baseUnit;return G({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?a.neutral60:a.neutral20,padding:s*2})},Vd=function(t){var r=t.delay,n=t.offset;return ye("span",{css:$d({animation:"".concat(HA," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},UA=function(t){var r=t.innerProps,n=t.isRtl,o=t.size,i=o===void 0?4:o,a=vt(t,jA);return ye("div",le({},It(G(G({},a),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),ye(Vd,{delay:0,offset:n}),ye(Vd,{delay:160,offset:!0}),ye(Vd,{delay:320,offset:!n}))},XA=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return G({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},YA=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return ye("div",le({ref:i},It(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":n||void 0}),r)},JA=YA,ZA=["data"],qA=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},QA=function(t){var r=t.children,n=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,d=t.selectProps;return ye("div",le({},It(t,"group",{group:!0}),l),ye(a,le({},s,{selectProps:d,theme:u,getStyles:o,getClassNames:i,cx:n}),c),ye("div",null,r))},KA=function(t,r){var n=t.theme,o=n.colors,i=n.spacing;return G({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},eN=function(t){var r=qh(t);r.data;var n=vt(r,ZA);return ye("div",le({},It(t,"groupHeading",{"group-heading":!0}),n))},tN=QA,rN=["innerRef","isDisabled","isHidden","inputClassName"],nN=function(t,r){var n=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,s=i.colors;return G(G({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},oN),r?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},cv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},oN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":G({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},cv)},iN=function(t){return G({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},cv)},aN=function(t){var r=t.cx,n=t.value,o=qh(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,c=vt(o,rN);return ye("div",le({},It(t,"input",{"input-container":!0}),{"data-value":n||""}),ye("input",le({className:r({input:!0},l),ref:i,style:iN(s),disabled:a},c)))},sN=aN,lN=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return G({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},cN=function(t,r){var n=t.theme,o=n.borderRadius,i=n.colors,a=t.cropWithEllipsis;return G({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},uN=function(t,r){var n=t.theme,o=n.spacing,i=n.borderRadius,a=n.colors,s=t.isFocused;return G({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},uv=function(t){var r=t.children,n=t.innerProps;return ye("div",n,r)},dN=uv,fN=uv;function mN(e){var t=e.children,r=e.innerProps;return ye("div",le({role:"button"},r),t||ye(_d,{size:14}))}var pN=function(t){var r=t.children,n=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,c=n.Container,u=n.Label,d=n.Remove;return ye(c,{data:o,innerProps:G(G({},It(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:l},ye(u,{data:o,innerProps:G({},It(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},r),ye(d,{data:o,innerProps:G(G({},It(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:l}))},gN=pN,hN=function(t,r){var n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return G({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?l.primary:l.primary50}})},vN=function(t){var r=t.children,n=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return ye("div",le({},It(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},s),r)},bN=vN,yN=function(t,r){var n=t.theme,o=n.spacing,i=n.colors;return G({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},CN=function(t){var r=t.children,n=t.innerProps;return ye("div",le({},It(t,"placeholder",{placeholder:!0}),n),r)},xN=CN,wN=function(t,r){var n=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return G({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},SN=function(t){var r=t.children,n=t.isDisabled,o=t.innerProps;return ye("div",le({},It(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},EN=SN,IN={ClearIndicator:BA,Control:JA,DropdownIndicator:_A,DownChevron:sv,CrossIcon:_d,Group:tN,GroupHeading:eN,IndicatorsContainer:$A,IndicatorSeparator:GA,Input:sN,LoadingIndicator:UA,Menu:yA,MenuList:xA,MenuPortal:NA,LoadingMessage:IA,NoOptionsMessage:EA,MultiValue:gN,MultiValueContainer:dN,MultiValueLabel:fN,MultiValueRemove:mN,Option:bN,Placeholder:xN,SelectContainer:TA,SingleValue:EN,ValueContainer:kA},AN=function(t){return G(G({},IN),t.components)},dv=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function NN(e,t){return!!(e===t||dv(e)&&dv(t))}function ON(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!NN(e[r],t[r]))return!1;return!0}function TN(e,t){t===void 0&&(t=ON);var r=null;function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var a=e.apply(this,o);return r={lastResult:a,lastArgs:o,lastThis:this},a}return n.clear=function(){r=null},n}function PN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var kN=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:PN},FN=function(t){return ye("span",le({css:kN},t))},fv=FN,$N={guidance:function(t){var r=t.isSearchable,n=t.isMulti,o=t.tabSelectsValue,i=t.context,a=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,n=t.label,o=n===void 0?"":n,i=t.labels,a=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,s=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,d=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(r==="value"&&s)return"value ".concat(a," focused, ").concat(d(s,n),".");if(r==="menu"&&u){var f=l?" disabled":"",g="".concat(c?" selected":"").concat(f);return"".concat(a).concat(g,", ").concat(d(o,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},MN=function(t){var r=t.ariaSelection,n=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,g=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,p=l.isSearchable,b=l.menuIsOpen,y=l.options,w=l.screenReaderStatus,S=l.tabSelectsValue,v=l.isLoading,I=l["aria-label"],O=l["aria-live"],N=E.useMemo(function(){return G(G({},$N),d||{})},[d]),T=E.useMemo(function(){var k="";if(r&&N.onChange){var j=r.option,z=r.options,H=r.removedValue,V=r.removedValues,_=r.value,D=function(Q){return Array.isArray(Q)?null:Q},B=H||j||D(_),R=B?f(B):"",W=z||V||void 0,K=W?W.map(f):[],q=G({isDisabled:B&&m(B,s),label:R,labels:K},r);k=N.onChange(q)}return k},[r,N,m,s,f]),P=E.useMemo(function(){var k="",j=n||o,z=!!(n&&s&&s.includes(n));if(j&&N.onFocus){var H={focused:j,label:f(j),isDisabled:m(j,s),isSelected:z,options:i,context:j===n?"menu":"value",selectValue:s,isAppleDevice:u};k=N.onFocus(H)}return k},[n,o,f,m,N,i,s,u]),M=E.useMemo(function(){var k="";if(b&&y.length&&!v&&N.onFilter){var j=w({count:i.length});k=N.onFilter({inputValue:g,resultsMessage:j})}return k},[i,g,b,N,y,w,v]),x=r?.action==="initial-input-focus",$=E.useMemo(function(){var k="";if(N.guidance){var j=o?"value":b?"menu":"input";k=N.guidance({"aria-label":I,context:j,isDisabled:n&&m(n,s),isMulti:h,isSearchable:p,tabSelectsValue:S,isInitialFocus:x})}return k},[I,n,o,h,m,p,b,N,s,S,x]),F=ye(E.Fragment,null,ye("span",{id:"aria-selection"},T),ye("span",{id:"aria-focused"},P),ye("span",{id:"aria-results"},M),ye("span",{id:"aria-guidance"},$));return ye(E.Fragment,null,ye(fv,{id:c},x&&F),ye(fv,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!x&&F))},jN=MN,Bd=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],RN=new RegExp("["+Bd.map(function(e){return e.letters}).join("")+"]","g"),mv={},zd=0;zd<Bd.length;zd++)for(var Gd=Bd[zd],Hd=0;Hd<Gd.letters.length;Hd++)mv[Gd.letters[Hd]]=Gd.base;var pv=function(t){return t.replace(RN,function(r){return mv[r]})},LN=TN(pv),gv=function(t){return t.replace(/^\s+|\s+$/g,"")},DN=function(t){return"".concat(t.label," ").concat(t.value)},_N=function(t){return function(r,n){if(r.data.__isNew__)return!0;var o=G({ignoreCase:!0,ignoreAccents:!0,stringify:DN,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,a=o.ignoreAccents,s=o.stringify,l=o.trim,c=o.matchFrom,u=l?gv(n):n,d=l?gv(s(r)):s(r);return i&&(u=u.toLowerCase(),d=d.toLowerCase()),a&&(u=LN(u),d=pv(d)),c==="start"?d.substr(0,u.length)===u:d.indexOf(u)>-1}},VN=["innerRef"];function BN(e){var t=e.innerRef,r=vt(e,VN),n=dA(r,"onExited","in","enter","exit","appear");return ye("input",le({ref:t},n,{css:$d({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var zN=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function GN(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=E.useRef(!1),s=E.useRef(!1),l=E.useRef(0),c=E.useRef(null),u=E.useCallback(function(p,b){if(c.current!==null){var y=c.current,w=y.scrollTop,S=y.scrollHeight,v=y.clientHeight,I=c.current,O=b>0,N=S-v-w,T=!1;N>b&&a.current&&(n&&n(p),a.current=!1),O&&s.current&&(i&&i(p),s.current=!1),O&&b>N?(r&&!a.current&&r(p),I.scrollTop=S,T=!0,a.current=!0):!O&&-b>w&&(o&&!s.current&&o(p),I.scrollTop=0,T=!0,s.current=!0),T&&zN(p)}},[r,n,o,i]),d=E.useCallback(function(p){u(p,p.deltaY)},[u]),f=E.useCallback(function(p){l.current=p.changedTouches[0].clientY},[]),g=E.useCallback(function(p){var b=l.current-p.changedTouches[0].clientY;u(p,b)},[u]),h=E.useCallback(function(p){if(p){var b=lA?{passive:!1}:!1;p.addEventListener("wheel",d,b),p.addEventListener("touchstart",f,b),p.addEventListener("touchmove",g,b)}},[g,f,d]),m=E.useCallback(function(p){p&&(p.removeEventListener("wheel",d,!1),p.removeEventListener("touchstart",f,!1),p.removeEventListener("touchmove",g,!1))},[g,f,d]);return E.useEffect(function(){if(t){var p=c.current;return h(p),function(){m(p)}}},[t,h,m]),function(p){c.current=p}}var hv=["boxSizing","height","overflow","paddingRight","position"],vv={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function bv(e){e.cancelable&&e.preventDefault()}function yv(e){e.stopPropagation()}function Cv(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function xv(){return"ontouchstart"in window||navigator.maxTouchPoints}var wv=!!(typeof window<"u"&&window.document&&window.document.createElement),aa=0,ri={capture:!1,passive:!1};function HN(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,o=E.useRef({}),i=E.useRef(null),a=E.useCallback(function(l){if(wv){var c=document.body,u=c&&c.style;if(n&&hv.forEach(function(h){var m=u&&u[h];o.current[h]=m}),n&&aa<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,g=window.innerWidth-f+d||0;Object.keys(vv).forEach(function(h){var m=vv[h];u&&(u[h]=m)}),u&&(u.paddingRight="".concat(g,"px"))}c&&xv()&&(c.addEventListener("touchmove",bv,ri),l&&(l.addEventListener("touchstart",Cv,ri),l.addEventListener("touchmove",yv,ri))),aa+=1}},[n]),s=E.useCallback(function(l){if(wv){var c=document.body,u=c&&c.style;aa=Math.max(aa-1,0),n&&aa<1&&hv.forEach(function(d){var f=o.current[d];u&&(u[d]=f)}),c&&xv()&&(c.removeEventListener("touchmove",bv,ri),l&&(l.removeEventListener("touchstart",Cv,ri),l.removeEventListener("touchmove",yv,ri)))}},[n]);return E.useEffect(function(){if(t){var l=i.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){i.current=l}}function WN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var UN=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},XN=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:WN};function YN(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,o=n===void 0?!0:n,i=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=GN({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),u=HN({isEnabled:r}),d=function(g){c(g),u(g)};return ye(E.Fragment,null,r&&ye("div",{onClick:UN,css:XN}),t(d))}function JN(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ZN=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:JN},qN=function(t){var r=t.name,n=t.onFocus;return ye("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:ZN,value:"",onChange:function(){}})},QN=qN;function Wd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function KN(){return Wd(/^iPhone/i)}function Sv(){return Wd(/^Mac/i)}function eO(){return Wd(/^iPad/i)||Sv()&&navigator.maxTouchPoints>1}function tO(){return KN()||eO()}function rO(){return Sv()||tO()}var nO=function(t){return t.label},Ev=function(t){return t.label},Iv=function(t){return t.value},oO=function(t){return!!t.isDisabled},iO={clearIndicator:VA,container:OA,control:XA,dropdownIndicator:DA,group:qA,groupHeading:KA,indicatorsContainer:FA,indicatorSeparator:zA,input:nN,loadingIndicator:WA,loadingMessage:SA,menu:hA,menuList:CA,menuPortal:AA,multiValue:lN,multiValueLabel:cN,multiValueRemove:uN,noOptionsMessage:wA,option:hN,placeholder:yN,singleValue:wN,valueContainer:PA},aO={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sO=4,Av=4,lO=38,cO=Av*2,uO={baseUnit:Av,controlHeight:lO,menuGutter:cO},Ud={borderRadius:sO,colors:aO,spacing:uO},dO={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ev(),captureMenuScroll:!ev(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:_N(),formatGroupLabel:nO,getOptionLabel:Ev,getOptionValue:Iv,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:oO,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!aA(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Nv(e,t,r,n){var o=Fv(e,t,r),i=$v(e,t,r),a=kv(e,t),s=hl(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:n}}function gl(e,t){return e.options.map(function(r,n){if("options"in r){var o=r.options.map(function(a,s){return Nv(e,a,t,s)}).filter(function(a){return Pv(e,a)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var i=Nv(e,r,t,n);return Pv(e,i)?i:void 0}).filter(cA)}function Ov(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,ue(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function Tv(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,ue(n.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function fO(e,t){return Ov(gl(e,t))}function Pv(e,t){var r=e.inputValue,n=r===void 0?"":r,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!jv(e)||!i)&&Mv(e,{label:a,value:s,data:o},n)}function mO(e,t){var r=e.focusedValue,n=e.selectValue,o=n.indexOf(r);if(o>-1){var i=t.indexOf(r);if(i>-1)return r;if(o<t.length)return t[o]}return null}function pO(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var Xd=function(t,r){var n,o=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return o||null},kv=function(t,r){return t.getOptionLabel(r)},hl=function(t,r){return t.getOptionValue(r)};function Fv(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function $v(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=hl(e,t);return r.some(function(o){return hl(e,o)===n})}function Mv(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var jv=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},gO=1,Rv=function(e){Gr(r,e);var t=Hr(r);function r(n){var o;if(Tt(this,r),o=t.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,d=u.onChange,f=u.name;c.name=f,o.ariaOnChange(l,c),d(l,c)},o.setValue=function(l,c,u){var d=o.props,f=d.closeMenuOnSelect,g=d.isMulti,h=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:h}),f&&(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,d=c.isMulti,f=c.name,g=o.state.selectValue,h=d&&o.isOptionSelected(l,g),m=o.isOptionDisabled(l,g);if(h){var p=o.getOptionValue(l);o.setValue(g.filter(function(b){return o.getOptionValue(b)!==p}),"deselect-option",l)}else if(!m)d?o.setValue([].concat(ue(g),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:f});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,d=o.getOptionValue(l),f=u.filter(function(h){return o.getOptionValue(h)!==d}),g=ia(c,f,f[0]||null);o.onChange(g,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(ia(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),f=ia(l,d,d[0]||null);u&&o.onChange(f,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return Xd(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return Tv(gl(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return tA.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return kv(o.props,l)},o.getOptionValue=function(l){return hl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,d=iO[l](c,u);d.boxSizing="border-box";var f=o.props.styles[l];return f?f(d,c):d},o.getClassNames=function(l,c){var u,d;return(u=(d=o.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return AN(o.props)},o.buildCategorizedOptions=function(){return gl(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Ov(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:G({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,d=c.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&dl(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-o.initialTouchX),f=Math.abs(u.clientY-o.initialTouchY),g=5;o.userIsDragging=d>g||f>g}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return jv(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,d=c.backspaceRemovesValue,f=c.escapeClearsValue,g=c.inputValue,h=c.isClearable,m=c.isDisabled,p=c.menuIsOpen,b=c.onKeyDown,y=c.tabSelectsValue,w=c.openMenuOnFocus,S=o.state,v=S.focusedOption,I=S.focusedValue,O=S.selectValue;if(!m&&!(typeof b=="function"&&(b(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||g)return;o.focusValue("previous");break;case"ArrowRight":if(!u||g)return;o.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(I)o.removeValue(I);else{if(!d)return;u?o.popValue():h&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!p||!y||!v||w&&o.isOptionSelected(v,O))return;o.selectOption(v);break;case"Enter":if(l.keyCode===229)break;if(p){if(!v||o.isComposing)return;o.selectOption(v);break}return;case"Escape":p?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:g}),o.onMenuClose()):h&&f&&o.clearValue();break;case" ":if(g)return;if(!p){o.openMenu("first");break}if(!v)return;o.selectOption(v);break;case"ArrowUp":p?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":p?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!p)return;o.focusOption("pageup");break;case"PageDown":if(!p)return;o.focusOption("pagedown");break;case"Home":if(!p)return;o.focusOption("first");break;case"End":if(!p)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++gO),o.state.selectValue=ul(n.value),n.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=Xd(i,a[s])}return o}return Pt(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Kh(this.menuListRef,this.focusedOptionRef),rO()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,l=this.state.isFocused;(l&&!a&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Kh(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,l=a.isFocused,c=this.buildFocusableOptions(),u=o==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(s[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var c=a.length-1,u=-1;if(a.length){switch(o){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:a[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,c=s.indexOf(a);a||(c=-1),o==="up"?l=c>0?c-1:s.length-1:o==="down"?l=(c+1)%s.length:o==="pageup"?(l=c-i,l<0&&(l=0)):o==="pagedown"?(l=c+i,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Ud):G(G({},Ud),this.props.theme):Ud}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,d=this.props,f=d.isMulti,g=d.isRtl,h=d.options,m=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:l,hasValue:m,isMulti:f,isRtl:g,options:h,selectOption:c,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return Fv(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return $v(this.props,o,i)}},{key:"filterOption",value:function(o,i){return Mv(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,l=o.inputValue,c=o.tabIndex,u=o.form,d=o.menuIsOpen,f=o.required,g=this.getComponents(),h=g.Input,m=this.state,p=m.inputIsHidden,b=m.ariaSelection,y=this.commonProps,w=s||this.getElementId("input"),S=G(G(G({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?b?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?A.createElement(h,le({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:i,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},S)):A.createElement(BN,le({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cl,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:u,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,l=i.MultiValueLabel,c=i.MultiValueRemove,u=i.SingleValue,d=i.Placeholder,f=this.commonProps,g=this.props,h=g.controlShouldRenderValue,m=g.isDisabled,p=g.isMulti,b=g.inputValue,y=g.placeholder,w=this.state,S=w.selectValue,v=w.focusedValue,I=w.isFocused;if(!this.hasValue()||!h)return b?null:A.createElement(d,le({},f,{key:"placeholder",isDisabled:m,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),y);if(p)return S.map(function(N,T){var P=N===v,M="".concat(o.getOptionLabel(N),"-").concat(o.getOptionValue(N));return A.createElement(a,le({},f,{components:{Container:s,Label:l,Remove:c},isFocused:P,isDisabled:m,key:M,index:T,removeProps:{onClick:function(){return o.removeValue(N)},onTouchEnd:function(){return o.removeValue(N)},onMouseDown:function($){$.preventDefault()}},data:N}),o.formatOptionLabel(N,"value"))});if(b)return null;var O=S[0];return A.createElement(u,le({},f,{data:O,isDisabled:m}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,c=s.isLoading,u=this.state.isFocused;if(!i||!c)return null;var d={"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return A.createElement(a,le({},s,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return A.createElement(i,le({},a,{innerProps:c,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,l=i.Menu,c=i.MenuList,u=i.MenuPortal,d=i.LoadingMessage,f=i.NoOptionsMessage,g=i.Option,h=this.commonProps,m=this.state.focusedOption,p=this.props,b=p.captureMenuScroll,y=p.inputValue,w=p.isLoading,S=p.loadingMessage,v=p.minMenuHeight,I=p.maxMenuHeight,O=p.menuIsOpen,N=p.menuPlacement,T=p.menuPosition,P=p.menuPortalTarget,M=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,$=p.noOptionsMessage,F=p.onMenuScrollToTop,k=p.onMenuScrollToBottom;if(!O)return null;var j=function(R,W){var K=R.type,q=R.data,U=R.isDisabled,Q=R.isSelected,Z=R.label,se=R.value,pe=m===q,Y=U?void 0:function(){return o.onOptionHover(q)},Ce=U?void 0:function(){return o.selectOption(q)},ne="".concat(o.getElementId("option"),"-").concat(W),Ie={id:ne,onClick:Ce,onMouseMove:Y,onMouseOver:Y,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:Q};return A.createElement(g,le({},h,{innerProps:Ie,data:q,isDisabled:U,isSelected:Q,key:ne,label:Z,type:K,value:se,isFocused:pe,innerRef:pe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(R.data,"menu"))},z;if(this.hasOptions())z=this.getCategorizedOptions().map(function(B){if(B.type==="group"){var R=B.data,W=B.options,K=B.index,q="".concat(o.getElementId("group"),"-").concat(K),U="".concat(q,"-heading");return A.createElement(a,le({},h,{key:q,data:R,options:W,Heading:s,headingProps:{id:U,data:B.data},label:o.formatGroupLabel(B.data)}),B.options.map(function(Q){return j(Q,"".concat(K,"-").concat(Q.index))}))}else if(B.type==="option")return j(B,"".concat(B.index))});else if(w){var H=S({inputValue:y});if(H===null)return null;z=A.createElement(d,h,H)}else{var V=$({inputValue:y});if(V===null)return null;z=A.createElement(f,h,V)}var _={minMenuHeight:v,maxMenuHeight:I,menuPlacement:N,menuPosition:T,menuShouldScrollIntoView:x},D=A.createElement(vA,le({},h,_),function(B){var R=B.ref,W=B.placerProps,K=W.placement,q=W.maxHeight;return A.createElement(l,le({},h,_,{innerRef:R,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:w,placement:K}),A.createElement(YN,{captureEnabled:b,onTopArrive:F,onBottomArrive:k,lockEnabled:M},function(U){return A.createElement(c,le({},h,{innerRef:function(Z){o.getMenuListRef(Z),U(Z)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:o.getElementId("listbox")},isLoading:w,maxHeight:q,focusedOption:m}),z)}))});return P||T==="fixed"?A.createElement(u,le({},h,{appendTo:P,controlElement:this.controlRef,menuPlacement:N,menuPosition:T}),D):D}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,l=i.isMulti,c=i.name,u=i.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!s)return A.createElement(QN,{name:c,onFocus:this.onValueInputFocus});if(!(!c||s))if(l)if(a){var f=d.map(function(m){return o.getOptionValue(m)}).join(a);return A.createElement("input",{name:c,type:"hidden",value:f})}else{var g=d.length>0?d.map(function(m,p){return A.createElement("input",{key:"i-".concat(p),name:c,type:"hidden",value:o.getOptionValue(m)})}):A.createElement("input",{name:c,type:"hidden",value:""});return A.createElement("div",null,g)}else{var h=d[0]?this.getOptionValue(d[0]):"";return A.createElement("input",{name:c,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,l=i.focusedValue,c=i.isFocused,u=i.selectValue,d=this.getFocusableOptions();return A.createElement(jN,le({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,c=this.props,u=c.className,d=c.id,f=c.isDisabled,g=c.menuIsOpen,h=this.state.isFocused,m=this.commonProps=this.getCommonProps();return A.createElement(s,le({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:h}),this.renderLiveRegion(),A.createElement(i,le({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:h,menuIsOpen:g}),A.createElement(l,le({},m,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),A.createElement(a,le({},m,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,u=i.isFocused,d=i.prevWasFocused,f=i.instancePrefix,g=o.options,h=o.value,m=o.menuIsOpen,p=o.inputValue,b=o.isMulti,y=ul(h),w={};if(a&&(h!==a.value||g!==a.options||m!==a.menuIsOpen||p!==a.inputValue)){var S=m?fO(o,y):[],v=m?Tv(gl(o,y),"".concat(f,"-option")):[],I=s?mO(i,y):null,O=pO(i,S),N=Xd(v,O);w={selectValue:y,focusedOption:O,focusedOptionId:N,focusableOptionsWithIds:v,focusedValue:I,clearFocusValueOnUpdate:!1}}var T=l!=null&&o!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},P=c,M=u&&d;return u&&!M&&(P={value:ia(b,y,y[0]||null),options:y,action:"initial-input-focus"},M=!d),c?.action==="initial-input-focus"&&(P=null),G(G(G({},w),T),{},{prevProps:o,ariaSelection:P,prevWasFocused:M})}}]),r}(E.Component);Rv.defaultProps=dO;var hO=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function vO(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,o=n===void 0?!1:n,i=e.defaultValue,a=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,g=e.value,h=vt(e,hO),m=E.useState(s!==void 0?s:r),p=ie(m,2),b=p[0],y=p[1],w=E.useState(l!==void 0?l:o),S=ie(w,2),v=S[0],I=S[1],O=E.useState(g!==void 0?g:a),N=ie(O,2),T=N[0],P=N[1],M=E.useCallback(function(H,V){typeof c=="function"&&c(H,V),P(H)},[c]),x=E.useCallback(function(H,V){var _;typeof u=="function"&&(_=u(H,V)),y(_!==void 0?_:H)},[u]),$=E.useCallback(function(){typeof f=="function"&&f(),I(!0)},[f]),F=E.useCallback(function(){typeof d=="function"&&d(),I(!1)},[d]),k=s!==void 0?s:b,j=l!==void 0?l:v,z=g!==void 0?g:T;return G(G({},h),{},{inputValue:k,menuIsOpen:j,onChange:M,onInputChange:x,onMenuClose:F,onMenuOpen:$,value:z})}var bO=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Lv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=String(t).toLowerCase(),i=String(n.getOptionValue(r)).toLowerCase(),a=String(n.getOptionLabel(r)).toLowerCase();return i===o||a===o},Yd={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,r,n,o){return!(!t||r.some(function(i){return Lv(t,i,o)})||n.some(function(i){return Lv(t,i,o)}))},getNewOptionData:function(t,r){return{label:r,value:t,__isNew__:!0}}};function yO(e){var t=e.allowCreateWhileLoading,r=t===void 0?!1:t,n=e.createOptionPosition,o=n===void 0?"last":n,i=e.formatCreateLabel,a=i===void 0?Yd.formatCreateLabel:i,s=e.isValidNewOption,l=s===void 0?Yd.isValidNewOption:s,c=e.getNewOptionData,u=c===void 0?Yd.getNewOptionData:c,d=e.onCreateOption,f=e.options,g=f===void 0?[]:f,h=e.onChange,m=vt(e,bO),p=m.getOptionValue,b=p===void 0?Iv:p,y=m.getOptionLabel,w=y===void 0?Ev:y,S=m.inputValue,v=m.isLoading,I=m.isMulti,O=m.value,N=m.name,T=E.useMemo(function(){return l(S,ul(O),g,{getOptionValue:b,getOptionLabel:w})?u(S,a(S)):void 0},[a,u,w,b,S,l,g,O]),P=E.useMemo(function(){return(r||!v)&&T?o==="first"?[T].concat(ue(g)):[].concat(ue(g),[T]):g},[r,o,v,T,g]),M=E.useCallback(function(x,$){if($.action!=="select-option")return h(x,$);var F=Array.isArray(x)?x:[x];if(F[F.length-1]===T){if(d)d(S);else{var k=u(S,S),j={action:"create-option",name:N,option:k};h(ia(I,[].concat(ue(ul(O)),[k]),k),j)}return}h(x,$)},[u,S,I,N,T,d,h,O]);return G(G({},m),{},{options:P,onChange:M})}var CO=E.forwardRef(function(e,t){var r=vO(e),n=yO(r);return A.createElement(Rv,le({ref:t},n))}),xO=CO;const Dv=e=>e,wO=(()=>{let e=Dv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dv}}})();function Jn(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function go(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var vl={exports:{}},bl={exports:{}},tt={};/** @license React v16.13.1
|
|
132
248
|
* react-is.production.min.js
|
|
133
249
|
*
|
|
134
250
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
135
251
|
*
|
|
136
252
|
* This source code is licensed under the MIT license found in the
|
|
137
253
|
* LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/var
|
|
254
|
+
*/var _v;function SO(){if(_v)return tt;_v=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(v){if(typeof v=="object"&&v!==null){var I=v.$$typeof;switch(I){case t:switch(v=v.type,v){case l:case c:case n:case i:case o:case d:return v;default:switch(v=v&&v.$$typeof,v){case s:case u:case h:case g:case a:return v;default:return I}}case r:return I}}}function S(v){return w(v)===c}return tt.AsyncMode=l,tt.ConcurrentMode=c,tt.ContextConsumer=s,tt.ContextProvider=a,tt.Element=t,tt.ForwardRef=u,tt.Fragment=n,tt.Lazy=h,tt.Memo=g,tt.Portal=r,tt.Profiler=i,tt.StrictMode=o,tt.Suspense=d,tt.isAsyncMode=function(v){return S(v)||w(v)===l},tt.isConcurrentMode=S,tt.isContextConsumer=function(v){return w(v)===s},tt.isContextProvider=function(v){return w(v)===a},tt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},tt.isForwardRef=function(v){return w(v)===u},tt.isFragment=function(v){return w(v)===n},tt.isLazy=function(v){return w(v)===h},tt.isMemo=function(v){return w(v)===g},tt.isPortal=function(v){return w(v)===r},tt.isProfiler=function(v){return w(v)===i},tt.isStrictMode=function(v){return w(v)===o},tt.isSuspense=function(v){return w(v)===d},tt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===c||v===i||v===o||v===d||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===h||v.$$typeof===g||v.$$typeof===a||v.$$typeof===s||v.$$typeof===u||v.$$typeof===p||v.$$typeof===b||v.$$typeof===y||v.$$typeof===m)},tt.typeOf=w,tt}var rt={};/** @license React v16.13.1
|
|
139
255
|
* react-is.development.js
|
|
140
256
|
*
|
|
141
257
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
142
258
|
*
|
|
143
259
|
* This source code is licensed under the MIT license found in the
|
|
144
260
|
* LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/var
|
|
261
|
+
*/var Vv;function EO(){return Vv||(Vv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(Y){return typeof Y=="string"||typeof Y=="function"||Y===n||Y===c||Y===i||Y===o||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===h||Y.$$typeof===g||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===u||Y.$$typeof===p||Y.$$typeof===b||Y.$$typeof===y||Y.$$typeof===m)}function S(Y){if(typeof Y=="object"&&Y!==null){var Ce=Y.$$typeof;switch(Ce){case t:var ne=Y.type;switch(ne){case l:case c:case n:case i:case o:case d:return ne;default:var Ie=ne&&ne.$$typeof;switch(Ie){case s:case u:case h:case g:case a:return Ie;default:return Ce}}case r:return Ce}}}var v=l,I=c,O=s,N=a,T=t,P=u,M=n,x=h,$=g,F=r,k=i,j=o,z=d,H=!1;function V(Y){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(Y)||S(Y)===l}function _(Y){return S(Y)===c}function D(Y){return S(Y)===s}function B(Y){return S(Y)===a}function R(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function W(Y){return S(Y)===u}function K(Y){return S(Y)===n}function q(Y){return S(Y)===h}function U(Y){return S(Y)===g}function Q(Y){return S(Y)===r}function Z(Y){return S(Y)===i}function se(Y){return S(Y)===o}function pe(Y){return S(Y)===d}rt.AsyncMode=v,rt.ConcurrentMode=I,rt.ContextConsumer=O,rt.ContextProvider=N,rt.Element=T,rt.ForwardRef=P,rt.Fragment=M,rt.Lazy=x,rt.Memo=$,rt.Portal=F,rt.Profiler=k,rt.StrictMode=j,rt.Suspense=z,rt.isAsyncMode=V,rt.isConcurrentMode=_,rt.isContextConsumer=D,rt.isContextProvider=B,rt.isElement=R,rt.isForwardRef=W,rt.isFragment=K,rt.isLazy=q,rt.isMemo=U,rt.isPortal=Q,rt.isProfiler=Z,rt.isStrictMode=se,rt.isSuspense=pe,rt.isValidElementType=w,rt.typeOf=S}()),rt}var Bv;function zv(){return Bv||(Bv=1,process.env.NODE_ENV==="production"?bl.exports=SO():bl.exports=EO()),bl.exports}/*
|
|
146
262
|
object-assign
|
|
147
263
|
(c) Sindre Sorhus
|
|
148
264
|
@license MIT
|
|
149
|
-
*/var
|
|
150
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
265
|
+
*/var Jd,Gv;function IO(){if(Gv)return Jd;Gv=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jd=o()?Object.assign:function(i,a){for(var s,l=n(i),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)r.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},Jd}var Zd,Hv;function qd(){if(Hv)return Zd;Hv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zd=e,Zd}var Qd,Wv;function Uv(){return Wv||(Wv=1,Qd=Function.call.bind(Object.prototype.hasOwnProperty)),Qd}var Kd,Xv;function AO(){if(Xv)return Kd;Xv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=qd(),r={},n=Uv();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var d;try{if(typeof i[u]!="function"){var f=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[u](a,u,l,s,null,t)}catch(h){d=h}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var g=c?c():"";e("Failed "+s+" type: "+d.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Kd=o,Kd}var ef,Yv;function NO(){if(Yv)return ef;Yv=1;var e=zv(),t=IO(),r=qd(),n=Uv(),o=AO(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return ef=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(_){var D=_&&(c&&_[c]||_[u]);if(typeof D=="function")return D}var f="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:y(),arrayOf:w,element:S(),elementType:v(),instanceOf:I,node:P(),objectOf:N,oneOf:O,oneOfType:T,shape:x,exact:$};function h(_,D){return _===D?_!==0||1/_===1/D:_!==_&&D!==D}function m(_,D){this.message=_,this.data=D&&typeof D=="object"?D:{},this.stack=""}m.prototype=Error.prototype;function p(_){if(process.env.NODE_ENV!=="production")var D={},B=0;function R(K,q,U,Q,Z,se,pe){if(Q=Q||f,se=se||U,pe!==r){if(l){var Y=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 Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ce=Q+":"+U;!D[Ce]&&B<3&&(i("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+Q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[Ce]=!0,B++)}}return q[U]==null?K?q[U]===null?new m("The "+Z+" `"+se+"` is marked as required "+("in `"+Q+"`, but its value is `null`.")):new m("The "+Z+" `"+se+"` is marked as required in "+("`"+Q+"`, but its value is `undefined`.")):null:_(q,U,Q,Z,se)}var W=R.bind(null,!1);return W.isRequired=R.bind(null,!0),W}function b(_){function D(B,R,W,K,q,U){var Q=B[R],Z=j(Q);if(Z!==_){var se=z(Q);return new m("Invalid "+K+" `"+q+"` of type "+("`"+se+"` supplied to `"+W+"`, expected ")+("`"+_+"`."),{expectedType:_})}return null}return p(D)}function y(){return p(a)}function w(_){function D(B,R,W,K,q){if(typeof _!="function")return new m("Property `"+q+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var U=B[R];if(!Array.isArray(U)){var Q=j(U);return new m("Invalid "+K+" `"+q+"` of type "+("`"+Q+"` supplied to `"+W+"`, expected an array."))}for(var Z=0;Z<U.length;Z++){var se=_(U,Z,W,K,q+"["+Z+"]",r);if(se instanceof Error)return se}return null}return p(D)}function S(){function _(D,B,R,W,K){var q=D[B];if(!s(q)){var U=j(q);return new m("Invalid "+W+" `"+K+"` of type "+("`"+U+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return p(_)}function v(){function _(D,B,R,W,K){var q=D[B];if(!e.isValidElementType(q)){var U=j(q);return new m("Invalid "+W+" `"+K+"` of type "+("`"+U+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return p(_)}function I(_){function D(B,R,W,K,q){if(!(B[R]instanceof _)){var U=_.name||f,Q=V(B[R]);return new m("Invalid "+K+" `"+q+"` of type "+("`"+Q+"` supplied to `"+W+"`, expected ")+("instance of `"+U+"`."))}return null}return p(D)}function O(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function D(B,R,W,K,q){for(var U=B[R],Q=0;Q<_.length;Q++)if(h(U,_[Q]))return null;var Z=JSON.stringify(_,function(pe,Y){var Ce=z(Y);return Ce==="symbol"?String(Y):Y});return new m("Invalid "+K+" `"+q+"` of value `"+String(U)+"` "+("supplied to `"+W+"`, expected one of "+Z+"."))}return p(D)}function N(_){function D(B,R,W,K,q){if(typeof _!="function")return new m("Property `"+q+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var U=B[R],Q=j(U);if(Q!=="object")return new m("Invalid "+K+" `"+q+"` of type "+("`"+Q+"` supplied to `"+W+"`, expected an object."));for(var Z in U)if(n(U,Z)){var se=_(U,Z,W,K,q+"."+Z,r);if(se instanceof Error)return se}return null}return p(D)}function T(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var D=0;D<_.length;D++){var B=_[D];if(typeof B!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(B)+" at index "+D+"."),a}function R(W,K,q,U,Q){for(var Z=[],se=0;se<_.length;se++){var pe=_[se],Y=pe(W,K,q,U,Q,r);if(Y==null)return null;Y.data&&n(Y.data,"expectedType")&&Z.push(Y.data.expectedType)}var Ce=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new m("Invalid "+U+" `"+Q+"` supplied to "+("`"+q+"`"+Ce+"."))}return p(R)}function P(){function _(D,B,R,W,K){return F(D[B])?null:new m("Invalid "+W+" `"+K+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return p(_)}function M(_,D,B,R,W){return new m((_||"React class")+": "+D+" type `"+B+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function x(_){function D(B,R,W,K,q){var U=B[R],Q=j(U);if(Q!=="object")return new m("Invalid "+K+" `"+q+"` of type `"+Q+"` "+("supplied to `"+W+"`, expected `object`."));for(var Z in _){var se=_[Z];if(typeof se!="function")return M(W,K,q,Z,z(se));var pe=se(U,Z,W,K,q+"."+Z,r);if(pe)return pe}return null}return p(D)}function $(_){function D(B,R,W,K,q){var U=B[R],Q=j(U);if(Q!=="object")return new m("Invalid "+K+" `"+q+"` of type `"+Q+"` "+("supplied to `"+W+"`, expected `object`."));var Z=t({},B[R],_);for(var se in Z){var pe=_[se];if(n(_,se)&&typeof pe!="function")return M(W,K,q,se,z(pe));if(!pe)return new m("Invalid "+K+" `"+q+"` key `"+se+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(B[R],null," ")+`
|
|
266
|
+
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var Y=pe(U,se,W,K,q+"."+se,r);if(Y)return Y}return null}return p(D)}function F(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(F);if(_===null||s(_))return!0;var D=d(_);if(D){var B=D.call(_),R;if(D!==_.entries){for(;!(R=B.next()).done;)if(!F(R.value))return!1}else for(;!(R=B.next()).done;){var W=R.value;if(W&&!F(W[1]))return!1}}else return!1;return!0;default:return!1}}function k(_,D){return _==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function j(_){var D=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":k(D,_)?"symbol":D}function z(_){if(typeof _>"u"||_===null)return""+_;var D=j(_);if(D==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return D}function H(_){var D=z(_);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function V(_){return!_.constructor||!_.constructor.name?f:_.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},ef}var tf,Jv;function OO(){if(Jv)return tf;Jv=1;var e=qd();function t(){}function r(){}return r.resetWarningCache=t,tf=function(){function n(a,s,l,c,u,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},tf}var Zv;function TO(){if(Zv)return vl.exports;if(Zv=1,process.env.NODE_ENV!=="production"){var e=zv(),t=!0;vl.exports=NO()(e.isElement,t)}else vl.exports=OO()();return vl.exports}var PO=TO();const Ge=Oc(PO);function qv(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=qv(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function cn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=qv(e))&&(n&&(n+=" "),n+=t);return n}function kO(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(a+=" "+r[c]))}n[o]=a}return n}var yl={exports:{}},ct={};/**
|
|
151
267
|
* @license React
|
|
152
268
|
* react-is.production.js
|
|
153
269
|
*
|
|
@@ -155,7 +271,7 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var z=Ee(D,ce,X,K,ee+"."
|
|
|
155
271
|
*
|
|
156
272
|
* This source code is licensed under the MIT license found in the
|
|
157
273
|
* LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/var
|
|
274
|
+
*/var Qv;function FO(){if(Qv)return ct;Qv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function h(m){if(typeof m=="object"&&m!==null){var p=m.$$typeof;switch(p){case e:switch(m=m.type,m){case r:case o:case n:case l:case c:case f:return m;default:switch(m=m&&m.$$typeof,m){case a:case s:case d:case u:return m;case i:return m;default:return p}}case t:return p}}}return ct.ContextConsumer=i,ct.ContextProvider=a,ct.Element=e,ct.ForwardRef=s,ct.Fragment=r,ct.Lazy=d,ct.Memo=u,ct.Portal=t,ct.Profiler=o,ct.StrictMode=n,ct.Suspense=l,ct.SuspenseList=c,ct.isContextConsumer=function(m){return h(m)===i},ct.isContextProvider=function(m){return h(m)===a},ct.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},ct.isForwardRef=function(m){return h(m)===s},ct.isFragment=function(m){return h(m)===r},ct.isLazy=function(m){return h(m)===d},ct.isMemo=function(m){return h(m)===u},ct.isPortal=function(m){return h(m)===t},ct.isProfiler=function(m){return h(m)===o},ct.isStrictMode=function(m){return h(m)===n},ct.isSuspense=function(m){return h(m)===l},ct.isSuspenseList=function(m){return h(m)===c},ct.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===n||m===l||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===u||m.$$typeof===a||m.$$typeof===i||m.$$typeof===s||m.$$typeof===g||m.getModuleId!==void 0)},ct.typeOf=h,ct}var ut={};/**
|
|
159
275
|
* @license React
|
|
160
276
|
* react-is.development.js
|
|
161
277
|
*
|
|
@@ -163,23 +279,23 @@ Valid keys: `+JSON.stringify(Object.keys($),null," "));var z=Ee(D,ce,X,K,ee+"."
|
|
|
163
279
|
*
|
|
164
280
|
* This source code is licensed under the MIT license found in the
|
|
165
281
|
* LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/var
|
|
167
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
282
|
+
*/var Kv;function $O(){return Kv||(Kv=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var p=m.$$typeof;switch(p){case t:switch(m=m.type,m){case n:case i:case o:case c:case u:case g:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case f:case d:return m;case a:return m;default:return p}}case r:return p}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");ut.ContextConsumer=a,ut.ContextProvider=s,ut.Element=t,ut.ForwardRef=l,ut.Fragment=n,ut.Lazy=f,ut.Memo=d,ut.Portal=r,ut.Profiler=i,ut.StrictMode=o,ut.Suspense=c,ut.SuspenseList=u,ut.isContextConsumer=function(m){return e(m)===a},ut.isContextProvider=function(m){return e(m)===s},ut.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},ut.isForwardRef=function(m){return e(m)===l},ut.isFragment=function(m){return e(m)===n},ut.isLazy=function(m){return e(m)===f},ut.isMemo=function(m){return e(m)===d},ut.isPortal=function(m){return e(m)===r},ut.isProfiler=function(m){return e(m)===i},ut.isStrictMode=function(m){return e(m)===o},ut.isSuspense=function(m){return e(m)===c},ut.isSuspenseList=function(m){return e(m)===u},ut.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===o||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===h||m.getModuleId!==void 0)},ut.typeOf=e}()),ut}var eb;function MO(){return eb||(eb=1,process.env.NODE_ENV==="production"?yl.exports=FO():yl.exports=$O()),yl.exports}var Cl=MO();function wn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tb(e){if(A.isValidElement(e)||Cl.isValidElementType(e)||!wn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=tb(e[r])}),t}function Sr(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return wn(e)&&wn(t)&&Object.keys(t).forEach(o=>{A.isValidElement(t[o])||Cl.isValidElementType(t[o])?n[o]=t[o]:wn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wn(e[o])?n[o]=Sr(e[o],t[o],r):r.clone?n[o]=wn(t[o])?tb(t[o]):t[o]:n[o]=t[o]}),n}function sa(e,t){return t?Sr(e,t,{clone:!1}):e}const Zn=process.env.NODE_ENV!=="production"?Ge.oneOfType([Ge.number,Ge.string,Ge.object,Ge.array]):{};function rb(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function jO(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function RO(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
283
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Jn(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function LO(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const xl={xs:0,sm:600,md:900,lg:1200,xl:1536},nb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xl[e]}px)`},DO={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:xl[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Sn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||nb;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const i=n.breakpoints||nb;return Object.keys(t).reduce((a,s)=>{if(jO(i.keys,s)){const l=RO(n.containerQueries?n:DO,s);l&&(a[l]=r(t[s],s))}else if(Object.keys(i.values||xl).includes(s)){const l=i.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function _O(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function ob(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function wl(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Sl(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=wl(e,r)||n,t&&(o=t(o,n,e)),o}function Ft(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=wl(l,n)||{};return Sn(a,s,d=>{let f=Sl(c,o,d);return d===f&&typeof d=="string"&&(f=Sl(c,o,`${t}${d==="default"?"":go(d)}`,d)),r===!1?f:{[r]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Zn}:{},i.filterProps=[t],i}function VO(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const BO={m:"margin",p:"padding"},zO={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ib={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GO=VO(e=>{if(e.length>2)if(ib[e])e=ib[e];else return[e];const[t,r]=e.split(""),n=BO[t],o=zO[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),El=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Il=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],HO=[...El,...Il];function la(e,t,r,n){const o=wl(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
168
284
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
169
|
-
`)));const
|
|
170
|
-
`)),()=>{})}function Dl(e){return Gi(e,"spacing",8,"spacing")}function Hi(e,t){return typeof t=="string"||t==null?t:e(t)}function WI(e,t){return r=>e.reduce((i,n)=>(i[n]=Hi(t,r),i),{})}function zI(e,t,r,i){if(!t.includes(r))return null;const n=GI(r),o=WI(n,i),a=e[r];return Ir(e,a,o)}function gg(e,t){const r=Dl(e.theme);return Object.keys(e).map(i=>zI(e,t,i,r)).reduce(_i,{})}function Ze(e){return gg(e,Da)}Ze.propTypes=process.env.NODE_ENV!=="production"?Da.reduce((e,t)=>(e[t]=Ur,e),{}):{},Ze.filterProps=Da;function qe(e){return gg(e,_a)}qe.propTypes=process.env.NODE_ENV!=="production"?_a.reduce((e,t)=>(e[t]=Ur,e),{}):{},qe.filterProps=_a,process.env.NODE_ENV!=="production"&&HI.reduce((e,t)=>(e[t]=Ur,e),{});function Ga(...e){const t=e.reduce((i,n)=>(n.filterProps.forEach(o=>{i[o]=n}),i),{}),r=i=>Object.keys(i).reduce((n,o)=>t[o]?_i(n,t[o](i)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,n)=>Object.assign(i,n.propTypes),{}):{},r.filterProps=e.reduce((i,n)=>i.concat(n.filterProps),[]),r}function Ht(e){return typeof e!="number"?e:`${e}px solid`}function Wt(e,t){return nt({prop:e,themeKey:"borders",transform:t})}const XI=Wt("border",Ht),UI=Wt("borderTop",Ht),YI=Wt("borderRight",Ht),JI=Wt("borderBottom",Ht),ZI=Wt("borderLeft",Ht),qI=Wt("borderColor"),QI=Wt("borderTopColor"),KI=Wt("borderRightColor"),eS=Wt("borderBottomColor"),tS=Wt("borderLeftColor"),rS=Wt("outline",Ht),nS=Wt("outlineColor"),Ha=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gi(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Hi(t,i)});return Ir(e,e.borderRadius,r)}return null};Ha.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ur}:{},Ha.filterProps=["borderRadius"],Ga(XI,UI,YI,JI,ZI,qI,QI,KI,eS,tS,Ha,rS,nS);const Wa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gi(e.theme,"spacing",8,"gap"),r=i=>({gap:Hi(t,i)});return Ir(e,e.gap,r)}return null};Wa.propTypes=process.env.NODE_ENV!=="production"?{gap:Ur}:{},Wa.filterProps=["gap"];const za=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gi(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Hi(t,i)});return Ir(e,e.columnGap,r)}return null};za.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ur}:{},za.filterProps=["columnGap"];const Xa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gi(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Hi(t,i)});return Ir(e,e.rowGap,r)}return null};Xa.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ur}:{},Xa.filterProps=["rowGap"];const iS=nt({prop:"gridColumn"}),oS=nt({prop:"gridRow"}),aS=nt({prop:"gridAutoFlow"}),sS=nt({prop:"gridAutoColumns"}),uS=nt({prop:"gridAutoRows"}),lS=nt({prop:"gridTemplateColumns"}),cS=nt({prop:"gridTemplateRows"}),dS=nt({prop:"gridTemplateAreas"}),fS=nt({prop:"gridArea"});Ga(Wa,za,Xa,iS,oS,aS,sS,uS,lS,cS,dS,fS);function Xn(e,t){return t==="grey"?t:e}const pS=nt({prop:"color",themeKey:"palette",transform:Xn}),mS=nt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xn}),gS=nt({prop:"backgroundColor",themeKey:"palette",transform:Xn});Ga(pS,mS,gS);function Mt(e){return e<=1&&e!==0?`${e*100}%`:e}const hS=nt({prop:"width",transform:Mt}),_l=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const i=e.theme?.breakpoints?.values?.[r]||La[r];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Mt(r)}};return Ir(e,e.maxWidth,t)}return null};_l.filterProps=["maxWidth"];const vS=nt({prop:"minWidth",transform:Mt}),bS=nt({prop:"height",transform:Mt}),yS=nt({prop:"maxHeight",transform:Mt}),CS=nt({prop:"minHeight",transform:Mt});nt({prop:"size",cssProperty:"width",transform:Mt}),nt({prop:"size",cssProperty:"height",transform:Mt});const xS=nt({prop:"boxSizing"});Ga(hS,_l,vS,bS,yS,CS,xS);const Ua={border:{themeKey:"borders",transform:Ht},borderTop:{themeKey:"borders",transform:Ht},borderRight:{themeKey:"borders",transform:Ht},borderBottom:{themeKey:"borders",transform:Ht},borderLeft:{themeKey:"borders",transform:Ht},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ht},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ha},color:{themeKey:"palette",transform:Xn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xn},backgroundColor:{themeKey:"palette",transform:Xn},p:{style:qe},pt:{style:qe},pr:{style:qe},pb:{style:qe},pl:{style:qe},px:{style:qe},py:{style:qe},padding:{style:qe},paddingTop:{style:qe},paddingRight:{style:qe},paddingBottom:{style:qe},paddingLeft:{style:qe},paddingX:{style:qe},paddingY:{style:qe},paddingInline:{style:qe},paddingInlineStart:{style:qe},paddingInlineEnd:{style:qe},paddingBlock:{style:qe},paddingBlockStart:{style:qe},paddingBlockEnd:{style:qe},m:{style:Ze},mt:{style:Ze},mr:{style:Ze},mb:{style:Ze},ml:{style:Ze},mx:{style:Ze},my:{style:Ze},margin:{style:Ze},marginTop:{style:Ze},marginRight:{style:Ze},marginBottom:{style:Ze},marginLeft:{style:Ze},marginX:{style:Ze},marginY:{style:Ze},marginInline:{style:Ze},marginInlineStart:{style:Ze},marginInlineEnd:{style:Ze},marginBlock:{style:Ze},marginBlockStart:{style:Ze},marginBlockEnd:{style:Ze},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wa},rowGap:{style:Xa},columnGap:{style:za},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mt},maxWidth:{style:_l},minWidth:{transform:Mt},height:{transform:Mt},maxHeight:{transform:Mt},minHeight:{transform:Mt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ES(...e){const t=e.reduce((i,n)=>i.concat(Object.keys(n)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function IS(e,t){return typeof e=="function"?e(t):e}function SS(){function e(r,i,n,o){const a={[r]:i,theme:n},u=o[r];if(!u)return{[r]:i};const{cssProperty:s=r,themeKey:l,transform:c,style:d}=u;if(i==null)return null;if(l==="typography"&&i==="inherit")return{[r]:i};const f=Ba(n,l)||{};return d?d(a):Ir(a,i,h=>{let p=$a(f,c,h);return h===p&&typeof h=="string"&&(p=$a(f,c,`${r}${h==="default"?"":cn(h)}`,h)),s===!1?p:{[s]:p}})}function t(r){const{sx:i,theme:n={},nested:o}=r||{};if(!i)return null;const a=n.unstable_sxConfig??Ua;function u(s){let l=s;if(typeof s=="function")l=s(n);else if(typeof s!="object")return s;if(!l)return null;const c=BI(n.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(g=>{const h=IS(l[g],n);if(h!=null)if(typeof h=="object")if(a[g])f=_i(f,e(g,h,n,a));else{const p=Ir({theme:n},h,m=>({[g]:m}));ES(p,h)?f[g]=t({sx:h,theme:n,nested:!0}):f=_i(f,p)}else f=_i(f,e(g,h,n,a))}),!o&&n.modularCssLayers?{"@layer sx":dg(n,pg(d,f))}:dg(n,pg(d,f))}return Array.isArray(i)?i.map(u):u(i)}return t}const Un=SS();Un.filterProps=["sx"];var wS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,AS=Mp(function(e){return wS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),TS=AS,OS=function(t){return t!=="theme"},hg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?TS:OS},vg=function(t,r,i){var n;if(r){var o=r.shouldForwardProp;n=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&i&&(n=t.__emotion_forwardProp),n},kS=function(t){var r=t.cache,i=t.serialized,n=t.isStringTag;return pl(r,i,n),Up(function(){return Gp(r,i,n)}),null},PS=function e(t,r){var i=t.__emotion_real===t,n=i&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var u=vg(t,r,i),s=u||hg(n),l=!s("as");return function(){var c=arguments,d=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var g=c.length,h=1;h<g;h++)d.push(c[h],f[h])}var p=Jp(function(m,b,y){var I=l&&m.as||n,x="",v=[],S=m;if(m.theme==null){S={};for(var E in m)S[E]=m[E];S.theme=R.useContext(Zp)}typeof m.className=="string"?x=_p(b.registered,v,m.className):m.className!=null&&(x=m.className+" ");var w=ya(d.concat(v),b.registered,S);x+=b.key+"-"+w.name,a!==void 0&&(x+=" "+a);var T=l&&u===void 0?hg(I):s,k={};for(var V in m)l&&V==="as"||T(V)&&(k[V]=m[V]);return k.className=x,y&&(k.ref=y),R.createElement(R.Fragment,null,R.createElement(kS,{cache:b,serialized:w,isStringTag:typeof I=="string"}),R.createElement(I,k))});return p.displayName=o!==void 0?o:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=n,p.__emotion_styles=d,p.__emotion_forwardProp=u,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(m,b){var y=e(m,se({},r,b,{shouldForwardProp:vg(p,b,!0)}));return y.apply(void 0,d)},p}},NS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Gl=PS.bind(null);NS.forEach(function(e){Gl[e]=Gl(e)});/**
|
|
285
|
+
`)));const s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
286
|
+
`)),()=>{})}function rf(e){return la(e,"spacing",8,"spacing")}function ca(e,t){return typeof t=="string"||t==null?t:e(t)}function WO(e,t){return r=>e.reduce((n,o)=>(n[o]=ca(t,r),n),{})}function UO(e,t,r,n){if(!t.includes(r))return null;const o=GO(r),i=WO(o,n),a=e[r];return Sn(e,a,i)}function ab(e,t){const r=rf(e.theme);return Object.keys(e).map(n=>UO(e,t,n,r)).reduce(sa,{})}function At(e){return ab(e,El)}At.propTypes=process.env.NODE_ENV!=="production"?El.reduce((e,t)=>(e[t]=Zn,e),{}):{},At.filterProps=El;function Nt(e){return ab(e,Il)}Nt.propTypes=process.env.NODE_ENV!=="production"?Il.reduce((e,t)=>(e[t]=Zn,e),{}):{},Nt.filterProps=Il,process.env.NODE_ENV!=="production"&&HO.reduce((e,t)=>(e[t]=Zn,e),{});function Al(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?sa(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function jr(e){return typeof e!="number"?e:`${e}px solid`}function Rr(e,t){return Ft({prop:e,themeKey:"borders",transform:t})}const XO=Rr("border",jr),YO=Rr("borderTop",jr),JO=Rr("borderRight",jr),ZO=Rr("borderBottom",jr),qO=Rr("borderLeft",jr),QO=Rr("borderColor"),KO=Rr("borderTopColor"),e6=Rr("borderRightColor"),t6=Rr("borderBottomColor"),r6=Rr("borderLeftColor"),n6=Rr("outline",jr),o6=Rr("outlineColor"),Nl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=la(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ca(t,n)});return Sn(e,e.borderRadius,r)}return null};Nl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Zn}:{},Nl.filterProps=["borderRadius"],Al(XO,YO,JO,ZO,qO,QO,KO,e6,t6,r6,Nl,n6,o6);const Ol=e=>{if(e.gap!==void 0&&e.gap!==null){const t=la(e.theme,"spacing",8,"gap"),r=n=>({gap:ca(t,n)});return Sn(e,e.gap,r)}return null};Ol.propTypes=process.env.NODE_ENV!=="production"?{gap:Zn}:{},Ol.filterProps=["gap"];const Tl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=la(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ca(t,n)});return Sn(e,e.columnGap,r)}return null};Tl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Zn}:{},Tl.filterProps=["columnGap"];const Pl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=la(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ca(t,n)});return Sn(e,e.rowGap,r)}return null};Pl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Zn}:{},Pl.filterProps=["rowGap"];const i6=Ft({prop:"gridColumn"}),a6=Ft({prop:"gridRow"}),s6=Ft({prop:"gridAutoFlow"}),l6=Ft({prop:"gridAutoColumns"}),c6=Ft({prop:"gridAutoRows"}),u6=Ft({prop:"gridTemplateColumns"}),d6=Ft({prop:"gridTemplateRows"}),f6=Ft({prop:"gridTemplateAreas"}),m6=Ft({prop:"gridArea"});Al(Ol,Tl,Pl,i6,a6,s6,l6,c6,u6,d6,f6,m6);function ni(e,t){return t==="grey"?t:e}const p6=Ft({prop:"color",themeKey:"palette",transform:ni}),g6=Ft({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ni}),h6=Ft({prop:"backgroundColor",themeKey:"palette",transform:ni});Al(p6,g6,h6);function Er(e){return e<=1&&e!==0?`${e*100}%`:e}const v6=Ft({prop:"width",transform:Er}),nf=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||xl[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Er(r)}};return Sn(e,e.maxWidth,t)}return null};nf.filterProps=["maxWidth"];const b6=Ft({prop:"minWidth",transform:Er}),y6=Ft({prop:"height",transform:Er}),C6=Ft({prop:"maxHeight",transform:Er}),x6=Ft({prop:"minHeight",transform:Er});Ft({prop:"size",cssProperty:"width",transform:Er}),Ft({prop:"size",cssProperty:"height",transform:Er});const w6=Ft({prop:"boxSizing"});Al(v6,nf,b6,y6,C6,x6,w6);const kl={border:{themeKey:"borders",transform:jr},borderTop:{themeKey:"borders",transform:jr},borderRight:{themeKey:"borders",transform:jr},borderBottom:{themeKey:"borders",transform:jr},borderLeft:{themeKey:"borders",transform:jr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nl},color:{themeKey:"palette",transform:ni},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ni},backgroundColor:{themeKey:"palette",transform:ni},p:{style:Nt},pt:{style:Nt},pr:{style:Nt},pb:{style:Nt},pl:{style:Nt},px:{style:Nt},py:{style:Nt},padding:{style:Nt},paddingTop:{style:Nt},paddingRight:{style:Nt},paddingBottom:{style:Nt},paddingLeft:{style:Nt},paddingX:{style:Nt},paddingY:{style:Nt},paddingInline:{style:Nt},paddingInlineStart:{style:Nt},paddingInlineEnd:{style:Nt},paddingBlock:{style:Nt},paddingBlockStart:{style:Nt},paddingBlockEnd:{style:Nt},m:{style:At},mt:{style:At},mr:{style:At},mb:{style:At},ml:{style:At},mx:{style:At},my:{style:At},margin:{style:At},marginTop:{style:At},marginRight:{style:At},marginBottom:{style:At},marginLeft:{style:At},marginX:{style:At},marginY:{style:At},marginInline:{style:At},marginInlineStart:{style:At},marginInlineEnd:{style:At},marginBlock:{style:At},marginBlockStart:{style:At},marginBlockEnd:{style:At},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ol},rowGap:{style:Pl},columnGap:{style:Tl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Er},maxWidth:{style:nf},minWidth:{transform:Er},height:{transform:Er},maxHeight:{transform:Er},minHeight:{transform:Er},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function S6(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function E6(e,t){return typeof e=="function"?e(t):e}function I6(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=wl(o,c)||{};return d?d(a):Sn(a,n,h=>{let m=Sl(f,u,h);return h===m&&typeof h=="string"&&(m=Sl(f,u,`${r}${h==="default"?"":go(h)}`,h)),l===!1?m:{[l]:m}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??kl;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=_O(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(g=>{const h=E6(c[g],o);if(h!=null)if(typeof h=="object")if(a[g])f=sa(f,e(g,h,o,a));else{const m=Sn({theme:o},h,p=>({[g]:p}));S6(m,h)?f[g]=t({sx:h,theme:o,nested:!0}):f=sa(f,m)}else f=sa(f,e(g,h,o,a))}),!i&&o.modularCssLayers?{"@layer sx":rb(o,ob(d,f))}:rb(o,ob(d,f))}return Array.isArray(n)?n.map(s):s(n)}return t}const oi=I6();oi.filterProps=["sx"];var A6=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,N6=Ih(function(e){return A6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),O6=N6,T6=function(t){return t!=="theme"},sb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?O6:T6},lb=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},P6=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Td(r,n,o),Dh(function(){return $h(r,n,o)}),null},k6=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=lb(t,r,n),l=s||sb(o),c=!l("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var g=u.length,h=1;h<g;h++)d.push(u[h],f[h])}var m=Vh(function(p,b,y){var w=c&&p.as||o,S="",v=[],I=p;if(p.theme==null){I={};for(var O in p)I[O]=p[O];I.theme=A.useContext(Bh)}typeof p.className=="string"?S=Fh(b.registered,v,p.className):p.className!=null&&(S=p.className+" ");var N=nl(d.concat(v),b.registered,I);S+=b.key+"-"+N.name,a!==void 0&&(S+=" "+a);var T=c&&s===void 0?sb(w):l,P={};for(var M in p)c&&M==="as"||T(M)&&(P[M]=p[M]);return P.className=S,y&&(P.ref=y),A.createElement(A.Fragment,null,A.createElement(P6,{cache:b,serialized:N,isStringTag:typeof w=="string"}),A.createElement(w,P))});return m.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(p,b){var y=e(p,le({},r,b,{shouldForwardProp:lb(m,b,!0)}));return y.apply(void 0,d)},m}},F6=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],of=k6.bind(null);F6.forEach(function(e){of[e]=of(e)});/**
|
|
171
287
|
* @mui/styled-engine v7.3.1
|
|
172
288
|
*
|
|
173
289
|
* @license MIT
|
|
174
290
|
* This source code is licensed under the MIT license found in the
|
|
175
291
|
* LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/function
|
|
177
|
-
`)):
|
|
178
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
179
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
180
|
-
`))}return b}const g=({color:
|
|
181
|
-
The color object needs to have a \`main\` property or a \`${y}\` property.`:
|
|
182
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
292
|
+
*/function $6(e,t){const r=of(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
293
|
+
`)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function M6(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const cb=[];function ho(e){return cb[0]=e,nl(cb)}const j6=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function R6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=j6(t),a=Object.keys(i);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,g){const h=a.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:g)-n/100}${r})`}function u(f){return a.indexOf(f)+1<a.length?c(f,a[a.indexOf(f)+1]):s(f)}function d(f){const g=a.indexOf(f);return g===0?s(a[1]):g===a.length-1?l(a[g]):c(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:l,between:c,only:u,not:d,unit:r,...o}}const L6={borderRadius:4};function ub(e=8,t=rf({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function D6(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function db(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,s=R6(r),l=ub(o);let c=Sr({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...L6,...i}},a);return c=LO(c),c.applyStyles=D6,c=t.reduce((u,d)=>Sr(u,d),c),c.unstable_sxConfig={...kl,...a?.unstable_sxConfig},c.unstable_sx=function(d){return oi({sx:d,theme:this})},c}const _6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function af(e,t,r="Mui"){const n=_6[t];return n?`${r}-${n}`:`${wO.generate(e)}-${t}`}function V6(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=af(e,o,r)}),n}function fb(e,t=""){return e.displayName||e.name||t}function mb(e,t,r){const n=fb(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function B6(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fb(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Cl.ForwardRef:return mb(e,e.render,"ForwardRef");case Cl.Memo:return mb(e,e.type,"memo");default:return}}}function pb(e){const{variants:t,...r}=e,n={variants:t,style:ho(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ho(o.style))}),n}const z6=db();function sf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function vo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function G6(e){return e?(t,r)=>r[e]:null}function H6(e,t,r){e.theme=Y6(e.theme)?r:e.theme[t]||e.theme}function Fl(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Fl(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?vo(n.style,r):n.style;else{const{variants:i,...a}=n;o=r?vo(ho(a),r):a}return gb(e,n.variants,[o],r)}return n?.isProcessed?r?vo(ho(n.style),r):n.style:r?vo(ho(n),r):n}function gb(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?vo(ho(a.style(o)),n):a.style(o))):r.push(n?vo(ho(a.style),n):a.style)}return r}function W6(e={}){const{themeId:t,defaultTheme:r=z6,rootShouldForwardProp:n=sf,slotShouldForwardProp:o=sf}=e;function i(s){H6(s,t,r)}return(s,l={})=>{M6(s,I=>I.filter(O=>O!==oi));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:g=G6(hb(u)),...h}=l,m=c&&c.startsWith("Mui")||u?"components":"custom",p=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,b=f||!1;let y=sf;u==="Root"||u==="root"?y=n:u?y=o:J6(s)&&(y=void 0);const w=$6(s,{shouldForwardProp:y,label:X6(c,u),...h}),S=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(N){return Fl(N,I,N.theme.modularCssLayers?m:void 0)};if(wn(I)){const O=pb(I);return function(T){return O.variants?Fl(T,O,T.theme.modularCssLayers?m:void 0):T.theme.modularCssLayers?vo(O.style,m):O.style}}return I},v=(...I)=>{const O=[],N=I.map(S),T=[];if(O.push(i),c&&g&&T.push(function($){const k=$.theme.components?.[c]?.styleOverrides;if(!k)return null;const j={};for(const z in k)j[z]=Fl($,k[z],$.theme.modularCssLayers?"theme":void 0);return g($,j)}),c&&!p&&T.push(function($){const k=$.theme?.components?.[c]?.variants;return k?gb($,k,[],$.theme.modularCssLayers?"theme":void 0):null}),b||T.push(oi),Array.isArray(N[0])){const x=N.shift(),$=new Array(O.length).fill(""),F=new Array(T.length).fill("");let k;k=[...$,...x,...F],k.raw=[...$,...x.raw,...F],O.unshift(k)}const P=[...O,...N,...T],M=w(...P);return s.muiName&&(M.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(M.displayName=U6(c,u,s)),M};return w.withConfig&&(v.withConfig=w.withConfig),v}}function U6(e,t,r){return e?`${e}${go(t||"")}`:`Styled(${B6(r)})`}function X6(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${hb(t||"Root")}`),r}function Y6(e){for(const t in e)return!1;return!0}function J6(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hb(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function lf(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=t[i];if(!s)n[i]=a||{};else if(!a)n[i]=s;else{n[i]={...s};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const c=l;n[i][c]=lf(a[c],s[c],r)}}}else i==="className"&&r&&t.className?n.className=cn(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}function Z6(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function cf(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Z6(e,t,r)}function q6(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function qn(e){if(e.type)return e;if(e.charAt(0)==="#")return qn(q6(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
294
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Jn(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
295
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Jn(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Q6=e=>{const t=qn(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ua=(e,t)=>{try{return Q6(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function $l(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function vb(e){e=qn(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,u=(c+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),$l({type:s,values:l})}function uf(e){e=qn(e);let t=e.type==="hsl"||e.type==="hsla"?qn(vb(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bb(e,t){const r=uf(e),n=uf(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function yb(e,t){return e=qn(e),t=cf(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$l(e)}function bo(e,t,r){try{return yb(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ml(e,t){if(e=qn(e),t=cf(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return $l(e)}function nt(e,t,r){try{return Ml(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function jl(e,t){if(e=qn(e),t=cf(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return $l(e)}function ot(e,t,r){try{return jl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function K6(e,t=.15){return uf(e)>.5?Ml(e,t):jl(e,t)}function Rl(e,t,r){try{return K6(e,t)}catch{return e}}const e9=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ge.node,Ge.object);function t9(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?lf(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?lf(o,n,t.components.mergeClassNameAndStyle):n}function r9({props:e,name:t}){const r=A.useContext(e9);return t9({props:e,name:t,theme:{components:r}})}const Cb={theme:void 0};function n9(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(Cb.theme=o.theme,i=pb(e(Cb)),t=i,r=o.theme),i}}function o9(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const xb=(e,t,r,n=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},i9=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}n(e)},a9=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function df(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return i9(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,d=a9(s,l);Object.assign(o,{[u]:d}),xb(i,s,`var(${u})`,c),xb(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function s9(e,t={}){const{getSelector:r=b,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:f}=df(c,t);let g=f;const h={},{[l]:m,...p}=a;if(Object.entries(p||{}).forEach(([S,v])=>{const{vars:I,css:O,varsWithDefaults:N}=df(v,t);g=Sr(g,N),h[S]={css:O,vars:I}}),m){const{css:S,vars:v,varsWithDefaults:I}=df(m,t);g=Sr(g,I),h[l]={css:S,vars:v}}function b(S,v){let I=o;if(o==="class"&&(I=".%s"),o==="data"&&(I="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(I=`[${o}="%s"]`),S){if(I==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${a[S]?.palette?.mode||S})`]:{":root":v}};if(I)return e.defaultColorScheme===S?`:root, ${I.replace("%s",String(S))}`:I.replace("%s",String(S))}return":root"}return{vars:g,generateThemeVars:()=>{let S={...u};return Object.entries(h).forEach(([,{vars:v}])=>{S=Sr(S,v)}),S},generateStyleSheets:()=>{const S=[],v=e.defaultColorScheme||"light";function I(T,P){Object.keys(P).length&&S.push(typeof T=="string"?{[T]:{...P}}:T)}I(r(void 0,{...d}),d);const{[v]:O,...N}=h;if(O){const{css:T}=O,P=a[v]?.palette?.mode,M=!n&&P?{colorScheme:P,...T}:{...T};I(r(v,{...M}),M)}return Object.entries(N).forEach(([T,{css:P}])=>{const M=a[T]?.palette?.mode,x=!n&&M?{colorScheme:M,...P}:{...P};I(r(T,{...x}),x)}),i&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function l9(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const da={black:"#000",white:"#fff"},c9={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ii={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ai={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},fa={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},si={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},li={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ci={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function wb(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:da.white,default:da.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Sb=wb();function Eb(){return{text:{primary:da.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:da.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ff=Eb();function Ib(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=jl(e.main,o):t==="dark"&&(e.dark=Ml(e.main,i)))}function Ab(e,t,r,n,o){const i=o.light||o,a=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function u9(e="light"){return e==="dark"?{main:si[200],light:si[50],dark:si[400]}:{main:si[700],light:si[400],dark:si[800]}}function d9(e="light"){return e==="dark"?{main:ii[200],light:ii[50],dark:ii[400]}:{main:ii[500],light:ii[300],dark:ii[700]}}function f9(e="light"){return e==="dark"?{main:ai[500],light:ai[300],dark:ai[700]}:{main:ai[700],light:ai[400],dark:ai[800]}}function m9(e="light"){return e==="dark"?{main:li[400],light:li[300],dark:li[700]}:{main:li[700],light:li[500],dark:li[900]}}function p9(e="light"){return e==="dark"?{main:ci[400],light:ci[300],dark:ci[700]}:{main:ci[800],light:ci[500],dark:ci[900]}}function g9(e="light"){return e==="dark"?{main:fa[400],light:fa[300],dark:fa[700]}:{main:"#ed6c02",light:fa[500],dark:fa[900]}}function h9(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function mf(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||u9(t),s=e.secondary||d9(t),l=e.error||f9(t),c=e.info||m9(t),u=e.success||p9(t),d=e.warning||g9(t);function f(p){if(o)return h9(p);const b=bb(p,ff.text.primary)>=r?ff.text.primary:Sb.text.primary;if(process.env.NODE_ENV!=="production"){const y=bb(p,b);y<3&&console.error([`MUI: The contrast ratio of ${y}:1 for ${b} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
296
|
+
`))}return b}const g=({color:p,name:b,mainShade:y=500,lightShade:w=300,darkShade:S=700})=>{if(p={...p},!p.main&&p[y]&&(p.main=p[y]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
297
|
+
The color object needs to have a \`main\` property or a \`${y}\` property.`:Jn(11,b?` (${b})`:"",y));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
298
|
+
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
183
299
|
|
|
184
300
|
Did you intend to use one of the following approaches?
|
|
185
301
|
|
|
@@ -191,19 +307,19 @@ const theme1 = createTheme({ palette: {
|
|
|
191
307
|
|
|
192
308
|
const theme2 = createTheme({ palette: {
|
|
193
309
|
primary: { main: green[500] },
|
|
194
|
-
} });`:
|
|
195
|
-
`)),Object.keys(
|
|
310
|
+
} });`:Jn(12,b?` (${b})`:"",JSON.stringify(p.main)));return o?(Ab(o,p,"light",w,n),Ab(o,p,"dark",S,n)):(Ib(p,"light",w,n),Ib(p,"dark",S,n)),p.contrastText||(p.contrastText=f(p.main)),p};let h;return t==="light"?h=wb():t==="dark"&&(h=Eb()),process.env.NODE_ENV!=="production"&&(h||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Sr({common:{...da},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:l,name:"error"}),warning:g({color:d,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:u,name:"success"}),grey:c9,contrastThreshold:r,getContrastText:f,augmentColor:g,tonalOffset:n,...h},i)}function v9(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function b9(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function y9(e){return Math.round(e*1e5)/1e5}const Nb={textTransform:"uppercase"},Ob='"Roboto", "Helvetica", "Arial", sans-serif';function C9(e,t){const{fontFamily:r=Ob,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=n/14,g=u||(p=>`${p/l*f}rem`),h=(p,b,y,w,S)=>({fontFamily:r,fontWeight:p,fontSize:g(b),lineHeight:y,...r===Ob?{letterSpacing:`${y9(w/b)}em`}:{},...S,...c}),m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(a,14,1.75,.4,Nb),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Nb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sr({htmlFontSize:l,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}const x9=.2,w9=.14,S9=.12;function Ct(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${x9})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${w9})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${S9})`].join(",")}const E9=["none",Ct(0,2,1,-1,0,1,1,0,0,1,3,0),Ct(0,3,1,-2,0,2,2,0,0,1,5,0),Ct(0,3,3,-2,0,3,4,0,0,1,8,0),Ct(0,2,4,-1,0,4,5,0,0,1,10,0),Ct(0,3,5,-1,0,5,8,0,0,1,14,0),Ct(0,3,5,-1,0,6,10,0,0,1,18,0),Ct(0,4,5,-2,0,7,10,1,0,2,16,1),Ct(0,5,5,-3,0,8,10,1,0,3,14,2),Ct(0,5,6,-3,0,9,12,1,0,3,16,2),Ct(0,6,6,-3,0,10,14,1,0,4,18,3),Ct(0,6,7,-4,0,11,15,1,0,4,20,3),Ct(0,7,8,-4,0,12,17,2,0,5,22,4),Ct(0,7,8,-4,0,13,19,2,0,5,24,4),Ct(0,7,9,-4,0,14,21,2,0,5,26,4),Ct(0,8,9,-5,0,15,22,2,0,6,28,5),Ct(0,8,10,-5,0,16,24,2,0,6,30,5),Ct(0,8,11,-5,0,17,26,2,0,6,32,5),Ct(0,9,11,-5,0,18,28,2,0,7,34,6),Ct(0,9,12,-6,0,19,29,2,0,7,36,6),Ct(0,10,13,-6,0,20,31,3,0,8,38,7),Ct(0,10,13,-6,0,21,33,3,0,8,40,7),Ct(0,10,14,-6,0,22,35,3,0,8,42,7),Ct(0,11,14,-7,0,23,36,3,0,9,44,8),Ct(0,11,15,-7,0,24,38,3,0,9,46,8)],I9={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},A9={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Tb(e){return`${Math.round(e)}ms`}function N9(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function O9(e){const t={...I9,...e.easing},r={...A9,...e.duration};return{getAutoHeightDuration:N9,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0,...c}=i;if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!Number.isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
311
|
+
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Tb(a)} ${s} ${typeof l=="string"?l:Tb(l)}`).join(",")},...e,easing:t,duration:r}}const T9={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function P9(e){return wn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Pb(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!P9(s)||a.startsWith("unstable_")?delete n[a]:wn(s)&&(n[a]={...s},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
196
312
|
|
|
197
313
|
const theme = ${JSON.stringify(t,null,2)};
|
|
198
314
|
|
|
199
315
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
200
316
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
201
317
|
|
|
202
|
-
export default theme;`}function
|
|
203
|
-
`))}
|
|
204
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function $w(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const mr=e=>{try{return e()}catch{}},Dw=(e="mui")=>nw(e);function Ql(e,t,r,i,n){if(!r)return;r=r===!0?{}:r;const o=n==="dark"?"dark":"light";if(!i){t[n]=Mw({...r,palette:{mode:o,...r?.palette},colorSpace:e});return}const{palette:a,...u}=ql({...i,palette:{mode:o,...r?.palette},colorSpace:e});return t[n]={...r,palette:a,opacity:{..._g(o),...r?.opacity},overlays:r?.overlays||Gg(o)},u}function _w(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:n=!1,cssVarPrefix:o="mui",nativeColor:a=!1,shouldSkipGeneratingVar:u=Vw,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(r)[0],f=i||(r.light&&d!=="light"?"light":d),g=Dw(o),{[f]:h,light:p,dark:m,...b}=r,y={...b};let I=h;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(I=!0),!I)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Xr(21,f));let x;a&&(x="oklch");const v=Ql(x,y,I,c,f);p&&!y.light&&Ql(x,y,p,void 0,"light"),m&&!y.dark&&Ql(x,y,m,void 0,"dark");let S={defaultColorScheme:f,...v,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:g,colorSchemes:y,font:{...hw(v.typography),...v.font},spacing:$w(c.spacing)};Object.keys(S.colorSchemes).forEach(V=>{const C=S.colorSchemes[V].palette,N=P=>{const j=P.split("-"),B=j[1],U=j[2];return g(P,C[B][U])};C.mode==="light"&&(Y(C.common,"background","#fff"),Y(C.common,"onBackground","#000")),C.mode==="dark"&&(Y(C.common,"background","#000"),Y(C.common,"onBackground","#fff"));function F(P,j,B){if(x){let U;return P===pn&&(U=`transparent ${((1-B)*100).toFixed(0)}%`),P===Me&&(U=`#000 ${(B*100).toFixed(0)}%`),P===Ve&&(U=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${x}, ${j}, ${U})`}return P(j,B)}if(Bw(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){Y(C.Alert,"errorColor",F(Me,C.error.light,.6)),Y(C.Alert,"infoColor",F(Me,C.info.light,.6)),Y(C.Alert,"successColor",F(Me,C.success.light,.6)),Y(C.Alert,"warningColor",F(Me,C.warning.light,.6)),Y(C.Alert,"errorFilledBg",N("palette-error-main")),Y(C.Alert,"infoFilledBg",N("palette-info-main")),Y(C.Alert,"successFilledBg",N("palette-success-main")),Y(C.Alert,"warningFilledBg",N("palette-warning-main")),Y(C.Alert,"errorFilledColor",mr(()=>C.getContrastText(C.error.main))),Y(C.Alert,"infoFilledColor",mr(()=>C.getContrastText(C.info.main))),Y(C.Alert,"successFilledColor",mr(()=>C.getContrastText(C.success.main))),Y(C.Alert,"warningFilledColor",mr(()=>C.getContrastText(C.warning.main))),Y(C.Alert,"errorStandardBg",F(Ve,C.error.light,.9)),Y(C.Alert,"infoStandardBg",F(Ve,C.info.light,.9)),Y(C.Alert,"successStandardBg",F(Ve,C.success.light,.9)),Y(C.Alert,"warningStandardBg",F(Ve,C.warning.light,.9)),Y(C.Alert,"errorIconColor",N("palette-error-main")),Y(C.Alert,"infoIconColor",N("palette-info-main")),Y(C.Alert,"successIconColor",N("palette-success-main")),Y(C.Alert,"warningIconColor",N("palette-warning-main")),Y(C.AppBar,"defaultBg",N("palette-grey-100")),Y(C.Avatar,"defaultBg",N("palette-grey-400")),Y(C.Button,"inheritContainedBg",N("palette-grey-300")),Y(C.Button,"inheritContainedHoverBg",N("palette-grey-A100")),Y(C.Chip,"defaultBorder",N("palette-grey-400")),Y(C.Chip,"defaultAvatarColor",N("palette-grey-700")),Y(C.Chip,"defaultIconColor",N("palette-grey-700")),Y(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(C.LinearProgress,"primaryBg",F(Ve,C.primary.main,.62)),Y(C.LinearProgress,"secondaryBg",F(Ve,C.secondary.main,.62)),Y(C.LinearProgress,"errorBg",F(Ve,C.error.main,.62)),Y(C.LinearProgress,"infoBg",F(Ve,C.info.main,.62)),Y(C.LinearProgress,"successBg",F(Ve,C.success.main,.62)),Y(C.LinearProgress,"warningBg",F(Ve,C.warning.main,.62)),Y(C.Skeleton,"bg",x?F(pn,C.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),Y(C.Slider,"primaryTrack",F(Ve,C.primary.main,.62)),Y(C.Slider,"secondaryTrack",F(Ve,C.secondary.main,.62)),Y(C.Slider,"errorTrack",F(Ve,C.error.main,.62)),Y(C.Slider,"infoTrack",F(Ve,C.info.main,.62)),Y(C.Slider,"successTrack",F(Ve,C.success.main,.62)),Y(C.Slider,"warningTrack",F(Ve,C.warning.main,.62));const P=x?F(Me,C.background.default,.6825):Qa(C.background.default,.8);Y(C.SnackbarContent,"bg",P),Y(C.SnackbarContent,"color",mr(()=>x?Jl.text.primary:C.getContrastText(P))),Y(C.SpeedDialAction,"fabHoverBg",Qa(C.background.paper,.15)),Y(C.StepConnector,"border",N("palette-grey-400")),Y(C.StepContent,"border",N("palette-grey-400")),Y(C.Switch,"defaultColor",N("palette-common-white")),Y(C.Switch,"defaultDisabledColor",N("palette-grey-100")),Y(C.Switch,"primaryDisabledColor",F(Ve,C.primary.main,.62)),Y(C.Switch,"secondaryDisabledColor",F(Ve,C.secondary.main,.62)),Y(C.Switch,"errorDisabledColor",F(Ve,C.error.main,.62)),Y(C.Switch,"infoDisabledColor",F(Ve,C.info.main,.62)),Y(C.Switch,"successDisabledColor",F(Ve,C.success.main,.62)),Y(C.Switch,"warningDisabledColor",F(Ve,C.warning.main,.62)),Y(C.TableCell,"border",F(Ve,F(pn,C.divider,1),.88)),Y(C.Tooltip,"bg",F(pn,C.grey[700],.92))}if(C.mode==="dark"){Y(C.Alert,"errorColor",F(Ve,C.error.light,.6)),Y(C.Alert,"infoColor",F(Ve,C.info.light,.6)),Y(C.Alert,"successColor",F(Ve,C.success.light,.6)),Y(C.Alert,"warningColor",F(Ve,C.warning.light,.6)),Y(C.Alert,"errorFilledBg",N("palette-error-dark")),Y(C.Alert,"infoFilledBg",N("palette-info-dark")),Y(C.Alert,"successFilledBg",N("palette-success-dark")),Y(C.Alert,"warningFilledBg",N("palette-warning-dark")),Y(C.Alert,"errorFilledColor",mr(()=>C.getContrastText(C.error.dark))),Y(C.Alert,"infoFilledColor",mr(()=>C.getContrastText(C.info.dark))),Y(C.Alert,"successFilledColor",mr(()=>C.getContrastText(C.success.dark))),Y(C.Alert,"warningFilledColor",mr(()=>C.getContrastText(C.warning.dark))),Y(C.Alert,"errorStandardBg",F(Me,C.error.light,.9)),Y(C.Alert,"infoStandardBg",F(Me,C.info.light,.9)),Y(C.Alert,"successStandardBg",F(Me,C.success.light,.9)),Y(C.Alert,"warningStandardBg",F(Me,C.warning.light,.9)),Y(C.Alert,"errorIconColor",N("palette-error-main")),Y(C.Alert,"infoIconColor",N("palette-info-main")),Y(C.Alert,"successIconColor",N("palette-success-main")),Y(C.Alert,"warningIconColor",N("palette-warning-main")),Y(C.AppBar,"defaultBg",N("palette-grey-900")),Y(C.AppBar,"darkBg",N("palette-background-paper")),Y(C.AppBar,"darkColor",N("palette-text-primary")),Y(C.Avatar,"defaultBg",N("palette-grey-600")),Y(C.Button,"inheritContainedBg",N("palette-grey-800")),Y(C.Button,"inheritContainedHoverBg",N("palette-grey-700")),Y(C.Chip,"defaultBorder",N("palette-grey-700")),Y(C.Chip,"defaultAvatarColor",N("palette-grey-300")),Y(C.Chip,"defaultIconColor",N("palette-grey-300")),Y(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(C.LinearProgress,"primaryBg",F(Me,C.primary.main,.5)),Y(C.LinearProgress,"secondaryBg",F(Me,C.secondary.main,.5)),Y(C.LinearProgress,"errorBg",F(Me,C.error.main,.5)),Y(C.LinearProgress,"infoBg",F(Me,C.info.main,.5)),Y(C.LinearProgress,"successBg",F(Me,C.success.main,.5)),Y(C.LinearProgress,"warningBg",F(Me,C.warning.main,.5)),Y(C.Skeleton,"bg",x?F(pn,C.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),Y(C.Slider,"primaryTrack",F(Me,C.primary.main,.5)),Y(C.Slider,"secondaryTrack",F(Me,C.secondary.main,.5)),Y(C.Slider,"errorTrack",F(Me,C.error.main,.5)),Y(C.Slider,"infoTrack",F(Me,C.info.main,.5)),Y(C.Slider,"successTrack",F(Me,C.success.main,.5)),Y(C.Slider,"warningTrack",F(Me,C.warning.main,.5));const P=x?F(Ve,C.background.default,.985):Qa(C.background.default,.98);Y(C.SnackbarContent,"bg",P),Y(C.SnackbarContent,"color",mr(()=>x?Fg.text.primary:C.getContrastText(P))),Y(C.SpeedDialAction,"fabHoverBg",Qa(C.background.paper,.15)),Y(C.StepConnector,"border",N("palette-grey-600")),Y(C.StepContent,"border",N("palette-grey-600")),Y(C.Switch,"defaultColor",N("palette-grey-300")),Y(C.Switch,"defaultDisabledColor",N("palette-grey-600")),Y(C.Switch,"primaryDisabledColor",F(Me,C.primary.main,.55)),Y(C.Switch,"secondaryDisabledColor",F(Me,C.secondary.main,.55)),Y(C.Switch,"errorDisabledColor",F(Me,C.error.main,.55)),Y(C.Switch,"infoDisabledColor",F(Me,C.info.main,.55)),Y(C.Switch,"successDisabledColor",F(Me,C.success.main,.55)),Y(C.Switch,"warningDisabledColor",F(Me,C.warning.main,.55)),Y(C.TableCell,"border",F(Me,F(pn,C.divider,1),.68)),Y(C.Tooltip,"bg",F(pn,C.grey[700],.92))}Sr(C.background,"default"),Sr(C.background,"paper"),Sr(C.common,"background"),Sr(C.common,"onBackground"),Sr(C,"divider"),Object.keys(C).forEach(P=>{const j=C[P];P!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&Y(C[P],"mainChannel",Wi(Ui(j.main))),j.light&&Y(C[P],"lightChannel",Wi(Ui(j.light))),j.dark&&Y(C[P],"darkChannel",Wi(Ui(j.dark))),j.contrastText&&Y(C[P],"contrastTextChannel",Wi(Ui(j.contrastText))),P==="text"&&(Sr(C[P],"primary"),Sr(C[P],"secondary")),P==="action"&&(j.active&&Sr(C[P],"active"),j.selected&&Sr(C[P],"selected")))})}),S=t.reduce((V,C)=>Rt(V,C),S);const E={prefix:o,disableCssColorScheme:n,shouldSkipGeneratingVar:u,getSelector:Lw(S),enableContrastVars:a},{vars:w,generateThemeVars:T,generateStyleSheets:k}=aw(S,E);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([V,C])=>{S[V]=C}),S.generateThemeVars=T,S.generateStyleSheets=k,S.generateSpacing=function(){return yg(c.spacing,Dl(this))},S.getColorSchemeSelector=sw(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=u,S.unstable_sxConfig={...Ua,...c?.unstable_sxConfig},S.unstable_sx=function(C){return Un({sx:C,theme:this})},S.toRuntimeSource=$g,S}function Hg(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Zl({...r===!0?{}:r.palette,mode:t})})}function Gw(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:n=r?void 0:{light:!0},defaultColorScheme:o=r?.mode,...a}=e,u=o||"light",s=n?.[u],l={...n,...r?{[u]:{...typeof s!="boolean"&&s,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return ql(e,...t);let c=r;"palette"in e||l[u]&&(l[u]!==!0?c=l[u].palette:u==="dark"&&(c={mode:"dark"}));const d=ql({...e,palette:c},...t);return d.defaultColorScheme=u,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},Hg(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},Hg(d,"light",l.light)),d}return!r&&!("light"in l)&&u==="light"&&(l.light=!0),_w({...a,colorSchemes:l,defaultColorScheme:u,...typeof i!="boolean"&&i},...t)}const Hw=Gw(),Ww="$$material";function zw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xw=WS({themeId:Ww,defaultTheme:Hw,rootShouldForwardProp:e=>zw(e)&&e!=="classes"}),Uw=rw;process.env.NODE_ENV!=="production"&&(Ie.node,Ie.object.isRequired);function Yw(e){return tw(e)}function Jw(e){return Hl("MuiSvgIcon",e)}$S("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zw=e=>{const{color:t,fontSize:r,classes:i}=e,n={root:["root",t!=="inherit"&&`color${cn(t)}`,`fontSize${cn(r)}`]};return PI(n,Jw,i)},qw=Xw("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${cn(r.color)}`],t[`fontSize${cn(r.fontSize)}`]]}})(Uw(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ka=R.forwardRef(function(t,r){const i=Yw({props:t,name:"MuiSvgIcon"}),{children:n,className:o,color:a="inherit",component:u="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24",...g}=i,h=R.isValidElement(n)&&n.type==="svg",p={...i,color:a,component:u,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},m={};c||(m.viewBox=f);const b=Zw(p);return A.jsxs(qw,{as:u,className:pr(b.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...m,...g,...h&&n.props,ownerState:p,children:[h?n.props.children:n,d?A.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={children:Ie.node,classes:Ie.object,className:Ie.string,color:Ie.oneOfType([Ie.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ie.string]),component:Ie.elementType,fontSize:Ie.oneOfType([Ie.oneOf(["inherit","large","medium","small"]),Ie.string]),htmlColor:Ie.string,inheritViewBox:Ie.bool,shapeRendering:Ie.string,sx:Ie.oneOfType([Ie.arrayOf(Ie.oneOfType([Ie.func,Ie.object,Ie.bool])),Ie.func,Ie.object]),titleAccess:Ie.string,viewBox:Ie.string}),Ka.muiName="SvgIcon";function Qw(e,t){function r(i,n){return A.jsx(Ka,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:n,...i,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Ka.muiName,R.memo(R.forwardRef(r))}const Kw=Qw(A.jsx("path",{d:"M14.71 6.71a.996.996 0 0 0-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41"}),"ChevronLeftRounded"),Wg=O.forwardRef(({id:e,label:t,placeholder:r="Select...",value:i,selectedValues:n,onChange:o,onColorChange:a,selectOptions:u,loading:s=!1,multiSelect:l=!1,disabled:c=!1,isClearable:d=!0,required:f=!1,message:g,messageType:h="default",originalCase:p=!1,wrapperClassName:m,selectClassName:b,labelClassName:y,helpText:I,size:x="medium",filterOption:v,selectProps:S,components:E,tags:w,tooltip:T},k)=>{const V=()=>{switch(x){case"small":return{height:"28px",minHeight:"28px",fontSize:"12px",padding:"2px 8px"};case"large":return{height:"40px",minHeight:"40px",fontSize:"16px",padding:"8px 12px"};default:return{height:"32px",minHeight:"32px",fontSize:"14px",padding:"4px 10px"}}},C=_=>g&&h==="error"?"rgb(253 164 155)":g&&h==="success"?"rgb(34 197 94)":g&&h==="info"?"rgb(59 130 246)":_.isFocused?"rgb(0 108 207)":"rgb(229 229 229)",N=V(),F={control:(_,X)=>({..._,borderColor:C(X),backgroundColor:X.isDisabled?"rgb(245 245 245)":"rgb(255 255 255)",borderRadius:"6px",...N,opacity:X.isDisabled?.6:1,cursor:X.isDisabled?"not-allowed":"default",boxShadow:X.isFocused?"0 0 0 2px rgba(59, 130, 246, 0.1)":"none","&:hover":{borderColor:C(X)},transition:"all 0.2s ease-in-out"}),valueContainer:_=>({..._,fontSize:N.fontSize,padding:0,height:"auto",minHeight:"20px"}),input:_=>({..._,margin:"0",padding:"0",color:"inherit"}),indicatorsContainer:_=>({..._,fontSize:N.fontSize,padding:0,height:"20px"}),option:(_,X)=>({..._,fontFamily:"Inter",fontWeight:500,fontSize:N.fontSize,lineHeight:"1.2",borderBottom:"1px solid rgb(229 229 229)",backgroundColor:X.isSelected?"rgb(59 130 246)":X.isFocused?"rgb(245 245 245)":"rgb(255 255 255)",color:X.isSelected?"white":X.isDisabled?"rgb(163 163 163)":"inherit",cursor:X.isDisabled?"not-allowed":"pointer",opacity:X.isDisabled?.6:1,"&:hover":{backgroundColor:X.isSelected?"rgb(59 130 246)":X.isDisabled?"rgb(255 255 255)":"rgb(245 245 245)"}}),singleValue:(_,X)=>({..._,fontFamily:"Inter",fontWeight:500,fontSize:N.fontSize,lineHeight:"1.25rem",display:"block",color:X.isDisabled?"rgb(163 163 163)":"inherit"}),placeholder:(_,X)=>({..._,fontFamily:"Inter",fontSize:N.fontSize,fontWeight:500,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:X.isDisabled?"rgb(163 163 163)":"rgb(115 115 115)"}),multiValue:_=>({..._,backgroundColor:"rgb(230 241 252)",border:"1px solid rgb(198 225 249)",borderRadius:"4px",fontFamily:"Inter"}),multiValueLabel:_=>({..._,color:"rgb(0 108 207)",fontSize:"12px"}),multiValueRemove:_=>({..._,color:"rgb(0 108 207)",":hover":{backgroundColor:"rgb(230 241 252)",color:"rgb(220 38 38)"}}),menu:_=>({..._,backgroundColor:"rgb(255 255 255)",border:"1px solid rgb(229 229 229)",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"}),loadingIndicator:_=>({..._,color:"rgb(99 102 241)"}),noOptionsMessage:_=>({..._,color:"rgb(107 114 128)",fontSize:N.fontSize})},P=()=>h==="error"?"text-red-500 dark:text-red-400":h==="success"?"text-green-500 dark:text-green-400":h==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",j=()=>{switch(x){case"small":return"extra-small";case"large":return"medium";default:return"small"}},B=()=>A.jsx("div",{className:"flex items-center",children:A.jsx(Kw,{className:"-rotate-90 transition-transform duration-200",sx:{fontSize:x==="small"?"14px":x==="large"?"18px":"16px"}})}),U=_=>A.jsx("div",{className:"absolute top-0 left-0 h-full flex items-center dark:text-neutral-100",children:_.data.label}),Q=!!n?.length,L=d&&(Q||!!i),G=(_,X)=>{o(_,X),a?.(_)};return A.jsxs("div",{className:re("flex flex-col w-full",m),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!p&&"capitalize",y),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:j(),appearance:"subtitle",children:[t,f&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),I&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:I}),A.jsx(CI,{...S,ref:k,id:e,required:f,options:u,isClearable:L,isLoading:s,isDisabled:c,styles:F,isMulti:l,value:l?n:i,placeholder:r,filterOption:v,onChange:G,className:re("react-select-container",b),classNamePrefix:"react-select",components:{IndicatorsContainer:B,SingleValue:U,...E},"aria-required":f,"aria-invalid":g&&h==="error"?"true":"false","aria-describedby":g||I?`${e}-description`:void 0}),A.jsx(He.AnimatePresence,{children:g&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:h==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",P()),appearance:"custom",size:"extra-small",variant:"medium",children:g})})}),I&&!g&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:I})]})});Wg.displayName="CreatableSelectField";const Kl=[{value:"USD",label:"United States Dollar",symbol:"$"},{value:"EUR",label:"Euro",symbol:"€"},{value:"GBP",label:"British Pound",symbol:"£"},{value:"JPY",label:"Japanese Yen",symbol:"¥"},{value:"CAD",label:"Canadian Dollar",symbol:"C$"},{value:"AUD",label:"Australian Dollar",symbol:"A$"},{value:"CHF",label:"Swiss Franc",symbol:"CHF"},{value:"CNY",label:"Chinese Yuan",symbol:"¥"},{value:"SEK",label:"Swedish Krona",symbol:"kr"},{value:"NZD",label:"New Zealand Dollar",symbol:"NZ$"}],zg={USD:"$",EUR:"€",GBP:"£",JPY:"¥",CAD:"C$",AUD:"A$",CHF:"CHF",CNY:"¥",SEK:"kr",NZD:"NZ$"},Xg=O.forwardRef(({id:e,label:t,value:r,defaultValue:i,onChange:n,disabled:o=!1,required:a=!1,placeholder:u,message:s,messageType:l="default",wrapperClassName:c,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",currencyCode:p="USD",allowCurrencyChange:m=!1,availableCurrencies:b,showSymbol:y=!0,formatValue:I=!0,min:x,max:v,decimalPlaces:S=2,inputProps:E,inputStyle:w},T)=>{const[k,V]=O.useState(!1),[C,N]=O.useState(p),[F,P]=O.useState(!1),j=b?Kl.filter(D=>b.includes(D.value)):Kl,B=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pl-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pl-12"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pl-10"}}},U=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",Q=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",$=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},L=D=>{if(D==null)return"";const Z=Number(D);return isNaN(Z)?String(D):I?Z.toLocaleString("en-US",{minimumFractionDigits:S,maximumFractionDigits:S}):String(Z)},G=D=>{const Z=D.target.value;if(Z===""||Z===null||Z===void 0)n(null,C);else{const ne=Number(Z);isNaN(ne)||n(ne,C)}},_=D=>{N(D),P(!1),n(r??null,D)},X=()=>{V(!0)},K=()=>{V(!1)},ee=B();return O.useEffect(()=>{N(p)},[p]),A.jsxs("div",{className:re("flex flex-col w-full",c),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:$(),appearance:"subtitle",children:[t,a&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),A.jsxs("div",{className:"relative",children:[y&&A.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:zg[C]||C}),A.jsx("input",{...E,ref:T,id:e,type:k?"number":"text",value:k?r??"":L(r),defaultValue:i!==void 0?k?i??"":L(i):void 0,placeholder:u,required:a,disabled:o,min:x,max:v,step:1/Math.pow(10,S),onFocus:X,onBlur:K,onChange:G,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",ee.height,ee.padding,ee.fontSize,y?ee.symbolPadding:"",U(),m?"pr-20":"",o&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:w,"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||g?`${e}-description`:void 0}),m&&A.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center",children:A.jsxs("div",{className:"relative",children:[A.jsxs("button",{type:"button",onClick:()=>P(!F),disabled:o,className:re("px-3 py-1 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 rounded-r-md border-l border-gray-300 dark:border-gray-600 transition-colors",o&&"opacity-50 cursor-not-allowed"),children:[C,A.jsx("svg",{className:"w-4 h-4 ml-1 inline-block",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),F&&A.jsx("div",{className:"absolute top-full right-0 mt-1 w-64 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md shadow-lg z-50 max-h-60 overflow-y-auto",children:j.map(D=>A.jsxs("button",{type:"button",onClick:()=>_(D.value),className:"w-full px-4 py-2 text-left text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 flex justify-between items-center",children:[A.jsxs("span",{children:[D.value," - ",D.label]}),A.jsx("span",{className:"text-gray-500",children:D.symbol})]},D.value))})]})}),F&&A.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>P(!1)})]}),A.jsx(He.AnimatePresence,{children:s&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",Q()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),g&&!s&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Xg.displayName="CurrencyInputField";const Ug=O.forwardRef(({id:e,label:t,value:r,defaultValue:i,onChange:n,disabled:o=!1,required:a=!1,message:u,messageType:s="default",wrapperClassName:l,inputClassName:c,labelClassName:d,helpText:f,size:g="medium",minDate:h,maxDate:p,startPlaceholder:m="Start date",endPlaceholder:b="End date",allowClear:y=!0,inputProps:I},x)=>{const v=r!==void 0?r:i||{startDate:null,endDate:null},S=()=>{switch(g){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},E=()=>s==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":s==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":s==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",w=()=>s==="error"?"text-red-500 dark:text-red-400":s==="success"?"text-green-500 dark:text-green-400":s==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",T=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},k=B=>{if(!B)return"";const U=B.getFullYear(),Q=String(B.getMonth()+1).padStart(2,"0"),$=String(B.getDate()).padStart(2,"0");return`${U}-${Q}-${$}`},V=B=>{if(!B)return null;const U=new Date(B);return isNaN(U.getTime())?null:U},C=B=>{const U=V(B.target.value);n({startDate:U,endDate:v.endDate})},N=B=>{const U=V(B.target.value);n({startDate:v.startDate,endDate:U})},F=()=>{n({startDate:null,endDate:null})},P=B=>B?k(B):void 0,j=S();return A.jsxs("div",{className:re("flex flex-col w-full",l),ref:x,children:[t&&A.jsx("label",{htmlFor:`${e}-start`,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",d),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:T(),appearance:"subtitle",children:[t,a&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),f&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:f}),A.jsxs("div",{className:"flex items-center gap-2",children:[A.jsx("div",{className:"flex-1",children:A.jsx("input",{...I,id:`${e}-start`,type:"date",value:k(v.startDate),onChange:C,disabled:o,required:a,min:P(h),max:P(p),placeholder:m,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,E(),o&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",c),"aria-required":a,"aria-invalid":u&&s==="error"?"true":"false","aria-describedby":u||f?`${e}-description`:void 0})}),A.jsx("div",{className:"flex-shrink-0 text-neutral-500 dark:text-neutral-400",children:A.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 12H6"})})}),A.jsx("div",{className:"flex-1",children:A.jsx("input",{...I,id:`${e}-end`,type:"date",value:k(v.endDate),onChange:N,disabled:o,required:a,min:P(v.startDate||h),max:P(p),placeholder:b,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,E(),o&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",c),"aria-required":a,"aria-invalid":u&&s==="error"?"true":"false","aria-describedby":u||f?`${e}-description`:void 0})}),y&&(v.startDate||v.endDate)&&!o&&A.jsx("button",{type:"button",onClick:F,className:"flex-shrink-0 p-1 text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-200 transition-colors","aria-label":"Clear date range",children:A.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),A.jsx("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none text-neutral-400 dark:text-neutral-500",children:A.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),A.jsx(He.AnimatePresence,{children:u&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:s==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",w()),appearance:"custom",size:"extra-small",variant:"medium",children:u})})}),f&&!u&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:f})]})});Ug.displayName="DateRange";const Yg=O.forwardRef(({id:e,label:t,value:r,defaultValue:i,onChange:n,onImmediateChange:o,disabled:a=!1,required:u=!1,placeholder:s,message:l,messageType:c="default",wrapperClassName:d,inputClassName:f,labelClassName:g,helpText:h,size:p="medium",type:m="text",debounceTimeout:b=300,min:y,max:I,maxLength:x,pattern:v,inputProps:S,inputStyle:E,onKeyDown:w,onFocus:T,onBlur:k},V)=>{const[C,N]=O.useState(r||i||""),[F,P]=O.useState(r||i||""),j=()=>{switch(p){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},B=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",U=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",Q=()=>{switch(p){case"small":return"extra-small";case"large":return"medium";default:return"small"}};O.useEffect(()=>{const G=setTimeout(()=>{F!==C&&(P(C),n(C))},b);return()=>clearTimeout(G)},[C,b,n,F]),O.useEffect(()=>{r!==void 0&&r!==C&&(N(r),P(r))},[r,C]);const $=O.useCallback(G=>{const _=G.target.value;N(_),o?.(_)},[o]),L=j();return A.jsxs("div",{className:re("flex flex-col w-full",d),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",g),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:Q(),appearance:"subtitle",children:[t,u&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),h&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:h}),A.jsxs("div",{className:"relative",children:[A.jsx("input",{...S,ref:V,id:e,type:m,value:C,defaultValue:i,placeholder:s,required:u,disabled:a,min:y,max:I,maxLength:x,pattern:v,onChange:$,onKeyDown:w,onFocus:T,onBlur:k,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",L.height,L.padding,L.fontSize,B(),a&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",f),style:E,"aria-required":u,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||h?`${e}-description`:void 0}),C!==F&&A.jsx("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:A.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse"})})]}),x&&A.jsx("div",{className:"mt-1 text-right",children:A.jsxs(Ce,{className:re("text-xs",C.length>x*.9?"text-orange-500":C.length===x?"text-red-500":"text-neutral-400 dark:text-neutral-500"),appearance:"custom",size:"extra-small",children:[C.length,"/",x]})}),A.jsx(He.AnimatePresence,{children:l&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",U()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),h&&!l&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:h})]})});Yg.displayName="DebounceInputField";const Jg=O.forwardRef(({id:e,label:t,value:r,defaultValue:i,onChange:n,disabled:o=!1,required:a=!1,placeholder:u,message:s,messageType:l="default",wrapperClassName:c,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",min:p=0,max:m=100,step:b=.01,decimalPlaces:y=2,showSymbol:I=!0,allowNegative:x=!1,inputProps:v,inputStyle:S,onKeyDown:E,onFocus:w,onBlur:T},k)=>{const V=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pr-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pr-10"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pr-9"}}},C=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",N=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",F=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},P=Q=>{const $=Q.target.value;if($===""||$===null||$===void 0)n(null);else{const L=Number($);if(!isNaN(L)){let G=L;!x&&G<0&&(G=0),p!==void 0&&G<p&&(G=p),m!==void 0&&G>m&&(G=m);const _=Math.pow(10,y);G=Math.round(G*_)/_,n(G)}}},j=Q=>{w?.(Q)},B=Q=>{T?.(Q)},U=V();return A.jsxs("div",{className:re("flex flex-col w-full",c),children:[t&&A.jsx("label",{htmlFor:e,className:re("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:A.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:A.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:A.jsxs(Ce,{variant:"medium",size:F(),appearance:"subtitle",children:[t,a&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),A.jsxs("div",{className:"relative",children:[A.jsx("input",{...v,ref:k,id:e,type:"number",value:r??"",defaultValue:i??"",placeholder:u,required:a,disabled:o,min:x?void 0:p,max:m,step:b,onChange:P,onKeyDown:E,onFocus:j,onBlur:B,className:re("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",U.height,U.padding,U.fontSize,I?U.symbolPadding:"",C(),o&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:S,"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||g?`${e}-description`:void 0}),I&&A.jsx("span",{className:"absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:"%"})]}),r!=null&&A.jsxs("div",{className:"mt-1 flex justify-between items-center text-xs",children:[A.jsxs("div",{className:"flex items-center gap-2",children:[r<p&&A.jsxs("span",{className:"text-orange-500",children:["Below minimum (",p,"%)"]}),r>m&&A.jsxs("span",{className:"text-orange-500",children:["Above maximum (",m,"%)"]}),r>=p&&r<=m&&A.jsx("span",{className:"text-green-500",children:"Valid range"})]}),A.jsxs("span",{className:"text-neutral-400 dark:text-neutral-500",children:[r.toFixed(y),"%"]})]}),A.jsx(He.AnimatePresence,{children:s&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",N()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),g&&!s&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Jg.displayName="PercentageInputField";const e5=(e,t,r,i,n)=>{const o={small:"w-7 h-4 after:h-3 after:w-3 after:top-0.5 after:left-0.5",medium:"w-9 h-5 after:h-4 after:w-4 after:top-0.5 after:left-0.5",large:"w-11 h-6 after:h-5 after:w-5 after:top-0.5 after:left-0.5"},a={small:"peer-checked:after:translate-x-3",medium:"peer-checked:after:translate-x-4",large:"peer-checked:after:translate-x-5"};return re("p-0.5 rounded-full peer after:content-[''] after:absolute after:rounded-full after:transition-all bg-gray-200",o[n],a[n],{"dark:bg-neutral-400 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-500":r==="secondary"&&!e,"dark:bg-neutral-500 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-700":r==="primary"&&!e,"peer-checked:bg-blue-600 dark:peer-checked:bg-primary-900 after:bg-white dark:after:bg-primary-500":e,"after:bg-white dark:after:bg-neutral-700":!e,"text-white dark:text-neutral-900":t,"cursor-not-allowed opacity-70":i})},Zg=O.forwardRef(({id:e,checked:t,onChange:r,label:i,required:n=!1,disabled:o=!1,message:a,messageType:u="default",wrapperClassName:s,toggleClassName:l,labelClassName:c,helpText:d,size:f="medium",labelDirection:g="top",hideStatus:h=!1,statusText:p,withIcon:m=!1,icon:b,variant:y="primary",originalCase:I=!1,stopClickPropagation:x=!0},v)=>{const S=g==="top",E=g==="left",w=g==="right",T=()=>u==="error"?"text-red-500 dark:text-red-400":u==="success"?"text-green-500 dark:text-green-400":u==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",k=N=>{o||r(N.target.checked)},V=()=>A.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),C=()=>A.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})});return A.jsxs("div",{className:re("flex flex-col w-full",s),onClick:N=>{x&&N.stopPropagation()},children:[S&&i&&A.jsx("div",{className:"w-full flex justify-between flex-wrap mb-1",children:A.jsx("label",{htmlFor:e,className:re("text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!I&&"capitalize",c),children:A.jsxs(Ce,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[i,n&&A.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})}),d&&A.jsx(Ce,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:d}),A.jsxs("div",{className:"flex items-center",children:[E&&i&&A.jsx(Ce,{size:"small",variant:"medium",className:re("mr-2 text-neutral-700 dark:text-neutral-200",c),appearance:"custom",children:i}),A.jsxs("label",{className:re("relative inline-flex items-center",w||p?"":"w-min",o?"cursor-not-allowed opacity-50":"cursor-pointer"),onClick:N=>N.stopPropagation(),children:[A.jsx("input",{ref:v,type:"checkbox",id:e,onChange:k,disabled:o,checked:t,className:re("sr-only peer w-full",l),"aria-required":n,"aria-invalid":a&&u==="error"?"true":"false","aria-describedby":a||d?`${e}-description`:void 0}),A.jsx("div",{className:e5(t,m,y,o,f),children:m&&A.jsx("div",{className:"flex items-center justify-center h-full",children:A.jsx("div",{className:re("z-10 transition-all transform",f==="small"&&(t?"translate-x-2 translate-y-[-2px]":"translate-x-[-6px] translate-y-[-2px]"),f==="medium"&&(t?"translate-x-[8.5px] translate-y-[-2px]":"translate-x-[-8px] translate-y-[-2px]"),f==="large"&&(t?"translate-x-3 translate-y-[-2px]":"translate-x-[-10px] translate-y-[-2px]")),children:t?b?.checkedIcon?b.checkedIcon:A.jsx(V,{}):b?.uncheckedIcon?b.uncheckedIcon:A.jsx(C,{})})})}),w&&i&&A.jsx(Ce,{size:"small",variant:"medium",className:re("ml-2 text-neutral-700 dark:text-neutral-300",c),appearance:"custom",children:i}),!h&&A.jsx(Ce,{size:"small",variant:"medium",className:"ml-2 text-neutral-900 dark:text-neutral-100",appearance:"custom",children:p||(t?"Yes":"No")})]})]}),A.jsx(He.AnimatePresence,{children:a&&A.jsx(He.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:u==="error"?"alert":void 0,children:A.jsx(Ce,{className:re("mt-1",T()),appearance:"custom",size:"extra-small",variant:"medium",children:a})})}),d&&!a&&A.jsx("div",{id:`${e}-description`,className:"sr-only",children:d})]})});Zg.displayName="Toggle";const qg=O.forwardRef(({status:e,children:t,className:r,size:i="medium","aria-label":n},o)=>{const a=()=>{switch(i){case"small":return"text-xs px-1.5 py-0.5";case"large":return"text-base px-3 py-1.5";default:return"text-sm px-2 py-1"}},u=()=>{switch(e?.toLowerCase()){case"purple":return"bg-purple-50 text-purple-500 border border-purple-100 dark:bg-purple-950 dark:text-purple-400 dark:border-purple-800";case"blue":return"bg-blue-50 text-blue-500 border border-blue-100 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800";case"teal":return"bg-teal-50 text-teal-500 border border-teal-100 dark:bg-teal-950 dark:text-teal-400 dark:border-teal-800";case"green":return"bg-green-50 text-green-500 border border-green-100 dark:bg-green-950 dark:text-green-400 dark:border-green-800";case"yellow":return"bg-yellow-50 text-yellow-600 border border-yellow-100 dark:bg-yellow-950 dark:text-yellow-400 dark:border-yellow-800";case"orange":return"bg-orange-50 text-orange-500 border border-orange-100 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800";case"peach":return"bg-orange-50 text-orange-400 border border-orange-100 dark:bg-orange-950 dark:text-orange-300 dark:border-orange-800";case"red":return"bg-red-50 text-red-500 border border-red-100 dark:bg-red-950 dark:text-red-400 dark:border-red-800";case"navy":return"bg-slate-50 text-slate-700 border border-slate-100 dark:bg-slate-950 dark:text-slate-400 dark:border-slate-800";case"grey":return"bg-neutral-50 text-neutral-500 border border-neutral-100 dark:bg-neutral-950 dark:text-neutral-400 dark:border-neutral-800";default:return"bg-blue-50 text-blue-600 border border-blue-200 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800"}};return A.jsx("span",{ref:o,className:re("inline-flex items-center justify-center font-medium rounded-md transition-colors",a(),u(),r),"aria-label":n||`Status: ${e||"default"}`,role:"status",children:t})});qg.displayName="StatusColorMapping";const Qg=O.forwardRef(({status:e="default",children:t,appearance:r="outline",size:i="md",className:n,isRounded:o=!1,capitalize:a=!0,"aria-label":u},s)=>{const l=h=>!h||!a?h:h.replace(/\w\S*/g,p=>p.charAt(0).toUpperCase()+p.substr(1).toLowerCase()),c=()=>{switch(i){case"sm":return"text-xs px-1.5 py-0.5";case"lg":return"text-sm px-3 py-1.5";default:return"text-xs px-2 py-1"}},d=()=>{switch(e){case"primary":case"default":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-600 dark:text-yellow-300 border border-yellow-300 dark:border-yellow-700";case"error":return"bg-red-50 dark:bg-red-950 text-red-600 dark:text-red-300 border border-red-300 dark:border-red-700";case"neutral":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-600 dark:text-neutral-300 border border-neutral-300 dark:border-neutral-700";case"success":return"bg-green-50 dark:bg-green-950 text-green-600 dark:text-green-300 border border-green-300 dark:border-green-700";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";default:return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700"}},f=()=>{switch(e){case"primary":case"default":return"bg-blue-600 dark:bg-blue-700 text-white";case"warning":return"bg-yellow-600 dark:bg-yellow-700 text-white";case"success":return"bg-green-600 dark:bg-green-700 text-white";case"error":return"bg-red-600 dark:bg-red-700 text-white";case"neutral":return"bg-neutral-600 dark:bg-neutral-700 text-white";case"info":return"bg-blue-600 dark:bg-blue-700 text-white";default:return"bg-blue-600 dark:bg-blue-700 text-white"}},g=()=>r==="filled"?f():d();return A.jsx("span",{ref:s,className:re("inline-flex items-center justify-center font-medium transition-colors",o?"rounded-full":"rounded",c(),g(),n),"aria-label":u||`Badge: ${e}`,role:"status",children:l(t)})});Qg.displayName="Badge";const Kg=O.forwardRef(({status:e,children:t,additionalChildren:r,ExpandedComponent:i,expandable:n=!1,icon:o,className:a,onClick:u,"aria-label":s},l)=>{const[c,d]=O.useState(!1),f=()=>{switch(e){case"success":return"bg-green-50 dark:bg-green-950 text-green-700 dark:text-green-300 border-l-4 border-green-400 dark:border-green-600";case"error":return"bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 border-l-4 border-red-400 dark:border-red-600";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-700 dark:text-yellow-300 border-l-4 border-yellow-400 dark:border-yellow-600";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"archived":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-700 dark:text-neutral-300 border-l-4 border-neutral-400 dark:border-neutral-600";case"canceled":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"queued":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"paused":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"awaiting_action":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"skipped":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"pending":return"bg-purple-50 dark:bg-purple-950 text-purple-700 dark:text-purple-300 border-l-4 border-purple-400 dark:border-purple-600";default:return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600"}},g=()=>{if(o)return o;const m="w-5 h-5 flex-shrink-0";switch(e){case"success":return A.jsx("svg",{className:re(m,"text-green-600 dark:text-green-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.236 4.53L7.53 10.06a.75.75 0 00-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})});case"error":return A.jsx("svg",{className:re(m,"text-red-600 dark:text-red-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"warning":return A.jsx("svg",{className:re(m,"text-yellow-600 dark:text-yellow-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})});case"info":case"queued":case"pending":return A.jsx("svg",{className:re(m,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})});case"paused":return A.jsx("svg",{className:re(m,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{d:"M5.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75A.75.75 0 007.25 3h-1.5zM12.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75a.75.75 0 00-.75-.75h-1.5z"})});case"archived":case"canceled":case"skipped":return A.jsx("svg",{className:re(m,"text-gray-600 dark:text-gray-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"awaiting_action":return A.jsx("svg",{className:re(m,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z",clipRule:"evenodd"})});default:return A.jsx("svg",{className:re(m,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:A.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})})}},h=()=>{(n||e==="error")&&(d(!c),u?.())},p=n||e==="error";return A.jsxs("div",{ref:l,className:re("w-full",a),children:[A.jsxs("div",{className:re("flex items-center justify-between p-4 rounded-lg font-medium text-sm transition-all duration-200",f(),p&&["cursor-pointer select-none","hover:shadow-md","active:scale-[0.99]"]),onClick:h,role:p?"button":void 0,tabIndex:p?0:void 0,onKeyDown:m=>{p&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),h())},"aria-label":s||`Banner: ${e}`,"aria-expanded":p?c:void 0,children:[A.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[g(),A.jsx("span",{className:"flex-1",children:t})]}),A.jsxs("div",{className:"flex items-center gap-2",children:[r&&A.jsx("div",{className:"flex items-center",children:r}),p&&A.jsx("div",{className:"flex items-center",children:A.jsx("svg",{className:re("w-5 h-5 transition-transform duration-200",c?"rotate-180":"rotate-0"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})]}),A.jsx(He.AnimatePresence,{children:c&&i&&A.jsx(He.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"overflow-hidden",children:A.jsx("div",{className:"pt-2",children:A.jsx(i,{children:t})})})})]})});Kg.displayName="Banner";const e0=O.forwardRef(({pdfUrl:e,width:t="100%",height:r="100vh",className:i,iframeClassName:n,title:o="PDF Viewer",showLoading:a=!0,loadingComponent:u,errorComponent:s,onError:l,onLoad:c,allowFullScreen:d=!0,"aria-label":f},g)=>{const[h,p]=O.useState(!0),[m,b]=O.useState(!1),y=()=>{p(!1),b(!1),c?.()},I=()=>{p(!1),b(!0),l?.()},x=A.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:A.jsxs("div",{className:"text-center",children:[A.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4"}),A.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm",children:"Loading PDF..."})]})}),v=A.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:A.jsxs("div",{className:"text-center p-6",children:[A.jsx("svg",{className:"mx-auto h-12 w-12 text-red-400 mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:A.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.998-.833-2.768 0L3.046 16.5c-.77.833.192 2.5 1.732 2.5z"})}),A.jsx("h3",{className:"text-lg font-medium text-neutral-900 dark:text-neutral-100 mb-2",children:"Failed to load PDF"}),A.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm mb-4",children:"The PDF document could not be displayed. Please check the URL or try again later."}),A.jsx("button",{onClick:()=>{b(!1),p(!0);const E=document.querySelector(`iframe[src="${e}"]`);E&&(E.src=E.src)},className:"bg-blue-600 text-white px-4 py-2 rounded-md text-sm hover:bg-blue-700 transition-colors",children:"Retry"})]})});return!e||!(E=>{try{return new URL(E,window.location.href).pathname.toLowerCase().endsWith(".pdf")||E.includes("pdf")}catch{return!1}})(e)?A.jsx("div",{ref:g,className:re("relative overflow-hidden",i),style:{width:t,height:r},children:s||v}):A.jsxs("div",{ref:g,className:re("relative overflow-hidden",i),style:{width:t,height:r},"aria-label":f||`PDF Viewer: ${o}`,children:[h&&a&&A.jsx("div",{className:"absolute inset-0 z-10",children:u||x}),m&&A.jsx("div",{className:"absolute inset-0 z-10",children:s||v}),!m&&A.jsx("iframe",{src:e,title:o,className:re("w-full h-full border-none",h&&"opacity-0",n),onLoad:y,onError:I,allowFullScreen:d,loading:"lazy",sandbox:"allow-same-origin allow-scripts allow-forms","aria-label":f||`PDF document: ${o}`}),A.jsx("div",{className:"sr-only",children:"PDF document viewer. Use your browser's PDF controls to navigate, zoom, or download the document."})]})});e0.displayName="PdfViewer";const t0=({ref:e,handler:t,enabled:r=!0})=>{O.useEffect(()=>{if(!r)return;const i=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i)}},[e,t,r])},r0=O.forwardRef(({children:e,component:t,placement:r="bottom",isOpen:i,toggleMenu:n,parentContainer:o,noSpacing:a=!1,triggerClassName:u,containerClassName:s,className:l,showArrow:c=!1,offset:d=8,disableOutsideClick:f=!1,"aria-label":g,disabled:h=!1},p)=>{const m=O.useRef(null),b=O.useRef(null);t0({ref:b,handler:()=>{!f&&i&&n?.()},enabled:i&&!f}),O.useEffect(()=>{if(!i||!m.current||!b.current)return;const S=m.current,E=b.current,w=S.getBoundingClientRect(),T=E.getBoundingClientRect(),k={width:window.innerWidth,height:window.innerHeight};let V=0,C=0;switch(r){case"top":V=w.top-T.height-d,C=w.left+(w.width-T.width)/2;break;case"top-start":V=w.top-T.height-d,C=w.left;break;case"top-end":V=w.top-T.height-d,C=w.right-T.width;break;case"bottom":V=w.bottom+d,C=w.left+(w.width-T.width)/2;break;case"bottom-start":V=w.bottom+d,C=w.left;break;case"bottom-end":V=w.bottom+d,C=w.right-T.width;break;case"left":V=w.top+(w.height-T.height)/2,C=w.left-T.width-d;break;case"left-start":V=w.top,C=w.left-T.width-d;break;case"left-end":V=w.bottom-T.height,C=w.left-T.width-d;break;case"right":V=w.top+(w.height-T.height)/2,C=w.right+d;break;case"right-start":V=w.top,C=w.right+d;break;case"right-end":V=w.bottom-T.height,C=w.right+d;break}C<0&&(C=8),C+T.width>k.width&&(C=k.width-T.width-8),V<0&&(V=8),V+T.height>k.height&&(V=k.height-T.height-8),E.style.top=`${V}px`,E.style.left=`${C}px`},[i,r,d]);const y=S=>{h||n?.(S)},I=S=>{S.key==="Escape"&&i&&n?.()},x=()=>{const S="absolute w-2 h-2 bg-white dark:bg-neutral-800 transform rotate-45 border";switch(r){case"top":case"top-start":case"top-end":return re(S,"bottom-[-4px] border-t-0 border-l-0");case"bottom":case"bottom-start":case"bottom-end":return re(S,"top-[-4px] border-b-0 border-r-0");case"left":case"left-start":case"left-end":return re(S,"right-[-4px] border-l-0 border-b-0");case"right":case"right-start":case"right-end":return re(S,"left-[-4px] border-r-0 border-t-0");default:return re(S,"top-[-4px] border-b-0 border-r-0")}},v=()=>{switch(r){case"top":case"bottom":return{left:"50%",transform:"translateX(-50%)"};case"top-start":case"bottom-start":return{left:"12px"};case"top-end":case"bottom-end":return{right:"12px"};case"left":case"right":return{top:"50%",transform:"translateY(-50%)"};case"left-start":case"right-start":return{top:"12px"};case"left-end":case"right-end":return{bottom:"12px"};default:return{left:"50%",transform:"translateX(-50%)"}}};return A.jsxs("div",{ref:p,className:re("relative inline-block",l),children:[A.jsx("button",{ref:m,onClick:y,onKeyDown:I,className:re("flex items-center justify-center outline-none focus:outline-none transition-colors",!a&&"p-2",h&&"opacity-50 cursor-not-allowed",u),"aria-label":g,"aria-expanded":i,"aria-haspopup":"true",disabled:h,type:"button",children:e}),i&&Sn.createPortal(A.jsx(He.AnimatePresence,{children:A.jsxs(He.motion.div,{ref:b,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},className:re("fixed z-[9999] bg-white dark:bg-neutral-800 rounded-lg shadow-lg border border-neutral-200 dark:border-neutral-700","focus:outline-none",s),style:{minWidth:"120px"},role:"menu","aria-orientation":"vertical",tabIndex:-1,children:[c&&A.jsx("div",{className:x(),style:v()}),A.jsx("div",{className:"relative",children:t})]})}),document.getElementById(o)||document.body)]})});r0.displayName="Popper";const Yi=e=>typeof e=="number"&&!isNaN(e),mn=e=>typeof e=="string",Vt=e=>typeof e=="function",es=e=>mn(e)||Vt(e)?e:null,ec=e=>O.isValidElement(e)||mn(e)||Vt(e)||Yi(e);function t5(e,t,r){r===void 0&&(r=300);const{scrollHeight:i,style:n}=e;requestAnimationFrame(()=>{n.minHeight="initial",n.height=i+"px",n.transition=`all ${r}ms`,requestAnimationFrame(()=>{n.height="0",n.padding="0",n.margin="0",setTimeout(t,r)})})}function ts(e){let{enter:t,exit:r,appendPosition:i=!1,collapse:n=!0,collapseDuration:o=300}=e;return function(a){let{children:u,position:s,preventExitTransition:l,done:c,nodeRef:d,isIn:f,playToast:g}=a;const h=i?`${t}--${s}`:t,p=i?`${r}--${s}`:r,m=O.useRef(0);return O.useLayoutEffect(()=>{const b=d.current,y=h.split(" "),I=x=>{x.target===d.current&&(g(),b.removeEventListener("animationend",I),b.removeEventListener("animationcancel",I),m.current===0&&x.type!=="animationcancel"&&b.classList.remove(...y))};b.classList.add(...y),b.addEventListener("animationend",I),b.addEventListener("animationcancel",I)},[]),O.useEffect(()=>{const b=d.current,y=()=>{b.removeEventListener("animationend",y),n?t5(b,c,o):c()};f||(l?y():(m.current=1,b.className+=` ${p}`,b.addEventListener("animationend",y)))},[f]),O.createElement(O.Fragment,null,u)}}function n0(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Ct=new Map;let Ji=[];const tc=new Set,r5=e=>tc.forEach(t=>t(e)),i0=()=>Ct.size>0;function o0(e,t){var r;if(t)return!((r=Ct.get(t))==null||!r.isToastActive(e));let i=!1;return Ct.forEach(n=>{n.isToastActive(e)&&(i=!0)}),i}function a0(e,t){ec(e)&&(i0()||Ji.push({content:e,options:t}),Ct.forEach(r=>{r.buildToast(e,t)}))}function s0(e,t){Ct.forEach(r=>{t!=null&&t!=null&&t.containerId?t?.containerId===r.id&&r.toggle(e,t?.id):r.toggle(e,t?.id)})}function n5(e){const{subscribe:t,getSnapshot:r,setProps:i}=O.useRef(function(o){const a=o.containerId||1;return{subscribe(u){const s=function(c,d,f){let g=1,h=0,p=[],m=[],b=[],y=d;const I=new Map,x=new Set,v=()=>{b=Array.from(I.values()),x.forEach(w=>w())},S=w=>{m=w==null?[]:m.filter(T=>T!==w),v()},E=w=>{const{toastId:T,onOpen:k,updateId:V,children:C}=w.props,N=V==null;w.staleId&&I.delete(w.staleId),I.set(T,w),m=[...m,w.props.toastId].filter(F=>F!==w.staleId),v(),f(n0(w,N?"added":"updated")),N&&Vt(k)&&k(O.isValidElement(C)&&C.props)};return{id:c,props:y,observe:w=>(x.add(w),()=>x.delete(w)),toggle:(w,T)=>{I.forEach(k=>{T!=null&&T!==k.props.toastId||Vt(k.toggle)&&k.toggle(w)})},removeToast:S,toasts:I,clearQueue:()=>{h-=p.length,p=[]},buildToast:(w,T)=>{if((G=>{let{containerId:_,toastId:X,updateId:K}=G;const ee=_?_!==c:c!==1,D=I.has(X)&&K==null;return ee||D})(T))return;const{toastId:k,updateId:V,data:C,staleId:N,delay:F}=T,P=()=>{S(k)},j=V==null;j&&h++;const B={...y,style:y.toastStyle,key:g++,...Object.fromEntries(Object.entries(T).filter(G=>{let[_,X]=G;return X!=null})),toastId:k,updateId:V,data:C,closeToast:P,isIn:!1,className:es(T.className||y.toastClassName),bodyClassName:es(T.bodyClassName||y.bodyClassName),progressClassName:es(T.progressClassName||y.progressClassName),autoClose:!T.isLoading&&(U=T.autoClose,Q=y.autoClose,U===!1||Yi(U)&&U>0?U:Q),deleteToast(){const G=I.get(k),{onClose:_,children:X}=G.props;Vt(_)&&_(O.isValidElement(X)&&X.props),f(n0(G,"removed")),I.delete(k),h--,h<0&&(h=0),p.length>0?E(p.shift()):v()}};var U,Q;B.closeButton=y.closeButton,T.closeButton===!1||ec(T.closeButton)?B.closeButton=T.closeButton:T.closeButton===!0&&(B.closeButton=!ec(y.closeButton)||y.closeButton);let $=w;O.isValidElement(w)&&!mn(w.type)?$=O.cloneElement(w,{closeToast:P,toastProps:B,data:C}):Vt(w)&&($=w({closeToast:P,toastProps:B,data:C}));const L={content:$,props:B,staleId:N};y.limit&&y.limit>0&&h>y.limit&&j?p.push(L):Yi(F)?setTimeout(()=>{E(L)},F):E(L)},setProps(w){y=w},setToggle:(w,T)=>{I.get(w).toggle=T},isToastActive:w=>m.some(T=>T===w),getSnapshot:()=>b}}(a,o,r5);Ct.set(a,s);const l=s.observe(u);return Ji.forEach(c=>a0(c.content,c.options)),Ji=[],()=>{l(),Ct.delete(a)}},setProps(u){var s;(s=Ct.get(a))==null||s.setProps(u)},getSnapshot(){var u;return(u=Ct.get(a))==null?void 0:u.getSnapshot()}}}(e)).current;i(e);const n=O.useSyncExternalStore(t,r,r);return{getToastToRender:function(o){if(!n)return[];const a=new Map;return e.newestOnTop&&n.reverse(),n.forEach(u=>{const{position:s}=u.props;a.has(s)||a.set(s,[]),a.get(s).push(u)}),Array.from(a,u=>o(u[0],u[1]))},isToastActive:o0,count:n?.length}}function i5(e){const[t,r]=O.useState(!1),[i,n]=O.useState(!1),o=O.useRef(null),a=O.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:s,closeToast:l,onClick:c,closeOnClick:d}=e;var f,g;function h(){r(!0)}function p(){r(!1)}function m(I){const x=o.current;a.canDrag&&x&&(a.didMove=!0,t&&p(),a.delta=e.draggableDirection==="x"?I.clientX-a.start:I.clientY-a.start,a.start!==I.clientX&&(a.canCloseOnClick=!1),x.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,x.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",b);const I=o.current;if(a.canDrag&&a.didMove&&I){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return n(!0),e.closeToast(),void e.collapseAll();I.style.transition="transform 0.2s, opacity 0.2s",I.style.removeProperty("transform"),I.style.removeProperty("opacity")}}(g=Ct.get((f={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))==null||g.setToggle(f.id,f.fn),O.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function(I){if(e.draggable===!0||e.draggable===I.pointerType){a.didMove=!1,document.addEventListener("pointermove",m),document.addEventListener("pointerup",b);const x=o.current;a.canCloseOnClick=!0,a.canDrag=!0,x.style.transition="none",e.draggableDirection==="x"?(a.start=I.clientX,a.removalDistance=x.offsetWidth*(e.draggablePercent/100)):(a.start=I.clientY,a.removalDistance=x.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(I){const{top:x,bottom:v,left:S,right:E}=o.current.getBoundingClientRect();I.nativeEvent.type!=="touchend"&&e.pauseOnHover&&I.clientX>=S&&I.clientX<=E&&I.clientY>=x&&I.clientY<=v?p():h()}};return u&&s&&(y.onMouseEnter=p,e.stacked||(y.onMouseLeave=h)),d&&(y.onClick=I=>{c&&c(I),a.canCloseOnClick&&l()}),{playToast:h,pauseToast:p,isRunning:t,preventExitTransition:i,toastRef:o,eventHandlers:y}}function o5(e){let{delay:t,isRunning:r,closeToast:i,type:n="default",hide:o,className:a,style:u,controlledProgress:s,progress:l,rtl:c,isIn:d,theme:f}=e;const g=o||s&&l===0,h={...u,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};s&&(h.transform=`scaleX(${l})`);const p=pr("Toastify__progress-bar",s?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${n}`,{"Toastify__progress-bar--rtl":c}),m=Vt(a)?a({rtl:c,type:n,defaultClassName:p}):pr(p,a),b={[s&&l>=1?"onTransitionEnd":"onAnimationEnd"]:s&&l<1?null:()=>{d&&i()}};return O.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},O.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${n}`}),O.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:m,style:h,...b}))}let a5=1;const u0=()=>""+a5++;function s5(e){return e&&(mn(e.toastId)||Yi(e.toastId))?e.toastId:u0()}function Zi(e,t){return a0(e,t),t.toastId}function rs(e,t){return{...t,type:t&&t.type||e,toastId:s5(t)}}function ns(e){return(t,r)=>Zi(t,rs(e,r))}function me(e,t){return Zi(e,rs("default",t))}me.loading=(e,t)=>Zi(e,rs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),me.promise=function(e,t,r){let i,{pending:n,error:o,success:a}=t;n&&(i=mn(n)?me.loading(n,r):me.loading(n.render,{...r,...n}));const u={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(c,d,f)=>{if(d==null)return void me.dismiss(i);const g={type:c,...u,...r,data:f},h=mn(d)?{render:d}:d;return i?me.update(i,{...g,...h}):me(h.render,{...g,...h}),f},l=Vt(e)?e():e;return l.then(c=>s("success",a,c)).catch(c=>s("error",o,c)),l},me.success=ns("success"),me.info=ns("info"),me.error=ns("error"),me.warning=ns("warning"),me.warn=me.warning,me.dark=(e,t)=>Zi(e,rs("default",{theme:"dark",...t})),me.dismiss=function(e){(function(t){var r;if(i0()){if(t==null||mn(r=t)||Yi(r))Ct.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const i=Ct.get(t.containerId);i?i.removeToast(t.id):Ct.forEach(n=>{n.removeToast(t.id)})}}else Ji=Ji.filter(i=>t!=null&&i.options.toastId!==t)})(e)},me.clearWaitingQueue=function(e){e===void 0&&(e={}),Ct.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},me.isActive=o0,me.update=function(e,t){t===void 0&&(t={});const r=((i,n)=>{var o;let{containerId:a}=n;return(o=Ct.get(a||1))==null?void 0:o.toasts.get(i)})(e,t);if(r){const{props:i,content:n}=r,o={delay:100,...i,...t,toastId:t.toastId||e,updateId:u0()};o.toastId!==e&&(o.staleId=e);const a=o.render||n;delete o.render,Zi(a,o)}},me.done=e=>{me.update(e,{progress:1})},me.onChange=function(e){return tc.add(e),()=>{tc.delete(e)}},me.play=e=>s0(!0,e),me.pause=e=>s0(!1,e);const u5=typeof window<"u"?O.useLayoutEffect:O.useEffect,is=e=>{let{theme:t,type:r,isLoading:i,...n}=e;return O.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},rc={info:function(e){return O.createElement(is,{...e},O.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return O.createElement(is,{...e},O.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return O.createElement(is,{...e},O.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return O.createElement(is,{...e},O.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return O.createElement("div",{className:"Toastify__spinner"})}},l5=e=>{const{isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:n,playToast:o}=i5(e),{closeButton:a,children:u,autoClose:s,onClick:l,type:c,hideProgressBar:d,closeToast:f,transition:g,position:h,className:p,style:m,bodyClassName:b,bodyStyle:y,progressClassName:I,progressStyle:x,updateId:v,role:S,progress:E,rtl:w,toastId:T,deleteToast:k,isIn:V,isLoading:C,closeOnClick:N,theme:F}=e,P=pr("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":N}),j=Vt(p)?p({rtl:w,position:h,type:c,defaultClassName:P}):pr(P,p),B=function(L){let{theme:G,type:_,isLoading:X,icon:K}=L,ee=null;const D={theme:G,type:_};return K===!1||(Vt(K)?ee=K({...D,isLoading:X}):O.isValidElement(K)?ee=O.cloneElement(K,D):X?ee=rc.spinner():(Z=>Z in rc)(_)&&(ee=rc[_](D))),ee}(e),U=!!E||!s,Q={closeToast:f,type:c,theme:F};let $=null;return a===!1||($=Vt(a)?a(Q):O.isValidElement(a)?O.cloneElement(a,Q):function(L){let{closeToast:G,theme:_,ariaLabel:X="close"}=L;return O.createElement("button",{className:`Toastify__close-button Toastify__close-button--${_}`,type:"button",onClick:K=>{K.stopPropagation(),G(K)},"aria-label":X},O.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},O.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Q)),O.createElement(g,{isIn:V,done:k,position:h,preventExitTransition:r,nodeRef:i,playToast:o},O.createElement("div",{id:T,onClick:l,"data-in":V,className:j,...n,style:m,ref:i},O.createElement("div",{...V&&{role:S},className:Vt(b)?b({type:c}):pr("Toastify__toast-body",b),style:y},B!=null&&O.createElement("div",{className:pr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!C})},B),O.createElement("div",null,u)),$,O.createElement(o5,{...v&&!U?{key:`pb-${v}`}:{},rtl:w,theme:F,delay:s,isRunning:t,isIn:V,closeToast:f,hide:d,type:c,style:x,className:I,controlledProgress:U,progress:E||0})))},os=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},c5=ts(os("bounce",!0)),d5=ts(os("slide",!0));ts(os("zoom")),ts(os("flip"));const f5={position:"top-right",transition:c5,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function p5(e){let t={...f5,...e};const r=e.stacked,[i,n]=O.useState(!0),o=O.useRef(null),{getToastToRender:a,isToastActive:u,count:s}=n5(t),{className:l,style:c,rtl:d,containerId:f}=t;function g(p){const m=pr("Toastify__toast-container",`Toastify__toast-container--${p}`,{"Toastify__toast-container--rtl":d});return Vt(l)?l({position:p,rtl:d,defaultClassName:m}):pr(m,es(l))}function h(){r&&(n(!0),me.play())}return u5(()=>{if(r){var p;const m=o.current.querySelectorAll('[data-in="true"]'),b=12,y=(p=t.position)==null?void 0:p.includes("top");let I=0,x=0;Array.from(m).reverse().forEach((v,S)=>{const E=v;E.classList.add("Toastify__toast--stacked"),S>0&&(E.dataset.collapsed=`${i}`),E.dataset.pos||(E.dataset.pos=y?"top":"bot");const w=I*(i?.2:1)+(i?0:b*S);E.style.setProperty("--y",`${y?w:-1*w}px`),E.style.setProperty("--g",`${b}`),E.style.setProperty("--s",""+(1-(i?x:0))),I+=E.offsetHeight,x+=.025})}},[i,s,r]),O.createElement("div",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{r&&(n(!1),me.pause())},onMouseLeave:h},a((p,m)=>{const b=m.length?{...c}:{...c,pointerEvents:"none"};return O.createElement("div",{className:g(p),style:b,key:`container-${p}`},m.map(y=>{let{content:I,props:x}=y;return O.createElement(l5,{...x,stacked:r,collapseAll:h,isIn:u(x.toastId,x.containerId),style:x.style,key:`toast-${x.key}`},I)}))}))}const m5=({size:e=24,fill:t="#12B76A"})=>A.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,xmlns:"http://www.w3.org/2000/svg",children:A.jsx("g",{mask:"url(#mask0_4874_46615)",children:A.jsx("path",{d:"M10.6 13.8L8.425 11.625C8.24167 11.4417 8.01267 11.3543 7.738 11.363C7.46267 11.371 7.23333 11.4667 7.05 11.65C6.86667 11.8333 6.775 12.0667 6.775 12.35C6.775 12.6333 6.86667 12.8667 7.05 13.05L9.9 15.9C10.0833 16.0833 10.3167 16.175 10.6 16.175C10.8833 16.175 11.1167 16.0833 11.3 15.9L16.975 10.225C17.1583 10.0417 17.246 9.81233 17.238 9.537C17.2293 9.26233 17.1333 9.03333 16.95 8.85C16.7667 8.66667 16.5333 8.575 16.25 8.575C15.9667 8.575 15.7333 8.66667 15.55 8.85L10.6 13.8ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z",fill:t})})}),g5=({size:e=24,fill:t="#F04438"})=>A.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("g",{id:"error",children:A.jsx("g",{mask:"url(#mask0_4874_46622)",children:A.jsx("path",{id:"error_2",d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 13C12.2833 13 12.5208 12.9042 12.7125 12.7125C12.9042 12.5208 13 12.2833 13 12V8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8V12C11 12.2833 11.0958 12.5208 11.2875 12.7125C11.4792 12.9042 11.7167 13 12 13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})})}),h5=({size:e=24,fill:t="#F79009"})=>A.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:A.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99ZM2.74 18C1.97 19.33 2.93 21 4.47 21H19.53C21.07 21 22.03 19.33 21.26 18L13.73 4.99C12.96 3.66 11.04 3.66 10.27 4.99L2.74 18ZM11 11V13C11 13.55 11.45 14 12 14C12.55 14 13 13.55 13 13V11C13 10.45 12.55 10 12 10C11.45 10 11 10.45 11 11ZM11 16H13V18H11V16Z",fill:t})}),v5=({size:e=24,fill:t="#016DCF"})=>A.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[A.jsx("mask",{id:"mask0_32271_5688",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:A.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),A.jsx("g",{mask:"url(#mask0_32271_5688)",children:A.jsx("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16V12C13 11.7167 12.9042 11.4792 12.7125 11.2875C12.5208 11.0958 12.2833 11 12 11C11.7167 11 11.4792 11.0958 11.2875 11.2875C11.0958 11.4792 11 11.7167 11 12V16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})]}),b5=({size:e=24,fill:t="#016DCF"})=>A.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[A.jsx("mask",{id:"mask0_35096_2621",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:A.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),A.jsx("g",{mask:"url(#mask0_35096_2621)",children:A.jsx("path",{d:"M8 20H16V17C16 15.9 15.6083 14.9583 14.825 14.175C14.0417 13.3917 13.1 13 12 13C10.9 13 9.95833 13.3917 9.175 14.175C8.39167 14.9583 8 15.9 8 17V20ZM12 11C13.1 11 14.0417 10.6083 14.825 9.825C15.6083 9.04167 16 8.1 16 7V4H8V7C8 8.1 8.39167 9.04167 9.175 9.825C9.95833 10.6083 10.9 11 12 11ZM5 22C4.71667 22 4.47917 21.9042 4.2875 21.7125C4.09583 21.5208 4 21.2833 4 21C4 20.7167 4.09583 20.4792 4.2875 20.2875C4.47917 20.0958 4.71667 20 5 20H6V17C6 15.9833 6.2375 15.0292 6.7125 14.1375C7.1875 13.2458 7.85 12.5333 8.7 12C7.85 11.4667 7.1875 10.7542 6.7125 9.8625C6.2375 8.97083 6 8.01667 6 7V4H5C4.71667 4 4.47917 3.90417 4.2875 3.7125C4.09583 3.52083 4 3.28333 4 3C4 2.71667 4.09583 2.47917 4.2875 2.2875C4.47917 2.09583 4.71667 2 5 2H19C19.2833 2 19.5208 2.09583 19.7125 2.2875C19.9042 2.47917 20 2.71667 20 3C20 3.28333 19.9042 3.52083 19.7125 3.7125C19.5208 3.90417 19.2833 4 19 4H18V7C18 8.01667 17.7625 8.97083 17.2875 9.8625C16.8125 10.7542 16.15 11.4667 15.3 12C16.15 12.5333 16.8125 13.2458 17.2875 14.1375C17.7625 15.0292 18 15.9833 18 17V20H19C19.2833 20 19.5208 20.0958 19.7125 20.2875C19.9042 20.4792 20 20.7167 20 21C20 21.2833 19.9042 21.5208 19.7125 21.7125C19.5208 21.9042 19.2833 22 19 22H5Z",fill:t})})]}),y5=({size:e=16})=>A.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:A.jsx("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"})}),C5=e=>{switch(e){case"success":return A.jsx("div",{className:"w-8 h-8 bg-green-50 dark:bg-green-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(m5,{size:24,fill:"#12B76A"})});case"error":return A.jsx("div",{className:"w-8 h-8 bg-red-50 dark:bg-red-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(g5,{fill:"#F04438",size:24})});case"warning":return A.jsx("div",{className:"w-8 h-8 bg-yellow-50 dark:bg-yellow-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(h5,{fill:"#F79009",size:24})});case"info":return A.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(v5,{})});case"in-progress":return A.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:A.jsx(b5,{})});default:return null}},x5={success:"border-b-[5px] !border-green-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",error:"border-b-[5px] !border-red-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",warning:"border-b-[5px] !border-yellow-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",info:"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600","in-progress":"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600"},E5=({closeToast:e})=>A.jsx("button",{onClick:e,className:"text-neutral-900 dark:text-white hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors",children:A.jsx(y5,{size:16})}),I5=({position:e="bottom-right",autoClose:t=3e3,hideProgressBar:r=!0,newestOnTop:i=!0,closeOnClick:n=!0,pauseOnFocusLoss:o=!1,draggable:a=!0,pauseOnHover:u=!0,rtl:s=!1,className:l,style:c={zIndex:1e5},...d})=>A.jsx(p5,{position:e,transition:d5,autoClose:t,hideProgressBar:r,newestOnTop:i,closeOnClick:n,rtl:s,pauseOnFocusLoss:o,draggable:a,pauseOnHover:u,icon:({type:f})=>C5(f),bodyStyle:{gap:"4px"},style:c,toastClassName:f=>{const{type:g="",defaultClassName:h=""}=f||{};return`w-[100%] sm:w-[400px] bg-white dark:bg-neutral-800 rounded-[4px] font-medium text-sm text-neutral-900 dark:text-white shadow-lg p-[20px] min-h-0 ${h} ${x5[g]} ${l||""}`},closeButton:E5,...d}),S5={success:(e,t)=>me.success(e,t),error:(e,t)=>me.error(e,t),warning:(e,t)=>me.warning(e,t),info:(e,t)=>me.info(e,t),inProgress:(e,t)=>me(e,{...t,type:"in-progress"}),dismiss:e=>me.dismiss(e),isActive:e=>me.isActive(e)};typeof window<"u"&&(window.CODEIUM_REACT_CODE_VERSION="1.0.12");function l0(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function nc(e,t,r,i){function n(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(c){try{l(i.next(c))}catch(d){a(d)}}function s(c){try{l(i.throw(c))}catch(d){a(d)}}function l(c){c.done?o(c.value):n(c.value).then(u,s)}l((i=i.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function It(e,t){if(!e)throw new Error(t)}const w5=34028234663852886e22,A5=-34028234663852886e22,T5=4294967295,O5=2147483647,k5=-2147483648;function as(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>O5||e<k5)throw new Error("invalid int 32: "+e)}function ic(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>T5||e<0)throw new Error("invalid uint 32: "+e)}function c0(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>w5||e<A5))throw new Error("invalid float 32: "+e)}const d0=Symbol("@bufbuild/protobuf/enum-type");function P5(e){const t=e[d0];return It(t,"missing enum type on enum object"),t}function f0(e,t,r,i){e[d0]=p0(t,r.map(n=>({no:n.no,name:n.name,localName:e[n.no]})))}function p0(e,t,r){const i=Object.create(null),n=Object.create(null),o=[];for(const a of t){const u=m0(a);o.push(u),i[a.name]=u,n[a.no]=u}return{typeName:e,values:o,findName(a){return i[a]},findNumber(a){return n[a]}}}function N5(e,t,r){const i={};for(const n of t){const o=m0(n);i[o.localName]=o.no,i[o.no]=o.localName}return f0(i,e,t),i}function m0(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class _e{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,r){const i=this.getType(),n=i.runtime.bin,o=n.makeReadOptions(r);return n.readMessage(this,o.readerFactory(t),t.byteLength,o),this}fromJson(t,r){const i=this.getType(),n=i.runtime.json,o=n.makeReadOptions(r);return n.readMessage(i,t,o,this),this}fromJsonString(t,r){let i;try{i=JSON.parse(t)}catch(n){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${n instanceof Error?n.message:String(n)}`)}return this.fromJson(i,r)}toBinary(t){const r=this.getType(),i=r.runtime.bin,n=i.makeWriteOptions(t),o=n.writerFactory();return i.writeMessage(this,o,n),o.finish()}toJson(t){const r=this.getType(),i=r.runtime.json,n=i.makeWriteOptions(t);return i.writeMessage(this,n)}toJsonString(t){var r;const i=this.toJson(t);return JSON.stringify(i,null,(r=t?.prettySpaces)!==null&&r!==void 0?r:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function F5(e,t,r,i){var n;const o=(n=i?.localName)!==null&&n!==void 0?n:t.substring(t.lastIndexOf(".")+1),a={[o]:function(u){e.util.initFields(this),e.util.initPartial(u,this)}}[o];return Object.setPrototypeOf(a.prototype,new _e),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(r),fromBinary(u,s){return new a().fromBinary(u,s)},fromJson(u,s){return new a().fromJson(u,s)},fromJsonString(u,s){return new a().fromJsonString(u,s)},equals(u,s){return e.util.equals(a,u,s)}}),a}function R5(e,t,r,i){return{syntax:e,json:t,bin:r,util:i,makeMessageType(n,o,a){return F5(this,n,o,a)},makeEnum:N5,makeEnumType:p0,getEnumType:P5}}var q;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(q||(q={}));var gn;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(gn||(gn={}));function M5(){let e=0,t=0;for(let i=0;i<28;i+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(r&15)<<28,t=(r&112)>>4,(r&128)==0)return this.assertBounds(),[e,t];for(let i=3;i<=31;i+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<i,(n&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function oc(e,t,r){for(let o=0;o<28;o=o+7){const a=e>>>o,u=!(!(a>>>7)&&t==0),s=(u?a|128:a)&255;if(r.push(s),!u)return}const i=e>>>28&15|(t&7)<<4,n=t>>3!=0;if(r.push((n?i|128:i)&255),!!n){for(let o=3;o<31;o=o+7){const a=t>>>o,u=!!(a>>>7),s=(u?a|128:a)&255;if(r.push(s),!u)return}r.push(t>>>31&1)}}const ss=4294967296;function g0(e){const t=e[0]==="-";t&&(e=e.slice(1));const r=1e6;let i=0,n=0;function o(a,u){const s=Number(e.slice(a,u));n*=r,i=i*r+s,i>=ss&&(n=n+(i/ss|0),i=i%ss)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?v0(i,n):ac(i,n)}function V5(e,t){let r=ac(e,t);const i=r.hi&2147483648;i&&(r=v0(r.lo,r.hi));const n=h0(r.lo,r.hi);return i?"-"+n:n}function h0(e,t){if({lo:e,hi:t}=j5(e,t),t<=2097151)return String(ss*t+e);const r=e&16777215,i=(e>>>24|t<<8)&16777215,n=t>>16&65535;let o=r+i*6777216+n*6710656,a=i+n*8147497,u=n*2;const s=1e7;return o>=s&&(a+=Math.floor(o/s),o%=s),a>=s&&(u+=Math.floor(a/s),a%=s),u.toString()+b0(a)+b0(o)}function j5(e,t){return{lo:e>>>0,hi:t>>>0}}function ac(e,t){return{lo:e|0,hi:t|0}}function v0(e,t){return t=~t,e?e=~e+1:t+=1,ac(e,t)}const b0=e=>{const t=String(e);return"0000000".slice(t.length)+t};function y0(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function L5(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let r=5;(e&128)!==0&&r<10;r++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function B5(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),o=BigInt("9223372036854775807"),a=BigInt("0"),u=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(s){const l=typeof s=="bigint"?s:BigInt(s);if(l>o||l<n)throw new Error(`int64 invalid: ${s}`);return l},uParse(s){const l=typeof s=="bigint"?s:BigInt(s);if(l>u||l<a)throw new Error(`uint64 invalid: ${s}`);return l},enc(s){return e.setBigInt64(0,this.parse(s),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(s){return e.setBigInt64(0,this.uParse(s),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(s,l){return e.setInt32(0,s,!0),e.setInt32(4,l,!0),e.getBigInt64(0,!0)},uDec(s,l){return e.setInt32(0,s,!0),e.setInt32(4,l,!0),e.getBigUint64(0,!0)}}}const r=n=>It(/^-?[0-9]+$/.test(n),`int64 invalid: ${n}`),i=n=>It(/^[0-9]+$/.test(n),`uint64 invalid: ${n}`);return{zero:"0",supported:!1,parse(n){return typeof n!="string"&&(n=n.toString()),r(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),i(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),r(n),g0(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),i(n),g0(n)},dec(n,o){return V5(n,o)},uDec(n,o){return h0(n,o)}}}const De=B5();var it;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(it||(it={}));class $5{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let n=0;n<this.chunks.length;n++)t+=this.chunks[n].length;let r=new Uint8Array(t),i=0;for(let n=0;n<this.chunks.length;n++)r.set(this.chunks[n],i),i+=this.chunks[n].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,r){return this.uint32((t<<3|r)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(ic(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return as(t),y0(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let r=this.textEncoder.encode(t);return this.uint32(r.byteLength),this.raw(r)}float(t){c0(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){ic(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){as(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return as(t),t=(t<<1^t>>31)>>>0,y0(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),i=new DataView(r.buffer),n=De.enc(t);return i.setInt32(0,n.lo,!0),i.setInt32(4,n.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),i=new DataView(r.buffer),n=De.uEnc(t);return i.setInt32(0,n.lo,!0),i.setInt32(4,n.hi,!0),this.raw(r)}int64(t){let r=De.enc(t);return oc(r.lo,r.hi,this.buf),this}sint64(t){let r=De.enc(t),i=r.hi>>31,n=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return oc(n,o,this.buf),this}uint64(t){let r=De.uEnc(t);return oc(r.lo,r.hi,this.buf),this}}class D5{constructor(t,r){this.varint64=M5,this.uint32=L5,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=r??new TextDecoder}tag(){let t=this.uint32(),r=t>>>3,i=t&7;if(r<=0||i<0||i>5)throw new Error("illegal tag: field no "+r+" wire type "+i);return[r,i]}skip(t){let r=this.pos;switch(t){case it.Varint:for(;this.buf[this.pos++]&128;);break;case it.Bit64:this.pos+=4;case it.Bit32:this.pos+=4;break;case it.LengthDelimited:let i=this.uint32();this.pos+=i;break;case it.StartGroup:let n;for(;(n=this.tag()[1])!==it.EndGroup;)this.skip(n);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return De.dec(...this.varint64())}uint64(){return De.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),i=-(t&1);return t=(t>>>1|(r&1)<<31)^i,r=r>>>1^i,De.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return De.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return De.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.textDecoder.decode(this.bytes())}}function sc(e,t){return t instanceof _e||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}q.DOUBLE,q.FLOAT,q.INT64,q.UINT64,q.INT32,q.UINT32,q.BOOL,q.STRING,q.BYTES;function Jr(e,t,r){if(t===r)return!0;if(e==q.BYTES){if(!(t instanceof Uint8Array)||!(r instanceof Uint8Array)||t.length!==r.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==r[i])return!1;return!0}switch(e){case q.UINT64:case q.FIXED64:case q.INT64:case q.SFIXED64:case q.SINT64:return t==r}return!1}function uc(e,t){switch(e){case q.BOOL:return!1;case q.UINT64:case q.FIXED64:case q.INT64:case q.SFIXED64:case q.SINT64:return t==0?De.zero:"0";case q.DOUBLE:case q.FLOAT:return 0;case q.BYTES:return new Uint8Array(0);case q.STRING:return"";default:return 0}}function C0(e,t){const r=t===void 0;let i=it.Varint,n=t===0;switch(e){case q.STRING:n=r||!t.length,i=it.LengthDelimited;break;case q.BOOL:n=t===!1;break;case q.DOUBLE:i=it.Bit64;break;case q.FLOAT:i=it.Bit32;break;case q.INT64:n=r||t==0;break;case q.UINT64:n=r||t==0;break;case q.FIXED64:n=r||t==0,i=it.Bit64;break;case q.BYTES:n=r||!t.byteLength,i=it.LengthDelimited;break;case q.FIXED32:i=it.Bit32;break;case q.SFIXED32:i=it.Bit32;break;case q.SFIXED64:n=r||t==0,i=it.Bit64;break;case q.SINT64:n=r||t==0;break}const o=q[e].toLowerCase();return[i,o,r||n]}const Kn=Symbol("@bufbuild/protobuf/unknown-fields"),x0={readUnknownFields:!0,readerFactory:e=>new D5(e)},E0={writeUnknownFields:!0,writerFactory:()=>new $5};function _5(e){return e?Object.assign(Object.assign({},x0),e):x0}function G5(e){return e?Object.assign(Object.assign({},E0),e):E0}function H5(){return{makeReadOptions:_5,makeWriteOptions:G5,listUnknownFields(e){var t;return(t=e[Kn])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Kn]},writeUnknownFields(e,t){const i=e[Kn];if(i)for(const n of i)t.tag(n.no,n.wireType).raw(n.data)},onUnknownField(e,t,r,i){const n=e;Array.isArray(n[Kn])||(n[Kn]=[]),n[Kn].push({no:t,wireType:r,data:i})},readMessage(e,t,r,i){const n=e.getType(),o=r===void 0?t.len:t.pos+r;for(;t.pos<o;){const[a,u]=t.tag(),s=n.fields.find(a);if(!s){const f=t.skip(u);i.readUnknownFields&&this.onUnknownField(e,a,u,f);continue}let l=e,c=s.repeated,d=s.localName;switch(s.oneof&&(l=l[s.oneof.localName],l.case!=d&&delete l.value,l.case=d,d="value"),s.kind){case"scalar":case"enum":const f=s.kind=="enum"?q.INT32:s.T;let g=ls;if(s.kind=="scalar"&&s.L>0&&(g=z5),c){let b=l[d];if(u==it.LengthDelimited&&f!=q.STRING&&f!=q.BYTES){let y=t.uint32()+t.pos;for(;t.pos<y;)b.push(g(t,f))}else b.push(g(t,f))}else l[d]=g(t,f);break;case"message":const h=s.T;c?l[d].push(us(t,new h,i)):l[d]instanceof _e?us(t,l[d],i):(l[d]=us(t,new h,i),h.fieldWrapper&&!s.oneof&&!s.repeated&&(l[d]=h.fieldWrapper.unwrapField(l[d])));break;case"map":let[p,m]=W5(s,t,i);l[d][p]=m;break}}}}}function us(e,t,r){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),r),t}function W5(e,t,r){const i=t.uint32(),n=t.pos+i;let o,a;for(;t.pos<n;){let[u]=t.tag();switch(u){case 1:o=ls(t,e.K);break;case 2:switch(e.V.kind){case"scalar":a=ls(t,e.V.T);break;case"enum":a=t.int32();break;case"message":a=us(t,new e.V.T,r);break}break}}if(o===void 0){let u=uc(e.K,gn.BIGINT);o=e.K==q.BOOL?u.toString():u}if(typeof o!="string"&&typeof o!="number"&&(o=o.toString()),a===void 0)switch(e.V.kind){case"scalar":a=uc(e.V.T,gn.BIGINT);break;case"enum":a=0;break;case"message":a=new e.V.T;break}return[o,a]}function z5(e,t){const r=ls(e,t);return typeof r=="bigint"?r.toString():r}function ls(e,t){switch(t){case q.STRING:return e.string();case q.BOOL:return e.bool();case q.DOUBLE:return e.double();case q.FLOAT:return e.float();case q.INT32:return e.int32();case q.INT64:return e.int64();case q.UINT64:return e.uint64();case q.FIXED64:return e.fixed64();case q.BYTES:return e.bytes();case q.FIXED32:return e.fixed32();case q.SFIXED32:return e.sfixed32();case q.SFIXED64:return e.sfixed64();case q.SINT64:return e.sint64();case q.UINT32:return e.uint32();case q.SINT32:return e.sint32()}}function X5(e,t,r,i,n){e.tag(r.no,it.LengthDelimited),e.fork();let o=i;switch(r.K){case q.INT32:case q.FIXED32:case q.UINT32:case q.SFIXED32:case q.SINT32:o=Number.parseInt(i);break;case q.BOOL:It(i=="true"||i=="false"),o=i=="true";break}switch(qi(e,r.K,1,o,!0),r.V.kind){case"scalar":qi(e,r.V.T,2,n,!0);break;case"enum":qi(e,q.INT32,2,n,!0);break;case"message":lc(e,t,r.V.T,2,n);break}e.join()}function lc(e,t,r,i,n){if(n!==void 0){const o=sc(r,n);e.tag(i,it.LengthDelimited).bytes(o.toBinary(t))}}function qi(e,t,r,i,n){let[o,a,u]=C0(t,i);(!u||n)&&e.tag(r,o)[a](i)}function U5(e,t,r,i){if(!i.length)return;e.tag(r,it.LengthDelimited).fork();let[,n]=C0(t);for(let o=0;o<i.length;o++)e[n](i[o]);e.join()}function Y5(){return Object.assign(Object.assign({},H5()),{writeMessage(e,t,r){const i=e.getType();for(const n of i.fields.byNumber()){let o,a=n.repeated,u=n.localName;if(n.oneof){const s=e[n.oneof.localName];if(s.case!==u)continue;o=s.value}else o=e[u];switch(n.kind){case"scalar":case"enum":let s=n.kind=="enum"?q.INT32:n.T;if(a)if(n.packed)U5(t,s,n.no,o);else for(const l of o)qi(t,s,n.no,l,!0);else o!==void 0&&qi(t,s,n.no,o,!!n.oneof||n.opt);break;case"message":if(a)for(const l of o)lc(t,r,n.T,n.no,l);else lc(t,r,n.T,n.no,o);break;case"map":for(const[l,c]of Object.entries(o))X5(t,r,n,l,c);break}}return r.writeUnknownFields&&this.writeUnknownFields(e,t),t}})}let wr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),cs=[];for(let e=0;e<wr.length;e++)cs[wr[e].charCodeAt(0)]=e;cs[45]=wr.indexOf("+"),cs[95]=wr.indexOf("/");const ds={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let r=new Uint8Array(t),i=0,n=0,o,a=0;for(let u=0;u<e.length;u++){if(o=cs[e.charCodeAt(u)],o===void 0)switch(e[u]){case"=":n=0;case`
|
|
205
|
-
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(n){case 0:a=o,n=1;break;case 1:r[i++]=a<<2|(o&48)>>4,a=o,n=2;break;case 2:r[i++]=(a&15)<<4|(o&60)>>2,a=o,n=3;break;case 3:r[i++]=(a&3)<<6|o,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,i)},enc(e){let t="",r=0,i,n=0;for(let o=0;o<e.length;o++)switch(i=e[o],r){case 0:t+=wr[i>>2],n=(i&3)<<4,r=1;break;case 1:t+=wr[n|i>>4],n=(i&15)<<2,r=2;break;case 2:t+=wr[n|i>>6],t+=wr[i&63],r=0;break}return r&&(t+=wr[n],t+="=",r==1&&(t+="=")),t}},I0={ignoreUnknownFields:!1},S0={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function J5(e){return e?Object.assign(Object.assign({},I0),e):I0}function Z5(e){return e?Object.assign(Object.assign({},S0),e):S0}function q5(e){const t=e(Q5,A0);return{makeReadOptions:J5,makeWriteOptions:Z5,readMessage(r,i,n,o){if(i==null||Array.isArray(i)||typeof i!="object")throw new Error(`cannot decode message ${r.typeName} from JSON: ${this.debug(i)}`);o=o??new r;const a={};for(const[u,s]of Object.entries(i)){const l=r.fields.findJsonName(u);if(!l){if(!n.ignoreUnknownFields)throw new Error(`cannot decode message ${r.typeName} from JSON: key "${u}" is unknown`);continue}let c=l.localName,d=o;if(l.oneof){if(s===null&&l.kind=="scalar")continue;const f=a[l.oneof.localName];if(f)throw new Error(`cannot decode message ${r.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${f}", "${u}"`);a[l.oneof.localName]=u,d=d[l.oneof.localName]={case:c},c="value"}if(l.repeated){if(s===null)continue;if(!Array.isArray(s))throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`);const f=d[c];for(const g of s){if(g===null)throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(g)}`);let h;switch(l.kind){case"message":h=l.T.fromJson(g,n);break;case"enum":if(h=cc(l.T,g,n.ignoreUnknownFields),h===void 0)continue;break;case"scalar":try{h=Qi(l.T,g,l.L)}catch(p){let m=`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(g)}`;throw p instanceof Error&&p.message.length>0&&(m+=`: ${p.message}`),new Error(m)}break}f.push(h)}}else if(l.kind=="map"){if(s===null)continue;if(Array.isArray(s)||typeof s!="object")throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`);const f=d[c];for(const[g,h]of Object.entries(s)){if(h===null)throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: map value null`);let p;switch(l.V.kind){case"message":p=l.V.T.fromJson(h,n);break;case"enum":if(p=cc(l.V.T,h,n.ignoreUnknownFields),p===void 0)continue;break;case"scalar":try{p=Qi(l.V.T,h,gn.BIGINT)}catch(m){let b=`cannot decode map value for field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`;throw m instanceof Error&&m.message.length>0&&(b+=`: ${m.message}`),new Error(b)}break}try{f[Qi(l.K,l.K==q.BOOL?g=="true"?!0:g=="false"?!1:g:g,gn.BIGINT).toString()]=p}catch(m){let b=`cannot decode map key for field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`;throw m instanceof Error&&m.message.length>0&&(b+=`: ${m.message}`),new Error(b)}}}else switch(l.kind){case"message":const f=l.T;if(s===null&&f.typeName!="google.protobuf.Value"){if(l.oneof)throw new Error(`cannot decode field ${r.typeName}.${l.name} from JSON: null is invalid for oneof field "${u}"`);continue}d[c]instanceof _e?d[c].fromJson(s,n):(d[c]=f.fromJson(s,n),f.fieldWrapper&&!l.oneof&&(d[c]=f.fieldWrapper.unwrapField(d[c])));break;case"enum":const g=cc(l.T,s,n.ignoreUnknownFields);g!==void 0&&(d[c]=g);break;case"scalar":try{d[c]=Qi(l.T,s,l.L)}catch(h){let p=`cannot decode field ${r.typeName}.${l.name} from JSON: ${this.debug(s)}`;throw h instanceof Error&&h.message.length>0&&(p+=`: ${h.message}`),new Error(p)}break}}return o},writeMessage(r,i){const n=r.getType(),o={};let a;try{for(const u of n.fields.byMember()){let s;if(u.kind=="oneof"){const l=r[u.localName];if(l.value===void 0)continue;if(a=u.findField(l.case),!a)throw"oneof case not found: "+l.case;s=t(a,l.value,i)}else a=u,s=t(a,r[a.localName],i);s!==void 0&&(o[i.useProtoFieldName?a.name:a.jsonName]=s)}}catch(u){const s=a?`cannot encode field ${n.typeName}.${a.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,l=u instanceof Error?u.message:String(u);throw new Error(s+(l.length>0?`: ${l}`:""))}return o},readScalar:Qi,writeScalar:A0,debug:w0}}function w0(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function Qi(e,t,r){switch(e){case q.DOUBLE:case q.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==q.FLOAT&&c0(i),i;case q.INT32:case q.FIXED32:case q.SFIXED32:case q.SINT32:case q.UINT32:if(t===null)return 0;let n;if(typeof t=="number"?n=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(n=Number(t)),n===void 0)break;return e==q.UINT32?ic(n):as(n),n;case q.INT64:case q.SFIXED64:case q.SINT64:if(t===null)return De.zero;if(typeof t!="number"&&typeof t!="string")break;const o=De.parse(t);return r?o.toString():o;case q.FIXED64:case q.UINT64:if(t===null)return De.zero;if(typeof t!="number"&&typeof t!="string")break;const a=De.uParse(t);return r?a.toString():a;case q.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case q.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case q.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return ds.dec(t)}throw new Error}function cc(e,t,r){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const i=e.findName(t);if(i||r)return i?.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${w0(t)}`)}function Q5(e,t,r,i){var n;if(t===void 0)return t;if(t===0&&!r)return;if(i)return t;if(e.typeName=="google.protobuf.NullValue")return null;const o=e.findNumber(t);return(n=o?.name)!==null&&n!==void 0?n:t}function A0(e,t,r){if(t!==void 0)switch(e){case q.INT32:case q.SFIXED32:case q.SINT32:case q.FIXED32:case q.UINT32:return It(typeof t=="number"),t!=0||r?t:void 0;case q.FLOAT:case q.DOUBLE:return It(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||r?t:void 0;case q.STRING:return It(typeof t=="string"),t.length>0||r?t:void 0;case q.BOOL:return It(typeof t=="boolean"),t||r?t:void 0;case q.UINT64:case q.FIXED64:case q.INT64:case q.SFIXED64:case q.SINT64:return It(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),r||t!=0?t.toString(10):void 0;case q.BYTES:return It(t instanceof Uint8Array),r||t.byteLength>0?ds.enc(t):void 0}}function K5(){return q5((e,t)=>function(i,n,o){if(i.kind=="map"){const a={};switch(i.V.kind){case"scalar":for(const[s,l]of Object.entries(n)){const c=t(i.V.T,l,!0);It(c!==void 0),a[s.toString()]=c}break;case"message":for(const[s,l]of Object.entries(n))a[s.toString()]=l.toJson(o);break;case"enum":const u=i.V.T;for(const[s,l]of Object.entries(n)){It(l===void 0||typeof l=="number");const c=e(u,l,!0,o.enumAsInteger);It(c!==void 0),a[s.toString()]=c}break}return o.emitDefaultValues||Object.keys(a).length>0?a:void 0}else if(i.repeated){const a=[];switch(i.kind){case"scalar":for(let u=0;u<n.length;u++)a.push(t(i.T,n[u],!0));break;case"enum":for(let u=0;u<n.length;u++)a.push(e(i.T,n[u],!0,o.enumAsInteger));break;case"message":for(let u=0;u<n.length;u++)a.push(sc(i.T,n[u]).toJson(o));break}return o.emitDefaultValues||a.length>0?a:void 0}else switch(i.kind){case"scalar":return t(i.T,n,!!i.oneof||i.opt||o.emitDefaultValues);case"enum":return e(i.T,n,!!i.oneof||i.opt||o.emitDefaultValues,o.enumAsInteger);case"message":return n!==void 0?sc(i.T,n).toJson(o):void 0}})}function eA(){return{setEnumType:f0,initPartial(e,t){if(e===void 0)return;const r=t.getType();for(const i of r.fields.byMember()){const n=i.localName,o=t,a=e;if(a[n]!==void 0)switch(i.kind){case"oneof":const u=a[n].case;if(u===void 0)continue;const s=i.findField(u);let l=a[n].value;s&&s.kind=="message"&&!(l instanceof s.T)?l=new s.T(l):s&&s.kind==="scalar"&&s.T===q.BYTES&&(l=Ki(l)),o[n]={case:u,value:l};break;case"scalar":case"enum":let c=a[n];i.T===q.BYTES&&(c=i.repeated?c.map(Ki):Ki(c)),o[n]=c;break;case"map":switch(i.V.kind){case"scalar":case"enum":if(i.V.T===q.BYTES)for(const[g,h]of Object.entries(a[n]))o[n][g]=Ki(h);else Object.assign(o[n],a[n]);break;case"message":const f=i.V.T;for(const g of Object.keys(a[n])){let h=a[n][g];f.fieldWrapper||(h=new f(h)),o[n][g]=h}break}break;case"message":const d=i.T;if(i.repeated)o[n]=a[n].map(f=>f instanceof d?f:new d(f));else if(a[n]!==void 0){const f=a[n];d.fieldWrapper?d.typeName==="google.protobuf.BytesValue"?o[n]=Ki(f):o[n]=f:o[n]=f instanceof d?f:new d(f)}break}}},equals(e,t,r){return t===r?!0:!t||!r?!1:e.fields.byMember().every(i=>{const n=t[i.localName],o=r[i.localName];if(i.repeated){if(n.length!==o.length)return!1;switch(i.kind){case"message":return n.every((a,u)=>i.T.equals(a,o[u]));case"scalar":return n.every((a,u)=>Jr(i.T,a,o[u]));case"enum":return n.every((a,u)=>Jr(q.INT32,a,o[u]))}throw new Error(`repeated cannot contain ${i.kind}`)}switch(i.kind){case"message":return i.T.equals(n,o);case"enum":return Jr(q.INT32,n,o);case"scalar":return Jr(i.T,n,o);case"oneof":if(n.case!==o.case)return!1;const a=i.findField(n.case);if(a===void 0)return!0;switch(a.kind){case"message":return a.T.equals(n.value,o.value);case"enum":return Jr(q.INT32,n.value,o.value);case"scalar":return Jr(a.T,n.value,o.value)}throw new Error(`oneof cannot contain ${a.kind}`);case"map":const u=Object.keys(n).concat(Object.keys(o));switch(i.V.kind){case"message":const s=i.V.T;return u.every(c=>s.equals(n[c],o[c]));case"enum":return u.every(c=>Jr(q.INT32,n[c],o[c]));case"scalar":const l=i.V.T;return u.every(c=>Jr(l,n[c],o[c]))}break}})},clone(e){const t=e.getType(),r=new t,i=r;for(const n of t.fields.byMember()){const o=e[n.localName];let a;if(n.repeated)a=o.map(fs);else if(n.kind=="map"){a=i[n.localName];for(const[u,s]of Object.entries(o))a[u]=fs(s)}else n.kind=="oneof"?a=n.findField(o.case)?{case:o.case,value:fs(o.value)}:{case:void 0}:a=fs(o);i[n.localName]=a}return r}}}function fs(e){if(e===void 0)return e;if(e instanceof _e)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Ki(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class tA{constructor(t,r){this._fields=t,this._normalizer=r}findJsonName(t){if(!this.jsonNames){const r={};for(const i of this.list())r[i.jsonName]=r[i.name]=i;this.jsonNames=r}return this.jsonNames[t]}find(t){if(!this.numbers){const r={};for(const i of this.list())r[i.no]=i;this.numbers=r}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,r)=>t.no-r.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let r;for(const i of this.list())i.oneof?i.oneof!==r&&(r=i.oneof,t.push(r)):t.push(i)}return this.members}}function T0(e,t){const r=O0(e);return t?r:sA(aA(r))}function rA(e){return T0(e,!1)}const nA=O0;function O0(e){let t=!1;const r=[];for(let i=0;i<e.length;i++){let n=e.charAt(i);switch(n){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r.push(n),t=!1;break;default:t&&(t=!1,n=n.toUpperCase()),r.push(n);break}}return r.join("")}const iA=new Set(["constructor","toString","toJSON","valueOf"]),oA=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),k0=e=>`${e}$`,aA=e=>oA.has(e)?k0(e):e,sA=e=>iA.has(e)?k0(e):e;class uA{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=rA(t)}addField(t){It(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let r=0;r<this.fields.length;r++)this._lookup[this.fields[r].localName]=this.fields[r]}return this._lookup[t]}}const te=R5("proto3",K5(),Y5(),Object.assign(Object.assign({},eA()),{newFieldList(e){return new tA(e,lA)},initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const r=t.localName,i=e;if(t.repeated){i[r]=[];continue}switch(t.kind){case"oneof":i[r]={case:void 0};break;case"enum":i[r]=0;break;case"map":i[r]={};break;case"scalar":i[r]=uc(t.T,t.L);break}}}}));function lA(e){var t,r,i,n;const o=[];let a;for(const u of typeof e=="function"?e():e){const s=u;if(s.localName=T0(u.name,u.oneof!==void 0),s.jsonName=(t=u.jsonName)!==null&&t!==void 0?t:nA(u.name),s.repeated=(r=u.repeated)!==null&&r!==void 0?r:!1,u.kind=="scalar"&&(s.L=(i=u.L)!==null&&i!==void 0?i:gn.BIGINT),s.packed=(n=u.packed)!==null&&n!==void 0?n:u.kind=="enum"||u.kind=="scalar"&&u.T!=q.BYTES&&u.T!=q.STRING,u.oneof!==void 0){const l=typeof u.oneof=="string"?u.oneof:u.oneof.name;(!a||a.name!=l)&&(a=new uA(l)),s.oneof=a,a.addField(s)}o.push(s)}return o}var zt;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(zt||(zt={}));var dc;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(dc||(dc={}));var Ae;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(Ae||(Ae={}));function fc(e){const t=Ae[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,r=>"_"+r.toLowerCase())}let ps;function cA(e){if(!ps){ps={};for(const t of Object.values(Ae))typeof t!="string"&&(ps[fc(t)]=t)}return ps[e]}class pt extends Error{constructor(t,r=Ae.Unknown,i,n,o){super(dA(t,r)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=r,this.metadata=new Headers(i??{}),this.details=n??[],this.cause=o}static from(t,r=Ae.Unknown){return t instanceof pt?t:t instanceof Error?t.name=="AbortError"?new pt(t.message,Ae.Canceled):new pt(t.message,r,void 0,void 0,t):new pt(String(t),r,void 0,void 0,t)}findDetails(t){const r="typeName"in t?{findMessage:n=>n===t.typeName?t:void 0}:t,i=[];for(const n of this.details){if(n instanceof _e){r.findMessage(n.getType().typeName)&&i.push(n);continue}const o=r.findMessage(n.type);if(o)try{i.push(o.fromBinary(n.value))}catch{}}return i}}function dA(e,t){return e.length?`[${fc(t)}] ${e}`:`[${fc(t)}]`}function fA(...e){const t=new Headers;for(const r of e)r.forEach((i,n)=>{t.append(n,i)});return t}function pA(e,t){const r={};for(const[i,n]of Object.entries(e.methods)){const o=t(Object.assign(Object.assign({},n),{localName:i,service:e}));o!=null&&(r[i]=o)}return r}function mA(e){let t,r=new Uint8Array(0);function i(n){const o=new Uint8Array(r.length+n.length);o.set(r),o.set(n,r.length),r=o}return new ReadableStream({start(){t=e.getReader()},async pull(n){let o;for(;;){if(o===void 0&&r.byteLength>=5){let s=0;for(let l=1;l<5;l++)s=(s<<8)+r[l];o={flags:r[0],length:s}}if(o!==void 0&&r.byteLength>=o.length+5)break;const u=await t.read();if(u.done)break;i(u.value)}if(o===void 0){if(r.byteLength==0){n.close();return}n.error(new pt("premature end of stream",Ae.DataLoss));return}const a=r.subarray(5,5+o.length);r=r.subarray(5+o.length),n.enqueue({flags:o.flags,data:a})}})}function gA(e,t){const r=new Uint8Array(t.length+5);r.set(t,5);const i=new DataView(r.buffer,r.byteOffset,r.byteLength);return i.setUint8(0,e),i.setUint32(1,t.length),r}var hA=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=e[o]&&function(a){return new Promise(function(u,s){a=e[o](a),n(u,s,a.done,a.value)})}}function n(o,a,u,s){Promise.resolve(s).then(function(l){o({value:l,done:u})},a)}},eo=function(e){return this instanceof eo?(this.v=e,this):new eo(e)},vA=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),n,o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(f){i[f]&&(n[f]=function(g){return new Promise(function(h,p){o.push([f,g,h,p])>1||u(f,g)})})}function u(f,g){try{s(i[f](g))}catch(h){d(o[0][3],h)}}function s(f){f.value instanceof eo?Promise.resolve(f.value.v).then(l,c):d(o[0][2],f)}function l(f){u("next",f)}function c(f){u("throw",f)}function d(f,g){f(g),o.shift(),o.length&&u(o[0][0],o[0][1])}},bA=function(e){var t,r;return t={},i("next"),i("throw",function(n){throw n}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(n,o){t[n]=e[n]?function(a){return(r=!r)?{value:eo(e[n](a)),done:!1}:o?o(a):a}:o}};function yA(e){return vA(this,arguments,function*(){yield eo(yield*bA(hA(e)))})}var P0=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=e[o]&&function(a){return new Promise(function(u,s){a=e[o](a),n(u,s,a.done,a.value)})}}function n(o,a,u,s){Promise.resolve(s).then(function(l){o({value:l,done:u})},a)}},ei=function(e){return this instanceof ei?(this.v=e,this):new ei(e)},CA=function(e){var t,r;return t={},i("next"),i("throw",function(n){throw n}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(n,o){t[n]=e[n]?function(a){return(r=!r)?{value:ei(e[n](a)),done:!1}:o?o(a):a}:o}},xA=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),n,o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(f){i[f]&&(n[f]=function(g){return new Promise(function(h,p){o.push([f,g,h,p])>1||u(f,g)})})}function u(f,g){try{s(i[f](g))}catch(h){d(o[0][3],h)}}function s(f){f.value instanceof ei?Promise.resolve(f.value.v).then(l,c):d(o[0][2],f)}function l(f){u("next",f)}function c(f){u("throw",f)}function d(f,g){f(g),o.shift(),o.length&&u(o[0][0],o[0][1])}};function EA(e,t){return pA(e,r=>{switch(r.kind){case zt.Unary:return IA(t,e,r);case zt.ServerStreaming:return SA(t,e,r);case zt.ClientStreaming:return wA(t,e,r);case zt.BiDiStreaming:return AA(t,e,r);default:return null}})}function IA(e,t,r){return async function(i,n){var o,a;const u=await e.unary(t,r,n?.signal,n?.timeoutMs,n?.headers,i,n?.contextValues);return(o=n?.onHeader)===null||o===void 0||o.call(n,u.header),(a=n?.onTrailer)===null||a===void 0||a.call(n,u.trailer),u.message}}function SA(e,t,r){return function(i,n){return N0(e.stream(t,r,n?.signal,n?.timeoutMs,n?.headers,yA([i]),n?.contextValues),n)}}function wA(e,t,r){return async function(i,n){var o,a,u,s,l,c;const d=await e.stream(t,r,n?.signal,n?.timeoutMs,n?.headers,i,n?.contextValues);(l=n?.onHeader)===null||l===void 0||l.call(n,d.header);let f;try{for(var g=!0,h=P0(d.message),p;p=await h.next(),o=p.done,!o;g=!0)s=p.value,g=!1,f=s}catch(m){a={error:m}}finally{try{!g&&!o&&(u=h.return)&&await u.call(h)}finally{if(a)throw a.error}}if(!f)throw new pt("protocol error: missing response message",Ae.Internal);return(c=n?.onTrailer)===null||c===void 0||c.call(n,d.trailer),f}}function AA(e,t,r){return function(i,n){return N0(e.stream(t,r,n?.signal,n?.timeoutMs,n?.headers,i,n?.contextValues),n)}}function N0(e,t){const r=function(){var i,n;return xA(this,arguments,function*(){const o=yield ei(e);(i=t?.onHeader)===null||i===void 0||i.call(t,o.header),yield ei(yield*CA(P0(o.message))),(n=t?.onTrailer)===null||n===void 0||n.call(t,o.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>r.next()})}}function TA(...e){const t=new AbortController,r=e.filter(n=>n!==void 0).concat(t.signal);for(const n of r){if(n.aborted){i.apply(n);break}n.addEventListener("abort",i)}function i(){t.signal.aborted||t.abort(F0(this));for(const n of r)n.removeEventListener("abort",i)}return t}function OA(e){const t=new AbortController,r=()=>{t.abort(new pt("the operation timed out",Ae.DeadlineExceeded))};let i;return e!==void 0&&(e<=0?r():i=setTimeout(r,e)),{signal:t.signal,cleanup:()=>clearTimeout(i)}}function F0(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function R0(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function M0(e,t,r){const i=typeof t=="string"?t:t.typeName,n=typeof r=="string"?r:r.name;return e.toString().replace(/\/?$/,`/${i}/${n}`)}function V0(e,t){return t instanceof _e?t:new e(t)}function kA(e,t){function r(i){return i.done===!0?i:{done:i.done,value:V0(e,i.value)}}return{[Symbol.asyncIterator](){const i=t[Symbol.asyncIterator](),n={next:()=>i.next().then(r)};return i.throw!==void 0&&(n.throw=o=>i.throw(o).then(r)),i.return!==void 0&&(n.return=o=>i.return(o).then(r)),n}}}function j0(e){var t;const r=Object.assign({},e);return(t=r.ignoreUnknownFields)!==null&&t!==void 0||(r.ignoreUnknownFields=!0),r}function L0(e,t,r,i){const n=t?B0(e.I,i):$0(e.I,r);return{parse:(t?B0(e.O,i):$0(e.O,r)).parse,serialize:n.serialize}}function B0(e,t){return{parse(r){try{return e.fromBinary(r,t)}catch(i){const n=i instanceof Error?i.message:String(i);throw new pt(`parse binary: ${n}`,Ae.InvalidArgument)}},serialize(r){try{return r.toBinary(t)}catch(i){const n=i instanceof Error?i.message:String(i);throw new pt(`serialize binary: ${n}`,Ae.Internal)}}}}function $0(e,t){var r,i;const n=(r=t?.textEncoder)!==null&&r!==void 0?r:new TextEncoder,o=(i=t?.textDecoder)!==null&&i!==void 0?i:new TextDecoder,a=j0(t);return{parse(u){try{const s=o.decode(u);return e.fromJsonString(s,a)}catch(s){throw pt.from(s,Ae.InvalidArgument)}},serialize(u){try{const s=u.toJsonString(a);return n.encode(s)}catch(s){throw pt.from(s,Ae.Internal)}}}}const PA=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,NA="application/proto",FA="application/json",RA="application/connect+proto",MA="application/connect+json";function VA(e){const t=e?.match(PA);if(!t)return;const r=!!t[1],i=!!t[3];return{stream:r,binary:i}}function D0(e,t,r){if(t&&new Headers(t).forEach((a,u)=>r.metadata.append(u,a)),typeof e!="object"||e==null||Array.isArray(e)||!("code"in e)||typeof e.code!="string")throw r;const i=cA(e.code);if(i===void 0)throw r;const n=e.message;if(n!=null&&typeof n!="string")throw r;const o=new pt(n??"",i,t);if("details"in e&&Array.isArray(e.details))for(const a of e.details){if(a===null||typeof a!="object"||Array.isArray(a)||typeof a.type!="string"||typeof a.value!="string"||"debug"in a&&typeof a.debug!="object")throw r;try{o.details.push({type:a.type,value:ds.dec(a.value),debug:a.debug})}catch{throw r}}return o}const _0=2;function jA(e){const t=new pt("invalid end stream",Ae.InvalidArgument);let r;try{r=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof r!="object"||r==null||Array.isArray(r))throw t;const i=new Headers;if("metadata"in r){if(typeof r.metadata!="object"||r.metadata==null||Array.isArray(r.metadata))throw t;for(const[o,a]of Object.entries(r.metadata)){if(!Array.isArray(a)||a.some(u=>typeof u!="string"))throw t;for(const u of a)i.append(o,u)}}const n="error"in r?D0(r.error,i,t):void 0;return{metadata:i,error:n}}const pc="Content-Type",LA="Content-Length",G0="Content-Encoding",BA="Accept-Encoding",$A="Connect-Timeout-Ms",H0="Connect-Protocol-Version",DA="User-Agent";function _A(e){switch(e){case 400:return Ae.InvalidArgument;case 401:return Ae.Unauthenticated;case 403:return Ae.PermissionDenied;case 404:return Ae.Unimplemented;case 408:return Ae.DeadlineExceeded;case 409:return Ae.Aborted;case 412:return Ae.FailedPrecondition;case 413:return Ae.ResourceExhausted;case 415:return Ae.Internal;case 429:return Ae.Unavailable;case 431:return Ae.ResourceExhausted;case 502:return Ae.Unavailable;case 503:return Ae.Unavailable;case 504:return Ae.Unavailable;default:return Ae.Unknown}}function W0(e){const t=new Headers,r=new Headers;return e.forEach((i,n)=>{n.toLowerCase().startsWith("trailer-")?r.set(n.substring(8),i):t.set(n,i)}),[t,r]}const z0="1";function X0(e,t,r,i){const n=new Headers(i??{});return r!==void 0&&n.set($A,`${r}`),n.set(pc,e==zt.Unary?t?NA:FA:t?RA:MA),n.set(H0,z0),n.set(DA,"connect-es/1.1.3"),n}function U0(e,t,r){const i=r.get("Content-Type"),n=VA(i);if(t!==200){const o=new pt(`HTTP ${t}`,_A(t),r);if(e==zt.Unary&&n&&!n.binary)return{isUnaryError:!0,unaryError:o};throw o}return{isUnaryError:!1}}const Y0="application/";function GA(e,t){return t?ds.enc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):encodeURIComponent(new TextDecoder().decode(e))}function HA(e,t,r){let i=`?connect=v${z0}`;const n=e.header.get(pc);n?.indexOf(Y0)===0&&(i+="&encoding="+encodeURIComponent(n.slice(Y0.length)));const o=e.header.get(G0);o!==null&&o!=="identity"&&(i+="&compression="+encodeURIComponent(o),r=!0),r&&(i+="&base64=1"),i+="&message="+GA(t,r);const a=e.url+i,u=new Headers(e.header);return[H0,pc,LA,G0,BA].forEach(s=>u.delete(s)),Object.assign(Object.assign({},e),{init:Object.assign(Object.assign({},e.init),{method:"GET"}),url:a,header:u})}function WA(e){const t=Z0(e.next,e.interceptors),[r,i,n]=J0(e),o=Object.assign(Object.assign({},e.req),{message:V0(e.req.method.I,e.req.message),signal:r});return t(o).then(a=>(n(),a),i)}function zA(e){const t=Z0(e.next,e.interceptors),[r,i,n]=J0(e),o=Object.assign(Object.assign({},e.req),{message:kA(e.req.method.I,e.req.message),signal:r});let a=!1;return r.addEventListener("abort",function(){var u,s;const l=e.req.message[Symbol.asyncIterator]();a||(u=l.throw)===null||u===void 0||u.call(l,this.reason).catch(()=>{}),(s=l.return)===null||s===void 0||s.call(l).catch(()=>{})}),t(o).then(u=>Object.assign(Object.assign({},u),{message:{[Symbol.asyncIterator](){const s=u.message[Symbol.asyncIterator]();return{next(){return s.next().then(l=>(l.done==!0&&(a=!0,n()),l),i)}}}}}),i)}function J0(e){const{signal:t,cleanup:r}=OA(e.timeoutMs),i=TA(e.signal,t);return[i.signal,function(o){const a=pt.from(t.aborted?F0(t):o);return i.abort(a),r(),Promise.reject(a)},function(){r(),i.abort()}]}function Z0(e,t){var r;return(r=t?.concat().reverse().reduce((i,n)=>n(i),e))!==null&&r!==void 0?r:e}function XA(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var to=function(e){return this instanceof to?(this.v=e,this):new to(e)},UA=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,t||[]),n,o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(f){i[f]&&(n[f]=function(g){return new Promise(function(h,p){o.push([f,g,h,p])>1||u(f,g)})})}function u(f,g){try{s(i[f](g))}catch(h){d(o[0][3],h)}}function s(f){f.value instanceof to?Promise.resolve(f.value.v).then(l,c):d(o[0][2],f)}function l(f){u("next",f)}function c(f){u("throw",f)}function d(f,g){f(g),o.shift(),o.length&&u(o[0][0],o[0][1])}};function YA(e){var t;XA();const r=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!1;return{async unary(i,n,o,a,u,s,l){var c;const{serialize:d,parse:f}=L0(n,r,e.jsonOptions,e.binaryOptions);return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await WA({interceptors:e.interceptors,signal:o,timeoutMs:a,req:{stream:!1,service:i,method:n,url:M0(e.baseUrl,i,n),init:{method:"POST",credentials:(c=e.credentials)!==null&&c!==void 0?c:"same-origin",redirect:"error",mode:"cors"},header:X0(n.kind,r,a,u),contextValues:l??R0(),message:s},next:async g=>{var h;const p=e.useHttpGet===!0&&n.idempotency===dc.NoSideEffects;let m=null;p?g=HA(g,d(g.message),r):m=d(g.message);const y=await((h=e.fetch)!==null&&h!==void 0?h:globalThis.fetch)(g.url,Object.assign(Object.assign({},g.init),{headers:g.header,signal:g.signal,body:m})),{isUnaryError:I,unaryError:x}=U0(n.kind,y.status,y.headers);if(I)throw D0(await y.json(),fA(...W0(y.headers)),x);const[v,S]=W0(y.headers);return{stream:!1,service:i,method:n,header:v,message:r?f(new Uint8Array(await y.arrayBuffer())):n.O.fromJson(await y.json(),j0(e.jsonOptions)),trailer:S}}})},async stream(i,n,o,a,u,s,l){var c;const{serialize:d,parse:f}=L0(n,r,e.jsonOptions,e.binaryOptions);function g(p,m){return UA(this,arguments,function*(){const y=mA(p).getReader();let I=!1;for(;;){const x=yield to(y.read());if(x.done)break;const{flags:v,data:S}=x.value;if((v&_0)===_0){I=!0;const E=jA(S);if(E.error)throw E.error;E.metadata.forEach((w,T)=>m.set(T,w));continue}yield yield to(f(S))}if(!I)throw"missing EndStreamResponse"})}async function h(p){if(n.kind!=zt.ServerStreaming)throw"The fetch API does not support streaming request bodies";const m=await p[Symbol.asyncIterator]().next();if(m.done==!0)throw"missing request message";return gA(0,d(m.value))}return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await zA({interceptors:e.interceptors,timeoutMs:a,signal:o,req:{stream:!0,service:i,method:n,url:M0(e.baseUrl,i,n),init:{method:"POST",credentials:(c=e.credentials)!==null&&c!==void 0?c:"same-origin",redirect:"error",mode:"cors"},header:X0(n.kind,r,a,u),contextValues:l??R0(),message:s},next:async p=>{var m;const y=await((m=e.fetch)!==null&&m!==void 0?m:globalThis.fetch)(p.url,Object.assign(Object.assign({},p.init),{headers:p.header,signal:p.signal,body:await h(p.message)}));if(U0(n.kind,y.status,y.headers),y.body===null)throw"missing response body";const I=new Headers;return Object.assign(Object.assign({},p),{header:y.headers,trailer:I,message:g(y.body,I)})}})}}}var hn;(function(e){e.INACTIVE="inactive",e.PROCESSING="processing",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"})(hn||(hn={}));function JA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Q0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(r),!0).forEach(function(i){JA(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function ZA(e,t){if(e==null)return{};var r={},i=Object.keys(e),n,o;for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function qA(e,t){if(e==null)return{};var r=ZA(e,t),i,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)i=o[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function QA(e,t){return KA(e)||e4(e,t)||t4(e,t)||r4()}function KA(e){if(Array.isArray(e))return e}function e4(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],i=!0,n=!1,o=void 0;try{for(var a=e[Symbol.iterator](),u;!(i=(u=a.next()).done)&&(r.push(u.value),!(t&&r.length===t));i=!0);}catch(s){n=!0,o=s}finally{try{!i&&a.return!=null&&a.return()}finally{if(n)throw o}}return r}}function t4(e,t){if(e){if(typeof e=="string")return K0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K0(e,t)}}function K0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function r4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
206
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
318
|
+
export default theme;`}function kb(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const k9=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function F9(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:yb(t,k9(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${kb(r)})`:jl(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${kb(r)})`:Ml(t,r)}})}function pf(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Jn(20));const d=mf({...i,colorSpace:c}),f=db(e);let g=Sr(f,{mixins:b9(f.breakpoints,n),palette:d,shadows:E9.slice(),typography:C9(d,s),transitions:O9(a),zIndex:{...T9}});if(g=Sr(g,u),g=t.reduce((h,m)=>Sr(h,m),g),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(p,b)=>{let y;for(y in p){const w=p[y];if(h.includes(y)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=af("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
319
|
+
`))}p[y]={}}}};Object.keys(g.components).forEach(p=>{const b=g.components[p].styleOverrides;b&&p.startsWith("Mui")&&m(b,p)})}return g.unstable_sxConfig={...kl,...u?.unstable_sxConfig},g.unstable_sx=function(m){return oi({sx:m,theme:this})},g.toRuntimeSource=Pb,F9(g),g}function $9(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const M9=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=$9(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Fb(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function $b(e){return e==="dark"?M9:[]}function j9(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,a=mf({...t,colorSpace:o});return{palette:a,opacity:{...Fb(a.mode),...r},overlays:n||$b(a.mode),...i}}function R9(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const L9=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],D9=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return L9(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function _9(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ee(e,t,r){!e[t]&&r&&(e[t]=r)}function ma(e){return typeof e!="string"||!e.startsWith("hsl")?e:vb(e)}function En(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ua(ma(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
320
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function V9(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const un=e=>{try{return e()}catch{}},B9=(e="mui")=>o9(e);function gf(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=j9({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:a,...s}=pf({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...Fb(i),...r?.opacity},overlays:r?.overlays||$b(i)},s}function z9(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=R9,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,d=Object.keys(r)[0],f=n||(r.light&&d!=="light"?"light":d),g=B9(i),{[f]:h,light:m,dark:p,...b}=r,y={...b};let w=h;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Jn(21,f));let S;a&&(S="oklch");const v=gf(S,y,w,u,f);m&&!y.light&&gf(S,y,m,void 0,"light"),p&&!y.dark&&gf(S,y,p,void 0,"dark");let I={defaultColorScheme:f,...v,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:g,colorSchemes:y,font:{...v9(v.typography),...v.font},spacing:V9(u.spacing)};Object.keys(I.colorSchemes).forEach(M=>{const x=I.colorSchemes[M].palette,$=k=>{const j=k.split("-"),z=j[1],H=j[2];return g(k,x[z][H])};x.mode==="light"&&(ee(x.common,"background","#fff"),ee(x.common,"onBackground","#000")),x.mode==="dark"&&(ee(x.common,"background","#000"),ee(x.common,"onBackground","#fff"));function F(k,j,z){if(S){let H;return k===bo&&(H=`transparent ${((1-z)*100).toFixed(0)}%`),k===nt&&(H=`#000 ${(z*100).toFixed(0)}%`),k===ot&&(H=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${S}, ${j}, ${H})`}return k(j,z)}if(_9(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ee(x.Alert,"errorColor",F(nt,x.error.light,.6)),ee(x.Alert,"infoColor",F(nt,x.info.light,.6)),ee(x.Alert,"successColor",F(nt,x.success.light,.6)),ee(x.Alert,"warningColor",F(nt,x.warning.light,.6)),ee(x.Alert,"errorFilledBg",$("palette-error-main")),ee(x.Alert,"infoFilledBg",$("palette-info-main")),ee(x.Alert,"successFilledBg",$("palette-success-main")),ee(x.Alert,"warningFilledBg",$("palette-warning-main")),ee(x.Alert,"errorFilledColor",un(()=>x.getContrastText(x.error.main))),ee(x.Alert,"infoFilledColor",un(()=>x.getContrastText(x.info.main))),ee(x.Alert,"successFilledColor",un(()=>x.getContrastText(x.success.main))),ee(x.Alert,"warningFilledColor",un(()=>x.getContrastText(x.warning.main))),ee(x.Alert,"errorStandardBg",F(ot,x.error.light,.9)),ee(x.Alert,"infoStandardBg",F(ot,x.info.light,.9)),ee(x.Alert,"successStandardBg",F(ot,x.success.light,.9)),ee(x.Alert,"warningStandardBg",F(ot,x.warning.light,.9)),ee(x.Alert,"errorIconColor",$("palette-error-main")),ee(x.Alert,"infoIconColor",$("palette-info-main")),ee(x.Alert,"successIconColor",$("palette-success-main")),ee(x.Alert,"warningIconColor",$("palette-warning-main")),ee(x.AppBar,"defaultBg",$("palette-grey-100")),ee(x.Avatar,"defaultBg",$("palette-grey-400")),ee(x.Button,"inheritContainedBg",$("palette-grey-300")),ee(x.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ee(x.Chip,"defaultBorder",$("palette-grey-400")),ee(x.Chip,"defaultAvatarColor",$("palette-grey-700")),ee(x.Chip,"defaultIconColor",$("palette-grey-700")),ee(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(x.LinearProgress,"primaryBg",F(ot,x.primary.main,.62)),ee(x.LinearProgress,"secondaryBg",F(ot,x.secondary.main,.62)),ee(x.LinearProgress,"errorBg",F(ot,x.error.main,.62)),ee(x.LinearProgress,"infoBg",F(ot,x.info.main,.62)),ee(x.LinearProgress,"successBg",F(ot,x.success.main,.62)),ee(x.LinearProgress,"warningBg",F(ot,x.warning.main,.62)),ee(x.Skeleton,"bg",S?F(bo,x.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ee(x.Slider,"primaryTrack",F(ot,x.primary.main,.62)),ee(x.Slider,"secondaryTrack",F(ot,x.secondary.main,.62)),ee(x.Slider,"errorTrack",F(ot,x.error.main,.62)),ee(x.Slider,"infoTrack",F(ot,x.info.main,.62)),ee(x.Slider,"successTrack",F(ot,x.success.main,.62)),ee(x.Slider,"warningTrack",F(ot,x.warning.main,.62));const k=S?F(nt,x.background.default,.6825):Rl(x.background.default,.8);ee(x.SnackbarContent,"bg",k),ee(x.SnackbarContent,"color",un(()=>S?ff.text.primary:x.getContrastText(k))),ee(x.SpeedDialAction,"fabHoverBg",Rl(x.background.paper,.15)),ee(x.StepConnector,"border",$("palette-grey-400")),ee(x.StepContent,"border",$("palette-grey-400")),ee(x.Switch,"defaultColor",$("palette-common-white")),ee(x.Switch,"defaultDisabledColor",$("palette-grey-100")),ee(x.Switch,"primaryDisabledColor",F(ot,x.primary.main,.62)),ee(x.Switch,"secondaryDisabledColor",F(ot,x.secondary.main,.62)),ee(x.Switch,"errorDisabledColor",F(ot,x.error.main,.62)),ee(x.Switch,"infoDisabledColor",F(ot,x.info.main,.62)),ee(x.Switch,"successDisabledColor",F(ot,x.success.main,.62)),ee(x.Switch,"warningDisabledColor",F(ot,x.warning.main,.62)),ee(x.TableCell,"border",F(ot,F(bo,x.divider,1),.88)),ee(x.Tooltip,"bg",F(bo,x.grey[700],.92))}if(x.mode==="dark"){ee(x.Alert,"errorColor",F(ot,x.error.light,.6)),ee(x.Alert,"infoColor",F(ot,x.info.light,.6)),ee(x.Alert,"successColor",F(ot,x.success.light,.6)),ee(x.Alert,"warningColor",F(ot,x.warning.light,.6)),ee(x.Alert,"errorFilledBg",$("palette-error-dark")),ee(x.Alert,"infoFilledBg",$("palette-info-dark")),ee(x.Alert,"successFilledBg",$("palette-success-dark")),ee(x.Alert,"warningFilledBg",$("palette-warning-dark")),ee(x.Alert,"errorFilledColor",un(()=>x.getContrastText(x.error.dark))),ee(x.Alert,"infoFilledColor",un(()=>x.getContrastText(x.info.dark))),ee(x.Alert,"successFilledColor",un(()=>x.getContrastText(x.success.dark))),ee(x.Alert,"warningFilledColor",un(()=>x.getContrastText(x.warning.dark))),ee(x.Alert,"errorStandardBg",F(nt,x.error.light,.9)),ee(x.Alert,"infoStandardBg",F(nt,x.info.light,.9)),ee(x.Alert,"successStandardBg",F(nt,x.success.light,.9)),ee(x.Alert,"warningStandardBg",F(nt,x.warning.light,.9)),ee(x.Alert,"errorIconColor",$("palette-error-main")),ee(x.Alert,"infoIconColor",$("palette-info-main")),ee(x.Alert,"successIconColor",$("palette-success-main")),ee(x.Alert,"warningIconColor",$("palette-warning-main")),ee(x.AppBar,"defaultBg",$("palette-grey-900")),ee(x.AppBar,"darkBg",$("palette-background-paper")),ee(x.AppBar,"darkColor",$("palette-text-primary")),ee(x.Avatar,"defaultBg",$("palette-grey-600")),ee(x.Button,"inheritContainedBg",$("palette-grey-800")),ee(x.Button,"inheritContainedHoverBg",$("palette-grey-700")),ee(x.Chip,"defaultBorder",$("palette-grey-700")),ee(x.Chip,"defaultAvatarColor",$("palette-grey-300")),ee(x.Chip,"defaultIconColor",$("palette-grey-300")),ee(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(x.LinearProgress,"primaryBg",F(nt,x.primary.main,.5)),ee(x.LinearProgress,"secondaryBg",F(nt,x.secondary.main,.5)),ee(x.LinearProgress,"errorBg",F(nt,x.error.main,.5)),ee(x.LinearProgress,"infoBg",F(nt,x.info.main,.5)),ee(x.LinearProgress,"successBg",F(nt,x.success.main,.5)),ee(x.LinearProgress,"warningBg",F(nt,x.warning.main,.5)),ee(x.Skeleton,"bg",S?F(bo,x.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ee(x.Slider,"primaryTrack",F(nt,x.primary.main,.5)),ee(x.Slider,"secondaryTrack",F(nt,x.secondary.main,.5)),ee(x.Slider,"errorTrack",F(nt,x.error.main,.5)),ee(x.Slider,"infoTrack",F(nt,x.info.main,.5)),ee(x.Slider,"successTrack",F(nt,x.success.main,.5)),ee(x.Slider,"warningTrack",F(nt,x.warning.main,.5));const k=S?F(ot,x.background.default,.985):Rl(x.background.default,.98);ee(x.SnackbarContent,"bg",k),ee(x.SnackbarContent,"color",un(()=>S?Sb.text.primary:x.getContrastText(k))),ee(x.SpeedDialAction,"fabHoverBg",Rl(x.background.paper,.15)),ee(x.StepConnector,"border",$("palette-grey-600")),ee(x.StepContent,"border",$("palette-grey-600")),ee(x.Switch,"defaultColor",$("palette-grey-300")),ee(x.Switch,"defaultDisabledColor",$("palette-grey-600")),ee(x.Switch,"primaryDisabledColor",F(nt,x.primary.main,.55)),ee(x.Switch,"secondaryDisabledColor",F(nt,x.secondary.main,.55)),ee(x.Switch,"errorDisabledColor",F(nt,x.error.main,.55)),ee(x.Switch,"infoDisabledColor",F(nt,x.info.main,.55)),ee(x.Switch,"successDisabledColor",F(nt,x.success.main,.55)),ee(x.Switch,"warningDisabledColor",F(nt,x.warning.main,.55)),ee(x.TableCell,"border",F(nt,F(bo,x.divider,1),.68)),ee(x.Tooltip,"bg",F(bo,x.grey[700],.92))}En(x.background,"default"),En(x.background,"paper"),En(x.common,"background"),En(x.common,"onBackground"),En(x,"divider"),Object.keys(x).forEach(k=>{const j=x[k];k!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&ee(x[k],"mainChannel",ua(ma(j.main))),j.light&&ee(x[k],"lightChannel",ua(ma(j.light))),j.dark&&ee(x[k],"darkChannel",ua(ma(j.dark))),j.contrastText&&ee(x[k],"contrastTextChannel",ua(ma(j.contrastText))),k==="text"&&(En(x[k],"primary"),En(x[k],"secondary")),k==="action"&&(j.active&&En(x[k],"active"),j.selected&&En(x[k],"selected")))})}),I=t.reduce((M,x)=>Sr(M,x),I);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:D9(I),enableContrastVars:a},{vars:N,generateThemeVars:T,generateStyleSheets:P}=s9(I,O);return I.vars=N,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([M,x])=>{I[M]=x}),I.generateThemeVars=T,I.generateStyleSheets=P,I.generateSpacing=function(){return ub(u.spacing,rf(this))},I.getColorSchemeSelector=l9(l),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=s,I.unstable_sxConfig={...kl,...u?.unstable_sxConfig},I.unstable_sx=function(x){return oi({sx:x,theme:this})},I.toRuntimeSource=Pb,I}function Mb(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:mf({...r===!0?{}:r.palette,mode:t})})}function G9(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...a}=e,s=i||"light",l=o?.[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return pf(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=pf({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Mb(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Mb(d,"light",c.light)),d}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),z9({...a,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const H9=G9(),W9="$$material";function U9(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const X9=W6({themeId:W9,defaultTheme:H9,rootShouldForwardProp:e=>U9(e)&&e!=="classes"}),Y9=n9;process.env.NODE_ENV!=="production"&&(Ge.node,Ge.object.isRequired);function J9(e){return r9(e)}function Z9(e){return af("MuiSvgIcon",e)}V6("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const q9=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${go(t)}`,`fontSize${go(r)}`]};return kO(o,Z9,n)},Q9=X9("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${go(r.color)}`],t[`fontSize${go(r.fontSize)}`]]}})(Y9(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ll=A.forwardRef(function(t,r){const n=J9({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...g}=n,h=A.isValidElement(o)&&o.type==="svg",m={...n,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},p={};u||(p.viewBox=f);const b=q9(m);return C.jsxs(Q9,{as:s,className:cn(b.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...p,...g,...h&&o.props,ownerState:m,children:[h?o.props.children:o,d?C.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Ll.propTypes={children:Ge.node,classes:Ge.object,className:Ge.string,color:Ge.oneOfType([Ge.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ge.string]),component:Ge.elementType,fontSize:Ge.oneOfType([Ge.oneOf(["inherit","large","medium","small"]),Ge.string]),htmlColor:Ge.string,inheritViewBox:Ge.bool,shapeRendering:Ge.string,sx:Ge.oneOfType([Ge.arrayOf(Ge.oneOfType([Ge.func,Ge.object,Ge.bool])),Ge.func,Ge.object]),titleAccess:Ge.string,viewBox:Ge.string}),Ll.muiName="SvgIcon";function hf(e,t){function r(n,o){return C.jsx(Ll,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Ll.muiName,A.memo(A.forwardRef(r))}const K9=hf(C.jsx("path",{d:"M14.71 6.71a.996.996 0 0 0-1.41 0L8.71 11.3c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L10.83 12l3.88-3.88c.39-.39.38-1.03 0-1.41"}),"ChevronLeftRounded"),eT=hf(C.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),tT=hf(C.jsx("path",{d:"M14.59 2.59c-.38-.38-.89-.59-1.42-.59H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41zM15 18H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1m0-4H9c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1m-2-6V3.5L18.5 9H14c-.55 0-1-.45-1-1"}),"DescriptionRounded"),jb=E.forwardRef(({id:e,label:t,placeholder:r="Select...",value:n,selectedValues:o,onChange:i,onColorChange:a,selectOptions:s,loading:l=!1,multiSelect:c=!1,disabled:u=!1,isClearable:d=!0,required:f=!1,message:g,messageType:h="default",originalCase:m=!1,wrapperClassName:p,selectClassName:b,labelClassName:y,helpText:w,size:S="medium",filterOption:v,selectProps:I,components:O,tags:N,tooltip:T},P)=>{const M=()=>{switch(S){case"small":return{height:"28px",minHeight:"28px",fontSize:"12px",padding:"2px 8px"};case"large":return{height:"40px",minHeight:"40px",fontSize:"16px",padding:"8px 12px"};default:return{height:"32px",minHeight:"32px",fontSize:"14px",padding:"4px 10px"}}},x=R=>g&&h==="error"?"rgb(253 164 155)":g&&h==="success"?"rgb(34 197 94)":g&&h==="info"?"rgb(59 130 246)":R.isFocused?"rgb(0 108 207)":"rgb(229 229 229)",$=M(),F={control:(R,W)=>({...R,borderColor:x(W),backgroundColor:W.isDisabled?"rgb(245 245 245)":"rgb(255 255 255)",borderRadius:"6px",...$,opacity:W.isDisabled?.6:1,cursor:W.isDisabled?"not-allowed":"default",boxShadow:W.isFocused?"0 0 0 2px rgba(59, 130, 246, 0.1)":"none","&:hover":{borderColor:x(W)},transition:"all 0.2s ease-in-out"}),valueContainer:R=>({...R,fontSize:$.fontSize,padding:0,height:"auto",minHeight:"20px"}),input:R=>({...R,margin:"0",padding:"0",color:"inherit"}),indicatorsContainer:R=>({...R,fontSize:$.fontSize,padding:0,height:"20px"}),option:(R,W)=>({...R,fontFamily:"Inter",fontWeight:500,fontSize:$.fontSize,lineHeight:"1.2",borderBottom:"1px solid rgb(229 229 229)",backgroundColor:W.isSelected?"rgb(59 130 246)":W.isFocused?"rgb(245 245 245)":"rgb(255 255 255)",color:W.isSelected?"white":W.isDisabled?"rgb(163 163 163)":"inherit",cursor:W.isDisabled?"not-allowed":"pointer",opacity:W.isDisabled?.6:1,"&:hover":{backgroundColor:W.isSelected?"rgb(59 130 246)":W.isDisabled?"rgb(255 255 255)":"rgb(245 245 245)"}}),singleValue:(R,W)=>({...R,fontFamily:"Inter",fontWeight:500,fontSize:$.fontSize,lineHeight:"1.25rem",display:"block",color:W.isDisabled?"rgb(163 163 163)":"inherit"}),placeholder:(R,W)=>({...R,fontFamily:"Inter",fontSize:$.fontSize,fontWeight:500,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:W.isDisabled?"rgb(163 163 163)":"rgb(115 115 115)"}),multiValue:R=>({...R,backgroundColor:"rgb(230 241 252)",border:"1px solid rgb(198 225 249)",borderRadius:"4px",fontFamily:"Inter"}),multiValueLabel:R=>({...R,color:"rgb(0 108 207)",fontSize:"12px"}),multiValueRemove:R=>({...R,color:"rgb(0 108 207)",":hover":{backgroundColor:"rgb(230 241 252)",color:"rgb(220 38 38)"}}),menu:R=>({...R,backgroundColor:"rgb(255 255 255)",border:"1px solid rgb(229 229 229)",borderRadius:"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)"}),loadingIndicator:R=>({...R,color:"rgb(99 102 241)"}),noOptionsMessage:R=>({...R,color:"rgb(107 114 128)",fontSize:$.fontSize})},k=()=>h==="error"?"text-red-500 dark:text-red-400":h==="success"?"text-green-500 dark:text-green-400":h==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",j=()=>{switch(S){case"small":return"extra-small";case"large":return"medium";default:return"small"}},z=()=>C.jsx("div",{className:"flex items-center",children:C.jsx(K9,{className:"-rotate-90 transition-transform duration-200",sx:{fontSize:S==="small"?"14px":S==="large"?"18px":"16px"}})}),H=R=>C.jsx("div",{className:"absolute top-0 left-0 h-full flex items-center dark:text-neutral-100",children:R.data.label}),V=!!o?.length,D=d&&(V||!!n),B=(R,W)=>{i(R,W),a?.(R)};return C.jsxs("div",{className:J("flex flex-col w-full",p),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!m&&"capitalize",y),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:j(),appearance:"subtitle",children:[t,f&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),w&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:w}),C.jsx(xO,{...I,ref:P,id:e,required:f,options:s,isClearable:D,isLoading:l,isDisabled:u,styles:F,isMulti:c,value:c?o:n,placeholder:r,filterOption:v,onChange:B,className:J("react-select-container",b),classNamePrefix:"react-select",components:{IndicatorsContainer:z,SingleValue:H,...O},"aria-required":f,"aria-invalid":g&&h==="error"?"true":"false","aria-describedby":g||w?`${e}-description`:void 0}),C.jsx(Ze.AnimatePresence,{children:g&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:h==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",k()),appearance:"custom",size:"extra-small",variant:"medium",children:g})})}),w&&!g&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:w})]})});jb.displayName="CreatableSelectField";const vf=[{value:"USD",label:"United States Dollar",symbol:"$"},{value:"EUR",label:"Euro",symbol:"€"},{value:"GBP",label:"British Pound",symbol:"£"},{value:"JPY",label:"Japanese Yen",symbol:"¥"},{value:"CAD",label:"Canadian Dollar",symbol:"C$"},{value:"AUD",label:"Australian Dollar",symbol:"A$"},{value:"CHF",label:"Swiss Franc",symbol:"CHF"},{value:"CNY",label:"Chinese Yuan",symbol:"¥"},{value:"SEK",label:"Swedish Krona",symbol:"kr"},{value:"NZD",label:"New Zealand Dollar",symbol:"NZ$"}],Rb={USD:"$",EUR:"€",GBP:"£",JPY:"¥",CAD:"C$",AUD:"A$",CHF:"CHF",CNY:"¥",SEK:"kr",NZD:"NZ$"},Lb=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,placeholder:s,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",currencyCode:m="USD",allowCurrencyChange:p=!1,availableCurrencies:b,showSymbol:y=!0,formatValue:w=!0,min:S,max:v,decimalPlaces:I=2,inputProps:O,inputStyle:N},T)=>{const[P,M]=E.useState(!1),[x,$]=E.useState(m),[F,k]=E.useState(!1),j=b?vf.filter(U=>b.includes(U.value)):vf,z=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pl-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pl-12"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pl-10"}}},H=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",V=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",_=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},D=U=>{if(U==null)return"";const Q=Number(U);return isNaN(Q)?String(U):w?Q.toLocaleString("en-US",{minimumFractionDigits:I,maximumFractionDigits:I}):String(Q)},B=U=>{const Q=U.target.value;if(Q===""||Q===null||Q===void 0)o(null,x);else{const Z=Number(Q);isNaN(Z)||o(Z,x)}},R=U=>{$(U),k(!1),o(r??null,U)},W=()=>{M(!0)},K=()=>{M(!1)},q=z();return E.useEffect(()=>{$(m)},[m]),C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:_(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),C.jsxs("div",{className:"relative",children:[y&&C.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:Rb[x]||x}),C.jsx("input",{...O,ref:T,id:e,type:P?"number":"text",value:P?r??"":D(r),defaultValue:n!==void 0?P?n??"":D(n):void 0,placeholder:s,required:a,disabled:i,min:S,max:v,step:1/Math.pow(10,I),onFocus:W,onBlur:K,onChange:B,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",q.height,q.padding,q.fontSize,y?q.symbolPadding:"",H(),p?"pr-20":"",i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:N,"aria-required":a,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||g?`${e}-description`:void 0}),p&&C.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center",children:C.jsxs("div",{className:"relative",children:[C.jsxs("button",{type:"button",onClick:()=>k(!F),disabled:i,className:J("px-3 py-1 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 rounded-r-md border-l border-gray-300 dark:border-gray-600 transition-colors",i&&"opacity-50 cursor-not-allowed"),children:[x,C.jsx("svg",{className:"w-4 h-4 ml-1 inline-block",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),F&&C.jsx("div",{className:"absolute top-full right-0 mt-1 w-64 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-md shadow-lg z-50 max-h-60 overflow-y-auto",children:j.map(U=>C.jsxs("button",{type:"button",onClick:()=>R(U.value),className:"w-full px-4 py-2 text-left text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 flex justify-between items-center",children:[C.jsxs("span",{children:[U.value," - ",U.label]}),C.jsx("span",{className:"text-gray-500",children:U.symbol})]},U.value))})]})}),F&&C.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>k(!1)})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",V()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),g&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Lb.displayName="CurrencyInputField";const Db=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,message:s,messageType:l="default",wrapperClassName:c,inputClassName:u,labelClassName:d,helpText:f,size:g="medium",minDate:h,maxDate:m,startPlaceholder:p="Start date",endPlaceholder:b="End date",allowClear:y=!0,inputProps:w},S)=>{const v=r!==void 0?r:n||{startDate:null,endDate:null},I=()=>{switch(g){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},O=()=>l==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":l==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":l==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",N=()=>l==="error"?"text-red-500 dark:text-red-400":l==="success"?"text-green-500 dark:text-green-400":l==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",T=()=>{switch(g){case"small":return"extra-small";case"large":return"medium";default:return"small"}},P=z=>{if(!z)return"";const H=z.getFullYear(),V=String(z.getMonth()+1).padStart(2,"0"),_=String(z.getDate()).padStart(2,"0");return`${H}-${V}-${_}`},M=z=>{if(!z)return null;const H=new Date(z);return isNaN(H.getTime())?null:H},x=z=>{const H=M(z.target.value);o({startDate:H,endDate:v.endDate})},$=z=>{const H=M(z.target.value);o({startDate:v.startDate,endDate:H})},F=()=>{o({startDate:null,endDate:null})},k=z=>z?P(z):void 0,j=I();return C.jsxs("div",{className:J("flex flex-col w-full",c),ref:S,children:[t&&C.jsx("label",{htmlFor:`${e}-start`,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",d),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:T(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),f&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:f}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("div",{className:"flex-1",children:C.jsx("input",{...w,id:`${e}-start`,type:"date",value:P(v.startDate),onChange:x,disabled:i,required:a,min:k(h),max:k(m),placeholder:p,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,O(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||f?`${e}-description`:void 0})}),C.jsx("div",{className:"flex-shrink-0 text-neutral-500 dark:text-neutral-400",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 12H6"})})}),C.jsx("div",{className:"flex-1",children:C.jsx("input",{...w,id:`${e}-end`,type:"date",value:P(v.endDate),onChange:$,disabled:i,required:a,min:k(v.startDate||h),max:k(m),placeholder:b,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",j.height,j.padding,j.fontSize,O(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",u),"aria-required":a,"aria-invalid":s&&l==="error"?"true":"false","aria-describedby":s||f?`${e}-description`:void 0})}),y&&(v.startDate||v.endDate)&&!i&&C.jsx("button",{type:"button",onClick:F,className:"flex-shrink-0 p-1 text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-200 transition-colors","aria-label":"Clear date range",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),C.jsx("div",{className:"absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none text-neutral-400 dark:text-neutral-500",children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),C.jsx(Ze.AnimatePresence,{children:s&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:l==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",N()),appearance:"custom",size:"extra-small",variant:"medium",children:s})})}),f&&!s&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:f})]})});Db.displayName="DateRange";const _b=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,onImmediateChange:i,disabled:a=!1,required:s=!1,placeholder:l,message:c,messageType:u="default",wrapperClassName:d,inputClassName:f,labelClassName:g,helpText:h,size:m="medium",type:p="text",debounceTimeout:b=300,min:y,max:w,maxLength:S,pattern:v,inputProps:I,inputStyle:O,onKeyDown:N,onFocus:T,onBlur:P},M)=>{const[x,$]=E.useState(r||n||""),[F,k]=E.useState(r||n||""),j=()=>{switch(m){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm"}}},z=()=>u==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":u==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":u==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",H=()=>u==="error"?"text-red-500 dark:text-red-400":u==="success"?"text-green-500 dark:text-green-400":u==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",V=()=>{switch(m){case"small":return"extra-small";case"large":return"medium";default:return"small"}};E.useEffect(()=>{const B=setTimeout(()=>{F!==x&&(k(x),o(x))},b);return()=>clearTimeout(B)},[x,b,o,F]),E.useEffect(()=>{r!==void 0&&r!==x&&($(r),k(r))},[r,x]);const _=E.useCallback(B=>{const R=B.target.value;$(R),i?.(R)},[i]),D=j();return C.jsxs("div",{className:J("flex flex-col w-full",d),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",g),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:V(),appearance:"subtitle",children:[t,s&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),h&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:h}),C.jsxs("div",{className:"relative",children:[C.jsx("input",{...I,ref:M,id:e,type:p,value:x,defaultValue:n,placeholder:l,required:s,disabled:a,min:y,max:w,maxLength:S,pattern:v,onChange:_,onKeyDown:N,onFocus:T,onBlur:P,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",D.height,D.padding,D.fontSize,z(),a&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",f),style:O,"aria-required":s,"aria-invalid":c&&u==="error"?"true":"false","aria-describedby":c||h?`${e}-description`:void 0}),x!==F&&C.jsx("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:C.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse"})})]}),S&&C.jsx("div",{className:"mt-1 text-right",children:C.jsxs(ge,{className:J("text-xs",x.length>S*.9?"text-orange-500":x.length===S?"text-red-500":"text-neutral-400 dark:text-neutral-500"),appearance:"custom",size:"extra-small",children:[x.length,"/",S]})}),C.jsx(Ze.AnimatePresence,{children:c&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:u==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",H()),appearance:"custom",size:"extra-small",variant:"medium",children:c})})}),h&&!c&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:h})]})});_b.displayName="DebounceInputField";const Vb=E.forwardRef(({id:e,label:t,value:r,defaultValue:n,onChange:o,disabled:i=!1,required:a=!1,placeholder:s,message:l,messageType:c="default",wrapperClassName:u,inputClassName:d,labelClassName:f,helpText:g,size:h="medium",min:m=0,max:p=100,step:b=.01,decimalPlaces:y=2,showSymbol:w=!0,allowNegative:S=!1,inputProps:v,inputStyle:I,onKeyDown:O,onFocus:N,onBlur:T},P)=>{const M=()=>{switch(h){case"small":return{height:"h-7",padding:"px-2 py-1",fontSize:"text-xs",symbolPadding:"pr-8"};case"large":return{height:"h-10",padding:"px-4 py-2",fontSize:"text-base",symbolPadding:"pr-10"};default:return{height:"h-8",padding:"px-3 py-1.5",fontSize:"text-sm",symbolPadding:"pr-9"}}},x=()=>c==="error"?"border-red-300 focus:border-red-500 focus:ring-red-200 dark:focus:ring-red-400/20":c==="success"?"border-green-300 focus:border-green-500 focus:ring-green-200 dark:focus:ring-green-400/20":c==="info"?"border-blue-300 focus:border-blue-500 focus:ring-blue-200 dark:focus:ring-blue-400/20":"border-neutral-300 dark:border-neutral-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20",$=()=>c==="error"?"text-red-500 dark:text-red-400":c==="success"?"text-green-500 dark:text-green-400":c==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",F=()=>{switch(h){case"small":return"extra-small";case"large":return"medium";default:return"small"}},k=V=>{const _=V.target.value;if(_===""||_===null||_===void 0)o(null);else{const D=Number(_);if(!isNaN(D)){let B=D;!S&&B<0&&(B=0),m!==void 0&&B<m&&(B=m),p!==void 0&&B>p&&(B=p);const R=Math.pow(10,y);B=Math.round(B*R)/R,o(B)}}},j=V=>{N?.(V)},z=V=>{T?.(V)},H=M();return C.jsxs("div",{className:J("flex flex-col w-full",u),children:[t&&C.jsx("label",{htmlFor:e,className:J("mb-1 text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",f),children:C.jsx("div",{className:"flex flex-wrap items-center justify-between w-full",children:C.jsx("div",{className:"inline-flex flex-wrap items-center gap-1",children:C.jsxs(ge,{variant:"medium",size:F(),appearance:"subtitle",children:[t,a&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})})}),g&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:g}),C.jsxs("div",{className:"relative",children:[C.jsx("input",{...v,ref:P,id:e,type:"number",value:r??"",defaultValue:n??"",placeholder:s,required:a,disabled:i,min:S?void 0:m,max:p,step:b,onChange:k,onKeyDown:O,onFocus:j,onBlur:z,className:J("border rounded-md bg-white dark:bg-neutral-800 block w-full font-medium text-neutral-900 dark:text-neutral-100","transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2",H.height,H.padding,H.fontSize,w?H.symbolPadding:"",x(),i&&"opacity-50 cursor-not-allowed bg-neutral-50 dark:bg-neutral-700",d),style:I,"aria-required":a,"aria-invalid":l&&c==="error"?"true":"false","aria-describedby":l||g?`${e}-description`:void 0}),w&&C.jsx("span",{className:"absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-900 dark:text-neutral-100 pointer-events-none",children:"%"})]}),r!=null&&C.jsxs("div",{className:"mt-1 flex justify-between items-center text-xs",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[r<m&&C.jsxs("span",{className:"text-orange-500",children:["Below minimum (",m,"%)"]}),r>p&&C.jsxs("span",{className:"text-orange-500",children:["Above maximum (",p,"%)"]}),r>=m&&r<=p&&C.jsx("span",{className:"text-green-500",children:"Valid range"})]}),C.jsxs("span",{className:"text-neutral-400 dark:text-neutral-500",children:[r.toFixed(y),"%"]})]}),C.jsx(Ze.AnimatePresence,{children:l&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:c==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",$()),appearance:"custom",size:"extra-small",variant:"medium",children:l})})}),g&&!l&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:g})]})});Vb.displayName="PercentageInputField";const rT=(e,t,r,n,o)=>{const i={small:"w-7 h-4 after:h-3 after:w-3 after:top-0.5 after:left-0.5",medium:"w-9 h-5 after:h-4 after:w-4 after:top-0.5 after:left-0.5",large:"w-11 h-6 after:h-5 after:w-5 after:top-0.5 after:left-0.5"},a={small:"peer-checked:after:translate-x-3",medium:"peer-checked:after:translate-x-4",large:"peer-checked:after:translate-x-5"};return J("p-0.5 rounded-full peer after:content-[''] after:absolute after:rounded-full after:transition-all bg-gray-200",i[o],a[o],{"dark:bg-neutral-400 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-500":r==="secondary"&&!e,"dark:bg-neutral-500 dark:peer-focus:ring-blue-800 dark:after:bg-neutral-700":r==="primary"&&!e,"peer-checked:bg-blue-600 dark:peer-checked:bg-primary-900 after:bg-white dark:after:bg-primary-500":e,"after:bg-white dark:after:bg-neutral-700":!e,"text-white dark:text-neutral-900":t,"cursor-not-allowed opacity-70":n})},bf=E.forwardRef(({id:e,checked:t,onChange:r,label:n,required:o=!1,disabled:i=!1,message:a,messageType:s="default",wrapperClassName:l,toggleClassName:c,labelClassName:u,helpText:d,size:f="medium",labelDirection:g="top",hideStatus:h=!1,statusText:m,withIcon:p=!1,icon:b,variant:y="primary",originalCase:w=!1,stopClickPropagation:S=!0},v)=>{const I=g==="top",O=g==="left",N=g==="right",T=()=>s==="error"?"text-red-500 dark:text-red-400":s==="success"?"text-green-500 dark:text-green-400":s==="info"?"text-blue-500 dark:text-blue-400":"text-neutral-500 dark:text-neutral-400",P=$=>{i||r($.target.checked)},M=()=>C.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})}),x=()=>C.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})});return C.jsxs("div",{className:J("flex flex-col w-full",l),onClick:$=>{S&&$.stopPropagation()},children:[I&&n&&C.jsx("div",{className:"w-full flex justify-between flex-wrap mb-1",children:C.jsx("label",{htmlFor:e,className:J("text-xs font-medium text-gray-600 dark:text-gray-300 inline-flex items-center gap-1",!w&&"capitalize",u),children:C.jsxs(ge,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[n,o&&C.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})})}),d&&C.jsx(ge,{className:"mb-2 text-neutral-600 dark:text-neutral-400",appearance:"custom",size:"extra-small",variant:"regular",children:d}),C.jsxs("div",{className:"flex items-center",children:[O&&n&&C.jsx(ge,{size:"small",variant:"medium",className:J("mr-2 text-neutral-700 dark:text-neutral-200",u),appearance:"custom",children:n}),C.jsxs("label",{className:J("relative inline-flex items-center",N||m?"":"w-min",i?"cursor-not-allowed opacity-50":"cursor-pointer"),onClick:$=>$.stopPropagation(),children:[C.jsx("input",{ref:v,type:"checkbox",id:e,onChange:P,disabled:i,checked:t,className:J("sr-only peer w-full",c),"aria-required":o,"aria-invalid":a&&s==="error"?"true":"false","aria-describedby":a||d?`${e}-description`:void 0}),C.jsx("div",{className:rT(t,p,y,i,f),children:p&&C.jsx("div",{className:"flex items-center justify-center h-full",children:C.jsx("div",{className:J("z-10 transition-all transform",f==="small"&&(t?"translate-x-2 translate-y-[-2px]":"translate-x-[-6px] translate-y-[-2px]"),f==="medium"&&(t?"translate-x-[8.5px] translate-y-[-2px]":"translate-x-[-8px] translate-y-[-2px]"),f==="large"&&(t?"translate-x-3 translate-y-[-2px]":"translate-x-[-10px] translate-y-[-2px]")),children:t?b?.checkedIcon?b.checkedIcon:C.jsx(M,{}):b?.uncheckedIcon?b.uncheckedIcon:C.jsx(x,{})})})}),N&&n&&C.jsx(ge,{size:"small",variant:"medium",className:J("ml-2 text-neutral-700 dark:text-neutral-300",u),appearance:"custom",children:n}),!h&&C.jsx(ge,{size:"small",variant:"medium",className:"ml-2 text-neutral-900 dark:text-neutral-100",appearance:"custom",children:m||(t?"Yes":"No")})]})]}),C.jsx(Ze.AnimatePresence,{children:a&&C.jsx(Ze.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},id:`${e}-description`,role:s==="error"?"alert":void 0,children:C.jsx(ge,{className:J("mt-1",T()),appearance:"custom",size:"extra-small",variant:"medium",children:a})})}),d&&!a&&C.jsx("div",{id:`${e}-description`,className:"sr-only",children:d})]})});bf.displayName="Toggle";var Bb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zb=E.createContext&&E.createContext(Bb),nT=["attr","size","title"];function oT(e,t){if(e==null)return{};var r=iT(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dl.apply(this,arguments)}function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){aT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aT(e,t,r){return t=sT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sT(e){var t=lT(e,"string");return typeof t=="symbol"?t:t+""}function lT(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hb(e){return e&&e.map((t,r)=>E.createElement(t.tag,_l({key:r},t.attr),Hb(t.child)))}function Vl(e){return t=>E.createElement(cT,Dl({attr:_l({},e.attr)},t),Hb(e.child))}function cT(e){var t=r=>{var{attr:n,size:o,title:i}=e,a=oT(e,nT),s=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),E.createElement("svg",Dl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,a,{className:l,style:_l(_l({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&E.createElement("title",null,i),e.children)};return zb!==void 0?E.createElement(zb.Consumer,null,r=>t(r)):t(Bb)}function uT(e){return Vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"},child:[]},{tag:"polyline",attr:{points:"7 10 12 15 17 10"},child:[]},{tag:"line",attr:{x1:"12",y1:"15",x2:"12",y2:"3"},child:[]}]})(e)}function dT(e){return Vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function fT(e){return Vl({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"},child:[]}]})(e)}function mT(e){return Vl({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38.57.57 0 0 1-.238.241.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181.185.183.185.522m1.217-1.333v3.999h1.46q.602 0 .998-.237a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084 0-.63-.196-1.075a1.43 1.43 0 0 0-.589-.68q-.396-.234-1.005-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592 1.1 1.1 0 0 1-.196.422.8.8 0 0 1-.334.252 1.3 1.3 0 0 1-.483.082h-.563zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638z"},child:[]}]})(e)}const{Dragger:pT}=Qo,gT=e=>e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(2)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`,hT=(e,t=20)=>e?e.length<=t?e:e.slice(0,t-7)+"...."+e.slice(-7):"",Wb=E.forwardRef(({id:e,onFileChange:t,description:r,errorMessage:n,disabled:o=!1,defaultFile:i=null,acceptedFiles:a="*",isLoading:s=!1,asBase64:l=!1,toFileServer:c=!1,setFileUploading:u,fileUploading:d=!1,multiple:f=!1,getRealFileName:g=!1,maxSize:h=50*1024*1024,onUpload:m,onDelete:p,wrapperClassName:b,uploadClassName:y,showFileSize:w=!0,formatFileSize:S=gT},v)=>{const[I,O]=E.useState(null),[N,T]=E.useState([]),[P,M]=E.useState("#d9d9d9"),[x,$]=E.useState(!1),[F,k]=E.useState(null),j=E.useCallback(async()=>{if(m)try{const V=await m(N),_=f?V?.map(B=>B?.fileUrl):V?.[0]?.fileUrl,D=g?I?.name:V?.[0]?.fileName;t(_,D),u?.(null)}catch(V){console.error("Upload failed:",V),u?.(null)}},[m,N,f,I,g,t,u]),z={accept:a,multiple:f,showUploadList:!1,disabled:o,onRemove:()=>{T([])},beforeUpload:(V,_)=>{if(V.size>h){const D=(h/1048576).toFixed(0);return console.error(`File size exceeds ${D}MB limit`),!1}return O(V),c?(u?.(e||"field-file-upload"),T(_)):(l?Promise.all((f?_:[V]).map(D=>new Promise(B=>{const R=new FileReader;R.onload=W=>{B({filename:D.name,content:W?.target?.result?.split(",")[1]})},R.readAsDataURL(D)}))).then(D=>{t(f?D:D[0])}):t(V),O(V)),!1}},H=async()=>{if(c&&F&&p)try{await p(F),k(null)}catch(V){console.error("Delete failed:",V)}O(null),T([]),t(null)};return E.useEffect(()=>{M(n?"#EF4444":"#d9d9d9")},[n]),E.useEffect(()=>{N.length&&c&&j()},[N,c,j]),E.useEffect(()=>{i?.name&&O(i)},[i]),C.jsxs("div",{ref:v,className:J("w-full",b),children:[C.jsx("div",{className:"h-32",onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:C.jsx(pT,{...z,className:y,style:{borderColor:x&&!n?"#1890ff":P},disabled:o||d,children:I?C.jsxs("div",{className:"flex items-center justify-between mx-5",title:I?.name||i?.name||"",children:[C.jsxs("div",{className:"flex items-center justify-center gap-4",children:[I?.type==="application/pdf"?C.jsx("div",{className:"p-3 bg-[#E6F1FC] rounded-lg",children:C.jsx(mT,{size:20,fill:"#006CCF"})}):C.jsx("div",{className:"p-3 bg-[#E6F1FC] rounded-lg",children:C.jsx(tT,{sx:{height:"20px",width:"20px",color:"#006CCF"}})}),C.jsxs("div",{className:"text-left",children:[C.jsx(ge,{size:"small",variant:"medium",className:"font-inter text-md font-medium text-base",children:hT(I?.name||i?.name||"")}),d?C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:"Uploading..."}):w&&I?.size>0?C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:S(I.size)}):null]})]}),s?C.jsx(fT,{size:40,className:"spinner text-primary-600"}):C.jsx("button",{id:`btn-file-upload-${e}`,className:"ml-4",onClick:V=>{V.stopPropagation(),H()},disabled:o,type:"button","aria-label":"Delete file",children:C.jsx(dT,{size:20,className:"text-gray-400"})})]}):C.jsx("div",{className:"flex items-center justify-center",children:C.jsxs("div",{className:"flex-col",children:[C.jsx("div",{className:"mb-4 flex justify-center",children:C.jsx(uT,{size:24,className:"text-gray-400"})}),C.jsxs("div",{children:[C.jsxs("div",{className:"flex items-center justify-center",children:[C.jsx(ge,{size:"small",variant:"medium",className:"text-primary-600 dark:text-primary-300",appearance:"custom",children:"Click to upload"}),C.jsx(ge,{size:"small",variant:"medium",className:"ml-1",appearance:"subtitle",children:"or drag and drop"})]}),r?C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:r}):null]})]})})})}),n&&C.jsx(ge,{className:"text-red-500 mt-1",appearance:"custom",size:"extra-small",variant:"medium",children:n})]})});Wb.displayName="MultiFileUpload";const{Dragger:vT}=Qo,bT=200*1024*1024,yT=(e,t,r,n,o)=>{const i={small:"h-24",medium:"h-32",large:"h-40"},a={primary:"border-blue-200 hover:border-blue-400",secondary:"border-gray-200 hover:border-gray-400"};return J("border-2 border-dashed rounded-lg transition-colors duration-200",i[e],a[t],{"border-red-400 bg-red-50":n,"cursor-not-allowed opacity-50":r,"cursor-pointer":!r})},CT=()=>C.jsx("div",{className:"p-3 bg-blue-50 rounded-lg",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"})})}),xT=()=>C.jsx("div",{className:"p-3 bg-blue-50 rounded-lg",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",clipRule:"evenodd"})})}),wT=()=>C.jsx("svg",{className:"w-6 h-6 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})}),ST=()=>C.jsx("svg",{className:"w-5 h-5 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})}),Ub=E.forwardRef(({id:e,onFileSelect:t,onUpload:r,description:n,errorMessage:o,disabled:i=!1,defaultFile:a=null,acceptedFiles:s="*",isLoading:l=!1,asBase64:c=!1,multiple:u=!1,hideSelectedFile:d=!1,onDelete:f,maxSize:g=bT,wrapperClassName:h,uploadClassName:m,size:p="medium",variant:b="primary",uploadIcon:y,deleteIcon:w,fileTypeIcons:S,showFileSize:v=!0,showProgress:I=!1,progress:O=0},N)=>{const[T,P]=E.useState(null),[M,x]=E.useState(!1),$=(V,_)=>{if(V.size>g){const D=Math.round(g/1048576);return console.error(`File size exceeds the limit of ${D} MB`),Qo.LIST_IGNORE}if(d||P(V),c){const D=new FileReader;D.onload=B=>{const R=B?.target?.result;t(R,V.name)},D.readAsDataURL(V)}else t(u?_:V,V.name);return r&&r(u?_:V),Qo.LIST_IGNORE},F=()=>{P(null),t(null),f?.()},k=V=>{if(V===0)return"0 Bytes";const _=1024,D=["Bytes","KB","MB","GB"],B=Math.floor(Math.log(V)/Math.log(_));return parseFloat((V/Math.pow(_,B)).toFixed(2))+" "+D[B]},j=V=>V.length<=30?V:`${V.slice(0,23)}....${V.slice(-7)}`,z=V=>V.type==="application/pdf"?S?.pdf||C.jsx(CT,{}):S?.default||C.jsx(xT,{});E.useEffect(()=>{a&&P(a)},[a]);const H={accept:s,multiple:u,showUploadList:!1,disabled:i,beforeUpload:$};return C.jsxs("div",{ref:N,className:J("w-full",h),children:[C.jsx("div",{className:J(yT(p,b,i,!!o),m),onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),role:"button",tabIndex:i?-1:0,"aria-label":"File upload area",children:C.jsx(vT,{...H,children:T&&!d?C.jsxs("div",{className:"flex items-center justify-between mx-5",title:T.name,children:[C.jsxs("div",{className:"flex items-center gap-4",children:[z(T),C.jsxs("div",{className:"text-left",children:[C.jsx(ge,{size:"small",variant:"medium",className:"text-neutral-900 font-medium",children:j(T.name)}),v&&T.size>0&&C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:k(T.size)}),I&&O>0&&C.jsxs("div",{className:"mt-1",children:[C.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1",children:C.jsx("div",{className:"bg-blue-600 h-1 rounded-full transition-all duration-300",style:{width:`${O}%`}})}),C.jsxs(ge,{size:"extra-small",variant:"medium",appearance:"subtitle",children:[O,"% uploaded"]})]})]})]}),l?C.jsx("div",{className:"animate-spin",children:C.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}):C.jsx("button",{className:"ml-4 p-1 hover:bg-gray-100 rounded",onClick:V=>{V.stopPropagation(),F()},disabled:i,type:"button","aria-label":"Delete file",children:w||C.jsx(ST,{})})]}):C.jsx("div",{className:"flex items-center justify-center h-full",children:C.jsxs("div",{className:"flex flex-col items-center",children:[C.jsx("div",{className:"mb-4 flex justify-center",children:y||C.jsx(wT,{})}),C.jsxs("div",{className:"text-center",children:[C.jsxs("div",{className:"flex items-center justify-center gap-1",children:[C.jsx(ge,{size:"small",variant:"medium",className:"text-blue-600 dark:text-blue-300",appearance:"custom",children:"Click to upload"}),C.jsx(ge,{size:"small",variant:"medium",appearance:"subtitle",children:"or drag and drop"})]}),n&&C.jsx(ge,{size:"small",variant:"medium",className:"text-neutral-400 mt-1",children:n})]})]})})})}),o&&C.jsx(ge,{className:"text-red-500 mt-1",appearance:"custom",size:"extra-small",variant:"medium",children:o})]})});Ub.displayName="FileUpload";const Xb=E.forwardRef(({status:e,children:t,className:r,size:n="medium","aria-label":o},i)=>{const a=()=>{switch(n){case"small":return"text-xs px-1.5 py-0.5";case"large":return"text-base px-3 py-1.5";default:return"text-sm px-2 py-1"}},s=()=>{switch(e?.toLowerCase()){case"purple":return"bg-purple-50 text-purple-500 border border-purple-100 dark:bg-purple-950 dark:text-purple-400 dark:border-purple-800";case"blue":return"bg-blue-50 text-blue-500 border border-blue-100 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800";case"teal":return"bg-teal-50 text-teal-500 border border-teal-100 dark:bg-teal-950 dark:text-teal-400 dark:border-teal-800";case"green":return"bg-green-50 text-green-500 border border-green-100 dark:bg-green-950 dark:text-green-400 dark:border-green-800";case"yellow":return"bg-yellow-50 text-yellow-600 border border-yellow-100 dark:bg-yellow-950 dark:text-yellow-400 dark:border-yellow-800";case"orange":return"bg-orange-50 text-orange-500 border border-orange-100 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800";case"peach":return"bg-orange-50 text-orange-400 border border-orange-100 dark:bg-orange-950 dark:text-orange-300 dark:border-orange-800";case"red":return"bg-red-50 text-red-500 border border-red-100 dark:bg-red-950 dark:text-red-400 dark:border-red-800";case"navy":return"bg-slate-50 text-slate-700 border border-slate-100 dark:bg-slate-950 dark:text-slate-400 dark:border-slate-800";case"grey":return"bg-neutral-50 text-neutral-500 border border-neutral-100 dark:bg-neutral-950 dark:text-neutral-400 dark:border-neutral-800";default:return"bg-blue-50 text-blue-600 border border-blue-200 dark:bg-blue-950 dark:text-blue-400 dark:border-blue-800"}};return C.jsx("span",{ref:i,className:J("inline-flex items-center justify-center font-medium rounded-md transition-colors",a(),s(),r),"aria-label":o||`Status: ${e||"default"}`,role:"status",children:t})});Xb.displayName="StatusColorMapping";const Yb=E.forwardRef(({status:e="default",children:t,appearance:r="outline",size:n="md",className:o,isRounded:i=!1,capitalize:a=!0,"aria-label":s},l)=>{const c=h=>!h||!a?h:h.replace(/\w\S*/g,m=>m.charAt(0).toUpperCase()+m.substr(1).toLowerCase()),u=()=>{switch(n){case"sm":return"text-xs px-1.5 py-0.5";case"lg":return"text-sm px-3 py-1.5";default:return"text-xs px-2 py-1"}},d=()=>{switch(e){case"primary":case"default":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-600 dark:text-yellow-300 border border-yellow-300 dark:border-yellow-700";case"error":return"bg-red-50 dark:bg-red-950 text-red-600 dark:text-red-300 border border-red-300 dark:border-red-700";case"neutral":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-600 dark:text-neutral-300 border border-neutral-300 dark:border-neutral-700";case"success":return"bg-green-50 dark:bg-green-950 text-green-600 dark:text-green-300 border border-green-300 dark:border-green-700";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700";default:return"bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-300 border border-blue-300 dark:border-blue-700"}},f=()=>{switch(e){case"primary":case"default":return"bg-blue-600 dark:bg-blue-700 text-white";case"warning":return"bg-yellow-600 dark:bg-yellow-700 text-white";case"success":return"bg-green-600 dark:bg-green-700 text-white";case"error":return"bg-red-600 dark:bg-red-700 text-white";case"neutral":return"bg-neutral-600 dark:bg-neutral-700 text-white";case"info":return"bg-blue-600 dark:bg-blue-700 text-white";default:return"bg-blue-600 dark:bg-blue-700 text-white"}},g=()=>r==="filled"?f():d();return C.jsx("span",{ref:l,className:J("inline-flex items-center justify-center font-medium transition-colors",i?"rounded-full":"rounded",u(),g(),o),"aria-label":s||`Badge: ${e}`,role:"status",children:c(t)})});Yb.displayName="Badge";const Jb=E.forwardRef(({open:e,children:t,title:r,mask:n=!0,onlyBody:o=!1,bodySpacing:i=!0,headerRightContent:a,parentContainer:s="full-screen-container",zIndex:l,asForm:c,onSubmit:u,showCloseButton:d=!0,noPadding:f=!1,onClose:g,onCancel:h,size:m="md",appearance:p="default",className:b,width:y,height:w,footer:S,closable:v=!0,centered:I=!0,style:O,...N},T)=>{const P=()=>{switch(m){case"sm":return"max-w-sm";case"lg":return"max-w-2xl";case"xl":return"max-w-4xl";case"full":return"max-w-full h-full";default:return"max-w-lg"}},M=()=>{switch(p){case"centered":return"flex items-center justify-center";case"fullscreen":return"w-full h-full";default:return"flex items-center justify-center"}},x=V=>{V.preventDefault(),u&&u()},$=()=>{g?g():h&&h()},F=V=>{v&&V.target===V.currentTarget&&$()},k=()=>o?null:C.jsxs("div",{className:"flex justify-between items-center",children:[d?C.jsx(ge,{size:"large",variant:"semibold",appearance:"title",className:"tour__title",children:r}):C.jsx("div",{className:"flex flex-col w-full",children:r}),a||d&&C.jsx("button",{id:"btn-modal-close",onClick:$,className:"p-1 hover:bg-neutral-100 dark:hover:bg-neutral-800 rounded transition-colors",type:"button","aria-label":"Close modal",children:C.jsx(eT,{sx:{fontSize:"20px"},className:"cursor-pointer text-neutral-400 hover:text-neutral-600 dark:text-neutral-500 dark:hover:text-neutral-400"})})]}),j=c?"form":"div";if(!e)return null;const z=C.jsx("div",{ref:T,className:J("fixed inset-0 z-[1000]",M(),n?"bg-black/50 backdrop-blur-sm":"",b),onClick:F,onKeyDown:V=>{V.key==="Escape"&&v&&$()},style:{zIndex:l||1e3,...O},role:"dialog","aria-modal":"true",tabIndex:-1,"aria-label":typeof r=="string"?r:"Modal",children:C.jsx("div",{className:J("bg-white dark:bg-neutral-900 rounded-lg shadow-xl",P(),p==="fullscreen"?"w-full h-full rounded-none":"",I?"mx-auto":""),style:{width:y||void 0,height:w||void 0},onClick:V=>V.stopPropagation(),onKeyDown:V=>V.stopPropagation(),role:"document",children:C.jsxs(j,{onSubmit:c?x:void 0,className:"flex flex-col h-full",children:[k(),N.addLineAfterHeader&&C.jsx("hr",{className:"mt-2 border-neutral-200 dark:border-neutral-700"}),C.jsx("div",{className:J("flex-1 overflow-auto",f?"p-0":i?"p-6":"p-0"),children:t}),S&&C.jsx("div",{className:J("border-t border-neutral-200 dark:border-neutral-700",f?"p-0":"p-6"),children:S})]})})}),H=document.getElementById(s)||document.body;return zr.createPortal(z,H)});Jb.displayName="Modal";const Zb=E.forwardRef(({size:e=24,fill:t="currentColor",className:r,...n},o)=>C.jsx("svg",{ref:o,className:J(r),width:e,height:e,viewBox:"0 0 20 20",fill:t,xmlns:"http://www.w3.org/2000/svg",...n,children:C.jsx("path",{d:"M10.0002 11.1666L5.91683 15.2499C5.76405 15.4027 5.56961 15.4791 5.3335 15.4791C5.09739 15.4791 4.90294 15.4027 4.75016 15.2499C4.59738 15.0971 4.521 14.9027 4.521 14.6666C4.521 14.4305 4.59738 14.236 4.75016 14.0833L8.8335 9.99992L4.75016 5.91659C4.59738 5.76381 4.521 5.56936 4.521 5.33325C4.521 5.09714 4.59738 4.9027 4.75016 4.74992C4.90294 4.59714 5.09739 4.52075 5.3335 4.52075C5.56961 4.52075 5.76405 4.59714 5.91683 4.74992L10.0002 8.83325L14.0835 4.74992C14.2363 4.59714 14.4307 4.52075 14.6668 4.52075C14.9029 4.52075 15.0974 4.59714 15.2502 4.74992C15.4029 4.9027 15.4793 5.09714 15.4793 5.33325C15.4793 5.56936 15.4029 5.76381 15.2502 5.91659L11.1668 9.99992L15.2502 14.0833C15.4029 14.236 15.4793 14.4305 15.4793 14.6666C15.4793 14.9027 15.4029 15.0971 15.2502 15.2499C15.0974 15.4027 14.9029 15.4791 14.6668 15.4791C14.4307 15.4791 14.2363 15.4027 14.0835 15.2499L10.0002 11.1666Z"})}));Zb.displayName="CloseIcon";const Qn={primary:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#001c35",975:"#00111f"},black:{50:"#f0f0f0",100:"#d9d9d9",200:"#bfbfbf",300:"#8c8c8c",400:"#595959",500:"#454545",600:"#262626",700:"#1f1f1f",800:"#141414",900:"#000000",950:"#0a0a0a",975:"#050505"},blue:{50:"#E6F1FC",100:"#C6E1F9",200:"#8AC0F2",300:"#54A4EC",400:"#3392E9",500:"#0077E3",600:"#016DCF",700:"#0054A1",800:"#00417D",900:"#00325F",950:"#002547",975:"#001529"},success:{50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31",950:"#033625",975:"#022419"},neutral:{50:"#F9FAFB",100:"#F2F4F7",200:"#EAECF0",300:"#D0D5DD",400:"#98A2B3",500:"#667085",600:"#475467",700:"#344054",800:"#1D2939",900:"#101828",950:"#0c1219",975:"#080a0f"},error:{50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#3d1008",975:"#2a0b05"},warning:{50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#662505",975:"#451803"},teal:{50:"#ebf5f5",100:"#c2e0df",200:"#a4d1d0",300:"#7abcba",400:"#61afad",500:"#399b98",600:"#348d8a",700:"#286e6c",800:"#1f5554",900:"#184140",950:"#133534",975:"#0c2222"},green:{50:"#f2f7f2",100:"#d5e5d5",200:"#c1d9c1",300:"#a5c7a5",400:"#94bd93",500:"#79ac78",600:"#6e9d6d",700:"#567a55",800:"#435f42",900:"#334832",950:"#001e00",975:"#182818"},yellow:{50:"#fffaed",100:"#fff0c7",200:"#ffe8ac",300:"#ffde86",400:"#ffd76f",500:"#ffcd4b",600:"#e8bb44",700:"#b59235",800:"#8c7129",900:"#6b5620",950:"#524314",975:"#382e0e"},orange:{50:"#fef4e8",100:"#fddeb7",200:"#fcce94",300:"#fbb764",400:"#faa945",500:"#f99417",600:"#e38715",700:"#b16910",800:"#89510d",900:"#693e0a",950:"#4d2d07",975:"#331e05"},peach:{50:"#fceef3",100:"#f5cad9",200:"#f0b0c6",300:"#ea8cad",400:"#e5759d",500:"#df5384",600:"#cb4c78",700:"#9e3b5e",800:"#7b2e49",900:"#5e2337",950:"#451a2b",975:"#2e111d"},red:{50:"#fceaeb",100:"#f6bec0",200:"#f29ea2",300:"#ec7278",400:"#e9575d",500:"#e32d35",600:"#cf2930",700:"#a12026",800:"#7d191d",900:"#5f1316",950:"#470c0f",975:"#2f080a"},purple:{50:"#f5e7ff",100:"#dfb4ff",200:"#d090ff",300:"#bb5dff",400:"#ad3dff",500:"#990dff",600:"#8b0ce8",700:"#6d09b5",800:"#54078c",900:"#40056b",950:"#300450",975:"#200336"},navy:{50:"#eaebf6",100:"#bebfe2",200:"#9ea1d3",300:"#7276bf",400:"#575bb3",500:"#2d32a0",600:"#292e92",700:"#202472",800:"#191c58",900:"#131543",950:"#0d0e2f",975:"#090a20"},grey:{50:"#f2f2f2",100:"#d5d5d5",200:"#c1c1c1",300:"#a5a5a5",400:"#939393",500:"#787878",600:"#6d6d6d",700:"#555555",800:"#424242",900:"#323232",950:"#252525",975:"#191919"}},ET=e=>{let t=0;for(let o=0;o<e.length;o++)t=e.charCodeAt(o)+((t<<5)-t);const r=(t&16777215).toString(16).toUpperCase();return`#${"00000".substring(0,6-r.length)+r}`},yf=(e,t=80)=>{let r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return r=Math.min(255,r+(255-r)*(t/100)),n=Math.min(255,n+(255-n)*(t/100)),o=Math.min(255,o+(255-o)*(t/100)),`#${Math.round(r).toString(16).padStart(2,"0")}${Math.round(n).toString(16).padStart(2,"0")}${Math.round(o).toString(16).padStart(2,"0")}`},qb=(e,t=30)=>{let r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return r=Math.max(0,r*(1-t/100)),n=Math.max(0,n*(1-t/100)),o=Math.max(0,o*(1-t/100)),`#${Math.round(r).toString(16).padStart(2,"0")}${Math.round(n).toString(16).padStart(2,"0")}${Math.round(o).toString(16).padStart(2,"0")}`},IT=(e,t)=>({background:t?Qn[e]?.[975]:Qn[e]?.[50],borderColor:t?Qn[e]?.[900]:Qn[e]?.[100],color:t?Qn[e]?.[500]:Qn[e]?.[600]}),AT=(e,t)=>{const r=e.startsWith("#")?e:ET(e);return{background:t?qb(r,80):yf(r,90),borderColor:t?qb(r,40):yf(r,50),color:t?yf(r,40):r}},NT=e=>({background:e?"#2D3748":"#F7FAFC",borderColor:e?"#4A5568":"#E2E8F0",color:e?"#A0AEC0":"#4A5568"}),OT=e=>{switch(e){case"xs":return"text-xs px-1 py-0.5";case"lg":return"text-sm px-2.5 py-1.5";case"md":return"text-sm px-2 py-1";default:return"text-xs px-1.5 py-0.5"}},TT=(e,t,r,n)=>e?r?t.color:Qn[e]?.[500]||t.color:n?"#A0AEC0":"#4A5568",Cf=E.forwardRef(({label:e,color:t,size:r="sm",className:n,onClick:o,onMouseDown:i,truncate:a,isHashColor:s=!1,icon:l,removable:c=!1,onRemove:u,onUpload:d,acceptsUpload:f=!1,theme:g="light","aria-label":h},m)=>{const p=g==="dark",b=()=>t?t in Qn?IT(t,p):AT(t,p):NT(p),y=I=>{const O=I.target.files?.[0];O&&d&&d(O),I.target.value=""},w=I=>{(I.key==="Enter"||I.key===" ")&&(o||f)&&(I.preventDefault(),o&&o(I))},S=b(),v=TT(t,S,s,p);return C.jsx("div",{ref:m,className:J("inline-flex items-center border rounded-md transition-colors",OT(r),(o||f)&&"cursor-pointer hover:opacity-80",n),style:S,onMouseDown:i,onClick:o,onKeyDown:w,"aria-label":h||`Tag: ${e}`,role:"button",tabIndex:o||f?0:void 0,children:C.jsxs("div",{className:"flex items-center gap-0.5 truncate w-full overflow-hidden",children:[l,a?C.jsx("p",{title:e,className:`text-${r} ${o||f?"cursor-pointer":""}`,children:e.length>a?`${e.slice(0,a)}...`:e}):C.jsx("p",{className:`text-${r}`,children:e}),f&&C.jsx("input",{type:"file",onChange:y,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`}),c&&u&&C.jsx("button",{onClick:u,className:"ml-1 flex-shrink-0","aria-label":`Remove ${e}`,type:"button",children:C.jsx(Zb,{size:12,fill:v,className:"cursor-pointer"})})]})})});Cf.displayName="Tag";const PT=({size:e=16,className:t="",...r})=>C.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-neutral-500 hover:text-neutral-700 ${t}`,...r,children:[C.jsx("circle",{cx:"12",cy:"12",r:"10"}),C.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),C.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),kT=({size:e=20,className:t="",...r})=>C.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`text-primary-600 dark:text-primary-300 cursor-pointer ${t}`,...r,children:[C.jsx("circle",{cx:"11",cy:"11",r:"8"}),C.jsx("path",{d:"M21 21l-4.35-4.35"})]}),In=({title:e,placement:t="top",children:r,className:n=""})=>{const[o,i]=E.useState(!1),a={top:"bottom-full left-1/2 transform -translate-x-1/2 mb-2",bottom:"top-full left-1/2 transform -translate-x-1/2 mt-2",left:"right-full top-1/2 transform -translate-y-1/2 mr-2",right:"left-full top-1/2 transform -translate-y-1/2 ml-2"},s={top:"top-full left-1/2 transform -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent border-t-gray-800",bottom:"bottom-full left-1/2 transform -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent border-b-gray-800",left:"left-full top-1/2 transform -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent border-l-gray-800",right:"right-full top-1/2 transform -translate-y-1/2 border-t-transparent border-b-transparent border-l-transparent border-r-gray-800"};return C.jsxs("div",{className:`relative inline-block ${n}`,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>i(!0),onBlur:()=>i(!1),role:"button",tabIndex:0,children:[r,o&&C.jsxs("div",{className:`absolute z-50 px-2 py-1 text-sm text-white bg-gray-800 rounded shadow-lg whitespace-nowrap ${a[t]}`,role:"tooltip","aria-live":"polite",children:[e,C.jsx("div",{className:`absolute w-0 h-0 border-4 ${s[t]}`})]})]})},xf=e=>e===1||e==="1"||typeof e=="string"&&e.toLowerCase()==="yes"||typeof e=="string"&&e.toLowerCase()==="true"?"Yes":e===0||e==="0"||typeof e=="string"&&e.toLowerCase()==="no"||typeof e=="string"&&e.toLowerCase()==="false"?"No":e?.toString()||"-",wf=(e,t="USD")=>{try{if(e==null)return"";const r=Number(e);if(isNaN(r))return e?.toString()||"";const n=r.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});return`${{USD:"$",EUR:"€",GBP:"£",JPY:"¥",CAD:"C$",AUD:"A$",CHF:"CHF",CNY:"¥",SEK:"kr",NOK:"kr",DKK:"kr",PLN:"zł",CZK:"Kč",HUF:"Ft",RUB:"₽",BRL:"R$",INR:"₹",KRW:"₩",SGD:"S$",HKD:"HK$",NZD:"NZ$",MXN:"$",ZAR:"R",TRY:"₺",ILS:"₪",AED:"د.إ",SAR:"﷼",QAR:"﷼",KWD:"د.ك",BHD:"د.ب",OMR:"﷼",JOD:"د.ا",LBP:"ل.ل",EGP:"£",MAD:"د.م.",TND:"د.ت",DZD:"د.ج",LYD:"ل.د",SDG:"ج.س.",ETB:"Br",KES:"KSh",UGX:"USh",TZS:"TSh",ZMW:"ZK",BWP:"P",ZWL:"Z$",AOA:"Kz",MZN:"MT",GHS:"₵",NGN:"₦",XAF:"FCFA",XOF:"CFA",CDF:"FC",RWF:"RF",BIF:"FBu",KMF:"CF",DJF:"Fdj",SOS:"S",ERN:"Nfk"}[t]||"$"}${n}`}catch{return"-"}},pa=(e,t={})=>{const{format:r,relative:n=!1,withTime:o=!0,fallback:i="-",skipTimezone:a=!1,onlyTime:s=!1}=t||{};if(!e)return i;try{const l=new Date(e);if(isNaN(l.getTime()))return i;if(n){const g=Math.floor((new Date().getTime()-l.getTime())/1e3);return g<60?"just now":g<3600?`${Math.floor(g/60)} minutes ago`:g<86400?`${Math.floor(g/3600)} hours ago`:g<2592e3?`${Math.floor(g/86400)} days ago`:g<31536e3?`${Math.floor(g/2592e3)} months ago`:`${Math.floor(g/31536e3)} years ago`}const c="MM/dd/yyyy",u="hh:mm a",d=o&&!s;return l.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:o?"2-digit":void 0,minute:o?"2-digit":void 0,hour12:!0})}catch{return i}},Qb=e=>typeof e=="string"&&/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(e),Kb=E.forwardRef(({label:e,value:t,className:r,type:n="string",tags:o,tooltip:i,items:a,isModified:s=!1,isChanged:l=!1,size:c="medium",isHighlighted:u=!1,deletedValue:d,highlightColor:f="warning",isSearchActive:g=!1,originalValue:h=!1,showDiff:m=!1,theme:p="light",onUpload:b,acceptsUpload:y=!1,MasterDataModal:w,riskDetails:S,isRiskAnalysisOpen:v=!1,"aria-label":I},O)=>{const[N,T]=E.useState(!0),[P,M]=E.useState(!1),[x,$]=E.useState(null),[F,k]=E.useState(!1),j=()=>{T(!N)},z=R=>{M(!0),$({...R,value:t})},H=()=>{M(!1),$(null)},V=R=>{const W=R.target.files?.[0];W&&b&&b(W),R.target.value=""},_=()=>{const R=typeof t=="string"&&Qb(t);if(g&&typeof t=="object")return t;if(t||n==="boolean"&&t===0||n==="currency"&&Number(t)>=0){if((t===!0||t==="True")&&!h)return"Yes";if((t===!1||t==="False")&&!h)return"No";if(n==="url")return C.jsx("a",{href:t,className:"text-primary-600 truncate",children:t});if(n==="boolean")return xf(t);if(n==="currency")return wf(t,a?.currency_code)||"-";if(n==="datetime"){const W=typeof t=="string"&&t.includes("Z")?t.replace(/\.000Z$/,"Z"):t;return pa(W,{skipTimezone:!1,withTime:!0})}else if(n==="date"||R){const W=typeof t=="string"&&t.includes("Z")?t.replace(/\.000Z$/,"Z"):t;return pa(W,{skipTimezone:!0,withTime:!1})}else return n==="percentage"?`${t}%`:typeof t=="string"&&t.length>100?C.jsxs("p",{children:[t.slice(0,N?100:t.length),N?"... ":" ",C.jsx("button",{id:`btn-label-value-${N?"Show more":"Show less"}`,className:"text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",onClick:j,onKeyDown:W=>{(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),j())},"aria-label":N?"Show more content":"Show less content",type:"button",children:N?"Show more":"Show less"})]}):t}return"-"},D=()=>{switch(c){case"small":return"text-xs";case"large":return"text-lg";default:return"text-base"}},B=()=>{switch(f){case"success":return"bg-green-100 dark:bg-green-900";case"warning":return"bg-yellow-100 dark:bg-yellow-900";case"error":return"bg-red-100 dark:bg-red-900";case"info":return"bg-blue-100 dark:bg-blue-900";default:return"bg-yellow-100 dark:bg-yellow-900"}};return C.jsxs("div",{ref:O,className:J("font-medium relative",r),onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),"aria-label":I||`Label: ${e}, Value: ${t}`,children:[C.jsxs("div",{className:J("flex gap-1 flex-wrap",D()),children:[C.jsx("span",{className:"text-neutral-600 dark:text-neutral-400",children:e}),o&&o.length>0&&C.jsx("div",{className:"flex gap-1 flex-wrap",children:o.map(R=>C.jsx(Cf,{label:R.label,color:R.color,size:"xs",theme:p},`${R.label}-${R.value||R.color}`))}),i&&C.jsx(In,{placement:"top",title:i,children:C.jsx("div",{className:"cursor-pointer",role:"button",tabIndex:0,onKeyDown:R=>{(R.key==="Enter"||R.key===" ")&&R.preventDefault()},children:C.jsx(PT,{size:14})})})]}),C.jsxs("div",{className:J("whitespace-normal break-all flex gap-1 pt-0.5",D(),s&&"bg-neutral-50 dark:bg-neutral-800 p-1 rounded",v&&S?.color&&`bg-${S.color}-50 dark:bg-${S.color}-900 border-${S.color}-300 dark:border-${S.color}-700 px-0.5 rounded-lg`),children:[m&&d&&t?C.jsxs("div",{className:"flex gap-2",children:[C.jsx("span",{className:"line-through text-red-500",children:d}),C.jsx("span",{className:"text-green-600",children:_()})]}):l||u?C.jsx("mark",{className:J("rounded-md py-0.5 px-1",B()),children:_()}):_(),a?.is_master_data&&a?.reference&&t&&C.jsx("button",{onClick:()=>z(a),onKeyDown:R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),z(a))},"aria-label":`Search master data for ${e}`,type:"button",className:"cursor-pointer",children:C.jsx(kT,{size:20})}),y&&C.jsx("input",{type:"file",onChange:V,className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer","aria-label":`Upload file for ${e}`})]}),d&&!m&&C.jsx("div",{className:J("text-xs pt-1",D()),children:C.jsx("mark",{className:"rounded-md py-0.5 px-1 bg-red-100 dark:bg-red-900",children:C.jsx("del",{className:"text-red-600 dark:text-red-400",children:d||n==="boolean"&&d==="0"?d==="True"?"Yes":d==="False"?"No":n==="boolean"?xf(d):n==="currency"?wf(d,a?.currency_code):n==="date"?pa(d,{skipTimezone:!0,withTime:!1}):n==="datetime"?pa(d,{skipTimezone:!0,withTime:!0}):n==="percentage"?`${d}%`:d.length>100?C.jsxs("p",{children:[d.slice(0,N?100:d.length),N?"... ":" ",C.jsx("button",{id:`btn-label-value-${N?"Show more":"Show less"}`,className:"text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",onClick:j,children:N?"Show more":"Show less"})]}):d:"-"})})}),w&&C.jsx(w,{isVisible:P,onClose:H,masterdataInfo:x}),F&&S&&v&&C.jsx("div",{className:"absolute left-0 right-0 top-[95%] mt-1 z-50 bg-white dark:bg-neutral-800 rounded-xl shadow-lg p-4",onClick:R=>R.stopPropagation(),onMouseDown:R=>R.preventDefault(),onKeyDown:R=>{R.key==="Escape"&&k(!1)},role:"tooltip","aria-label":"Risk analysis details",tabIndex:0,children:C.jsxs("div",{className:"text-sm",children:[C.jsx("h4",{className:"font-semibold mb-2",children:"Risk Details"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:S.description||"Risk analysis information"})]})})]})});Kb.displayName="LabelValue";const e1=E.forwardRef(({status:e,children:t,additionalChildren:r,ExpandedComponent:n,expandable:o=!1,icon:i,className:a,onClick:s,"aria-label":l},c)=>{const[u,d]=E.useState(!1),f=()=>{switch(e){case"success":return"bg-green-50 dark:bg-green-950 text-green-700 dark:text-green-300 border-l-4 border-green-400 dark:border-green-600";case"error":return"bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 border-l-4 border-red-400 dark:border-red-600";case"warning":return"bg-yellow-50 dark:bg-yellow-950 text-yellow-700 dark:text-yellow-300 border-l-4 border-yellow-400 dark:border-yellow-600";case"info":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"archived":return"bg-neutral-50 dark:bg-neutral-950 text-neutral-700 dark:text-neutral-300 border-l-4 border-neutral-400 dark:border-neutral-600";case"canceled":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"queued":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600";case"paused":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"awaiting_action":return"bg-orange-50 dark:bg-orange-950 text-orange-700 dark:text-orange-300 border-l-4 border-orange-400 dark:border-orange-600";case"skipped":return"bg-gray-50 dark:bg-gray-950 text-gray-700 dark:text-gray-300 border-l-4 border-gray-400 dark:border-gray-600";case"pending":return"bg-purple-50 dark:bg-purple-950 text-purple-700 dark:text-purple-300 border-l-4 border-purple-400 dark:border-purple-600";default:return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300 border-l-4 border-blue-400 dark:border-blue-600"}},g=()=>{if(i)return i;const p="w-5 h-5 flex-shrink-0";switch(e){case"success":return C.jsx("svg",{className:J(p,"text-green-600 dark:text-green-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.236 4.53L7.53 10.06a.75.75 0 00-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})});case"error":return C.jsx("svg",{className:J(p,"text-red-600 dark:text-red-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"warning":return C.jsx("svg",{className:J(p,"text-yellow-600 dark:text-yellow-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})});case"info":case"queued":case"pending":return C.jsx("svg",{className:J(p,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})});case"paused":return C.jsx("svg",{className:J(p,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{d:"M5.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75A.75.75 0 007.25 3h-1.5zM12.75 3a.75.75 0 00-.75.75v12.5c0 .414.336.75.75.75h1.5a.75.75 0 00.75-.75V3.75a.75.75 0 00-.75-.75h-1.5z"})});case"archived":case"canceled":case"skipped":return C.jsx("svg",{className:J(p,"text-gray-600 dark:text-gray-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z",clipRule:"evenodd"})});case"awaiting_action":return C.jsx("svg",{className:J(p,"text-orange-600 dark:text-orange-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z",clipRule:"evenodd"})});default:return C.jsx("svg",{className:J(p,"text-blue-600 dark:text-blue-400"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})})}},h=()=>{(o||e==="error")&&(d(!u),s?.())},m=o||e==="error";return C.jsxs("div",{ref:c,className:J("w-full",a),children:[C.jsxs("div",{className:J("flex items-center justify-between p-4 rounded-lg font-medium text-sm transition-all duration-200",f(),m&&["cursor-pointer select-none","hover:shadow-md","active:scale-[0.99]"]),onClick:h,role:m?"button":void 0,tabIndex:m?0:void 0,onKeyDown:p=>{m&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),h())},"aria-label":l||`Banner: ${e}`,"aria-expanded":m?u:void 0,children:[C.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[g(),C.jsx("span",{className:"flex-1",children:t})]}),C.jsxs("div",{className:"flex items-center gap-2",children:[r&&C.jsx("div",{className:"flex items-center",children:r}),m&&C.jsx("div",{className:"flex items-center",children:C.jsx("svg",{className:J("w-5 h-5 transition-transform duration-200",u?"rotate-180":"rotate-0"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]})]}),C.jsx(Ze.AnimatePresence,{children:u&&n&&C.jsx(Ze.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},className:"overflow-hidden",children:C.jsx("div",{className:"pt-2",children:C.jsx(n,{children:t})})})})]})});e1.displayName="Banner";var Ht=function(){return Ht=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ht.apply(this,arguments)},t1={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},r1={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Bl={width:"20px",height:"20px",position:"absolute",zIndex:1},FT={top:Ht(Ht({},t1),{top:"-5px"}),right:Ht(Ht({},r1),{left:void 0,right:"-5px"}),bottom:Ht(Ht({},t1),{top:void 0,bottom:"-5px"}),left:Ht(Ht({},r1),{left:"-5px"}),topRight:Ht(Ht({},Bl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Ht(Ht({},Bl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Ht(Ht({},Bl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Ht(Ht({},Bl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},$T=E.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,i=e.className,a=E.useCallback(function(c){t(c,r)},[t,r]),s=E.useCallback(function(c){t(c,r)},[t,r]),l=E.useMemo(function(){return Ht(Ht({position:"absolute",userSelect:"none"},FT[r]),o??{})},[o,r]);return C.jsx("div",{className:i||void 0,style:l,onMouseDown:a,onTouchStart:s,children:n})}),MT=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),dn=function(){return dn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},dn.apply(this,arguments)},jT={width:"auto",height:"auto"},zl=function(e,t,r){return Math.max(Math.min(e,r),t)},n1=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},ui=function(e,t){return new RegExp(e,"i").test(t)},Gl=function(e){return!!(e.touches&&e.touches.length)},RT=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},o1=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(i,a,s){return Math.abs(a-e)<Math.abs(t[i]-e)?s:i},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},Sf=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Hl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return r*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return n*o}}return e},LT=function(e,t,r,n,o,i,a){return n=Hl(n,e.width,t,r),o=Hl(o,e.height,t,r),i=Hl(i,e.width,t,r),a=Hl(a,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof a>"u"?void 0:Number(a)}},DT=function(e){return Array.isArray(e)?e:[e,e]},_T=["as","ref","style","className","grid","gridGap","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"],i1="__resizable_base__",VT=function(e){MT(t,e);function t(r){var n,o,i,a,s=e.call(this,r)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var l=s.parentNode;if(!l)return null;var c=s.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(i1):c.className+=i1,l.appendChild(c),c},s.removeBase=function(l){var c=s.parentNode;c&&c.removeChild(l)},s.state={isResizing:!1,width:(o=(n=s.propsSize)===null||n===void 0?void 0:n.width)!==null&&o!==void 0?o:"auto",height:(a=(i=s.propsSize)===null||i===void 0?void 0:i.height)!==null&&a!==void 0?a:"auto",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},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return 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?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||jT},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,i=this.resizable.offsetHeight,a=this.resizable.style.position;a!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=a}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(s){var l;if(typeof r.state[s]>"u"||r.state[s]==="auto")return"auto";if(r.propsSize&&r.propsSize[s]&&(!((l=r.propsSize[s])===null||l===void 0)&&l.toString().endsWith("%"))){if(r.state[s].toString().endsWith("%"))return r.state[s].toString();var c=r.getParentSize(),u=Number(r.state[s].toString().replace("px","")),d=u/c[s]*100;return"".concat(d,"%")}return Sf(r.state[s])},i=n&&typeof n.width<"u"&&!this.state.isResizing?Sf(n.width):o("width"),a=n&&typeof n.height<"u"&&!this.state.isResizing?Sf(n.height):o("height");return{width:i,height:a}},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 r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),i},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 r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,i=this.state.direction,a=o&&ui("left",i),s=o&&ui("top",i),l,c;if(this.props.bounds==="parent"){var u=this.parentNode;u&&(l=a?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(r=r&&r<l?r:l),c&&Number.isFinite(c)&&(n=n&&n<c?n:c),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var o=this.props.scale||1,i=DT(this.props.resizeRatio||1),a=i[0],s=i[1],l=this.state,c=l.direction,u=l.original,d=this.props,f=d.lockAspectRatio,g=d.lockAspectRatioExtraHeight,h=d.lockAspectRatioExtraWidth,m=u.width,p=u.height,b=g||0,y=h||0;return ui("right",c)&&(m=u.width+(r-u.x)*a/o,f&&(p=(m-y)/this.ratio+b)),ui("left",c)&&(m=u.width-(r-u.x)*a/o,f&&(p=(m-y)/this.ratio+b)),ui("bottom",c)&&(p=u.height+(n-u.y)*s/o,f&&(m=(p-b)*this.ratio+y)),ui("top",c)&&(p=u.height-(n-u.y)*s/o,f&&(m=(p-b)*this.ratio+y)),{newWidth:m,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,i){var a=this.props,s=a.lockAspectRatio,l=a.lockAspectRatioExtraHeight,c=a.lockAspectRatioExtraWidth,u=typeof i.width>"u"?10:i.width,d=typeof o.width>"u"||o.width<0?r:o.width,f=typeof i.height>"u"?10:i.height,g=typeof o.height>"u"||o.height<0?n:o.height,h=l||0,m=c||0;if(s){var p=(f-h)*this.ratio+m,b=(g-h)*this.ratio+m,y=(u-m)/this.ratio+h,w=(d-m)/this.ratio+h,S=Math.max(u,p),v=Math.min(d,b),I=Math.max(f,y),O=Math.min(g,w);r=zl(r,S,v),n=zl(n,I,O)}else r=zl(r,u,d),n=zl(n,f,g);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var o=n.getBoundingClientRect();this.parentLeft=o.left*r,this.parentTop=o.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left*r,this.targetTop=i.top*r}if(this.resizable){var a=this.resizable.getBoundingClientRect(),s=a.left,l=a.top,c=a.right,u=a.bottom;this.resizableLeft=s*r,this.resizableRight=c*r,this.resizableTop=l*r,this.resizableBottom=u*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,i=0;if(r.nativeEvent&&RT(r.nativeEvent)?(o=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&Gl(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var a=this.props.onResizeStart(r,n,this.resizable);if(a===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var u=this.window.getComputedStyle(c).flexDirection;this.flexDir=u.startsWith("row")?"row":"column",s=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:o,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:dn(dn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(d)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Gl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,i=o.maxWidth,a=o.maxHeight,s=o.minWidth,l=o.minHeight,c=Gl(r)?r.touches[0].clientX:r.clientX,u=Gl(r)?r.touches[0].clientY:r.clientY,d=this.state,f=d.direction,g=d.original,h=d.width,m=d.height,p=this.getParentSize(),b=LT(p,this.window.innerWidth,this.window.innerHeight,i,a,s,l);i=b.maxWidth,a=b.maxHeight,s=b.minWidth,l=b.minHeight;var y=this.calculateNewSizeFromDirection(c,u),w=y.newHeight,S=y.newWidth,v=this.calculateNewMaxFromBoundary(i,a);this.props.snap&&this.props.snap.x&&(S=o1(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(w=o1(w,this.props.snap.y,this.props.snapGap));var I=this.calculateNewSizeFromAspectRatio(S,w,{width:v.maxWidth,height:v.maxHeight},{width:s,height:l});if(S=I.newWidth,w=I.newHeight,this.props.grid){var O=n1(S,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),N=n1(w,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),T=this.props.snapGap||0,P=T===0||Math.abs(O-S)<=T?O:S,M=T===0||Math.abs(N-w)<=T?N:w;S=P,w=M}var x={width:S-g.width,height:w-g.height};if(this.delta=x,h&&typeof h=="string"){if(h.endsWith("%")){var $=S/p.width*100;S="".concat($,"%")}else if(h.endsWith("vw")){var F=S/this.window.innerWidth*100;S="".concat(F,"vw")}else if(h.endsWith("vh")){var k=S/this.window.innerHeight*100;S="".concat(k,"vh")}}if(m&&typeof m=="string"){if(m.endsWith("%")){var $=w/p.height*100;w="".concat($,"%")}else if(m.endsWith("vw")){var F=w/this.window.innerWidth*100;w="".concat(F,"vw")}else if(m.endsWith("vh")){var k=w/this.window.innerHeight*100;w="".concat(k,"vh")}}var j={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(w,"height")};this.flexDir==="row"?j.flexBasis=j.width:this.flexDir==="column"&&(j.flexBasis=j.height);var z=this.state.width!==j.width,H=this.state.height!==j.height,V=this.state.flexBasis!==j.flexBasis,_=z||H||V;_&&zr.flushSync(function(){n.setState(j)}),this.props.onResize&&_&&this.props.onResize(r,f,this.resizable,x)}},t.prototype.onMouseUp=function(r){var n,o,i=this.state,a=i.isResizing,s=i.direction;i.original,!(!a||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,s,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:dn(dn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,o;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(o=r.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,i=n.handleStyles,a=n.handleClasses,s=n.handleWrapperStyle,l=n.handleWrapperClass,c=n.handleComponent;if(!o)return null;var u=Object.keys(o).map(function(d){return o[d]!==!1?C.jsx($T,{direction:d,onResizeStart:r.onResizeStart,replaceStyles:i&&i[d],className:a&&a[d],children:c&&c[d]?c[d]:null},d):null});return C.jsx("div",{className:l,style:s,children:u})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(a,s){return _T.indexOf(s)!==-1||(a[s]=r.props[s]),a},{}),o=dn(dn(dn({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&&(o.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return C.jsxs(i,dn({style:o,className:this.props.className},n,{ref:function(a){a&&(r.resizable=a)},children:[this.state.isResizing&&C.jsx("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],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(E.PureComponent);const BT=()=>C.jsx("div",{className:"cursor-ew-resize flex items-center justify-center rounded-full bg-[#1018288F] bg-opacity-55 w-8 h-8 shadow-200 border-[1.5px] border-[#FFFFFF3D]",children:C.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_36675_12",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:C.jsx("rect",{y:"20",width:"20",height:"20",transform:"rotate(-90 0 20)",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_36675_12)",children:C.jsx("path",{d:"M15.9583 10L12.7292 6.77084C12.5625 6.60418 12.4792 6.40973 12.4792 6.18751C12.4792 5.96529 12.5625 5.77084 12.7292 5.60418C12.8958 5.43751 13.0938 5.35418 13.3229 5.35418C13.5521 5.35418 13.75 5.43751 13.9167 5.60418L17.1458 8.81251C17.4653 9.13195 17.625 9.52779 17.625 10C17.625 10.4722 17.4653 10.8681 17.1458 11.1875L13.9167 14.4167C13.75 14.5833 13.5521 14.6632 13.3229 14.6563C13.0938 14.6493 12.8958 14.5625 12.7292 14.3958C12.5625 14.2292 12.4792 14.0313 12.4792 13.8021C12.4792 13.5729 12.5625 13.375 12.7292 13.2083L15.9583 10ZM4.04167 10L7.25 13.2083C7.41667 13.375 7.49653 13.5695 7.48958 13.7917C7.48264 14.0139 7.40278 14.2083 7.25 14.375C7.08333 14.5417 6.88542 14.6285 6.65625 14.6354C6.42708 14.6424 6.22917 14.5625 6.0625 14.3958L2.85417 11.1875C2.53472 10.8681 2.375 10.4722 2.375 10C2.375 9.52779 2.53472 9.13195 2.85417 8.81251L6.0625 5.60418C6.22917 5.43751 6.42708 5.35765 6.65625 5.36459C6.88542 5.37154 7.08333 5.45834 7.25 5.62501C7.40278 5.79168 7.48264 5.98612 7.48958 6.20834C7.49653 6.43057 7.41667 6.62501 7.25 6.79168L4.04167 10Z",fill:"white"})})]})}),zT=(e,t)=>{const r=document.getElementById(e);r?t(r):requestAnimationFrame(()=>{const n=document.getElementById(e);n&&t(n)})},GT=(e,t)=>{if(e.current){if(t)localStorage.setItem("resizable-sidebar-width-before-fullscreen",String(e.current.size?.width));else{const r=localStorage.getItem("resizable-sidebar-width-before-fullscreen");if(r){e.current.updateSize({width:r,height:"100%"});return}}e.current.updateSize({width:t?"100vw":"",height:"100%"})}},a1=e=>e==="dark"?"bg-black-800 border-black-700":"bg-white border-neutral-200",HT=e=>e==="dark"?"hover:bg-neutral-700":"hover:bg-neutral-200",WT=(e,t,r,n,o,i)=>{const[a,s]=E.useState(!1),[l,c]=E.useState(null);return E.useEffect(()=>{if(!e||typeof window>"u"){c(null);return}zT(e,c)},[e]),E.useEffect(()=>{GT(o,r)},[r]),E.useEffect(()=>{if(e&&t){const u=requestAnimationFrame(()=>{s(!0)});return()=>{cancelAnimationFrame(u),s(!1)}}e||s(!0),t||s(!1)},[t,e]),E.useEffect(()=>{o.current?.size?.width&&n&&n(o.current.size.width)},[o.current?.size?.width,n]),{shouldRenderSidebar:a,portalTarget:l}},UT=({isOpen:e,header:t,id:r,ref:n,className:o,containerClassName:i,widthStyle:a,heightStyle:s,motionVariants:l,resizableRef:c,fullScreen:u,maxResizableWidth:d,minWidth:f,handleKey:g,theme:h,onDragEnd:m,onResize:p,children:b})=>C.jsx(Ze.AnimatePresence,{children:e&&C.jsx(Ze.motion.div,{ref:n,id:r,initial:l.initial,animate:l.animate,exit:l.exit,transition:{type:"tween",duration:.3},className:J("flex-shrink-0 z-50 relative",a1(h),u?"fixed w-full transition translate-x-4 duration-300":"sticky",o),style:{width:a,height:s},children:C.jsx(VT,{onResize:y=>{y.stopPropagation();const w=c.current?.size?.width;p&&p(w||f)},onResizeStart:y=>{y.stopPropagation()},ref:c,maxWidth:u?d:d*.75,minWidth:f,minHeight:s,maxHeight:s,enable:u?{}:{[g]:!0},handleClasses:{[g]:J("relative w-6 -left-1 flex items-center justify-center bg-transparent transition-colors cursor-ew-resize group z-[9999]",HT(h))},handleComponent:{[g]:C.jsx("div",{className:J("absolute -left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center w-8 h-12 cursor-ew-resize opacity-0 group-hover:opacity-100 hover:opacity-100 active:opacity-100 transition-opacity z-[9999]",g==="left"&&"-right-2.5 -left-auto"),children:C.jsx(BT,{})})},className:"!h-full",onResizeStop:m||void 0,children:C.jsxs("div",{className:J("h-full w-full flex flex-col overflow-hidden @container/sidebar",a1(h),h==="dark"&&"border",i),children:[t?C.jsx("div",{className:"py-4 px-6",children:t||null}):null,C.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:b})]})})})}),s1=E.forwardRef(({isOpen:e,children:t,fullScreen:r=!1,defaultSize:n=void 0,minWidth:o=400,onDragEnd:i=null,onResize:a,className:s,placement:l="right",parentContainer:c,header:u,id:d,containerClassName:f,ignoreParentContainerHeight:g=!1,height:h,isMainSidebarExpanded:m=!1,mainSidebarExpandedWidth:p=280,mainSidebarCollapsedWidth:b=80,navbarHeight:y=64,theme:w="light"},S)=>{const v=m?p:b,I=E.useRef(null),{shouldRenderSidebar:O,portalTarget:N}=WT(c,e,r,a,I),T=typeof window<"u"?window.innerWidth-v:0,P=n,M=l==="right",x=h||(c&&!g?"100%":`calc(100vh - ${y}px)`),$={initial:{x:M?"100%":"-100%"},animate:{x:0},exit:{x:M?"100%":"-100%"}},F=M?"left":"right",k=C.jsx(UT,{isOpen:e,header:u,id:d,ref:S,className:s,containerClassName:f,widthStyle:P,heightStyle:x,motionVariants:$,resizableRef:I,fullScreen:r,maxResizableWidth:T,minWidth:o,handleKey:F,theme:w,onDragEnd:i,onResize:a,children:t});return c?!O||!N?null:zr.createPortal(k,N):O?k:null});s1.displayName="ResizableSidebar";const l1=E.forwardRef(({pdfUrl:e,width:t="100%",height:r="100vh",className:n,iframeClassName:o,title:i="PDF Viewer",showLoading:a=!0,loadingComponent:s,errorComponent:l,onError:c,onLoad:u,allowFullScreen:d=!0,"aria-label":f},g)=>{const[h,m]=E.useState(!0),[p,b]=E.useState(!1),y=()=>{m(!1),b(!1),u?.()},w=()=>{m(!1),b(!0),c?.()},S=C.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:C.jsxs("div",{className:"text-center",children:[C.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto mb-4"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm",children:"Loading PDF..."})]})}),v=C.jsx("div",{className:"flex items-center justify-center h-full bg-neutral-50 dark:bg-neutral-900",children:C.jsxs("div",{className:"text-center p-6",children:[C.jsx("svg",{className:"mx-auto h-12 w-12 text-red-400 mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.998-.833-2.768 0L3.046 16.5c-.77.833.192 2.5 1.732 2.5z"})}),C.jsx("h3",{className:"text-lg font-medium text-neutral-900 dark:text-neutral-100 mb-2",children:"Failed to load PDF"}),C.jsx("p",{className:"text-neutral-600 dark:text-neutral-400 text-sm mb-4",children:"The PDF document could not be displayed. Please check the URL or try again later."}),C.jsx("button",{onClick:()=>{b(!1),m(!0);const O=document.querySelector(`iframe[src="${e}"]`);O&&(O.src=O.src)},className:"bg-blue-600 text-white px-4 py-2 rounded-md text-sm hover:bg-blue-700 transition-colors",children:"Retry"})]})});return!e||!(O=>{try{return new URL(O,window.location.href).pathname.toLowerCase().endsWith(".pdf")||O.includes("pdf")}catch{return!1}})(e)?C.jsx("div",{ref:g,className:J("relative overflow-hidden",n),style:{width:t,height:r},children:l||v}):C.jsxs("div",{ref:g,className:J("relative overflow-hidden",n),style:{width:t,height:r},"aria-label":f||`PDF Viewer: ${i}`,children:[h&&a&&C.jsx("div",{className:"absolute inset-0 z-10",children:s||S}),p&&C.jsx("div",{className:"absolute inset-0 z-10",children:l||v}),!p&&C.jsx("iframe",{src:e,title:i,className:J("w-full h-full border-none",h&&"opacity-0",o),onLoad:y,onError:w,allowFullScreen:d,loading:"lazy",sandbox:"allow-same-origin allow-scripts allow-forms","aria-label":f||`PDF document: ${i}`}),C.jsx("div",{className:"sr-only",children:"PDF document viewer. Use your browser's PDF controls to navigate, zoom, or download the document."})]})});l1.displayName="PdfViewer";const c1=({ref:e,handler:t,enabled:r=!0})=>{E.useEffect(()=>{if(!r)return;const n=o=>{e.current&&!e.current.contains(o.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,t,r])},u1=E.forwardRef(({children:e,component:t,placement:r="bottom",isOpen:n,toggleMenu:o,parentContainer:i,noSpacing:a=!1,triggerClassName:s,containerClassName:l,className:c,showArrow:u=!1,offset:d=8,disableOutsideClick:f=!1,"aria-label":g,disabled:h=!1},m)=>{const p=E.useRef(null),b=E.useRef(null);c1({ref:b,handler:()=>{!f&&n&&o?.()},enabled:n&&!f}),E.useEffect(()=>{if(!n||!p.current||!b.current)return;const I=p.current,O=b.current,N=I.getBoundingClientRect(),T=O.getBoundingClientRect(),P={width:window.innerWidth,height:window.innerHeight};let M=0,x=0;switch(r){case"top":M=N.top-T.height-d,x=N.left+(N.width-T.width)/2;break;case"top-start":M=N.top-T.height-d,x=N.left;break;case"top-end":M=N.top-T.height-d,x=N.right-T.width;break;case"bottom":M=N.bottom+d,x=N.left+(N.width-T.width)/2;break;case"bottom-start":M=N.bottom+d,x=N.left;break;case"bottom-end":M=N.bottom+d,x=N.right-T.width;break;case"left":M=N.top+(N.height-T.height)/2,x=N.left-T.width-d;break;case"left-start":M=N.top,x=N.left-T.width-d;break;case"left-end":M=N.bottom-T.height,x=N.left-T.width-d;break;case"right":M=N.top+(N.height-T.height)/2,x=N.right+d;break;case"right-start":M=N.top,x=N.right+d;break;case"right-end":M=N.bottom-T.height,x=N.right+d;break}x<0&&(x=8),x+T.width>P.width&&(x=P.width-T.width-8),M<0&&(M=8),M+T.height>P.height&&(M=P.height-T.height-8),O.style.top=`${M}px`,O.style.left=`${x}px`},[n,r,d]);const y=I=>{h||o?.(I)},w=I=>{I.key==="Escape"&&n&&o?.()},S=()=>{const I="absolute w-2 h-2 bg-white dark:bg-neutral-800 transform rotate-45 border";switch(r){case"top":case"top-start":case"top-end":return J(I,"bottom-[-4px] border-t-0 border-l-0");case"bottom":case"bottom-start":case"bottom-end":return J(I,"top-[-4px] border-b-0 border-r-0");case"left":case"left-start":case"left-end":return J(I,"right-[-4px] border-l-0 border-b-0");case"right":case"right-start":case"right-end":return J(I,"left-[-4px] border-r-0 border-t-0");default:return J(I,"top-[-4px] border-b-0 border-r-0")}},v=()=>{switch(r){case"top":case"bottom":return{left:"50%",transform:"translateX(-50%)"};case"top-start":case"bottom-start":return{left:"12px"};case"top-end":case"bottom-end":return{right:"12px"};case"left":case"right":return{top:"50%",transform:"translateY(-50%)"};case"left-start":case"right-start":return{top:"12px"};case"left-end":case"right-end":return{bottom:"12px"};default:return{left:"50%",transform:"translateX(-50%)"}}};return C.jsxs("div",{ref:m,className:J("relative inline-block",c),children:[C.jsx("button",{ref:p,onClick:y,onKeyDown:w,className:J("flex items-center justify-center outline-none focus:outline-none transition-colors",!a&&"p-2",h&&"opacity-50 cursor-not-allowed",s),"aria-label":g,"aria-expanded":n,"aria-haspopup":"true",disabled:h,type:"button",children:e}),n&&zr.createPortal(C.jsx(Ze.AnimatePresence,{children:C.jsxs(Ze.motion.div,{ref:b,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},className:J("fixed z-[9999] bg-white dark:bg-neutral-800 rounded-lg shadow-lg border border-neutral-200 dark:border-neutral-700","focus:outline-none",l),style:{minWidth:"120px"},role:"menu","aria-orientation":"vertical",tabIndex:-1,children:[u&&C.jsx("div",{className:S(),style:v()}),C.jsx("div",{className:"relative",children:t})]})}),document.getElementById(i)||document.body)]})});u1.displayName="Popper";const ga=e=>typeof e=="number"&&!isNaN(e),yo=e=>typeof e=="string",Ir=e=>typeof e=="function",Wl=e=>yo(e)||Ir(e)?e:null,Ef=e=>E.isValidElement(e)||yo(e)||Ir(e)||ga(e);function XT(e,t,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,r)})})}function Ul(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:f,playToast:g}=a;const h=n?`${t}--${l}`:t,m=n?`${r}--${l}`:r,p=E.useRef(0);return E.useLayoutEffect(()=>{const b=d.current,y=h.split(" "),w=S=>{S.target===d.current&&(g(),b.removeEventListener("animationend",w),b.removeEventListener("animationcancel",w),p.current===0&&S.type!=="animationcancel"&&b.classList.remove(...y))};b.classList.add(...y),b.addEventListener("animationend",w),b.addEventListener("animationcancel",w)},[]),E.useEffect(()=>{const b=d.current,y=()=>{b.removeEventListener("animationend",y),o?XT(b,u,i):u()};f||(c?y():(p.current=1,b.className+=` ${m}`,b.addEventListener("animationend",y)))},[f]),E.createElement(E.Fragment,null,s)}}function d1(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const dr=new Map;let ha=[];const If=new Set,YT=e=>If.forEach(t=>t(e)),f1=()=>dr.size>0;function m1(e,t){var r;if(t)return!((r=dr.get(t))==null||!r.isToastActive(e));let n=!1;return dr.forEach(o=>{o.isToastActive(e)&&(n=!0)}),n}function p1(e,t){Ef(e)&&(f1()||ha.push({content:e,options:t}),dr.forEach(r=>{r.buildToast(e,t)}))}function g1(e,t){dr.forEach(r=>{t!=null&&t!=null&&t.containerId?t?.containerId===r.id&&r.toggle(e,t?.id):r.toggle(e,t?.id)})}function JT(e){const{subscribe:t,getSnapshot:r,setProps:n}=E.useRef(function(i){const a=i.containerId||1;return{subscribe(s){const l=function(u,d,f){let g=1,h=0,m=[],p=[],b=[],y=d;const w=new Map,S=new Set,v=()=>{b=Array.from(w.values()),S.forEach(N=>N())},I=N=>{p=N==null?[]:p.filter(T=>T!==N),v()},O=N=>{const{toastId:T,onOpen:P,updateId:M,children:x}=N.props,$=M==null;N.staleId&&w.delete(N.staleId),w.set(T,N),p=[...p,N.props.toastId].filter(F=>F!==N.staleId),v(),f(d1(N,$?"added":"updated")),$&&Ir(P)&&P(E.isValidElement(x)&&x.props)};return{id:u,props:y,observe:N=>(S.add(N),()=>S.delete(N)),toggle:(N,T)=>{w.forEach(P=>{T!=null&&T!==P.props.toastId||Ir(P.toggle)&&P.toggle(N)})},removeToast:I,toasts:w,clearQueue:()=>{h-=m.length,m=[]},buildToast:(N,T)=>{if((B=>{let{containerId:R,toastId:W,updateId:K}=B;const q=R?R!==u:u!==1,U=w.has(W)&&K==null;return q||U})(T))return;const{toastId:P,updateId:M,data:x,staleId:$,delay:F}=T,k=()=>{I(P)},j=M==null;j&&h++;const z={...y,style:y.toastStyle,key:g++,...Object.fromEntries(Object.entries(T).filter(B=>{let[R,W]=B;return W!=null})),toastId:P,updateId:M,data:x,closeToast:k,isIn:!1,className:Wl(T.className||y.toastClassName),bodyClassName:Wl(T.bodyClassName||y.bodyClassName),progressClassName:Wl(T.progressClassName||y.progressClassName),autoClose:!T.isLoading&&(H=T.autoClose,V=y.autoClose,H===!1||ga(H)&&H>0?H:V),deleteToast(){const B=w.get(P),{onClose:R,children:W}=B.props;Ir(R)&&R(E.isValidElement(W)&&W.props),f(d1(B,"removed")),w.delete(P),h--,h<0&&(h=0),m.length>0?O(m.shift()):v()}};var H,V;z.closeButton=y.closeButton,T.closeButton===!1||Ef(T.closeButton)?z.closeButton=T.closeButton:T.closeButton===!0&&(z.closeButton=!Ef(y.closeButton)||y.closeButton);let _=N;E.isValidElement(N)&&!yo(N.type)?_=E.cloneElement(N,{closeToast:k,toastProps:z,data:x}):Ir(N)&&(_=N({closeToast:k,toastProps:z,data:x}));const D={content:_,props:z,staleId:$};y.limit&&y.limit>0&&h>y.limit&&j?m.push(D):ga(F)?setTimeout(()=>{O(D)},F):O(D)},setProps(N){y=N},setToggle:(N,T)=>{w.get(N).toggle=T},isToastActive:N=>p.some(T=>T===N),getSnapshot:()=>b}}(a,i,YT);dr.set(a,l);const c=l.observe(s);return ha.forEach(u=>p1(u.content,u.options)),ha=[],()=>{c(),dr.delete(a)}},setProps(s){var l;(l=dr.get(a))==null||l.setProps(s)},getSnapshot(){var s;return(s=dr.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;n(e);const o=E.useSyncExternalStore(t,r,r);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return e.newestOnTop&&o.reverse(),o.forEach(s=>{const{position:l}=s.props;a.has(l)||a.set(l,[]),a.get(l).push(s)}),Array.from(a,s=>i(s[0],s[1]))},isToastActive:m1,count:o?.length}}function ZT(e){const[t,r]=E.useState(!1),[n,o]=E.useState(!1),i=E.useRef(null),a=E.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:l,closeToast:c,onClick:u,closeOnClick:d}=e;var f,g;function h(){r(!0)}function m(){r(!1)}function p(w){const S=i.current;a.canDrag&&S&&(a.didMove=!0,t&&m(),a.delta=e.draggableDirection==="x"?w.clientX-a.start:w.clientY-a.start,a.start!==w.clientX&&(a.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function b(){document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",b);const w=i.current;if(a.canDrag&&a.didMove&&w){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();w.style.transition="transform 0.2s, opacity 0.2s",w.style.removeProperty("transform"),w.style.removeProperty("opacity")}}(g=dr.get((f={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))==null||g.setToggle(f.id,f.fn),E.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||m(),window.addEventListener("focus",h),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",m)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function(w){if(e.draggable===!0||e.draggable===w.pointerType){a.didMove=!1,document.addEventListener("pointermove",p),document.addEventListener("pointerup",b);const S=i.current;a.canCloseOnClick=!0,a.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(a.start=w.clientX,a.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(a.start=w.clientY,a.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(w){const{top:S,bottom:v,left:I,right:O}=i.current.getBoundingClientRect();w.nativeEvent.type!=="touchend"&&e.pauseOnHover&&w.clientX>=I&&w.clientX<=O&&w.clientY>=S&&w.clientY<=v?m():h()}};return s&&l&&(y.onMouseEnter=m,e.stacked||(y.onMouseLeave=h)),d&&(y.onClick=w=>{u&&u(w),a.canCloseOnClick&&c()}),{playToast:h,pauseToast:m,isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:y}}function qT(e){let{delay:t,isRunning:r,closeToast:n,type:o="default",hide:i,className:a,style:s,controlledProgress:l,progress:c,rtl:u,isIn:d,theme:f}=e;const g=i||l&&c===0,h={...s,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};l&&(h.transform=`scaleX(${c})`);const m=cn("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${f}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),p=Ir(a)?a({rtl:u,type:o,defaultClassName:m}):cn(m,a),b={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{d&&n()}};return E.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},E.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}`}),E.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:p,style:h,...b}))}let QT=1;const h1=()=>""+QT++;function KT(e){return e&&(yo(e.toastId)||ga(e.toastId))?e.toastId:h1()}function va(e,t){return p1(e,t),t.toastId}function Xl(e,t){return{...t,type:t&&t.type||e,toastId:KT(t)}}function Yl(e){return(t,r)=>va(t,Xl(e,r))}function Pe(e,t){return va(e,Xl("default",t))}Pe.loading=(e,t)=>va(e,Xl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Pe.promise=function(e,t,r){let n,{pending:o,error:i,success:a}=t;o&&(n=yo(o)?Pe.loading(o,r):Pe.loading(o.render,{...r,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(u,d,f)=>{if(d==null)return void Pe.dismiss(n);const g={type:u,...s,...r,data:f},h=yo(d)?{render:d}:d;return n?Pe.update(n,{...g,...h}):Pe(h.render,{...g,...h}),f},c=Ir(e)?e():e;return c.then(u=>l("success",a,u)).catch(u=>l("error",i,u)),c},Pe.success=Yl("success"),Pe.info=Yl("info"),Pe.error=Yl("error"),Pe.warning=Yl("warning"),Pe.warn=Pe.warning,Pe.dark=(e,t)=>va(e,Xl("default",{theme:"dark",...t})),Pe.dismiss=function(e){(function(t){var r;if(f1()){if(t==null||yo(r=t)||ga(r))dr.forEach(n=>{n.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const n=dr.get(t.containerId);n?n.removeToast(t.id):dr.forEach(o=>{o.removeToast(t.id)})}}else ha=ha.filter(n=>t!=null&&n.options.toastId!==t)})(e)},Pe.clearWaitingQueue=function(e){e===void 0&&(e={}),dr.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Pe.isActive=m1,Pe.update=function(e,t){t===void 0&&(t={});const r=((n,o)=>{var i;let{containerId:a}=o;return(i=dr.get(a||1))==null?void 0:i.toasts.get(n)})(e,t);if(r){const{props:n,content:o}=r,i={delay:100,...n,...t,toastId:t.toastId||e,updateId:h1()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,va(a,i)}},Pe.done=e=>{Pe.update(e,{progress:1})},Pe.onChange=function(e){return If.add(e),()=>{If.delete(e)}},Pe.play=e=>g1(!0,e),Pe.pause=e=>g1(!1,e);const eP=typeof window<"u"?E.useLayoutEffect:E.useEffect,Jl=e=>{let{theme:t,type:r,isLoading:n,...o}=e;return E.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...o})},Af={info:function(e){return E.createElement(Jl,{...e},E.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return E.createElement(Jl,{...e},E.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return E.createElement(Jl,{...e},E.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return E.createElement(Jl,{...e},E.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return E.createElement("div",{className:"Toastify__spinner"})}},tP=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:o,playToast:i}=ZT(e),{closeButton:a,children:s,autoClose:l,onClick:c,type:u,hideProgressBar:d,closeToast:f,transition:g,position:h,className:m,style:p,bodyClassName:b,bodyStyle:y,progressClassName:w,progressStyle:S,updateId:v,role:I,progress:O,rtl:N,toastId:T,deleteToast:P,isIn:M,isLoading:x,closeOnClick:$,theme:F}=e,k=cn("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":N},{"Toastify__toast--close-on-click":$}),j=Ir(m)?m({rtl:N,position:h,type:u,defaultClassName:k}):cn(k,m),z=function(D){let{theme:B,type:R,isLoading:W,icon:K}=D,q=null;const U={theme:B,type:R};return K===!1||(Ir(K)?q=K({...U,isLoading:W}):E.isValidElement(K)?q=E.cloneElement(K,U):W?q=Af.spinner():(Q=>Q in Af)(R)&&(q=Af[R](U))),q}(e),H=!!O||!l,V={closeToast:f,type:u,theme:F};let _=null;return a===!1||(_=Ir(a)?a(V):E.isValidElement(a)?E.cloneElement(a,V):function(D){let{closeToast:B,theme:R,ariaLabel:W="close"}=D;return E.createElement("button",{className:`Toastify__close-button Toastify__close-button--${R}`,type:"button",onClick:K=>{K.stopPropagation(),B(K)},"aria-label":W},E.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},E.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(V)),E.createElement(g,{isIn:M,done:P,position:h,preventExitTransition:r,nodeRef:n,playToast:i},E.createElement("div",{id:T,onClick:c,"data-in":M,className:j,...o,style:p,ref:n},E.createElement("div",{...M&&{role:I},className:Ir(b)?b({type:u}):cn("Toastify__toast-body",b),style:y},z!=null&&E.createElement("div",{className:cn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!x})},z),E.createElement("div",null,s)),_,E.createElement(qT,{...v&&!H?{key:`pb-${v}`}:{},rtl:N,theme:F,delay:l,isRunning:t,isIn:M,closeToast:f,hide:d,type:u,style:S,className:w,controlledProgress:H,progress:O||0})))},Zl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},rP=Ul(Zl("bounce",!0)),nP=Ul(Zl("slide",!0));Ul(Zl("zoom")),Ul(Zl("flip"));const oP={position:"top-right",transition:rP,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function iP(e){let t={...oP,...e};const r=e.stacked,[n,o]=E.useState(!0),i=E.useRef(null),{getToastToRender:a,isToastActive:s,count:l}=JT(t),{className:c,style:u,rtl:d,containerId:f}=t;function g(m){const p=cn("Toastify__toast-container",`Toastify__toast-container--${m}`,{"Toastify__toast-container--rtl":d});return Ir(c)?c({position:m,rtl:d,defaultClassName:p}):cn(p,Wl(c))}function h(){r&&(o(!0),Pe.play())}return eP(()=>{if(r){var m;const p=i.current.querySelectorAll('[data-in="true"]'),b=12,y=(m=t.position)==null?void 0:m.includes("top");let w=0,S=0;Array.from(p).reverse().forEach((v,I)=>{const O=v;O.classList.add("Toastify__toast--stacked"),I>0&&(O.dataset.collapsed=`${n}`),O.dataset.pos||(O.dataset.pos=y?"top":"bot");const N=w*(n?.2:1)+(n?0:b*I);O.style.setProperty("--y",`${y?N:-1*N}px`),O.style.setProperty("--g",`${b}`),O.style.setProperty("--s",""+(1-(n?S:0))),w+=O.offsetHeight,S+=.025})}},[n,l,r]),E.createElement("div",{ref:i,className:"Toastify",id:f,onMouseEnter:()=>{r&&(o(!1),Pe.pause())},onMouseLeave:h},a((m,p)=>{const b=p.length?{...u}:{...u,pointerEvents:"none"};return E.createElement("div",{className:g(m),style:b,key:`container-${m}`},p.map(y=>{let{content:w,props:S}=y;return E.createElement(tP,{...S,stacked:r,collapseAll:h,isIn:s(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},w)}))}))}const aP=({size:e=24,fill:t="#12B76A"})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{mask:"url(#mask0_4874_46615)",children:C.jsx("path",{d:"M10.6 13.8L8.425 11.625C8.24167 11.4417 8.01267 11.3543 7.738 11.363C7.46267 11.371 7.23333 11.4667 7.05 11.65C6.86667 11.8333 6.775 12.0667 6.775 12.35C6.775 12.6333 6.86667 12.8667 7.05 13.05L9.9 15.9C10.0833 16.0833 10.3167 16.175 10.6 16.175C10.8833 16.175 11.1167 16.0833 11.3 15.9L16.975 10.225C17.1583 10.0417 17.246 9.81233 17.238 9.537C17.2293 9.26233 17.1333 9.03333 16.95 8.85C16.7667 8.66667 16.5333 8.575 16.25 8.575C15.9667 8.575 15.7333 8.66667 15.55 8.85L10.6 13.8ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6873 5.825 19.975 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26267 14.6833 2 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31267 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.31233 8.1 2.787C9.31667 2.26233 10.6167 2 12 2C13.3833 2 14.6833 2.26233 15.9 2.787C17.1167 3.31233 18.175 4.025 19.075 4.925C19.975 5.825 20.6873 6.88333 21.212 8.1C21.7373 9.31667 22 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6873 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6873 15.9 21.212C14.6833 21.7373 13.3833 22 12 22ZM12 20C14.2167 20 16.1043 19.221 17.663 17.663C19.221 16.1043 20 14.2167 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.1043 4.779 14.2167 4 12 4C9.78333 4 7.896 4.779 6.338 6.337C4.77933 7.89567 4 9.78333 4 12C4 14.2167 4.77933 16.1043 6.338 17.663C7.896 19.221 9.78333 20 12 20Z",fill:t})})}),sP=({size:e=24,fill:t="#F04438"})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("g",{id:"error",children:C.jsx("g",{mask:"url(#mask0_4874_46622)",children:C.jsx("path",{id:"error_2",d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 13C12.2833 13 12.5208 12.9042 12.7125 12.7125C12.9042 12.5208 13 12.2833 13 12V8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8V12C11 12.2833 11.0958 12.5208 11.2875 12.7125C11.4792 12.9042 11.7167 13 12 13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})})}),lP=({size:e=24,fill:t="#F79009"})=>C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:C.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99ZM2.74 18C1.97 19.33 2.93 21 4.47 21H19.53C21.07 21 22.03 19.33 21.26 18L13.73 4.99C12.96 3.66 11.04 3.66 10.27 4.99L2.74 18ZM11 11V13C11 13.55 11.45 14 12 14C12.55 14 13 13.55 13 13V11C13 10.45 12.55 10 12 10C11.45 10 11 10.45 11 11ZM11 16H13V18H11V16Z",fill:t})}),cP=({size:e=24,fill:t="#016DCF"})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[C.jsx("mask",{id:"mask0_32271_5688",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_32271_5688)",children:C.jsx("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16V12C13 11.7167 12.9042 11.4792 12.7125 11.2875C12.5208 11.0958 12.2833 11 12 11C11.7167 11 11.4792 11.0958 11.2875 11.2875C11.0958 11.4792 11 11.7167 11 12V16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM12 9C12.2833 9 12.5208 8.90417 12.7125 8.7125C12.9042 8.52083 13 8.28333 13 8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8C11 8.28333 11.0958 8.52083 11.2875 8.7125C11.4792 8.90417 11.7167 9 12 9ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:t})})]}),uP=({size:e=24,fill:t="#016DCF"})=>C.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",children:[C.jsx("mask",{id:"mask0_35096_2621",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),C.jsx("g",{mask:"url(#mask0_35096_2621)",children:C.jsx("path",{d:"M8 20H16V17C16 15.9 15.6083 14.9583 14.825 14.175C14.0417 13.3917 13.1 13 12 13C10.9 13 9.95833 13.3917 9.175 14.175C8.39167 14.9583 8 15.9 8 17V20ZM12 11C13.1 11 14.0417 10.6083 14.825 9.825C15.6083 9.04167 16 8.1 16 7V4H8V7C8 8.1 8.39167 9.04167 9.175 9.825C9.95833 10.6083 10.9 11 12 11ZM5 22C4.71667 22 4.47917 21.9042 4.2875 21.7125C4.09583 21.5208 4 21.2833 4 21C4 20.7167 4.09583 20.4792 4.2875 20.2875C4.47917 20.0958 4.71667 20 5 20H6V17C6 15.9833 6.2375 15.0292 6.7125 14.1375C7.1875 13.2458 7.85 12.5333 8.7 12C7.85 11.4667 7.1875 10.7542 6.7125 9.8625C6.2375 8.97083 6 8.01667 6 7V4H5C4.71667 4 4.47917 3.90417 4.2875 3.7125C4.09583 3.52083 4 3.28333 4 3C4 2.71667 4.09583 2.47917 4.2875 2.2875C4.47917 2.09583 4.71667 2 5 2H19C19.2833 2 19.5208 2.09583 19.7125 2.2875C19.9042 2.47917 20 2.71667 20 3C20 3.28333 19.9042 3.52083 19.7125 3.7125C19.5208 3.90417 19.2833 4 19 4H18V7C18 8.01667 17.7625 8.97083 17.2875 9.8625C16.8125 10.7542 16.15 11.4667 15.3 12C16.15 12.5333 16.8125 13.2458 17.2875 14.1375C17.7625 15.0292 18 15.9833 18 17V20H19C19.2833 20 19.5208 20.0958 19.7125 20.2875C19.9042 20.4792 20 20.7167 20 21C20 21.2833 19.9042 21.5208 19.7125 21.7125C19.5208 21.9042 19.2833 22 19 22H5Z",fill:t})})]}),dP=({size:e=16})=>C.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"})}),fP=e=>{switch(e){case"success":return C.jsx("div",{className:"w-8 h-8 bg-green-50 dark:bg-green-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(aP,{size:24,fill:"#12B76A"})});case"error":return C.jsx("div",{className:"w-8 h-8 bg-red-50 dark:bg-red-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(sP,{fill:"#F04438",size:24})});case"warning":return C.jsx("div",{className:"w-8 h-8 bg-yellow-50 dark:bg-yellow-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(lP,{fill:"#F79009",size:24})});case"info":return C.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(cP,{})});case"in-progress":return C.jsx("div",{className:"w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center",children:C.jsx(uP,{})});default:return null}},mP={success:"border-b-[5px] !border-green-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",error:"border-b-[5px] !border-red-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",warning:"border-b-[5px] !border-yellow-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",info:"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600","in-progress":"border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600"},pP=({closeToast:e})=>C.jsx("button",{onClick:e,className:"text-neutral-900 dark:text-white hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors",children:C.jsx(dP,{size:16})}),gP=({position:e="bottom-right",autoClose:t=3e3,hideProgressBar:r=!0,newestOnTop:n=!0,closeOnClick:o=!0,pauseOnFocusLoss:i=!1,draggable:a=!0,pauseOnHover:s=!0,rtl:l=!1,className:c,style:u={zIndex:1e5},...d})=>C.jsx(iP,{position:e,transition:nP,autoClose:t,hideProgressBar:r,newestOnTop:n,closeOnClick:o,rtl:l,pauseOnFocusLoss:i,draggable:a,pauseOnHover:s,icon:({type:f})=>fP(f),bodyStyle:{gap:"4px"},style:u,toastClassName:f=>{const{type:g="",defaultClassName:h=""}=f||{};return`w-[100%] sm:w-[400px] bg-white dark:bg-neutral-800 rounded-[4px] font-medium text-sm text-neutral-900 dark:text-white shadow-lg p-[20px] min-h-0 ${h} ${mP[g]} ${c||""}`},closeButton:pP,...d}),hP={success:(e,t)=>Pe.success(e,t),error:(e,t)=>Pe.error(e,t),warning:(e,t)=>Pe.warning(e,t),info:(e,t)=>Pe.info(e,t),inProgress:(e,t)=>Pe(e,{...t,type:"in-progress"}),dismiss:e=>Pe.dismiss(e),isActive:e=>Pe.isActive(e)};typeof window<"u"&&(window.CODEIUM_REACT_CODE_VERSION="1.0.12");function v1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Nf(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function gr(e,t){if(!e)throw new Error(t)}const vP=34028234663852886e22,bP=-34028234663852886e22,yP=4294967295,CP=2147483647,xP=-2147483648;function ql(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>CP||e<xP)throw new Error("invalid int 32: "+e)}function Of(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>yP||e<0)throw new Error("invalid uint 32: "+e)}function b1(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>vP||e<bP))throw new Error("invalid float 32: "+e)}const y1=Symbol("@bufbuild/protobuf/enum-type");function wP(e){const t=e[y1];return gr(t,"missing enum type on enum object"),t}function C1(e,t,r,n){e[y1]=x1(t,r.map(o=>({no:o.no,name:o.name,localName:e[o.no]})))}function x1(e,t,r){const n=Object.create(null),o=Object.create(null),i=[];for(const a of t){const s=w1(a);i.push(s),n[a.name]=s,o[a.no]=s}return{typeName:e,values:i,findName(a){return n[a]},findNumber(a){return o[a]}}}function SP(e,t,r){const n={};for(const o of t){const i=w1(o);n[i.localName]=i.no,n[i.no]=i.localName}return C1(n,e,t),n}function w1(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class mt{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,r){const n=this.getType(),o=n.runtime.bin,i=o.makeReadOptions(r);return o.readMessage(this,i.readerFactory(t),t.byteLength,i),this}fromJson(t,r){const n=this.getType(),o=n.runtime.json,i=o.makeReadOptions(r);return o.readMessage(n,t,i,this),this}fromJsonString(t,r){let n;try{n=JSON.parse(t)}catch(o){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${o instanceof Error?o.message:String(o)}`)}return this.fromJson(n,r)}toBinary(t){const r=this.getType(),n=r.runtime.bin,o=n.makeWriteOptions(t),i=o.writerFactory();return n.writeMessage(this,i,o),i.finish()}toJson(t){const r=this.getType(),n=r.runtime.json,o=n.makeWriteOptions(t);return n.writeMessage(this,o)}toJsonString(t){var r;const n=this.toJson(t);return JSON.stringify(n,null,(r=t?.prettySpaces)!==null&&r!==void 0?r:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function EP(e,t,r,n){var o;const i=(o=n?.localName)!==null&&o!==void 0?o:t.substring(t.lastIndexOf(".")+1),a={[i]:function(s){e.util.initFields(this),e.util.initPartial(s,this)}}[i];return Object.setPrototypeOf(a.prototype,new mt),Object.assign(a,{runtime:e,typeName:t,fields:e.util.newFieldList(r),fromBinary(s,l){return new a().fromBinary(s,l)},fromJson(s,l){return new a().fromJson(s,l)},fromJsonString(s,l){return new a().fromJsonString(s,l)},equals(s,l){return e.util.equals(a,s,l)}}),a}function IP(e,t,r,n){return{syntax:e,json:t,bin:r,util:n,makeMessageType(o,i,a){return EP(this,o,i,a)},makeEnum:SP,makeEnumType:x1,getEnumType:wP}}var re;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(re||(re={}));var Co;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Co||(Co={}));function AP(){let e=0,t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(r&15)<<28,t=(r&112)>>4,(r&128)==0)return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Tf(e,t,r){for(let i=0;i<28;i=i+7){const a=e>>>i,s=!(!(a>>>7)&&t==0),l=(s?a|128:a)&255;if(r.push(l),!s)return}const n=e>>>28&15|(t&7)<<4,o=t>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let i=3;i<31;i=i+7){const a=t>>>i,s=!!(a>>>7),l=(s?a|128:a)&255;if(r.push(l),!s)return}r.push(t>>>31&1)}}const Ql=4294967296;function S1(e){const t=e[0]==="-";t&&(e=e.slice(1));const r=1e6;let n=0,o=0;function i(a,s){const l=Number(e.slice(a,s));o*=r,n=n*r+l,n>=Ql&&(o=o+(n/Ql|0),n=n%Ql)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?I1(n,o):Pf(n,o)}function NP(e,t){let r=Pf(e,t);const n=r.hi&2147483648;n&&(r=I1(r.lo,r.hi));const o=E1(r.lo,r.hi);return n?"-"+o:o}function E1(e,t){if({lo:e,hi:t}=OP(e,t),t<=2097151)return String(Ql*t+e);const r=e&16777215,n=(e>>>24|t<<8)&16777215,o=t>>16&65535;let i=r+n*6777216+o*6710656,a=n+o*8147497,s=o*2;const l=1e7;return i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(s+=Math.floor(a/l),a%=l),s.toString()+A1(a)+A1(i)}function OP(e,t){return{lo:e>>>0,hi:t>>>0}}function Pf(e,t){return{lo:e|0,hi:t|0}}function I1(e,t){return t=~t,e?e=~e+1:t+=1,Pf(e,t)}const A1=e=>{const t=String(e);return"0000000".slice(t.length)+t};function N1(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function TP(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let r=5;(e&128)!==0&&r<10;r++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}function PP(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const o=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807"),a=BigInt("0"),s=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){const c=typeof l=="bigint"?l:BigInt(l);if(c>i||c<o)throw new Error(`int64 invalid: ${l}`);return c},uParse(l){const c=typeof l=="bigint"?l:BigInt(l);if(c>s||c<a)throw new Error(`uint64 invalid: ${l}`);return c},enc(l){return e.setBigInt64(0,this.parse(l),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(l){return e.setBigInt64(0,this.uParse(l),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(l,c){return e.setInt32(0,l,!0),e.setInt32(4,c,!0),e.getBigInt64(0,!0)},uDec(l,c){return e.setInt32(0,l,!0),e.setInt32(4,c,!0),e.getBigUint64(0,!0)}}}const r=o=>gr(/^-?[0-9]+$/.test(o),`int64 invalid: ${o}`),n=o=>gr(/^[0-9]+$/.test(o),`uint64 invalid: ${o}`);return{zero:"0",supported:!1,parse(o){return typeof o!="string"&&(o=o.toString()),r(o),o},uParse(o){return typeof o!="string"&&(o=o.toString()),n(o),o},enc(o){return typeof o!="string"&&(o=o.toString()),r(o),S1(o)},uEnc(o){return typeof o!="string"&&(o=o.toString()),n(o),S1(o)},dec(o,i){return NP(o,i)},uDec(o,i){return E1(o,i)}}}const dt=PP();var $t;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})($t||($t={}));class kP{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let o=0;o<this.chunks.length;o++)t+=this.chunks[o].length;let r=new Uint8Array(t),n=0;for(let o=0;o<this.chunks.length;o++)r.set(this.chunks[o],n),n+=this.chunks[o].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,r){return this.uint32((t<<3|r)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Of(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return ql(t),N1(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let r=this.textEncoder.encode(t);return this.uint32(r.byteLength),this.raw(r)}float(t){b1(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){Of(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){ql(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return ql(t),t=(t<<1^t>>31)>>>0,N1(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),o=dt.enc(t);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),n=new DataView(r.buffer),o=dt.uEnc(t);return n.setInt32(0,o.lo,!0),n.setInt32(4,o.hi,!0),this.raw(r)}int64(t){let r=dt.enc(t);return Tf(r.lo,r.hi,this.buf),this}sint64(t){let r=dt.enc(t),n=r.hi>>31,o=r.lo<<1^n,i=(r.hi<<1|r.lo>>>31)^n;return Tf(o,i,this.buf),this}uint64(t){let r=dt.uEnc(t);return Tf(r.lo,r.hi,this.buf),this}}class FP{constructor(t,r){this.varint64=AP,this.uint32=TP,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=r??new TextDecoder}tag(){let t=this.uint32(),r=t>>>3,n=t&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(t){let r=this.pos;switch(t){case $t.Varint:for(;this.buf[this.pos++]&128;);break;case $t.Bit64:this.pos+=4;case $t.Bit32:this.pos+=4;break;case $t.LengthDelimited:let n=this.uint32();this.pos+=n;break;case $t.StartGroup:let o;for(;(o=this.tag()[1])!==$t.EndGroup;)this.skip(o);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return dt.dec(...this.varint64())}uint64(){return dt.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),n=-(t&1);return t=(t>>>1|(r&1)<<31)^n,r=r>>>1^n,dt.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return dt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return dt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.textDecoder.decode(this.bytes())}}function kf(e,t){return t instanceof mt||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}re.DOUBLE,re.FLOAT,re.INT64,re.UINT64,re.INT32,re.UINT32,re.BOOL,re.STRING,re.BYTES;function Kn(e,t,r){if(t===r)return!0;if(e==re.BYTES){if(!(t instanceof Uint8Array)||!(r instanceof Uint8Array)||t.length!==r.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==r[n])return!1;return!0}switch(e){case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return t==r}return!1}function Ff(e,t){switch(e){case re.BOOL:return!1;case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return t==0?dt.zero:"0";case re.DOUBLE:case re.FLOAT:return 0;case re.BYTES:return new Uint8Array(0);case re.STRING:return"";default:return 0}}function O1(e,t){const r=t===void 0;let n=$t.Varint,o=t===0;switch(e){case re.STRING:o=r||!t.length,n=$t.LengthDelimited;break;case re.BOOL:o=t===!1;break;case re.DOUBLE:n=$t.Bit64;break;case re.FLOAT:n=$t.Bit32;break;case re.INT64:o=r||t==0;break;case re.UINT64:o=r||t==0;break;case re.FIXED64:o=r||t==0,n=$t.Bit64;break;case re.BYTES:o=r||!t.byteLength,n=$t.LengthDelimited;break;case re.FIXED32:n=$t.Bit32;break;case re.SFIXED32:n=$t.Bit32;break;case re.SFIXED64:o=r||t==0,n=$t.Bit64;break;case re.SINT64:o=r||t==0;break}const i=re[e].toLowerCase();return[n,i,r||o]}const di=Symbol("@bufbuild/protobuf/unknown-fields"),T1={readUnknownFields:!0,readerFactory:e=>new FP(e)},P1={writeUnknownFields:!0,writerFactory:()=>new kP};function $P(e){return e?Object.assign(Object.assign({},T1),e):T1}function MP(e){return e?Object.assign(Object.assign({},P1),e):P1}function jP(){return{makeReadOptions:$P,makeWriteOptions:MP,listUnknownFields(e){var t;return(t=e[di])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[di]},writeUnknownFields(e,t){const n=e[di];if(n)for(const o of n)t.tag(o.no,o.wireType).raw(o.data)},onUnknownField(e,t,r,n){const o=e;Array.isArray(o[di])||(o[di]=[]),o[di].push({no:t,wireType:r,data:n})},readMessage(e,t,r,n){const o=e.getType(),i=r===void 0?t.len:t.pos+r;for(;t.pos<i;){const[a,s]=t.tag(),l=o.fields.find(a);if(!l){const f=t.skip(s);n.readUnknownFields&&this.onUnknownField(e,a,s,f);continue}let c=e,u=l.repeated,d=l.localName;switch(l.oneof&&(c=c[l.oneof.localName],c.case!=d&&delete c.value,c.case=d,d="value"),l.kind){case"scalar":case"enum":const f=l.kind=="enum"?re.INT32:l.T;let g=ec;if(l.kind=="scalar"&&l.L>0&&(g=LP),u){let b=c[d];if(s==$t.LengthDelimited&&f!=re.STRING&&f!=re.BYTES){let y=t.uint32()+t.pos;for(;t.pos<y;)b.push(g(t,f))}else b.push(g(t,f))}else c[d]=g(t,f);break;case"message":const h=l.T;u?c[d].push(Kl(t,new h,n)):c[d]instanceof mt?Kl(t,c[d],n):(c[d]=Kl(t,new h,n),h.fieldWrapper&&!l.oneof&&!l.repeated&&(c[d]=h.fieldWrapper.unwrapField(c[d])));break;case"map":let[m,p]=RP(l,t,n);c[d][m]=p;break}}}}}function Kl(e,t,r){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),r),t}function RP(e,t,r){const n=t.uint32(),o=t.pos+n;let i,a;for(;t.pos<o;){let[s]=t.tag();switch(s){case 1:i=ec(t,e.K);break;case 2:switch(e.V.kind){case"scalar":a=ec(t,e.V.T);break;case"enum":a=t.int32();break;case"message":a=Kl(t,new e.V.T,r);break}break}}if(i===void 0){let s=Ff(e.K,Co.BIGINT);i=e.K==re.BOOL?s.toString():s}if(typeof i!="string"&&typeof i!="number"&&(i=i.toString()),a===void 0)switch(e.V.kind){case"scalar":a=Ff(e.V.T,Co.BIGINT);break;case"enum":a=0;break;case"message":a=new e.V.T;break}return[i,a]}function LP(e,t){const r=ec(e,t);return typeof r=="bigint"?r.toString():r}function ec(e,t){switch(t){case re.STRING:return e.string();case re.BOOL:return e.bool();case re.DOUBLE:return e.double();case re.FLOAT:return e.float();case re.INT32:return e.int32();case re.INT64:return e.int64();case re.UINT64:return e.uint64();case re.FIXED64:return e.fixed64();case re.BYTES:return e.bytes();case re.FIXED32:return e.fixed32();case re.SFIXED32:return e.sfixed32();case re.SFIXED64:return e.sfixed64();case re.SINT64:return e.sint64();case re.UINT32:return e.uint32();case re.SINT32:return e.sint32()}}function DP(e,t,r,n,o){e.tag(r.no,$t.LengthDelimited),e.fork();let i=n;switch(r.K){case re.INT32:case re.FIXED32:case re.UINT32:case re.SFIXED32:case re.SINT32:i=Number.parseInt(n);break;case re.BOOL:gr(n=="true"||n=="false"),i=n=="true";break}switch(ba(e,r.K,1,i,!0),r.V.kind){case"scalar":ba(e,r.V.T,2,o,!0);break;case"enum":ba(e,re.INT32,2,o,!0);break;case"message":$f(e,t,r.V.T,2,o);break}e.join()}function $f(e,t,r,n,o){if(o!==void 0){const i=kf(r,o);e.tag(n,$t.LengthDelimited).bytes(i.toBinary(t))}}function ba(e,t,r,n,o){let[i,a,s]=O1(t,n);(!s||o)&&e.tag(r,i)[a](n)}function _P(e,t,r,n){if(!n.length)return;e.tag(r,$t.LengthDelimited).fork();let[,o]=O1(t);for(let i=0;i<n.length;i++)e[o](n[i]);e.join()}function VP(){return Object.assign(Object.assign({},jP()),{writeMessage(e,t,r){const n=e.getType();for(const o of n.fields.byNumber()){let i,a=o.repeated,s=o.localName;if(o.oneof){const l=e[o.oneof.localName];if(l.case!==s)continue;i=l.value}else i=e[s];switch(o.kind){case"scalar":case"enum":let l=o.kind=="enum"?re.INT32:o.T;if(a)if(o.packed)_P(t,l,o.no,i);else for(const c of i)ba(t,l,o.no,c,!0);else i!==void 0&&ba(t,l,o.no,i,!!o.oneof||o.opt);break;case"message":if(a)for(const c of i)$f(t,r,o.T,o.no,c);else $f(t,r,o.T,o.no,i);break;case"map":for(const[c,u]of Object.entries(i))DP(t,r,o,c,u);break}}return r.writeUnknownFields&&this.writeUnknownFields(e,t),t}})}let An="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),tc=[];for(let e=0;e<An.length;e++)tc[An[e].charCodeAt(0)]=e;tc[45]=An.indexOf("+"),tc[95]=An.indexOf("/");const rc={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let r=new Uint8Array(t),n=0,o=0,i,a=0;for(let s=0;s<e.length;s++){if(i=tc[e.charCodeAt(s)],i===void 0)switch(e[s]){case"=":o=0;case`
|
|
321
|
+
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=i,o=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,o=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,o=3;break;case 3:r[n++]=(a&3)<<6|i,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)},enc(e){let t="",r=0,n,o=0;for(let i=0;i<e.length;i++)switch(n=e[i],r){case 0:t+=An[n>>2],o=(n&3)<<4,r=1;break;case 1:t+=An[o|n>>4],o=(n&15)<<2,r=2;break;case 2:t+=An[o|n>>6],t+=An[n&63],r=0;break}return r&&(t+=An[o],t+="=",r==1&&(t+="=")),t}},k1={ignoreUnknownFields:!1},F1={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function BP(e){return e?Object.assign(Object.assign({},k1),e):k1}function zP(e){return e?Object.assign(Object.assign({},F1),e):F1}function GP(e){const t=e(HP,M1);return{makeReadOptions:BP,makeWriteOptions:zP,readMessage(r,n,o,i){if(n==null||Array.isArray(n)||typeof n!="object")throw new Error(`cannot decode message ${r.typeName} from JSON: ${this.debug(n)}`);i=i??new r;const a={};for(const[s,l]of Object.entries(n)){const c=r.fields.findJsonName(s);if(!c){if(!o.ignoreUnknownFields)throw new Error(`cannot decode message ${r.typeName} from JSON: key "${s}" is unknown`);continue}let u=c.localName,d=i;if(c.oneof){if(l===null&&c.kind=="scalar")continue;const f=a[c.oneof.localName];if(f)throw new Error(`cannot decode message ${r.typeName} from JSON: multiple keys for oneof "${c.oneof.name}" present: "${f}", "${s}"`);a[c.oneof.localName]=s,d=d[c.oneof.localName]={case:u},u="value"}if(c.repeated){if(l===null)continue;if(!Array.isArray(l))throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`);const f=d[u];for(const g of l){if(g===null)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(g)}`);let h;switch(c.kind){case"message":h=c.T.fromJson(g,o);break;case"enum":if(h=Mf(c.T,g,o.ignoreUnknownFields),h===void 0)continue;break;case"scalar":try{h=ya(c.T,g,c.L)}catch(m){let p=`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(g)}`;throw m instanceof Error&&m.message.length>0&&(p+=`: ${m.message}`),new Error(p)}break}f.push(h)}}else if(c.kind=="map"){if(l===null)continue;if(Array.isArray(l)||typeof l!="object")throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`);const f=d[u];for(const[g,h]of Object.entries(l)){if(h===null)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: map value null`);let m;switch(c.V.kind){case"message":m=c.V.T.fromJson(h,o);break;case"enum":if(m=Mf(c.V.T,h,o.ignoreUnknownFields),m===void 0)continue;break;case"scalar":try{m=ya(c.V.T,h,Co.BIGINT)}catch(p){let b=`cannot decode map value for field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw p instanceof Error&&p.message.length>0&&(b+=`: ${p.message}`),new Error(b)}break}try{f[ya(c.K,c.K==re.BOOL?g=="true"?!0:g=="false"?!1:g:g,Co.BIGINT).toString()]=m}catch(p){let b=`cannot decode map key for field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw p instanceof Error&&p.message.length>0&&(b+=`: ${p.message}`),new Error(b)}}}else switch(c.kind){case"message":const f=c.T;if(l===null&&f.typeName!="google.protobuf.Value"){if(c.oneof)throw new Error(`cannot decode field ${r.typeName}.${c.name} from JSON: null is invalid for oneof field "${s}"`);continue}d[u]instanceof mt?d[u].fromJson(l,o):(d[u]=f.fromJson(l,o),f.fieldWrapper&&!c.oneof&&(d[u]=f.fieldWrapper.unwrapField(d[u])));break;case"enum":const g=Mf(c.T,l,o.ignoreUnknownFields);g!==void 0&&(d[u]=g);break;case"scalar":try{d[u]=ya(c.T,l,c.L)}catch(h){let m=`cannot decode field ${r.typeName}.${c.name} from JSON: ${this.debug(l)}`;throw h instanceof Error&&h.message.length>0&&(m+=`: ${h.message}`),new Error(m)}break}}return i},writeMessage(r,n){const o=r.getType(),i={};let a;try{for(const s of o.fields.byMember()){let l;if(s.kind=="oneof"){const c=r[s.localName];if(c.value===void 0)continue;if(a=s.findField(c.case),!a)throw"oneof case not found: "+c.case;l=t(a,c.value,n)}else a=s,l=t(a,r[a.localName],n);l!==void 0&&(i[n.useProtoFieldName?a.name:a.jsonName]=l)}}catch(s){const l=a?`cannot encode field ${o.typeName}.${a.name} to JSON`:`cannot encode message ${o.typeName} to JSON`,c=s instanceof Error?s.message:String(s);throw new Error(l+(c.length>0?`: ${c}`:""))}return i},readScalar:ya,writeScalar:M1,debug:$1}}function $1(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function ya(e,t,r){switch(e){case re.DOUBLE:case re.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const n=Number(t);if(Number.isNaN(n)||!Number.isFinite(n))break;return e==re.FLOAT&&b1(n),n;case re.INT32:case re.FIXED32:case re.SFIXED32:case re.SINT32:case re.UINT32:if(t===null)return 0;let o;if(typeof t=="number"?o=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(o=Number(t)),o===void 0)break;return e==re.UINT32?Of(o):ql(o),o;case re.INT64:case re.SFIXED64:case re.SINT64:if(t===null)return dt.zero;if(typeof t!="number"&&typeof t!="string")break;const i=dt.parse(t);return r?i.toString():i;case re.FIXED64:case re.UINT64:if(t===null)return dt.zero;if(typeof t!="number"&&typeof t!="string")break;const a=dt.uParse(t);return r?a.toString():a;case re.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case re.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case re.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return rc.dec(t)}throw new Error}function Mf(e,t,r){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const n=e.findName(t);if(n||r)return n?.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${$1(t)}`)}function HP(e,t,r,n){var o;if(t===void 0)return t;if(t===0&&!r)return;if(n)return t;if(e.typeName=="google.protobuf.NullValue")return null;const i=e.findNumber(t);return(o=i?.name)!==null&&o!==void 0?o:t}function M1(e,t,r){if(t!==void 0)switch(e){case re.INT32:case re.SFIXED32:case re.SINT32:case re.FIXED32:case re.UINT32:return gr(typeof t=="number"),t!=0||r?t:void 0;case re.FLOAT:case re.DOUBLE:return gr(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||r?t:void 0;case re.STRING:return gr(typeof t=="string"),t.length>0||r?t:void 0;case re.BOOL:return gr(typeof t=="boolean"),t||r?t:void 0;case re.UINT64:case re.FIXED64:case re.INT64:case re.SFIXED64:case re.SINT64:return gr(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),r||t!=0?t.toString(10):void 0;case re.BYTES:return gr(t instanceof Uint8Array),r||t.byteLength>0?rc.enc(t):void 0}}function WP(){return GP((e,t)=>function(n,o,i){if(n.kind=="map"){const a={};switch(n.V.kind){case"scalar":for(const[l,c]of Object.entries(o)){const u=t(n.V.T,c,!0);gr(u!==void 0),a[l.toString()]=u}break;case"message":for(const[l,c]of Object.entries(o))a[l.toString()]=c.toJson(i);break;case"enum":const s=n.V.T;for(const[l,c]of Object.entries(o)){gr(c===void 0||typeof c=="number");const u=e(s,c,!0,i.enumAsInteger);gr(u!==void 0),a[l.toString()]=u}break}return i.emitDefaultValues||Object.keys(a).length>0?a:void 0}else if(n.repeated){const a=[];switch(n.kind){case"scalar":for(let s=0;s<o.length;s++)a.push(t(n.T,o[s],!0));break;case"enum":for(let s=0;s<o.length;s++)a.push(e(n.T,o[s],!0,i.enumAsInteger));break;case"message":for(let s=0;s<o.length;s++)a.push(kf(n.T,o[s]).toJson(i));break}return i.emitDefaultValues||a.length>0?a:void 0}else switch(n.kind){case"scalar":return t(n.T,o,!!n.oneof||n.opt||i.emitDefaultValues);case"enum":return e(n.T,o,!!n.oneof||n.opt||i.emitDefaultValues,i.enumAsInteger);case"message":return o!==void 0?kf(n.T,o).toJson(i):void 0}})}function UP(){return{setEnumType:C1,initPartial(e,t){if(e===void 0)return;const r=t.getType();for(const n of r.fields.byMember()){const o=n.localName,i=t,a=e;if(a[o]!==void 0)switch(n.kind){case"oneof":const s=a[o].case;if(s===void 0)continue;const l=n.findField(s);let c=a[o].value;l&&l.kind=="message"&&!(c instanceof l.T)?c=new l.T(c):l&&l.kind==="scalar"&&l.T===re.BYTES&&(c=Ca(c)),i[o]={case:s,value:c};break;case"scalar":case"enum":let u=a[o];n.T===re.BYTES&&(u=n.repeated?u.map(Ca):Ca(u)),i[o]=u;break;case"map":switch(n.V.kind){case"scalar":case"enum":if(n.V.T===re.BYTES)for(const[g,h]of Object.entries(a[o]))i[o][g]=Ca(h);else Object.assign(i[o],a[o]);break;case"message":const f=n.V.T;for(const g of Object.keys(a[o])){let h=a[o][g];f.fieldWrapper||(h=new f(h)),i[o][g]=h}break}break;case"message":const d=n.T;if(n.repeated)i[o]=a[o].map(f=>f instanceof d?f:new d(f));else if(a[o]!==void 0){const f=a[o];d.fieldWrapper?d.typeName==="google.protobuf.BytesValue"?i[o]=Ca(f):i[o]=f:i[o]=f instanceof d?f:new d(f)}break}}},equals(e,t,r){return t===r?!0:!t||!r?!1:e.fields.byMember().every(n=>{const o=t[n.localName],i=r[n.localName];if(n.repeated){if(o.length!==i.length)return!1;switch(n.kind){case"message":return o.every((a,s)=>n.T.equals(a,i[s]));case"scalar":return o.every((a,s)=>Kn(n.T,a,i[s]));case"enum":return o.every((a,s)=>Kn(re.INT32,a,i[s]))}throw new Error(`repeated cannot contain ${n.kind}`)}switch(n.kind){case"message":return n.T.equals(o,i);case"enum":return Kn(re.INT32,o,i);case"scalar":return Kn(n.T,o,i);case"oneof":if(o.case!==i.case)return!1;const a=n.findField(o.case);if(a===void 0)return!0;switch(a.kind){case"message":return a.T.equals(o.value,i.value);case"enum":return Kn(re.INT32,o.value,i.value);case"scalar":return Kn(a.T,o.value,i.value)}throw new Error(`oneof cannot contain ${a.kind}`);case"map":const s=Object.keys(o).concat(Object.keys(i));switch(n.V.kind){case"message":const l=n.V.T;return s.every(u=>l.equals(o[u],i[u]));case"enum":return s.every(u=>Kn(re.INT32,o[u],i[u]));case"scalar":const c=n.V.T;return s.every(u=>Kn(c,o[u],i[u]))}break}})},clone(e){const t=e.getType(),r=new t,n=r;for(const o of t.fields.byMember()){const i=e[o.localName];let a;if(o.repeated)a=i.map(nc);else if(o.kind=="map"){a=n[o.localName];for(const[s,l]of Object.entries(i))a[s]=nc(l)}else o.kind=="oneof"?a=o.findField(i.case)?{case:i.case,value:nc(i.value)}:{case:void 0}:a=nc(i);n[o.localName]=a}return r}}}function nc(e){if(e===void 0)return e;if(e instanceof mt)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Ca(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class XP{constructor(t,r){this._fields=t,this._normalizer=r}findJsonName(t){if(!this.jsonNames){const r={};for(const n of this.list())r[n.jsonName]=r[n.name]=n;this.jsonNames=r}return this.jsonNames[t]}find(t){if(!this.numbers){const r={};for(const n of this.list())r[n.no]=n;this.numbers=r}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,r)=>t.no-r.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let r;for(const n of this.list())n.oneof?n.oneof!==r&&(r=n.oneof,t.push(r)):t.push(n)}return this.members}}function j1(e,t){const r=R1(e);return t?r:KP(QP(r))}function YP(e){return j1(e,!1)}const JP=R1;function R1(e){let t=!1;const r=[];for(let n=0;n<e.length;n++){let o=e.charAt(n);switch(o){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r.push(o),t=!1;break;default:t&&(t=!1,o=o.toUpperCase()),r.push(o);break}}return r.join("")}const ZP=new Set(["constructor","toString","toJSON","valueOf"]),qP=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),L1=e=>`${e}$`,QP=e=>qP.has(e)?L1(e):e,KP=e=>ZP.has(e)?L1(e):e;class e7{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=YP(t)}addField(t){gr(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let r=0;r<this.fields.length;r++)this._lookup[this.fields[r].localName]=this.fields[r]}return this._lookup[t]}}const oe=IP("proto3",WP(),VP(),Object.assign(Object.assign({},UP()),{newFieldList(e){return new XP(e,t7)},initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const r=t.localName,n=e;if(t.repeated){n[r]=[];continue}switch(t.kind){case"oneof":n[r]={case:void 0};break;case"enum":n[r]=0;break;case"map":n[r]={};break;case"scalar":n[r]=Ff(t.T,t.L);break}}}}));function t7(e){var t,r,n,o;const i=[];let a;for(const s of typeof e=="function"?e():e){const l=s;if(l.localName=j1(s.name,s.oneof!==void 0),l.jsonName=(t=s.jsonName)!==null&&t!==void 0?t:JP(s.name),l.repeated=(r=s.repeated)!==null&&r!==void 0?r:!1,s.kind=="scalar"&&(l.L=(n=s.L)!==null&&n!==void 0?n:Co.BIGINT),l.packed=(o=s.packed)!==null&&o!==void 0?o:s.kind=="enum"||s.kind=="scalar"&&s.T!=re.BYTES&&s.T!=re.STRING,s.oneof!==void 0){const c=typeof s.oneof=="string"?s.oneof:s.oneof.name;(!a||a.name!=c)&&(a=new e7(c)),l.oneof=a,a.addField(l)}i.push(l)}return i}var Lr;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(Lr||(Lr={}));var jf;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(jf||(jf={}));var Xe;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(Xe||(Xe={}));function Rf(e){const t=Xe[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,r=>"_"+r.toLowerCase())}let oc;function r7(e){if(!oc){oc={};for(const t of Object.values(Xe))typeof t!="string"&&(oc[Rf(t)]=t)}return oc[e]}class er extends Error{constructor(t,r=Xe.Unknown,n,o,i){super(n7(t,r)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=r,this.metadata=new Headers(n??{}),this.details=o??[],this.cause=i}static from(t,r=Xe.Unknown){return t instanceof er?t:t instanceof Error?t.name=="AbortError"?new er(t.message,Xe.Canceled):new er(t.message,r,void 0,void 0,t):new er(String(t),r,void 0,void 0,t)}findDetails(t){const r="typeName"in t?{findMessage:o=>o===t.typeName?t:void 0}:t,n=[];for(const o of this.details){if(o instanceof mt){r.findMessage(o.getType().typeName)&&n.push(o);continue}const i=r.findMessage(o.type);if(i)try{n.push(i.fromBinary(o.value))}catch{}}return n}}function n7(e,t){return e.length?`[${Rf(t)}] ${e}`:`[${Rf(t)}]`}function o7(...e){const t=new Headers;for(const r of e)r.forEach((n,o)=>{t.append(o,n)});return t}function i7(e,t){const r={};for(const[n,o]of Object.entries(e.methods)){const i=t(Object.assign(Object.assign({},o),{localName:n,service:e}));i!=null&&(r[n]=i)}return r}function a7(e){let t,r=new Uint8Array(0);function n(o){const i=new Uint8Array(r.length+o.length);i.set(r),i.set(o,r.length),r=i}return new ReadableStream({start(){t=e.getReader()},async pull(o){let i;for(;;){if(i===void 0&&r.byteLength>=5){let l=0;for(let c=1;c<5;c++)l=(l<<8)+r[c];i={flags:r[0],length:l}}if(i!==void 0&&r.byteLength>=i.length+5)break;const s=await t.read();if(s.done)break;n(s.value)}if(i===void 0){if(r.byteLength==0){o.close();return}o.error(new er("premature end of stream",Xe.DataLoss));return}const a=r.subarray(5,5+i.length);r=r.subarray(5+i.length),o.enqueue({flags:i.flags,data:a})}})}function s7(e,t){const r=new Uint8Array(t.length+5);r.set(t,5);const n=new DataView(r.buffer,r.byteOffset,r.byteLength);return n.setUint8(0,e),n.setUint32(1,t.length),r}var l7=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,l){a=e[i](a),o(s,l,a.done,a.value)})}}function o(i,a,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},a)}},xa=function(e){return this instanceof xa?(this.v=e,this):new xa(e)},c7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof xa?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}},u7=function(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:xa(e[o](a)),done:!1}:i?i(a):a}:i}};function d7(e){return c7(this,arguments,function*(){yield xa(yield*u7(l7(e)))})}var D1=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,l){a=e[i](a),o(s,l,a.done,a.value)})}}function o(i,a,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},a)}},fi=function(e){return this instanceof fi?(this.v=e,this):new fi(e)},f7=function(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(a){return(r=!r)?{value:fi(e[o](a)),done:!1}:i?i(a):a}:i}},m7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof fi?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}};function p7(e,t){return i7(e,r=>{switch(r.kind){case Lr.Unary:return g7(t,e,r);case Lr.ServerStreaming:return h7(t,e,r);case Lr.ClientStreaming:return v7(t,e,r);case Lr.BiDiStreaming:return b7(t,e,r);default:return null}})}function g7(e,t,r){return async function(n,o){var i,a;const s=await e.unary(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues);return(i=o?.onHeader)===null||i===void 0||i.call(o,s.header),(a=o?.onTrailer)===null||a===void 0||a.call(o,s.trailer),s.message}}function h7(e,t,r){return function(n,o){return _1(e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,d7([n]),o?.contextValues),o)}}function v7(e,t,r){return async function(n,o){var i,a,s,l,c,u;const d=await e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues);(c=o?.onHeader)===null||c===void 0||c.call(o,d.header);let f;try{for(var g=!0,h=D1(d.message),m;m=await h.next(),i=m.done,!i;g=!0)l=m.value,g=!1,f=l}catch(p){a={error:p}}finally{try{!g&&!i&&(s=h.return)&&await s.call(h)}finally{if(a)throw a.error}}if(!f)throw new er("protocol error: missing response message",Xe.Internal);return(u=o?.onTrailer)===null||u===void 0||u.call(o,d.trailer),f}}function b7(e,t,r){return function(n,o){return _1(e.stream(t,r,o?.signal,o?.timeoutMs,o?.headers,n,o?.contextValues),o)}}function _1(e,t){const r=function(){var n,o;return m7(this,arguments,function*(){const i=yield fi(e);(n=t?.onHeader)===null||n===void 0||n.call(t,i.header),yield fi(yield*f7(D1(i.message))),(o=t?.onTrailer)===null||o===void 0||o.call(t,i.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>r.next()})}}function y7(...e){const t=new AbortController,r=e.filter(o=>o!==void 0).concat(t.signal);for(const o of r){if(o.aborted){n.apply(o);break}o.addEventListener("abort",n)}function n(){t.signal.aborted||t.abort(V1(this));for(const o of r)o.removeEventListener("abort",n)}return t}function C7(e){const t=new AbortController,r=()=>{t.abort(new er("the operation timed out",Xe.DeadlineExceeded))};let n;return e!==void 0&&(e<=0?r():n=setTimeout(r,e)),{signal:t.signal,cleanup:()=>clearTimeout(n)}}function V1(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function B1(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function z1(e,t,r){const n=typeof t=="string"?t:t.typeName,o=typeof r=="string"?r:r.name;return e.toString().replace(/\/?$/,`/${n}/${o}`)}function G1(e,t){return t instanceof mt?t:new e(t)}function x7(e,t){function r(n){return n.done===!0?n:{done:n.done,value:G1(e,n.value)}}return{[Symbol.asyncIterator](){const n=t[Symbol.asyncIterator](),o={next:()=>n.next().then(r)};return n.throw!==void 0&&(o.throw=i=>n.throw(i).then(r)),n.return!==void 0&&(o.return=i=>n.return(i).then(r)),o}}}function H1(e){var t;const r=Object.assign({},e);return(t=r.ignoreUnknownFields)!==null&&t!==void 0||(r.ignoreUnknownFields=!0),r}function W1(e,t,r,n){const o=t?U1(e.I,n):X1(e.I,r);return{parse:(t?U1(e.O,n):X1(e.O,r)).parse,serialize:o.serialize}}function U1(e,t){return{parse(r){try{return e.fromBinary(r,t)}catch(n){const o=n instanceof Error?n.message:String(n);throw new er(`parse binary: ${o}`,Xe.InvalidArgument)}},serialize(r){try{return r.toBinary(t)}catch(n){const o=n instanceof Error?n.message:String(n);throw new er(`serialize binary: ${o}`,Xe.Internal)}}}}function X1(e,t){var r,n;const o=(r=t?.textEncoder)!==null&&r!==void 0?r:new TextEncoder,i=(n=t?.textDecoder)!==null&&n!==void 0?n:new TextDecoder,a=H1(t);return{parse(s){try{const l=i.decode(s);return e.fromJsonString(l,a)}catch(l){throw er.from(l,Xe.InvalidArgument)}},serialize(s){try{const l=s.toJsonString(a);return o.encode(l)}catch(l){throw er.from(l,Xe.Internal)}}}}const w7=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,S7="application/proto",E7="application/json",I7="application/connect+proto",A7="application/connect+json";function N7(e){const t=e?.match(w7);if(!t)return;const r=!!t[1],n=!!t[3];return{stream:r,binary:n}}function Y1(e,t,r){if(t&&new Headers(t).forEach((a,s)=>r.metadata.append(s,a)),typeof e!="object"||e==null||Array.isArray(e)||!("code"in e)||typeof e.code!="string")throw r;const n=r7(e.code);if(n===void 0)throw r;const o=e.message;if(o!=null&&typeof o!="string")throw r;const i=new er(o??"",n,t);if("details"in e&&Array.isArray(e.details))for(const a of e.details){if(a===null||typeof a!="object"||Array.isArray(a)||typeof a.type!="string"||typeof a.value!="string"||"debug"in a&&typeof a.debug!="object")throw r;try{i.details.push({type:a.type,value:rc.dec(a.value),debug:a.debug})}catch{throw r}}return i}const J1=2;function O7(e){const t=new er("invalid end stream",Xe.InvalidArgument);let r;try{r=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof r!="object"||r==null||Array.isArray(r))throw t;const n=new Headers;if("metadata"in r){if(typeof r.metadata!="object"||r.metadata==null||Array.isArray(r.metadata))throw t;for(const[i,a]of Object.entries(r.metadata)){if(!Array.isArray(a)||a.some(s=>typeof s!="string"))throw t;for(const s of a)n.append(i,s)}}const o="error"in r?Y1(r.error,n,t):void 0;return{metadata:n,error:o}}const Lf="Content-Type",T7="Content-Length",Z1="Content-Encoding",P7="Accept-Encoding",k7="Connect-Timeout-Ms",q1="Connect-Protocol-Version",F7="User-Agent";function $7(e){switch(e){case 400:return Xe.InvalidArgument;case 401:return Xe.Unauthenticated;case 403:return Xe.PermissionDenied;case 404:return Xe.Unimplemented;case 408:return Xe.DeadlineExceeded;case 409:return Xe.Aborted;case 412:return Xe.FailedPrecondition;case 413:return Xe.ResourceExhausted;case 415:return Xe.Internal;case 429:return Xe.Unavailable;case 431:return Xe.ResourceExhausted;case 502:return Xe.Unavailable;case 503:return Xe.Unavailable;case 504:return Xe.Unavailable;default:return Xe.Unknown}}function Q1(e){const t=new Headers,r=new Headers;return e.forEach((n,o)=>{o.toLowerCase().startsWith("trailer-")?r.set(o.substring(8),n):t.set(o,n)}),[t,r]}const K1="1";function ey(e,t,r,n){const o=new Headers(n??{});return r!==void 0&&o.set(k7,`${r}`),o.set(Lf,e==Lr.Unary?t?S7:E7:t?I7:A7),o.set(q1,K1),o.set(F7,"connect-es/1.1.3"),o}function ty(e,t,r){const n=r.get("Content-Type"),o=N7(n);if(t!==200){const i=new er(`HTTP ${t}`,$7(t),r);if(e==Lr.Unary&&o&&!o.binary)return{isUnaryError:!0,unaryError:i};throw i}return{isUnaryError:!1}}const ry="application/";function M7(e,t){return t?rc.enc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):encodeURIComponent(new TextDecoder().decode(e))}function j7(e,t,r){let n=`?connect=v${K1}`;const o=e.header.get(Lf);o?.indexOf(ry)===0&&(n+="&encoding="+encodeURIComponent(o.slice(ry.length)));const i=e.header.get(Z1);i!==null&&i!=="identity"&&(n+="&compression="+encodeURIComponent(i),r=!0),r&&(n+="&base64=1"),n+="&message="+M7(t,r);const a=e.url+n,s=new Headers(e.header);return[q1,Lf,T7,Z1,P7].forEach(l=>s.delete(l)),Object.assign(Object.assign({},e),{init:Object.assign(Object.assign({},e.init),{method:"GET"}),url:a,header:s})}function R7(e){const t=oy(e.next,e.interceptors),[r,n,o]=ny(e),i=Object.assign(Object.assign({},e.req),{message:G1(e.req.method.I,e.req.message),signal:r});return t(i).then(a=>(o(),a),n)}function L7(e){const t=oy(e.next,e.interceptors),[r,n,o]=ny(e),i=Object.assign(Object.assign({},e.req),{message:x7(e.req.method.I,e.req.message),signal:r});let a=!1;return r.addEventListener("abort",function(){var s,l;const c=e.req.message[Symbol.asyncIterator]();a||(s=c.throw)===null||s===void 0||s.call(c,this.reason).catch(()=>{}),(l=c.return)===null||l===void 0||l.call(c).catch(()=>{})}),t(i).then(s=>Object.assign(Object.assign({},s),{message:{[Symbol.asyncIterator](){const l=s.message[Symbol.asyncIterator]();return{next(){return l.next().then(c=>(c.done==!0&&(a=!0,o()),c),n)}}}}}),n)}function ny(e){const{signal:t,cleanup:r}=C7(e.timeoutMs),n=y7(e.signal,t);return[n.signal,function(i){const a=er.from(t.aborted?V1(t):i);return n.abort(a),r(),Promise.reject(a)},function(){r(),n.abort()}]}function oy(e,t){var r;return(r=t?.concat().reverse().reduce((n,o)=>o(n),e))!==null&&r!==void 0?r:e}function D7(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var wa=function(e){return this instanceof wa?(this.v=e,this):new wa(e)},_7=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){n[f]&&(o[f]=function(g){return new Promise(function(h,m){i.push([f,g,h,m])>1||s(f,g)})})}function s(f,g){try{l(n[f](g))}catch(h){d(i[0][3],h)}}function l(f){f.value instanceof wa?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,g){f(g),i.shift(),i.length&&s(i[0][0],i[0][1])}};function V7(e){var t;D7();const r=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!1;return{async unary(n,o,i,a,s,l,c){var u;const{serialize:d,parse:f}=W1(o,r,e.jsonOptions,e.binaryOptions);return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await R7({interceptors:e.interceptors,signal:i,timeoutMs:a,req:{stream:!1,service:n,method:o,url:z1(e.baseUrl,n,o),init:{method:"POST",credentials:(u=e.credentials)!==null&&u!==void 0?u:"same-origin",redirect:"error",mode:"cors"},header:ey(o.kind,r,a,s),contextValues:c??B1(),message:l},next:async g=>{var h;const m=e.useHttpGet===!0&&o.idempotency===jf.NoSideEffects;let p=null;m?g=j7(g,d(g.message),r):p=d(g.message);const y=await((h=e.fetch)!==null&&h!==void 0?h:globalThis.fetch)(g.url,Object.assign(Object.assign({},g.init),{headers:g.header,signal:g.signal,body:p})),{isUnaryError:w,unaryError:S}=ty(o.kind,y.status,y.headers);if(w)throw Y1(await y.json(),o7(...Q1(y.headers)),S);const[v,I]=Q1(y.headers);return{stream:!1,service:n,method:o,header:v,message:r?f(new Uint8Array(await y.arrayBuffer())):o.O.fromJson(await y.json(),H1(e.jsonOptions)),trailer:I}}})},async stream(n,o,i,a,s,l,c){var u;const{serialize:d,parse:f}=W1(o,r,e.jsonOptions,e.binaryOptions);function g(m,p){return _7(this,arguments,function*(){const y=a7(m).getReader();let w=!1;for(;;){const S=yield wa(y.read());if(S.done)break;const{flags:v,data:I}=S.value;if((v&J1)===J1){w=!0;const O=O7(I);if(O.error)throw O.error;O.metadata.forEach((N,T)=>p.set(T,N));continue}yield yield wa(f(I))}if(!w)throw"missing EndStreamResponse"})}async function h(m){if(o.kind!=Lr.ServerStreaming)throw"The fetch API does not support streaming request bodies";const p=await m[Symbol.asyncIterator]().next();if(p.done==!0)throw"missing request message";return s7(0,d(p.value))}return a=a===void 0?e.defaultTimeoutMs:a<=0?void 0:a,await L7({interceptors:e.interceptors,timeoutMs:a,signal:i,req:{stream:!0,service:n,method:o,url:z1(e.baseUrl,n,o),init:{method:"POST",credentials:(u=e.credentials)!==null&&u!==void 0?u:"same-origin",redirect:"error",mode:"cors"},header:ey(o.kind,r,a,s),contextValues:c??B1(),message:l},next:async m=>{var p;const y=await((p=e.fetch)!==null&&p!==void 0?p:globalThis.fetch)(m.url,Object.assign(Object.assign({},m.init),{headers:m.header,signal:m.signal,body:await h(m.message)}));if(ty(o.kind,y.status,y.headers),y.body===null)throw"missing response body";const w=new Headers;return Object.assign(Object.assign({},m),{header:y.headers,trailer:w,message:g(y.body,w)})}})}}}var xo;(function(e){e.INACTIVE="inactive",e.PROCESSING="processing",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"})(xo||(xo={}));function B7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iy(Object(r),!0).forEach(function(n){B7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z7(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function G7(e,t){if(e==null)return{};var r=z7(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H7(e,t){return W7(e)||U7(e,t)||X7(e,t)||Y7()}function W7(e){if(Array.isArray(e))return e}function U7(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,i=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(o)throw i}}return r}}function X7(e,t){if(e){if(typeof e=="string")return sy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sy(e,t)}}function sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
322
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ly(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ly(Object(r),!0).forEach(function(n){J7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ly(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function Sa(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(o,s))}}}function ic(e){return{}.toString.call(e).includes("Object")}function q7(e){return!Object.keys(e).length}function Ea(e){return typeof e=="function"}function Q7(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function K7(e,t){return ic(t)||eo("changeType"),Object.keys(t).some(function(r){return!Q7(e,r)})&&eo("changeField"),t}function ek(e){Ea(e)||eo("selectorType")}function tk(e){Ea(e)||ic(e)||eo("handlerType"),ic(e)&&Object.values(e).some(function(t){return!Ea(t)})&&eo("handlersType")}function rk(e){e||eo("initialIsRequired"),ic(e)||eo("initialType"),q7(e)&&eo("initialContent")}function nk(e,t){throw new Error(e[t]||e.default)}var ok={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},eo=Sa(nk)(ok),ac={changes:K7,selector:ek,handler:tk,initial:rk};function ik(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ac.initial(e),ac.handler(t);var r={current:e},n=Sa(lk)(r,t),o=Sa(sk)(r),i=Sa(ac.changes)(e),a=Sa(ak)(r);function s(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return ac.selector(c),c(r.current)}function l(c){Z7(n,o,i,a)(c)}return[s,l]}function ak(e,t){return Ea(t)?t(e.current):t}function sk(e,t){return e.current=cy(cy({},e.current),t),t}function lk(e,t,r){return Ea(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var ck={create:ik},uk={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function dk(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(o,s))}}}function fk(e){return{}.toString.call(e).includes("Object")}function mk(e){return e||dy("configIsRequired"),fk(e)||dy("configType"),e.urls?(pk(),{paths:{vs:e.urls.monacoBase}}):e}function pk(){console.warn(uy.deprecation)}function gk(e,t){throw new Error(e[t]||e.default)}var uy={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
207
323
|
You are using deprecated way of configuration.
|
|
208
324
|
|
|
209
325
|
Instead of using
|
|
@@ -212,7 +328,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
212
328
|
monaco.config({ paths: { vs: '...' } })
|
|
213
329
|
|
|
214
330
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
215
|
-
`},
|
|
331
|
+
`},dy=dk(gk)(uy),hk={config:mk},vk=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,a){return a(i)},o)}};function fy(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],fy(e[r],t[r]))}),ay(ay({},e),t)}var bk={type:"cancelation",msg:"operation is manually canceled"};function Df(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(bk):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var yk=ck.create({config:uk,isInitialized:!1,resolve:null,reject:null,monaco:null}),my=H7(yk,2),Ia=my[0],sc=my[1];function Ck(e){var t=hk.config(e),r=t.monaco,n=G7(t,["monaco"]);sc(function(o){return{config:fy(o.config,n),monaco:r}})}function xk(){var e=Ia(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(sc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Df(_f);if(window.monaco&&window.monaco.editor)return py(window.monaco),e.resolve(window.monaco),Df(_f);vk(wk,Ek)(Ik)}return Df(_f)}function wk(e){return document.body.appendChild(e)}function Sk(e){var t=document.createElement("script");return e&&(t.src=e),t}function Ek(e){var t=Ia(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=Sk("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Ik(){var e=Ia(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){py(r),e.resolve(r)},function(r){e.reject(r)})}function py(e){Ia().monaco||sc({monaco:e})}function Ak(){return Ia(function(e){var t=e.monaco;return t})}var _f=new Promise(function(e,t){return sc({resolve:e,reject:t})}),gy={config:Ck,init:xk,__getMonacoInstance:Ak},Nk={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Vf=Nk,Ok={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Tk=Ok;function Pk({children:e}){return E.createElement("div",{style:Tk.container},e)}var kk=Pk,Fk=kk;function $k({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return E.createElement("section",{style:{...Vf.wrapper,width:e,height:t},...a},!r&&E.createElement(Fk,null,n),E.createElement("div",{ref:o,style:{...Vf.fullWidth,...!r&&Vf.hide},className:i}))}var Mk=$k,hy=E.memo(Mk);function jk(e){E.useEffect(e,[])}var vy=jk;function Rk(e,t,r=!0){let n=E.useRef(!0);E.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var Ar=Rk;function Aa(){}function mi(e,t,r,n){return Lk(e,n)||Dk(e,t,r,n)}function Lk(e,t){return e.editor.getModel(by(e,t))}function Dk(e,t,r,n){return e.editor.createModel(t,r,n?by(e,n):void 0)}function by(e,t){return e.Uri.parse(t)}function _k({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:f="100%",width:g="100%",className:h,wrapperProps:m={},beforeMount:p=Aa,onMount:b=Aa}){let[y,w]=E.useState(!1),[S,v]=E.useState(!0),I=E.useRef(null),O=E.useRef(null),N=E.useRef(null),T=E.useRef(b),P=E.useRef(p),M=E.useRef(!1);vy(()=>{let k=gy.init();return k.then(j=>(O.current=j)&&v(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>I.current?F():k.cancel()}),Ar(()=>{if(I.current&&O.current){let k=I.current.getOriginalEditor(),j=mi(O.current,e||"",n||r||"text",i||"");j!==k.getModel()&&k.setModel(j)}},[i],y),Ar(()=>{if(I.current&&O.current){let k=I.current.getModifiedEditor(),j=mi(O.current,t||"",o||r||"text",a||"");j!==k.getModel()&&k.setModel(j)}},[a],y),Ar(()=>{let k=I.current.getModifiedEditor();k.getOption(O.current.editor.EditorOption.readOnly)?k.setValue(t||""):t!==k.getValue()&&(k.executeEdits("",[{range:k.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),k.pushUndoStop())},[t],y),Ar(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],y),Ar(()=>{let{original:k,modified:j}=I.current.getModel();O.current.editor.setModelLanguage(k,n||r||"text"),O.current.editor.setModelLanguage(j,o||r||"text")},[r,n,o],y),Ar(()=>{O.current?.editor.setTheme(c)},[c],y),Ar(()=>{I.current?.updateOptions(d)},[d],y);let x=E.useCallback(()=>{if(!O.current)return;P.current(O.current);let k=mi(O.current,e||"",n||r||"text",i||""),j=mi(O.current,t||"",o||r||"text",a||"");I.current?.setModel({original:k,modified:j})},[r,t,o,e,n,i,a]),$=E.useCallback(()=>{!M.current&&N.current&&(I.current=O.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...d}),x(),O.current?.editor.setTheme(c),w(!0),M.current=!0)},[d,c,x]);E.useEffect(()=>{y&&T.current(I.current,O.current)},[y]),E.useEffect(()=>{!S&&!y&&$()},[S,y,$]);function F(){let k=I.current?.getModel();s||k?.original?.dispose(),l||k?.modified?.dispose(),I.current?.dispose()}return E.createElement(hy,{width:g,height:f,isEditorReady:y,loading:u,_ref:N,className:h,wrapperProps:m})}var Vk=_k;E.memo(Vk);function Bk(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var zk=Bk,lc=new Map;function Gk({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:g="100%",height:h="100%",className:m,wrapperProps:p={},beforeMount:b=Aa,onMount:y=Aa,onChange:w,onValidate:S=Aa}){let[v,I]=E.useState(!1),[O,N]=E.useState(!0),T=E.useRef(null),P=E.useRef(null),M=E.useRef(null),x=E.useRef(y),$=E.useRef(b),F=E.useRef(),k=E.useRef(n),j=zk(i),z=E.useRef(!1),H=E.useRef(!1);vy(()=>{let D=gy.init();return D.then(B=>(T.current=B)&&N(!1)).catch(B=>B?.type!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>P.current?_():D.cancel()}),Ar(()=>{let D=mi(T.current,e||n||"",t||o||"",i||r||"");D!==P.current?.getModel()&&(d&&lc.set(j,P.current?.saveViewState()),P.current?.setModel(D),d&&P.current?.restoreViewState(lc.get(i)))},[i],v),Ar(()=>{P.current?.updateOptions(c)},[c],v),Ar(()=>{!P.current||n===void 0||(P.current.getOption(T.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&(H.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),H.current=!1))},[n],v),Ar(()=>{let D=P.current?.getModel();D&&o&&T.current?.editor.setModelLanguage(D,o)},[o],v),Ar(()=>{s!==void 0&&P.current?.revealLine(s)},[s],v),Ar(()=>{T.current?.editor.setTheme(a)},[a],v);let V=E.useCallback(()=>{if(!(!M.current||!T.current)&&!z.current){$.current(T.current);let D=i||r,B=mi(T.current,n||e||"",t||o||"",D||"");P.current=T.current?.editor.create(M.current,{model:B,automaticLayout:!0,...c},u),d&&P.current.restoreViewState(lc.get(D)),T.current.editor.setTheme(a),s!==void 0&&P.current.revealLine(s),I(!0),z.current=!0}},[e,t,r,n,o,i,c,u,d,a,s]);E.useEffect(()=>{v&&x.current(P.current,T.current)},[v]),E.useEffect(()=>{!O&&!v&&V()},[O,v,V]),k.current=n,E.useEffect(()=>{v&&w&&(F.current?.dispose(),F.current=P.current?.onDidChangeModelContent(D=>{H.current||w(P.current.getValue(),D)}))},[v,w]),E.useEffect(()=>{if(v){let D=T.current.editor.onDidChangeMarkers(B=>{let R=P.current.getModel()?.uri;if(R&&B.find(W=>W.path===R.path)){let W=T.current.editor.getModelMarkers({resource:R});S?.(W)}});return()=>{D?.dispose()}}return()=>{}},[v,S]);function _(){F.current?.dispose(),f?d&&lc.set(i,P.current.saveViewState()):P.current.getModel()?.dispose(),P.current.dispose()}return E.createElement(hy,{width:g,height:h,isEditorReady:v,loading:l,_ref:M,className:m,wrapperProps:p})}var Hk=Gk,Wk=E.memo(Hk),Uk=Wk;const Xk=e=>{switch(e){case"typescript":case"tsx":case"javascript":case"java":return`// Welcome to Codeium Editor!
|
|
216
332
|
// Press Enter and use Tab to accept AI suggestions. Here's an example:
|
|
217
333
|
|
|
218
334
|
// fib(n) function to calculate the n-th fibonacci number`;case"python":return`# Welcome to Codeium Editor!
|
|
@@ -221,9 +337,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
221
337
|
# fib(n) function to calculate the n-th fibonacci number`;case"css":return`/* Welcome to Codeium Editor!
|
|
222
338
|
Press Enter and use Tab to accept AI suggestions. Here's an example:*/
|
|
223
339
|
|
|
224
|
-
/* .action-button class with a hover effect. */`;default:return""}};var bs;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.JUPYTER_FORMAT=77]="JUPYTER_FORMAT"})(bs||(bs={})),te.util.setEnumType(bs,"exa.codeium_common_pb.ExperimentKey",[{no:0,name:"UNSPECIFIED"},{no:77,name:"JUPYTER_FORMAT"}]);var ao;(function(e){e[e.CODEIUM=0]="CODEIUM"})(ao||(ao={})),te.util.setEnumType(ao,"exa.codeium_common_pb.AuthSource",[{no:0,name:"AUTH_SOURCE_CODEIUM"}]);var so;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ENABLE_CODEIUM=1]="ENABLE_CODEIUM",e[e.DISABLE_CODEIUM=2]="DISABLE_CODEIUM",e[e.SHOW_PREVIOUS_COMPLETION=3]="SHOW_PREVIOUS_COMPLETION",e[e.SHOW_NEXT_COMPLETION=4]="SHOW_NEXT_COMPLETION"})(so||(so={})),te.util.setEnumType(so,"exa.codeium_common_pb.EventType",[{no:0,name:"EVENT_TYPE_UNSPECIFIED"},{no:1,name:"EVENT_TYPE_ENABLE_CODEIUM"},{no:2,name:"EVENT_TYPE_DISABLE_CODEIUM"},{no:3,name:"EVENT_TYPE_SHOW_PREVIOUS_COMPLETION"},{no:4,name:"EVENT_TYPE_SHOW_NEXT_COMPLETION"}]);var uo;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TYPING_AS_SUGGESTED=1]="TYPING_AS_SUGGESTED",e[e.CACHE=2]="CACHE",e[e.NETWORK=3]="NETWORK"})(uo||(uo={})),te.util.setEnumType(uo,"exa.codeium_common_pb.CompletionSource",[{no:0,name:"COMPLETION_SOURCE_UNSPECIFIED"},{no:1,name:"COMPLETION_SOURCE_TYPING_AS_SUGGESTED"},{no:2,name:"COMPLETION_SOURCE_CACHE"},{no:3,name:"COMPLETION_SOURCE_NETWORK"}]);var oe;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.C=1]="C",e[e.CLOJURE=2]="CLOJURE",e[e.COFFEESCRIPT=3]="COFFEESCRIPT",e[e.CPP=4]="CPP",e[e.CSHARP=5]="CSHARP",e[e.CSS=6]="CSS",e[e.CUDACPP=7]="CUDACPP",e[e.DOCKERFILE=8]="DOCKERFILE",e[e.GO=9]="GO",e[e.GROOVY=10]="GROOVY",e[e.HANDLEBARS=11]="HANDLEBARS",e[e.HASKELL=12]="HASKELL",e[e.HCL=13]="HCL",e[e.HTML=14]="HTML",e[e.INI=15]="INI",e[e.JAVA=16]="JAVA",e[e.JAVASCRIPT=17]="JAVASCRIPT",e[e.JSON=18]="JSON",e[e.JULIA=19]="JULIA",e[e.KOTLIN=20]="KOTLIN",e[e.LATEX=21]="LATEX",e[e.LESS=22]="LESS",e[e.LUA=23]="LUA",e[e.MAKEFILE=24]="MAKEFILE",e[e.MARKDOWN=25]="MARKDOWN",e[e.OBJECTIVEC=26]="OBJECTIVEC",e[e.OBJECTIVECPP=27]="OBJECTIVECPP",e[e.PERL=28]="PERL",e[e.PHP=29]="PHP",e[e.PLAINTEXT=30]="PLAINTEXT",e[e.PROTOBUF=31]="PROTOBUF",e[e.PBTXT=32]="PBTXT",e[e.PYTHON=33]="PYTHON",e[e.R=34]="R",e[e.RUBY=35]="RUBY",e[e.RUST=36]="RUST",e[e.SASS=37]="SASS",e[e.SCALA=38]="SCALA",e[e.SCSS=39]="SCSS",e[e.SHELL=40]="SHELL",e[e.SQL=41]="SQL",e[e.STARLARK=42]="STARLARK",e[e.SWIFT=43]="SWIFT",e[e.TSX=44]="TSX",e[e.TYPESCRIPT=45]="TYPESCRIPT",e[e.VISUALBASIC=46]="VISUALBASIC",e[e.VUE=47]="VUE",e[e.XML=48]="XML",e[e.XSL=49]="XSL",e[e.YAML=50]="YAML",e[e.SVELTE=51]="SVELTE",e[e.TOML=52]="TOML",e[e.DART=53]="DART",e[e.RST=54]="RST",e[e.OCAML=55]="OCAML",e[e.CMAKE=56]="CMAKE",e[e.PASCAL=57]="PASCAL",e[e.ELIXIR=58]="ELIXIR",e[e.FSHARP=59]="FSHARP",e[e.LISP=60]="LISP",e[e.MATLAB=61]="MATLAB",e[e.POWERSHELL=62]="POWERSHELL",e[e.SOLIDITY=63]="SOLIDITY",e[e.ADA=64]="ADA",e[e.OCAML_INTERFACE=65]="OCAML_INTERFACE"})(oe||(oe={})),te.util.setEnumType(oe,"exa.codeium_common_pb.Language",[{no:0,name:"LANGUAGE_UNSPECIFIED"},{no:1,name:"LANGUAGE_C"},{no:2,name:"LANGUAGE_CLOJURE"},{no:3,name:"LANGUAGE_COFFEESCRIPT"},{no:4,name:"LANGUAGE_CPP"},{no:5,name:"LANGUAGE_CSHARP"},{no:6,name:"LANGUAGE_CSS"},{no:7,name:"LANGUAGE_CUDACPP"},{no:8,name:"LANGUAGE_DOCKERFILE"},{no:9,name:"LANGUAGE_GO"},{no:10,name:"LANGUAGE_GROOVY"},{no:11,name:"LANGUAGE_HANDLEBARS"},{no:12,name:"LANGUAGE_HASKELL"},{no:13,name:"LANGUAGE_HCL"},{no:14,name:"LANGUAGE_HTML"},{no:15,name:"LANGUAGE_INI"},{no:16,name:"LANGUAGE_JAVA"},{no:17,name:"LANGUAGE_JAVASCRIPT"},{no:18,name:"LANGUAGE_JSON"},{no:19,name:"LANGUAGE_JULIA"},{no:20,name:"LANGUAGE_KOTLIN"},{no:21,name:"LANGUAGE_LATEX"},{no:22,name:"LANGUAGE_LESS"},{no:23,name:"LANGUAGE_LUA"},{no:24,name:"LANGUAGE_MAKEFILE"},{no:25,name:"LANGUAGE_MARKDOWN"},{no:26,name:"LANGUAGE_OBJECTIVEC"},{no:27,name:"LANGUAGE_OBJECTIVECPP"},{no:28,name:"LANGUAGE_PERL"},{no:29,name:"LANGUAGE_PHP"},{no:30,name:"LANGUAGE_PLAINTEXT"},{no:31,name:"LANGUAGE_PROTOBUF"},{no:32,name:"LANGUAGE_PBTXT"},{no:33,name:"LANGUAGE_PYTHON"},{no:34,name:"LANGUAGE_R"},{no:35,name:"LANGUAGE_RUBY"},{no:36,name:"LANGUAGE_RUST"},{no:37,name:"LANGUAGE_SASS"},{no:38,name:"LANGUAGE_SCALA"},{no:39,name:"LANGUAGE_SCSS"},{no:40,name:"LANGUAGE_SHELL"},{no:41,name:"LANGUAGE_SQL"},{no:42,name:"LANGUAGE_STARLARK"},{no:43,name:"LANGUAGE_SWIFT"},{no:44,name:"LANGUAGE_TSX"},{no:45,name:"LANGUAGE_TYPESCRIPT"},{no:46,name:"LANGUAGE_VISUALBASIC"},{no:47,name:"LANGUAGE_VUE"},{no:48,name:"LANGUAGE_XML"},{no:49,name:"LANGUAGE_XSL"},{no:50,name:"LANGUAGE_YAML"},{no:51,name:"LANGUAGE_SVELTE"},{no:52,name:"LANGUAGE_TOML"},{no:53,name:"LANGUAGE_DART"},{no:54,name:"LANGUAGE_RST"},{no:55,name:"LANGUAGE_OCAML"},{no:56,name:"LANGUAGE_CMAKE"},{no:57,name:"LANGUAGE_PASCAL"},{no:58,name:"LANGUAGE_ELIXIR"},{no:59,name:"LANGUAGE_FSHARP"},{no:60,name:"LANGUAGE_LISP"},{no:61,name:"LANGUAGE_MATLAB"},{no:62,name:"LANGUAGE_POWERSHELL"},{no:63,name:"LANGUAGE_SOLIDITY"},{no:64,name:"LANGUAGE_ADA"},{no:65,name:"LANGUAGE_OCAML_INTERFACE"}]);class Ar extends _e{constructor(t){super(),this.completionId="",this.text="",this.prefix="",this.stop="",this.score=0,this.tokens=[],this.decodedTokens=[],this.probabilities=[],this.adjustedProbabilities=[],this.generatedLength=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new Ar().fromBinary(t,r)}static fromJson(t,r){return new Ar().fromJson(t,r)}static fromJsonString(t,r){return new Ar().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Ar,t,r)}}Ar.runtime=te,Ar.typeName="exa.codeium_common_pb.Completion",Ar.fields=te.util.newFieldList(()=>[{no:1,name:"completion_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"stop",kind:"scalar",T:9},{no:5,name:"score",kind:"scalar",T:1},{no:6,name:"tokens",kind:"scalar",T:4,repeated:!0},{no:7,name:"decoded_tokens",kind:"scalar",T:9,repeated:!0},{no:8,name:"probabilities",kind:"scalar",T:1,repeated:!0},{no:9,name:"adjusted_probabilities",kind:"scalar",T:1,repeated:!0},{no:10,name:"generated_length",kind:"scalar",T:4}]);class ir extends _e{constructor(t){super(),this.ideName="",this.ideVersion="",this.extensionName="",this.extensionVersion="",this.apiKey="",this.locale="",this.sessionId="",this.requestId=De.zero,this.userAgent="",this.url="",this.authSource=ao.CODEIUM,te.util.initPartial(t,this)}static fromBinary(t,r){return new ir().fromBinary(t,r)}static fromJson(t,r){return new ir().fromJson(t,r)}static fromJsonString(t,r){return new ir().fromJsonString(t,r)}static equals(t,r){return te.util.equals(ir,t,r)}}ir.runtime=te,ir.typeName="exa.codeium_common_pb.Metadata",ir.fields=te.util.newFieldList(()=>[{no:1,name:"ide_name",kind:"scalar",T:9},{no:7,name:"ide_version",kind:"scalar",T:9},{no:12,name:"extension_name",kind:"scalar",T:9},{no:2,name:"extension_version",kind:"scalar",T:9},{no:3,name:"api_key",kind:"scalar",T:9},{no:4,name:"locale",kind:"scalar",T:9},{no:10,name:"session_id",kind:"scalar",T:9},{no:9,name:"request_id",kind:"scalar",T:4},{no:13,name:"user_agent",kind:"scalar",T:9},{no:14,name:"url",kind:"scalar",T:9},{no:15,name:"auth_source",kind:"enum",T:te.getEnumType(ao)}]);class Tr extends _e{constructor(t){super(),this.tabSize=De.zero,this.insertSpaces=!1,te.util.initPartial(t,this)}static fromBinary(t,r){return new Tr().fromBinary(t,r)}static fromJson(t,r){return new Tr().fromJson(t,r)}static fromJsonString(t,r){return new Tr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Tr,t,r)}}Tr.runtime=te,Tr.typeName="exa.codeium_common_pb.EditorOptions",Tr.fields=te.util.newFieldList(()=>[{no:1,name:"tab_size",kind:"scalar",T:4},{no:2,name:"insert_spaces",kind:"scalar",T:8}]);class qr extends _e{constructor(t){super(),this.eventType=so.UNSPECIFIED,this.eventJson="",this.timestampUnixMs=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new qr().fromBinary(t,r)}static fromJson(t,r){return new qr().fromJson(t,r)}static fromJsonString(t,r){return new qr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(qr,t,r)}}qr.runtime=te,qr.typeName="exa.codeium_common_pb.Event",qr.fields=te.util.newFieldList(()=>[{no:1,name:"event_type",kind:"enum",T:te.getEnumType(so)},{no:2,name:"event_json",kind:"scalar",T:9},{no:3,name:"timestamp_unix_ms",kind:"scalar",T:3}]);var lo;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INACTIVE=1]="INACTIVE",e[e.PROCESSING=2]="PROCESSING",e[e.SUCCESS=3]="SUCCESS",e[e.WARNING=4]="WARNING",e[e.ERROR=5]="ERROR"})(lo||(lo={})),te.util.setEnumType(lo,"exa.language_server_pb.CodeiumState",[{no:0,name:"CODEIUM_STATE_UNSPECIFIED"},{no:1,name:"CODEIUM_STATE_INACTIVE"},{no:2,name:"CODEIUM_STATE_PROCESSING"},{no:3,name:"CODEIUM_STATE_SUCCESS"},{no:4,name:"CODEIUM_STATE_WARNING"},{no:5,name:"CODEIUM_STATE_ERROR"}]);var vc;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SINGLE=1]="SINGLE",e[e.MULTI=2]="MULTI"})(vc||(vc={})),te.util.setEnumType(vc,"exa.language_server_pb.LineType",[{no:0,name:"LINE_TYPE_UNSPECIFIED"},{no:1,name:"LINE_TYPE_SINGLE"},{no:2,name:"LINE_TYPE_MULTI"}]);var co;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INLINE=1]="INLINE",e[e.BLOCK=2]="BLOCK",e[e.INLINE_MASK=3]="INLINE_MASK"})(co||(co={})),te.util.setEnumType(co,"exa.language_server_pb.CompletionPartType",[{no:0,name:"COMPLETION_PART_TYPE_UNSPECIFIED"},{no:1,name:"COMPLETION_PART_TYPE_INLINE"},{no:2,name:"COMPLETION_PART_TYPE_BLOCK"},{no:3,name:"COMPLETION_PART_TYPE_INLINE_MASK"}]);class gr extends _e{constructor(t){super(),this.threshold=0,te.util.initPartial(t,this)}static fromBinary(t,r){return new gr().fromBinary(t,r)}static fromJson(t,r){return new gr().fromJson(t,r)}static fromJsonString(t,r){return new gr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(gr,t,r)}}gr.runtime=te,gr.typeName="exa.language_server_pb.MultilineConfig",gr.fields=te.util.newFieldList(()=>[{no:1,name:"threshold",kind:"scalar",T:2}]);class Or extends _e{constructor(t){super(),this.otherDocuments=[],this.modelName="",te.util.initPartial(t,this)}static fromBinary(t,r){return new Or().fromBinary(t,r)}static fromJson(t,r){return new Or().fromJson(t,r)}static fromJsonString(t,r){return new Or().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Or,t,r)}}Or.runtime=te,Or.typeName="exa.language_server_pb.GetCompletionsRequest",Or.fields=te.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:ir},{no:2,name:"document",kind:"message",T:ri},{no:3,name:"editor_options",kind:"message",T:Tr},{no:5,name:"other_documents",kind:"message",T:ri,repeated:!0},{no:7,name:"experiment_config",kind:"message",T:Mr},{no:10,name:"model_name",kind:"scalar",T:9},{no:13,name:"multiline_config",kind:"message",T:gr}]);class kr extends _e{constructor(t){super(),this.completionItems=[],te.util.initPartial(t,this)}static fromBinary(t,r){return new kr().fromBinary(t,r)}static fromJson(t,r){return new kr().fromJson(t,r)}static fromJsonString(t,r){return new kr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(kr,t,r)}}kr.runtime=te,kr.typeName="exa.language_server_pb.GetCompletionsResponse",kr.fields=te.util.newFieldList(()=>[{no:1,name:"state",kind:"message",T:Vr},{no:2,name:"completion_items",kind:"message",T:Br,repeated:!0}]);class Pr extends _e{constructor(t){super(),this.completionId="",te.util.initPartial(t,this)}static fromBinary(t,r){return new Pr().fromBinary(t,r)}static fromJson(t,r){return new Pr().fromJson(t,r)}static fromJsonString(t,r){return new Pr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Pr,t,r)}}Pr.runtime=te,Pr.typeName="exa.language_server_pb.AcceptCompletionRequest",Pr.fields=te.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:ir},{no:2,name:"completion_id",kind:"scalar",T:9}]);class Nr extends _e{constructor(t){super(),te.util.initPartial(t,this)}static fromBinary(t,r){return new Nr().fromBinary(t,r)}static fromJson(t,r){return new Nr().fromJson(t,r)}static fromJsonString(t,r){return new Nr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Nr,t,r)}}Nr.runtime=te,Nr.typeName="exa.language_server_pb.AcceptCompletionResponse",Nr.fields=te.util.newFieldList(()=>[]);class Fr extends _e{constructor(t){super(),te.util.initPartial(t,this)}static fromBinary(t,r){return new Fr().fromBinary(t,r)}static fromJson(t,r){return new Fr().fromJson(t,r)}static fromJsonString(t,r){return new Fr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Fr,t,r)}}Fr.runtime=te,Fr.typeName="exa.language_server_pb.GetAuthTokenRequest",Fr.fields=te.util.newFieldList(()=>[]);class Rr extends _e{constructor(t){super(),this.authToken="",this.uuid="",te.util.initPartial(t,this)}static fromBinary(t,r){return new Rr().fromBinary(t,r)}static fromJson(t,r){return new Rr().fromJson(t,r)}static fromJsonString(t,r){return new Rr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Rr,t,r)}}Rr.runtime=te,Rr.typeName="exa.language_server_pb.GetAuthTokenResponse",Rr.fields=te.util.newFieldList(()=>[{no:1,name:"auth_token",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}]);class or extends _e{constructor(t){super(),this.row=De.zero,this.col=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new or().fromBinary(t,r)}static fromJson(t,r){return new or().fromJson(t,r)}static fromJsonString(t,r){return new or().fromJsonString(t,r)}static equals(t,r){return te.util.equals(or,t,r)}}or.runtime=te,or.typeName="exa.language_server_pb.DocumentPosition",or.fields=te.util.newFieldList(()=>[{no:1,name:"row",kind:"scalar",T:4},{no:2,name:"col",kind:"scalar",T:4}]);let ri=class ko extends _e{constructor(t){super(),this.absolutePath="",this.relativePath="",this.text="",this.editorLanguage="",this.language=oe.UNSPECIFIED,this.cursorOffset=De.zero,this.lineEnding="",te.util.initPartial(t,this)}static fromBinary(t,r){return new ko().fromBinary(t,r)}static fromJson(t,r){return new ko().fromJson(t,r)}static fromJsonString(t,r){return new ko().fromJsonString(t,r)}static equals(t,r){return te.util.equals(ko,t,r)}};ri.runtime=te,ri.typeName="exa.language_server_pb.Document",ri.fields=te.util.newFieldList(()=>[{no:1,name:"absolute_path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9},{no:3,name:"text",kind:"scalar",T:9},{no:4,name:"editor_language",kind:"scalar",T:9},{no:5,name:"language",kind:"enum",T:te.getEnumType(oe)},{no:6,name:"cursor_offset",kind:"scalar",T:4},{no:8,name:"cursor_position",kind:"message",T:or},{no:7,name:"line_ending",kind:"scalar",T:9}]);class Mr extends _e{constructor(t){super(),this.forceEnableExperiments=[],te.util.initPartial(t,this)}static fromBinary(t,r){return new Mr().fromBinary(t,r)}static fromJson(t,r){return new Mr().fromJson(t,r)}static fromJsonString(t,r){return new Mr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Mr,t,r)}}Mr.runtime=te,Mr.typeName="exa.language_server_pb.ExperimentConfig",Mr.fields=te.util.newFieldList(()=>[{no:1,name:"force_enable_experiments",kind:"enum",T:te.getEnumType(bs),repeated:!0}]);class Vr extends _e{constructor(t){super(),this.state=lo.UNSPECIFIED,this.message="",te.util.initPartial(t,this)}static fromBinary(t,r){return new Vr().fromBinary(t,r)}static fromJson(t,r){return new Vr().fromJson(t,r)}static fromJsonString(t,r){return new Vr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Vr,t,r)}}Vr.runtime=te,Vr.typeName="exa.language_server_pb.State",Vr.fields=te.util.newFieldList(()=>[{no:1,name:"state",kind:"enum",T:te.getEnumType(lo)},{no:2,name:"message",kind:"scalar",T:9}]);let ys=class Po extends _e{constructor(t){super(),this.startOffset=De.zero,this.endOffset=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new Po().fromBinary(t,r)}static fromJson(t,r){return new Po().fromJson(t,r)}static fromJsonString(t,r){return new Po().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Po,t,r)}};ys.runtime=te,ys.typeName="exa.language_server_pb.Range",ys.fields=te.util.newFieldList(()=>[{no:1,name:"start_offset",kind:"scalar",T:4},{no:2,name:"end_offset",kind:"scalar",T:4},{no:3,name:"start_position",kind:"message",T:or},{no:4,name:"end_position",kind:"message",T:or}]);class jr extends _e{constructor(t){super(),this.text="",this.deltaCursorOffset=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new jr().fromBinary(t,r)}static fromJson(t,r){return new jr().fromJson(t,r)}static fromJsonString(t,r){return new jr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(jr,t,r)}}jr.runtime=te,jr.typeName="exa.language_server_pb.Suffix",jr.fields=te.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"delta_cursor_offset",kind:"scalar",T:3}]);class Lr extends _e{constructor(t){super(),this.text="",this.offset=De.zero,this.type=co.UNSPECIFIED,this.prefix="",this.line=De.zero,te.util.initPartial(t,this)}static fromBinary(t,r){return new Lr().fromBinary(t,r)}static fromJson(t,r){return new Lr().fromJson(t,r)}static fromJsonString(t,r){return new Lr().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Lr,t,r)}}Lr.runtime=te,Lr.typeName="exa.language_server_pb.CompletionPart",Lr.fields=te.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:4},{no:3,name:"type",kind:"enum",T:te.getEnumType(co)},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"line",kind:"scalar",T:4}]);class Br extends _e{constructor(t){super(),this.source=uo.UNSPECIFIED,this.completionParts=[],te.util.initPartial(t,this)}static fromBinary(t,r){return new Br().fromBinary(t,r)}static fromJson(t,r){return new Br().fromJson(t,r)}static fromJsonString(t,r){return new Br().fromJsonString(t,r)}static equals(t,r){return te.util.equals(Br,t,r)}}Br.runtime=te,Br.typeName="exa.language_server_pb.CompletionItem",Br.fields=te.util.newFieldList(()=>[{no:1,name:"completion",kind:"message",T:Ar},{no:5,name:"suffix",kind:"message",T:jr},{no:2,name:"range",kind:"message",T:ys},{no:3,name:"source",kind:"enum",T:te.getEnumType(uo)},{no:8,name:"completion_parts",kind:"message",T:Lr,repeated:!0}]);const r3={typeName:"exa.language_server_pb.LanguageServerService",methods:{getCompletions:{name:"GetCompletions",I:Or,O:kr,kind:zt.Unary},acceptCompletion:{name:"AcceptCompletion",I:Pr,O:Nr,kind:zt.Unary},getAuthToken:{name:"GetAuthToken",I:Fr,O:Rr,kind:zt.Unary}}};class hr{constructor(t,r){this.line=t,this.character=r,this.lineNumber=t+1,this.column=r+1}static fromMonaco(t){return new hr(t.lineNumber-1,t.column-1)}static fromPosition(t){return new hr(t.line,t.character)}}class ni{constructor(t,r){this.start=t,this.end=r,this.startLineNumber=t.line+1,this.startColumn=t.character+1,this.endLineNumber=r.line+1,this.endColumn=r.character+1}static fromMonaco(t){return new ni(new hr(t.startLineNumber-1,t.startColumn-1),new hr(t.endLineNumber-1,t.endColumn-1))}static fromRange(t){return new ni(t.start,t.end)}}class n3{constructor(t,r){this.text=t,this.range=r}}class i3{constructor(t){this.model=t,this.uri=t.uri,this.languageId=t.getLanguageId()}get lineCount(){return this.model.getLineCount()}lineAt(t){return typeof t!="number"&&(t=t.line),new n3(this.model.getLineContent(t+1),new ni(new hr(t,0),new hr(t,this.model.getLineLength(t+1))))}offsetAt(t){return this.model.getOffsetAt(hr.fromPosition(t))}positionAt(t){return hr.fromMonaco(this.model.getPositionAt(t))}getText(t){return t?this.model.getValueInRange(ni.fromRange(t)):this.model.getValue()}}function dh(e){return e<128?1:e<2048?2:e<65536?3:4}function o3(e,t){if(t===0)return 0;let r=0,i=0;for(const n of e)if(i+=n.length,r+=dh(n.codePointAt(0)),t!==void 0&&i>=t)break;return r}function fh(e,t){if(t===0)return 0;let r=0,i=0;for(const n of e)if(i+=dh(n.codePointAt(0)),r+=n.length,t!==void 0&&i>=t)break;return r}const a3=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),s3=()=>{try{return window.location.href}catch{return null}},u3=()=>{try{return window.CODEIUM_REACT_CODE_VERSION?window.CODEIUM_REACT_CODE_VERSION:null}catch{return null}},l3=e=>{switch(e.toLowerCase()){case"c":return oe.C;case"clojure":return oe.CLOJURE;case"coffeescript":return oe.COFFEESCRIPT;case"cpp":return oe.CPP;case"csharp":return oe.CSHARP;case"css":return oe.CSS;case"cudacpp":return oe.CUDACPP;case"dockerfile":return oe.DOCKERFILE;case"go":return oe.GO;case"groovy":return oe.GROOVY;case"handlebars":return oe.HANDLEBARS;case"haskell":return oe.HASKELL;case"hcl":return oe.HCL;case"html":return oe.HTML;case"ini":return oe.INI;case"java":return oe.JAVA;case"javascript":return oe.JAVASCRIPT;case"json":return oe.JSON;case"julia":return oe.JULIA;case"kotlin":return oe.KOTLIN;case"latex":return oe.LATEX;case"less":return oe.LESS;case"lua":return oe.LUA;case"makefile":return oe.MAKEFILE;case"markdown":return oe.MARKDOWN;case"objectivec":return oe.OBJECTIVEC;case"objectivecpp":return oe.OBJECTIVECPP;case"perl":return oe.PERL;case"php":return oe.PHP;case"plaintext":return oe.PLAINTEXT;case"protobuf":return oe.PROTOBUF;case"pbtxt":return oe.PBTXT;case"python":return oe.PYTHON;case"r":return oe.R;case"ruby":return oe.RUBY;case"rust":return oe.RUST;case"sass":return oe.SASS;case"scala":return oe.SCALA;case"scss":return oe.SCSS;case"shell":return oe.SHELL;case"sql":return oe.SQL;case"starlark":return oe.STARLARK;case"swift":return oe.SWIFT;case"tsx":return oe.TSX;case"typescript":return oe.TYPESCRIPT;case"visualbasic":return oe.VISUALBASIC;case"vue":return oe.VUE;case"xml":return oe.XML;case"xsl":return oe.XSL;case"yaml":return oe.YAML;case"svelte":return oe.SVELTE;case"toml":return oe.TOML;case"dart":return oe.DART;case"rst":return oe.RST;case"ocaml":return oe.OCAML;case"cmake":return oe.CMAKE;case"pascal":return oe.PASCAL;case"elixir":return oe.ELIXIR;case"fsharp":return oe.FSHARP;case"lisp":return oe.LISP;case"matlab":return oe.MATLAB;case"powershell":return oe.POWERSHELL;case"solidity":return oe.SOLIDITY;case"ada":return oe.ADA;case"ocaml_interface":return oe.OCAML_INTERFACE;default:return oe.UNSPECIFIED}};class c3{constructor(t,r,i){this.insertText=t,this.text=t,this.range=r,this.command={id:"codeium.acceptCompletion",title:"Accept Completion",arguments:[i,t]}}}const d3="d49954eb-cfba-4992-980f-d8fb37f0e942";class f3{constructor(t,r,i,n,o){this.setStatus=r,this.setMessage=i,this.apiKey=n,this.multilineModelThreshold=o,this.otherDocuments=[],this.sessionId=`react-editor-${a3()}`,this.client=t}getAuthHeader(){const t=this.getMetadata();return{Authorization:`Basic ${t.apiKey}-${t.sessionId}`}}getMetadata(){var t,r,i;return new ir({ideName:"web",ideVersion:(t=s3())!==null&&t!==void 0?t:"unknown",extensionName:"@codeium/react-code-editor",extensionVersion:(r=u3())!==null&&r!==void 0?r:"unknown",apiKey:(i=this.apiKey)!==null&&i!==void 0?i:d3,sessionId:this.sessionId})}provideInlineCompletions(t,r,i){return nc(this,void 0,void 0,function*(){const n=new i3(t),o=hr.fromMonaco(r);i.onCancellationRequested(()=>{var m;return(m=i.cancellationCallback)===null||m===void 0?void 0:m.call(i)});const a=new AbortController;i.onCancellationRequested(()=>{a.abort()});const u=a.signal;this.setStatus(hn.PROCESSING),this.setMessage("Generating completions...");const s=this.getDocumentInfo(n,o),l={tabSize:BigInt(t.getOptions().tabSize),insertSpaces:t.getOptions().insertSpaces};let c=this.otherDocuments;c.length>10&&(console.warn(`Too many other documents: ${c.length} (max 10)`),c=c.slice(0,10));let d;this.multilineModelThreshold!==void 0&&(d=new gr({threshold:this.multilineModelThreshold}));let f;try{f=yield this.client.getCompletions({metadata:this.getMetadata(),document:s,editorOptions:l,otherDocuments:c,multilineConfig:d},{signal:u,headers:this.getAuthHeader()})}catch(m){m instanceof pt&&m.code===Ae.Canceled||(this.setStatus(hn.ERROR),this.setMessage("Something went wrong; please try again."));return}if(!f.completionItems){const m=" No completions were generated";this.setStatus(hn.SUCCESS),this.setMessage(m);return}const h=f.completionItems.map(m=>this.createInlineCompletionItem(m,n)).filter(m=>!!m);this.setStatus(hn.SUCCESS);let p=`Generated ${h.length} completions`;return h.length===1&&(p="Generated 1 completion"),this.setMessage(p),{items:h}})}acceptedLastCompletion(t){new Promise((r,i)=>{this.client.acceptCompletion({metadata:this.getMetadata(),completionId:t},{headers:this.getAuthHeader()}).then(r).catch(n=>{console.log("Error: ",n)})})}getDocumentInfo(t,r){const i=t.getText(),n=t.offsetAt(r),o=o3(i,n),a=l3(t.languageId);return a===oe.UNSPECIFIED&&console.warn(`Unknown language: ${t.languageId}`),new ri({text:i,editorLanguage:t.languageId,language:a,cursorOffset:BigInt(o),lineEnding:`
|
|
225
|
-
`})}createInlineCompletionItem(t,r){if(!t.completion||!t.range)return;const
|
|
226
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
340
|
+
/* .action-button class with a hover effect. */`;default:return""}};var cc;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.JUPYTER_FORMAT=77]="JUPYTER_FORMAT"})(cc||(cc={})),oe.util.setEnumType(cc,"exa.codeium_common_pb.ExperimentKey",[{no:0,name:"UNSPECIFIED"},{no:77,name:"JUPYTER_FORMAT"}]);var Na;(function(e){e[e.CODEIUM=0]="CODEIUM"})(Na||(Na={})),oe.util.setEnumType(Na,"exa.codeium_common_pb.AuthSource",[{no:0,name:"AUTH_SOURCE_CODEIUM"}]);var Oa;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ENABLE_CODEIUM=1]="ENABLE_CODEIUM",e[e.DISABLE_CODEIUM=2]="DISABLE_CODEIUM",e[e.SHOW_PREVIOUS_COMPLETION=3]="SHOW_PREVIOUS_COMPLETION",e[e.SHOW_NEXT_COMPLETION=4]="SHOW_NEXT_COMPLETION"})(Oa||(Oa={})),oe.util.setEnumType(Oa,"exa.codeium_common_pb.EventType",[{no:0,name:"EVENT_TYPE_UNSPECIFIED"},{no:1,name:"EVENT_TYPE_ENABLE_CODEIUM"},{no:2,name:"EVENT_TYPE_DISABLE_CODEIUM"},{no:3,name:"EVENT_TYPE_SHOW_PREVIOUS_COMPLETION"},{no:4,name:"EVENT_TYPE_SHOW_NEXT_COMPLETION"}]);var Ta;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TYPING_AS_SUGGESTED=1]="TYPING_AS_SUGGESTED",e[e.CACHE=2]="CACHE",e[e.NETWORK=3]="NETWORK"})(Ta||(Ta={})),oe.util.setEnumType(Ta,"exa.codeium_common_pb.CompletionSource",[{no:0,name:"COMPLETION_SOURCE_UNSPECIFIED"},{no:1,name:"COMPLETION_SOURCE_TYPING_AS_SUGGESTED"},{no:2,name:"COMPLETION_SOURCE_CACHE"},{no:3,name:"COMPLETION_SOURCE_NETWORK"}]);var ce;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.C=1]="C",e[e.CLOJURE=2]="CLOJURE",e[e.COFFEESCRIPT=3]="COFFEESCRIPT",e[e.CPP=4]="CPP",e[e.CSHARP=5]="CSHARP",e[e.CSS=6]="CSS",e[e.CUDACPP=7]="CUDACPP",e[e.DOCKERFILE=8]="DOCKERFILE",e[e.GO=9]="GO",e[e.GROOVY=10]="GROOVY",e[e.HANDLEBARS=11]="HANDLEBARS",e[e.HASKELL=12]="HASKELL",e[e.HCL=13]="HCL",e[e.HTML=14]="HTML",e[e.INI=15]="INI",e[e.JAVA=16]="JAVA",e[e.JAVASCRIPT=17]="JAVASCRIPT",e[e.JSON=18]="JSON",e[e.JULIA=19]="JULIA",e[e.KOTLIN=20]="KOTLIN",e[e.LATEX=21]="LATEX",e[e.LESS=22]="LESS",e[e.LUA=23]="LUA",e[e.MAKEFILE=24]="MAKEFILE",e[e.MARKDOWN=25]="MARKDOWN",e[e.OBJECTIVEC=26]="OBJECTIVEC",e[e.OBJECTIVECPP=27]="OBJECTIVECPP",e[e.PERL=28]="PERL",e[e.PHP=29]="PHP",e[e.PLAINTEXT=30]="PLAINTEXT",e[e.PROTOBUF=31]="PROTOBUF",e[e.PBTXT=32]="PBTXT",e[e.PYTHON=33]="PYTHON",e[e.R=34]="R",e[e.RUBY=35]="RUBY",e[e.RUST=36]="RUST",e[e.SASS=37]="SASS",e[e.SCALA=38]="SCALA",e[e.SCSS=39]="SCSS",e[e.SHELL=40]="SHELL",e[e.SQL=41]="SQL",e[e.STARLARK=42]="STARLARK",e[e.SWIFT=43]="SWIFT",e[e.TSX=44]="TSX",e[e.TYPESCRIPT=45]="TYPESCRIPT",e[e.VISUALBASIC=46]="VISUALBASIC",e[e.VUE=47]="VUE",e[e.XML=48]="XML",e[e.XSL=49]="XSL",e[e.YAML=50]="YAML",e[e.SVELTE=51]="SVELTE",e[e.TOML=52]="TOML",e[e.DART=53]="DART",e[e.RST=54]="RST",e[e.OCAML=55]="OCAML",e[e.CMAKE=56]="CMAKE",e[e.PASCAL=57]="PASCAL",e[e.ELIXIR=58]="ELIXIR",e[e.FSHARP=59]="FSHARP",e[e.LISP=60]="LISP",e[e.MATLAB=61]="MATLAB",e[e.POWERSHELL=62]="POWERSHELL",e[e.SOLIDITY=63]="SOLIDITY",e[e.ADA=64]="ADA",e[e.OCAML_INTERFACE=65]="OCAML_INTERFACE"})(ce||(ce={})),oe.util.setEnumType(ce,"exa.codeium_common_pb.Language",[{no:0,name:"LANGUAGE_UNSPECIFIED"},{no:1,name:"LANGUAGE_C"},{no:2,name:"LANGUAGE_CLOJURE"},{no:3,name:"LANGUAGE_COFFEESCRIPT"},{no:4,name:"LANGUAGE_CPP"},{no:5,name:"LANGUAGE_CSHARP"},{no:6,name:"LANGUAGE_CSS"},{no:7,name:"LANGUAGE_CUDACPP"},{no:8,name:"LANGUAGE_DOCKERFILE"},{no:9,name:"LANGUAGE_GO"},{no:10,name:"LANGUAGE_GROOVY"},{no:11,name:"LANGUAGE_HANDLEBARS"},{no:12,name:"LANGUAGE_HASKELL"},{no:13,name:"LANGUAGE_HCL"},{no:14,name:"LANGUAGE_HTML"},{no:15,name:"LANGUAGE_INI"},{no:16,name:"LANGUAGE_JAVA"},{no:17,name:"LANGUAGE_JAVASCRIPT"},{no:18,name:"LANGUAGE_JSON"},{no:19,name:"LANGUAGE_JULIA"},{no:20,name:"LANGUAGE_KOTLIN"},{no:21,name:"LANGUAGE_LATEX"},{no:22,name:"LANGUAGE_LESS"},{no:23,name:"LANGUAGE_LUA"},{no:24,name:"LANGUAGE_MAKEFILE"},{no:25,name:"LANGUAGE_MARKDOWN"},{no:26,name:"LANGUAGE_OBJECTIVEC"},{no:27,name:"LANGUAGE_OBJECTIVECPP"},{no:28,name:"LANGUAGE_PERL"},{no:29,name:"LANGUAGE_PHP"},{no:30,name:"LANGUAGE_PLAINTEXT"},{no:31,name:"LANGUAGE_PROTOBUF"},{no:32,name:"LANGUAGE_PBTXT"},{no:33,name:"LANGUAGE_PYTHON"},{no:34,name:"LANGUAGE_R"},{no:35,name:"LANGUAGE_RUBY"},{no:36,name:"LANGUAGE_RUST"},{no:37,name:"LANGUAGE_SASS"},{no:38,name:"LANGUAGE_SCALA"},{no:39,name:"LANGUAGE_SCSS"},{no:40,name:"LANGUAGE_SHELL"},{no:41,name:"LANGUAGE_SQL"},{no:42,name:"LANGUAGE_STARLARK"},{no:43,name:"LANGUAGE_SWIFT"},{no:44,name:"LANGUAGE_TSX"},{no:45,name:"LANGUAGE_TYPESCRIPT"},{no:46,name:"LANGUAGE_VISUALBASIC"},{no:47,name:"LANGUAGE_VUE"},{no:48,name:"LANGUAGE_XML"},{no:49,name:"LANGUAGE_XSL"},{no:50,name:"LANGUAGE_YAML"},{no:51,name:"LANGUAGE_SVELTE"},{no:52,name:"LANGUAGE_TOML"},{no:53,name:"LANGUAGE_DART"},{no:54,name:"LANGUAGE_RST"},{no:55,name:"LANGUAGE_OCAML"},{no:56,name:"LANGUAGE_CMAKE"},{no:57,name:"LANGUAGE_PASCAL"},{no:58,name:"LANGUAGE_ELIXIR"},{no:59,name:"LANGUAGE_FSHARP"},{no:60,name:"LANGUAGE_LISP"},{no:61,name:"LANGUAGE_MATLAB"},{no:62,name:"LANGUAGE_POWERSHELL"},{no:63,name:"LANGUAGE_SOLIDITY"},{no:64,name:"LANGUAGE_ADA"},{no:65,name:"LANGUAGE_OCAML_INTERFACE"}]);class Nn extends mt{constructor(t){super(),this.completionId="",this.text="",this.prefix="",this.stop="",this.score=0,this.tokens=[],this.decodedTokens=[],this.probabilities=[],this.adjustedProbabilities=[],this.generatedLength=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Nn().fromBinary(t,r)}static fromJson(t,r){return new Nn().fromJson(t,r)}static fromJsonString(t,r){return new Nn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Nn,t,r)}}Nn.runtime=oe,Nn.typeName="exa.codeium_common_pb.Completion",Nn.fields=oe.util.newFieldList(()=>[{no:1,name:"completion_id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"prefix",kind:"scalar",T:9},{no:4,name:"stop",kind:"scalar",T:9},{no:5,name:"score",kind:"scalar",T:1},{no:6,name:"tokens",kind:"scalar",T:4,repeated:!0},{no:7,name:"decoded_tokens",kind:"scalar",T:9,repeated:!0},{no:8,name:"probabilities",kind:"scalar",T:1,repeated:!0},{no:9,name:"adjusted_probabilities",kind:"scalar",T:1,repeated:!0},{no:10,name:"generated_length",kind:"scalar",T:4}]);class Zr extends mt{constructor(t){super(),this.ideName="",this.ideVersion="",this.extensionName="",this.extensionVersion="",this.apiKey="",this.locale="",this.sessionId="",this.requestId=dt.zero,this.userAgent="",this.url="",this.authSource=Na.CODEIUM,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Zr().fromBinary(t,r)}static fromJson(t,r){return new Zr().fromJson(t,r)}static fromJsonString(t,r){return new Zr().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Zr,t,r)}}Zr.runtime=oe,Zr.typeName="exa.codeium_common_pb.Metadata",Zr.fields=oe.util.newFieldList(()=>[{no:1,name:"ide_name",kind:"scalar",T:9},{no:7,name:"ide_version",kind:"scalar",T:9},{no:12,name:"extension_name",kind:"scalar",T:9},{no:2,name:"extension_version",kind:"scalar",T:9},{no:3,name:"api_key",kind:"scalar",T:9},{no:4,name:"locale",kind:"scalar",T:9},{no:10,name:"session_id",kind:"scalar",T:9},{no:9,name:"request_id",kind:"scalar",T:4},{no:13,name:"user_agent",kind:"scalar",T:9},{no:14,name:"url",kind:"scalar",T:9},{no:15,name:"auth_source",kind:"enum",T:oe.getEnumType(Na)}]);class On extends mt{constructor(t){super(),this.tabSize=dt.zero,this.insertSpaces=!1,oe.util.initPartial(t,this)}static fromBinary(t,r){return new On().fromBinary(t,r)}static fromJson(t,r){return new On().fromJson(t,r)}static fromJsonString(t,r){return new On().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(On,t,r)}}On.runtime=oe,On.typeName="exa.codeium_common_pb.EditorOptions",On.fields=oe.util.newFieldList(()=>[{no:1,name:"tab_size",kind:"scalar",T:4},{no:2,name:"insert_spaces",kind:"scalar",T:8}]);class to extends mt{constructor(t){super(),this.eventType=Oa.UNSPECIFIED,this.eventJson="",this.timestampUnixMs=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new to().fromBinary(t,r)}static fromJson(t,r){return new to().fromJson(t,r)}static fromJsonString(t,r){return new to().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(to,t,r)}}to.runtime=oe,to.typeName="exa.codeium_common_pb.Event",to.fields=oe.util.newFieldList(()=>[{no:1,name:"event_type",kind:"enum",T:oe.getEnumType(Oa)},{no:2,name:"event_json",kind:"scalar",T:9},{no:3,name:"timestamp_unix_ms",kind:"scalar",T:3}]);var Pa;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INACTIVE=1]="INACTIVE",e[e.PROCESSING=2]="PROCESSING",e[e.SUCCESS=3]="SUCCESS",e[e.WARNING=4]="WARNING",e[e.ERROR=5]="ERROR"})(Pa||(Pa={})),oe.util.setEnumType(Pa,"exa.language_server_pb.CodeiumState",[{no:0,name:"CODEIUM_STATE_UNSPECIFIED"},{no:1,name:"CODEIUM_STATE_INACTIVE"},{no:2,name:"CODEIUM_STATE_PROCESSING"},{no:3,name:"CODEIUM_STATE_SUCCESS"},{no:4,name:"CODEIUM_STATE_WARNING"},{no:5,name:"CODEIUM_STATE_ERROR"}]);var Bf;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SINGLE=1]="SINGLE",e[e.MULTI=2]="MULTI"})(Bf||(Bf={})),oe.util.setEnumType(Bf,"exa.language_server_pb.LineType",[{no:0,name:"LINE_TYPE_UNSPECIFIED"},{no:1,name:"LINE_TYPE_SINGLE"},{no:2,name:"LINE_TYPE_MULTI"}]);var ka;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INLINE=1]="INLINE",e[e.BLOCK=2]="BLOCK",e[e.INLINE_MASK=3]="INLINE_MASK"})(ka||(ka={})),oe.util.setEnumType(ka,"exa.language_server_pb.CompletionPartType",[{no:0,name:"COMPLETION_PART_TYPE_UNSPECIFIED"},{no:1,name:"COMPLETION_PART_TYPE_INLINE"},{no:2,name:"COMPLETION_PART_TYPE_BLOCK"},{no:3,name:"COMPLETION_PART_TYPE_INLINE_MASK"}]);class fn extends mt{constructor(t){super(),this.threshold=0,oe.util.initPartial(t,this)}static fromBinary(t,r){return new fn().fromBinary(t,r)}static fromJson(t,r){return new fn().fromJson(t,r)}static fromJsonString(t,r){return new fn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(fn,t,r)}}fn.runtime=oe,fn.typeName="exa.language_server_pb.MultilineConfig",fn.fields=oe.util.newFieldList(()=>[{no:1,name:"threshold",kind:"scalar",T:2}]);class Tn extends mt{constructor(t){super(),this.otherDocuments=[],this.modelName="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Tn().fromBinary(t,r)}static fromJson(t,r){return new Tn().fromJson(t,r)}static fromJsonString(t,r){return new Tn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Tn,t,r)}}Tn.runtime=oe,Tn.typeName="exa.language_server_pb.GetCompletionsRequest",Tn.fields=oe.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:Zr},{no:2,name:"document",kind:"message",T:pi},{no:3,name:"editor_options",kind:"message",T:On},{no:5,name:"other_documents",kind:"message",T:pi,repeated:!0},{no:7,name:"experiment_config",kind:"message",T:jn},{no:10,name:"model_name",kind:"scalar",T:9},{no:13,name:"multiline_config",kind:"message",T:fn}]);class Pn extends mt{constructor(t){super(),this.completionItems=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new Pn().fromBinary(t,r)}static fromJson(t,r){return new Pn().fromJson(t,r)}static fromJsonString(t,r){return new Pn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Pn,t,r)}}Pn.runtime=oe,Pn.typeName="exa.language_server_pb.GetCompletionsResponse",Pn.fields=oe.util.newFieldList(()=>[{no:1,name:"state",kind:"message",T:Rn},{no:2,name:"completion_items",kind:"message",T:_n,repeated:!0}]);class kn extends mt{constructor(t){super(),this.completionId="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new kn().fromBinary(t,r)}static fromJson(t,r){return new kn().fromJson(t,r)}static fromJsonString(t,r){return new kn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(kn,t,r)}}kn.runtime=oe,kn.typeName="exa.language_server_pb.AcceptCompletionRequest",kn.fields=oe.util.newFieldList(()=>[{no:1,name:"metadata",kind:"message",T:Zr},{no:2,name:"completion_id",kind:"scalar",T:9}]);class Fn extends mt{constructor(t){super(),oe.util.initPartial(t,this)}static fromBinary(t,r){return new Fn().fromBinary(t,r)}static fromJson(t,r){return new Fn().fromJson(t,r)}static fromJsonString(t,r){return new Fn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Fn,t,r)}}Fn.runtime=oe,Fn.typeName="exa.language_server_pb.AcceptCompletionResponse",Fn.fields=oe.util.newFieldList(()=>[]);class $n extends mt{constructor(t){super(),oe.util.initPartial(t,this)}static fromBinary(t,r){return new $n().fromBinary(t,r)}static fromJson(t,r){return new $n().fromJson(t,r)}static fromJsonString(t,r){return new $n().fromJsonString(t,r)}static equals(t,r){return oe.util.equals($n,t,r)}}$n.runtime=oe,$n.typeName="exa.language_server_pb.GetAuthTokenRequest",$n.fields=oe.util.newFieldList(()=>[]);class Mn extends mt{constructor(t){super(),this.authToken="",this.uuid="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Mn().fromBinary(t,r)}static fromJson(t,r){return new Mn().fromJson(t,r)}static fromJsonString(t,r){return new Mn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Mn,t,r)}}Mn.runtime=oe,Mn.typeName="exa.language_server_pb.GetAuthTokenResponse",Mn.fields=oe.util.newFieldList(()=>[{no:1,name:"auth_token",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}]);class qr extends mt{constructor(t){super(),this.row=dt.zero,this.col=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new qr().fromBinary(t,r)}static fromJson(t,r){return new qr().fromJson(t,r)}static fromJsonString(t,r){return new qr().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(qr,t,r)}}qr.runtime=oe,qr.typeName="exa.language_server_pb.DocumentPosition",qr.fields=oe.util.newFieldList(()=>[{no:1,name:"row",kind:"scalar",T:4},{no:2,name:"col",kind:"scalar",T:4}]);let pi=class Wa extends mt{constructor(t){super(),this.absolutePath="",this.relativePath="",this.text="",this.editorLanguage="",this.language=ce.UNSPECIFIED,this.cursorOffset=dt.zero,this.lineEnding="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Wa().fromBinary(t,r)}static fromJson(t,r){return new Wa().fromJson(t,r)}static fromJsonString(t,r){return new Wa().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Wa,t,r)}};pi.runtime=oe,pi.typeName="exa.language_server_pb.Document",pi.fields=oe.util.newFieldList(()=>[{no:1,name:"absolute_path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9},{no:3,name:"text",kind:"scalar",T:9},{no:4,name:"editor_language",kind:"scalar",T:9},{no:5,name:"language",kind:"enum",T:oe.getEnumType(ce)},{no:6,name:"cursor_offset",kind:"scalar",T:4},{no:8,name:"cursor_position",kind:"message",T:qr},{no:7,name:"line_ending",kind:"scalar",T:9}]);class jn extends mt{constructor(t){super(),this.forceEnableExperiments=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new jn().fromBinary(t,r)}static fromJson(t,r){return new jn().fromJson(t,r)}static fromJsonString(t,r){return new jn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(jn,t,r)}}jn.runtime=oe,jn.typeName="exa.language_server_pb.ExperimentConfig",jn.fields=oe.util.newFieldList(()=>[{no:1,name:"force_enable_experiments",kind:"enum",T:oe.getEnumType(cc),repeated:!0}]);class Rn extends mt{constructor(t){super(),this.state=Pa.UNSPECIFIED,this.message="",oe.util.initPartial(t,this)}static fromBinary(t,r){return new Rn().fromBinary(t,r)}static fromJson(t,r){return new Rn().fromJson(t,r)}static fromJsonString(t,r){return new Rn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Rn,t,r)}}Rn.runtime=oe,Rn.typeName="exa.language_server_pb.State",Rn.fields=oe.util.newFieldList(()=>[{no:1,name:"state",kind:"enum",T:oe.getEnumType(Pa)},{no:2,name:"message",kind:"scalar",T:9}]);let uc=class Ua extends mt{constructor(t){super(),this.startOffset=dt.zero,this.endOffset=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Ua().fromBinary(t,r)}static fromJson(t,r){return new Ua().fromJson(t,r)}static fromJsonString(t,r){return new Ua().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Ua,t,r)}};uc.runtime=oe,uc.typeName="exa.language_server_pb.Range",uc.fields=oe.util.newFieldList(()=>[{no:1,name:"start_offset",kind:"scalar",T:4},{no:2,name:"end_offset",kind:"scalar",T:4},{no:3,name:"start_position",kind:"message",T:qr},{no:4,name:"end_position",kind:"message",T:qr}]);class Ln extends mt{constructor(t){super(),this.text="",this.deltaCursorOffset=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Ln().fromBinary(t,r)}static fromJson(t,r){return new Ln().fromJson(t,r)}static fromJsonString(t,r){return new Ln().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Ln,t,r)}}Ln.runtime=oe,Ln.typeName="exa.language_server_pb.Suffix",Ln.fields=oe.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"delta_cursor_offset",kind:"scalar",T:3}]);class Dn extends mt{constructor(t){super(),this.text="",this.offset=dt.zero,this.type=ka.UNSPECIFIED,this.prefix="",this.line=dt.zero,oe.util.initPartial(t,this)}static fromBinary(t,r){return new Dn().fromBinary(t,r)}static fromJson(t,r){return new Dn().fromJson(t,r)}static fromJsonString(t,r){return new Dn().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(Dn,t,r)}}Dn.runtime=oe,Dn.typeName="exa.language_server_pb.CompletionPart",Dn.fields=oe.util.newFieldList(()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:4},{no:3,name:"type",kind:"enum",T:oe.getEnumType(ka)},{no:4,name:"prefix",kind:"scalar",T:9},{no:5,name:"line",kind:"scalar",T:4}]);class _n extends mt{constructor(t){super(),this.source=Ta.UNSPECIFIED,this.completionParts=[],oe.util.initPartial(t,this)}static fromBinary(t,r){return new _n().fromBinary(t,r)}static fromJson(t,r){return new _n().fromJson(t,r)}static fromJsonString(t,r){return new _n().fromJsonString(t,r)}static equals(t,r){return oe.util.equals(_n,t,r)}}_n.runtime=oe,_n.typeName="exa.language_server_pb.CompletionItem",_n.fields=oe.util.newFieldList(()=>[{no:1,name:"completion",kind:"message",T:Nn},{no:5,name:"suffix",kind:"message",T:Ln},{no:2,name:"range",kind:"message",T:uc},{no:3,name:"source",kind:"enum",T:oe.getEnumType(Ta)},{no:8,name:"completion_parts",kind:"message",T:Dn,repeated:!0}]);const Yk={typeName:"exa.language_server_pb.LanguageServerService",methods:{getCompletions:{name:"GetCompletions",I:Tn,O:Pn,kind:Lr.Unary},acceptCompletion:{name:"AcceptCompletion",I:kn,O:Fn,kind:Lr.Unary},getAuthToken:{name:"GetAuthToken",I:$n,O:Mn,kind:Lr.Unary}}};class mn{constructor(t,r){this.line=t,this.character=r,this.lineNumber=t+1,this.column=r+1}static fromMonaco(t){return new mn(t.lineNumber-1,t.column-1)}static fromPosition(t){return new mn(t.line,t.character)}}class gi{constructor(t,r){this.start=t,this.end=r,this.startLineNumber=t.line+1,this.startColumn=t.character+1,this.endLineNumber=r.line+1,this.endColumn=r.character+1}static fromMonaco(t){return new gi(new mn(t.startLineNumber-1,t.startColumn-1),new mn(t.endLineNumber-1,t.endColumn-1))}static fromRange(t){return new gi(t.start,t.end)}}class Jk{constructor(t,r){this.text=t,this.range=r}}class Zk{constructor(t){this.model=t,this.uri=t.uri,this.languageId=t.getLanguageId()}get lineCount(){return this.model.getLineCount()}lineAt(t){return typeof t!="number"&&(t=t.line),new Jk(this.model.getLineContent(t+1),new gi(new mn(t,0),new mn(t,this.model.getLineLength(t+1))))}offsetAt(t){return this.model.getOffsetAt(mn.fromPosition(t))}positionAt(t){return mn.fromMonaco(this.model.getPositionAt(t))}getText(t){return t?this.model.getValueInRange(gi.fromRange(t)):this.model.getValue()}}function yy(e){return e<128?1:e<2048?2:e<65536?3:4}function qk(e,t){if(t===0)return 0;let r=0,n=0;for(const o of e)if(n+=o.length,r+=yy(o.codePointAt(0)),t!==void 0&&n>=t)break;return r}function Cy(e,t){if(t===0)return 0;let r=0,n=0;for(const o of e)if(n+=yy(o.codePointAt(0)),r+=o.length,t!==void 0&&n>=t)break;return r}const Qk=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),Kk=()=>{try{return window.location.href}catch{return null}},eF=()=>{try{return window.CODEIUM_REACT_CODE_VERSION?window.CODEIUM_REACT_CODE_VERSION:null}catch{return null}},tF=e=>{switch(e.toLowerCase()){case"c":return ce.C;case"clojure":return ce.CLOJURE;case"coffeescript":return ce.COFFEESCRIPT;case"cpp":return ce.CPP;case"csharp":return ce.CSHARP;case"css":return ce.CSS;case"cudacpp":return ce.CUDACPP;case"dockerfile":return ce.DOCKERFILE;case"go":return ce.GO;case"groovy":return ce.GROOVY;case"handlebars":return ce.HANDLEBARS;case"haskell":return ce.HASKELL;case"hcl":return ce.HCL;case"html":return ce.HTML;case"ini":return ce.INI;case"java":return ce.JAVA;case"javascript":return ce.JAVASCRIPT;case"json":return ce.JSON;case"julia":return ce.JULIA;case"kotlin":return ce.KOTLIN;case"latex":return ce.LATEX;case"less":return ce.LESS;case"lua":return ce.LUA;case"makefile":return ce.MAKEFILE;case"markdown":return ce.MARKDOWN;case"objectivec":return ce.OBJECTIVEC;case"objectivecpp":return ce.OBJECTIVECPP;case"perl":return ce.PERL;case"php":return ce.PHP;case"plaintext":return ce.PLAINTEXT;case"protobuf":return ce.PROTOBUF;case"pbtxt":return ce.PBTXT;case"python":return ce.PYTHON;case"r":return ce.R;case"ruby":return ce.RUBY;case"rust":return ce.RUST;case"sass":return ce.SASS;case"scala":return ce.SCALA;case"scss":return ce.SCSS;case"shell":return ce.SHELL;case"sql":return ce.SQL;case"starlark":return ce.STARLARK;case"swift":return ce.SWIFT;case"tsx":return ce.TSX;case"typescript":return ce.TYPESCRIPT;case"visualbasic":return ce.VISUALBASIC;case"vue":return ce.VUE;case"xml":return ce.XML;case"xsl":return ce.XSL;case"yaml":return ce.YAML;case"svelte":return ce.SVELTE;case"toml":return ce.TOML;case"dart":return ce.DART;case"rst":return ce.RST;case"ocaml":return ce.OCAML;case"cmake":return ce.CMAKE;case"pascal":return ce.PASCAL;case"elixir":return ce.ELIXIR;case"fsharp":return ce.FSHARP;case"lisp":return ce.LISP;case"matlab":return ce.MATLAB;case"powershell":return ce.POWERSHELL;case"solidity":return ce.SOLIDITY;case"ada":return ce.ADA;case"ocaml_interface":return ce.OCAML_INTERFACE;default:return ce.UNSPECIFIED}};class rF{constructor(t,r,n){this.insertText=t,this.text=t,this.range=r,this.command={id:"codeium.acceptCompletion",title:"Accept Completion",arguments:[n,t]}}}const nF="d49954eb-cfba-4992-980f-d8fb37f0e942";class oF{constructor(t,r,n,o,i){this.setStatus=r,this.setMessage=n,this.apiKey=o,this.multilineModelThreshold=i,this.otherDocuments=[],this.sessionId=`react-editor-${Qk()}`,this.client=t}getAuthHeader(){const t=this.getMetadata();return{Authorization:`Basic ${t.apiKey}-${t.sessionId}`}}getMetadata(){var t,r,n;return new Zr({ideName:"web",ideVersion:(t=Kk())!==null&&t!==void 0?t:"unknown",extensionName:"@codeium/react-code-editor",extensionVersion:(r=eF())!==null&&r!==void 0?r:"unknown",apiKey:(n=this.apiKey)!==null&&n!==void 0?n:nF,sessionId:this.sessionId})}provideInlineCompletions(t,r,n){return Nf(this,void 0,void 0,function*(){const o=new Zk(t),i=mn.fromMonaco(r);n.onCancellationRequested(()=>{var p;return(p=n.cancellationCallback)===null||p===void 0?void 0:p.call(n)});const a=new AbortController;n.onCancellationRequested(()=>{a.abort()});const s=a.signal;this.setStatus(xo.PROCESSING),this.setMessage("Generating completions...");const l=this.getDocumentInfo(o,i),c={tabSize:BigInt(t.getOptions().tabSize),insertSpaces:t.getOptions().insertSpaces};let u=this.otherDocuments;u.length>10&&(console.warn(`Too many other documents: ${u.length} (max 10)`),u=u.slice(0,10));let d;this.multilineModelThreshold!==void 0&&(d=new fn({threshold:this.multilineModelThreshold}));let f;try{f=yield this.client.getCompletions({metadata:this.getMetadata(),document:l,editorOptions:c,otherDocuments:u,multilineConfig:d},{signal:s,headers:this.getAuthHeader()})}catch(p){p instanceof er&&p.code===Xe.Canceled||(this.setStatus(xo.ERROR),this.setMessage("Something went wrong; please try again."));return}if(!f.completionItems){const p=" No completions were generated";this.setStatus(xo.SUCCESS),this.setMessage(p);return}const h=f.completionItems.map(p=>this.createInlineCompletionItem(p,o)).filter(p=>!!p);this.setStatus(xo.SUCCESS);let m=`Generated ${h.length} completions`;return h.length===1&&(m="Generated 1 completion"),this.setMessage(m),{items:h}})}acceptedLastCompletion(t){new Promise((r,n)=>{this.client.acceptCompletion({metadata:this.getMetadata(),completionId:t},{headers:this.getAuthHeader()}).then(r).catch(o=>{console.log("Error: ",o)})})}getDocumentInfo(t,r){const n=t.getText(),o=t.offsetAt(r),i=qk(n,o),a=tF(t.languageId);return a===ce.UNSPECIFIED&&console.warn(`Unknown language: ${t.languageId}`),new pi({text:n,editorLanguage:t.languageId,language:a,cursorOffset:BigInt(i),lineEnding:`
|
|
341
|
+
`})}createInlineCompletionItem(t,r){if(!t.completion||!t.range)return;const n=r.getText(),o=r.positionAt(Cy(n,Number(t.range.startOffset))),i=r.positionAt(Cy(n,Number(t.range.endOffset))),a=new gi(o,i);return new rF(t.completion.text,a,t.completion.completionId)}}class iF{constructor(t,r,n,o,i,a){this.setCompletionCount=r,this.numCompletionsProvided=0,this.completionProvider=new oF(t,n,o,i,a)}freeInlineCompletions(){}provideInlineCompletions(t,r,n,o){return Nf(this,void 0,void 0,function*(){const i=yield this.completionProvider.provideInlineCompletions(t,r,o);return i&&(this.numCompletionsProvided+=1,this.setCompletionCount(this.numCompletionsProvided)),i})}acceptedLastCompletion(t){this.completionProvider.acceptedLastCompletion(t)}updateOtherDocuments(t){this.completionProvider.otherDocuments=t}}const aF=e=>{var{className:t,loading:r=!1}=e,n=v1(e,["className","loading"]);return E.createElement("svg",Object.assign({viewBox:"0 0 124 124","aria-label":"Codeium Logo",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{className:t}),E.createElement("mask",{id:"mask0_306_96",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"124",height:"124"},E.createElement("path",{d:"M0 10C0 4.47715 4.47715 0 10 0H114C119.523 0 124 4.47715 124 10V114C124 119.523 119.523 124 114 124H10C4.47715 124 0 119.523 0 114V10Z",fill:"#D9D9D9"})),E.createElement("g",{mask:"url(#mask0_306_96)"},E.createElement("path",{d:"M62 62L0 124V0L62 62Z",fill:"#60D5C4"}),E.createElement("path",{d:"M62 62L124 124V0L62 62Z",fill:"#60D5C4"}),E.createElement("path",{d:"M62 62L124 124L0 124L62 62Z",fill:"#71E9D8"}),E.createElement("path",{d:"M62 62L124 0L0 0L62 62Z",fill:"#71E9D8"}),E.createElement("path",{d:"M107.387 16H16.6133C16.2746 16 16 16.2746 16 16.6133V107.387C16 107.725 16.2746 108 16.6133 108H107.387C107.725 108 108 107.725 108 107.387V16.6133C108 16.2746 107.725 16 107.387 16Z",fill:"#09B6A2"}),E.createElement("path",{d:"M75.196 77.1134C74.1902 77.1134 73.3102 76.7612 72.5559 76.0566C71.8375 75.3169 71.4783 74.4538 71.4783 73.4675C71.4783 72.4459 71.8375 71.5828 72.5559 70.8783C73.3102 70.1386 74.1902 69.7687 75.196 69.7687C76.2377 69.7687 77.1177 70.1386 77.8361 70.8783C78.5545 71.5828 78.9137 72.4459 78.9137 73.4675C78.9137 74.4538 78.5545 75.3169 77.8361 76.0566C77.1177 76.7612 76.2377 77.1134 75.196 77.1134Z",fill:"white","aria-label":"right-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"666ms"}}),E.createElement("path",{d:"M62.3573 77.1134C61.3516 77.1134 60.4715 76.7612 59.7172 76.0566C58.9988 75.3169 58.6396 74.4538 58.6396 73.4675C58.6396 72.4459 58.9988 71.5828 59.7172 70.8783C60.4715 70.1386 61.3516 69.7687 62.3573 69.7687C63.399 69.7687 64.2791 70.1386 64.9974 70.8783C65.7158 71.5828 66.075 72.4459 66.075 73.4675C66.075 74.4538 65.7158 75.3169 64.9974 76.0566C64.2791 76.7612 63.399 77.1134 62.3573 77.1134Z",fill:"white","aria-label":"middle-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"333ms"}}),E.createElement("path",{d:"M49.519 77.1134C48.5132 77.1134 47.6332 76.7612 46.8789 76.0566C46.1605 75.3169 45.8013 74.4538 45.8013 73.4675C45.8013 72.4459 46.1605 71.5828 46.8789 70.8783C47.6332 70.1386 48.5132 69.7687 49.519 69.7687C50.5607 69.7687 51.4407 70.1386 52.1591 70.8783C52.8775 71.5828 53.2367 72.4459 53.2367 73.4675C53.2367 74.4538 52.8775 75.3169 52.1591 76.0566C51.4407 76.7612 50.5607 77.1134 49.519 77.1134Z",fill:"white","aria-label":"left-dot",className:r?"animate-blink duration-1000":"",style:{animationDelay:"0ms"}}),E.createElement("path",{d:"M85.9869 88.6325C85.1967 88.6325 84.5501 88.3683 84.0473 87.8399C83.5444 87.3468 83.2929 86.7127 83.2929 85.9377C83.2929 85.1275 83.5444 84.4758 84.0473 83.9826C84.5501 83.4894 85.1967 83.2429 85.9869 83.2429C88.178 83.2429 89.2736 82.1684 89.2736 80.0196V67.7079C89.2736 65.2421 89.8483 63.287 90.9977 61.8427C90.423 61.1029 89.992 60.2399 89.7046 59.2535C89.4173 58.2672 89.2736 57.1575 89.2736 55.9246V43.6129C89.2736 41.4641 88.178 40.3897 85.9869 40.3897C85.1967 40.3897 84.5501 40.1431 84.0473 39.6499C83.5444 39.1567 83.2929 38.5227 83.2929 37.7477C83.2929 36.9727 83.5444 36.321 84.0473 35.7926C84.5501 35.2642 85.1967 35 85.9869 35C91.8419 35 94.7693 37.871 94.7693 43.6129V55.9246C94.7693 58.0734 95.8469 59.1478 98.0021 59.1478C98.7924 59.1478 99.4389 59.3944 99.9418 59.8876C100.481 60.3808 100.75 61.0325 100.75 61.8427C100.75 62.6177 100.481 63.2517 99.9418 63.7449C99.4389 64.2381 98.7924 64.4847 98.0021 64.4847C95.8469 64.4847 94.7693 65.5591 94.7693 67.7079V80.0196C94.7693 85.7616 91.8419 88.6325 85.9869 88.6325Z",fill:"white","aria-label":"open-bracket"}),E.createElement("path",{d:"M38.7631 88.6325C32.9081 88.6325 29.9807 85.7616 29.9807 80.0196V67.7079C29.9807 65.5591 28.9031 64.4847 26.7479 64.4847C25.9576 64.4847 25.2931 64.2381 24.7543 63.7449C24.2514 63.2517 24 62.6177 24 61.8427C24 61.0325 24.2514 60.3808 24.7543 59.8876C25.2931 59.3944 25.9576 59.1478 26.7479 59.1478C28.9031 59.1478 29.9807 58.0734 29.9807 55.9246V43.6129C29.9807 37.871 32.9081 35 38.7631 35C39.5533 35 40.1999 35.2642 40.7027 35.7926C41.2056 36.321 41.4571 36.9727 41.4571 37.7477C41.4571 38.5227 41.2056 39.1567 40.7027 39.6499C40.1999 40.1431 39.5533 40.3897 38.7631 40.3897C36.572 40.3897 35.4764 41.4641 35.4764 43.6129V55.9246C35.4764 57.1575 35.3327 58.2672 35.0454 59.2535C34.758 60.2399 34.327 61.1029 33.7522 61.8427C34.9017 63.287 35.4764 65.2421 35.4764 67.7079V80.0196C35.4764 82.1684 36.572 83.2429 38.7631 83.2429C39.5533 83.2429 40.1999 83.4894 40.7027 83.9826C41.2056 84.4758 41.4571 85.1275 41.4571 85.9377C41.4571 86.7127 41.2056 87.3468 40.7027 87.8399C40.1999 88.3683 39.5533 88.6325 38.7631 88.6325Z",fill:"white","aria-label":"close-bracket"})))};function xy(e,t){const r=Object.assign({},t);for(const n in e)typeof e[n]=="object"&&!Array.isArray(e[n])?t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=xy(e[n],t[n]):r[n]=Object.assign({},e[n]):r[n]=e[n];return r}const sF=e=>{var{languageServerAddress:t="https://web-backend.codeium.com",otherDocuments:r=[],containerClassName:n="",containerStyle:o={}}=e,i=v1(e,["languageServerAddress","otherDocuments","containerClassName","containerStyle"]);const a=E.useRef(null),s=E.useRef(null),l=E.useRef(null),[c,u]=E.useState(-1),[d,f]=E.useState(0),[g,h]=E.useState(xo.INACTIVE),[m,p]=E.useState(""),[b,y]=E.useState(!1),w=E.useMemo(()=>V7({baseUrl:t,useBinaryFormat:!0}),[t]),S=E.useMemo(()=>p7(Yk,w),[w]);l.current=E.useMemo(()=>new iF(S,f,h,p,i.apiKey,i.multilineModelThreshold),[]),E.useEffect(()=>{if(!a?.current||!s.current||!l.current)return;const N=s.current,T=N.languages.registerInlineCompletionsProvider({pattern:"**"},l.current),P=N.editor.registerCommand("codeium.acceptCompletion",(M,x,$)=>{var F;try{i.onAutocomplete&&i.onAutocomplete($),u(c+1),(F=l.current)===null||F===void 0||F.acceptedLastCompletion(x)}catch{console.log("Err")}});return()=>{T.dispose(),P.dispose()}},[a?.current,s?.current,l?.current,c,b]);const v=(N,T)=>Nf(void 0,void 0,void 0,function*(){a.current=N,s.current=T,y(!0);try{yield S.getCompletions({})}catch{}i.onMount&&i.onMount(N,T)});E.useEffect(()=>{var N;(N=l.current)===null||N===void 0||N.updateOtherDocuments(r)},[r]);let I={defaultLanguage:i.language,defaultValue:Xk(i.language)};const O={width:i.width||"100%",height:i.height||"300px"};return E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},O),{position:"relative"}),o),className:n},E.createElement("a",{href:"https://codeium.com?referrer=codeium-editor",target:"_blank",rel:"noreferrer noopener"},E.createElement(aF,{width:30,height:30,style:{position:"absolute",top:12,right:12,zIndex:1}})),E.createElement(Uk,Object.assign({},I,i,{width:O.width,height:O.height,onMount:v,options:xy(i.options,{scrollBeyondLastColumn:0,scrollbar:{alwaysConsumeMouseWheel:!1},codeLens:!1,minimap:{enabled:!1},quickSuggestions:!1,folding:!1,foldingHighlight:!1,foldingImportsByDefault:!1,links:!1,fontSize:14,wordWrap:"on"})})))};function lF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(r),!0).forEach(function(n){lF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cF(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function uF(e,t){if(e==null)return{};var r=cF(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dF(e,t){return fF(e)||mF(e,t)||pF(e,t)||gF()}function fF(e){if(Array.isArray(e))return e}function mF(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,i=l}finally{try{!n&&a.return!=null&&a.return()}finally{if(o)throw i}}return r}}function pF(e,t){if(e){if(typeof e=="string")return Ey(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ey(e,t)}}function Ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
342
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hF(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ay(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Iy(Object(r),!0).forEach(function(n){hF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vF(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function Fa(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(o,s))}}}function dc(e){return{}.toString.call(e).includes("Object")}function bF(e){return!Object.keys(e).length}function $a(e){return typeof e=="function"}function yF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function CF(e,t){return dc(t)||ro("changeType"),Object.keys(t).some(function(r){return!yF(e,r)})&&ro("changeField"),t}function xF(e){$a(e)||ro("selectorType")}function wF(e){$a(e)||dc(e)||ro("handlerType"),dc(e)&&Object.values(e).some(function(t){return!$a(t)})&&ro("handlersType")}function SF(e){e||ro("initialIsRequired"),dc(e)||ro("initialType"),bF(e)&&ro("initialContent")}function EF(e,t){throw new Error(e[t]||e.default)}var IF={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ro=Fa(EF)(IF),fc={changes:CF,selector:xF,handler:wF,initial:SF};function AF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fc.initial(e),fc.handler(t);var r={current:e},n=Fa(TF)(r,t),o=Fa(OF)(r),i=Fa(fc.changes)(e),a=Fa(NF)(r);function s(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return fc.selector(c),c(r.current)}function l(c){vF(n,o,i,a)(c)}return[s,l]}function NF(e,t){return $a(t)?t(e.current):t}function OF(e,t){return e.current=Ay(Ay({},e.current),t),t}function TF(e,t,r){return $a(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var PF={create:AF},kF={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function FF(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(r,[].concat(o,s))}}}function $F(e){return{}.toString.call(e).includes("Object")}function MF(e){return e||Oy("configIsRequired"),$F(e)||Oy("configType"),e.urls?(jF(),{paths:{vs:e.urls.monacoBase}}):e}function jF(){console.warn(Ny.deprecation)}function RF(e,t){throw new Error(e[t]||e.default)}var Ny={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
227
343
|
You are using deprecated way of configuration.
|
|
228
344
|
|
|
229
345
|
Instead of using
|
|
@@ -232,9 +348,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
232
348
|
monaco.config({ paths: { vs: '...' } })
|
|
233
349
|
|
|
234
350
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
235
|
-
`},Ch=D3(W3)(yh),z3={config:G3},X3=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(n){return r.reduceRight(function(o,a){return a(o)},n)}};function xh(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],xh(e[r],t[r]))}),gh(gh({},e),t)}var U3={type:"cancelation",msg:"operation is manually canceled"};function bc(e){var t=!1,r=new Promise(function(i,n){e.then(function(o){return t?n(U3):i(o)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var Y3=B3.create({config:$3,isInitialized:!1,resolve:null,reject:null,monaco:null}),Eh=y3(Y3,2),mo=Eh[0],Es=Eh[1];function J3(e){var t=z3.config(e),r=t.monaco,i=b3(t,["monaco"]);Es(function(n){return{config:xh(n.config,i),monaco:r}})}function Z3(){var e=mo(function(t){var r=t.monaco,i=t.isInitialized,n=t.resolve;return{monaco:r,isInitialized:i,resolve:n}});if(!e.isInitialized){if(Es({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),bc(yc);if(window.monaco&&window.monaco.editor)return Ih(window.monaco),e.resolve(window.monaco),bc(yc);X3(q3,K3)(eT)}return bc(yc)}function q3(e){return document.body.appendChild(e)}function Q3(e){var t=document.createElement("script");return e&&(t.src=e),t}function K3(e){var t=mo(function(i){var n=i.config,o=i.reject;return{config:n,reject:o}}),r=Q3("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function eT(){var e=mo(function(r){var i=r.config,n=r.resolve,o=r.reject;return{config:i,resolve:n,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Ih(r),e.resolve(r)},function(r){e.reject(r)})}function Ih(e){mo().monaco||Es({monaco:e})}function tT(){return mo(function(e){var t=e.monaco;return t})}var yc=new Promise(function(e,t){return Es({resolve:e,reject:t})}),Cc={config:J3,init:Z3,__getMonacoInstance:tT},rT={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},xc=rT,nT={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},iT=nT;function oT({children:e}){return O.createElement("div",{style:iT.container},e)}var aT=oT,sT=aT;function uT({width:e,height:t,isEditorReady:r,loading:i,_ref:n,className:o,wrapperProps:a}){return O.createElement("section",{style:{...xc.wrapper,width:e,height:t},...a},!r&&O.createElement(sT,null,i),O.createElement("div",{ref:n,style:{...xc.fullWidth,...!r&&xc.hide},className:o}))}var lT=uT,Sh=O.memo(lT);function cT(e){O.useEffect(e,[])}var wh=cT;function dT(e,t,r=!0){let i=O.useRef(!0);O.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var Lt=dT;function go(){}function ii(e,t,r,i){return fT(e,i)||pT(e,t,r,i)}function fT(e,t){return e.editor.getModel(Ah(e,t))}function pT(e,t,r,i){return e.editor.createModel(t,r,i?Ah(e,i):void 0)}function Ah(e,t){return e.Uri.parse(t)}function mT({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:n,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:s=!1,theme:l="light",loading:c="Loading...",options:d={},height:f="100%",width:g="100%",className:h,wrapperProps:p={},beforeMount:m=go,onMount:b=go}){let[y,I]=O.useState(!1),[x,v]=O.useState(!0),S=O.useRef(null),E=O.useRef(null),w=O.useRef(null),T=O.useRef(b),k=O.useRef(m),V=O.useRef(!1);wh(()=>{let P=Cc.init();return P.then(j=>(E.current=j)&&v(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>S.current?F():P.cancel()}),Lt(()=>{if(S.current&&E.current){let P=S.current.getOriginalEditor(),j=ii(E.current,e||"",i||r||"text",o||"");j!==P.getModel()&&P.setModel(j)}},[o],y),Lt(()=>{if(S.current&&E.current){let P=S.current.getModifiedEditor(),j=ii(E.current,t||"",n||r||"text",a||"");j!==P.getModel()&&P.setModel(j)}},[a],y),Lt(()=>{let P=S.current.getModifiedEditor();P.getOption(E.current.editor.EditorOption.readOnly)?P.setValue(t||""):t!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[t],y),Lt(()=>{S.current?.getModel()?.original.setValue(e||"")},[e],y),Lt(()=>{let{original:P,modified:j}=S.current.getModel();E.current.editor.setModelLanguage(P,i||r||"text"),E.current.editor.setModelLanguage(j,n||r||"text")},[r,i,n],y),Lt(()=>{E.current?.editor.setTheme(l)},[l],y),Lt(()=>{S.current?.updateOptions(d)},[d],y);let C=O.useCallback(()=>{if(!E.current)return;k.current(E.current);let P=ii(E.current,e||"",i||r||"text",o||""),j=ii(E.current,t||"",n||r||"text",a||"");S.current?.setModel({original:P,modified:j})},[r,t,n,e,i,o,a]),N=O.useCallback(()=>{!V.current&&w.current&&(S.current=E.current.editor.createDiffEditor(w.current,{automaticLayout:!0,...d}),C(),E.current?.editor.setTheme(l),I(!0),V.current=!0)},[d,l,C]);O.useEffect(()=>{y&&T.current(S.current,E.current)},[y]),O.useEffect(()=>{!x&&!y&&N()},[x,y,N]);function F(){let P=S.current?.getModel();u||P?.original?.dispose(),s||P?.modified?.dispose(),S.current?.dispose()}return O.createElement(Sh,{width:g,height:f,isEditorReady:y,loading:c,_ref:w,className:h,wrapperProps:p})}var gT=mT;O.memo(gT);function hT(e){let t=O.useRef();return O.useEffect(()=>{t.current=e},[e]),t.current}var vT=hT,Is=new Map;function bT({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:n,path:o,theme:a="light",line:u,loading:s="Loading...",options:l={},overrideServices:c={},saveViewState:d=!0,keepCurrentModel:f=!1,width:g="100%",height:h="100%",className:p,wrapperProps:m={},beforeMount:b=go,onMount:y=go,onChange:I,onValidate:x=go}){let[v,S]=O.useState(!1),[E,w]=O.useState(!0),T=O.useRef(null),k=O.useRef(null),V=O.useRef(null),C=O.useRef(y),N=O.useRef(b),F=O.useRef(),P=O.useRef(i),j=vT(o),B=O.useRef(!1),U=O.useRef(!1);wh(()=>{let L=Cc.init();return L.then(G=>(T.current=G)&&w(!1)).catch(G=>G?.type!=="cancelation"&&console.error("Monaco initialization: error:",G)),()=>k.current?$():L.cancel()}),Lt(()=>{let L=ii(T.current,e||i||"",t||n||"",o||r||"");L!==k.current?.getModel()&&(d&&Is.set(j,k.current?.saveViewState()),k.current?.setModel(L),d&&k.current?.restoreViewState(Is.get(o)))},[o],v),Lt(()=>{k.current?.updateOptions(l)},[l],v),Lt(()=>{!k.current||i===void 0||(k.current.getOption(T.current.editor.EditorOption.readOnly)?k.current.setValue(i):i!==k.current.getValue()&&(U.current=!0,k.current.executeEdits("",[{range:k.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),k.current.pushUndoStop(),U.current=!1))},[i],v),Lt(()=>{let L=k.current?.getModel();L&&n&&T.current?.editor.setModelLanguage(L,n)},[n],v),Lt(()=>{u!==void 0&&k.current?.revealLine(u)},[u],v),Lt(()=>{T.current?.editor.setTheme(a)},[a],v);let Q=O.useCallback(()=>{if(!(!V.current||!T.current)&&!B.current){N.current(T.current);let L=o||r,G=ii(T.current,i||e||"",t||n||"",L||"");k.current=T.current?.editor.create(V.current,{model:G,automaticLayout:!0,...l},c),d&&k.current.restoreViewState(Is.get(L)),T.current.editor.setTheme(a),u!==void 0&&k.current.revealLine(u),S(!0),B.current=!0}},[e,t,r,i,n,o,l,c,d,a,u]);O.useEffect(()=>{v&&C.current(k.current,T.current)},[v]),O.useEffect(()=>{!E&&!v&&Q()},[E,v,Q]),P.current=i,O.useEffect(()=>{v&&I&&(F.current?.dispose(),F.current=k.current?.onDidChangeModelContent(L=>{U.current||I(k.current.getValue(),L)}))},[v,I]),O.useEffect(()=>{if(v){let L=T.current.editor.onDidChangeMarkers(G=>{let _=k.current.getModel()?.uri;if(_&&G.find(X=>X.path===_.path)){let X=T.current.editor.getModelMarkers({resource:_});x?.(X)}});return()=>{L?.dispose()}}return()=>{}},[v,x]);function $(){F.current?.dispose(),f?d&&Is.set(o,k.current.saveViewState()):k.current.getModel()?.dispose(),k.current.dispose()}return O.createElement(Sh,{width:g,height:h,isEditorReady:v,loading:s,_ref:V,className:p,wrapperProps:m})}var yT=bT;O.memo(yT);var Bt={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},Th=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],Oh=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],kh=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],St=typeof window<"u"&&typeof window.document<"u"?window.document:{},Xt="fullscreenEnabled"in St&&Object.keys(Bt)||Th[0]in St&&Th||Oh[0]in St&&Oh||kh[0]in St&&kh||[],$r={requestFullscreen:function(e){return e[Xt[Bt.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[Xt[Bt.requestFullscreen]]},get exitFullscreen(){return St[Xt[Bt.exitFullscreen]].bind(St)},get fullscreenPseudoClass(){return":"+Xt[Bt.fullscreen]},addEventListener:function(e,t,r){return St.addEventListener(Xt[Bt[e]],t,r)},removeEventListener:function(e,t,r){return St.removeEventListener(Xt[Bt[e]],t,r)},get fullscreenEnabled(){return!!St[Xt[Bt.fullscreenEnabled]]},set fullscreenEnabled(e){},get fullscreenElement(){return St[Xt[Bt.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return St[("on"+Xt[Bt.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return St[("on"+Xt[Bt.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return St[("on"+Xt[Bt.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return St[("on"+Xt[Bt.fullscreenerror]).toLowerCase()]=e}};function CT(){var e=O.useState(!1),t=e[0],r=e[1],i=O.useRef(null);O.useEffect(function(){var a=function(){r($r.fullscreenElement===i.current)};return $r.addEventListener("fullscreenchange",a),function(){return $r.removeEventListener("fullscreenchange",a)}},[]);var n=O.useCallback(function(){if($r.fullscreenElement)return $r.exitFullscreen().then(function(){return $r.requestFullscreen(i.current)});if(i.current)return $r.requestFullscreen(i.current)},[]),o=O.useCallback(function(){return $r.fullscreenElement===i.current?$r.exitFullscreen():Promise.resolve()},[]);return O.useMemo(function(){return{active:t,enter:n,exit:o,node:i}},[t,n,o])}var xT=function(t){var r=t.handle,i=t.onChange,n=t.children,o=t.className,a=[];return o&&a.push(o),a.push("fullscreen"),r.active&&a.push("fullscreen-enabled"),O.useEffect(function(){i&&i(r.active,r)},[r.active]),O.createElement("div",{className:a.join(" "),ref:r.node,style:r.active?{height:"100%",width:"100%"}:void 0},n)},Ph=function(t){return t.reduce(function(r,i){var n=i[0],o=i[1];return r[n]=o,r},{})},Nh=typeof window<"u"&&window.document&&window.document.createElement?R.useLayoutEffect:R.useEffect,wt="top",Ut="bottom",Yt="right",At="left",Ec="auto",ho=[wt,Ut,Yt,At],oi="start",vo="end",ET="clippingParents",Fh="viewport",bo="popper",IT="reference",Rh=ho.reduce(function(e,t){return e.concat([t+"-"+oi,t+"-"+vo])},[]),Mh=[].concat(ho,[Ec]).reduce(function(e,t){return e.concat([t,t+"-"+oi,t+"-"+vo])},[]),ST="beforeRead",wT="read",AT="afterRead",TT="beforeMain",OT="main",kT="afterMain",PT="beforeWrite",NT="write",FT="afterWrite",RT=[ST,wT,AT,TT,OT,kT,PT,NT,FT];function vr(e){return e?(e.nodeName||"").toLowerCase():null}function $t(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vn(e){var t=$t(e).Element;return e instanceof t||e instanceof Element}function Jt(e){var t=$t(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ic(e){if(typeof ShadowRoot>"u")return!1;var t=$t(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function MT(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},n=t.attributes[r]||{},o=t.elements[r];!Jt(o)||!vr(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(a){var u=n[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function VT(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var n=t.elements[i],o=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),u=a.reduce(function(s,l){return s[l]="",s},{});!Jt(n)||!vr(n)||(Object.assign(n.style,u),Object.keys(o).forEach(function(s){n.removeAttribute(s)}))})}}const jT={name:"applyStyles",enabled:!0,phase:"write",fn:MT,effect:VT,requires:["computeStyles"]};function br(e){return e.split("-")[0]}var bn=Math.max,Ss=Math.min,ai=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Vh(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function si(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),n=1,o=1;t&&Jt(e)&&(n=e.offsetWidth>0&&ai(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ai(i.height)/e.offsetHeight||1);var a=vn(e)?$t(e):window,u=a.visualViewport,s=!Vh()&&r,l=(i.left+(s&&u?u.offsetLeft:0))/n,c=(i.top+(s&&u?u.offsetTop:0))/o,d=i.width/n,f=i.height/o;return{width:d,height:f,top:c,right:l+d,bottom:c+f,left:l,x:l,y:c}}function wc(e){var t=si(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function jh(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ic(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Dr(e){return $t(e).getComputedStyle(e)}function LT(e){return["table","td","th"].indexOf(vr(e))>=0}function Kr(e){return((vn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ws(e){return vr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ic(e)?e.host:null)||Kr(e)}function Lh(e){return!Jt(e)||Dr(e).position==="fixed"?null:e.offsetParent}function BT(e){var t=/firefox/i.test(Sc()),r=/Trident/i.test(Sc());if(r&&Jt(e)){var i=Dr(e);if(i.position==="fixed")return null}var n=ws(e);for(Ic(n)&&(n=n.host);Jt(n)&&["html","body"].indexOf(vr(n))<0;){var o=Dr(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function yo(e){for(var t=$t(e),r=Lh(e);r&<(r)&&Dr(r).position==="static";)r=Lh(r);return r&&(vr(r)==="html"||vr(r)==="body"&&Dr(r).position==="static")?t:r||BT(e)||t}function Ac(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Co(e,t,r){return bn(e,Ss(t,r))}function $T(e,t,r){var i=Co(e,t,r);return i>r?r:i}function Bh(){return{top:0,right:0,bottom:0,left:0}}function $h(e){return Object.assign({},Bh(),e)}function Dh(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var DT=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$h(typeof t!="number"?t:Dh(t,ho))};function _T(e){var t,r=e.state,i=e.name,n=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,u=br(r.placement),s=Ac(u),l=[At,Yt].indexOf(u)>=0,c=l?"height":"width";if(!(!o||!a)){var d=DT(n.padding,r),f=wc(o),g=s==="y"?wt:At,h=s==="y"?Ut:Yt,p=r.rects.reference[c]+r.rects.reference[s]-a[s]-r.rects.popper[c],m=a[s]-r.rects.reference[s],b=yo(o),y=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,I=p/2-m/2,x=d[g],v=y-f[c]-d[h],S=y/2-f[c]/2+I,E=Co(x,S,v),w=s;r.modifiersData[i]=(t={},t[w]=E,t.centerOffset=E-S,t)}}function GT(e){var t=e.state,r=e.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||jh(t.elements.popper,n)&&(t.elements.arrow=n))}const HT={name:"arrow",enabled:!0,phase:"main",fn:_T,effect:GT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ui(e){return e.split("-")[1]}var WT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zT(e,t){var r=e.x,i=e.y,n=t.devicePixelRatio||1;return{x:ai(r*n)/n||0,y:ai(i*n)/n||0}}function _h(e){var t,r=e.popper,i=e.popperRect,n=e.placement,o=e.variation,a=e.offsets,u=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,g=f===void 0?0:f,h=a.y,p=h===void 0?0:h,m=typeof c=="function"?c({x:g,y:p}):{x:g,y:p};g=m.x,p=m.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),I=At,x=wt,v=window;if(l){var S=yo(r),E="clientHeight",w="clientWidth";if(S===$t(r)&&(S=Kr(r),Dr(S).position!=="static"&&u==="absolute"&&(E="scrollHeight",w="scrollWidth")),S=S,n===wt||(n===At||n===Yt)&&o===vo){x=Ut;var T=d&&S===v&&v.visualViewport?v.visualViewport.height:S[E];p-=T-i.height,p*=s?1:-1}if(n===At||(n===wt||n===Ut)&&o===vo){I=Yt;var k=d&&S===v&&v.visualViewport?v.visualViewport.width:S[w];g-=k-i.width,g*=s?1:-1}}var V=Object.assign({position:u},l&&WT),C=c===!0?zT({x:g,y:p},$t(r)):{x:g,y:p};if(g=C.x,p=C.y,s){var N;return Object.assign({},V,(N={},N[x]=y?"0":"",N[I]=b?"0":"",N.transform=(v.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",N))}return Object.assign({},V,(t={},t[x]=y?p+"px":"",t[I]=b?g+"px":"",t.transform="",t))}function XT(e){var t=e.state,r=e.options,i=r.gpuAcceleration,n=i===void 0?!0:i,o=r.adaptive,a=o===void 0?!0:o,u=r.roundOffsets,s=u===void 0?!0:u,l={placement:br(t.placement),variation:ui(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_h(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_h(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const UT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:XT,data:{}};var As={passive:!0};function YT(e){var t=e.state,r=e.instance,i=e.options,n=i.scroll,o=n===void 0?!0:n,a=i.resize,u=a===void 0?!0:a,s=$t(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",r.update,As)}),u&&s.addEventListener("resize",r.update,As),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",r.update,As)}),u&&s.removeEventListener("resize",r.update,As)}}const JT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YT,data:{}};var ZT={left:"right",right:"left",bottom:"top",top:"bottom"};function Ts(e){return e.replace(/left|right|bottom|top/g,function(t){return ZT[t]})}var qT={start:"end",end:"start"};function Gh(e){return e.replace(/start|end/g,function(t){return qT[t]})}function Tc(e){var t=$t(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Oc(e){return si(Kr(e)).left+Tc(e).scrollLeft}function QT(e,t){var r=$t(e),i=Kr(e),n=r.visualViewport,o=i.clientWidth,a=i.clientHeight,u=0,s=0;if(n){o=n.width,a=n.height;var l=Vh();(l||!l&&t==="fixed")&&(u=n.offsetLeft,s=n.offsetTop)}return{width:o,height:a,x:u+Oc(e),y:s}}function KT(e){var t,r=Kr(e),i=Tc(e),n=(t=e.ownerDocument)==null?void 0:t.body,o=bn(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=bn(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),u=-i.scrollLeft+Oc(e),s=-i.scrollTop;return Dr(n||r).direction==="rtl"&&(u+=bn(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:a,x:u,y:s}}function kc(e){var t=Dr(e),r=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function Hh(e){return["html","body","#document"].indexOf(vr(e))>=0?e.ownerDocument.body:Jt(e)&&kc(e)?e:Hh(ws(e))}function xo(e,t){var r;t===void 0&&(t=[]);var i=Hh(e),n=i===((r=e.ownerDocument)==null?void 0:r.body),o=$t(i),a=n?[o].concat(o.visualViewport||[],kc(i)?i:[]):i,u=t.concat(a);return n?u:u.concat(xo(ws(a)))}function Pc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eO(e,t){var r=si(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Wh(e,t,r){return t===Fh?Pc(QT(e,r)):vn(t)?eO(t,r):Pc(KT(Kr(e)))}function tO(e){var t=xo(ws(e)),r=["absolute","fixed"].indexOf(Dr(e).position)>=0,i=r&&Jt(e)?yo(e):e;return vn(i)?t.filter(function(n){return vn(n)&&jh(n,i)&&vr(n)!=="body"}):[]}function rO(e,t,r,i){var n=t==="clippingParents"?tO(e):[].concat(t),o=[].concat(n,[r]),a=o[0],u=o.reduce(function(s,l){var c=Wh(e,l,i);return s.top=bn(c.top,s.top),s.right=Ss(c.right,s.right),s.bottom=Ss(c.bottom,s.bottom),s.left=bn(c.left,s.left),s},Wh(e,a,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function zh(e){var t=e.reference,r=e.element,i=e.placement,n=i?br(i):null,o=i?ui(i):null,a=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,s;switch(n){case wt:s={x:a,y:t.y-r.height};break;case Ut:s={x:a,y:t.y+t.height};break;case Yt:s={x:t.x+t.width,y:u};break;case At:s={x:t.x-r.width,y:u};break;default:s={x:t.x,y:t.y}}var l=n?Ac(n):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case oi:s[l]=s[l]-(t[c]/2-r[c]/2);break;case vo:s[l]=s[l]+(t[c]/2-r[c]/2);break}}return s}function Eo(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=i===void 0?e.placement:i,o=r.strategy,a=o===void 0?e.strategy:o,u=r.boundary,s=u===void 0?ET:u,l=r.rootBoundary,c=l===void 0?Fh:l,d=r.elementContext,f=d===void 0?bo:d,g=r.altBoundary,h=g===void 0?!1:g,p=r.padding,m=p===void 0?0:p,b=$h(typeof m!="number"?m:Dh(m,ho)),y=f===bo?IT:bo,I=e.rects.popper,x=e.elements[h?y:f],v=rO(vn(x)?x:x.contextElement||Kr(e.elements.popper),s,c,a),S=si(e.elements.reference),E=zh({reference:S,element:I,placement:n}),w=Pc(Object.assign({},I,E)),T=f===bo?w:S,k={top:v.top-T.top+b.top,bottom:T.bottom-v.bottom+b.bottom,left:v.left-T.left+b.left,right:T.right-v.right+b.right},V=e.modifiersData.offset;if(f===bo&&V){var C=V[n];Object.keys(k).forEach(function(N){var F=[Yt,Ut].indexOf(N)>=0?1:-1,P=[wt,Ut].indexOf(N)>=0?"y":"x";k[N]+=C[P]*F})}return k}function nO(e,t){t===void 0&&(t={});var r=t,i=r.placement,n=r.boundary,o=r.rootBoundary,a=r.padding,u=r.flipVariations,s=r.allowedAutoPlacements,l=s===void 0?Mh:s,c=ui(i),d=c?u?Rh:Rh.filter(function(h){return ui(h)===c}):ho,f=d.filter(function(h){return l.indexOf(h)>=0});f.length===0&&(f=d);var g=f.reduce(function(h,p){return h[p]=Eo(e,{placement:p,boundary:n,rootBoundary:o,padding:a})[br(p)],h},{});return Object.keys(g).sort(function(h,p){return g[h]-g[p]})}function iO(e){if(br(e)===Ec)return[];var t=Ts(e);return[Gh(e),t,Gh(t)]}function oO(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var n=r.mainAxis,o=n===void 0?!0:n,a=r.altAxis,u=a===void 0?!0:a,s=r.fallbackPlacements,l=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,g=r.flipVariations,h=g===void 0?!0:g,p=r.allowedAutoPlacements,m=t.options.placement,b=br(m),y=b===m,I=s||(y||!h?[Ts(m)]:iO(m)),x=[m].concat(I).reduce(function(X,K){return X.concat(br(K)===Ec?nO(t,{placement:K,boundary:c,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:p}):K)},[]),v=t.rects.reference,S=t.rects.popper,E=new Map,w=!0,T=x[0],k=0;k<x.length;k++){var V=x[k],C=br(V),N=ui(V)===oi,F=[wt,Ut].indexOf(C)>=0,P=F?"width":"height",j=Eo(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:f,padding:l}),B=F?N?Yt:At:N?Ut:wt;v[P]>S[P]&&(B=Ts(B));var U=Ts(B),Q=[];if(o&&Q.push(j[C]<=0),u&&Q.push(j[B]<=0,j[U]<=0),Q.every(function(X){return X})){T=V,w=!1;break}E.set(V,Q)}if(w)for(var $=h?3:1,L=function(K){var ee=x.find(function(D){var Z=E.get(D);if(Z)return Z.slice(0,K).every(function(ne){return ne})});if(ee)return T=ee,"break"},G=$;G>0;G--){var _=L(G);if(_==="break")break}t.placement!==T&&(t.modifiersData[i]._skip=!0,t.placement=T,t.reset=!0)}}const aO={name:"flip",enabled:!0,phase:"main",fn:oO,requiresIfExists:["offset"],data:{_skip:!1}};function Xh(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Uh(e){return[wt,Yt,Ut,At].some(function(t){return e[t]>=0})}function sO(e){var t=e.state,r=e.name,i=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,a=Eo(t,{elementContext:"reference"}),u=Eo(t,{altBoundary:!0}),s=Xh(a,i),l=Xh(u,n,o),c=Uh(s),d=Uh(l);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const uO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sO};function lO(e,t,r){var i=br(e),n=[At,wt].indexOf(i)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],u=o[1];return a=a||0,u=(u||0)*n,[At,Yt].indexOf(i)>=0?{x:u,y:a}:{x:a,y:u}}function cO(e){var t=e.state,r=e.options,i=e.name,n=r.offset,o=n===void 0?[0,0]:n,a=Mh.reduce(function(c,d){return c[d]=lO(d,t.rects,o),c},{}),u=a[t.placement],s=u.x,l=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=a}const dO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cO};function fO(e){var t=e.state,r=e.name;t.modifiersData[r]=zh({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const pO={name:"popperOffsets",enabled:!0,phase:"read",fn:fO,data:{}};function mO(e){return e==="x"?"y":"x"}function gO(e){var t=e.state,r=e.options,i=e.name,n=r.mainAxis,o=n===void 0?!0:n,a=r.altAxis,u=a===void 0?!1:a,s=r.boundary,l=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,g=f===void 0?!0:f,h=r.tetherOffset,p=h===void 0?0:h,m=Eo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),b=br(t.placement),y=ui(t.placement),I=!y,x=Ac(b),v=mO(x),S=t.modifiersData.popperOffsets,E=t.rects.reference,w=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,k=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(S){if(o){var N,F=x==="y"?wt:At,P=x==="y"?Ut:Yt,j=x==="y"?"height":"width",B=S[x],U=B+m[F],Q=B-m[P],$=g?-w[j]/2:0,L=y===oi?E[j]:w[j],G=y===oi?-w[j]:-E[j],_=t.elements.arrow,X=g&&_?wc(_):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Bh(),ee=K[F],D=K[P],Z=Co(0,E[j],X[j]),ne=I?E[j]/2-$-Z-ee-k.mainAxis:L-Z-ee-k.mainAxis,ce=I?-E[j]/2+$+Z+D+k.mainAxis:G+Z+D+k.mainAxis,Ee=t.elements.arrow&&yo(t.elements.arrow),z=Ee?x==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Re=(N=V?.[x])!=null?N:0,ae=B+ne-Re-z,Qe=B+ce-Re,ze=Co(g?Ss(U,ae):U,B,g?bn(Q,Qe):Q);S[x]=ze,C[x]=ze-B}if(u){var Zt,_r=x==="x"?wt:At,qt=x==="x"?Ut:Yt,xt=S[v],Xe=v==="y"?"height":"width",Ge=xt+m[_r],mt=xt-m[qt],Qt=[wt,At].indexOf(b)!==-1,Kt=(Zt=V?.[v])!=null?Zt:0,yn=Qt?Ge:xt-E[Xe]-w[Xe]-Kt+k.altAxis,Cn=Qt?xt+E[Xe]+w[Xe]-Kt-k.altAxis:mt,ci=g&&Qt?$T(yn,xt,Cn):Co(g?yn:Ge,xt,g?Cn:mt);S[v]=ci,C[v]=ci-xt}t.modifiersData[i]=C}}const hO={name:"preventOverflow",enabled:!0,phase:"main",fn:gO,requiresIfExists:["offset"]};function vO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bO(e){return e===$t(e)||!Jt(e)?Tc(e):vO(e)}function yO(e){var t=e.getBoundingClientRect(),r=ai(t.width)/e.offsetWidth||1,i=ai(t.height)/e.offsetHeight||1;return r!==1||i!==1}function CO(e,t,r){r===void 0&&(r=!1);var i=Jt(t),n=Jt(t)&&yO(t),o=Kr(t),a=si(e,n,r),u={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!r)&&((vr(t)!=="body"||kc(o))&&(u=bO(t)),Jt(t)?(s=si(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Oc(o))),{x:a.left+u.scrollLeft-s.x,y:a.top+u.scrollTop-s.y,width:a.width,height:a.height}}function xO(e){var t=new Map,r=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function n(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!r.has(u)){var s=t.get(u);s&&n(s)}}),i.push(o)}return e.forEach(function(o){r.has(o.name)||n(o)}),i}function EO(e){var t=xO(e);return RT.reduce(function(r,i){return r.concat(t.filter(function(n){return n.phase===i}))},[])}function IO(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function SO(e){var t=e.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Yh={placement:"bottom",modifiers:[],strategy:"absolute"};function Jh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function wO(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,n=t.defaultOptions,o=n===void 0?Yh:n;return function(u,s,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yh,o),modifiersData:{},elements:{reference:u,popper:s},attributes:{},styles:{}},d=[],f=!1,g={state:c,setOptions:function(b){var y=typeof b=="function"?b(c.options):b;p(),c.options=Object.assign({},o,c.options,y),c.scrollParents={reference:vn(u)?xo(u):u.contextElement?xo(u.contextElement):[],popper:xo(s)};var I=EO(SO([].concat(i,c.options.modifiers)));return c.orderedModifiers=I.filter(function(x){return x.enabled}),h(),g.update()},forceUpdate:function(){if(!f){var b=c.elements,y=b.reference,I=b.popper;if(Jh(y,I)){c.rects={reference:CO(y,yo(I),c.options.strategy==="fixed"),popper:wc(I)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(k){return c.modifiersData[k.name]=Object.assign({},k.data)});for(var x=0;x<c.orderedModifiers.length;x++){if(c.reset===!0){c.reset=!1,x=-1;continue}var v=c.orderedModifiers[x],S=v.fn,E=v.options,w=E===void 0?{}:E,T=v.name;typeof S=="function"&&(c=S({state:c,options:w,name:T,instance:g})||c)}}}},update:IO(function(){return new Promise(function(m){g.forceUpdate(),m(c)})}),destroy:function(){p(),f=!0}};if(!Jh(u,s))return g;g.setOptions(l).then(function(m){!f&&l.onFirstUpdate&&l.onFirstUpdate(m)});function h(){c.orderedModifiers.forEach(function(m){var b=m.name,y=m.options,I=y===void 0?{}:y,x=m.effect;if(typeof x=="function"){var v=x({state:c,name:b,instance:g,options:I}),S=function(){};d.push(v||S)}})}function p(){d.forEach(function(m){return m()}),d=[]}return g}}var AO=[JT,pO,UT,jT,dO,aO,hO,HT,uO],TO=wO({defaultModifiers:AO}),Nc,Zh;function OO(){if(Zh)return Nc;Zh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function n(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var u,s,l;if(Array.isArray(o)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(!n(o[s],a[s]))return!1;return!0}var c;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;for(c=o.entries();!(s=c.next()).done;)if(!n(s.value[1],a.get(s.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(s=c.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(u=o.length,u!=a.length)return!1;for(s=u;s--!==0;)if(o[s]!==a[s])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(l=Object.keys(o),u=l.length,u!==Object.keys(a).length)return!1;for(s=u;s--!==0;)if(!Object.prototype.hasOwnProperty.call(a,l[s]))return!1;if(e&&o instanceof Element)return!1;for(s=u;s--!==0;)if(!((l[s]==="_owner"||l[s]==="__v"||l[s]==="__o")&&o.$$typeof)&&!n(o[l[s]],a[l[s]]))return!1;return!0}return o!==o&&a!==a}return Nc=function(a,u){try{return n(a,u)}catch(s){if((s.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw s}},Nc}var kO=OO();const PO=Fo(kO);var NO=[],FO=function(t,r,i){i===void 0&&(i={});var n=R.useRef(null),o={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||NO},a=R.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=a[0],s=a[1],l=R.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var h=g.state,p=Object.keys(h.elements);Rs.flushSync(function(){s({styles:Ph(p.map(function(m){return[m,h.styles[m]||{}]})),attributes:Ph(p.map(function(m){return[m,h.attributes[m]]}))})})},requires:["computeStyles"]}},[]),c=R.useMemo(function(){var f={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return PO(n.current,f)?n.current||f:(n.current=f,f)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),d=R.useRef();return Nh(function(){d.current&&d.current.setOptions(c)},[c]),Nh(function(){if(!(t==null||r==null)){var f=i.createPopper||TO,g=f(t,r,c);return d.current=g,function(){g.destroy(),d.current=null}}},[t,r,i.createPopper]),{state:d.current?d.current.state:null,styles:u.styles,attributes:u.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};function qh(e){var t=R.useRef(e);return t.current=e,R.useCallback(function(){return t.current},[])}var RO=function(){};function MO(e){var t=e.initial,r=e.value,i=e.onChange,n=i===void 0?RO:i;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var o=R.useState(t),a=o[0],u=o[1],s=qh(a),l=R.useCallback(function(d){var f=s(),g=typeof d=="function"?d(f):d;typeof g.persist=="function"&&g.persist(),u(g),typeof n=="function"&&n(g)},[s,n]),c=r!==void 0;return[c?r:a,c?n:l]}function Qh(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var VO=["styles","attributes"],Kh={getBoundingClientRect:Qh()},ev={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function jO(e,t){var r,i,n;e===void 0&&(e={}),t===void 0&&(t={});var o=Object.keys(ev).reduce(function(P,j){var B;return se({},P,(B={},B[j]=P[j]!==void 0?P[j]:ev[j],B))},e),a=R.useMemo(function(){return[{name:"offset",options:{offset:o.offset}}]},Array.isArray(o.offset)?o.offset:[]),u=se({},t,{placement:t.placement||o.placement,modifiers:t.modifiers||a}),s=R.useState(null),l=s[0],c=s[1],d=R.useState(null),f=d[0],g=d[1],h=MO({initial:o.defaultVisible,value:o.visible,onChange:o.onVisibleChange}),p=h[0],m=h[1],b=R.useRef();R.useEffect(function(){return function(){return clearTimeout(b.current)}},[]);var y=FO(o.followCursor?Kh:l,f,u),I=y.styles,x=y.attributes,v=Sd(y,VO),S=v.update,E=qh({visible:p,triggerRef:l,tooltipRef:f,finalConfig:o}),w=R.useCallback(function(P){return Array.isArray(o.trigger)?o.trigger.includes(P):o.trigger===P},Array.isArray(o.trigger)?o.trigger:[o.trigger]),T=R.useCallback(function(){clearTimeout(b.current),b.current=window.setTimeout(function(){return m(!1)},o.delayHide)},[o.delayHide,m]),k=R.useCallback(function(){clearTimeout(b.current),b.current=window.setTimeout(function(){return m(!0)},o.delayShow)},[o.delayShow,m]),V=R.useCallback(function(){E().visible?T():k()},[E,T,k]);R.useEffect(function(){if(E().finalConfig.closeOnOutsideClick){var P=function(B){var U,Q=E(),$=Q.tooltipRef,L=Q.triggerRef,G=(B.composedPath==null||(U=B.composedPath())==null?void 0:U[0])||B.target;G instanceof Node&&$!=null&&L!=null&&!$.contains(G)&&!L.contains(G)&&T()};return document.addEventListener("mousedown",P),function(){return document.removeEventListener("mousedown",P)}}},[E,T]),R.useEffect(function(){if(!(l==null||!w("click")))return l.addEventListener("click",V),function(){return l.removeEventListener("click",V)}},[l,w,V]),R.useEffect(function(){if(!(l==null||!w("double-click")))return l.addEventListener("dblclick",V),function(){return l.removeEventListener("dblclick",V)}},[l,w,V]),R.useEffect(function(){if(!(l==null||!w("right-click"))){var P=function(B){B.preventDefault(),V()};return l.addEventListener("contextmenu",P),function(){return l.removeEventListener("contextmenu",P)}}},[l,w,V]),R.useEffect(function(){if(!(l==null||!w("focus")))return l.addEventListener("focus",k),l.addEventListener("blur",T),function(){l.removeEventListener("focus",k),l.removeEventListener("blur",T)}},[l,w,k,T]),R.useEffect(function(){if(!(l==null||!w("hover")))return l.addEventListener("mouseenter",k),l.addEventListener("mouseleave",T),function(){l.removeEventListener("mouseenter",k),l.removeEventListener("mouseleave",T)}},[l,w,k,T]),R.useEffect(function(){if(!(f==null||!w("hover")||!E().finalConfig.interactive))return f.addEventListener("mouseenter",k),f.addEventListener("mouseleave",T),function(){f.removeEventListener("mouseenter",k),f.removeEventListener("mouseleave",T)}},[f,w,k,T,E]);var C=v==null||(r=v.state)==null||(i=r.modifiersData)==null||(n=i.hide)==null?void 0:n.isReferenceHidden;R.useEffect(function(){o.closeOnTriggerHidden&&C&&T()},[o.closeOnTriggerHidden,T,C]),R.useEffect(function(){if(!o.followCursor||l==null)return;function P(j){var B=j.clientX,U=j.clientY;Kh.getBoundingClientRect=Qh(B,U),S?.()}return l.addEventListener("mousemove",P),function(){return l.removeEventListener("mousemove",P)}},[o.followCursor,l,S]),R.useEffect(function(){if(!(f==null||S==null||o.mutationObserverOptions==null)){var P=new MutationObserver(S);return P.observe(f,o.mutationObserverOptions),function(){return P.disconnect()}}},[o.mutationObserverOptions,f,S]);var N=function(j){return j===void 0&&(j={}),se({},j,{style:se({},j.style,I.popper)},x.popper,{"data-popper-interactive":o.interactive})},F=function(j){return j===void 0&&(j={}),se({},j,x.arrow,{style:se({},j.style,I.arrow),"data-popper-arrow":!0})};return se({getArrowProps:F,getTooltipProps:N,setTooltipRef:g,setTriggerRef:c,tooltipRef:f,triggerRef:l,visible:p},v)}const en=({children:e,title:t,hideTooltip:r=!1,delayShow:i=!1,whiteSpace:n="initial",...o})=>{const{getArrowProps:a,getTooltipProps:u,setTooltipRef:s,setTriggerRef:l,visible:c}=jO({placement:o.placement||"top"}),[d,f]=O.useState(!i),[g,h]=O.useState(null),p=()=>{if(i){const b=setTimeout(()=>{f(!0)},1e3);h(b)}else f(!0)},m=()=>{g&&(clearTimeout(g),h(null)),i&&f(!1)};return A.jsxs(A.Fragment,{children:[A.jsx("div",{ref:l,className:o?.className,onMouseEnter:p,onMouseLeave:m,children:e}),c&&(i?d&&t:t)&&!r&&Sn.createPortal(A.jsxs("div",{ref:s,...u({className:"tooltip-container",style:{whiteSpace:n}}),children:[t,A.jsx("div",{...a({className:"tooltip-arrow"})})]}),document.body)]})};var Fc,tv;function LO(){if(tv)return Fc;tv=1;var e="Expected a function",t=NaN,r="[object Symbol]",i=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,s=typeof No=="object"&&No&&No.Object===Object&&No,l=typeof self=="object"&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),d=Object.prototype,f=d.toString,g=Math.max,h=Math.min,p=function(){return c.Date.now()};function m(v,S,E){var w,T,k,V,C,N,F=0,P=!1,j=!1,B=!0;if(typeof v!="function")throw new TypeError(e);S=x(S)||0,b(E)&&(P=!!E.leading,j="maxWait"in E,k=j?g(x(E.maxWait)||0,S):k,B="trailing"in E?!!E.trailing:B);function U(D){var Z=w,ne=T;return w=T=void 0,F=D,V=v.apply(ne,Z),V}function Q(D){return F=D,C=setTimeout(G,S),P?U(D):V}function $(D){var Z=D-N,ne=D-F,ce=S-Z;return j?h(ce,k-ne):ce}function L(D){var Z=D-N,ne=D-F;return N===void 0||Z>=S||Z<0||j&&ne>=k}function G(){var D=p();if(L(D))return _(D);C=setTimeout(G,$(D))}function _(D){return C=void 0,B&&w?U(D):(w=T=void 0,V)}function X(){C!==void 0&&clearTimeout(C),F=0,w=N=T=C=void 0}function K(){return C===void 0?V:_(p())}function ee(){var D=p(),Z=L(D);if(w=arguments,T=this,N=D,Z){if(C===void 0)return Q(N);if(j)return C=setTimeout(G,S),U(N)}return C===void 0&&(C=setTimeout(G,S)),V}return ee.cancel=X,ee.flush=K,ee}function b(v){var S=typeof v;return!!v&&(S=="object"||S=="function")}function y(v){return!!v&&typeof v=="object"}function I(v){return typeof v=="symbol"||y(v)&&f.call(v)==r}function x(v){if(typeof v=="number")return v;if(I(v))return t;if(b(v)){var S=typeof v.valueOf=="function"?v.valueOf():v;v=b(S)?S+"":S}if(typeof v!="string")return v===0?v:+v;v=v.replace(i,"");var E=o.test(v);return E||a.test(v)?u(v.slice(2),E?2:8):n.test(v)?t:+v}return Fc=m,Fc}var BO=LO();const $O=Fo(BO),Tt={createSuccess:function(e){return`${e} created successfully.`},createFailure:function(e){return`${e} creation failed. Please retry.`},updateSuccess:function(e){return`${e} updated successfully.`},updateFailure:function(e){return`${e} update failed. Please retry.`},copySuccess:function(e){return`${e} copied successfully.`},copyFailure:function(e){return`${e} copy failed. Please retry.`},copyToClipboard:function(e){return`${e} copied to clipboard.`},deleteSuccess:function(e){return`${e} deleted successfully.`},deleteFailure:function(e){return`${e} delete failed. Please retry.`},errorMessage:"Something went wrong.",requiredFieldError:"Please fill out all mandatory fields.",noItemSelected:"No item selected.",invalidFileType:"Non acceptable file type.",formatFailed:"Failed to format."},rv=({monacoEditor:e,currentEditorModel:t,code:r,setCode:i,enable:n,checkSyntaxAPI:o,formatCodeAPI:a})=>{const[u,s]=O.useState(null),[l,c]=O.useState(!1);function d(p){const m={};let b=0;return{result:p.replace(/{{(.*?)}}/g,(I,x,v,S)=>{const E=S.slice(0,v),w=S.slice(v+I.length),T=E.endsWith('"')&&w.startsWith('"'),k=E.endsWith("'")&&w.startsWith("'");return T||k?I:(m[`__dynamic_value_${b}`]=I,`"__dynamic_value_${b++}"`)}),originalValues:m}}function f(p,m){return p.replace(/"__dynamic_value_\d+"/g,b=>{const y=b.slice(1,-1);return m[y]||b})}const g=async()=>{if(!e||!t||!o){console.warn("Monaco editor, model, or syntax check API not available");return}c(!0);try{const{result:p}=d(r),b=(await o(p))?.data?.error;if(b?.message){s(b);const y=[{startLineNumber:b.line||1,endLineNumber:b.line||1,startColumn:b.column||1,endColumn:b.column||1,message:b.message,severity:e.MarkerSeverity?.Error||8}];try{e.editor.setModelMarkers(t,"owner",y)}catch(I){console.warn("Failed to set error markers:",I)}}else{s(null);try{e.editor.setModelMarkers(t,"owner",[])}catch(y){console.warn("Failed to clear error markers:",y)}}}catch(p){if(console.warn("Syntax check failed:",p),s(null),e&&t)try{e.editor.setModelMarkers(t,"owner",[])}catch(m){console.warn("Failed to clear error markers after error:",m)}}finally{c(!1)}},h=async()=>{if(!e||!t||!a){console.warn("Monaco editor, model, or format API not available");return}c(!0);try{const{result:p,originalValues:m}=d(r),b=await a(p);if(b?.data?.formatted_code){const y=f(b.data.formatted_code,m);i(y)}else console.warn("No formatted code received from service")}catch(p){const m=p?.message||Tt.formatFailed;console.warn("Code formatting failed:",m),me.error(m,{toastId:m})}finally{c(!1)}};return O.useEffect(()=>{if(e&&n&&o){const p=$O(g,500);return p(),()=>{p.cancel()}}},[r,e]),{pythonError:u,pythonLoading:l,handleCheckSyntax:g,handleFormatCode:h}},nv=()=>{const[e,t]=O.useState("light"),[r,i]=O.useState("vs"),n=O.useCallback(o=>{i(o),t(o==="vs-dark"?"dark":"light")},[]);return{theme:e,editorTheme:r,setEditorTheme:n}};class li{static instance;monaco=null;initialized=!1;initializationPromise=null;static getInstance(){return li.instance||(li.instance=new li),li.instance}async initialize(){return this.initialized&&this.monaco?this.monaco:this.initializationPromise?this.initializationPromise:(this.initializationPromise=this.performInitialization(),this.initializationPromise)}async performInitialization(){try{return this.monaco=await Cc.init(),this.initialized=!0,this.initializationPromise=null,this.monaco}catch(t){throw this.initializationPromise=null,console.error("Failed to initialize Monaco Editor:",t),new Error(`Monaco Editor initialization failed: ${t instanceof Error?t.message:"Unknown error"}`)}}getMonaco(){return this.monaco}isInitialized(){return this.initialized}getEditorInstance(t=0){if(!this.monaco)return console.warn("Monaco Editor not initialized"),null;const r=this.monaco.editor.getEditors();return r.length<=t?(console.warn(`No editor found at index ${t}. Available editors: ${r.length}`),null):r[t]}getFirstEditorInstance(){return this.getEditorInstance(0)}static safeDispose(t){t.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch(i){console.warn("Error disposing Monaco resource:",i)}})}}const iv=li.getInstance(),ov=e=>{try{return JSON.parse(e)}catch(t){throw new Error(`Invalid JSON: ${t.message}`)}},DO=e=>{if(!e.length)return[];const t=[...e].sort((i,n)=>i.length-n.length),r=[];for(const i of t)!r.some(o=>i.startsWith(o+".")||i===o)&&r.push(i);return r},_O=e=>{const t="0123456789abcdef";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r},av=({style:e,value:t,onChange:r,isEditMode:i,isDarkMode:n,allExpanded:o})=>{const[a,u]=O.useState({}),[s,l]=O.useState(null);O.useEffect(()=>{try{const d=ov(t);u(d),l(null)}catch(d){l("Invalid JSON: "+d.message)}},[t]);const c=(d,f,g=0)=>{const h=g*20;if(d===null)return A.jsxs("div",{style:{marginLeft:h},className:"text-neutral-500",children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsx("span",{children:"null"})]});if(typeof d=="boolean"||typeof d=="number")return A.jsxs("div",{style:{marginLeft:h},className:"text-orange-600",children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsx("span",{children:String(d)})]});if(typeof d=="string")return A.jsxs("div",{style:{marginLeft:h},className:"text-green-600",children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsxs("span",{children:['"',d,'"']})]});if(Array.isArray(d))return A.jsxs("div",{style:{marginLeft:h},children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsx("span",{className:"text-neutral-600",children:"["}),d.length>0&&A.jsx("div",{className:"ml-4",children:d.map((p,m)=>A.jsxs("div",{children:[c(p,void 0,g+1),m<d.length-1&&A.jsx("span",{className:"text-neutral-600",children:","})]},m))}),A.jsx("span",{className:"text-neutral-600",children:"]"})]});if(typeof d=="object"&&d!==null){const p=Object.entries(d);return A.jsxs("div",{style:{marginLeft:h},children:[f&&A.jsxs("span",{className:"text-blue-600",children:[f,": "]}),A.jsx("span",{className:"text-neutral-600",children:"{"}),p.length>0&&A.jsx("div",{className:"ml-4",children:p.map(([m,b],y)=>A.jsxs("div",{children:[c(b,m,g+1),y<p.length-1&&A.jsx("span",{className:"text-neutral-600",children:","})]},m))}),A.jsx("span",{className:"text-neutral-600",children:"}"})]})}return null};return A.jsx("div",{className:`bg-white dark:bg-neutral-800 rounded-b-lg p-4 overflow-auto font-mono text-sm ${n?"text-white":"text-neutral-900"}`,style:e,children:s?A.jsx("div",{className:"text-red-600 font-medium",children:s}):A.jsx("div",{className:"whitespace-pre-wrap",children:c(a)})})},sv=({variant:e="default",tabs:t,activeTab:r,onTabClick:i,size:n="md",tabIcons:o={},height:a="h-6",className:u})=>e==="switch"?A.jsx("div",{className:re("inline",u),children:A.jsx("ul",{className:"inline-flex grow-0 p-1 rounded-lg bg-neutral-100 dark:bg-neutral-700 w-auto",children:t.map(s=>{const l=r===s,c=o?.[s];return A.jsx("li",{className:"inline-flex w-auto",children:A.jsxs("button",{onClick:()=>i(s),className:re("relative py-0.5 px-3 border-gray-200",a,"w-auto flex items-center justify-center","relative text-xs font-semibold font-sans whitespace-nowrap",l?"text-neutral-900 dark:text-neutral-100":"text-neutral-700 dark:text-neutral-100"),children:[l&&A.jsx("span",{className:"absolute inset-0 bg-white dark:bg-neutral-800 rounded-md z-0"}),A.jsxs("span",{className:"relative z-10 flex items-center gap-1",children:[c,s]})]})},s)})})}):A.jsx("div",{className:re("w-full",u),children:A.jsx("ul",{className:re("flex items-center w-full",n==="sm"?"gap-1":"gap-2"),children:t.map(s=>{const l=r===s,c=o?.[s];return A.jsx("li",{className:"sm:mr-2",children:A.jsxs("button",{onClick:()=>i(s),className:re("relative inline-flex pt-1 pb-3 px-2 pl-3 sm:px-2 rounded-t-lg group","relative uppercase font-sans font-semibold text-sm whitespace-nowrap",l?"text-blue-600 dark:text-blue-500":"text-neutral-400 hover:text-neutral-500 dark:text-neutral-100 dark:hover:text-white"),children:[A.jsxs("span",{className:"flex items-center gap-1",children:[c,s]}),l&&A.jsx("span",{className:"absolute left-0 bottom-0 w-full h-[3px] bg-blue-600"})]})},s)})})}),GO=()=>A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})}),HO=()=>A.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"})}),WO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M17.75 4.09L15.22 6.03L16.13 9.09L13.5 7.28L10.87 9.09L11.78 6.03L9.25 4.09L12.44 4L13.5 1L14.56 4L17.75 4.09ZM21.25 11L19.61 12.25L20.2 14.23L18.5 13.06L16.8 14.23L17.39 12.25L15.75 11L17.81 10.95L18.5 9L19.19 10.95L21.25 11ZM18.97 15.95C19.8 15.87 20.69 17.05 20.16 17.8C19.84 18.25 19.5 18.67 19.08 19.07C15.17 23 8.84 23 4.94 19.07C1.03 15.17 1.03 8.83 4.94 4.93C5.34 4.53 5.76 4.17 6.21 3.85C6.96 3.32 8.14 4.21 8.06 5.04C7.79 7.9 8.75 10.87 10.95 13.06C13.14 15.26 16.1 16.22 18.97 15.95Z"})}),zO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69Z"})}),XO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})}),UO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})}),YO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M7,14H5V19H10V17H7V14M12,14H17V17H14V19H19V14H17V12H12V14M12,10H17V7H14V5H19V10H17V12H12V10M7,10H10V12H5V7H10V5H5V10H7V12"})}),JO=()=>A.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z"})}),ZO=()=>A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"})}),qO=()=>A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M16.59,8.59L12,13.17L7.41,8.59L6,10L12,16L18,10L16.59,8.59Z"})}),QO=()=>A.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:A.jsx("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})}),KO={JSON:A.jsx(GO,{}),Grid:A.jsx(HO,{})},ek=["JSON","Grid"],tk=({value:e,onChange:t=()=>!1,withFullScreen:r=!0,withTheme:i=!0,isEditMode:n=!1,height:o="55vh",language:a="json",monacoEditor:u,isShowCopy:s=!0,isShowDownload:l=!0,setIsDisableSave:c,withJsonGrid:d=!0})=>{const f=O.useRef(null),{editorTheme:g,setEditorTheme:h,theme:p}=nv(),[m,b]=O.useState(!1),[y,I]=O.useState(null),[x,v]=O.useState(null),[S,E]=O.useState(!1);O.useEffect(()=>{(async()=>{try{const Z=await iv.initialize();v(Z),E(!0)}catch(Z){console.error("Failed to initialize Monaco Editor:",Z),E(!1)}})()},[]);const w=u||x,{handleFormatCode:T,pythonError:k,pythonLoading:V}=rv({code:e,setCode:t,currentEditorModel:y,monacoEditor:w,enable:n===!0&&a==="python"}),C=CT(),[N,F]=O.useState("JSON"),[P,j]=O.useState(!1),B=a==="json",U=()=>{C?.active?C.exit():C.enter()},Q=D=>{f.current=D;const Z=()=>{try{if(a==="python"){const ne=D.getModel();ne&&I(ne)}a==="json"&&requestAnimationFrame(()=>{L()}),D.updateOptions({fontSize:14})}catch(ne){console.warn("Failed to initialize editor:",ne)}};if(D.getModel())Z();else{const ne=D.onDidChangeModel(()=>{Z(),ne.dispose()})}},$=()=>{try{const D=JSON.parse(e),Z=JSON.stringify(D,null,4);t(Z),y&&w&&w.editor.setModelMarkers(y,"json",[])}catch(D){if(y&&w){const Z=D instanceof Error?D.message:"Invalid JSON";try{w.editor.setModelMarkers(y,"json",[{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1,message:`Cannot format: ${Z}`,severity:w.MarkerSeverity.Error}])}catch(ne){console.warn("Failed to set JSON error markers:",ne)}}}},L=()=>{if(a==="python"){T();return}if(a==="json"){$();return}if(f.current)try{const D=f.current.getAction("editor.action.formatDocument");D&&D.run()}catch(D){console.warn("Failed to format document:",D)}},G=D=>{typeof D=="string"&&t(D)};if(O.useEffect(()=>{c&&c(k||V)},[k,V,c]),!u&&!S)return A.jsx("div",{className:"flex items-center justify-center p-8 border border-neutral-200 dark:border-neutral-700 rounded-lg",children:A.jsx("div",{className:"text-neutral-600 dark:text-neutral-400",children:"Loading editor..."})});const _=re("hover:bg-neutral-300 hover:dark:bg-neutral-700 p-0.5 rounded-md flex items-center justify-center"),X=()=>{if(a==="python")try{let D=e;D&&(D=D.replace(/\r\n/g,`
|
|
351
|
+
`},Oy=FF(RF)(Ny),LF={config:MF},DF=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,a){return a(i)},o)}};function Ty(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Ty(e[r],t[r]))}),Sy(Sy({},e),t)}var _F={type:"cancelation",msg:"operation is manually canceled"};function zf(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(_F):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var VF=PF.create({config:kF,isInitialized:!1,resolve:null,reject:null,monaco:null}),Py=dF(VF,2),Ma=Py[0],mc=Py[1];function BF(e){var t=LF.config(e),r=t.monaco,n=uF(t,["monaco"]);mc(function(o){return{config:Ty(o.config,n),monaco:r}})}function zF(){var e=Ma(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(mc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),zf(Gf);if(window.monaco&&window.monaco.editor)return ky(window.monaco),e.resolve(window.monaco),zf(Gf);DF(GF,WF)(UF)}return zf(Gf)}function GF(e){return document.body.appendChild(e)}function HF(e){var t=document.createElement("script");return e&&(t.src=e),t}function WF(e){var t=Ma(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=HF("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function UF(){var e=Ma(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){ky(r),e.resolve(r)},function(r){e.reject(r)})}function ky(e){Ma().monaco||mc({monaco:e})}function XF(){return Ma(function(e){var t=e.monaco;return t})}var Gf=new Promise(function(e,t){return mc({resolve:e,reject:t})}),Hf={config:BF,init:zF,__getMonacoInstance:XF},YF={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Wf=YF,JF={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},ZF=JF;function qF({children:e}){return E.createElement("div",{style:ZF.container},e)}var QF=qF,KF=QF;function e$({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return E.createElement("section",{style:{...Wf.wrapper,width:e,height:t},...a},!r&&E.createElement(KF,null,n),E.createElement("div",{ref:o,style:{...Wf.fullWidth,...!r&&Wf.hide},className:i}))}var t$=e$,Fy=E.memo(t$);function r$(e){E.useEffect(e,[])}var $y=r$;function n$(e,t,r=!0){let n=E.useRef(!0);E.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var Nr=n$;function ja(){}function hi(e,t,r,n){return o$(e,n)||i$(e,t,r,n)}function o$(e,t){return e.editor.getModel(My(e,t))}function i$(e,t,r,n){return e.editor.createModel(t,r,n?My(e,n):void 0)}function My(e,t){return e.Uri.parse(t)}function a$({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:d={},height:f="100%",width:g="100%",className:h,wrapperProps:m={},beforeMount:p=ja,onMount:b=ja}){let[y,w]=E.useState(!1),[S,v]=E.useState(!0),I=E.useRef(null),O=E.useRef(null),N=E.useRef(null),T=E.useRef(b),P=E.useRef(p),M=E.useRef(!1);$y(()=>{let k=Hf.init();return k.then(j=>(O.current=j)&&v(!1)).catch(j=>j?.type!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>I.current?F():k.cancel()}),Nr(()=>{if(I.current&&O.current){let k=I.current.getOriginalEditor(),j=hi(O.current,e||"",n||r||"text",i||"");j!==k.getModel()&&k.setModel(j)}},[i],y),Nr(()=>{if(I.current&&O.current){let k=I.current.getModifiedEditor(),j=hi(O.current,t||"",o||r||"text",a||"");j!==k.getModel()&&k.setModel(j)}},[a],y),Nr(()=>{let k=I.current.getModifiedEditor();k.getOption(O.current.editor.EditorOption.readOnly)?k.setValue(t||""):t!==k.getValue()&&(k.executeEdits("",[{range:k.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),k.pushUndoStop())},[t],y),Nr(()=>{I.current?.getModel()?.original.setValue(e||"")},[e],y),Nr(()=>{let{original:k,modified:j}=I.current.getModel();O.current.editor.setModelLanguage(k,n||r||"text"),O.current.editor.setModelLanguage(j,o||r||"text")},[r,n,o],y),Nr(()=>{O.current?.editor.setTheme(c)},[c],y),Nr(()=>{I.current?.updateOptions(d)},[d],y);let x=E.useCallback(()=>{if(!O.current)return;P.current(O.current);let k=hi(O.current,e||"",n||r||"text",i||""),j=hi(O.current,t||"",o||r||"text",a||"");I.current?.setModel({original:k,modified:j})},[r,t,o,e,n,i,a]),$=E.useCallback(()=>{!M.current&&N.current&&(I.current=O.current.editor.createDiffEditor(N.current,{automaticLayout:!0,...d}),x(),O.current?.editor.setTheme(c),w(!0),M.current=!0)},[d,c,x]);E.useEffect(()=>{y&&T.current(I.current,O.current)},[y]),E.useEffect(()=>{!S&&!y&&$()},[S,y,$]);function F(){let k=I.current?.getModel();s||k?.original?.dispose(),l||k?.modified?.dispose(),I.current?.dispose()}return E.createElement(Fy,{width:g,height:f,isEditorReady:y,loading:u,_ref:N,className:h,wrapperProps:m})}var s$=a$;E.memo(s$);function l$(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var c$=l$,pc=new Map;function u$({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:s,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:d=!0,keepCurrentModel:f=!1,width:g="100%",height:h="100%",className:m,wrapperProps:p={},beforeMount:b=ja,onMount:y=ja,onChange:w,onValidate:S=ja}){let[v,I]=E.useState(!1),[O,N]=E.useState(!0),T=E.useRef(null),P=E.useRef(null),M=E.useRef(null),x=E.useRef(y),$=E.useRef(b),F=E.useRef(),k=E.useRef(n),j=c$(i),z=E.useRef(!1),H=E.useRef(!1);$y(()=>{let D=Hf.init();return D.then(B=>(T.current=B)&&N(!1)).catch(B=>B?.type!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>P.current?_():D.cancel()}),Nr(()=>{let D=hi(T.current,e||n||"",t||o||"",i||r||"");D!==P.current?.getModel()&&(d&&pc.set(j,P.current?.saveViewState()),P.current?.setModel(D),d&&P.current?.restoreViewState(pc.get(i)))},[i],v),Nr(()=>{P.current?.updateOptions(c)},[c],v),Nr(()=>{!P.current||n===void 0||(P.current.getOption(T.current.editor.EditorOption.readOnly)?P.current.setValue(n):n!==P.current.getValue()&&(H.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),P.current.pushUndoStop(),H.current=!1))},[n],v),Nr(()=>{let D=P.current?.getModel();D&&o&&T.current?.editor.setModelLanguage(D,o)},[o],v),Nr(()=>{s!==void 0&&P.current?.revealLine(s)},[s],v),Nr(()=>{T.current?.editor.setTheme(a)},[a],v);let V=E.useCallback(()=>{if(!(!M.current||!T.current)&&!z.current){$.current(T.current);let D=i||r,B=hi(T.current,n||e||"",t||o||"",D||"");P.current=T.current?.editor.create(M.current,{model:B,automaticLayout:!0,...c},u),d&&P.current.restoreViewState(pc.get(D)),T.current.editor.setTheme(a),s!==void 0&&P.current.revealLine(s),I(!0),z.current=!0}},[e,t,r,n,o,i,c,u,d,a,s]);E.useEffect(()=>{v&&x.current(P.current,T.current)},[v]),E.useEffect(()=>{!O&&!v&&V()},[O,v,V]),k.current=n,E.useEffect(()=>{v&&w&&(F.current?.dispose(),F.current=P.current?.onDidChangeModelContent(D=>{H.current||w(P.current.getValue(),D)}))},[v,w]),E.useEffect(()=>{if(v){let D=T.current.editor.onDidChangeMarkers(B=>{let R=P.current.getModel()?.uri;if(R&&B.find(W=>W.path===R.path)){let W=T.current.editor.getModelMarkers({resource:R});S?.(W)}});return()=>{D?.dispose()}}return()=>{}},[v,S]);function _(){F.current?.dispose(),f?d&&pc.set(i,P.current.saveViewState()):P.current.getModel()?.dispose(),P.current.dispose()}return E.createElement(Fy,{width:g,height:h,isEditorReady:v,loading:l,_ref:M,className:m,wrapperProps:p})}var d$=u$;E.memo(d$);var Or={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},jy=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],Ry=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],Ly=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],hr=typeof window<"u"&&typeof window.document<"u"?window.document:{},Dr="fullscreenEnabled"in hr&&Object.keys(Or)||jy[0]in hr&&jy||Ry[0]in hr&&Ry||Ly[0]in hr&&Ly||[],Vn={requestFullscreen:function(e){return e[Dr[Or.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[Dr[Or.requestFullscreen]]},get exitFullscreen(){return hr[Dr[Or.exitFullscreen]].bind(hr)},get fullscreenPseudoClass(){return":"+Dr[Or.fullscreen]},addEventListener:function(e,t,r){return hr.addEventListener(Dr[Or[e]],t,r)},removeEventListener:function(e,t,r){return hr.removeEventListener(Dr[Or[e]],t,r)},get fullscreenEnabled(){return!!hr[Dr[Or.fullscreenEnabled]]},set fullscreenEnabled(e){},get fullscreenElement(){return hr[Dr[Or.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return hr[("on"+Dr[Or.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return hr[("on"+Dr[Or.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return hr[("on"+Dr[Or.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return hr[("on"+Dr[Or.fullscreenerror]).toLowerCase()]=e}};function f$(){var e=E.useState(!1),t=e[0],r=e[1],n=E.useRef(null);E.useEffect(function(){var a=function(){r(Vn.fullscreenElement===n.current)};return Vn.addEventListener("fullscreenchange",a),function(){return Vn.removeEventListener("fullscreenchange",a)}},[]);var o=E.useCallback(function(){if(Vn.fullscreenElement)return Vn.exitFullscreen().then(function(){return Vn.requestFullscreen(n.current)});if(n.current)return Vn.requestFullscreen(n.current)},[]),i=E.useCallback(function(){return Vn.fullscreenElement===n.current?Vn.exitFullscreen():Promise.resolve()},[]);return E.useMemo(function(){return{active:t,enter:o,exit:i,node:n}},[t,o,i])}var m$=function(t){var r=t.handle,n=t.onChange,o=t.children,i=t.className,a=[];return i&&a.push(i),a.push("fullscreen"),r.active&&a.push("fullscreen-enabled"),E.useEffect(function(){n&&n(r.active,r)},[r.active]),E.createElement("div",{className:a.join(" "),ref:r.node,style:r.active?{height:"100%",width:"100%"}:void 0},o)},Uf,Dy;function p$(){if(Dy)return Uf;Dy=1;var e="Expected a function",t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l=typeof Xa=="object"&&Xa&&Xa.Object===Object&&Xa,c=typeof self=="object"&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype,f=d.toString,g=Math.max,h=Math.min,m=function(){return u.Date.now()};function p(v,I,O){var N,T,P,M,x,$,F=0,k=!1,j=!1,z=!0;if(typeof v!="function")throw new TypeError(e);I=S(I)||0,b(O)&&(k=!!O.leading,j="maxWait"in O,P=j?g(S(O.maxWait)||0,I):P,z="trailing"in O?!!O.trailing:z);function H(U){var Q=N,Z=T;return N=T=void 0,F=U,M=v.apply(Z,Q),M}function V(U){return F=U,x=setTimeout(B,I),k?H(U):M}function _(U){var Q=U-$,Z=U-F,se=I-Q;return j?h(se,P-Z):se}function D(U){var Q=U-$,Z=U-F;return $===void 0||Q>=I||Q<0||j&&Z>=P}function B(){var U=m();if(D(U))return R(U);x=setTimeout(B,_(U))}function R(U){return x=void 0,z&&N?H(U):(N=T=void 0,M)}function W(){x!==void 0&&clearTimeout(x),F=0,N=$=T=x=void 0}function K(){return x===void 0?M:R(m())}function q(){var U=m(),Q=D(U);if(N=arguments,T=this,$=U,Q){if(x===void 0)return V($);if(j)return x=setTimeout(B,I),H($)}return x===void 0&&(x=setTimeout(B,I)),M}return q.cancel=W,q.flush=K,q}function b(v){var I=typeof v;return!!v&&(I=="object"||I=="function")}function y(v){return!!v&&typeof v=="object"}function w(v){return typeof v=="symbol"||y(v)&&f.call(v)==r}function S(v){if(typeof v=="number")return v;if(w(v))return t;if(b(v)){var I=typeof v.valueOf=="function"?v.valueOf():v;v=b(I)?I+"":I}if(typeof v!="string")return v===0?v:+v;v=v.replace(n,"");var O=i.test(v);return O||a.test(v)?s(v.slice(2),O?2:8):o.test(v)?t:+v}return Uf=p,Uf}var g$=p$();const h$=Oc(g$),vr={createSuccess:function(e){return`${e} created successfully.`},createFailure:function(e){return`${e} creation failed. Please retry.`},updateSuccess:function(e){return`${e} updated successfully.`},updateFailure:function(e){return`${e} update failed. Please retry.`},copySuccess:function(e){return`${e} copied successfully.`},copyFailure:function(e){return`${e} copy failed. Please retry.`},copyToClipboard:function(e){return`${e} copied to clipboard.`},deleteSuccess:function(e){return`${e} deleted successfully.`},deleteFailure:function(e){return`${e} delete failed. Please retry.`},errorMessage:"Something went wrong.",requiredFieldError:"Please fill out all mandatory fields.",noItemSelected:"No item selected.",invalidFileType:"Non acceptable file type.",formatFailed:"Failed to format."},_y=({monacoEditor:e,currentEditorModel:t,code:r,setCode:n,enable:o,checkSyntaxAPI:i,formatCodeAPI:a})=>{const[s,l]=E.useState(null),[c,u]=E.useState(!1);function d(m){const p={};let b=0;return{result:m.replace(/{{(.*?)}}/g,(w,S,v,I)=>{const O=I.slice(0,v),N=I.slice(v+w.length),T=O.endsWith('"')&&N.startsWith('"'),P=O.endsWith("'")&&N.startsWith("'");return T||P?w:(p[`__dynamic_value_${b}`]=w,`"__dynamic_value_${b++}"`)}),originalValues:p}}function f(m,p){return m.replace(/"__dynamic_value_\d+"/g,b=>{const y=b.slice(1,-1);return p[y]||b})}const g=async()=>{if(!e||!t||!i){console.warn("Monaco editor, model, or syntax check API not available");return}u(!0);try{const{result:m}=d(r),b=(await i(m))?.data?.error;if(b?.message){l(b);const y=[{startLineNumber:b.line||1,endLineNumber:b.line||1,startColumn:b.column||1,endColumn:b.column||1,message:b.message,severity:e.MarkerSeverity?.Error||8}];try{e.editor.setModelMarkers(t,"owner",y)}catch(w){console.warn("Failed to set error markers:",w)}}else{l(null);try{e.editor.setModelMarkers(t,"owner",[])}catch(y){console.warn("Failed to clear error markers:",y)}}}catch(m){if(console.warn("Syntax check failed:",m),l(null),e&&t)try{e.editor.setModelMarkers(t,"owner",[])}catch(p){console.warn("Failed to clear error markers after error:",p)}}finally{u(!1)}},h=async()=>{if(!e||!t||!a){console.warn("Monaco editor, model, or format API not available");return}u(!0);try{const{result:m,originalValues:p}=d(r),b=await a(m);if(b?.data?.formatted_code){const y=f(b.data.formatted_code,p);n(y)}else console.warn("No formatted code received from service")}catch(m){const p=m?.message||vr.formatFailed;console.warn("Code formatting failed:",p),Pe.error(p,{toastId:p})}finally{u(!1)}};return E.useEffect(()=>{if(e&&o&&i){const m=h$(g,500);return m(),()=>{m.cancel()}}},[r,e]),{pythonError:s,pythonLoading:c,handleCheckSyntax:g,handleFormatCode:h}},Vy=()=>{const[e,t]=E.useState("light"),[r,n]=E.useState("vs"),o=E.useCallback(i=>{n(i),t(i==="vs-dark"?"dark":"light")},[]);return{theme:e,editorTheme:r,setEditorTheme:o}};class vi{static instance;monaco=null;initialized=!1;initializationPromise=null;static getInstance(){return vi.instance||(vi.instance=new vi),vi.instance}async initialize(){return this.initialized&&this.monaco?this.monaco:this.initializationPromise?this.initializationPromise:(this.initializationPromise=this.performInitialization(),this.initializationPromise)}async performInitialization(){try{return this.monaco=await Hf.init(),this.initialized=!0,this.initializationPromise=null,this.monaco}catch(t){throw this.initializationPromise=null,console.error("Failed to initialize Monaco Editor:",t),new Error(`Monaco Editor initialization failed: ${t instanceof Error?t.message:"Unknown error"}`)}}getMonaco(){return this.monaco}isInitialized(){return this.initialized}getEditorInstance(t=0){if(!this.monaco)return console.warn("Monaco Editor not initialized"),null;const r=this.monaco.editor.getEditors();return r.length<=t?(console.warn(`No editor found at index ${t}. Available editors: ${r.length}`),null):r[t]}getFirstEditorInstance(){return this.getEditorInstance(0)}static safeDispose(t){t.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch(n){console.warn("Error disposing Monaco resource:",n)}})}}const By=vi.getInstance(),zy=e=>{try{return JSON.parse(e)}catch(t){throw new Error(`Invalid JSON: ${t.message}`)}},v$=e=>{if(!e.length)return[];const t=[...e].sort((n,o)=>n.length-o.length),r=[];for(const n of t)!r.some(i=>n.startsWith(i+".")||n===i)&&r.push(n);return r},b$=e=>{const t="0123456789abcdef";let r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r},Gy=({style:e,value:t,onChange:r,isEditMode:n,isDarkMode:o,allExpanded:i})=>{const[a,s]=E.useState({}),[l,c]=E.useState(null);E.useEffect(()=>{try{const d=zy(t);s(d),c(null)}catch(d){c("Invalid JSON: "+d.message)}},[t]);const u=(d,f,g=0)=>{const h=g*20;if(d===null)return C.jsxs("div",{style:{marginLeft:h},className:"text-neutral-500",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{children:"null"})]});if(typeof d=="boolean"||typeof d=="number")return C.jsxs("div",{style:{marginLeft:h},className:"text-orange-600",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{children:String(d)})]});if(typeof d=="string")return C.jsxs("div",{style:{marginLeft:h},className:"text-green-600",children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsxs("span",{children:['"',d,'"']})]});if(Array.isArray(d))return C.jsxs("div",{style:{marginLeft:h},children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{className:"text-neutral-600",children:"["}),d.length>0&&C.jsx("div",{className:"ml-4",children:d.map((m,p)=>C.jsxs("div",{children:[u(m,void 0,g+1),p<d.length-1&&C.jsx("span",{className:"text-neutral-600",children:","})]},p))}),C.jsx("span",{className:"text-neutral-600",children:"]"})]});if(typeof d=="object"&&d!==null){const m=Object.entries(d);return C.jsxs("div",{style:{marginLeft:h},children:[f&&C.jsxs("span",{className:"text-blue-600",children:[f,": "]}),C.jsx("span",{className:"text-neutral-600",children:"{"}),m.length>0&&C.jsx("div",{className:"ml-4",children:m.map(([p,b],y)=>C.jsxs("div",{children:[u(b,p,g+1),y<m.length-1&&C.jsx("span",{className:"text-neutral-600",children:","})]},p))}),C.jsx("span",{className:"text-neutral-600",children:"}"})]})}return null};return C.jsx("div",{className:`bg-white dark:bg-neutral-800 rounded-b-lg p-4 overflow-auto font-mono text-sm ${o?"text-white":"text-neutral-900"}`,style:e,children:l?C.jsx("div",{className:"text-red-600 font-medium",children:l}):C.jsx("div",{className:"whitespace-pre-wrap",children:u(a)})})},Hy=({variant:e="default",tabs:t,activeTab:r,onTabClick:n,size:o="md",tabIcons:i={},height:a="h-6",className:s})=>e==="switch"?C.jsx("div",{className:J("inline",s),children:C.jsx("ul",{className:"inline-flex grow-0 p-1 rounded-lg bg-neutral-100 dark:bg-neutral-700 w-auto",children:t.map(l=>{const c=r===l,u=i?.[l];return C.jsx("li",{className:"inline-flex w-auto",children:C.jsxs("button",{onClick:()=>n(l),className:J("relative py-0.5 px-3 border-gray-200",a,"w-auto flex items-center justify-center","relative text-xs font-semibold font-sans whitespace-nowrap",c?"text-neutral-900 dark:text-neutral-100":"text-neutral-700 dark:text-neutral-100"),children:[c&&C.jsx("span",{className:"absolute inset-0 bg-white dark:bg-neutral-800 rounded-md z-0"}),C.jsxs("span",{className:"relative z-10 flex items-center gap-1",children:[u,l]})]})},l)})})}):C.jsx("div",{className:J("w-full",s),children:C.jsx("ul",{className:J("flex items-center w-full",o==="sm"?"gap-1":"gap-2"),children:t.map(l=>{const c=r===l,u=i?.[l];return C.jsx("li",{className:"sm:mr-2",children:C.jsxs("button",{onClick:()=>n(l),className:J("relative inline-flex pt-1 pb-3 px-2 pl-3 sm:px-2 rounded-t-lg group","relative uppercase font-sans font-semibold text-sm whitespace-nowrap",c?"text-blue-600 dark:text-blue-500":"text-neutral-400 hover:text-neutral-500 dark:text-neutral-100 dark:hover:text-white"),children:[C.jsxs("span",{className:"flex items-center gap-1",children:[u,l]}),c&&C.jsx("span",{className:"absolute left-0 bottom-0 w-full h-[3px] bg-blue-600"})]})},l)})})}),y$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"})}),C$=()=>C.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"})}),x$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M17.75 4.09L15.22 6.03L16.13 9.09L13.5 7.28L10.87 9.09L11.78 6.03L9.25 4.09L12.44 4L13.5 1L14.56 4L17.75 4.09ZM21.25 11L19.61 12.25L20.2 14.23L18.5 13.06L16.8 14.23L17.39 12.25L15.75 11L17.81 10.95L18.5 9L19.19 10.95L21.25 11ZM18.97 15.95C19.8 15.87 20.69 17.05 20.16 17.8C19.84 18.25 19.5 18.67 19.08 19.07C15.17 23 8.84 23 4.94 19.07C1.03 15.17 1.03 8.83 4.94 4.93C5.34 4.53 5.76 4.17 6.21 3.85C6.96 3.32 8.14 4.21 8.06 5.04C7.79 7.9 8.75 10.87 10.95 13.06C13.14 15.26 16.1 16.22 18.97 15.95Z"})}),w$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69Z"})}),S$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})}),E$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})}),I$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M7,14H5V19H10V17H7V14M12,14H17V17H14V19H19V14H17V12H12V14M12,10H17V7H14V5H19V10H17V12H12V10M7,10H10V12H5V7H10V5H5V10H7V12"})}),A$=()=>C.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z"})}),N$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"})}),O$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M16.59,8.59L12,13.17L7.41,8.59L6,10L12,16L18,10L16.59,8.59Z"})}),T$=()=>C.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:C.jsx("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"})}),P$={JSON:C.jsx(y$,{}),Grid:C.jsx(C$,{})},k$=["JSON","Grid"],F$=({value:e,onChange:t=()=>!1,withFullScreen:r=!0,withTheme:n=!0,isEditMode:o=!1,height:i="55vh",language:a="json",monacoEditor:s,isShowCopy:l=!0,isShowDownload:c=!0,setIsDisableSave:u,withJsonGrid:d=!0})=>{const f=E.useRef(null),{editorTheme:g,setEditorTheme:h,theme:m}=Vy(),[p,b]=E.useState(!1),[y,w]=E.useState(null),[S,v]=E.useState(null),[I,O]=E.useState(!1);E.useEffect(()=>{(async()=>{try{const Q=await By.initialize();v(Q),O(!0)}catch(Q){console.error("Failed to initialize Monaco Editor:",Q),O(!1)}})()},[]);const N=s||S,{handleFormatCode:T,pythonError:P,pythonLoading:M}=_y({code:e,setCode:t,currentEditorModel:y,monacoEditor:N,enable:o===!0&&a==="python"}),x=f$(),[$,F]=E.useState("JSON"),[k,j]=E.useState(!1),z=a==="json",H=()=>{x?.active?x.exit():x.enter()},V=U=>{f.current=U;const Q=()=>{try{if(a==="python"){const Z=U.getModel();Z&&w(Z)}a==="json"&&requestAnimationFrame(()=>{D()}),U.updateOptions({fontSize:14})}catch(Z){console.warn("Failed to initialize editor:",Z)}};if(U.getModel())Q();else{const Z=U.onDidChangeModel(()=>{Q(),Z.dispose()})}},_=()=>{try{const U=JSON.parse(e),Q=JSON.stringify(U,null,4);t(Q),y&&N&&N.editor.setModelMarkers(y,"json",[])}catch(U){if(y&&N){const Q=U instanceof Error?U.message:"Invalid JSON";try{N.editor.setModelMarkers(y,"json",[{startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1,message:`Cannot format: ${Q}`,severity:N.MarkerSeverity.Error}])}catch(Z){console.warn("Failed to set JSON error markers:",Z)}}}},D=()=>{if(a==="python"){T();return}if(a==="json"){_();return}if(f.current)try{const U=f.current.getAction("editor.action.formatDocument");U&&U.run()}catch(U){console.warn("Failed to format document:",U)}},B=U=>{typeof U=="string"&&t(U)};if(E.useEffect(()=>{u&&u(P||M)},[P,M,u]),!s&&!I)return C.jsx("div",{className:"flex items-center justify-center p-8 border border-neutral-200 dark:border-neutral-700 rounded-lg",children:C.jsx("div",{className:"text-neutral-600 dark:text-neutral-400",children:"Loading editor..."})});const R=J("hover:bg-neutral-300 hover:dark:bg-neutral-700 p-0.5 rounded-md flex items-center justify-center"),W=()=>{if(a==="python")try{let U=e;U&&(U=U.replace(/\r\n/g,`
|
|
236
352
|
`).replace(/\r/g,`
|
|
237
|
-
`),
|
|
238
|
-
`).map(
|
|
239
|
-
`),
|
|
240
|
-
`),navigator?.clipboard?.writeText(D).then(()=>{me.success(Tt.copySuccess("Python Code"))}).catch(Z=>{const ne=Z;me.error(ne?.message||Tt.copyFailure("Python Code"),{toastId:Tt.copyFailure("Python Code")})})}catch(D){const Z=D;me.error(Z?.message||Tt.copyFailure("Python Code"),{toastId:Tt.copyFailure("Python Code")})}else if(a==="json")try{const D=JSON.parse(e),Z=JSON.stringify(D,null,4);navigator?.clipboard?.writeText(Z),me.success(Tt.copySuccess("JSON Code"))}catch(D){const Z=D;me.error(Z?.message||Tt.copyFailure("JSON Code"),{toastId:Tt.copyFailure("JSON Code")})}else navigator?.clipboard?.writeText(e),me.success(Tt.copySuccess("Code"))},K=D=>D==="python"?{type:"text/x-python",extension:"py"}:D==="json"?{type:"application/json",extension:"json"}:{type:"text/plain",extension:"txt"},ee=()=>{try{const D=new Blob([e],{type:K(a)?.type}),Z=URL.createObjectURL(D),ne=document.createElement("a");ne.href=Z,ne.download=`code_${Date.now()}.${K(a)?.extension}`,document.body.appendChild(ne),ne.click(),document.body.removeChild(ne),URL.revokeObjectURL(Z),me.success(Tt.copySuccess("Code download"))}catch(D){const Z=D;me.error(Z?.message||Tt.copyFailure("Code download"),{toastId:Tt.copyFailure("Code download")})}};return A.jsx(xT,{handle:C,className:"h-full",children:A.jsxs("div",{className:"relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full",id:"code-editor-container-with-json-grid",children:[A.jsxs("div",{className:re(`px-3 py-2 flex items-center bg-white rounded-t-lg dark:bg-neutral-800 ${d?"border-none":"border-b border-neutral-200 dark:border-neutral-700"} `,B?"justify-between":"justify-end"),children:[B&&d&&A.jsx(sv,{variant:"switch",tabs:ek,activeTab:N,size:"sm",onTabClick:D=>F(D),tabIcons:KO,height:"h-[20px]"}),A.jsxs("div",{className:"flex items-center gap-0.5",children:[N==="Grid"&&n&&d&&A.jsx("span",{className:"flex items-center justify-center border-r border-neutral-200 dark:border-neutral-700 mr-1.5 pr-1.5",children:A.jsx(en,{title:"Add key",children:A.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>j(!0),className:re("p-0.5 rounded-md flex items-center justify-center","hover:bg-blue-100 hover:dark:bg-neutral-800 text-blue-600 dark:text-neutral-100"),children:A.jsx(QO,{})})})}),N==="Grid"?A.jsxs(A.Fragment,{children:[A.jsx(en,{title:"Collapse all",children:A.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>b(!1),className:_,children:A.jsx(ZO,{})})}),A.jsx(en,{title:"Expand all",children:A.jsx("button",{id:"btn-code-editor-json-grid-down",onClick:()=>b(!0),className:_,children:A.jsx(qO,{})})})]}):null,N==="JSON"&&d?A.jsx(en,{title:"Format",children:A.jsx("button",{id:"btn-code-editor-format-code",onClick:L,className:_,children:A.jsx(JO,{})})}):null,i&&N==="JSON"&&d?A.jsx(en,{title:g==="vs"?"Dark mode":"Light mode",children:A.jsx("button",{id:"btn-code-editor-with-theme",onClick:()=>h(g==="vs"?"vs-dark":"vs"),className:_,children:g==="vs"?A.jsx(WO,{}):A.jsx(zO,{})})}):null,(a==="python"||a==="json")&&s?A.jsx(en,{title:"Copy",children:A.jsx("button",{id:"btn-code-editor-copy-code",onClick:X,className:_,children:A.jsx(XO,{})})}):null,(a==="python"||a==="json")&&l?A.jsx(en,{title:"Download",children:A.jsx("button",{id:"btn-code-editor-download-code",onClick:ee,className:_,children:A.jsx(UO,{})})}):null,r?A.jsx(en,{title:"Fullscreen",children:A.jsx("button",{onClick:U,id:"btn-code-editor-fullscreen",className:_,children:A.jsx(YO,{})})}):null]})]}),N==="Grid"&&a==="json"?A.jsx("div",{children:A.jsx(av,{isFullScreen:C?.active,allExpanded:m,toggleAll:()=>b(D=>!D),isEditMode:!!n,isDarkMode:p==="dark",style:{height:C?.active?"100vh":o},value:e,onChange:t,setIsAddKeyModalOpen:j,isAddKeyModalOpen:P})}):A.jsx(g3,{height:C?.active?"100vh":o,containerStyle:{height:o},language:a,value:e,onChange:G,theme:g,onMount:Q,options:{fontSize:16,folding:!0,fontFamily:"Menlo, Monaco, 'Courier New', monospace",fontLigatures:!0,readOnly:!n}})]})})};he.Badge=Qg,he.Banner=Kg,he.CURRENCIES=Kl,he.CURRENCY_SYMBOLS=zg,he.Checkbox=Sp,he.CodeEditor=tk,he.ColorPicker=wp,he.CreatableSelectField=Wg,he.CurrencyInputField=Xg,he.DateRange=Ug,he.DebounceInputField=Yg,he.InputField=Jc,he.JsonGrid=av,he.PdfViewer=e0,he.PercentageInputField=Jg,he.Popper=r0,he.StatusColorMapping=qg,he.Tabs=sv,he.TextField=pv,he.Toast=I5,he.Toggle=Zg,he.Typography=Ce,he.filterTopLevelPaths=DO,he.monacoManager=iv,he.parseJson=ov,he.randomHexString=_O,he.systemMessages=Tt,he.toast=S5,he.useOutsideClick=t0,he.usePythonSyntax=rv,he.useTheme=nv,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})});
|
|
353
|
+
`),U=U.split(`
|
|
354
|
+
`).map(Q=>Q.trimEnd()).join(`
|
|
355
|
+
`),U=U.replace(/\n+$/,"")+`
|
|
356
|
+
`),navigator?.clipboard?.writeText(U).then(()=>{Pe.success(vr.copySuccess("Python Code"))}).catch(Q=>{const Z=Q;Pe.error(Z?.message||vr.copyFailure("Python Code"),{toastId:vr.copyFailure("Python Code")})})}catch(U){const Q=U;Pe.error(Q?.message||vr.copyFailure("Python Code"),{toastId:vr.copyFailure("Python Code")})}else if(a==="json")try{const U=JSON.parse(e),Q=JSON.stringify(U,null,4);navigator?.clipboard?.writeText(Q),Pe.success(vr.copySuccess("JSON Code"))}catch(U){const Q=U;Pe.error(Q?.message||vr.copyFailure("JSON Code"),{toastId:vr.copyFailure("JSON Code")})}else navigator?.clipboard?.writeText(e),Pe.success(vr.copySuccess("Code"))},K=U=>U==="python"?{type:"text/x-python",extension:"py"}:U==="json"?{type:"application/json",extension:"json"}:{type:"text/plain",extension:"txt"},q=()=>{try{const U=new Blob([e],{type:K(a)?.type}),Q=URL.createObjectURL(U),Z=document.createElement("a");Z.href=Q,Z.download=`code_${Date.now()}.${K(a)?.extension}`,document.body.appendChild(Z),Z.click(),document.body.removeChild(Z),URL.revokeObjectURL(Q),Pe.success(vr.copySuccess("Code download"))}catch(U){const Q=U;Pe.error(Q?.message||vr.copyFailure("Code download"),{toastId:vr.copyFailure("Code download")})}};return C.jsx(m$,{handle:x,className:"h-full",children:C.jsxs("div",{className:"relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full",id:"code-editor-container-with-json-grid",children:[C.jsxs("div",{className:J(`px-3 py-2 flex items-center bg-white rounded-t-lg dark:bg-neutral-800 ${d?"border-none":"border-b border-neutral-200 dark:border-neutral-700"} `,z?"justify-between":"justify-end"),children:[z&&d&&C.jsx(Hy,{variant:"switch",tabs:k$,activeTab:$,size:"sm",onTabClick:U=>F(U),tabIcons:P$,height:"h-[20px]"}),C.jsxs("div",{className:"flex items-center gap-0.5",children:[$==="Grid"&&o&&d&&C.jsx("span",{className:"flex items-center justify-center border-r border-neutral-200 dark:border-neutral-700 mr-1.5 pr-1.5",children:C.jsx(In,{title:"Add key",children:C.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>j(!0),className:J("p-0.5 rounded-md flex items-center justify-center","hover:bg-blue-100 hover:dark:bg-neutral-800 text-blue-600 dark:text-neutral-100"),children:C.jsx(T$,{})})})}),$==="Grid"?C.jsxs(C.Fragment,{children:[C.jsx(In,{title:"Collapse all",children:C.jsx("button",{id:"btn-code-editor-json-grid-up",onClick:()=>b(!1),className:R,children:C.jsx(N$,{})})}),C.jsx(In,{title:"Expand all",children:C.jsx("button",{id:"btn-code-editor-json-grid-down",onClick:()=>b(!0),className:R,children:C.jsx(O$,{})})})]}):null,$==="JSON"&&d?C.jsx(In,{title:"Format",children:C.jsx("button",{id:"btn-code-editor-format-code",onClick:D,className:R,children:C.jsx(A$,{})})}):null,n&&$==="JSON"&&d?C.jsx(In,{title:g==="vs"?"Dark mode":"Light mode",children:C.jsx("button",{id:"btn-code-editor-with-theme",onClick:()=>h(g==="vs"?"vs-dark":"vs"),className:R,children:g==="vs"?C.jsx(x$,{}):C.jsx(w$,{})})}):null,(a==="python"||a==="json")&&l?C.jsx(In,{title:"Copy",children:C.jsx("button",{id:"btn-code-editor-copy-code",onClick:W,className:R,children:C.jsx(S$,{})})}):null,(a==="python"||a==="json")&&c?C.jsx(In,{title:"Download",children:C.jsx("button",{id:"btn-code-editor-download-code",onClick:q,className:R,children:C.jsx(E$,{})})}):null,r?C.jsx(In,{title:"Fullscreen",children:C.jsx("button",{onClick:H,id:"btn-code-editor-fullscreen",className:R,children:C.jsx(I$,{})})}):null]})]}),$==="Grid"&&a==="json"?C.jsx("div",{children:C.jsx(Gy,{isFullScreen:x?.active,allExpanded:p,toggleAll:()=>b(U=>!U),isEditMode:!!o,isDarkMode:m==="dark",style:{height:x?.active?"100vh":i},value:e,onChange:t,setIsAddKeyModalOpen:j,isAddKeyModalOpen:k})}):C.jsx(sF,{height:x?.active?"100vh":i,containerStyle:{height:i},language:a,value:e,onChange:B,theme:g,onMount:V,options:{fontSize:16,folding:!0,fontFamily:"Menlo, Monaco, 'Courier New', monospace",fontLigatures:!0,readOnly:!o}})]})})};class gc{diff(t,r,n={}){let o;typeof n=="function"?(o=n,n={}):"callback"in n&&(o=n.callback);const i=this.castInput(t,n),a=this.castInput(r,n),s=this.removeEmpty(this.tokenize(i,n)),l=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(s,l,n,o)}diffWithOptionsObj(t,r,n,o){var i;const a=y=>{if(y=this.postProcess(y,n),o){setTimeout(function(){o(y)},0);return}else return y},s=r.length,l=t.length;let c=1,u=s+l;n.maxEditLength!=null&&(u=Math.min(u,n.maxEditLength));const d=(i=n.timeout)!==null&&i!==void 0?i:1/0,f=Date.now()+d,g=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(g[0],r,t,0,n);if(g[0].oldPos+1>=l&&h+1>=s)return a(this.buildValues(g[0].lastComponent,r,t));let m=-1/0,p=1/0;const b=()=>{for(let y=Math.max(m,-c);y<=Math.min(p,c);y+=2){let w;const S=g[y-1],v=g[y+1];S&&(g[y-1]=void 0);let I=!1;if(v){const N=v.oldPos-y;I=v&&0<=N&&N<s}const O=S&&S.oldPos+1<l;if(!I&&!O){g[y]=void 0;continue}if(!O||I&&S.oldPos<v.oldPos?w=this.addToPath(v,!0,!1,0,n):w=this.addToPath(S,!1,!0,1,n),h=this.extractCommon(w,r,t,y,n),w.oldPos+1>=l&&h+1>=s)return a(this.buildValues(w.lastComponent,r,t))||!0;g[y]=w,w.oldPos+1>=l&&(p=Math.min(p,y-1)),h+1>=s&&(m=Math.max(m,y+1))}c++};if(o)(function y(){setTimeout(function(){if(c>u||Date.now()>f)return o(void 0);b()||y()},0)})();else for(;c<=u&&Date.now()<=f;){const y=b();if(y)return y}}addToPath(t,r,n,o,i){const a=t.lastComponent;return a&&!i.oneChangePerToken&&a.added===r&&a.removed===n?{oldPos:t.oldPos+o,lastComponent:{count:a.count+1,added:r,removed:n,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+o,lastComponent:{count:1,added:r,removed:n,previousComponent:a}}}extractCommon(t,r,n,o,i){const a=r.length,s=n.length;let l=t.oldPos,c=l-o,u=0;for(;c+1<a&&l+1<s&&this.equals(n[l+1],r[c+1],i);)c++,l++,u++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return u&&!i.oneChangePerToken&&(t.lastComponent={count:u,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=l,c}equals(t,r,n){return n.comparator?n.comparator(t,r):t===r||!!n.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,n){const o=[];let i;for(;t;)o.push(t),i=t.previousComponent,delete t.previousComponent,t=i;o.reverse();const a=o.length;let s=0,l=0,c=0;for(;s<a;s++){const u=o[s];if(u.removed)u.value=this.join(n.slice(c,c+u.count)),c+=u.count;else{if(!u.added&&this.useLongestToken){let d=r.slice(l,l+u.count);d=d.map(function(f,g){const h=n[c+g];return h.length>f.length?h:f}),u.value=this.join(d)}else u.value=this.join(r.slice(l,l+u.count));l+=u.count,u.added||(c+=u.count)}}return o}}class $$ extends gc{}const M$=new $$;function j$(e,t,r){return M$.diff(e,t,r)}function Wy(e,t){let r;for(r=0;r<e.length&&r<t.length;r++)if(e[r]!=t[r])return e.slice(0,r);return e.slice(0,r)}function Uy(e,t){let r;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(r=0;r<e.length&&r<t.length;r++)if(e[e.length-(r+1)]!=t[t.length-(r+1)])return e.slice(-r);return e.slice(-r)}function Xf(e,t,r){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return r+e.slice(t.length)}function Yf(e,t,r){if(!t)return e+r;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+r}function Ra(e,t){return Xf(e,t,"")}function hc(e,t){return Yf(e,t,"")}function Xy(e,t){return t.slice(0,R$(e,t))}function R$(e,t){let r=0;e.length>t.length&&(r=e.length-t.length);let n=t.length;e.length<t.length&&(n=e.length);const o=Array(n);let i=0;o[0]=0;for(let a=1;a<n;a++){for(t[a]==t[i]?o[a]=o[i]:o[a]=i;i>0&&t[a]!=t[i];)i=o[i];t[a]==t[i]&&i++}i=0;for(let a=r;a<e.length;a++){for(;i>0&&e[a]!=t[i];)i=o[i];e[a]==t[i]&&i++}return i}function La(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function no(e){const t=e.match(/^\s*/);return t?t[0]:""}const vc="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",L$=new RegExp(`[${vc}]+|\\s+|[^${vc}]`,"ug");class D$ extends gc{equals(t,r,n){return n.ignoreCase&&(t=t.toLowerCase(),r=r.toLowerCase()),t.trim()===r.trim()}tokenize(t,r={}){let n;if(r.intlSegmenter){const a=r.intlSegmenter;if(a.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(a.segment(t),s=>s.segment)}else n=t.match(L$)||[];const o=[];let i=null;return n.forEach(a=>{/\s/.test(a)?i==null?o.push(a):o.push(o.pop()+a):i!=null&&/\s/.test(i)?o[o.length-1]==i?o.push(o.pop()+a):o.push(i+a):o.push(a),i=a}),o}join(t){return t.map((r,n)=>n==0?r:r.replace(/^\s+/,"")).join("")}postProcess(t,r){if(!t||r.oneChangePerToken)return t;let n=null,o=null,i=null;return t.forEach(a=>{a.added?o=a:a.removed?i=a:((o||i)&&Yy(n,i,o,a),n=a,o=null,i=null)}),(o||i)&&Yy(n,i,o,null),t}}const _$=new D$;function V$(e,t,r){return r?.ignoreWhitespace!=null&&!r.ignoreWhitespace?G$(e,t,r):_$.diff(e,t,r)}function Yy(e,t,r,n){if(t&&r){const o=no(t.value),i=La(t.value),a=no(r.value),s=La(r.value);if(e){const l=Wy(o,a);e.value=Yf(e.value,a,l),t.value=Ra(t.value,l),r.value=Ra(r.value,l)}if(n){const l=Uy(i,s);n.value=Xf(n.value,s,l),t.value=hc(t.value,l),r.value=hc(r.value,l)}}else if(r){if(e){const o=no(r.value);r.value=r.value.substring(o.length)}if(n){const o=no(n.value);n.value=n.value.substring(o.length)}}else if(e&&n){const o=no(n.value),i=no(t.value),a=La(t.value),s=Wy(o,i);t.value=Ra(t.value,s);const l=Uy(Ra(o,s),a);t.value=hc(t.value,l),n.value=Xf(n.value,o,l),e.value=Yf(e.value,o,o.slice(0,o.length-l.length))}else if(n){const o=no(n.value),i=La(t.value),a=Xy(i,o);t.value=hc(t.value,a)}else if(e){const o=La(e.value),i=no(t.value),a=Xy(o,i);t.value=Ra(t.value,a)}}class B$ extends gc{tokenize(t){const r=new RegExp(`(\\r?\\n)|[${vc}]+|[^\\S\\n\\r]+|[^${vc}]`,"ug");return t.match(r)||[]}}const z$=new B$;function G$(e,t,r){return z$.diff(e,t,r)}class H$ extends gc{constructor(){super(...arguments),this.tokenize=X$}equals(t,r,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
357
|
+
`))&&(t=t.trim()),(!n.newlineIsToken||!r.includes(`
|
|
358
|
+
`))&&(r=r.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
359
|
+
`)&&(t=t.slice(0,-1)),r.endsWith(`
|
|
360
|
+
`)&&(r=r.slice(0,-1))),super.equals(t,r,n)}}const W$=new H$;function U$(e,t,r){return W$.diff(e,t,r)}function X$(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
361
|
+
`));const r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let o=0;o<n.length;o++){const i=n[o];o%2&&!t.newlineIsToken?r[r.length-1]+=i:r.push(i)}return r}const Jf=E.forwardRef(({oldText:e,newText:t,diffType:r="words",theme:n="default",showLineNumbers:o=!1,wordWrap:i=!0,className:a,segmentClassName:s,addedClassName:l,removedClassName:c,unchangedClassName:u,ignoreCase:d=!1,ignoreWhitespace:f=!1,maxWidth:g,"aria-label":h,onDiffCalculated:m},p)=>{const b=E.useMemo(()=>{let N=[];switch(r){case"lines":N=U$(e,t,{ignoreWhitespace:f});break;case"chars":N=j$(e,t,{ignoreCase:d});break;case"words":default:N=V$(e,t,{ignoreCase:d});break}return m?.(N),N},[e,t,r,d,f,m]),y=()=>{switch(n){case"minimal":return{added:"bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-200",removed:"bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-200 line-through",unchanged:"text-neutral-700 dark:text-neutral-300"};case"github":return{added:"bg-green-50 dark:bg-green-900/20 text-green-900 dark:text-green-100 border-l-4 border-green-500 pl-2",removed:"bg-red-50 dark:bg-red-900/20 text-red-900 dark:text-red-100 border-l-4 border-red-500 pl-2 line-through",unchanged:"text-neutral-800 dark:text-neutral-200 pl-2"};case"default":default:return{added:"bg-success-100 dark:bg-success-900/70 text-success-800 dark:text-success-200 font-semibold rounded-sm px-1",removed:"bg-error-100 dark:bg-error-900 text-error-800 dark:text-error-200 font-semibold line-through rounded-sm px-1",unchanged:"text-neutral-700 dark:text-neutral-300"}}},w=()=>J("diff-viewer font-mono text-sm leading-relaxed",i?"whitespace-pre-wrap":"whitespace-pre overflow-x-auto",n==="github"&&"border border-neutral-200 dark:border-neutral-700 rounded-lg",n==="minimal"&&"border-l-2 border-neutral-200 dark:border-neutral-600 pl-4"),S=()=>{if(!o||r!=="lines")return null;let N=1;return C.jsxs("div",{className:"flex",children:[C.jsx("div",{className:"select-none text-neutral-400 dark:text-neutral-600 text-right pr-4 border-r border-neutral-200 dark:border-neutral-700",children:b.map((T,P)=>{if(!T.added&&!T.removed){const M=T.value.split(`
|
|
362
|
+
`).length-1,x=Array.from({length:M},($,F)=>N+F);return N+=M,x.map(($,F)=>C.jsx("div",{className:"h-6",children:$},`${P}-${F}`))}return null})}),C.jsx("div",{className:"flex-1 pl-4",children:v()})]})},v=()=>{const N=y();return b.map((T,P)=>{let M="";return T.added?M=J(N.added,l,s):T.removed?M=J(N.removed,c,s):M=J(N.unchanged,u,s),C.jsx("span",{className:M,"data-diff-type":T.added?"added":T.removed?"removed":"unchanged",children:T.value},P)})},O=(()=>{const N=b.filter(M=>M.added).reduce((M,x)=>M+x.value.length,0),T=b.filter(M=>M.removed).reduce((M,x)=>M+x.value.length,0),P=b.filter(M=>!M.added&&!M.removed).reduce((M,x)=>M+x.value.length,0);return{added:N,removed:T,unchanged:P,total:N+T+P}})();return C.jsxs("div",{ref:p,className:J(w(),a),style:{maxWidth:g},"aria-label":h||`Text diff: ${O.added} additions, ${O.removed} deletions`,role:"region","aria-live":"polite",children:[C.jsxs("div",{className:"sr-only",children:["Diff statistics: ",O.added," characters added, ",O.removed," ","characters removed, ",O.unchanged," characters unchanged."]}),o&&r==="lines"?S():v()]})});Jf.displayName="DiffViewer";const Y$=Jf,J$=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Zf=E.forwardRef(({text:e,onClick:t,disabled:r=!1,hidden:n=!1,className:o,size:i="medium",variant:a="default",icon:s,trailingIcon:l,hideHoverEffect:c=!1,onClose:u,stopPropagation:d=!1,onToggle:f,checked:g=!1,highlightText:h,truncateText:m=!1,showTick:p=!1,textWidth:b="100%",tooltip:y,suffixBadge:w,"aria-label":S,"data-testid":v,fullWidth:I=!0,error:O=!1,loading:N=!1},T)=>{const P=E.useCallback(V=>{try{if(N||r)return;u&&u(),d&&V.stopPropagation(),!f&&t&&t(V)}catch(_){console.error("OptionButton: Error in click handler:",_)}},[t,u,d,f,N,r]),M=E.useCallback(V=>{try{f&&!r&&!N&&f(V)}catch(_){console.error("OptionButton: Error in toggle handler:",_)}},[f,r,N]),x=E.useMemo(()=>{if(!h||!e)return e;try{if(typeof e!="string"&&typeof e!="number")return e;const V=J$(h.trim()),_=new RegExp(`(${V})`,"gi"),D=e.toString().split(_);return C.jsx("span",{className:"overflow-hidden text-ellipsis",children:D.map((B,R)=>R%2===1&&B.toLowerCase()===h.toLowerCase()?C.jsx("span",{className:"bg-yellow-200 dark:bg-yellow-800 text-yellow-900 dark:text-yellow-100 rounded-sm px-0.5",children:B},R):B)})}catch(V){return console.error("OptionButton: Error highlighting text:",V),e}},[e,h]),$=()=>{switch(i){case"small":return"py-1.5 px-3 text-sm gap-1.5";case"large":return"py-3 px-5 text-base gap-3";case"medium":default:return"py-2 px-4 text-sm gap-2"}},F=()=>{if(O)return"bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 border-red-200 dark:border-red-800";switch(a){case"highlight":return"bg-blue-50 dark:bg-blue-950 text-blue-700 dark:text-blue-300";case"destructive":return"text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-950";case"default":default:return"text-neutral-700 dark:text-neutral-300"}},k=()=>c||r||N?"":a==="destructive"?"hover:bg-red-50 dark:hover:bg-red-950":"hover:bg-neutral-100 dark:hover:bg-neutral-800",j=()=>J("flex items-center justify-start transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-neutral-900 relative",$(),F(),I?"w-full":"w-auto",r&&"opacity-50 cursor-not-allowed",N&&"cursor-wait",!r&&!N&&"cursor-pointer",k(),o),z=()=>p?C.jsx("div",{className:"ml-auto flex items-center",children:C.jsx("svg",{className:"w-4 h-4 text-blue-600 dark:text-blue-400",fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",children:C.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}):null,H=()=>N?C.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-white/80 dark:bg-neutral-900/80 rounded",children:C.jsx("div",{className:"w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})}):null;return n?null:C.jsxs("button",{ref:T,type:"button",className:j(),onClick:P,disabled:r||N,"aria-label":S||e,"aria-pressed":f?g:void 0,"data-testid":v,title:y,children:[H(),s&&C.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:s}),C.jsxs("div",{className:"flex items-center justify-between min-w-0 flex-1",children:[C.jsx("div",{className:"min-w-0",style:{width:m?"150px":b},children:C.jsx(ge,{className:J("font-medium transition-colors",m&&"truncate"),variant:"medium",children:h?x:e})}),w&&C.jsx("div",{className:"ml-2 flex-shrink-0",children:C.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-neutral-100 dark:bg-neutral-700 text-neutral-700 dark:text-neutral-300 border border-neutral-200 dark:border-neutral-600",children:w})}),z()]}),l&&C.jsx("div",{className:"ml-2 flex items-center justify-center flex-shrink-0",children:l}),f&&C.jsx("div",{className:"ml-2 flex-shrink-0",children:C.jsx(bf,{checked:g,onChange:M,disabled:r||N,size:"small"})})]})});Zf.displayName="OptionButton";const Jy=E.forwardRef(({show:e=!1,onClose:t,actionItems:r=[],selectedItemsCount:n=0,deleteConfig:o,showActionBackground:i=!1,size:a="medium",position:s="bottom",theme:l="primary",width:c="100%",className:u,selectedText:d="selected",actionsText:f="Actions",autoHide:g=!0,maxVisibleItems:h=4,animationDuration:m=.2,"aria-label":p,"data-testid":b,error:y=!1,loading:w=!1,errorMessage:S,onOverflow:v},I)=>{const[O,N]=E.useState(!1),[T,P]=E.useState(!0),[M,x]=E.useState(!1),$=E.useRef(null),F=E.useRef(null),k=E.useCallback(()=>{try{if(!$.current||!F.current||!g)return;const Z=$.current.clientWidth,se=r.filter(Ce=>Ce.visible!==!1),Y=se.length*150+300>Z||se.length>h;Y!==!T&&(P(!Y),x(Y),v?.(Y))}catch(Z){console.error("FloatingBar: Error in overflow calculation:",Z)}},[r,g,h,T,v]);E.useEffect(()=>{if(!g)return;const Z=new ResizeObserver(k);return $.current&&Z.observe($.current),k(),()=>{Z.disconnect()}},[k,g]);const j=E.useCallback(Z=>{try{Z.preventDefault(),t()}catch(se){console.error("FloatingBar: Error in close handler:",se)}},[t]),z=E.useCallback(Z=>{try{if(!o?.onClick)return;o.confirmRequired&&o.confirmMessage?window.confirm(o.confirmMessage)&&o.onClick(Z):o.onClick(Z)}catch(se){console.error("FloatingBar: Error in delete handler:",se)}},[o]),H=()=>{switch(a){case"small":return{container:"px-2 py-1",height:"h-8"};case"large":return{container:"px-4 py-2",height:"h-12"};case"medium":default:return{container:"px-3 py-1.5",height:"h-10"}}},V=()=>{if(y)return{background:"bg-red-600 dark:bg-red-700",text:"text-white",border:"border-red-500",actionBg:"bg-red-500 dark:bg-red-600"};switch(l){case"dark":return{background:"bg-neutral-800 dark:bg-neutral-900",text:"text-white",border:"border-neutral-700",actionBg:"bg-neutral-700 dark:bg-neutral-800"};case"light":return{background:"bg-white dark:bg-neutral-100",text:"text-neutral-900 dark:text-neutral-800",border:"border-neutral-200",actionBg:"bg-neutral-100 dark:bg-neutral-200"};case"primary":default:return{background:"bg-blue-600 dark:bg-blue-700",text:"text-white",border:"border-blue-500",actionBg:"bg-blue-500 dark:bg-blue-600"}}},_=()=>{switch(s){case"top":return"top-4";case"bottom":default:return"bottom-4"}},D=E.useMemo(()=>r.filter(Z=>Z.visible!==!1),[r]),B=E.useMemo(()=>D.map((Z,se)=>({key:Z.id||se.toString(),label:C.jsx(Zf,{text:Z.label||"",icon:Z.dropdownIcon||Z.icon,onClick:Z.onClick,disabled:Z.disabled,tooltip:Z.tooltip,className:"text-sm font-medium","data-testid":Z["data-testid"]}),disabled:Z.disabled||!1})),[D]),R=()=>o?C.jsxs("button",{type:"button",onClick:z,disabled:o.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-colors","text-red-400 hover:text-red-300 hover:bg-red-500/10",o.disabled&&"opacity-50 cursor-not-allowed"),"data-testid":`${b}-delete-button`,children:[o.icon?o.icon:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),C.jsx(ge,{variant:"medium",className:"text-inherit",children:o.label||"Delete"})]}):null,W=()=>D.map(Z=>C.jsx("div",{children:Z.type==="dropdown"?C.jsx("div",{className:"relative",children:C.jsxs("button",{type:"button",onClick:Z.onClick,disabled:Z.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-all duration-200","text-white hover:text-blue-100 hover:bg-white/10",Z.hideLabel&&"px-1.5",Z.disabled&&"opacity-50 cursor-not-allowed",Z.className),title:Z.tooltip,"data-testid":Z["data-testid"],children:[Z.icon,!Z.hideLabel&&Z.label&&C.jsx(ge,{variant:"medium",className:"text-inherit",children:Z.label})]})}):C.jsxs("button",{type:"button",onClick:Z.onClick,disabled:Z.disabled||w,className:J("flex items-center gap-1.5 py-1 px-2 rounded-md transition-all duration-200","text-white hover:text-blue-100 hover:bg-white/10",Z.hideLabel&&"px-1.5",Z.disabled&&"opacity-50 cursor-not-allowed",Z.className),title:Z.tooltip,"data-testid":Z["data-testid"],children:[Z.icon,!Z.hideLabel&&Z.label&&C.jsx(ge,{variant:"medium",className:"text-inherit",children:Z.label})]})},Z.id)),K=()=>C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs("div",{className:"relative",children:[C.jsxs("button",{type:"button",onClick:()=>N(!O),disabled:w,className:J("flex items-center gap-1.5 px-3 py-1 rounded-full transition-colors",V().actionBg,"text-white hover:opacity-90"),"data-testid":`${b}-actions-dropdown`,children:[C.jsx(ge,{variant:"medium",className:"text-white",children:f}),C.jsx("svg",{className:J("w-4 h-4 transition-transform",O&&"rotate-180"),fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),O&&C.jsx("div",{className:"absolute bottom-full mb-2 right-0 bg-white dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-lg shadow-lg min-w-[200px] z-50",children:B.map(Z=>C.jsx("div",{className:"p-1",children:Z.label},Z.key))})]}),R()]}),q=H(),U=V(),Q=_();return!e&&!y?null:C.jsx(Ze.AnimatePresence,{children:(e||y)&&C.jsx(Ze.motion.div,{ref:I,initial:{y:s==="bottom"?20:-20,opacity:0},animate:{y:0,opacity:1},exit:{y:s==="bottom"?20:-20,opacity:0},transition:{duration:m,ease:[.4,0,.2,1]},className:J("fixed left-1/2 transform -translate-x-1/2 z-50",Q,u),style:{width:c},"aria-label":p||`Floating bar with ${n} selected items`,"data-testid":b,children:C.jsxs("div",{ref:$,className:J("flex items-center justify-between border rounded-lg shadow-lg",q.container,q.height,U.background,U.text,U.border),children:[C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("button",{type:"button",onClick:j,disabled:w,className:"flex items-center justify-center w-6 h-6 rounded-full hover:bg-white/10 transition-colors","aria-label":"Close floating bar","data-testid":`${b}-close-button`,children:C.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),y&&S?C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("svg",{className:"w-4 h-4 text-red-200",fill:"currentColor",viewBox:"0 0 20 20",children:C.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),C.jsx(ge,{variant:"medium",className:"text-inherit",children:S})]}):C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-white/20 text-white",children:n}),C.jsx(ge,{variant:"medium",className:"text-inherit",children:d})]})]}),!y&&!w&&C.jsx("div",{ref:F,className:J("flex items-center",i&&J("rounded-full px-2",U.actionBg)),children:T?C.jsxs(Ze.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:m},className:"flex items-center gap-1",children:[W(),R()]}):C.jsx(Ze.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:m},children:K()})}),w&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("div",{className:"w-4 h-4 border-2 border-white/20 border-t-white rounded-full animate-spin"}),C.jsx(ge,{variant:"medium",className:"text-inherit",children:"Loading..."})]})]})})})});Jy.displayName="FloatingBar",xe.Badge=Yb,xe.Banner=e1,xe.CURRENCIES=vf,xe.CURRENCY_SYMBOLS=Rb,xe.Checkbox=gh,xe.CodeEditor=F$,xe.ColorPicker=hh,xe.CreatableSelectField=jb,xe.CurrencyInputField=Lb,xe.DateRange=Db,xe.DebounceInputField=_b,xe.DiffViewer=Jf,xe.FileUpload=Ub,xe.FloatingBar=Jy,xe.InlineDiffHighlighter=Y$,xe.InputField=h0,xe.JsonGrid=Gy,xe.LabelValue=Kb,xe.Modal=Jb,xe.MultiFileUpload=Wb,xe.OptionButton=Zf,xe.PdfViewer=l1,xe.PercentageInputField=Vb,xe.Popper=u1,xe.ResizableSidebar=s1,xe.StatusColorMapping=Xb,xe.Tabs=Hy,xe.Tag=Cf,xe.TextField=r2,xe.Toast=gP,xe.Toggle=bf,xe.Typography=ge,xe.filterTopLevelPaths=v$,xe.formatBooleanValue=xf,xe.formatCurrency=wf,xe.formatDate=pa,xe.isISODateString=Qb,xe.monacoManager=By,xe.parseJson=zy,xe.randomHexString=b$,xe.systemMessages=vr,xe.toast=hP,xe.useOutsideClick=c1,xe.usePythonSyntax=_y,xe.useTheme=Vy,Object.defineProperty(xe,Symbol.toStringTag,{value:"Module"})});
|