@sellgar/kit 0.0.3 → 0.0.4
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/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3046 -7499
- package/dist/index.umd.cjs +28 -29
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(We,ut){typeof exports=="object"&&typeof module<"u"?ut(exports):typeof define=="function"&&define.amd?define(["exports"],ut):(We=typeof globalThis<"u"?globalThis:We||self,ut(We.index={}))})(this,function(We){"use strict";function ut(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const i in o)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(o,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>o[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Et={exports:{}},K={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.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 En;function $r(){if(En)return K;En=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function f(l){return l===null||typeof l!="object"?null:(l=g&&l[g]||l["@@iterator"],typeof l=="function"?l:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,E={};function T(l,y,S){this.props=l,this.context=y,this.refs=E,this.updater=S||h}T.prototype.isReactComponent={},T.prototype.setState=function(l,y){if(typeof l!="object"&&typeof l!="function"&&l!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,l,y,"setState")},T.prototype.forceUpdate=function(l){this.updater.enqueueForceUpdate(this,l,"forceUpdate")};function x(){}x.prototype=T.prototype;function j(l,y,S){this.props=l,this.context=y,this.refs=E,this.updater=S||h}var P=j.prototype=new x;P.constructor=j,w(P,T.prototype),P.isPureReactComponent=!0;var H=Array.isArray,A={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function B(l,y,S,I,U,oe){return S=oe.ref,{$$typeof:e,type:l,key:y,ref:S!==void 0?S:null,props:oe}}function ee(l,y){return B(l.type,y,void 0,void 0,void 0,l.props)}function q(l){return typeof l=="object"&&l!==null&&l.$$typeof===e}function ne(l){var y={"=":"=0",":":"=2"};return"$"+l.replace(/[=:]/g,function(S){return y[S]})}var te=/\/+/g;function Q(l,y){return typeof l=="object"&&l!==null&&l.key!=null?ne(""+l.key):y.toString(36)}function J(){}function V(l){switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:switch(typeof l.status=="string"?l.then(J,J):(l.status="pending",l.then(function(y){l.status==="pending"&&(l.status="fulfilled",l.value=y)},function(y){l.status==="pending"&&(l.status="rejected",l.reason=y)})),l.status){case"fulfilled":return l.value;case"rejected":throw l.reason}}throw l}function z(l,y,S,I,U){var oe=typeof l;(oe==="undefined"||oe==="boolean")&&(l=null);var $=!1;if(l===null)$=!0;else switch(oe){case"bigint":case"string":case"number":$=!0;break;case"object":switch(l.$$typeof){case e:case t:$=!0;break;case v:return $=l._init,z($(l._payload),y,S,I,U)}}if($)return U=U(l),$=I===""?"."+Q(l,0):I,H(U)?(S="",$!=null&&(S=$.replace(te,"$&/")+"/"),z(U,y,S,"",function(Pe){return Pe})):U!=null&&(q(U)&&(U=ee(U,S+(U.key==null||l&&l.key===U.key?"":(""+U.key).replace(te,"$&/")+"/")+$)),y.push(U)),1;$=0;var le=I===""?".":I+":";if(H(l))for(var re=0;re<l.length;re++)I=l[re],oe=le+Q(I,re),$+=z(I,y,S,oe,U);else if(re=f(l),typeof re=="function")for(l=re.call(l),re=0;!(I=l.next()).done;)I=I.value,oe=le+Q(I,re++),$+=z(I,y,S,oe,U);else if(oe==="object"){if(typeof l.then=="function")return z(V(l),y,S,I,U);throw y=String(l),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return $}function W(l,y,S){if(l==null)return l;var I=[],U=0;return z(l,I,"","",function(oe){return y.call(S,oe,U++)}),I}function k(l){if(l._status===-1){var y=l._result;y=y(),y.then(function(S){(l._status===0||l._status===-1)&&(l._status=1,l._result=S)},function(S){(l._status===0||l._status===-1)&&(l._status=2,l._result=S)}),l._status===-1&&(l._status=0,l._result=y)}if(l._status===1)return l._result.default;throw l._result}var C=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function R(){}return K.Children={map:W,forEach:function(l,y,S){W(l,function(){y.apply(this,arguments)},S)},count:function(l){var y=0;return W(l,function(){y++}),y},toArray:function(l){return W(l,function(y){return y})||[]},only:function(l){if(!q(l))throw Error("React.Children.only expected to receive a single React element child.");return l}},K.Component=T,K.Fragment=r,K.Profiler=i,K.PureComponent=j,K.StrictMode=o,K.Suspense=d,K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,K.act=function(){throw Error("act(...) is not supported in production builds of React.")},K.cache=function(l){return function(){return l.apply(null,arguments)}},K.cloneElement=function(l,y,S){if(l==null)throw Error("The argument must be a React element, but you passed "+l+".");var I=w({},l.props),U=l.key,oe=void 0;if(y!=null)for($ in y.ref!==void 0&&(oe=void 0),y.key!==void 0&&(U=""+y.key),y)!X.call(y,$)||$==="key"||$==="__self"||$==="__source"||$==="ref"&&y.ref===void 0||(I[$]=y[$]);var $=arguments.length-2;if($===1)I.children=S;else if(1<$){for(var le=Array($),re=0;re<$;re++)le[re]=arguments[re+2];I.children=le}return B(l.type,U,void 0,void 0,oe,I)},K.createContext=function(l){return l={$$typeof:a,_currentValue:l,_currentValue2:l,_threadCount:0,Provider:null,Consumer:null},l.Provider=l,l.Consumer={$$typeof:s,_context:l},l},K.createElement=function(l,y,S){var I,U={},oe=null;if(y!=null)for(I in y.key!==void 0&&(oe=""+y.key),y)X.call(y,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(U[I]=y[I]);var $=arguments.length-2;if($===1)U.children=S;else if(1<$){for(var le=Array($),re=0;re<$;re++)le[re]=arguments[re+2];U.children=le}if(l&&l.defaultProps)for(I in $=l.defaultProps,$)U[I]===void 0&&(U[I]=$[I]);return B(l,oe,void 0,void 0,null,U)},K.createRef=function(){return{current:null}},K.forwardRef=function(l){return{$$typeof:c,render:l}},K.isValidElement=q,K.lazy=function(l){return{$$typeof:v,_payload:{_status:-1,_result:l},_init:k}},K.memo=function(l,y){return{$$typeof:u,type:l,compare:y===void 0?null:y}},K.startTransition=function(l){var y=A.T,S={};A.T=S;try{var I=l(),U=A.S;U!==null&&U(S,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(R,C)}catch(oe){C(oe)}finally{A.T=y}},K.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},K.use=function(l){return A.H.use(l)},K.useActionState=function(l,y,S){return A.H.useActionState(l,y,S)},K.useCallback=function(l,y){return A.H.useCallback(l,y)},K.useContext=function(l){return A.H.useContext(l)},K.useDebugValue=function(){},K.useDeferredValue=function(l,y){return A.H.useDeferredValue(l,y)},K.useEffect=function(l,y){return A.H.useEffect(l,y)},K.useId=function(){return A.H.useId()},K.useImperativeHandle=function(l,y,S){return A.H.useImperativeHandle(l,y,S)},K.useInsertionEffect=function(l,y){return A.H.useInsertionEffect(l,y)},K.useLayoutEffect=function(l,y){return A.H.useLayoutEffect(l,y)},K.useMemo=function(l,y){return A.H.useMemo(l,y)},K.useOptimistic=function(l,y){return A.H.useOptimistic(l,y)},K.useReducer=function(l,y,S){return A.H.useReducer(l,y,S)},K.useRef=function(l){return A.H.useRef(l)},K.useState=function(l){return A.H.useState(l)},K.useSyncExternalStore=function(l,y,S){return A.H.useSyncExternalStore(l,y,S)},K.useTransition=function(){return A.H.useTransition()},K.version="19.0.0",K}var ct={exports:{}};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.development.js
|
|
12
12
|
*
|
|
@@ -14,32 +14,32 @@
|
|
|
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
|
-
*/
|
|
18
|
-
at`)?" (<anonymous>)":-1<
|
|
19
|
-
`+
|
|
20
|
-
`),
|
|
21
|
-
`);for(
|
|
22
|
-
`+
|
|
17
|
+
*/ct.exports;var wn;function Ir(){return wn||(wn=1,function(e,t){process.env.NODE_ENV!=="production"&&function(){function r(n,p){Object.defineProperty(s.prototype,n,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",p[0],p[1])}})}function o(n){return n===null||typeof n!="object"?null:(n=_t&&n[_t]||n["@@iterator"],typeof n=="function"?n:null)}function i(n,p){n=(n=n.constructor)&&(n.displayName||n.name)||"ReactClass";var b=n+"."+p;bt[b]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",p,n),bt[b]=!0)}function s(n,p,b){this.props=n,this.context=p,this.refs=M,this.updater=b||m}function a(){}function c(n,p,b){this.props=n,this.context=p,this.refs=M,this.updater=b||m}function d(n){return""+n}function u(n){try{d(n);var p=!1}catch{p=!0}if(p){p=console;var b=p.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return b.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),d(n)}}function v(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===G?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case re:return"Fragment";case le:return"Portal";case Be:return"Profiler";case Pe:return"StrictMode";case ke:return"Suspense";case Ye:return"SuspenseList"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case $e:return(n.displayName||"Context")+".Provider";case ze:return(n._context.displayName||"Context")+".Consumer";case Ie:var p=n.render;return n=n.displayName,n||(n=p.displayName||p.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Ze:return p=n.displayName||null,p!==null?p:v(n.type)||"Memo";case Ve:p=n._payload,n=n._init;try{return v(n(p))}catch{}}return null}function g(n){return typeof n=="string"||typeof n=="function"||n===re||n===Be||n===Pe||n===ke||n===Ye||n===It||typeof n=="object"&&n!==null&&(n.$$typeof===Ve||n.$$typeof===Ze||n.$$typeof===$e||n.$$typeof===ze||n.$$typeof===Ie||n.$$typeof===he||n.getModuleId!==void 0)}function f(){}function h(){if(Re===0){qe=console.log,Ce=console.info,Je=console.warn,Te=console.error,Or=console.group,xr=console.groupCollapsed,Cr=console.groupEnd;var n={configurable:!0,enumerable:!0,value:f,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Re++}function w(){if(Re--,Re===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},n,{value:qe}),info:N({},n,{value:Ce}),warn:N({},n,{value:Je}),error:N({},n,{value:Te}),group:N({},n,{value:Or}),groupCollapsed:N({},n,{value:xr}),groupEnd:N({},n,{value:Cr})})}0>Re&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function E(n){if(hn===void 0)try{throw Error()}catch(b){var p=b.stack.trim().match(/\n( *(at )?)/);hn=p&&p[1]||"",Sr=-1<b.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<b.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+hn+n+Sr}function T(n,p){if(!n||vn)return"";var b=yn.get(n);if(b!==void 0)return b;vn=!0,b=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var O=null;O=F.H,F.H=null,h();try{var L={DetermineComponentFrameRoot:function(){try{if(p){var je=function(){throw Error()};if(Object.defineProperty(je.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(je,[])}catch(He){var Ft=He}Reflect.construct(n,[],je)}else{try{je.call()}catch(He){Ft=He}n.call(je.prototype)}}else{try{throw Error()}catch(He){Ft=He}(je=n())&&typeof je.catch=="function"&&je.catch(function(){})}}catch(He){if(He&&Ft&&typeof He.stack=="string")return[He.stack,Ft.stack]}return[null,null]}};L.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Y=Object.getOwnPropertyDescriptor(L.DetermineComponentFrameRoot,"name");Y&&Y.configurable&&Object.defineProperty(L.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var D=L.DetermineComponentFrameRoot(),ae=D[0],ie=D[1];if(ae&&ie){var de=ae.split(`
|
|
20
|
+
`),be=ie.split(`
|
|
21
|
+
`);for(D=Y=0;Y<de.length&&!de[Y].includes("DetermineComponentFrameRoot");)Y++;for(;D<be.length&&!be[D].includes("DetermineComponentFrameRoot");)D++;if(Y===de.length||D===be.length)for(Y=de.length-1,D=be.length-1;1<=Y&&0<=D&&de[Y]!==be[D];)D--;for(;1<=Y&&0<=D;Y--,D--)if(de[Y]!==be[D]){if(Y!==1||D!==1)do if(Y--,D--,0>D||de[Y]!==be[D]){var et=`
|
|
22
|
+
`+de[Y].replace(" at new "," at ");return n.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",n.displayName)),typeof n=="function"&&yn.set(n,et),et}while(1<=Y&&0<=D);break}}}finally{vn=!1,F.H=O,w(),Error.prepareStackTrace=b}return de=(de=n?n.displayName||n.name:"")?E(de):"",typeof n=="function"&&yn.set(n,de),de}function x(n){if(n==null)return"";if(typeof n=="function"){var p=n.prototype;return T(n,!(!p||!p.isReactComponent))}if(typeof n=="string")return E(n);switch(n){case ke:return E("Suspense");case Ye:return E("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case Ie:return n=T(n.render,!1),n;case Ze:return x(n.type);case Ve:p=n._payload,n=n._init;try{return x(n(p))}catch{}}return""}function j(){var n=F.A;return n===null?null:n.getOwner()}function P(n){if(xe.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function H(n,p){function b(){Ar||(Ar=!0,console.error("%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://react.dev/link/special-props)",p))}b.isReactWarning=!0,Object.defineProperty(n,"key",{get:b,configurable:!0})}function A(){var n=v(this.type);return Pr[n]||(Pr[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function X(n,p,b,O,L,Y){return b=Y.ref,n={$$typeof:$,type:n,key:p,props:Y,_owner:L},(b!==void 0?b:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:A}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function B(n,p){return p=X(n.type,p,void 0,void 0,n._owner,n.props),p._store.validated=n._store.validated,p}function ee(n,p){if(typeof n=="object"&&n&&n.$$typeof!==Hi){if(ue(n))for(var b=0;b<n.length;b++){var O=n[b];q(O)&&ne(O,p)}else if(q(n))n._store&&(n._store.validated=1);else if(b=o(n),typeof b=="function"&&b!==n.entries&&(b=b.call(n),b!==n))for(;!(n=b.next()).done;)q(n.value)&&ne(n.value,p)}}function q(n){return typeof n=="object"&&n!==null&&n.$$typeof===$}function ne(n,p){if(n._store&&!n._store.validated&&n.key==null&&(n._store.validated=1,p=te(p),!kr[p])){kr[p]=!0;var b="";n&&n._owner!=null&&n._owner!==j()&&(b=null,typeof n._owner.tag=="number"?b=v(n._owner.type):typeof n._owner.name=="string"&&(b=n._owner.name),b=" It was passed a child from "+b+".");var O=F.getCurrentStack;F.getCurrentStack=function(){var L=x(n.type);return O&&(L+=O()||""),L},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',p,b),F.getCurrentStack=O}}function te(n){var p="",b=j();return b&&(b=v(b.type))&&(p=`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+
|
|
24
|
+
Check the render method of \``+b+"`."),p||(n=v(n))&&(p=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+
|
|
26
|
+
Check the top-level render call using <`+n+">."),p}function Q(n){var p={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(b){return p[b]})}function J(n,p){return typeof n=="object"&&n!==null&&n.key!=null?(u(n.key),Q(""+n.key)):p.toString(36)}function V(){}function z(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(V,V):(n.status="pending",n.then(function(p){n.status==="pending"&&(n.status="fulfilled",n.value=p)},function(p){n.status==="pending"&&(n.status="rejected",n.reason=p)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function W(n,p,b,O,L){var Y=typeof n;(Y==="undefined"||Y==="boolean")&&(n=null);var D=!1;if(n===null)D=!0;else switch(Y){case"bigint":case"string":case"number":D=!0;break;case"object":switch(n.$$typeof){case $:case le:D=!0;break;case Ve:return D=n._init,W(D(n._payload),p,b,O,L)}}if(D){D=n,L=L(D);var ae=O===""?"."+J(D,0):O;return ue(L)?(b="",ae!=null&&(b=ae.replace(Mr,"$&/")+"/"),W(L,p,b,"",function(de){return de})):L!=null&&(q(L)&&(L.key!=null&&(D&&D.key===L.key||u(L.key)),b=B(L,b+(L.key==null||D&&D.key===L.key?"":(""+L.key).replace(Mr,"$&/")+"/")+ae),O!==""&&D!=null&&q(D)&&D.key==null&&D._store&&!D._store.validated&&(b._store.validated=2),L=b),p.push(L)),1}if(D=0,ae=O===""?".":O+":",ue(n))for(var ie=0;ie<n.length;ie++)O=n[ie],Y=ae+J(O,ie),D+=W(O,p,b,Y,L);else if(ie=o(n),typeof ie=="function")for(ie===n.entries&&(jr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jr=!0),n=ie.call(n),ie=0;!(O=n.next()).done;)O=O.value,Y=ae+J(O,ie++),D+=W(O,p,b,Y,L);else if(Y==="object"){if(typeof n.then=="function")return W(z(n),p,b,O,L);throw p=String(n),Error("Objects are not valid as a React child (found: "+(p==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":p)+"). If you meant to render a collection of children, use an array instead.")}return D}function k(n,p,b){if(n==null)return n;var O=[],L=0;return W(n,O,"","",function(Y){return p.call(b,Y,L++)}),O}function C(n){if(n._status===-1){var p=n._result;p=p(),p.then(function(b){(n._status===0||n._status===-1)&&(n._status=1,n._result=b)},function(b){(n._status===0||n._status===-1)&&(n._status=2,n._result=b)}),n._status===-1&&(n._status=0,n._result=p)}if(n._status===1)return p=n._result,p===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
27
27
|
|
|
28
28
|
Your code should look like:
|
|
29
29
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
30
30
|
|
|
31
|
-
Did you accidentally put curly braces around the import?`,
|
|
31
|
+
Did you accidentally put curly braces around the import?`,p),"default"in p||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
32
32
|
|
|
33
33
|
Your code should look like:
|
|
34
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
34
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,p),p.default;throw n._result}function R(){var n=F.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
35
35
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
36
36
|
2. You might be breaking the Rules of Hooks
|
|
37
37
|
3. You might have more than one copy of React in the same app
|
|
38
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}function p(){}function w(a){if(Ot===null)try{var y=("require"+Math.random()).slice(0,7);Ot=(e&&e[y]).call(e,"timers").setImmediate}catch{Ot=function(R){Rn===!1&&(Rn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var I=new MessageChannel;I.port1.onmessage=R,I.port2.postMessage(void 0)}}return Ot(a)}function A(a){return 1<a.length&&typeof AggregateError=="function"?new AggregateError(a):a[0]}function q(a,y){y!==gt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),gt=y}function U(a,y,k){var R=H.actQueue;if(R!==null)if(R.length!==0)try{se(R),w(function(){return U(a,y,k)});return}catch(I){H.thrownErrors.push(I)}else H.actQueue=null;0<H.thrownErrors.length?(R=A(H.thrownErrors),H.thrownErrors.length=0,k(R)):y(a)}function se(a){if(!It){It=!0;var y=0;try{for(;y<a.length;y++){var k=a[y];do{H.didUsePromise=!1;var R=k(!1);if(R!==null){if(H.didUsePromise){a[y]=k,a.splice(0,y);return}k=R}else break}while(!0)}a.length=0}catch(I){a.splice(0,y+1),H.thrownErrors.push(I)}finally{It=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var V=Symbol.for("react.transitional.element"),fe=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),ke=Symbol.for("react.strict_mode"),Qe=Symbol.for("react.profiler"),He=Symbol.for("react.consumer"),Ye=Symbol.for("react.context"),Ke=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Ge=Symbol.for("react.lazy"),zt=Symbol.for("react.offscreen"),kt=Symbol.iterator,$t={},v={isMounted:function(){return!1},enqueueForceUpdate:function(a){n(a,"forceUpdate")},enqueueReplaceState:function(a){n(a,"replaceState")},enqueueSetState:function(a){n(a,"setState")}},z=Object.assign,$={};Object.freeze($),l.prototype.isReactComponent={},l.prototype.setState=function(a,y){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,y,"setState")},l.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};var ie={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},be;for(be in ie)ie.hasOwnProperty(be)&&i(be,ie[be]);o.prototype=l.prototype,ie=s.prototype=new o,ie.constructor=s,z(ie,l.prototype),ie.isPureReactComponent=!0;var me=Array.isArray,ee=Symbol.for("react.client.reference"),H={H:null,A:null,T:null,S:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null},Ie=Object.prototype.hasOwnProperty,Ee=Symbol.for("react.client.reference"),Pe=0,at,Me,st,Fe,En,xn,Qt;f.__reactDisabledLog=!0;var kn,On,Sn=!1,Jt=new(typeof WeakMap=="function"?WeakMap:Map),ze=Symbol.for("react.client.reference"),De,Lt,ge={},Xe={},cr=!1,Zt=/\/+/g,Tn=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Rn=!1,Ot=null,gt=0,St=!1,It=!1,en=typeof queueMicrotask=="function"?function(a){queueMicrotask(function(){return queueMicrotask(a)})}:w;t.Children={map:M,forEach:function(a,y,k){M(a,function(){y.apply(this,arguments)},k)},count:function(a){var y=0;return M(a,function(){y++}),y},toArray:function(a){return M(a,function(y){return y})||[]},only:function(a){if(!J(a))throw Error("React.Children.only expected to receive a single React element child.");return a}},t.Component=l,t.Fragment=ae,t.Profiler=Qe,t.PureComponent=s,t.StrictMode=ke,t.Suspense=de,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,t.act=function(a){var y=H.actQueue,k=gt;gt++;var R=H.actQueue=y!==null?y:[],I=!1;try{var T=a()}catch(ne){H.thrownErrors.push(ne)}if(0<H.thrownErrors.length)throw q(y,k),a=A(H.thrownErrors),H.thrownErrors.length=0,a;if(T!==null&&typeof T=="object"&&typeof T.then=="function"){var C=T;return en(function(){I||St||(St=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(ne,ce){I=!0,C.then(function(Oe){if(q(y,k),k===0){try{se(R),w(function(){return U(Oe,ne,ce)})}catch(Je){H.thrownErrors.push(Je)}if(0<H.thrownErrors.length){var vt=A(H.thrownErrors);H.thrownErrors.length=0,ce(vt)}}else ne(Oe)},function(Oe){q(y,k),0<H.thrownErrors.length&&(Oe=A(H.thrownErrors),H.thrownErrors.length=0),ce(Oe)})}}}var X=T;if(q(y,k),k===0&&(se(R),R.length!==0&&en(function(){I||St||(St=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),H.actQueue=null),0<H.thrownErrors.length)throw a=A(H.thrownErrors),H.thrownErrors.length=0,a;return{then:function(ne,ce){I=!0,k===0?(H.actQueue=R,w(function(){return U(X,ne,ce)})):ne(X)}}},t.cache=function(a){return function(){return a.apply(null,arguments)}},t.cloneElement=function(a,y,k){if(a==null)throw Error("The argument must be a React element, but you passed "+a+".");var R=z({},a.props),I=a.key,T=a._owner;if(y!=null){var C;e:{if(Ie.call(y,"ref")&&(C=Object.getOwnPropertyDescriptor(y,"ref").get)&&C.isReactWarning){C=!1;break e}C=y.ref!==void 0}C&&(T=D()),P(y)&&(c(y.key),I=""+y.key);for(X in y)!Ie.call(y,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&y.ref===void 0||(R[X]=y[X])}var X=arguments.length-2;if(X===1)R.children=k;else if(1<X){C=Array(X);for(var ne=0;ne<X;ne++)C[ne]=arguments[ne+2];R.children=C}for(R=B(a.type,I,void 0,void 0,T,R),I=2;I<arguments.length;I++)Z(arguments[I],R.type);return R},t.createContext=function(a){return a={$$typeof:Ye,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null},a.Provider=a,a.Consumer={$$typeof:He,_context:a},a._currentRenderer=null,a._currentRenderer2=null,a},t.createElement=function(a,y,k){if(d(a))for(var R=2;R<arguments.length;R++)Z(arguments[R],a);else{if(R="",(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),a===null)var I="null";else me(a)?I="array":a!==void 0&&a.$$typeof===V?(I="<"+(m(a.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):I=typeof a;console.error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,R)}var T;if(R={},I=null,y!=null)for(T in Lt||!("__self"in y)||"key"in y||(Lt=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),P(y)&&(c(y.key),I=""+y.key),y)Ie.call(y,T)&&T!=="key"&&T!=="__self"&&T!=="__source"&&(R[T]=y[T]);var C=arguments.length-2;if(C===1)R.children=k;else if(1<C){for(var X=Array(C),ne=0;ne<C;ne++)X[ne]=arguments[ne+2];Object.freeze&&Object.freeze(X),R.children=X}if(a&&a.defaultProps)for(T in C=a.defaultProps,C)R[T]===void 0&&(R[T]=C[T]);return I&&Y(R,typeof a=="function"?a.displayName||a.name||"Unknown":a),B(a,I,void 0,void 0,D(),R)},t.createRef=function(){var a={current:null};return Object.seal(a),a},t.forwardRef=function(a){a!=null&&a.$$typeof===_e?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof a!="function"?console.error("forwardRef requires a render function but was given %s.",a===null?"null":typeof a):a.length!==0&&a.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",a.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),a!=null&&a.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:Ke,render:a},k;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return k},set:function(R){k=R,a.name||a.displayName||(Object.defineProperty(a,"name",{value:R}),a.displayName=R)}}),y},t.isValidElement=J,t.lazy=function(a){return{$$typeof:Ge,_payload:{_status:-1,_result:a},_init:N}},t.memo=function(a,y){d(a)||console.error("memo: The first argument must be a component. Instead received: %s",a===null?"null":typeof a),y={$$typeof:_e,type:a,compare:y===void 0?null:y};var k;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return k},set:function(R){k=R,a.name||a.displayName||(Object.defineProperty(a,"name",{value:R}),a.displayName=R)}}),y},t.startTransition=function(a){var y=H.T,k={};H.T=k,k._updatedFibers=new Set;try{var R=a(),I=H.S;I!==null&&I(k,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(p,Tn)}catch(T){Tn(T)}finally{y===null&&k._updatedFibers&&(a=k._updatedFibers.size,k._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),H.T=y}},t.unstable_useCacheRefresh=function(){return S().useCacheRefresh()},t.use=function(a){return S().use(a)},t.useActionState=function(a,y,k){return S().useActionState(a,y,k)},t.useCallback=function(a,y){return S().useCallback(a,y)},t.useContext=function(a){var y=S();return a.$$typeof===He&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(a)},t.useDebugValue=function(a,y){return S().useDebugValue(a,y)},t.useDeferredValue=function(a,y){return S().useDeferredValue(a,y)},t.useEffect=function(a,y){return S().useEffect(a,y)},t.useId=function(){return S().useId()},t.useImperativeHandle=function(a,y,k){return S().useImperativeHandle(a,y,k)},t.useInsertionEffect=function(a,y){return S().useInsertionEffect(a,y)},t.useLayoutEffect=function(a,y){return S().useLayoutEffect(a,y)},t.useMemo=function(a,y){return S().useMemo(a,y)},t.useOptimistic=function(a,y){return S().useOptimistic(a,y)},t.useReducer=function(a,y,k){return S().useReducer(a,y,k)},t.useRef=function(a){return S().useRef(a)},t.useState=function(a){return S().useState(a)},t.useSyncExternalStore=function(a,y,k){return S().useSyncExternalStore(a,y,k)},t.useTransition=function(){return S().useTransition()},t.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(nn,nn.exports)),nn.exports}var ki;function Nn(){return ki||(ki=1,process.env.NODE_ENV==="production"?Cn.exports=wo():Cn.exports=_o()),Cn.exports}var _=Nn();const g=fr(_),Eo=tn({__proto__:null,default:g},[_]);var dr={exports:{}};/*!
|
|
38
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n}function l(){}function y(n){if(Yt===null)try{var p=("require"+Math.random()).slice(0,7);Yt=(e&&e[p]).call(e,"timers").setImmediate}catch{Yt=function(O){Dr===!1&&(Dr=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var L=new MessageChannel;L.port1.onmessage=O,L.port2.postMessage(void 0)}}return Yt(n)}function S(n){return 1<n.length&&typeof AggregateError=="function"?new AggregateError(n):n[0]}function I(n,p){p!==Ht-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ht=p}function U(n,p,b){var O=F.actQueue;if(O!==null)if(O.length!==0)try{oe(O),y(function(){return U(n,p,b)});return}catch(L){F.thrownErrors.push(L)}else F.actQueue=null;0<F.thrownErrors.length?(O=S(F.thrownErrors),F.thrownErrors.length=0,b(O)):p(n)}function oe(n){if(!_n){_n=!0;var p=0;try{for(;p<n.length;p++){var b=n[p];do{F.didUsePromise=!1;var O=b(!1);if(O!==null){if(F.didUsePromise){n[p]=b,n.splice(0,p);return}b=O}else break}while(!0)}n.length=0}catch(L){n.splice(0,p+1),F.thrownErrors.push(L)}finally{_n=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $=Symbol.for("react.transitional.element"),le=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),Pe=Symbol.for("react.strict_mode"),Be=Symbol.for("react.profiler"),ze=Symbol.for("react.consumer"),$e=Symbol.for("react.context"),Ie=Symbol.for("react.forward_ref"),ke=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),Ze=Symbol.for("react.memo"),Ve=Symbol.for("react.lazy"),It=Symbol.for("react.offscreen"),_t=Symbol.iterator,bt={},m={isMounted:function(){return!1},enqueueForceUpdate:function(n){i(n,"forceUpdate")},enqueueReplaceState:function(n){i(n,"replaceState")},enqueueSetState:function(n){i(n,"setState")}},N=Object.assign,M={};Object.freeze(M),s.prototype.isReactComponent={},s.prototype.setState=function(n,p){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,p,"setState")},s.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};var Z={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},me;for(me in Z)Z.hasOwnProperty(me)&&r(me,Z[me]);a.prototype=s.prototype,Z=c.prototype=new a,Z.constructor=c,N(Z,s.prototype),Z.isPureReactComponent=!0;var ue=Array.isArray,G=Symbol.for("react.client.reference"),F={H:null,A:null,T:null,S:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null},xe=Object.prototype.hasOwnProperty,he=Symbol.for("react.client.reference"),Re=0,qe,Ce,Je,Te,Or,xr,Cr;f.__reactDisabledLog=!0;var hn,Sr,vn=!1,yn=new(typeof WeakMap=="function"?WeakMap:Map),Hi=Symbol.for("react.client.reference"),Ar,Nr,Pr={},kr={},jr=!1,Mr=/\/+/g,Lr=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Dr=!1,Yt=null,Ht=0,Wt=!1,_n=!1,zr=typeof queueMicrotask=="function"?function(n){queueMicrotask(function(){return queueMicrotask(n)})}:y;t.Children={map:k,forEach:function(n,p,b){k(n,function(){p.apply(this,arguments)},b)},count:function(n){var p=0;return k(n,function(){p++}),p},toArray:function(n){return k(n,function(p){return p})||[]},only:function(n){if(!q(n))throw Error("React.Children.only expected to receive a single React element child.");return n}},t.Component=s,t.Fragment=re,t.Profiler=Be,t.PureComponent=c,t.StrictMode=Pe,t.Suspense=ke,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,t.act=function(n){var p=F.actQueue,b=Ht;Ht++;var O=F.actQueue=p!==null?p:[],L=!1;try{var Y=n()}catch(ie){F.thrownErrors.push(ie)}if(0<F.thrownErrors.length)throw I(p,b),n=S(F.thrownErrors),F.thrownErrors.length=0,n;if(Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var D=Y;return zr(function(){L||Wt||(Wt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(ie,de){L=!0,D.then(function(be){if(I(p,b),b===0){try{oe(O),y(function(){return U(be,ie,de)})}catch(je){F.thrownErrors.push(je)}if(0<F.thrownErrors.length){var et=S(F.thrownErrors);F.thrownErrors.length=0,de(et)}}else ie(be)},function(be){I(p,b),0<F.thrownErrors.length&&(be=S(F.thrownErrors),F.thrownErrors.length=0),de(be)})}}}var ae=Y;if(I(p,b),b===0&&(oe(O),O.length!==0&&zr(function(){L||Wt||(Wt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),F.actQueue=null),0<F.thrownErrors.length)throw n=S(F.thrownErrors),F.thrownErrors.length=0,n;return{then:function(ie,de){L=!0,b===0?(F.actQueue=O,y(function(){return U(ae,ie,de)})):ie(ae)}}},t.cache=function(n){return function(){return n.apply(null,arguments)}},t.cloneElement=function(n,p,b){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var O=N({},n.props),L=n.key,Y=n._owner;if(p!=null){var D;e:{if(xe.call(p,"ref")&&(D=Object.getOwnPropertyDescriptor(p,"ref").get)&&D.isReactWarning){D=!1;break e}D=p.ref!==void 0}D&&(Y=j()),P(p)&&(u(p.key),L=""+p.key);for(ae in p)!xe.call(p,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&p.ref===void 0||(O[ae]=p[ae])}var ae=arguments.length-2;if(ae===1)O.children=b;else if(1<ae){D=Array(ae);for(var ie=0;ie<ae;ie++)D[ie]=arguments[ie+2];O.children=D}for(O=X(n.type,L,void 0,void 0,Y,O),L=2;L<arguments.length;L++)ee(arguments[L],O.type);return O},t.createContext=function(n){return n={$$typeof:$e,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:ze,_context:n},n._currentRenderer=null,n._currentRenderer2=null,n},t.createElement=function(n,p,b){if(g(n))for(var O=2;O<arguments.length;O++)ee(arguments[O],n);else{if(O="",(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n===null)var L="null";else ue(n)?L="array":n!==void 0&&n.$$typeof===$?(L="<"+(v(n.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):L=typeof n;console.error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,O)}var Y;if(O={},L=null,p!=null)for(Y in Nr||!("__self"in p)||"key"in p||(Nr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),P(p)&&(u(p.key),L=""+p.key),p)xe.call(p,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(O[Y]=p[Y]);var D=arguments.length-2;if(D===1)O.children=b;else if(1<D){for(var ae=Array(D),ie=0;ie<D;ie++)ae[ie]=arguments[ie+2];Object.freeze&&Object.freeze(ae),O.children=ae}if(n&&n.defaultProps)for(Y in D=n.defaultProps,D)O[Y]===void 0&&(O[Y]=D[Y]);return L&&H(O,typeof n=="function"?n.displayName||n.name||"Unknown":n),X(n,L,void 0,void 0,j(),O)},t.createRef=function(){var n={current:null};return Object.seal(n),n},t.forwardRef=function(n){n!=null&&n.$$typeof===Ze?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof n!="function"?console.error("forwardRef requires a render function but was given %s.",n===null?"null":typeof n):n.length!==0&&n.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",n.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),n!=null&&n.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var p={$$typeof:Ie,render:n},b;return Object.defineProperty(p,"displayName",{enumerable:!1,configurable:!0,get:function(){return b},set:function(O){b=O,n.name||n.displayName||(Object.defineProperty(n,"name",{value:O}),n.displayName=O)}}),p},t.isValidElement=q,t.lazy=function(n){return{$$typeof:Ve,_payload:{_status:-1,_result:n},_init:C}},t.memo=function(n,p){g(n)||console.error("memo: The first argument must be a component. Instead received: %s",n===null?"null":typeof n),p={$$typeof:Ze,type:n,compare:p===void 0?null:p};var b;return Object.defineProperty(p,"displayName",{enumerable:!1,configurable:!0,get:function(){return b},set:function(O){b=O,n.name||n.displayName||(Object.defineProperty(n,"name",{value:O}),n.displayName=O)}}),p},t.startTransition=function(n){var p=F.T,b={};F.T=b,b._updatedFibers=new Set;try{var O=n(),L=F.S;L!==null&&L(b,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(l,Lr)}catch(Y){Lr(Y)}finally{p===null&&b._updatedFibers&&(n=b._updatedFibers.size,b._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),F.T=p}},t.unstable_useCacheRefresh=function(){return R().useCacheRefresh()},t.use=function(n){return R().use(n)},t.useActionState=function(n,p,b){return R().useActionState(n,p,b)},t.useCallback=function(n,p){return R().useCallback(n,p)},t.useContext=function(n){var p=R();return n.$$typeof===ze&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),p.useContext(n)},t.useDebugValue=function(n,p){return R().useDebugValue(n,p)},t.useDeferredValue=function(n,p){return R().useDeferredValue(n,p)},t.useEffect=function(n,p){return R().useEffect(n,p)},t.useId=function(){return R().useId()},t.useImperativeHandle=function(n,p,b){return R().useImperativeHandle(n,p,b)},t.useInsertionEffect=function(n,p){return R().useInsertionEffect(n,p)},t.useLayoutEffect=function(n,p){return R().useLayoutEffect(n,p)},t.useMemo=function(n,p){return R().useMemo(n,p)},t.useOptimistic=function(n,p){return R().useOptimistic(n,p)},t.useReducer=function(n,p,b){return R().useReducer(n,p,b)},t.useRef=function(n){return R().useRef(n)},t.useState=function(n){return R().useState(n)},t.useSyncExternalStore=function(n,p,b){return R().useSyncExternalStore(n,p,b)},t.useTransition=function(){return R().useTransition()},t.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ct,ct.exports)),ct.exports}var Rn;function wt(){return Rn||(Rn=1,process.env.NODE_ENV==="production"?Et.exports=$r():Et.exports=Ir()),Et.exports}var _=wt();const se=bn(_),Yr=ut({__proto__:null,default:se},[_]);var Ut={exports:{}};/*!
|
|
39
39
|
Copyright (c) 2018 Jed Watson.
|
|
40
40
|
Licensed under the MIT License (MIT), see
|
|
41
41
|
http://jedwatson.github.io/classnames
|
|
42
|
-
*/var Oi;function xo(){return Oi||(Oi=1,function(e){(function(){var t={}.hasOwnProperty;function i(){for(var l="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(l=n(l,r(s)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return i.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var o="";for(var s in l)t.call(l,s)&&l[s]&&(o=n(o,s));return o}function n(l,o){return o?l?l+" "+o:l+o:l}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(dr)),dr.exports}var ko=xo();const ve=fr(ko),qe={wrapper:"_wrapper_y5p8d_1","size--2xl":"_size--2xl_y5p8d_11","size--xl":"_size--xl_y5p8d_15","size--lg":"_size--lg_y5p8d_19","size--md":"_size--md_y5p8d_23","size--sm":"_size--sm_y5p8d_27","size--xs":"_size--xs_y5p8d_31","color--gray":"_color--gray_y5p8d_37","color--green":"_color--green_y5p8d_40","color--blue":"_color--blue_y5p8d_43","color--orange":"_color--orange_y5p8d_46","color--red":"_color--red_y5p8d_49","color--purple":"_color--purple_y5p8d_52"},mr=({size:e="2xl",color:t="gray"})=>{const i=g.useMemo(()=>ve(qe.wrapper,{[qe["size--2xl"]]:e==="2xl",[qe["size--xl"]]:e==="xl",[qe["size--lg"]]:e==="lg",[qe["size--md"]]:e==="md",[qe["size--sm"]]:e==="sm",[qe["size--xs"]]:e==="xs"},{[qe["color--gray"]]:t==="gray",[qe["color--green"]]:t==="green",[qe["color--blue"]]:t==="blue",[qe["color--orange"]]:t==="orange",[qe["color--red"]]:t==="red",[qe["color--purple"]]:t==="purple"}),[e,t]);return g.createElement("div",{className:i})},he=e=>g.createElement("span",{className:"icon-"+e.icon}),Oo=["ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","bank-fill","bank-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","community-fill","community-line","government-fill","government-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","hospital-fill","hospital-line","hotel-fill","hotel-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","advertisement-fill","advertisement-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","at-fill","at-line","attachment-fill","attachment-line","award-fill","award-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bubble-chart-fill","bubble-chart-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","donut-chart-fill","donut-chart-line","flag-2-fill","flag-2-line","flag-fill","flag-line","global-fill","global-line","honour-fill","honour-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","line-chart-fill","line-chart-line","links-fill","links-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","medal-2-fill","medal-2-line","medal-fill","medal-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","profile-fill","profile-line","projector-2-fill","projector-2-line","projector-fill","projector-line","record-mail-fill","record-mail-line","registered-fill","registered-line","reply-all-fill","reply-all-line","reply-fill","reply-line","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","service-fill","service-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","stack-fill","stack-line","trademark-fill","trademark-line","window-2-fill","window-2-line","window-fill","window-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","discuss-fill","discuss-line","feedback-fill","feedback-line","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","question-answer-fill","question-answer-line","questionnaire-fill","questionnaire-line","video-chat-fill","video-chat-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","ball-pen-fill","ball-pen-line","blur-off-fill","blur-off-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","collage-fill","collage-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","crop-2-fill","crop-2-line","crop-fill","crop-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","drop-fill","drop-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eraser-fill","eraser-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","grid-fill","grid-line","hammer-fill","hammer-line","ink-bottle-fill","braces-fill","braces-line","brackets-fill","brackets-line","bug-2-fill","bug-2-line","bug-fill","bug-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","command-fill","command-line","css3-fill","css3-line","cursor-fill","cursor-line","git-branch-fill","git-branch-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","html5-fill","html5-line","parentheses-fill","parentheses-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","airplay-fill","airplay-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","base-station-fill","base-station-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","cast-fill","cast-line","cellphone-fill","cellphone-line","computer-fill","computer-line","cpu-fill","cpu-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","database-2-fill","database-2-line","database-fill","database-line","device-fill","device-line","device-recover-fill","device-recover-line","device-recover-line-1","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","gamepad-fill","gamepad-line","gps-fill","gps-line","gradienter-fill","gradienter-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-fill","hard-drive-line","hotspot-fill","hotspot-line","install-fill","install-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","macbook-fill","macbook-line","mac-fill","mac-line","mouse-fill","mouse-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","radar-fill","radar-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","restart-fill","restart-line","rotate-lock-fill","rotate-lock-line","router-fill","router-line","rss-fill","rss-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scan-2-fill","scan-2-line","scan-fill","scan-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","sensor-fill","sensor-line","server-fill","server-line","shut-down-fill","shut-down-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","smartphone-fill","smartphone-line","tablet-fill","tablet-line","tv-2-fill","tv-2-line","tv-fill","tv-line","u-disk-fill","u-disk-line","uninstall-fill","uninstall-line","usb-fill","usb-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","wireless-charging-fill","wireless-charging-line","article-fill","article-line","bill-fill","bill-line","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","booklet-fill","booklet-line","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","clipboard-fill","clipboard-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","draft-fill","draft-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folders-fill","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folders-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","keynote-fill","keynote-line","markdown-fill","markdown-line","newspaper-fill","newspaper-line","numbers-fill","numbers-line","pages-fill","pages-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","survey-fill","survey-line","task-fill","task-line","todo-fill","todo-line","a-b","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","asterisk","attachment-2","bold","bring-forward","bring-to-front","code-view","delete-column","delete-row","double-quotes-l","double-quotes-r","emphasis","emphasis-cn","english-input","flow-chart","font-color","font-size","font-size-2","format-clear","functions","h-1","h-2","h-3","h-4","h-5","h-6","hashtag","heading","indent-decrease","indent-increase","input-cursor-move","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","italic","line-height","link","link-m","link-unlink","link-unlink-m","list-check","list-check-2","list-ordered","list-unordered","merge-cells-horizontal","merge-cells-vertical","mind-map","node-tree","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","omega","organization-chart","page-separator","paragraph","pinyin-input","question-mark","rounded-corner","send-backward","send-to-back","separator","single-quotes-l","single-quotes-r","sort-asc","sort-desc","space","split-cells-horizontal","split-cells-vertical","strikethrough","strikethrough-2","subscript","subscript-2","superscript","superscript-2","table-2","text","text-direction-l","text-direction-r","text-spacing","text-wrap","translate","translate-2","underline","wubi-input","hours-fill","hours-line","auction-fill","auction-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bit-coin-fill","bit-coin-line","coin-fill","coin-line","coins-fill","coins-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","currency-fill","currency-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","funds-box-fill","funds-box-line","funds-fill","funds-line","gift-2-fill","gift-2-line","gift-fill","gift-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","increase-decrease-fill","increase-decrease-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","percent-fill","percent-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","red-packet-fill","red-packet-line","refund-2-fill","refund-2-line","refund-fill","refund-line","safe-2-fill","safe-2-line","safe-fill","safe-line","secure-payment-fill","secure-payment-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","stock-fill","stock-line","swap-box-fill","swap-box-line","swap-fill","swap-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","trophy-fill","trophy-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","capsule-fill","capsule-line","dislike-fill","dislike-line","dossier-fill","dossier-line","empathize-fill","empathize-line","first-aid-kit-fill","first-aid-kit-line","flask-fill","flask-line","hand-sanitizer-fill","hand-sanitizer-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","infrared-thermometer-fill","infrared-thermometer-line","lungs-fill","lungs-line","lungs-line-1","medicine-bottle-fill","medicine-bottle-line","mental-health-fill","mental-health-line","microscope-fill","microscope-line","nurse-fill","nurse-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","rest-time-fill","rest-time-line","stethoscope-fill","stethoscope-line","surgical-mask-fill","surgical-mask-line","syringe-fill","syringe-line","test-tube-fill","test-tube-line","thermometer-fill","thermometer-line","virus-fill","virus-line","zzz-fill","zzz-line","alipay-fill","alipay-line","amazon-fill","amazon-line","android-fill","android-line","angularjs-fill","angularjs-line","apple-fill","apple-line","app-store-fill","app-store-line","baidu-fill","baidu-line","behance-fill","behance-line","bilibili-fill","bilibili-line","centos-fill","centos-line","chrome-fill","chrome-line","codepen-fill","codepen-line","coreos-fill","coreos-line","dingding-fill","dingding-line","discord-fill","discord-line","disqus-fill","disqus-line","douban-fill","douban-line","dribbble-fill","dribbble-line","drive-fill","drive-line","dropbox-fill","dropbox-line","edge-fill","edge-line","evernote-fill","evernote-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","figma-line","finder-fill","finder-line","firefox-fill","firefox-line","flutter-fill","flutter-line","gatsby-fill","gatsby-line","github-fill","github-line","gitlab-fill","gitlab-line","google-fill","google-line","google-play-fill","google-play-line","honor-of-kings-fill","honor-of-kings-line","ie-fill","ie-line","instagram-fill","instagram-line","invision-fill","invision-line","kakao-talk-fill","kakao-talk-line","line-fill","line-line","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medium-fill","medium-line","messenger-fill","messenger-line","microsoft-fill","microsoft-line","mini-program-fill","mini-program-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","npmjs-fill","npmjs-line","open-source-fill","open-source-line","opera-fill","opera-line","patreon-fill","patreon-line","paypal-fill","paypal-line","pinterest-fill","pinterest-line","pixelfed-fill","pixelfed-line","playstation-fill","playstation-line","product-hunt-fill","product-hunt-line","qq-fill","qq-line","reactjs-fill","reactjs-line","reddit-fill","reddit-line","remixicon-fill","remixicon-line","safari-fill","safari-line","skype-fill","skype-line","slack-fill","slack-line","snapchat-fill","snapchat-line","soundcloud-fill","soundcloud-line","spectrum-fill","spectrum-line","spotify-fill","spotify-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","steam-fill","steam-line","switch-fill","switch-line","taobao-fill","taobao-line","telegram-fill","telegram-line","trello-fill","trello-line","tumblr-fill","tumblr-line","twitch-fill","twitch-line","twitter-fill","twitter-line","ubuntu-fill","ubuntu-line","unsplash-fill","unsplash-line","vimeo-fill","vimeo-line","visa-fill","visa-line","vuejs-fill","vuejs-line","wechat-2-fill","wechat-2-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","windows-fill","windows-line","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","anchor-fill","anchor-line","barricade-fill","barricade-line","bike-fill","bike-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","caravan-fill","caravan-line","car-fill","car-line","car-washing-fill","car-washing-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","china-railway-fill","china-railway-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","cup-fill","cup-line","direction-fill","direction-line","earth-fill","earth-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","footprint-fill","footprint-line","gas-station-fill","gas-station-line","globe-fill","globe-line","goblet-fill","goblet-line","guide-fill","guide-line","hotel-bed-fill","hotel-bed-line","lifebuoy-fill","lifebuoy-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","motorbike-fill","motorbike-line","navigation-fill","navigation-line","oil-fill","oil-line","parking-box-fill","parking-box-line","parking-fill","parking-line","passport-fill","passport-line","pin-distance-fill","pin-distance-line","plane-fill","plane-line","police-car-fill","police-car-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","route-fill","route-line","run-fill","run-line","sailboat-fill","sailboat-line","ship-2-fill","ship-2-line","ship-fill","ship-line","signal-tower-fill","signal-tower-line","space-ship-fill","space-ship-line","steering-2-fill","steering-2-line","steering-fill","steering-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","takeaway-fill","takeaway-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","treasure-map-fill","treasure-map-line","truck-fill","truck-line","walk-fill","walk-line","k-fill","k-line","album-fill","album-line","aspect-ratio-fill","aspect-ratio-line","broadcast-fill","broadcast-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","clapperboard-fill","clapperboard-line","closed-captioning-fill","closed-captioning-line","disc-fill","disc-line","dvd-fill","dvd-line","dv-fill","dv-line","eject-fill","eject-line","equalizer-fill","equalizer-line","film-fill","film-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","hd-fill","hd-line","headphone-fill","headphone-line","hq-fill","hq-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","landscape-fill","landscape-line","live-fill","live-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-fill","notification-line","notification-off-fill","notification-off-line","order-play-fill","order-play-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","phone-camera-fill","phone-camera-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","radio-2-fill","radio-2-line","radio-fill","radio-line","record-circle-fill","record-circle-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rhythm-fill","rhythm-line","shuffle-fill","shuffle-line","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","sound-module-fill","sound-module-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","surround-sound-fill","surround-sound-line","tape-fill","tape-line","video-add-fill","video-add-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","webcam-fill","webcam-line","basketball-fill","basketball-line","bell-fill","bell-line","billiards-fill","billiards-line","boxing-fill","boxing-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","character-recognition-fill","character-recognition-line","checkmark-fill","checkmark-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","football-fill","football-line","fridge-fill","fridge-line","game-fill","game-line","handbag-fill","handbag-line","key-2-fill","key-2-line","key-fill","key-line","knife-blood-fill","knife-fill","knife-line","leaf-fill","leaf-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","ping-pong-fill","ping-pong-line","plant-fill","plant-line","plug-2-fill","plug-2-line","plug-fill","plug-line","recycle-fill","recycle-line","reserved-fill","reserved-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","seedling-fill","seedling-line","shirt-fill","shirt-line","sword-fill","sword-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","umbrella-fill","umbrella-line","voice-recognition-fill","voice-recognition-line","wheelchair-fill","wheelchair-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","alert-fill","alert-line","apps-2-fill","apps-2-line","apps-fill","apps-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","check-double-fill","check-double-line","check-fill","check-line","close-circle-fill","close-circle-line","close-fill","close-line","dashboard-fill","dashboard-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","divide-fill","divide-line","dots-out-line","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","error-warning-fill","error-warning-line","expand-left-right","expand-up-down","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","function-fill","function-line","history-fill","history-line","indeterminate-circle-fill","indeterminate-circle-line","information-fill","information-line","list-settings-fill","list-settings-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-unfold-fill","menu-unfold-line","more-2-fill","more-2-line","more-fill","more-line","notification-badge-fill","notification-badge-line","question-fill","question-line","radio-button-fill","radio-button-line","refresh-fill","refresh-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","side-bar-fill","side-bar-line","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","subtract-fill","subtract-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","toggle-fill","toggle-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","admin-fill","admin-line","aliens-fill","aliens-line","bear-smile-fill","bear-smile-line","body-scan-fill","body-scan-line","contacts-fill","contacts-line","criminal-fill","criminal-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","group-2-fill","group-2-line","group-fill","group-line","men-fill","men-line","mickey-fill","mickey-line","open-arm-fill","open-arm-line","parent-fill","parent-line","robot-fill","robot-line","skull-2-fill","skull-2-line","skull-fill","skull-line","spy-fill","spy-line","star-smile-fill","star-smile-line","team-fill","team-line","travesti-fill","travesti-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","women-fill","women-line","blaze-fill","blaze-line","celsius-fill","celsius-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","drizzle-fill","drizzle-line","earthquake-fill","earthquake-line","fahrenheit-fill","fahrenheit-line","fire-fill","fire-line","flashlight-fill","flashlight-line","flood-fill","flood-line","foggy-fill","foggy-line","hail-fill","hail-line","haze-2-fill","haze-2-line","haze-fill","haze-line","heavy-showers-fill","heavy-showers-line","meteor-fill","meteor-line","mist-fill","mist-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","showers-fill","showers-line","snowy-fill","snowy-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","thunderstorms-fill","thunderstorms-line","tornado-fill","tornado-line","typhoon-fill","typhoon-line","windy-fill","windy-line"],we={wrapper:"_wrapper_1njaz_1","lead-icon":"_lead-icon_1njaz_7","tail-icon":"_tail-icon_1njaz_8","color--gray":"_color--gray_1njaz_16","color--blue":"_color--blue_1njaz_20","color--green":"_color--green_1njaz_24","color--orange":"_color--orange_1njaz_28","color--red":"_color--red_1njaz_32","color--purple":"_color--purple_1njaz_36","color--white":"_color--white_1njaz_40","color--surface":"_color--surface_1njaz_44","color--white-destructive":"_color--white-destructive_1njaz_48",label:"_label_1njaz_52","color--surface-destructive":"_color--surface-destructive_1njaz_55","size--large":"_size--large_1njaz_63","size--medium":"_size--medium_1njaz_79","size--small":"_size--small_1njaz_95","size--extra-small":"_size--extra-small_1njaz_111","shape--rounded":"_shape--rounded_1njaz_125","shape--pill":"_shape--pill_1njaz_137",stroke:"_stroke_1njaz_141",disabled:"_disabled_1njaz_145"},Si=({color:e="gray",size:t="md",shape:i="rounded",stroke:r,disabled:n,label:l,leadicon:o,tailicon:s})=>{const u=g.useMemo(()=>ve(we.wrapper,{[we["color--gray"]]:e==="gray",[we["color--blue"]]:e==="blue",[we["color--green"]]:e==="green",[we["color--orange"]]:e==="orange",[we["color--red"]]:e==="red",[we["color--purple"]]:e==="purple",[we["color--white"]]:e==="white",[we["color--surface"]]:e==="surface",[we["color--white-destructive"]]:e==="white-destructive",[we["color--surface-destructive"]]:e==="surface-destructive"},{[we["size--large"]]:t==="lg",[we["size--medium"]]:t==="md",[we["size--small"]]:t==="sm",[we["size--extra-small"]]:t==="xs"},{[we["shape--rounded"]]:i==="rounded",[we["shape--pill"]]:i==="pill"},{[we.stroke]:r},{[we.disabled]:n}),[e,t,i,r,n]);return g.createElement("div",{className:u},o&&g.createElement("span",{className:we["lead-icon"]},g.createElement(he,{icon:o})),g.createElement("span",{className:we.label},l),s&&g.createElement("span",{className:we["tail-icon"]},g.createElement(he,{icon:s})))},Se={wrapper:"_wrapper_f5r3l_1","lead-icon":"_lead-icon_f5r3l_10",badge:"_badge_f5r3l_18",label:"_label_f5r3l_29","tail-icon":"_tail-icon_f5r3l_32","size--large":"_size--large_f5r3l_41",text:"_text_f5r3l_52","size--medium":"_size--medium_f5r3l_69","size--small":"_size--small_f5r3l_97","size--extra-small":"_size--extra-small_f5r3l_125","style--primary":"_style--primary_f5r3l_151","style--secondary":"_style--secondary_f5r3l_169","style--tertiary":"_style--tertiary_f5r3l_200","style--ghost":"_style--ghost_f5r3l_227","target--destructive":"_target--destructive_f5r3l_256","shape--rounded":"_shape--rounded_f5r3l_375","shape--pill":"_shape--pill_f5r3l_387"},Ti=({size:e="md",style:t="primary",shape:i="rounded",target:r,leadicon:n,tailicon:l,label:o,...s})=>{const u=g.useMemo(()=>ve(Se.wrapper,{[Se["size--large"]]:e==="lg",[Se["size--medium"]]:e==="md",[Se["size--small"]]:e==="sm",[Se["size--extra-small"]]:e==="xs"},{[Se["style--primary"]]:t==="primary",[Se["style--secondary"]]:t==="secondary",[Se["style--tertiary"]]:t==="tertiary",[Se["style--ghost"]]:t==="ghost"},{[Se["target--destructive"]]:r==="destructive"},{[Se["shape--rounded"]]:i==="rounded",[Se["shape--pill"]]:i==="pill"}),[e,t,r,i]);return g.createElement("button",{...s,className:u},n&&g.createElement("div",{className:Se["lead-icon"]},g.createElement(he,{icon:n})),g.createElement("div",{className:Se.text},s.children),o&&g.createElement("div",{className:Se.badge},g.createElement("span",{className:Se.label},o)),l&&g.createElement("div",{className:Se["tail-icon"]},g.createElement(he,{icon:l})))},Ve={wrapper:"_wrapper_ia0t8_1","lead-icon":"_lead-icon_ia0t8_11","size--large":"_size--large_ia0t8_19","size--medium":"_size--medium_ia0t8_28","size--small":"_size--small_ia0t8_37","size--extra-small":"_size--extra-small_ia0t8_46","style--primary":"_style--primary_ia0t8_56","style--secondary":"_style--secondary_ia0t8_67","style--tertiary":"_style--tertiary_ia0t8_81","style--ghost":"_style--ghost_ia0t8_92","target--destructive":"_target--destructive_ia0t8_104","shape--rounded":"_shape--rounded_ia0t8_155","shape--pill":"_shape--pill_ia0t8_167"},So=({size:e="md",style:t="primary",shape:i="rounded",target:r,icon:n,...l})=>{const o=g.useMemo(()=>ve(Ve.wrapper,{[Ve["size--large"]]:e==="lg",[Ve["size--medium"]]:e==="md",[Ve["size--small"]]:e==="sm",[Ve["size--extra-small"]]:e==="xs"},{[Ve["style--primary"]]:t==="primary",[Ve["style--secondary"]]:t==="secondary",[Ve["style--tertiary"]]:t==="tertiary",[Ve["style--ghost"]]:t==="ghost"},{[Ve["target--destructive"]]:r==="destructive"},{[Ve["shape--rounded"]]:i==="rounded",[Ve["shape--pill"]]:i==="pill"}),[e,t,r,i]);return g.createElement("button",{...l,className:o},g.createElement("div",{className:Ve["lead-icon"]},g.createElement(he,{icon:n})))},ct={wrapper:"_wrapper_c2o3u_1","lead-icon":"_lead-icon_c2o3u_12",text:"_text_c2o3u_21",badge:"_badge_c2o3u_24",label:"_label_c2o3u_36","tail-icon":"_tail-icon_c2o3u_39","size--md":"_size--md_c2o3u_65","size--sm":"_size--sm_c2o3u_91","target--destructive":"_target--destructive_c2o3u_118"},To=({size:e="md",style:t="primary",shape:i="rounded",target:r,leadicon:n,tailicon:l,label:o,...s})=>{const u=g.useMemo(()=>ve(ct.wrapper,{[ct["size--md"]]:e==="md",[ct["size--sm"]]:e==="sm"},{[ct["target--destructive"]]:r==="destructive"}),[e,t,r,i]);return g.createElement("button",{...s,className:u},n&&g.createElement("div",{className:ct["lead-icon"]},g.createElement(he,{icon:n})),g.createElement("div",{className:ct.text},s.children),o&&g.createElement("div",{className:ct.badge},g.createElement("span",{className:ct.label},o)),l&&g.createElement("div",{className:ct["tail-icon"]},g.createElement(he,{icon:l})))},xe={"font-size__h1":"_font-size__h1_yyj49_1","font-size__h2":"_font-size__h2_yyj49_6","font-size__h3":"_font-size__h3_yyj49_11","font-size__h4":"_font-size__h4_yyj49_16","font-size__h5":"_font-size__h5_yyj49_21","font-size__h6":"_font-size__h6_yyj49_26","font-size__body-l":"_font-size__body-l_yyj49_31","font-size__body-m":"_font-size__body-m_yyj49_36","font-size__body-s":"_font-size__body-s_yyj49_41","font-size__caption-l":"_font-size__caption-l_yyj49_46","font-size__caption-m":"_font-size__caption-m_yyj49_51","font-size__caption-s":"_font-size__caption-s_yyj49_56","font-weight__light":"_font-weight__light_yyj49_62","font-weight__regular":"_font-weight__regular_yyj49_65","font-weight__medium":"_font-weight__medium_yyj49_68","font-weight__bold":"_font-weight__bold_yyj49_71","font-weight__semi-bold":"_font-weight__semi-bold_yyj49_74","font-weight__extra-bold":"_font-weight__extra-bold_yyj49_77","font-weight__black":"_font-weight__black_yyj49_80"},Te=e=>{const t=g.useMemo(()=>ve({[xe["font-size__h1"]]:e.size==="h1",[xe["font-size__h2"]]:e.size==="h2",[xe["font-size__h3"]]:e.size==="h3",[xe["font-size__h4"]]:e.size==="h4",[xe["font-size__h5"]]:e.size==="h5",[xe["font-size__h6"]]:e.size==="h6",[xe["font-size__body-l"]]:e.size==="body-l",[xe["font-size__body-m"]]:e.size==="body-m",[xe["font-size__body-s"]]:e.size==="body-s",[xe["font-size__caption-l"]]:e.size==="caption-l",[xe["font-size__caption-m"]]:e.size==="caption-m",[xe["font-size__caption-s"]]:e.size==="caption-s"},{[xe["font-weight__light"]]:e.weight==="light",[xe["font-weight__regular"]]:e.weight==="regular",[xe["font-weight__medium"]]:e.weight==="medium",[xe["font-weight__semi-bold"]]:e.weight==="semi-bold",[xe["font-weight__bold"]]:e.weight==="bold",[xe["font-weight__extra-bold"]]:e.weight==="extra-bold",[xe["font-weight__black"]]:e.weight==="black"}),[e.size,e.weight]);return g.Children.map(e.children,i=>{if(g.isValidElement(i)){const r=i;return g.cloneElement(r,{className:ve(t,r.props.className)})}return i})},rn={wrapper:"_wrapper_1x3lz_1",input:"_input_1x3lz_8",icon:"_icon_1x3lz_17","size--md":"_size--md_1x3lz_29","size--sm":"_size--sm_1x3lz_33"},Ro=({size:e="md",...t})=>{const i=g.useMemo(()=>ve(rn.icon,{[rn["size--md"]]:e==="md",[rn["size--sm"]]:e==="sm"}),[e]);return g.createElement("div",{className:rn.wrapper},g.createElement("input",{...t,type:"radio",className:rn.input}),g.createElement("span",{className:i}))},ut={container:"_container_rhquy_1",wrapper:"_wrapper_rhquy_6",element:"_element_rhquy_13",content:"_content_rhquy_20",label:"_label_rhquy_27",caption:"_caption_rhquy_31","size--medium":"_size--medium_rhquy_36","with-label":"_with-label_rhquy_36","size--small":"_size--small_rhquy_42"},Co=({size:e="md",label:t,caption:i,...r})=>{const n=g.useMemo(()=>ve(ut.wrapper,{[ut["size--medium"]]:e==="md",[ut["size--small"]]:e==="sm"},{[ut["with-label"]]:t}),[e,t]);return g.createElement("div",{className:ut.container},g.createElement("label",{className:n},g.createElement("div",{className:ut.element},g.createElement(Ro,{...r,size:e})),t&&g.createElement("div",{className:ut.content},g.createElement("div",{className:ut.label},g.createElement(Te,{size:e==="md"?"body-s":"caption-l",weight:"medium"},g.createElement("p",null,t))),i&&g.createElement("div",{className:ut.caption},g.createElement(Te,{size:"caption-l",weight:"regular"},g.createElement("p",null,i))))))},Tt={wrapper:"_wrapper_1nz91_1",input:"_input_1nz91_12",checked:"_checked_1nz91_16",disabled:"_disabled_1nz91_21",icon:"_icon_1nz91_25","size--medium":"_size--medium_1nz91_39","size--small":"_size--small_1nz91_44"},No=({size:e="md",...t})=>{const i=g.useMemo(()=>ve(Tt.wrapper,{[Tt["size--medium"]]:e==="md",[Tt["size--small"]]:e==="sm"},{[Tt.checked]:t.checked},{[Tt.disabled]:t.disabled}),[e,t.checked,t.disabled]);return g.createElement("div",{className:i},g.createElement("input",{...t,type:"checkbox",className:Tt.input}),g.createElement("span",{className:Tt.icon},g.createElement(he,{icon:"check-line"})))},bt={wrapper:"_wrapper_uamo5_1",element:"_element_uamo5_8",content:"_content_uamo5_12",label:"_label_uamo5_16",caption:"_caption_uamo5_20","size--medium":"_size--medium_uamo5_25","with-label":"_with-label_uamo5_25","size--small":"_size--small_uamo5_31"},Do=({size:e="md",label:t,caption:i,...r})=>{const n=g.useMemo(()=>ve(bt.wrapper,{[bt["size--medium"]]:e==="md",[bt["size--small"]]:e==="sm"},{[bt["with-label"]]:t}),[e,t]);return g.createElement("label",{className:n},g.createElement("div",{className:bt.element},g.createElement(No,{size:e,...r})),t&&g.createElement("div",{className:bt.content},g.createElement("div",{className:bt.label},g.createElement(Te,{size:e==="md"?"body-s":"caption-l",weight:"medium"},g.createElement("p",null,t))),i&&g.createElement("div",{className:bt.caption},g.createElement(Te,{size:"caption-l",weight:"regular"},g.createElement("p",null,i)))))},Ze={wrapper:"_wrapper_1t4kg_1",focused:"_focused_1t4kg_13","lead-icon":"_lead-icon_1t4kg_18","tail-icon":"_tail-icon_1t4kg_19",content:"_content_1t4kg_39",input:"_input_1t4kg_46",badge:"_badge_1t4kg_58","size--medium":"_size--medium_1t4kg_66","size--extra-small":"_size--extra-small_1t4kg_69",destructive:"_destructive_1t4kg_73",disabled:"_disabled_1t4kg_87"},Ao=({size:e="md",target:t,leadicon:i,tailicon:r,badge:n,...l})=>{const[o,s]=g.useState(!1),u=g.useMemo(()=>ve(Ze.wrapper,{[Ze.focused]:o},{[Ze["size--medium"]]:e==="md",[Ze["size--extra-small"]]:e==="xs"},{[Ze.disabled]:l.disabled},{[Ze.destructive]:t==="destructive"}),[o,e,t,l.disabled]),c=()=>{s(!0)},m=()=>{s(!1)};return g.createElement("div",{className:u},i&&g.createElement("div",{className:Ze["lead-icon"]},g.createElement(he,{icon:i})),g.createElement("div",{className:Ze.content},g.createElement("input",{...l,className:Ze.input,onFocus:c,onBlur:m})),n&&g.createElement("div",{className:Ze.badge},g.createElement(Si,{size:"sm",color:"gray",label:n,disabled:l.disabled})),r&&g.createElement("div",{className:Ze["tail-icon"]},g.createElement(he,{icon:r})))},Dn={wrapper:"_wrapper_asagy_1",label:"_label_asagy_8",caption:"_caption_asagy_13",required:"_required_asagy_19"},jo=e=>g.createElement("div",{className:Dn.wrapper},g.createElement("div",{className:Dn.label},g.createElement(Te,{size:"caption-l",weight:"medium"},g.createElement("p",null,e.label))),e.caption&&g.createElement("div",{className:Dn.caption},g.createElement(Te,{size:"caption-l",weight:"regular"},g.createElement("p",null,e.caption))),e.required&&g.createElement("div",{className:Dn.required},g.createElement(Te,{size:"caption-l",weight:"regular"},g.createElement("p",null,"*")))),Wt={wrapper:"_wrapper_sjjpm_1","lead-icon":"_lead-icon_sjjpm_9",caption:"_caption_sjjpm_18","state--default":"_state--default_sjjpm_23","state--success":"_state--success_sjjpm_26","state--destructive":"_state--destructive_sjjpm_29"},Po=({state:e="default",...t})=>{const i=g.useMemo(()=>ve(Wt.wrapper,{[Wt["state--default"]]:e==="default",[Wt["state--success"]]:e==="success",[Wt["state--destructive"]]:e==="destructive"}),[e]);return g.createElement("div",{className:i},t.leadicon&&g.createElement("div",{className:Wt["lead-icon"]},g.createElement(he,{icon:t.leadicon})),g.createElement("div",{className:Wt.caption},g.createElement(Te,{size:"caption-l",weight:"regular"},g.createElement("p",null,t.caption))))},pr={wrapper:"_wrapper_1171k_1",content:"_content_1171k_8","expand-icon":"_expand-icon_1171k_15"},Mo=e=>g.createElement("div",{className:pr.wrapper},g.createElement("div",{className:pr.content},g.createElement(Te,{size:e.size==="lg"?"body-m":"body-s",weight:"medium"},g.createElement("p",null,e.children))),g.createElement("div",{className:pr["expand-icon"]},e.isExpanded?g.createElement(he,{icon:"subtract-line"}):g.createElement(he,{icon:"add-line"}))),rt={wrapper:"_wrapper_1lle3_1",expanded:"_expanded_1lle3_17",aside:"_aside_1lle3_26","lead-icon":"_lead-icon_1lle3_31",content:"_content_1lle3_41",description:"_description_1lle3_47",slot:"_slot_1lle3_55","size--large":"_size--large_1lle3_62","size--medium":"_size--medium_1lle3_65"},zo=({size:e="lg",...t})=>{const[i,r]=g.useState(()=>t.defaultState??!1),n=g.useMemo(()=>ve(rt.wrapper,{[rt.expanded]:i},{[rt["size--large"]]:e==="lg",[rt["size--medium"]]:e==="md"}),[i,e]);g.useEffect(()=>{t.onState&&t.onState(i)},[i]),g.useEffect(()=>{t.expanded!==void 0&&r(t.expanded)},[t.expanded]);const l=()=>{r(!i)};return g.createElement("div",{className:n,onClick:l},t.leadicon&&g.createElement("div",{className:rt.aside},g.createElement("div",{className:rt["lead-icon"]},g.createElement(he,{icon:t.leadicon}))),g.createElement("div",{className:rt.content},g.createElement("div",{className:rt.header},g.createElement(Mo,{isExpanded:i,size:e},t.header)),i&&g.createElement(g.Fragment,null,t.description&&g.createElement("div",{className:rt.description},g.createElement(Te,{size:e==="lg"?"body-s":"caption-l",weight:"regular"},g.createElement("p",null,t.description))),t.children&&g.createElement("div",{className:rt.slot},t.children))))},Re={wrapper:"_wrapper_6mzzf_1",notification:"_notification_6mzzf_8",content:"_content_6mzzf_15",icon:"_icon_6mzzf_25",status:"_status_6mzzf_31","size--2xl":"_size--2xl_6mzzf_38","size--xl":"_size--xl_6mzzf_45","size--lg":"_size--lg_6mzzf_52","size--md":"_size--md_6mzzf_59","size--sm":"_size--sm_6mzzf_66","size--xs":"_size--xs_6mzzf_73","color--gray":"_color--gray_6mzzf_81","color--green":"_color--green_6mzzf_87","color--blue":"_color--blue_6mzzf_93","color--orange":"_color--orange_6mzzf_99","color--red":"_color--red_6mzzf_105","color--purple":"_color--purple_6mzzf_111"},$o=({size:e="2xl",color:t="gray",...i})=>{const r=g.useMemo(()=>ve(Re.wrapper,{[Re["size--2xl"]]:e==="2xl",[Re["size--xl"]]:e==="xl",[Re["size--lg"]]:e==="lg",[Re["size--md"]]:e==="md",[Re["size--sm"]]:e==="sm",[Re["size--xs"]]:e==="xs"},{[Re["color--gray"]]:t==="gray",[Re["color--green"]]:t==="green",[Re["color--blue"]]:t==="blue",[Re["color--orange"]]:t==="orange",[Re["color--red"]]:t==="red",[Re["color--purple"]]:t==="purple"}),[e,t]);return g.createElement("div",{className:r},i.isNotification&&g.createElement("div",{className:Re.notification},g.createElement(mr,{size:e,color:"red"})),g.createElement("div",{className:Re.content},g.createElement("div",{className:Re.icon},g.createElement(he,{icon:"user-3-line"}))),i.isStatus&&g.createElement("div",{className:Re.status},g.createElement(mr,{size:e,color:"green"})))},et={wrapper:"_wrapper_4vedk_1","lead-icon":"_lead-icon_4vedk_15",close:"_close_4vedk_27",label:"_label_4vedk_38",active:"_active_4vedk_46",disabled:"_disabled_4vedk_57","size--lg":"_size--lg_4vedk_76","shape--rounded":"_shape--rounded_4vedk_80","size--md":"_size--md_4vedk_99","size--sm":"_size--sm_4vedk_122","shape--pill":"_shape--pill_4vedk_146"},Lo=({size:e="md",shape:t="rounded",disabled:i,isActive:r=!1,label:n,leadicon:l})=>{const o=g.useMemo(()=>ve(et.wrapper,{[et["size--lg"]]:e==="lg",[et["size--md"]]:e==="md",[et["size--sm"]]:e==="sm"},{[et["shape--pill"]]:t==="pill",[et["shape--rounded"]]:t==="rounded"},{[et.active]:r},{[et.disabled]:i}),[e,t,i,r]);return g.createElement("div",{className:o},l&&g.createElement("div",{className:et["lead-icon"]},g.createElement(he,{icon:l})),g.createElement("span",{className:et.label},n),r&&g.createElement("div",{className:et.close},g.createElement(he,{icon:"close-line"})))},tt={wrapper:"_wrapper_14ujo_1","lead-slot":"_lead-slot_14ujo_15",close:"_close_14ujo_27",label:"_label_14ujo_38",active:"_active_14ujo_46",disabled:"_disabled_14ujo_57","size--lg":"_size--lg_14ujo_76","shape--rounded":"_shape--rounded_14ujo_80","size--md":"_size--md_14ujo_99","size--sm":"_size--sm_14ujo_122","shape--pill":"_shape--pill_14ujo_146"},Io=({size:e="md",shape:t="rounded",isActive:i=!1,disabled:r,label:n,leadslot:l})=>{const o=g.useMemo(()=>ve(tt.wrapper,{[tt["size--lg"]]:e==="lg",[tt["size--md"]]:e==="md",[tt["size--sm"]]:e==="sm"},{[tt["shape--pill"]]:t==="pill",[tt["shape--rounded"]]:t==="rounded"},{[tt.active]:i},{[tt.disabled]:r}),[e,t,r,i]);return g.createElement("div",{className:o},l&&g.createElement("div",{className:tt["lead-slot"]},l),g.createElement("span",{className:tt.label},n),i&&g.createElement("div",{className:tt.close},g.createElement(he,{icon:"close-line"})))},Wo=({type:e="icon",...t})=>{if(e==="icon")return g.createElement(Lo,{...t});if(e==="slot")return g.createElement(Io,{...t})};function hr(e,t){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},hr(e,t)}function Yo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hr(e,t)}function gr(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function vr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function An(e){return e!==null&&e.length===1?e[0]:e.slice()}function jn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Rt(e,t){return yr(function(i,r){let n=i;return n<=r.min&&(n=r.min),n>=r.max&&(n=r.max),n}(e,t),t)}function yr(e,t){const i=(e-t.min)%t.step;let r=e-i;return 2*Math.abs(i)>=t.step&&(r+=i>0?t.step:-t.step),parseFloat(r.toFixed(5))}let br=function(e){function t(r){var n;(n=e.call(this,r)||this).onKeyUp=()=>{n.onEnd()},n.onMouseUp=()=>{n.onEnd(n.getMouseEventMap())},n.onTouchEnd=s=>{s.preventDefault(),n.onEnd(n.getTouchEventMap())},n.onBlur=()=>{n.setState({index:-1},n.onEnd(n.getKeyDownEventMap()))},n.onMouseMove=s=>{n.setState({pending:!0});const u=n.getMousePosition(s),c=n.getDiffPosition(u[0]),m=n.getValueFromPosition(c);n.move(m)},n.onTouchMove=s=>{if(s.touches.length>1)return;n.setState({pending:!0});const u=n.getTouchPosition(s);if(n.isScrolling===void 0){const d=u[0]-n.startPosition[0],f=u[1]-n.startPosition[1];n.isScrolling=Math.abs(f)>Math.abs(d)}if(n.isScrolling)return void n.setState({index:-1});const c=n.getDiffPosition(u[0]),m=n.getValueFromPosition(c);n.move(m)},n.onKeyDown=s=>{if(!(s.ctrlKey||s.shiftKey||s.altKey||s.metaKey))switch(n.setState({pending:!0}),s.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":s.preventDefault(),n.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":s.preventDefault(),n.moveUpByStep();break;case"Home":s.preventDefault(),n.move(n.props.min);break;case"End":s.preventDefault(),n.move(n.props.max);break;case"PageDown":s.preventDefault(),n.moveDownByStep(n.props.pageFn(n.props.step));break;case"PageUp":s.preventDefault(),n.moveUpByStep(n.props.pageFn(n.props.step))}},n.onSliderMouseDown=s=>{if(!n.props.disabled&&s.button!==2){if(n.setState({pending:!0}),!n.props.snapDragDisabled){const u=n.getMousePosition(s);n.forceValueFromPosition(u[0],c=>{n.start(c,u[0]),jn(n.getMouseEventMap())})}gr(s)}},n.onSliderClick=s=>{if(!n.props.disabled&&n.props.onSliderClick&&!n.hasMoved){const u=n.getMousePosition(s),c=Rt(n.calcValue(n.calcOffsetFromPosition(u[0])),n.props);n.props.onSliderClick(c)}},n.createOnKeyDown=s=>u=>{n.props.disabled||(n.start(s),jn(n.getKeyDownEventMap()),gr(u))},n.createOnMouseDown=s=>u=>{if(n.props.disabled||u.button===2)return;n.setState({pending:!0});const c=n.getMousePosition(u);n.start(s,c[0]),jn(n.getMouseEventMap()),gr(u)},n.createOnTouchStart=s=>u=>{if(n.props.disabled||u.touches.length>1)return;n.setState({pending:!0});const c=n.getTouchPosition(u);n.startPosition=c,n.isScrolling=void 0,n.start(s,c[0]),jn(n.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(u)},n.handleResize=()=>{const s=window.setTimeout(()=>{n.pendingResizeTimeouts.shift(),n.resize()},0);n.pendingResizeTimeouts.push(s)},n.renderThumb=(s,u)=>{const c=n.props.thumbClassName+" "+n.props.thumbClassName+"-"+u+" "+(n.state.index===u?n.props.thumbActiveClassName:""),m={ref:f=>{n["thumb"+u]=f},key:n.props.thumbClassName+"-"+u,className:c,style:s,onMouseDown:n.createOnMouseDown(u),onTouchStart:n.createOnTouchStart(u),onFocus:n.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":n.props.orientation,"aria-valuenow":n.state.value[u],"aria-valuemin":n.props.min,"aria-valuemax":n.props.max,"aria-label":Array.isArray(n.props.ariaLabel)?n.props.ariaLabel[u]:n.props.ariaLabel,"aria-labelledby":Array.isArray(n.props.ariaLabelledby)?n.props.ariaLabelledby[u]:n.props.ariaLabelledby,"aria-disabled":n.props.disabled},d={index:u,value:An(n.state.value),valueNow:n.state.value[u]};return n.props.ariaValuetext&&(m["aria-valuetext"]=typeof n.props.ariaValuetext=="string"?n.props.ariaValuetext:n.props.ariaValuetext(d)),n.props.renderThumb(m,d)},n.renderTrack=(s,u,c)=>{const m={key:n.props.trackClassName+"-"+s,className:n.props.trackClassName+" "+n.props.trackClassName+"-"+s,style:n.buildTrackStyle(u,n.state.upperBound-c)},d={index:s,value:An(n.state.value)};return n.props.renderTrack(m,d)};let l=vr(r.value);l.length||(l=vr(r.defaultValue)),n.pendingResizeTimeouts=[];const o=[];for(let s=0;s<l.length;s+=1)l[s]=Rt(l[s],r),o.push(s);return n.resizeObserver=null,n.resizeElementRef=g.createRef(),n.state={index:-1,upperBound:0,sliderLength:0,value:l,zIndices:o},n}Yo(t,e);var i=t.prototype;return i.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,n){const l=vr(r.value);return l.length?n.pending?null:{value:l.map(o=>Rt(o,r))}:null},i.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},i.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},i.onEnd=function(r){r&&function(n){Object.keys(n).forEach(l=>{typeof document<"u"&&document.removeEventListener(l,n[l],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},i.getValue=function(){return An(this.state.value)},i.getClosestIndex=function(r){let n=Number.MAX_VALUE,l=-1;const{value:o}=this.state,s=o.length;for(let u=0;u<s;u+=1){const c=this.calcOffset(o[u]),m=Math.abs(r-c);m<n&&(n=m,l=u)}return l},i.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},i.getTouchPosition=function(r){const n=r.touches[0];return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},i.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},i.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},i.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},i.getValueFromPosition=function(r){const n=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Rt(this.state.startValue+n,this.props)},i.getDiffPosition=function(r){let n=r-this.state.startPosition;return this.props.invert&&(n*=-1),n},i.resize=function(){const{slider:r,thumb0:n}=this;if(!r||!n)return;const l=this.sizeKey(),o=r.getBoundingClientRect(),s=r[l],u=o[this.posMaxKey()],c=o[this.posMinKey()],m=n.getBoundingClientRect()[l.replace("client","").toLowerCase()],d=s-m,f=Math.abs(u-c);this.state.upperBound===d&&this.state.sliderLength===f&&this.state.thumbSize===m||this.setState({upperBound:d,sliderLength:f,thumbSize:m})},i.calcOffset=function(r){const n=this.props.max-this.props.min;return n===0?0:(r-this.props.min)/n*this.state.upperBound},i.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},i.calcOffsetFromPosition=function(r){const{slider:n}=this,l=n.getBoundingClientRect(),o=l[this.posMaxKey()],s=l[this.posMinKey()];let u=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?o:s));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},i.forceValueFromPosition=function(r,n){const l=this.calcOffsetFromPosition(r),o=this.getClosestIndex(l),s=Rt(this.calcValue(l),this.props),u=this.state.value.slice();u[o]=s;for(let c=0;c<u.length-1;c+=1)if(u[c+1]-u[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{n(o),this.fireChangeEvent("onChange")})},i.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},i.start=function(r,n){const l=this["thumb"+r];l&&l.focus();const{zIndices:o}=this.state;o.splice(o.indexOf(r),1),o.push(r),this.setState(s=>({startValue:s.value[r],startPosition:n!==void 0?n:s.startPosition,index:r,zIndices:o}))},i.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const n=this.state.value[this.state.index],l=Rt(this.props.invert&&this.props.orientation==="horizontal"?n-r:n+r,this.props);this.move(Math.min(l,this.props.max))},i.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const n=this.state.value[this.state.index],l=Rt(this.props.invert&&this.props.orientation==="horizontal"?n+r:n-r,this.props);this.move(Math.max(l,this.props.min))},i.move=function(r){const n=this.state.value.slice(),{index:l}=this.state,{length:o}=n,s=n[l];if(r===s)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:c,min:m,minDistance:d}=this.props;if(!u){if(l>0){const f=n[l-1];r<f+d&&(r=f+d)}if(l<o-1){const f=n[l+1];r>f-d&&(r=f-d)}}n[l]=r,u&&o>1&&(r>s?(this.pushSucceeding(n,d,l),function(f,h,E,b){for(let x=0;x<f;x+=1){const O=b-x*E;h[f-1-x]>O&&(h[f-1-x]=O)}}(o,n,d,c)):r<s&&(this.pushPreceding(n,d,l),function(f,h,E,b){for(let x=0;x<f;x+=1){const O=b+x*E;h[x]<O&&(h[x]=O)}}(o,n,d,m))),this.setState({value:n},this.fireChangeEvent.bind(this,"onChange"))},i.pushSucceeding=function(r,n,l){let o,s;for(o=l,s=r[o]+n;r[o+1]!==null&&s>r[o+1];o+=1,s=r[o]+n)r[o+1]=yr(s,this.props)},i.pushPreceding=function(r,n,l){for(let o=l,s=r[o]-n;r[o-1]!==null&&s<r[o-1];o-=1,s=r[o]-n)r[o-1]=yr(s,this.props)},i.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},i.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},i.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},i.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},i.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},i.fireChangeEvent=function(r){this.props[r]&&this.props[r](An(this.state.value),this.state.index)},i.buildThumbStyle=function(r,n){const l={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(n)+1};return l[this.posMinKey()]=r+"px",l},i.buildTrackStyle=function(r,n){const l={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return l[this.posMinKey()]=r,l[this.posMaxKey()]=n,l},i.buildMarkStyle=function(r){var n;return(n={position:"absolute"})[this.posMinKey()]=r,n},i.renderThumbs=function(r){const{length:n}=r,l=[];for(let s=0;s<n;s+=1)l[s]=this.buildThumbStyle(r[s],s);const o=[];for(let s=0;s<n;s+=1)o[s]=this.renderThumb(l[s],s);return o},i.renderTracks=function(r){const n=[],l=r.length-1;n.push(this.renderTrack(0,0,r[0]));for(let o=0;o<l;o+=1)n.push(this.renderTrack(o+1,r[o],r[o+1]));return n.push(this.renderTrack(l+1,r[l],this.state.upperBound)),n},i.renderMarks=function(){let{marks:r}=this.props;const n=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:n}).map((l,o)=>o):typeof r=="number"&&(r=Array.from({length:n}).map((l,o)=>o).filter(l=>l%r==0)),r.map(parseFloat).sort((l,o)=>l-o).map(l=>{const o=this.calcOffset(l),s={key:l,className:this.props.markClassName,style:this.buildMarkStyle(o)};return this.props.renderMark(s)})},i.render=function(){const r=[],{value:n}=this.state,l=n.length;for(let c=0;c<l;c+=1)r[c]=this.calcOffset(n[c],c);const o=this.props.withTracks?this.renderTracks(r):null,s=this.renderThumbs(r),u=this.props.marks?this.renderMarks():null;return g.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},o,s,u)},t}(g.Component);br.displayName="ReactSlider",br.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>g.createElement("div",e),renderTrack:e=>g.createElement("div",e),renderMark:e=>g.createElement("span",e)};var Fo=br;const Pn={wrapper:"_wrapper_1qb3z_1",slider:"_slider_1qb3z_11",thumb:"_thumb_1qb3z_15",track:"_track_1qb3z_28"},qo=e=>g.createElement("div",{className:Pn.wrapper},g.createElement(Fo,{className:Pn.slider,thumbClassName:Pn.thumb,trackClassName:Pn.track,...e})),ln={wrapper:"_wrapper_2g33r_1",input:"_input_2g33r_8",icon:"_icon_2g33r_17","size--md":"_size--md_2g33r_67","size--sm":"_size--sm_2g33r_71"},Vo=({size:e="md",...t})=>{const i=g.useMemo(()=>ve(ln.icon,{[ln["size--md"]]:e==="md",[ln["size--sm"]]:e==="sm"}),[e]);return g.createElement("div",{className:ln.wrapper},g.createElement("input",{...t,type:"checkbox",className:ln.input}),g.createElement("span",{className:i}))},ft={container:"_container_rhquy_1",wrapper:"_wrapper_rhquy_6",element:"_element_rhquy_13",content:"_content_rhquy_20",label:"_label_rhquy_27",caption:"_caption_rhquy_31","size--medium":"_size--medium_rhquy_36","with-label":"_with-label_rhquy_36","size--small":"_size--small_rhquy_42"},Bo=({size:e="md",label:t,caption:i,...r})=>{const n=g.useMemo(()=>ve(ft.wrapper,{[ft["size--medium"]]:e==="md",[ft["size--small"]]:e==="sm"},{[ft["with-label"]]:t}),[e,t]);return g.createElement("div",{className:ft.container},g.createElement("label",{className:n},g.createElement("div",{className:ft.element},g.createElement(Vo,{...r,size:e})),t&&g.createElement("div",{className:ft.content},g.createElement("div",{className:ft.label},g.createElement(Te,{size:e==="md"?"body-s":"caption-l",weight:"medium"},g.createElement("p",null,t))),i&&g.createElement("div",{className:ft.caption},g.createElement(Te,{size:"caption-l",weight:"regular"},g.createElement("p",null,i))))))};function Mn(){return typeof window<"u"}function Yt(e){return Ri(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function it(e){var t;return(t=(Ri(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ri(e){return Mn()?e instanceof Node||e instanceof We(e).Node:!1}function pe(e){return Mn()?e instanceof Element||e instanceof We(e).Element:!1}function Be(e){return Mn()?e instanceof HTMLElement||e instanceof We(e).HTMLElement:!1}function wr(e){return!Mn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof We(e).ShadowRoot}function on(e){const{overflow:t,overflowX:i,overflowY:r,display:n}=Ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+i)&&!["inline","contents"].includes(n)}function Uo(e){return["table","td","th"].includes(Yt(e))}function zn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _r(e){const t=$n(),i=pe(e)?Ue(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>i[r]?i[r]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!t&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!t&&(i.filter?i.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(i.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(i.contain||"").includes(r))}function Ho(e){let t=mt(e);for(;Be(t)&&!dt(t);){if(_r(t))return t;if(zn(t))return null;t=mt(t)}return null}function $n(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dt(e){return["html","body","#document"].includes(Yt(e))}function Ue(e){return We(e).getComputedStyle(e)}function Ln(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mt(e){if(Yt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wr(e)&&e.host||it(e);return wr(t)?t.host:t}function Ci(e){const t=mt(e);return dt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&on(t)?t:Ci(t)}function wt(e,t,i){var r;t===void 0&&(t=[]),i===void 0&&(i=!0);const n=Ci(e),l=n===((r=e.ownerDocument)==null?void 0:r.body),o=We(n);if(l){const s=Er(o);return t.concat(o,o.visualViewport||[],on(n)?n:[],s&&i?wt(s):[])}return t.concat(n,wt(n,[],i))}function Er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xr(e){let t=e.activeElement;for(;((i=t)==null||(i=i.shadowRoot)==null?void 0:i.activeElement)!=null;){var i;t=t.shadowRoot.activeElement}return t}function Ft(e,t){if(!e||!t)return!1;const i=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(i&&wr(i)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ni(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Di(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:i,version:r}=t;return i+"/"+r}).join(" "):navigator.userAgent}function Ko(e){return Xo()?!1:!ji()&&e.width===0&&e.height===0||ji()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Ai(){return/apple/i.test(navigator.vendor)}function ji(){const e=/android/i;return e.test(Ni())||e.test(Di())}function Go(){return Ni().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Xo(){return Di().includes("jsdom/")}function kr(e,t){const i=["mouse","pen"];return i.push("",void 0),i.includes(e)}function Qo(e){return"nativeEvent"in e}function Jo(e){return e.matches("html,body")}function _t(e){return(e==null?void 0:e.ownerDocument)||document}function Or(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const i=e;return i.target!=null&&t.contains(i.target)}function qt(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Zo="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ea(e){return Be(e)&&e.matches(Zo)}const Vt=Math.min,Ct=Math.max,In=Math.round,Wn=Math.floor,lt=e=>({x:e,y:e}),ta={left:"right",right:"left",bottom:"top",top:"bottom"},na={start:"end",end:"start"};function Sr(e,t,i){return Ct(e,Vt(t,i))}function an(e,t){return typeof e=="function"?e(t):e}function Nt(e){return e.split("-")[0]}function sn(e){return e.split("-")[1]}function Pi(e){return e==="x"?"y":"x"}function Tr(e){return e==="y"?"height":"width"}function Bt(e){return["top","bottom"].includes(Nt(e))?"y":"x"}function Rr(e){return Pi(Bt(e))}function ra(e,t,i){i===void 0&&(i=!1);const r=sn(e),n=Rr(e),l=Tr(n);let o=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=Yn(o)),[o,Yn(o)]}function ia(e){const t=Yn(e);return[Cr(e),t,Cr(t)]}function Cr(e){return e.replace(/start|end/g,t=>na[t])}function la(e,t,i){const r=["left","right"],n=["right","left"],l=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return i?t?n:r:t?r:n;case"left":case"right":return t?l:o;default:return[]}}function oa(e,t,i,r){const n=sn(e);let l=la(Nt(e),i==="start",r);return n&&(l=l.map(o=>o+"-"+n),t&&(l=l.concat(l.map(Cr)))),l}function Yn(e){return e.replace(/left|right|bottom|top/g,t=>ta[t])}function aa(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mi(e){return typeof e!="number"?aa(e):{top:e,right:e,bottom:e,left:e}}function Fn(e){const{x:t,y:i,width:r,height:n}=e;return{width:r,height:n,top:i,left:t,right:t+r,bottom:i+n,x:t,y:i}}var qn={exports:{}},cn={};/**
|
|
42
|
+
*/var Tn;function Hr(){return Tn||(Tn=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",a=0;a<arguments.length;a++){var c=arguments[a];c&&(s=i(s,o(c)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var c in s)t.call(s,c)&&s[c]&&(a=i(a,c));return a}function i(s,a){return a?s?s+" "+a:s+a:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Ut)),Ut.exports}var Wr=Hr();const tt=bn(Wr),lt=e=>se.createElement("span",{className:"icon-"+e.icon}),fe={wrapper:"_wrapper_1njaz_1","lead-icon":"_lead-icon_1njaz_7","tail-icon":"_tail-icon_1njaz_8","color--gray":"_color--gray_1njaz_16","color--blue":"_color--blue_1njaz_20","color--green":"_color--green_1njaz_24","color--orange":"_color--orange_1njaz_28","color--red":"_color--red_1njaz_32","color--purple":"_color--purple_1njaz_36","color--white":"_color--white_1njaz_40","color--surface":"_color--surface_1njaz_44","color--white-destructive":"_color--white-destructive_1njaz_48",label:"_label_1njaz_52","color--surface-destructive":"_color--surface-destructive_1njaz_55","size--large":"_size--large_1njaz_63","size--medium":"_size--medium_1njaz_79","size--small":"_size--small_1njaz_95","size--extra-small":"_size--extra-small_1njaz_111","shape--rounded":"_shape--rounded_1njaz_125","shape--pill":"_shape--pill_1njaz_137",stroke:"_stroke_1njaz_141",disabled:"_disabled_1njaz_145"},Fr=({color:e="gray",size:t="md",shape:r="rounded",stroke:o,disabled:i,label:s,leadicon:a,tailicon:c})=>{const d=se.useMemo(()=>tt(fe.wrapper,{[fe["color--gray"]]:e==="gray",[fe["color--blue"]]:e==="blue",[fe["color--green"]]:e==="green",[fe["color--orange"]]:e==="orange",[fe["color--red"]]:e==="red",[fe["color--purple"]]:e==="purple",[fe["color--white"]]:e==="white",[fe["color--surface"]]:e==="surface",[fe["color--white-destructive"]]:e==="white-destructive",[fe["color--surface-destructive"]]:e==="surface-destructive"},{[fe["size--large"]]:t==="lg",[fe["size--medium"]]:t==="md",[fe["size--small"]]:t==="sm",[fe["size--extra-small"]]:t==="xs"},{[fe["shape--rounded"]]:r==="rounded",[fe["shape--pill"]]:r==="pill"},{[fe.stroke]:o},{[fe.disabled]:i}),[e,t,r,o,i]);return se.createElement("div",{className:d},a&&se.createElement("span",{className:fe["lead-icon"]},se.createElement(lt,{icon:a})),se.createElement("span",{className:fe.label},s),c&&se.createElement("span",{className:fe["tail-icon"]},se.createElement(lt,{icon:c})))},pe={wrapper:"_wrapper_f5r3l_1","lead-icon":"_lead-icon_f5r3l_10",badge:"_badge_f5r3l_18",label:"_label_f5r3l_29","tail-icon":"_tail-icon_f5r3l_32","size--large":"_size--large_f5r3l_41",text:"_text_f5r3l_52","size--medium":"_size--medium_f5r3l_69","size--small":"_size--small_f5r3l_97","size--extra-small":"_size--extra-small_f5r3l_125","style--primary":"_style--primary_f5r3l_151","style--secondary":"_style--secondary_f5r3l_169","style--tertiary":"_style--tertiary_f5r3l_200","style--ghost":"_style--ghost_f5r3l_227","target--destructive":"_target--destructive_f5r3l_256","shape--rounded":"_shape--rounded_f5r3l_375","shape--pill":"_shape--pill_f5r3l_387"},Ur=({size:e="md",style:t="primary",shape:r="rounded",target:o,leadicon:i,tailicon:s,label:a,...c})=>{const d=se.useMemo(()=>tt(pe.wrapper,{[pe["size--large"]]:e==="lg",[pe["size--medium"]]:e==="md",[pe["size--small"]]:e==="sm",[pe["size--extra-small"]]:e==="xs"},{[pe["style--primary"]]:t==="primary",[pe["style--secondary"]]:t==="secondary",[pe["style--tertiary"]]:t==="tertiary",[pe["style--ghost"]]:t==="ghost"},{[pe["target--destructive"]]:o==="destructive"},{[pe["shape--rounded"]]:r==="rounded",[pe["shape--pill"]]:r==="pill"}),[e,t,o,r]);return se.createElement("button",{...c,className:d},i&&se.createElement("div",{className:pe["lead-icon"]},se.createElement(lt,{icon:i})),se.createElement("div",{className:pe.text},c.children),a&&se.createElement("div",{className:pe.badge},se.createElement("span",{className:pe.label},a)),s&&se.createElement("div",{className:pe["tail-icon"]},se.createElement(lt,{icon:s})))},ge={"font-size__h1":"_font-size__h1_yyj49_1","font-size__h2":"_font-size__h2_yyj49_6","font-size__h3":"_font-size__h3_yyj49_11","font-size__h4":"_font-size__h4_yyj49_16","font-size__h5":"_font-size__h5_yyj49_21","font-size__h6":"_font-size__h6_yyj49_26","font-size__body-l":"_font-size__body-l_yyj49_31","font-size__body-m":"_font-size__body-m_yyj49_36","font-size__body-s":"_font-size__body-s_yyj49_41","font-size__caption-l":"_font-size__caption-l_yyj49_46","font-size__caption-m":"_font-size__caption-m_yyj49_51","font-size__caption-s":"_font-size__caption-s_yyj49_56","font-weight__light":"_font-weight__light_yyj49_62","font-weight__regular":"_font-weight__regular_yyj49_65","font-weight__medium":"_font-weight__medium_yyj49_68","font-weight__bold":"_font-weight__bold_yyj49_71","font-weight__semi-bold":"_font-weight__semi-bold_yyj49_74","font-weight__extra-bold":"_font-weight__extra-bold_yyj49_77","font-weight__black":"_font-weight__black_yyj49_80"},Bt=e=>{const t=se.useMemo(()=>tt({[ge["font-size__h1"]]:e.size==="h1",[ge["font-size__h2"]]:e.size==="h2",[ge["font-size__h3"]]:e.size==="h3",[ge["font-size__h4"]]:e.size==="h4",[ge["font-size__h5"]]:e.size==="h5",[ge["font-size__h6"]]:e.size==="h6",[ge["font-size__body-l"]]:e.size==="body-l",[ge["font-size__body-m"]]:e.size==="body-m",[ge["font-size__body-s"]]:e.size==="body-s",[ge["font-size__caption-l"]]:e.size==="caption-l",[ge["font-size__caption-m"]]:e.size==="caption-m",[ge["font-size__caption-s"]]:e.size==="caption-s"},{[ge["font-weight__light"]]:e.weight==="light",[ge["font-weight__regular"]]:e.weight==="regular",[ge["font-weight__medium"]]:e.weight==="medium",[ge["font-weight__semi-bold"]]:e.weight==="semi-bold",[ge["font-weight__bold"]]:e.weight==="bold",[ge["font-weight__extra-bold"]]:e.weight==="extra-bold",[ge["font-weight__black"]]:e.weight==="black"}),[e.size,e.weight]);return se.Children.map(e.children,r=>{if(se.isValidElement(r)){const o=r;return se.cloneElement(o,{className:tt(t,o.props.className)})}return r})};function Rt(){return typeof window<"u"}function nt(e){return On(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(On(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function On(e){return Rt()?e instanceof Node||e instanceof _e(e).Node:!1}function ce(e){return Rt()?e instanceof Element||e instanceof _e(e).Element:!1}function Ee(e){return Rt()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function Vt(e){return!Rt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}function ft(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(i)}function Br(e){return["table","td","th"].includes(nt(e))}function Tt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function qt(e){const t=Ot(),r=ce(e)?we(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Vr(e){let t=Le(e);for(;Ee(t)&&!Me(t);){if(qt(t))return t;if(Tt(t))return null;t=Le(t)}return null}function Ot(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Me(e){return["html","body","#document"].includes(nt(e))}function we(e){return _e(e).getComputedStyle(e)}function xt(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Le(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vt(e)&&e.host||Se(e);return Vt(t)?t.host:t}function xn(e){const t=Le(e);return Me(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&ft(t)?t:xn(t)}function Fe(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=xn(e),s=i===((o=e.ownerDocument)==null?void 0:o.body),a=_e(i);if(s){const c=Gt(a);return t.concat(a,a.visualViewport||[],ft(i)?i:[],c&&r?Fe(c):[])}return t.concat(i,Fe(i,[],r))}function Gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kt(e){let t=e.activeElement;for(;((r=t)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;t=t.shadowRoot.activeElement}return t}function rt(e,t){if(!e||!t)return!1;const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Vt(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Cn(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Sn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:r,version:o}=t;return r+"/"+o}).join(" "):navigator.userAgent}function qr(e){return Kr()?!1:!Nn()&&e.width===0&&e.height===0||Nn()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function An(){return/apple/i.test(navigator.vendor)}function Nn(){const e=/android/i;return e.test(Cn())||e.test(Sn())}function Gr(){return Cn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Kr(){return Sn().includes("jsdom/")}function Xt(e,t){const r=["mouse","pen"];return r.push("",void 0),r.includes(e)}function Xr(e){return"nativeEvent"in e}function Qr(e){return e.matches("html,body")}function Ue(e){return(e==null?void 0:e.ownerDocument)||document}function Qt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return r.target!=null&&t.contains(r.target)}function ot(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Zr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Jr(e){return Ee(e)&&e.matches(Zr)}const it=Math.min,Ge=Math.max,Ct=Math.round,St=Math.floor,Ae=e=>({x:e,y:e}),eo={left:"right",right:"left",bottom:"top",top:"bottom"},to={start:"end",end:"start"};function Zt(e,t,r){return Ge(e,it(t,r))}function dt(e,t){return typeof e=="function"?e(t):e}function Ke(e){return e.split("-")[0]}function mt(e){return e.split("-")[1]}function Pn(e){return e==="x"?"y":"x"}function Jt(e){return e==="y"?"height":"width"}function st(e){return["top","bottom"].includes(Ke(e))?"y":"x"}function en(e){return Pn(st(e))}function no(e,t,r){r===void 0&&(r=!1);const o=mt(e),i=en(e),s=Jt(i);let a=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=At(a)),[a,At(a)]}function ro(e){const t=At(e);return[tn(e),t,tn(t)]}function tn(e){return e.replace(/start|end/g,t=>to[t])}function oo(e,t,r){const o=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:o:t?o:i;case"left":case"right":return t?s:a;default:return[]}}function io(e,t,r,o){const i=mt(e);let s=oo(Ke(e),r==="start",o);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(tn)))),s}function At(e){return e.replace(/left|right|bottom|top/g,t=>eo[t])}function so(e){return{top:0,right:0,bottom:0,left:0,...e}}function kn(e){return typeof e!="number"?so(e):{top:e,right:e,bottom:e,left:e}}function Nt(e){const{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}var Pt={exports:{}},gt={};/**
|
|
43
43
|
* @license React
|
|
44
44
|
* react-jsx-runtime.production.js
|
|
45
45
|
*
|
|
@@ -47,7 +47,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the MIT license found in the
|
|
49
49
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/var
|
|
50
|
+
*/var jn;function ao(){if(jn)return gt;jn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,i,s){var a=null;if(s!==void 0&&(a=""+s),i.key!==void 0&&(a=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:o,key:a,ref:i!==void 0?i:null,props:s}}return gt.Fragment=t,gt.jsx=r,gt.jsxs=r,gt}var pt={};/**
|
|
51
51
|
* @license React
|
|
52
52
|
* react-jsx-runtime.development.js
|
|
53
53
|
*
|
|
@@ -55,24 +55,24 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var
|
|
59
|
-
at`)?" (<anonymous>)":-1
|
|
60
|
-
|
|
61
|
-
`),
|
|
62
|
-
`);for(
|
|
63
|
-
`+
|
|
58
|
+
*/var Mn;function uo(){return Mn||(Mn=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(m==null)return null;if(typeof m=="function")return m.$$typeof===C?null:m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case X:return"Fragment";case A:return"Portal";case ee:return"Profiler";case B:return"StrictMode";case Q:return"Suspense";case J:return"SuspenseList"}if(typeof m=="object")switch(typeof m.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case ne:return(m.displayName||"Context")+".Provider";case q:return(m._context.displayName||"Context")+".Consumer";case te:var N=m.render;return m=m.displayName,m||(m=N.displayName||N.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case V:return N=m.displayName||null,N!==null?N:e(m.type)||"Memo";case z:N=m._payload,m=m._init;try{return e(m(N))}catch{}}return null}function t(m){return""+m}function r(m){try{t(m);var N=!1}catch{N=!0}if(N){N=console;var M=N.error,Z=typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return M.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z),t(m)}}function o(){}function i(){if(U===0){oe=console.log,$=console.info,le=console.warn,re=console.error,Pe=console.group,Be=console.groupCollapsed,ze=console.groupEnd;var m={configurable:!0,enumerable:!0,value:o,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}U++}function s(){if(U--,U===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:y({},m,{value:oe}),info:y({},m,{value:$}),warn:y({},m,{value:le}),error:y({},m,{value:re}),group:y({},m,{value:Pe}),groupCollapsed:y({},m,{value:Be}),groupEnd:y({},m,{value:ze})})}0>U&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function a(m){if($e===void 0)try{throw Error()}catch(M){var N=M.stack.trim().match(/\n( *(at )?)/);$e=N&&N[1]||"",Ie=-1<M.stack.indexOf(`
|
|
59
|
+
at`)?" (<anonymous>)":-1<M.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
60
|
+
`+$e+m+Ie}function c(m,N){if(!m||ke)return"";var M=Ye.get(m);if(M!==void 0)return M;ke=!0,M=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Z=null;Z=R.H,R.H=null,i();try{var me={DetermineComponentFrameRoot:function(){try{if(N){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Te){var Je=Te}Reflect.construct(m,[],Ce)}else{try{Ce.call()}catch(Te){Je=Te}m.call(Ce.prototype)}}else{try{throw Error()}catch(Te){Je=Te}(Ce=m())&&typeof Ce.catch=="function"&&Ce.catch(function(){})}}catch(Te){if(Te&&Je&&typeof Te.stack=="string")return[Te.stack,Je.stack]}return[null,null]}};me.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ue=Object.getOwnPropertyDescriptor(me.DetermineComponentFrameRoot,"name");ue&&ue.configurable&&Object.defineProperty(me.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var G=me.DetermineComponentFrameRoot(),F=G[0],xe=G[1];if(F&&xe){var he=F.split(`
|
|
61
|
+
`),Re=xe.split(`
|
|
62
|
+
`);for(G=ue=0;ue<he.length&&!he[ue].includes("DetermineComponentFrameRoot");)ue++;for(;G<Re.length&&!Re[G].includes("DetermineComponentFrameRoot");)G++;if(ue===he.length||G===Re.length)for(ue=he.length-1,G=Re.length-1;1<=ue&&0<=G&&he[ue]!==Re[G];)G--;for(;1<=ue&&0<=G;ue--,G--)if(he[ue]!==Re[G]){if(ue!==1||G!==1)do if(ue--,G--,0>G||he[ue]!==Re[G]){var qe=`
|
|
63
|
+
`+he[ue].replace(" at new "," at ");return m.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",m.displayName)),typeof m=="function"&&Ye.set(m,qe),qe}while(1<=ue&&0<=G);break}}}finally{ke=!1,R.H=Z,s(),Error.prepareStackTrace=M}return he=(he=m?m.displayName||m.name:"")?a(he):"",typeof m=="function"&&Ye.set(m,he),he}function d(m){if(m==null)return"";if(typeof m=="function"){var N=m.prototype;return c(m,!(!N||!N.isReactComponent))}if(typeof m=="string")return a(m);switch(m){case Q:return a("Suspense");case J:return a("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case te:return m=c(m.render,!1),m;case V:return d(m.type);case z:N=m._payload,m=m._init;try{return d(m(N))}catch{}}return""}function u(){var m=R.A;return m===null?null:m.getOwner()}function v(m){if(l.call(m,"key")){var N=Object.getOwnPropertyDescriptor(m,"key").get;if(N&&N.isReactWarning)return!1}return m.key!==void 0}function g(m,N){function M(){Ve||(Ve=!0,console.error("%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://react.dev/link/special-props)",N))}M.isReactWarning=!0,Object.defineProperty(m,"key",{get:M,configurable:!0})}function f(){var m=e(this.type);return It[m]||(It[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function h(m,N,M,Z,me,ue){return M=ue.ref,m={$$typeof:H,type:m,key:N,props:ue,_owner:me},(M!==void 0?M:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:f}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function w(m,N,M,Z,me,ue){if(typeof m=="string"||typeof m=="function"||m===X||m===ee||m===B||m===Q||m===J||m===W||typeof m=="object"&&m!==null&&(m.$$typeof===z||m.$$typeof===V||m.$$typeof===ne||m.$$typeof===q||m.$$typeof===te||m.$$typeof===S||m.getModuleId!==void 0)){var G=N.children;if(G!==void 0)if(Z)if(I(G)){for(Z=0;Z<G.length;Z++)E(G[Z],m);Object.freeze&&Object.freeze(G)}else console.error("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 E(G,m)}else G="",(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),m===null?Z="null":I(m)?Z="array":m!==void 0&&m.$$typeof===H?(Z="<"+(e(m.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof m,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,G);if(l.call(N,"key")){G=e(m);var F=Object.keys(N).filter(function(he){return he!=="key"});Z=0<F.length?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}",_t[G+Z]||(F=0<F.length?"{"+F.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
64
64
|
let props = %s;
|
|
65
65
|
<%s {...props} />
|
|
66
66
|
React keys must be passed directly to JSX without using spread:
|
|
67
67
|
let props = %s;
|
|
68
|
-
<%s key={someKey} {...props} />`,
|
|
68
|
+
<%s key={someKey} {...props} />`,Z,G,F,G),_t[G+Z]=!0)}if(G=null,M!==void 0&&(r(M),G=""+M),v(N)&&(r(N.key),G=""+N.key),"key"in N){M={};for(var xe in N)xe!=="key"&&(M[xe]=N[xe])}else M=N;return G&&g(M,typeof m=="function"?m.displayName||m.name||"Unknown":m),h(m,G,ue,me,u(),M)}function E(m,N){if(typeof m=="object"&&m&&m.$$typeof!==Ze){if(I(m))for(var M=0;M<m.length;M++){var Z=m[M];T(Z)&&x(Z,N)}else if(T(m))m._store&&(m._store.validated=1);else if(m===null||typeof m!="object"?M=null:(M=k&&m[k]||m["@@iterator"],M=typeof M=="function"?M:null),typeof M=="function"&&M!==m.entries&&(M=M.call(m),M!==m))for(;!(m=M.next()).done;)T(m.value)&&x(m.value,N)}}function T(m){return typeof m=="object"&&m!==null&&m.$$typeof===H}function x(m,N){if(m._store&&!m._store.validated&&m.key==null&&(m._store.validated=1,N=j(N),!bt[N])){bt[N]=!0;var M="";m&&m._owner!=null&&m._owner!==u()&&(M=null,typeof m._owner.tag=="number"?M=e(m._owner.type):typeof m._owner.name=="string"&&(M=m._owner.name),M=" It was passed a child from "+M+".");var Z=R.getCurrentStack;R.getCurrentStack=function(){var me=d(m.type);return Z&&(me+=Z()||""),me},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',N,M),R.getCurrentStack=Z}}function j(m){var N="",M=u();return M&&(M=e(M.type))&&(N=`
|
|
69
69
|
|
|
70
|
-
Check the render method of
|
|
70
|
+
Check the render method of \``+M+"`."),N||(m=e(m))&&(N=`
|
|
71
71
|
|
|
72
|
-
Check the top-level render call using <`+
|
|
72
|
+
Check the top-level render call using <`+m+">."),N}var P=wt(),H=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),k=Symbol.iterator,C=Symbol.for("react.client.reference"),R=P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,l=Object.prototype.hasOwnProperty,y=Object.assign,S=Symbol.for("react.client.reference"),I=Array.isArray,U=0,oe,$,le,re,Pe,Be,ze;o.__reactDisabledLog=!0;var $e,Ie,ke=!1,Ye=new(typeof WeakMap=="function"?WeakMap:Map),Ze=Symbol.for("react.client.reference"),Ve,It={},_t={},bt={};pt.Fragment=X,pt.jsx=function(m,N,M,Z,me){return w(m,N,M,!1,Z,me)},pt.jsxs=function(m,N,M,Z,me){return w(m,N,M,!0,Z,me)}}()),pt}var Ln;function co(){return Ln||(Ln=1,process.env.NODE_ENV==="production"?Pt.exports=ao():Pt.exports=uo()),Pt.exports}var Ne=co();/*!
|
|
73
73
|
* tabbable 6.2.0
|
|
74
74
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
75
|
-
*/var
|
|
75
|
+
*/var lo=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],nn=lo.join(","),Dn=typeof Element>"u",ht=Dn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,kt=!Dn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},jt=function e(t,r){var o;r===void 0&&(r=!0);var i=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert"),s=i===""||i==="true",a=s||r&&t&&e(t.parentNode);return a},fo=function(t){var r,o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return o===""||o==="true"},mo=function(t,r,o){if(jt(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(nn));return r&&ht.call(t,nn)&&i.unshift(t),i=i.filter(o),i},go=function e(t,r,o){for(var i=[],s=Array.from(t);s.length;){var a=s.shift();if(!jt(a,!1))if(a.tagName==="SLOT"){var c=a.assignedElements(),d=c.length?c:a.children,u=e(d,!0,o);o.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else{var v=ht.call(a,nn);v&&o.filter(a)&&(r||!t.includes(a))&&i.push(a);var g=a.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(a),f=!jt(g,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(g&&f){var h=e(g===!0?a.children:g.children,!0,o);o.flatten?i.push.apply(i,h):i.push({scopeParent:a,candidates:h})}else s.unshift.apply(s,a.children)}}return i},zn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$n=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||fo(t))&&!zn(t)?0:t.tabIndex},po=function(t,r){var o=$n(t);return o<0&&r&&!zn(t)?0:o},ho=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},In=function(t){return t.tagName==="INPUT"},vo=function(t){return In(t)&&t.type==="hidden"},yo=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(o){return o.tagName==="SUMMARY"});return r},_o=function(t,r){for(var o=0;o<t.length;o++)if(t[o].checked&&t[o].form===r)return t[o]},bo=function(t){if(!t.name)return!0;var r=t.form||kt(t),o=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=o(window.CSS.escape(t.name));else try{i=o(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var s=_o(i,t.form);return!s||s===t},Eo=function(t){return In(t)&&t.type==="radio"},wo=function(t){return Eo(t)&&!bo(t)},Ro=function(t){var r,o=t&&kt(t),i=(r=o)===null||r===void 0?void 0:r.host,s=!1;if(o&&o!==t){var a,c,d;for(s=!!((a=i)!==null&&a!==void 0&&(c=a.ownerDocument)!==null&&c!==void 0&&c.contains(i)||t!=null&&(d=t.ownerDocument)!==null&&d!==void 0&&d.contains(t));!s&&i;){var u,v,g;o=kt(i),i=(u=o)===null||u===void 0?void 0:u.host,s=!!((v=i)!==null&&v!==void 0&&(g=v.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return s},Yn=function(t){var r=t.getBoundingClientRect(),o=r.width,i=r.height;return o===0&&i===0},To=function(t,r){var o=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var s=ht.call(t,"details>summary:first-of-type"),a=s?t.parentElement:t;if(ht.call(a,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var d=t.parentElement,u=kt(t);if(d&&!d.shadowRoot&&i(d)===!0)return Yn(t);t.assignedSlot?t=t.assignedSlot:!d&&u!==t.ownerDocument?t=u.host:t=d}t=c}if(Ro(t))return!t.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Yn(t);return!1},Oo=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var o=0;o<r.children.length;o++){var i=r.children.item(o);if(i.tagName==="LEGEND")return ht.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},xo=function(t,r){return!(r.disabled||jt(r)||vo(r)||To(r,t)||yo(r)||Oo(r))},Hn=function(t,r){return!(wo(r)||$n(r)<0||!xo(t,r))},Co=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},So=function e(t){var r=[],o=[];return t.forEach(function(i,s){var a=!!i.scopeParent,c=a?i.scopeParent:i,d=po(c,a),u=a?e(i.candidates):c;d===0?a?r.push.apply(r,u):r.push(c):o.push({documentOrder:s,tabIndex:d,item:i,isScope:a,content:u})}),o.sort(ho).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(r)},Wn=function(t,r){r=r||{};var o;return r.getShadowRoot?o=go([t],r.includeContainer,{filter:Hn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Co}):o=mo(t,r.includeContainer,Hn.bind(null,r)),So(o)},Mt={exports:{}},ve={};/**
|
|
76
76
|
* @license React
|
|
77
77
|
* react-dom.production.js
|
|
78
78
|
*
|
|
@@ -80,7 +80,7 @@ Check the top-level render call using <`+v+">."),z}var P=Nn(),Y=Symbol.for("reac
|
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the MIT license found in the
|
|
82
82
|
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var
|
|
83
|
+
*/var Fn;function Ao(){if(Fn)return ve;Fn=1;var e=wt();function t(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)u+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,u,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:d,containerInfo:u,implementation:v}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return ve.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ve.createPortal=function(d,u){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return s(d,u,null,v)},ve.flushSync=function(d){var u=a.T,v=o.p;try{if(a.T=null,o.p=2,d)return d()}finally{a.T=u,o.p=v,o.d.f()}},ve.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,o.d.C(d,u))},ve.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},ve.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var v=u.as,g=c(v,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,h=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;v==="style"?o.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:g,integrity:f,fetchPriority:h}):v==="script"&&o.d.X(d,{crossOrigin:g,integrity:f,fetchPriority:h,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},ve.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var v=c(u.as,u.crossOrigin);o.d.M(d,{crossOrigin:v,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&o.d.M(d)},ve.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var v=u.as,g=c(v,u.crossOrigin);o.d.L(d,v,{crossOrigin:g,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},ve.preloadModule=function(d,u){if(typeof d=="string")if(u){var v=c(u.as,u.crossOrigin);o.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:v,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else o.d.m(d)},ve.requestFormReset=function(d){o.d.r(d)},ve.unstable_batchedUpdates=function(d,u){return d(u)},ve.useFormState=function(d,u,v){return a.H.useFormState(d,u,v)},ve.useFormStatus=function(){return a.H.useHostTransitionStatus()},ve.version="19.0.0",ve}var ye={};/**
|
|
84
84
|
* @license React
|
|
85
85
|
* react-dom.development.js
|
|
86
86
|
*
|
|
@@ -88,9 +88,8 @@ Check the top-level render call using <`+v+">."),z}var P=Nn(),Y=Symbol.for("reac
|
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the MIT license found in the
|
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/var
|
|
91
|
+
*/var Un;function No(){return Un||(Un=1,process.env.NODE_ENV!=="production"&&function(){function e(){}function t(g){return""+g}function r(g,f,h){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(w);var E=!1}catch{E=!0}return E&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&w[Symbol.toStringTag]||w.constructor.name||"Object"),t(w)),{$$typeof:u,key:w==null?null:""+w,children:g,containerInfo:f,implementation:h}}function o(g,f){if(g==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}function i(g){return g===null?"`null`":g===void 0?"`undefined`":g===""?"an empty string":'something with type "'+typeof g+'"'}function s(g){return g===null?"`null`":g===void 0?"`undefined`":g===""?"an empty string":typeof g=="string"?JSON.stringify(g):typeof g=="number"?"`"+g+"`":'something with type "'+typeof g+'"'}function a(){var g=v.H;return g===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
92
92
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
93
93
|
2. You might be breaking the Rules of Hooks
|
|
94
94
|
3. You might have more than one copy of React in the same app
|
|
95
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Nn(),u={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,je.createPortal=function(d,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return i(d,f,null,h)},je.flushSync=function(d){var f=m.T,h=u.p;try{if(m.T=null,u.p=2,d)return d()}finally{m.T=f,u.p=h,u.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},je.preconnect=function(d,f){typeof d=="string"&&d?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",l(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",n(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",n(d)),typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,u.d.C(d,f))},je.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",n(d));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(f))}typeof d=="string"&&u.d.D(d)},je.preinit=function(d,f){if(typeof d=="string"&&d?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",l(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',l(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",n(d)),typeof d=="string"&&f&&typeof f.as=="string"){var h=f.as,E=r(h,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,x=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?u.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:E,integrity:b,fetchPriority:x}):h==="script"&&u.d.X(d,{crossOrigin:E,integrity:b,fetchPriority:x,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},je.preinitModule=function(d,f){var h="";if(typeof d=="string"&&d||(h+=" The `href` argument encountered was "+n(d)+"."),f!==void 0&&typeof f!="object"?h+=" The `options` argument encountered was "+n(f)+".":f&&"as"in f&&f.as!=="script"&&(h+=" The `as` option encountered was "+l(f.as)+"."),h)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",h);else switch(h=f&&typeof f.as=="string"?f.as:"script",h){case"script":break;default:h=l(h),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',h,d)}typeof d=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(h=r(f.as,f.crossOrigin),u.d.M(d,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&u.d.M(d))},je.preload=function(d,f){var h="";if(typeof d=="string"&&d||(h+=" The `href` argument encountered was "+n(d)+"."),f==null||typeof f!="object"?h+=" The `options` argument encountered was "+n(f)+".":typeof f.as=="string"&&f.as||(h+=" The `as` option encountered was "+n(f.as)+"."),h&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',h),typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){h=f.as;var E=r(h,f.crossOrigin);u.d.L(d,h,{crossOrigin:E,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},je.preloadModule=function(d,f){var h="";typeof d=="string"&&d||(h+=" The `href` argument encountered was "+n(d)+"."),f!==void 0&&typeof f!="object"?h+=" The `options` argument encountered was "+n(f)+".":f&&"as"in f&&typeof f.as!="string"&&(h+=" The `as` option encountered was "+n(f.as)+"."),h&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',h),typeof d=="string"&&(f?(h=r(f.as,f.crossOrigin),u.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})):u.d.m(d))},je.requestFormReset=function(d){u.d.r(d)},je.unstable_batchedUpdates=function(d,f){return d(f)},je.useFormState=function(d,f,h){return o().useFormState(d,f,h)},je.useFormStatus=function(){return o().useHostTransitionStatus()},je.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),je}var Ki;function Da(){if(Ki)return Un.exports;Ki=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),Un.exports=Ca()):Un.exports=Na(),Un.exports}var Gi=Da();function Xi(e,t,i){let{reference:r,floating:n}=e;const l=Bt(t),o=Rr(t),s=Tr(o),u=Nt(t),c=l==="y",m=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,f=r[s]/2-n[s]/2;let h;switch(u){case"top":h={x:m,y:r.y-n.height};break;case"bottom":h={x:m,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-n.width,y:d};break;default:h={x:r.x,y:r.y}}switch(sn(t)){case"start":h[o]-=f*(i&&c?-1:1);break;case"end":h[o]+=f*(i&&c?-1:1);break}return h}const Aa=async(e,t,i)=>{const{placement:r="bottom",strategy:n="absolute",middleware:l=[],platform:o}=i,s=l.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:m,y:d}=Xi(c,r,u),f=r,h={},E=0;for(let b=0;b<s.length;b++){const{name:x,fn:O}=s[b],{x:D,y:P,data:Y,reset:j}=await O({x:m,y:d,initialPlacement:r,placement:f,strategy:n,middlewareData:h,rects:c,platform:o,elements:{reference:e,floating:t}});m=D??m,d=P??d,h={...h,[x]:{...h[x],...Y}},j&&E<=50&&(E++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(c=j.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:n}):j.rects),{x:m,y:d}=Xi(c,f,u)),b=-1)}return{x:m,y:d,placement:f,strategy:n,middlewareData:h}};async function Qi(e,t){var i;t===void 0&&(t={});const{x:r,y:n,platform:l,rects:o,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:m="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=an(t,e),E=Mi(h),x=s[f?d==="floating"?"reference":"floating":d],O=Fn(await l.getClippingRect({element:(i=await(l.isElement==null?void 0:l.isElement(x)))==null||i?x:x.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:m,strategy:u})),D=d==="floating"?{x:r,y:n,width:o.floating.width,height:o.floating.height}:o.reference,P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),Y=await(l.isElement==null?void 0:l.isElement(P))?await(l.getScale==null?void 0:l.getScale(P))||{x:1,y:1}:{x:1,y:1},j=Fn(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:D,offsetParent:P,strategy:u}):D);return{top:(O.top-j.top+E.top)/Y.y,bottom:(j.bottom-O.bottom+E.bottom)/Y.y,left:(O.left-j.left+E.left)/Y.x,right:(j.right-O.right+E.right)/Y.x}}const ja=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:r,placement:n,rects:l,platform:o,elements:s,middlewareData:u}=t,{element:c,padding:m=0}=an(e,t)||{};if(c==null)return{};const d=Mi(m),f={x:i,y:r},h=Rr(n),E=Tr(h),b=await o.getDimensions(c),x=h==="y",O=x?"top":"left",D=x?"bottom":"right",P=x?"clientHeight":"clientWidth",Y=l.reference[E]+l.reference[h]-f[h]-l.floating[E],j=f[h]-l.reference[h],B=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let K=B?B[P]:0;(!K||!await(o.isElement==null?void 0:o.isElement(B)))&&(K=s.floating[P]||l.floating[E]);const Z=Y/2-j/2,J=K/2-b[E]/2-1,te=Vt(d[O],J),oe=Vt(d[D],J),Q=te,le=K-b[E]-oe,G=K/2-b[E]/2+Z,F=Sr(Q,G,le),L=!u.arrow&&sn(n)!=null&&G!==F&&l.reference[E]/2-(G<Q?te:oe)-b[E]/2<0,M=L?G<Q?G-Q:G-le:0;return{[h]:f[h]+M,data:{[h]:F,centerOffset:G-F-M,...L&&{alignmentOffset:M}},reset:L}}}),Pa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,r;const{placement:n,middlewareData:l,rects:o,initialPlacement:s,platform:u,elements:c}=t,{mainAxis:m=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:b=!0,...x}=an(e,t);if((i=l.arrow)!=null&&i.alignmentOffset)return{};const O=Nt(n),D=Bt(s),P=Nt(s)===s,Y=await(u.isRTL==null?void 0:u.isRTL(c.floating)),j=f||(P||!b?[Yn(s)]:ia(s)),B=E!=="none";!f&&B&&j.push(...oa(s,b,E,Y));const K=[s,...j],Z=await Qi(t,x),J=[];let te=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&J.push(Z[O]),d){const G=ra(n,o,Y);J.push(Z[G[0]],Z[G[1]])}if(te=[...te,{placement:n,overflows:J}],!J.every(G=>G<=0)){var oe,Q;const G=(((oe=l.flip)==null?void 0:oe.index)||0)+1,F=K[G];if(F)return{data:{index:G,overflows:te},reset:{placement:F}};let L=(Q=te.filter(M=>M.overflows[0]<=0).sort((M,N)=>M.overflows[1]-N.overflows[1])[0])==null?void 0:Q.placement;if(!L)switch(h){case"bestFit":{var le;const M=(le=te.filter(N=>{if(B){const S=Bt(N.placement);return S===D||S==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(S=>S>0).reduce((S,p)=>S+p,0)]).sort((N,S)=>N[1]-S[1])[0])==null?void 0:le[0];M&&(L=M);break}case"initialPlacement":L=s;break}if(n!==L)return{reset:{placement:L}}}return{}}}};async function Ma(e,t){const{placement:i,platform:r,elements:n}=e,l=await(r.isRTL==null?void 0:r.isRTL(n.floating)),o=Nt(i),s=sn(i),u=Bt(i)==="y",c=["left","top"].includes(o)?-1:1,m=l&&u?-1:1,d=an(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:E}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof E=="number"&&(h=s==="end"?E*-1:E),u?{x:h*m,y:f*c}:{x:f*c,y:h*m}}const za=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,r;const{x:n,y:l,placement:o,middlewareData:s}=t,u=await Ma(t,e);return o===((i=s.offset)==null?void 0:i.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:n+u.x,y:l+u.y,data:{...u,placement:o}}}}},$a=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:r,placement:n}=t,{mainAxis:l=!0,crossAxis:o=!1,limiter:s={fn:x=>{let{x:O,y:D}=x;return{x:O,y:D}}},...u}=an(e,t),c={x:i,y:r},m=await Qi(t,u),d=Bt(Nt(n)),f=Pi(d);let h=c[f],E=c[d];if(l){const x=f==="y"?"top":"left",O=f==="y"?"bottom":"right",D=h+m[x],P=h-m[O];h=Sr(D,h,P)}if(o){const x=d==="y"?"top":"left",O=d==="y"?"bottom":"right",D=E+m[x],P=E-m[O];E=Sr(D,E,P)}const b=s.fn({...t,[f]:h,[d]:E});return{...b,data:{x:b.x-i,y:b.y-r,enabled:{[f]:l,[d]:o}}}}}};function Ji(e){const t=Ue(e);let i=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=Be(e),l=n?e.offsetWidth:i,o=n?e.offsetHeight:r,s=In(i)!==l||In(r)!==o;return s&&(i=l,r=o),{width:i,height:r,$:s}}function Dr(e){return pe(e)?e:e.contextElement}function Ut(e){const t=Dr(e);if(!Be(t))return lt(1);const i=t.getBoundingClientRect(),{width:r,height:n,$:l}=Ji(t);let o=(l?In(i.width):i.width)/r,s=(l?In(i.height):i.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const La=lt(0);function Zi(e){const t=We(e);return!$n()||!t.visualViewport?La:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ia(e,t,i){return t===void 0&&(t=!1),!i||t&&i!==We(e)?!1:t}function Dt(e,t,i,r){t===void 0&&(t=!1),i===void 0&&(i=!1);const n=e.getBoundingClientRect(),l=Dr(e);let o=lt(1);t&&(r?pe(r)&&(o=Ut(r)):o=Ut(e));const s=Ia(l,i,r)?Zi(l):lt(0);let u=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,m=n.width/o.x,d=n.height/o.y;if(l){const f=We(l),h=r&&pe(r)?We(r):r;let E=f,b=Er(E);for(;b&&r&&h!==E;){const x=Ut(b),O=b.getBoundingClientRect(),D=Ue(b),P=O.left+(b.clientLeft+parseFloat(D.paddingLeft))*x.x,Y=O.top+(b.clientTop+parseFloat(D.paddingTop))*x.y;u*=x.x,c*=x.y,m*=x.x,d*=x.y,u+=P,c+=Y,E=We(b),b=Er(E)}}return Fn({width:m,height:d,x:u,y:c})}function Ar(e,t){const i=Ln(e).scrollLeft;return t?t.left+i:Dt(it(e)).left+i}function el(e,t,i){i===void 0&&(i=!1);const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-(i?0:Ar(e,r)),l=r.top+t.scrollTop;return{x:n,y:l}}function Wa(e){let{elements:t,rect:i,offsetParent:r,strategy:n}=e;const l=n==="fixed",o=it(r),s=t?zn(t.floating):!1;if(r===o||s&&l)return i;let u={scrollLeft:0,scrollTop:0},c=lt(1);const m=lt(0),d=Be(r);if((d||!d&&!l)&&((Yt(r)!=="body"||on(o))&&(u=Ln(r)),Be(r))){const h=Dt(r);c=Ut(r),m.x=h.x+r.clientLeft,m.y=h.y+r.clientTop}const f=o&&!d&&!l?el(o,u,!0):lt(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-u.scrollLeft*c.x+m.x+f.x,y:i.y*c.y-u.scrollTop*c.y+m.y+f.y}}function Ya(e){return Array.from(e.getClientRects())}function Fa(e){const t=it(e),i=Ln(e),r=e.ownerDocument.body,n=Ct(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Ct(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-i.scrollLeft+Ar(e);const s=-i.scrollTop;return Ue(r).direction==="rtl"&&(o+=Ct(t.clientWidth,r.clientWidth)-n),{width:n,height:l,x:o,y:s}}function qa(e,t){const i=We(e),r=it(e),n=i.visualViewport;let l=r.clientWidth,o=r.clientHeight,s=0,u=0;if(n){l=n.width,o=n.height;const c=$n();(!c||c&&t==="fixed")&&(s=n.offsetLeft,u=n.offsetTop)}return{width:l,height:o,x:s,y:u}}function Va(e,t){const i=Dt(e,!0,t==="fixed"),r=i.top+e.clientTop,n=i.left+e.clientLeft,l=Be(e)?Ut(e):lt(1),o=e.clientWidth*l.x,s=e.clientHeight*l.y,u=n*l.x,c=r*l.y;return{width:o,height:s,x:u,y:c}}function tl(e,t,i){let r;if(t==="viewport")r=qa(e,i);else if(t==="document")r=Fa(it(e));else if(pe(t))r=Va(t,i);else{const n=Zi(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Fn(r)}function nl(e,t){const i=mt(e);return i===t||!pe(i)||dt(i)?!1:Ue(i).position==="fixed"||nl(i,t)}function Ba(e,t){const i=t.get(e);if(i)return i;let r=wt(e,[],!1).filter(s=>pe(s)&&Yt(s)!=="body"),n=null;const l=Ue(e).position==="fixed";let o=l?mt(e):e;for(;pe(o)&&!dt(o);){const s=Ue(o),u=_r(o);!u&&s.position==="fixed"&&(n=null),(l?!u&&!n:!u&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||on(o)&&!u&&nl(e,o))?r=r.filter(m=>m!==o):n=s,o=mt(o)}return t.set(e,r),r}function Ua(e){let{element:t,boundary:i,rootBoundary:r,strategy:n}=e;const o=[...i==="clippingAncestors"?zn(t)?[]:Ba(t,this._c):[].concat(i),r],s=o[0],u=o.reduce((c,m)=>{const d=tl(t,m,n);return c.top=Ct(d.top,c.top),c.right=Vt(d.right,c.right),c.bottom=Vt(d.bottom,c.bottom),c.left=Ct(d.left,c.left),c},tl(t,s,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ha(e){const{width:t,height:i}=Ji(e);return{width:t,height:i}}function Ka(e,t,i){const r=Be(t),n=it(t),l=i==="fixed",o=Dt(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const u=lt(0);if(r||!r&&!l)if((Yt(t)!=="body"||on(n))&&(s=Ln(t)),r){const f=Dt(t,!0,l,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else n&&(u.x=Ar(n));const c=n&&!r&&!l?el(n,s):lt(0),m=o.left+s.scrollLeft-u.x-c.x,d=o.top+s.scrollTop-u.y-c.y;return{x:m,y:d,width:o.width,height:o.height}}function jr(e){return Ue(e).position==="static"}function rl(e,t){if(!Be(e)||Ue(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return it(e)===i&&(i=i.ownerDocument.body),i}function il(e,t){const i=We(e);if(zn(e))return i;if(!Be(e)){let n=mt(e);for(;n&&!dt(n);){if(pe(n)&&!jr(n))return n;n=mt(n)}return i}let r=rl(e,t);for(;r&&Uo(r)&&jr(r);)r=rl(r,t);return r&&dt(r)&&jr(r)&&!_r(r)?i:r||Ho(e)||i}const Ga=async function(e){const t=this.getOffsetParent||il,i=this.getDimensions,r=await i(e.floating);return{reference:Ka(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xa(e){return Ue(e).direction==="rtl"}const Qa={convertOffsetParentRelativeRectToViewportRelativeRect:Wa,getDocumentElement:it,getClippingRect:Ua,getOffsetParent:il,getElementRects:Ga,getClientRects:Ya,getDimensions:Ha,getScale:Ut,isElement:pe,isRTL:Xa};function ll(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ja(e,t){let i=null,r;const n=it(e);function l(){var s;clearTimeout(r),(s=i)==null||s.disconnect(),i=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),l();const c=e.getBoundingClientRect(),{left:m,top:d,width:f,height:h}=c;if(s||t(),!f||!h)return;const E=Wn(d),b=Wn(n.clientWidth-(m+f)),x=Wn(n.clientHeight-(d+h)),O=Wn(m),P={rootMargin:-E+"px "+-b+"px "+-x+"px "+-O+"px",threshold:Ct(0,Vt(1,u))||1};let Y=!0;function j(B){const K=B[0].intersectionRatio;if(K!==u){if(!Y)return o();K?o(!1,K):r=setTimeout(()=>{o(!1,1e-7)},1e3)}K===1&&!ll(c,e.getBoundingClientRect())&&o(),Y=!1}try{i=new IntersectionObserver(j,{...P,root:n.ownerDocument})}catch{i=new IntersectionObserver(j,P)}i.observe(e)}return o(!0),l}function Za(e,t,i,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:l=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Dr(e),m=n||l?[...c?wt(c):[],...wt(t)]:[];m.forEach(O=>{n&&O.addEventListener("scroll",i,{passive:!0}),l&&O.addEventListener("resize",i)});const d=c&&s?Ja(c,i):null;let f=-1,h=null;o&&(h=new ResizeObserver(O=>{let[D]=O;D&&D.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var P;(P=h)==null||P.observe(t)})),i()}),c&&!u&&h.observe(c),h.observe(t));let E,b=u?Dt(e):null;u&&x();function x(){const O=Dt(e);b&&!ll(b,O)&&i(),b=O,E=requestAnimationFrame(x)}return i(),()=>{var O;m.forEach(D=>{n&&D.removeEventListener("scroll",i),l&&D.removeEventListener("resize",i)}),d==null||d(),(O=h)==null||O.disconnect(),h=null,u&&cancelAnimationFrame(E)}}const es=za,ts=$a,ns=Pa,ol=ja,rs=(e,t,i)=>{const r=new Map,n={platform:Qa,...i},l={...n.platform,_c:r};return Aa(e,t,{...n,platform:l})};var Hn=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Kn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let i,r,n;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(i=e.length,i!==t.length)return!1;for(r=i;r--!==0;)if(!Kn(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),i=n.length,i!==Object.keys(t).length)return!1;for(r=i;r--!==0;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=i;r--!==0;){const l=n[r];if(!(l==="_owner"&&e.$$typeof)&&!Kn(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function al(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sl(e,t){const i=al(e);return Math.round(t*i)/i}function Pr(e){const t=_.useRef(e);return Hn(()=>{t.current=e}),t}function is(e){e===void 0&&(e={});const{placement:t="bottom",strategy:i="absolute",middleware:r=[],platform:n,elements:{reference:l,floating:o}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[m,d]=_.useState({x:0,y:0,strategy:i,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=_.useState(r);Kn(f,r)||h(r);const[E,b]=_.useState(null),[x,O]=_.useState(null),D=_.useCallback(N=>{N!==B.current&&(B.current=N,b(N))},[]),P=_.useCallback(N=>{N!==K.current&&(K.current=N,O(N))},[]),Y=l||E,j=o||x,B=_.useRef(null),K=_.useRef(null),Z=_.useRef(m),J=u!=null,te=Pr(u),oe=Pr(n),Q=Pr(c),le=_.useCallback(()=>{if(!B.current||!K.current)return;const N={placement:t,strategy:i,middleware:f};oe.current&&(N.platform=oe.current),rs(B.current,K.current,N).then(S=>{const p={...S,isPositioned:Q.current!==!1};G.current&&!Kn(Z.current,p)&&(Z.current=p,Gi.flushSync(()=>{d(p)}))})},[f,t,i,oe,Q]);Hn(()=>{c===!1&&Z.current.isPositioned&&(Z.current.isPositioned=!1,d(N=>({...N,isPositioned:!1})))},[c]);const G=_.useRef(!1);Hn(()=>(G.current=!0,()=>{G.current=!1}),[]),Hn(()=>{if(Y&&(B.current=Y),j&&(K.current=j),Y&&j){if(te.current)return te.current(Y,j,le);le()}},[Y,j,le,te,J]);const F=_.useMemo(()=>({reference:B,floating:K,setReference:D,setFloating:P}),[D,P]),L=_.useMemo(()=>({reference:Y,floating:j}),[Y,j]),M=_.useMemo(()=>{const N={position:i,left:0,top:0};if(!L.floating)return N;const S=sl(L.floating,m.x),p=sl(L.floating,m.y);return s?{...N,transform:"translate("+S+"px, "+p+"px)",...al(L.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:S,top:p}},[i,s,L.floating,m.x,m.y]);return _.useMemo(()=>({...m,update:le,refs:F,elements:L,floatingStyles:M}),[m,le,F,L,M])}const ls=e=>{function t(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){const{element:r,padding:n}=typeof e=="function"?e(i):e;return r&&t(r)?r.current!=null?ol({element:r.current,padding:n}).fn(i):{}:r?ol({element:r,padding:n}).fn(i):{}}}},os=(e,t)=>({...es(e),options:[e,t]}),as=(e,t)=>({...ts(e),options:[e,t]}),ss=(e,t)=>({...ns(e),options:[e,t]}),cs=(e,t)=>({...ls(e),options:[e,t]});function cl(e){return _.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&(i.current=t)})},e)}const ul={...Eo},us=ul.useInsertionEffect||(e=>e());function pt(e){const t=_.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return us(()=>{t.current=e}),_.useCallback(function(){for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];return t.current==null?void 0:t.current(...r)},[])}var nt=typeof document<"u"?_.useLayoutEffect:_.useEffect;let fl=!1,fs=0;const dl=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+fs++;function ds(){const[e,t]=_.useState(()=>fl?dl():void 0);return nt(()=>{e==null&&t(dl())},[]),_.useEffect(()=>{fl=!0},[]),e}const Gn=ul.useId||ds;let dn;process.env.NODE_ENV!=="production"&&(dn=new Set);function ms(){for(var e,t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];const n="Floating UI: "+i.join(" ");if(!((e=dn)!=null&&e.has(n))){var l;(l=dn)==null||l.add(n),console.warn(n)}}function ps(){for(var e,t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];const n="Floating UI: "+i.join(" ");if(!((e=dn)!=null&&e.has(n))){var l;(l=dn)==null||l.add(n),console.error(n)}}const ml=_.forwardRef(function(t,i){const{context:{placement:r,elements:{floating:n},middlewareData:{arrow:l,shift:o}},width:s=14,height:u=7,tipRadius:c=0,strokeWidth:m=0,staticOffset:d,stroke:f,d:h,style:{transform:E,...b}={},...x}=t;process.env.NODE_ENV!=="production"&&(i||ms("The `ref` prop is required for `FloatingArrow`."));const O=Gn(),[D,P]=_.useState(!1);if(nt(()=>{if(!n)return;Ue(n).direction==="rtl"&&P(!0)},[n]),!n)return null;const[Y,j]=r.split("-"),B=Y==="top"||Y==="bottom";let K=d;(B&&o!=null&&o.x||!B&&o!=null&&o.y)&&(K=null);const Z=m*2,J=Z/2,te=s/2*(c/-8+1),oe=u/2*c/4,Q=!!h,le=K&&j==="end"?"bottom":"top";let G=K&&j==="end"?"right":"left";K&&D&&(G=j==="end"?"left":"right");const F=(l==null?void 0:l.x)!=null?K||l.x:"",L=(l==null?void 0:l.y)!=null?K||l.y:"",M=h||"M0,0"+(" H"+s)+(" L"+(s-te)+","+(u-oe))+(" Q"+s/2+","+u+" "+te+","+(u-oe))+" Z",N={top:Q?"rotate(180deg)":"",left:Q?"rotate(90deg)":"rotate(-90deg)",bottom:Q?"":"rotate(180deg)",right:Q?"rotate(-90deg)":"rotate(90deg)"}[Y];return W.jsxs("svg",{...x,"aria-hidden":!0,ref:i,width:Q?s:s+Z,height:s,viewBox:"0 0 "+s+" "+(u>s?u:s),style:{position:"absolute",pointerEvents:"none",[G]:F,[le]:L,[Y]:B||Q?"100%":"calc(100% - "+Z/2+"px)",transform:[N,E].filter(S=>!!S).join(" "),...b},children:[Z>0&&W.jsx("path",{clipPath:"url(#"+O+")",fill:"none",stroke:f,strokeWidth:Z+(h?0:1),d:M}),W.jsx("path",{stroke:Z&&!h?x.fill:"none",d:M}),W.jsx("clipPath",{id:O,children:W.jsx("rect",{x:-J,y:J*(Q?-1:1),width:s+Z,height:s})})]})});function hs(){const e=new Map;return{emit(t,i){var r;(r=e.get(t))==null||r.forEach(n=>n(i))},on(t,i){e.set(t,[...e.get(t)||[],i])},off(t,i){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(n=>n!==i))||[])}}}const gs=_.createContext(null),vs=_.createContext(null),Mr=()=>{var e;return((e=_.useContext(gs))==null?void 0:e.id)||null},zr=()=>_.useContext(vs);function mn(e){return"data-floating-ui-"+e}function $r(e){const t=_.useRef(e);return nt(()=>{t.current=e}),t}const pl=mn("safe-polygon");function Lr(e,t,i){return i&&!kr(i)?0:typeof e=="number"?e:e==null?void 0:e[t]}function ys(e,t){t===void 0&&(t={});const{open:i,onOpenChange:r,dataRef:n,events:l,elements:o}=e,{enabled:s=!0,delay:u=0,handleClose:c=null,mouseOnly:m=!1,restMs:d=0,move:f=!0}=t,h=zr(),E=Mr(),b=$r(c),x=$r(u),O=$r(i),D=_.useRef(),P=_.useRef(-1),Y=_.useRef(),j=_.useRef(-1),B=_.useRef(!0),K=_.useRef(!1),Z=_.useRef(()=>{}),J=_.useRef(!1),te=_.useCallback(()=>{var M;const N=(M=n.current.openEvent)==null?void 0:M.type;return(N==null?void 0:N.includes("mouse"))&&N!=="mousedown"},[n]);_.useEffect(()=>{if(!s)return;function M(N){let{open:S}=N;S||(clearTimeout(P.current),clearTimeout(j.current),B.current=!0,J.current=!1)}return l.on("openchange",M),()=>{l.off("openchange",M)}},[s,l]),_.useEffect(()=>{if(!s||!b.current||!i)return;function M(S){te()&&r(!1,S,"hover")}const N=_t(o.floating).documentElement;return N.addEventListener("mouseleave",M),()=>{N.removeEventListener("mouseleave",M)}},[o.floating,i,r,s,b,te]);const oe=_.useCallback(function(M,N,S){N===void 0&&(N=!0),S===void 0&&(S="hover");const p=Lr(x.current,"close",D.current);p&&!Y.current?(clearTimeout(P.current),P.current=window.setTimeout(()=>r(!1,M,S),p)):N&&(clearTimeout(P.current),r(!1,M,S))},[x,r]),Q=pt(()=>{Z.current(),Y.current=void 0}),le=pt(()=>{if(K.current){const M=_t(o.floating).body;M.style.pointerEvents="",M.removeAttribute(pl),K.current=!1}}),G=pt(()=>n.current.openEvent?["click","mousedown"].includes(n.current.openEvent.type):!1);_.useEffect(()=>{if(!s)return;function M(w){if(clearTimeout(P.current),B.current=!1,m&&!kr(D.current)||d>0&&!Lr(x.current,"open"))return;const A=Lr(x.current,"open",D.current);A?P.current=window.setTimeout(()=>{O.current||r(!0,w,"hover")},A):i||r(!0,w,"hover")}function N(w){if(G())return;Z.current();const A=_t(o.floating);if(clearTimeout(j.current),J.current=!1,b.current&&n.current.floatingContext){i||clearTimeout(P.current),Y.current=b.current({...n.current.floatingContext,tree:h,x:w.clientX,y:w.clientY,onClose(){le(),Q(),G()||oe(w,!0,"safe-polygon")}});const U=Y.current;A.addEventListener("mousemove",U),Z.current=()=>{A.removeEventListener("mousemove",U)};return}(D.current==="touch"?!Ft(o.floating,w.relatedTarget):!0)&&oe(w)}function S(w){G()||n.current.floatingContext&&(b.current==null||b.current({...n.current.floatingContext,tree:h,x:w.clientX,y:w.clientY,onClose(){le(),Q(),G()||oe(w)}})(w))}if(pe(o.domReference)){var p;const w=o.domReference;return i&&w.addEventListener("mouseleave",S),(p=o.floating)==null||p.addEventListener("mouseleave",S),f&&w.addEventListener("mousemove",M,{once:!0}),w.addEventListener("mouseenter",M),w.addEventListener("mouseleave",N),()=>{var A;i&&w.removeEventListener("mouseleave",S),(A=o.floating)==null||A.removeEventListener("mouseleave",S),f&&w.removeEventListener("mousemove",M),w.removeEventListener("mouseenter",M),w.removeEventListener("mouseleave",N)}}},[o,s,e,m,d,f,oe,Q,le,r,i,O,h,x,b,n,G]),nt(()=>{var M;if(s&&i&&(M=b.current)!=null&&M.__options.blockPointerEvents&&te()){K.current=!0;const S=o.floating;if(pe(o.domReference)&&S){var N;const p=_t(o.floating).body;p.setAttribute(pl,"");const w=o.domReference,A=h==null||(N=h.nodesRef.current.find(q=>q.id===E))==null||(N=N.context)==null?void 0:N.elements.floating;return A&&(A.style.pointerEvents=""),p.style.pointerEvents="none",w.style.pointerEvents="auto",S.style.pointerEvents="auto",()=>{p.style.pointerEvents="",w.style.pointerEvents="",S.style.pointerEvents=""}}}},[s,i,E,o,h,b,te]),nt(()=>{i||(D.current=void 0,J.current=!1,Q(),le())},[i,Q,le]),_.useEffect(()=>()=>{Q(),clearTimeout(P.current),clearTimeout(j.current),le()},[s,o.domReference,Q,le]);const F=_.useMemo(()=>{function M(N){D.current=N.pointerType}return{onPointerDown:M,onPointerEnter:M,onMouseMove(N){const{nativeEvent:S}=N;function p(){!B.current&&!O.current&&r(!0,S,"hover")}m&&!kr(D.current)||i||d===0||J.current&&N.movementX**2+N.movementY**2<2||(clearTimeout(j.current),D.current==="touch"?p():(J.current=!0,j.current=window.setTimeout(p,d)))}}},[m,r,i,O,d]),L=_.useMemo(()=>({onMouseEnter(){clearTimeout(P.current)},onMouseLeave(M){G()||oe(M.nativeEvent,!1)}}),[oe,G]);return _.useMemo(()=>s?{reference:F,floating:L}:{},[s,F,L])}function Ir(e,t){let i=e.filter(n=>{var l;return n.parentId===t&&((l=n.context)==null?void 0:l.open)}),r=i;for(;r.length;)r=e.filter(n=>{var l;return(l=r)==null?void 0:l.some(o=>{var s;return n.parentId===o.id&&((s=n.context)==null?void 0:s.open)})}),i=i.concat(r);return i}const hl=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function gl(e,t){const i=Bi(e,hl());t==="prev"&&i.reverse();const r=i.indexOf(xr(_t(e)));return i.slice(r+1)[0]}function bs(){return gl(document.body,"next")}function ws(){return gl(document.body,"prev")}function Wr(e,t){const i=t||e.currentTarget,r=e.relatedTarget;return!r||!Ft(i,r)}function _s(e){Bi(e,hl()).forEach(i=>{i.dataset.tabindex=i.getAttribute("tabindex")||"",i.setAttribute("tabindex","-1")})}function vl(e){e.querySelectorAll("[data-tabindex]").forEach(i=>{const r=i.dataset.tabindex;delete i.dataset.tabindex,r?i.setAttribute("tabindex",r):i.removeAttribute("tabindex")})}const yl={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Es;function bl(e){e.key==="Tab"&&(e.target,clearTimeout(Es))}const wl=_.forwardRef(function(t,i){const[r,n]=_.useState();nt(()=>(Ai()&&n("button"),document.addEventListener("keydown",bl),()=>{document.removeEventListener("keydown",bl)}),[]);const l={ref:i,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[mn("focus-guard")]:"",style:yl};return W.jsx("span",{...t,...l})}),_l=_.createContext(null),El=mn("portal");function xs(e){e===void 0&&(e={});const{id:t,root:i}=e,r=Gn(),n=Os(),[l,o]=_.useState(null),s=_.useRef(null);return nt(()=>()=>{l==null||l.remove(),queueMicrotask(()=>{s.current=null})},[l]),nt(()=>{if(!r||s.current)return;const u=t?document.getElementById(t):null;if(!u)return;const c=document.createElement("div");c.id=r,c.setAttribute(El,""),u.appendChild(c),s.current=c,o(c)},[t,r]),nt(()=>{if(i===null||!r||s.current)return;let u=i||(n==null?void 0:n.portalNode);u&&!pe(u)&&(u=u.current),u=u||document.body;let c=null;t&&(c=document.createElement("div"),c.id=t,u.appendChild(c));const m=document.createElement("div");m.id=r,m.setAttribute(El,""),u=c||u,u.appendChild(m),s.current=m,o(m)},[t,i,r,n]),l}function ks(e){const{children:t,id:i,root:r,preserveTabOrder:n=!0}=e,l=xs({id:i,root:r}),[o,s]=_.useState(null),u=_.useRef(null),c=_.useRef(null),m=_.useRef(null),d=_.useRef(null),f=o==null?void 0:o.modal,h=o==null?void 0:o.open,E=!!o&&!o.modal&&o.open&&n&&!!(r||l);return _.useEffect(()=>{if(!l||!n||f)return;function b(x){l&&Wr(x)&&(x.type==="focusin"?vl:_s)(l)}return l.addEventListener("focusin",b,!0),l.addEventListener("focusout",b,!0),()=>{l.removeEventListener("focusin",b,!0),l.removeEventListener("focusout",b,!0)}},[l,n,f]),_.useEffect(()=>{l&&(h||vl(l))},[h,l]),W.jsxs(_l.Provider,{value:_.useMemo(()=>({preserveTabOrder:n,beforeOutsideRef:u,afterOutsideRef:c,beforeInsideRef:m,afterInsideRef:d,portalNode:l,setFocusManagerState:s}),[n,l]),children:[E&&l&&W.jsx(wl,{"data-type":"outside",ref:u,onFocus:b=>{if(Wr(b,l)){var x;(x=m.current)==null||x.focus()}else{const O=ws()||(o==null?void 0:o.domReference);O==null||O.focus()}}}),E&&l&&W.jsx("span",{"aria-owns":l.id,style:yl}),l&&Gi.createPortal(t,l),E&&l&&W.jsx(wl,{"data-type":"outside",ref:c,onFocus:b=>{if(Wr(b,l)){var x;(x=d.current)==null||x.focus()}else{const O=bs()||(o==null?void 0:o.domReference);O==null||O.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,b.nativeEvent,"focus-out"))}}})]})}const Os=()=>_.useContext(_l),Ss="data-floating-ui-focusable",Ts={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Rs={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},xl=e=>{var t,i;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(i=e==null?void 0:e.outsidePress)!=null?i:!0}};function Cs(e,t){t===void 0&&(t={});const{open:i,onOpenChange:r,elements:n,dataRef:l}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:u=!0,outsidePressEvent:c="pointerdown",referencePress:m=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:E}=t,b=zr(),x=pt(typeof u=="function"?u:()=>!1),O=typeof u=="function"?x:u,D=_.useRef(!1),P=_.useRef(!1),{escapeKey:Y,outsidePress:j}=xl(h),{escapeKey:B,outsidePress:K}=xl(E),Z=_.useRef(!1),J=pt(F=>{var L;if(!i||!o||!s||F.key!=="Escape"||Z.current)return;const M=(L=l.current.floatingContext)==null?void 0:L.nodeId,N=b?Ir(b.nodesRef.current,M):[];if(!Y&&(F.stopPropagation(),N.length>0)){let S=!0;if(N.forEach(p=>{var w;if((w=p.context)!=null&&w.open&&!p.context.dataRef.current.__escapeKeyBubbles){S=!1;return}}),!S)return}r(!1,Qo(F)?F.nativeEvent:F,"escape-key")}),te=pt(F=>{var L;const M=()=>{var N;J(F),(N=qt(F))==null||N.removeEventListener("keydown",M)};(L=qt(F))==null||L.addEventListener("keydown",M)}),oe=pt(F=>{var L;const M=D.current;D.current=!1;const N=P.current;if(P.current=!1,c==="click"&&N||M||typeof O=="function"&&!O(F))return;const S=qt(F),p="["+mn("inert")+"]",w=_t(n.floating).querySelectorAll(p);let A=pe(S)?S:null;for(;A&&!dt(A);){const V=mt(A);if(dt(V)||!pe(V))break;A=V}if(w.length&&pe(S)&&!Jo(S)&&!Ft(S,n.floating)&&Array.from(w).every(V=>!Ft(A,V)))return;if(Be(S)&&G){const V=dt(S),fe=Ue(S),ae=/auto|scroll/,ke=V||ae.test(fe.overflowX),Qe=V||ae.test(fe.overflowY),He=ke&&S.clientWidth>0&&S.scrollWidth>S.clientWidth,Ye=Qe&&S.clientHeight>0&&S.scrollHeight>S.clientHeight,Ke=fe.direction==="rtl",de=Ye&&(Ke?F.offsetX<=S.offsetWidth-S.clientWidth:F.offsetX>S.clientWidth),Le=He&&F.offsetY>S.clientHeight;if(de||Le)return}const q=(L=l.current.floatingContext)==null?void 0:L.nodeId,U=b&&Ir(b.nodesRef.current,q).some(V=>{var fe;return Or(F,(fe=V.context)==null?void 0:fe.elements.floating)});if(Or(F,n.floating)||Or(F,n.domReference)||U)return;const se=b?Ir(b.nodesRef.current,q):[];if(se.length>0){let V=!0;if(se.forEach(fe=>{var ae;if((ae=fe.context)!=null&&ae.open&&!fe.context.dataRef.current.__outsidePressBubbles){V=!1;return}}),!V)return}r(!1,F,"outside-press")}),Q=pt(F=>{var L;const M=()=>{var N;oe(F),(N=qt(F))==null||N.removeEventListener(c,M)};(L=qt(F))==null||L.addEventListener(c,M)});_.useEffect(()=>{if(!i||!o)return;l.current.__escapeKeyBubbles=Y,l.current.__outsidePressBubbles=j;let F=-1;function L(w){r(!1,w,"ancestor-scroll")}function M(){window.clearTimeout(F),Z.current=!0}function N(){F=window.setTimeout(()=>{Z.current=!1},$n()?5:0)}const S=_t(n.floating);s&&(S.addEventListener("keydown",B?te:J,B),S.addEventListener("compositionstart",M),S.addEventListener("compositionend",N)),O&&S.addEventListener(c,K?Q:oe,K);let p=[];return f&&(pe(n.domReference)&&(p=wt(n.domReference)),pe(n.floating)&&(p=p.concat(wt(n.floating))),!pe(n.reference)&&n.reference&&n.reference.contextElement&&(p=p.concat(wt(n.reference.contextElement)))),p=p.filter(w=>{var A;return w!==((A=S.defaultView)==null?void 0:A.visualViewport)}),p.forEach(w=>{w.addEventListener("scroll",L,{passive:!0})}),()=>{s&&(S.removeEventListener("keydown",B?te:J,B),S.removeEventListener("compositionstart",M),S.removeEventListener("compositionend",N)),O&&S.removeEventListener(c,K?Q:oe,K),p.forEach(w=>{w.removeEventListener("scroll",L)}),window.clearTimeout(F)}},[l,n,s,O,c,i,r,f,o,Y,j,J,B,te,oe,K,Q]),_.useEffect(()=>{D.current=!1},[O,c]);const le=_.useMemo(()=>({onKeyDown:J,...m&&{[Ts[d]]:F=>{r(!1,F.nativeEvent,"reference-press")},...d!=="click"&&{onClick(F){r(!1,F.nativeEvent,"reference-press")}}}}),[J,r,m,d]),G=_.useMemo(()=>({onKeyDown:J,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[Rs[c]]:()=>{D.current=!0}}),[J,c]);return _.useMemo(()=>o?{reference:le,floating:G}:{},[o,le,G])}function Ns(e){const{open:t=!1,onOpenChange:i,elements:r}=e,n=Gn(),l=_.useRef({}),[o]=_.useState(()=>hs()),s=Mr()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!pe(h)&&ps("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,c]=_.useState(r.reference),m=pt((h,E,b)=>{l.current.openEvent=h?E:void 0,o.emit("openchange",{open:h,event:E,reason:b,nested:s}),i==null||i(h,E,b)}),d=_.useMemo(()=>({setPositionReference:c}),[]),f=_.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return _.useMemo(()=>({dataRef:l,open:t,onOpenChange:m,elements:f,events:o,floatingId:n,refs:d}),[t,m,f,o,n,d])}function Ds(e){e===void 0&&(e={});const{nodeId:t}=e,i=Ns({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||i,n=r.elements,[l,o]=_.useState(null),[s,u]=_.useState(null),m=(n==null?void 0:n.domReference)||l,d=_.useRef(null),f=zr();nt(()=>{m&&(d.current=m)},[m]);const h=is({...e,elements:{...n,...s&&{reference:s}}}),E=_.useCallback(P=>{const Y=pe(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),contextElement:P}:P;u(Y),h.refs.setReference(Y)},[h.refs]),b=_.useCallback(P=>{(pe(P)||P===null)&&(d.current=P,o(P)),(pe(h.refs.reference.current)||h.refs.reference.current===null||P!==null&&!pe(P))&&h.refs.setReference(P)},[h.refs]),x=_.useMemo(()=>({...h.refs,setReference:b,setPositionReference:E,domReference:d}),[h.refs,b,E]),O=_.useMemo(()=>({...h.elements,domReference:m}),[h.elements,m]),D=_.useMemo(()=>({...h,...r,refs:x,elements:O,nodeId:t}),[h,x,O,t,r]);return nt(()=>{r.dataRef.current.floatingContext=D;const P=f==null?void 0:f.nodesRef.current.find(Y=>Y.id===t);P&&(P.context=D)}),_.useMemo(()=>({...h,context:D,refs:x,elements:O}),[h,x,O,D])}function As(e,t){t===void 0&&(t={});const{open:i,onOpenChange:r,events:n,dataRef:l,elements:o}=e,{enabled:s=!0,visibleOnly:u=!0}=t,c=_.useRef(!1),m=_.useRef(),d=_.useRef(!0);_.useEffect(()=>{if(!s)return;const h=We(o.domReference);function E(){!i&&Be(o.domReference)&&o.domReference===xr(_t(o.domReference))&&(c.current=!0)}function b(){d.current=!0}return h.addEventListener("blur",E),h.addEventListener("keydown",b,!0),()=>{h.removeEventListener("blur",E),h.removeEventListener("keydown",b,!0)}},[o.domReference,i,s]),_.useEffect(()=>{if(!s)return;function h(E){let{reason:b}=E;(b==="reference-press"||b==="escape-key")&&(c.current=!0)}return n.on("openchange",h),()=>{n.off("openchange",h)}},[n,s]),_.useEffect(()=>()=>{clearTimeout(m.current)},[]);const f=_.useMemo(()=>({onPointerDown(h){Ko(h.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(h){if(c.current)return;const E=qt(h.nativeEvent);if(u&&pe(E))try{if(Ai()&&Go())throw Error();if(!E.matches(":focus-visible"))return}catch{if(!d.current&&!ea(E))return}r(!0,h.nativeEvent,"focus")},onBlur(h){c.current=!1;const E=h.relatedTarget,b=h.nativeEvent,x=pe(E)&&E.hasAttribute(mn("focus-guard"))&&E.getAttribute("data-type")==="outside";m.current=window.setTimeout(()=>{var O;const D=xr(o.domReference?o.domReference.ownerDocument:document);!E&&D===o.domReference||Ft((O=l.current.floatingContext)==null?void 0:O.refs.floating.current,D)||Ft(o.domReference,D)||x||r(!1,b,"focus")})}}),[l,o.domReference,r,u]);return _.useMemo(()=>s?{reference:f}:{},[s,f])}const kl="active",Ol="selected";function Yr(e,t,i){const r=new Map,n=i==="item";let l=e;if(n&&e){const{[kl]:o,[Ol]:s,...u}=e;l=u}return{...i==="floating"&&{tabIndex:-1,[Ss]:""},...l,...t.map(o=>{const s=o?o[i]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(u=>{let[c,m]=u;if(!(n&&[kl,Ol].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof m=="function"){var d;(d=r.get(c))==null||d.push(m),o[c]=function(){for(var f,h=arguments.length,E=new Array(h),b=0;b<h;b++)E[b]=arguments[b];return(f=r.get(c))==null?void 0:f.map(x=>x(...E)).find(x=>x!==void 0)}}}else o[c]=m}),o),{})}}function js(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),i=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),n=_.useCallback(s=>Yr(s,e,"reference"),t),l=_.useCallback(s=>Yr(s,e,"floating"),i),o=_.useCallback(s=>Yr(s,e,"item"),r);return _.useMemo(()=>({getReferenceProps:n,getFloatingProps:l,getItemProps:o}),[n,l,o])}const Ps=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ms(e,t){var i;t===void 0&&(t={});const{open:r,floatingId:n}=e,{enabled:l=!0,role:o="dialog"}=t,s=(i=Ps.get(o))!=null?i:o,u=Gn(),m=Mr()!=null,d=_.useMemo(()=>s==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?n:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":r?n:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:u},...s==="menu"&&m&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[s,n,m,r,u,o]),f=_.useMemo(()=>{const E={id:n,...s&&{role:s}};return s==="tooltip"||o==="label"?E:{...E,...s==="menu"&&{"aria-labelledby":u}}},[s,n,u,o]),h=_.useCallback(E=>{let{active:b,selected:x}=E;const O={role:"option",...b&&{id:n+"-option"}};switch(o){case"select":return{...O,"aria-selected":b&&x};case"combobox":return{...O,...b&&{"aria-selected":!0}}}return{}},[n,o]);return _.useMemo(()=>l?{reference:d,floating:f,item:h}:{},[l,d,f,h])}const Fr={wrapper:"_wrapper_iejlm_1","size--sm":"_size--sm_iejlm_12","size--md":"_size--md_iejlm_15"},zs=e=>{const t=g.useMemo(()=>ve(Fr.wrapper,{[Fr["size--sm"]]:e.size==="sm",[Fr["size--md"]]:e.size==="md"}),[e.size]);return g.createElement("div",{className:t},e.children)},At={wrapper:"_wrapper_9hfm7_1",icon:"_icon_9hfm7_7",active:"_active_9hfm7_23",arrow:"_arrow_9hfm7_28",arrow2:"_arrow2_9hfm7_33",label:"_label_9hfm7_38",caption:"_caption_9hfm7_43"};function Sl({size:e="sm",initialOpen:t=!1,placement:i="top",open:r,onOpenChange:n}){const[l,o]=_.useState(t),s=_.useRef(null),u=r??l,c=n??o,m=Ds({placement:i,open:u,onOpenChange:c,whileElementsMounted:Za,middleware:[os(6),ss({crossAxis:i.includes("-"),fallbackAxisSideDirection:"start",padding:5}),as({padding:10}),cs({element:s})]}),d=m.context,f=ys(d,{move:!1,enabled:r==null}),h=As(d,{enabled:r==null}),E=Cs(d),b=Ms(d,{role:"tooltip"}),x=js([f,h,E,b]);return _.useMemo(()=>({size:e,open:u,setOpen:c,arrowRef:s,...x,...m}),[u,c,x,m,e,s])}const Tl=_.createContext(null),qr=()=>{const e=_.useContext(Tl);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},$s=({children:e,...t})=>{const i=Sl(t);return _.createElement(Tl.Provider,{value:i},e)},Ls=_.forwardRef(function({children:t,...i},r){const n=qr(),l=cl([n.refs.setReference,r]);return _.createElement("div",{className:At.wrapper,ref:l,"data-state":n.open?"open":"closed",...n.getReferenceProps(i)},t??_.createElement("div",{className:ve(At.icon,{[At.active]:n.open})},_.createElement(he,{icon:"information-fill"})))}),Is=_.forwardRef(function({style:t,...i},r){const n=qr(),l=cl([n.refs.setFloating,r]);return n.open?_.createElement(ks,null,_.createElement("div",{ref:l,style:{...n.floatingStyles,...t},...n.getFloatingProps(i)},_.createElement(zs,{size:n.size},i.children),_.createElement(ml,{ref:n.arrowRef,context:n.context,className:At.arrow,width:14,height:4}),_.createElement(ml,{ref:n.arrowRef,context:n.context,className:At.arrow2,width:14,height:4,style:{transform:"translateY(-1px)"}}))):null}),Ws=Object.assign($s,{Trigger:Ls,Content:Object.assign(Is,{Label:e=>_.createElement("div",{className:At.label},_.createElement(Te,{size:"caption-m",weight:"semi-bold"},_.createElement("p",null,e.children))),Caption:e=>_.createElement("div",{className:At.caption},_.createElement(Te,{size:"caption-m",weight:"medium"},_.createElement("p",null,e.children)))})});function Rl(e){var t,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(i=Rl(e[t]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function Xn(){for(var e,t,i=0,r="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=Rl(e))&&(r&&(r+=" "),r+=t);return r}var Vr,Cl;function Ys(){if(Cl)return Vr;Cl=1;const e=(u,c,m,d)=>{if(m==="length"||m==="prototype"||m==="arguments"||m==="caller")return;const f=Object.getOwnPropertyDescriptor(u,m),h=Object.getOwnPropertyDescriptor(c,m);!t(f,h)&&d||Object.defineProperty(u,m,h)},t=function(u,c){return u===void 0||u.configurable||u.writable===c.writable&&u.enumerable===c.enumerable&&u.configurable===c.configurable&&(u.writable||u.value===c.value)},i=(u,c)=>{const m=Object.getPrototypeOf(c);m!==Object.getPrototypeOf(u)&&Object.setPrototypeOf(u,m)},r=(u,c)=>`/* Wrapped ${u}*/
|
|
96
|
-
${c}`,n=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),l=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),o=(u,c,m)=>{const d=m===""?"":`with ${m.trim()}() `,f=r.bind(null,d,c.toString());Object.defineProperty(f,"name",l),Object.defineProperty(u,"toString",{...n,value:f})};return Vr=(u,c,{ignoreNonConfigurable:m=!1}={})=>{const{name:d}=u;for(const f of Reflect.ownKeys(c))e(u,c,f,m);return i(u,c),o(u,c,d),u},Vr}var pn={exports:{}},Br,Nl;function Fs(){return Nl||(Nl=1,Br=()=>{const e={};return e.promise=new Promise((t,i)=>{e.resolve=t,e.reject=i}),e}),Br}var Qn=pn.exports,Dl;function qs(){return Dl||(Dl=1,function(e,t){var i=Qn&&Qn.__awaiter||function(o,s,u,c){return new(u||(u=Promise))(function(m,d){function f(b){try{E(c.next(b))}catch(x){d(x)}}function h(b){try{E(c.throw(b))}catch(x){d(x)}}function E(b){b.done?m(b.value):new u(function(x){x(b.value)}).then(f,h)}E((c=c.apply(o,s||[])).next())})},r=Qn&&Qn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(Fs());function l(o,s="maxAge"){let u,c,m;const d=()=>i(this,void 0,void 0,function*(){if(u!==void 0)return;const E=b=>i(this,void 0,void 0,function*(){m=n.default();const x=b[1][s]-Date.now();if(x<=0){o.delete(b[0]),m.resolve();return}return u=b[0],c=setTimeout(()=>{o.delete(b[0]),m&&m.resolve()},x),typeof c.unref=="function"&&c.unref(),m.promise});try{for(const b of o)yield E(b)}catch{}u=void 0}),f=()=>{u=void 0,c!==void 0&&(clearTimeout(c),c=void 0),m!==void 0&&(m.reject(void 0),m=void 0)},h=o.set.bind(o);return o.set=(E,b)=>{o.has(E)&&o.delete(E);const x=h(E,b);return u&&u===E&&f(),d(),x},d(),o}t.default=l,e.exports=l,e.exports.default=l}(pn,pn.exports)),pn.exports}var Ur,Al;function Vs(){if(Al)return Ur;Al=1;const e=Ys(),t=qs(),i=new WeakMap,r=new WeakMap,n=(l,{cacheKey:o,cache:s=new Map,maxAge:u}={})=>{typeof u=="number"&&t(s);const c=function(...m){const d=o?o(m):m[0],f=s.get(d);if(f)return f.data;const h=l.apply(this,m);return s.set(d,{data:h,maxAge:u?Date.now()+u:Number.POSITIVE_INFINITY}),h};return e(c,l,{ignoreNonConfigurable:!0}),r.set(c,s),c};return n.decorator=(l={})=>(o,s,u)=>{const c=o[s];if(typeof c!="function")throw new TypeError("The decorated value must be a function");delete u.value,delete u.writable,u.get=function(){if(!i.has(this)){const m=n(c,l);return i.set(this,m),m}return i.get(this)}},n.clear=l=>{const o=r.get(l);if(!o)throw new TypeError("Can't clear a function that was not memoized!");if(typeof o.clear!="function")throw new TypeError("The cache Map can't be cleared!");o.clear()},Ur=n,Ur}var Bs=Vs();const jl=fr(Bs);function Us(e){return typeof e=="string"}function Hs(e,t,i){return i.indexOf(e)===t}function Ks(e){return e.toLowerCase()===e}function Pl(e){return e.indexOf(",")===-1?e:e.split(",")}function Hr(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var t=e.split(".")[0],i=t===void 0?"":t;return Hr(i)}if(e.indexOf("@")!==-1){var r=e.split("@")[0],i=r===void 0?"":r;return Hr(i)}if(e.indexOf("-")===-1||!Ks(e))return e;var n=e.split("-"),l=n[0],o=n[1],s=o===void 0?"":o;return"".concat(l,"-").concat(s.toUpperCase())}function Gs(e){var t=e===void 0?{}:e,i=t.useFallbackLocale,r=i===void 0?!0:i,n=t.fallbackLocale,l=n===void 0?"en-US":n,o=[];if(typeof navigator<"u"){for(var s=navigator.languages||[],u=[],c=0,m=s;c<m.length;c++){var d=m[c];u=u.concat(Pl(d))}var f=navigator.language,h=f&&Pl(f);o=o.concat(u,h)}return r&&o.push(l),o.filter(Us).map(Hr).filter(Hs)}var Xs=jl(Gs,{cacheKey:JSON.stringify});function Qs(e){return Xs(e)[0]||null}var Ml=jl(Qs,{cacheKey:JSON.stringify});function ht(e,t,i){return function(n,l){l===void 0&&(l=i);var o=e(n)+l;return t(o)}}function hn(e){return function(i){return new Date(e(i).getTime()-1)}}function gn(e,t){return function(r){return[e(r),t(r)]}}function ye(e){if(e instanceof Date)return e.getFullYear();if(typeof e=="number")return e;var t=parseInt(e,10);if(typeof e=="string"&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function Et(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function Jn(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function Ht(e){var t=ye(e),i=t+(-t+1)%100,r=new Date;return r.setFullYear(i,0,1),r.setHours(0,0,0,0),r}var Js=ht(ye,Ht,-100),zl=ht(ye,Ht,100),Kr=hn(zl),Zs=ht(ye,Kr,-100),$l=gn(Ht,Kr);function xt(e){var t=ye(e),i=t+(-t+1)%10,r=new Date;return r.setFullYear(i,0,1),r.setHours(0,0,0,0),r}var Ll=ht(ye,xt,-10),Gr=ht(ye,xt,10),Zn=hn(Gr),Il=ht(ye,Zn,-10),Wl=gn(xt,Zn);function Kt(e){var t=ye(e),i=new Date;return i.setFullYear(t,0,1),i.setHours(0,0,0,0),i}var Yl=ht(ye,Kt,-1),Xr=ht(ye,Kt,1),er=hn(Xr),Fl=ht(ye,er,-1),ec=gn(Kt,er);function Qr(e,t){return function(r,n){n===void 0&&(n=t);var l=ye(r),o=Et(r)+n,s=new Date;return s.setFullYear(l,o,1),s.setHours(0,0,0,0),e(s)}}function jt(e){var t=ye(e),i=Et(e),r=new Date;return r.setFullYear(t,i,1),r.setHours(0,0,0,0),r}var ql=Qr(jt,-1),Jr=Qr(jt,1),vn=hn(Jr),Vl=Qr(vn,-1),tc=gn(jt,vn);function nc(e,t){return function(r,n){n===void 0&&(n=t);var l=ye(r),o=Et(r),s=Jn(r)+n,u=new Date;return u.setFullYear(l,o,s),u.setHours(0,0,0,0),e(u)}}function yn(e){var t=ye(e),i=Et(e),r=Jn(e),n=new Date;return n.setFullYear(t,i,r),n.setHours(0,0,0,0),n}var rc=nc(yn,1),Zr=hn(rc),ic=gn(yn,Zr);function Bl(e){return Jn(vn(e))}var Ce={GREGORY:"gregory",HEBREW:"hebrew",ISLAMIC:"islamic",ISO_8601:"iso8601"},lc={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},ei=[0,1,2,3,4,5,6],ti=new Map;function oc(e){return function(i,r){var n=i||Ml();ti.has(n)||ti.set(n,new Map);var l=ti.get(n);return l.has(e)||l.set(e,new Intl.DateTimeFormat(n||void 0,e).format),l.get(e)(r)}}function ac(e){var t=new Date(e);return new Date(t.setHours(12))}function Pt(e){return function(t,i){return oc(e)(t,ac(i))}}var sc={day:"numeric"},cc={day:"numeric",month:"long",year:"numeric"},uc={month:"long"},fc={month:"long",year:"numeric"},dc={weekday:"short"},mc={weekday:"long"},pc={year:"numeric"},hc=Pt(sc),gc=Pt(cc),vc=Pt(uc),Ul=Pt(fc),yc=Pt(dc),bc=Pt(mc),tr=Pt(pc),wc=ei[0],_c=ei[5],Hl=ei[6];function bn(e,t){t===void 0&&(t=Ce.ISO_8601);var i=e.getDay();switch(t){case Ce.ISO_8601:return(i+6)%7;case Ce.ISLAMIC:return(i+1)%7;case Ce.HEBREW:case Ce.GREGORY:return i;default:throw new Error("Unsupported calendar type.")}}function Ec(e){var t=Ht(e);return ye(t)}function xc(e){var t=xt(e);return ye(t)}function ni(e,t){t===void 0&&(t=Ce.ISO_8601);var i=ye(e),r=Et(e),n=e.getDate()-bn(e,t);return new Date(i,r,n)}function kc(e,t){t===void 0&&(t=Ce.ISO_8601);var i=t===Ce.GREGORY?Ce.GREGORY:Ce.ISO_8601,r=ni(e,t),n=ye(e)+1,l,o;do l=new Date(n,0,i===Ce.ISO_8601?4:1),o=ni(l,t),n-=1;while(e<o);return Math.round((r.getTime()-o.getTime())/(864e5*7))+1}function Mt(e,t){switch(e){case"century":return Ht(t);case"decade":return xt(t);case"year":return Kt(t);case"month":return jt(t);case"day":return yn(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Oc(e,t){switch(e){case"century":return Js(t);case"decade":return Ll(t);case"year":return Yl(t);case"month":return ql(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Kl(e,t){switch(e){case"century":return zl(t);case"decade":return Gr(t);case"year":return Xr(t);case"month":return Jr(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Sc(e,t){switch(e){case"decade":return Ll(t,-100);case"year":return Yl(t,-10);case"month":return ql(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function Tc(e,t){switch(e){case"decade":return Gr(t,100);case"year":return Xr(t,10);case"month":return Jr(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}}function Gl(e,t){switch(e){case"century":return Kr(t);case"decade":return Zn(t);case"year":return er(t);case"month":return vn(t);case"day":return Zr(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Rc(e,t){switch(e){case"century":return Zs(t);case"decade":return Il(t);case"year":return Fl(t);case"month":return Vl(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Cc(e,t){switch(e){case"decade":return Il(t,-100);case"year":return Fl(t,-10);case"month":return Vl(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function Xl(e,t){switch(e){case"century":return $l(t);case"decade":return Wl(t);case"year":return ec(t);case"month":return tc(t);case"day":return ic(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function Nc(e,t,i){var r=[t,i].sort(function(n,l){return n.getTime()-l.getTime()});return[Mt(e,r[0]),Gl(e,r[1])]}function Ql(e,t,i){return i.map(function(r){return(t||tr)(e,r)}).join(" – ")}function Dc(e,t,i){return Ql(e,t,$l(i))}function Jl(e,t,i){return Ql(e,t,Wl(i))}function Ac(e){return e.getDay()===new Date().getDay()}function Zl(e,t){t===void 0&&(t=Ce.ISO_8601);var i=e.getDay();switch(t){case Ce.ISLAMIC:case Ce.HEBREW:return i===_c||i===Hl;case Ce.ISO_8601:case Ce.GREGORY:return i===Hl||i===wc;default:throw new Error("Unsupported calendar type.")}}var ot="react-calendar__navigation";function jc(e){var t=e.activeStartDate,i=e.drillUp,r=e.formatMonthYear,n=r===void 0?Ul:r,l=e.formatYear,o=l===void 0?tr:l,s=e.locale,u=e.maxDate,c=e.minDate,m=e.navigationAriaLabel,d=m===void 0?"":m,f=e.navigationAriaLive,h=e.navigationLabel,E=e.next2AriaLabel,b=E===void 0?"":E,x=e.next2Label,O=x===void 0?"»":x,D=e.nextAriaLabel,P=D===void 0?"":D,Y=e.nextLabel,j=Y===void 0?"›":Y,B=e.prev2AriaLabel,K=B===void 0?"":B,Z=e.prev2Label,J=Z===void 0?"«":Z,te=e.prevAriaLabel,oe=te===void 0?"":te,Q=e.prevLabel,le=Q===void 0?"‹":Q,G=e.setActiveStartDate,F=e.showDoubleView,L=e.view,M=e.views,N=M.indexOf(L)>0,S=L!=="century",p=Oc(L,t),w=S?Sc(L,t):void 0,A=Kl(L,t),q=S?Tc(L,t):void 0,U=function(){if(p.getFullYear()<0)return!0;var de=Rc(L,t);return c&&c>=de}(),se=S&&function(){if(w.getFullYear()<0)return!0;var de=Cc(L,t);return c&&c>=de}(),V=u&&u<A,fe=S&&u&&u<q;function ae(){G(p,"prev")}function ke(){G(w,"prev2")}function Qe(){G(A,"next")}function He(){G(q,"next2")}function Ye(de){var Le=function(){switch(L){case"century":return Dc(s,o,de);case"decade":return Jl(s,o,de);case"year":return o(s,de);case"month":return n(s,de);default:throw new Error("Invalid view: ".concat(L,"."))}}();return h?h({date:de,label:Le,locale:s||Ml()||void 0,view:L}):Le}function Ke(){var de="".concat(ot,"__label");return W.jsxs("button",{"aria-label":d,"aria-live":f,className:de,disabled:!N,onClick:i,style:{flexGrow:1},type:"button",children:[W.jsx("span",{className:"".concat(de,"__labelText ").concat(de,"__labelText--from"),children:Ye(t)}),F?W.jsxs(W.Fragment,{children:[W.jsx("span",{className:"".concat(de,"__divider"),children:" – "}),W.jsx("span",{className:"".concat(de,"__labelText ").concat(de,"__labelText--to"),children:Ye(A)})]}):null]})}return W.jsxs("div",{className:ot,children:[J!==null&&S?W.jsx("button",{"aria-label":K,className:"".concat(ot,"__arrow ").concat(ot,"__prev2-button"),disabled:se,onClick:ke,type:"button",children:J}):null,le!==null&&W.jsx("button",{"aria-label":oe,className:"".concat(ot,"__arrow ").concat(ot,"__prev-button"),disabled:U,onClick:ae,type:"button",children:le}),Ke(),j!==null&&W.jsx("button",{"aria-label":P,className:"".concat(ot,"__arrow ").concat(ot,"__next-button"),disabled:V,onClick:Qe,type:"button",children:j}),O!==null&&S?W.jsx("button",{"aria-label":b,className:"".concat(ot,"__arrow ").concat(ot,"__next2-button"),disabled:fe,onClick:He,type:"button",children:O}):null]})}var Gt=function(){return Gt=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Gt.apply(this,arguments)},Pc=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};function eo(e){return"".concat(e,"%")}function ri(e){var t=e.children,i=e.className,r=e.count,n=e.direction,l=e.offset,o=e.style,s=e.wrap,u=Pc(e,["children","className","count","direction","offset","style","wrap"]);return W.jsx("div",Gt({className:i,style:Gt({display:"flex",flexDirection:n,flexWrap:s?"wrap":"nowrap"},o)},u,{children:_.Children.map(t,function(c,m){var d=l&&m===0?eo(100*l/r):null;return _.cloneElement(c,Gt(Gt({},c.props),{style:{flexBasis:eo(100/r),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:d,marginInlineStart:d,marginInlineEnd:0}}))})}))}function Mc(e,t,i){return t&&t>e?t:i&&i<e?i:e}function wn(e,t){return t[0]<=e&&t[1]>=e}function zc(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function to(e,t){return wn(e[0],t)||wn(e[1],t)}function no(e,t,i){var r=to(t,e),n=[];if(r){n.push(i);var l=wn(e[0],t),o=wn(e[1],t);l&&n.push("".concat(i,"Start")),o&&n.push("".concat(i,"End")),l&&o&&n.push("".concat(i,"BothEnds"))}return n}function $c(e){return Array.isArray(e)?e[0]!==null&&e[1]!==null:e!==null}function Lc(e){if(!e)throw new Error("args is required");var t=e.value,i=e.date,r=e.hover,n="react-calendar__tile",l=[n];if(!i)return l;var o=new Date,s=function(){if(Array.isArray(i))return i;var h=e.dateType;if(!h)throw new Error("dateType is required when date is not an array of two dates");return Xl(h,i)}();if(wn(o,s)&&l.push("".concat(n,"--now")),!t||!$c(t))return l;var u=function(){if(Array.isArray(t))return t;var h=e.valueType;if(!h)throw new Error("valueType is required when value is not an array of two dates");return Xl(h,t)}();zc(u,s)?l.push("".concat(n,"--active")):to(u,s)&&l.push("".concat(n,"--hasActive"));var c=no(u,s,"".concat(n,"--range"));l.push.apply(l,c);var m=Array.isArray(t)?t:[t];if(r&&m.length===1){var d=r>u[0]?[u[0],r]:[r,u[0]],f=no(d,s,"".concat(n,"--hover"));l.push.apply(l,f)}return l}function nr(e){for(var t=e.className,i=e.count,r=i===void 0?3:i,n=e.dateTransform,l=e.dateType,o=e.end,s=e.hover,u=e.offset,c=e.renderTile,m=e.start,d=e.step,f=d===void 0?1:d,h=e.value,E=e.valueType,b=[],x=m;x<=o;x+=f){var O=n(x);b.push(c({classes:Lc({date:O,dateType:l,hover:s,value:h,valueType:E}),date:O}))}return W.jsx(ri,{className:t,count:r,offset:u,wrap:!0,children:b})}function rr(e){var t=e.activeStartDate,i=e.children,r=e.classes,n=e.date,l=e.formatAbbr,o=e.locale,s=e.maxDate,u=e.maxDateTransform,c=e.minDate,m=e.minDateTransform,d=e.onClick,f=e.onMouseOver,h=e.style,E=e.tileClassName,b=e.tileContent,x=e.tileDisabled,O=e.view,D=_.useMemo(function(){var Y={activeStartDate:t,date:n,view:O};return typeof E=="function"?E(Y):E},[t,n,E,O]),P=_.useMemo(function(){var Y={activeStartDate:t,date:n,view:O};return typeof b=="function"?b(Y):b},[t,n,b,O]);return W.jsxs("button",{className:Xn(r,D),disabled:c&&m(c)>n||s&&u(s)<n||(x==null?void 0:x({activeStartDate:t,date:n,view:O})),onClick:d?function(Y){return d(n,Y)}:void 0,onFocus:f?function(){return f(n)}:void 0,onMouseOver:f?function(){return f(n)}:void 0,style:h,type:"button",children:[l?W.jsx("abbr",{"aria-label":l(o,n),children:i}):i,P]})}var ii=function(){return ii=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ii.apply(this,arguments)},Ic=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},ro="react-calendar__century-view__decades__decade";function Wc(e){var t=e.classes,i=t===void 0?[]:t,r=e.currentCentury,n=e.formatYear,l=n===void 0?tr:n,o=Ic(e,["classes","currentCentury","formatYear"]),s=o.date,u=o.locale,c=[];return i&&c.push.apply(c,i),c.push(ro),Ht(s).getFullYear()!==r&&c.push("".concat(ro,"--neighboringCentury")),W.jsx(rr,ii({},o,{classes:c,maxDateTransform:Zn,minDateTransform:xt,view:"century",children:Jl(u,l,s)}))}var li=function(){return li=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},li.apply(this,arguments)},io=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};function Yc(e){var t=e.activeStartDate,i=e.hover,r=e.showNeighboringCentury,n=e.value,l=e.valueType,o=io(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),s=Ec(t),u=s+(r?119:99);return W.jsx(nr,{className:"react-calendar__century-view__decades",dateTransform:xt,dateType:"decade",end:u,hover:i,renderTile:function(c){var m=c.date,d=io(c,["date"]);return W.jsx(Wc,li({},o,d,{activeStartDate:t,currentCentury:s,date:m}),m.getTime())},start:s,step:10,value:n,valueType:l})}var oi=function(){return oi=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},oi.apply(this,arguments)};function Fc(e){function t(){return W.jsx(Yc,oi({},e))}return W.jsx("div",{className:"react-calendar__century-view",children:t()})}var ai=function(){return ai=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ai.apply(this,arguments)},qc=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},lo="react-calendar__decade-view__years__year";function Vc(e){var t=e.classes,i=t===void 0?[]:t,r=e.currentDecade,n=e.formatYear,l=n===void 0?tr:n,o=qc(e,["classes","currentDecade","formatYear"]),s=o.date,u=o.locale,c=[];return i&&c.push.apply(c,i),c.push(lo),xt(s).getFullYear()!==r&&c.push("".concat(lo,"--neighboringDecade")),W.jsx(rr,ai({},o,{classes:c,maxDateTransform:er,minDateTransform:Kt,view:"decade",children:l(u,s)}))}var si=function(){return si=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},si.apply(this,arguments)},oo=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};function Bc(e){var t=e.activeStartDate,i=e.hover,r=e.showNeighboringDecade,n=e.value,l=e.valueType,o=oo(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),s=xc(t),u=s+(r?11:9);return W.jsx(nr,{className:"react-calendar__decade-view__years",dateTransform:Kt,dateType:"year",end:u,hover:i,renderTile:function(c){var m=c.date,d=oo(c,["date"]);return W.jsx(Vc,si({},o,d,{activeStartDate:t,currentDecade:s,date:m}),m.getTime())},start:s,value:n,valueType:l})}var ci=function(){return ci=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ci.apply(this,arguments)};function Uc(e){function t(){return W.jsx(Bc,ci({},e))}return W.jsx("div",{className:"react-calendar__decade-view",children:t()})}var ui=function(){return ui=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ui.apply(this,arguments)},Hc=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},ao=function(e,t,i){if(i||arguments.length===2)for(var r=0,n=t.length,l;r<n;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))},Kc="react-calendar__year-view__months__month";function Gc(e){var t=e.classes,i=t===void 0?[]:t,r=e.formatMonth,n=r===void 0?vc:r,l=e.formatMonthYear,o=l===void 0?Ul:l,s=Hc(e,["classes","formatMonth","formatMonthYear"]),u=s.date,c=s.locale;return W.jsx(rr,ui({},s,{classes:ao(ao([],i,!0),[Kc],!1),formatAbbr:o,maxDateTransform:vn,minDateTransform:jt,view:"year",children:n(c,u)}))}var fi=function(){return fi=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},fi.apply(this,arguments)},so=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};function Xc(e){var t=e.activeStartDate,i=e.hover,r=e.value,n=e.valueType,l=so(e,["activeStartDate","hover","value","valueType"]),o=0,s=11,u=ye(t);return W.jsx(nr,{className:"react-calendar__year-view__months",dateTransform:function(c){var m=new Date;return m.setFullYear(u,c,1),jt(m)},dateType:"month",end:s,hover:i,renderTile:function(c){var m=c.date,d=so(c,["date"]);return W.jsx(Gc,fi({},l,d,{activeStartDate:t,date:m}),m.getTime())},start:o,value:r,valueType:n})}var di=function(){return di=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},di.apply(this,arguments)};function Qc(e){function t(){return W.jsx(Xc,di({},e))}return W.jsx("div",{className:"react-calendar__year-view",children:t()})}var mi=function(){return mi=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},mi.apply(this,arguments)},Jc=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},pi="react-calendar__month-view__days__day";function Zc(e){var t=e.calendarType,i=e.classes,r=i===void 0?[]:i,n=e.currentMonthIndex,l=e.formatDay,o=l===void 0?hc:l,s=e.formatLongDate,u=s===void 0?gc:s,c=Jc(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),m=c.date,d=c.locale,f=[];return r&&f.push.apply(f,r),f.push(pi),Zl(m,t)&&f.push("".concat(pi,"--weekend")),m.getMonth()!==n&&f.push("".concat(pi,"--neighboringMonth")),W.jsx(rr,mi({},c,{classes:f,formatAbbr:u,maxDateTransform:Zr,minDateTransform:yn,view:"month",children:o(d,m)}))}var hi=function(){return hi=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},hi.apply(this,arguments)},co=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};function eu(e){var t=e.activeStartDate,i=e.calendarType,r=e.hover,n=e.showFixedNumberOfWeeks,l=e.showNeighboringMonth,o=e.value,s=e.valueType,u=co(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),c=ye(t),m=Et(t),d=n||l,f=bn(t,i),h=d?0:f,E=(d?-f:0)+1,b=function(){if(n)return E+6*7-1;var x=Bl(t);if(l){var O=new Date;O.setFullYear(c,m,x),O.setHours(0,0,0,0);var D=7-bn(O,i)-1;return x+D}return x}();return W.jsx(nr,{className:"react-calendar__month-view__days",count:7,dateTransform:function(x){var O=new Date;return O.setFullYear(c,m,x),yn(O)},dateType:"day",hover:r,end:b,renderTile:function(x){var O=x.date,D=co(x,["date"]);return W.jsx(Zc,hi({},u,D,{activeStartDate:t,calendarType:i,currentMonthIndex:m,date:O}),O.getTime())},offset:h,start:E,value:o,valueType:s})}var uo="react-calendar__month-view__weekdays",gi="".concat(uo,"__weekday");function tu(e){for(var t=e.calendarType,i=e.formatShortWeekday,r=i===void 0?yc:i,n=e.formatWeekday,l=n===void 0?bc:n,o=e.locale,s=e.onMouseLeave,u=new Date,c=jt(u),m=ye(c),d=Et(c),f=[],h=1;h<=7;h+=1){var E=new Date(m,d,h-bn(c,t)),b=l(o,E);f.push(W.jsx("div",{className:Xn(gi,Ac(E)&&"".concat(gi,"--current"),Zl(E,t)&&"".concat(gi,"--weekend")),children:W.jsx("abbr",{"aria-label":b,title:b,children:r(o,E).replace(".","")})},h))}return W.jsx(ri,{className:uo,count:7,onFocus:s,onMouseOver:s,children:f})}var ir=function(){return ir=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ir.apply(this,arguments)},fo=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},mo="react-calendar__tile";function nu(e){var t=e.onClickWeekNumber,i=e.weekNumber,r=W.jsx("span",{children:i});if(t){var n=e.date,l=e.onClickWeekNumber,o=e.weekNumber,s=fo(e,["date","onClickWeekNumber","weekNumber"]);return W.jsx("button",ir({},s,{className:mo,onClick:function(u){return l(o,n,u)},type:"button",children:r}))}else{e.date,e.onClickWeekNumber,e.weekNumber;var s=fo(e,["date","onClickWeekNumber","weekNumber"]);return W.jsx("div",ir({},s,{className:mo,children:r}))}}function ru(e){var t=e.activeStartDate,i=e.calendarType,r=e.onClickWeekNumber,n=e.onMouseLeave,l=e.showFixedNumberOfWeeks,o=function(){if(l)return 6;var c=Bl(t),m=bn(t,i),d=c-(7-m);return 1+Math.ceil(d/7)}(),s=function(){for(var c=ye(t),m=Et(t),d=Jn(t),f=[],h=0;h<o;h+=1)f.push(ni(new Date(c,m,d+h*7),i));return f}(),u=s.map(function(c){return kc(c,i)});return W.jsx(ri,{className:"react-calendar__month-view__weekNumbers",count:o,direction:"column",onFocus:n,onMouseOver:n,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:u.map(function(c,m){var d=s[m];if(!d)throw new Error("date is not defined");return W.jsx(nu,{date:d,onClickWeekNumber:r,weekNumber:c},c)})})}var vi=function(){return vi=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},vi.apply(this,arguments)},iu=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i};function lu(e){if(e)for(var t=0,i=Object.entries(lc);t<i.length;t++){var r=i[t],n=r[0],l=r[1];if(l.includes(e))return n}return Ce.ISO_8601}function ou(e){var t=e.activeStartDate,i=e.locale,r=e.onMouseLeave,n=e.showFixedNumberOfWeeks,l=e.calendarType,o=l===void 0?lu(i):l,s=e.formatShortWeekday,u=e.formatWeekday,c=e.onClickWeekNumber,m=e.showWeekNumbers,d=iu(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);function f(){return W.jsx(tu,{calendarType:o,formatShortWeekday:s,formatWeekday:u,locale:i,onMouseLeave:r})}function h(){return m?W.jsx(ru,{activeStartDate:t,calendarType:o,onClickWeekNumber:c,onMouseLeave:r,showFixedNumberOfWeeks:n}):null}function E(){return W.jsx(eu,vi({calendarType:o},d))}var b="react-calendar__month-view";return W.jsx("div",{className:Xn(b,m?"".concat(b,"--weekNumbers"):""),children:W.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[h(),W.jsxs("div",{style:{flexGrow:1,width:"100%"},children:[f(),E()]})]})})}var Xt=function(){return Xt=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Xt.apply(this,arguments)},lr="react-calendar",or=["century","decade","year","month"],au=["decade","year","month","day"],yi=new Date;yi.setFullYear(1,0,1),yi.setHours(0,0,0,0);var su=new Date(864e13);function _n(e){return e instanceof Date?e:new Date(e)}function po(e,t){return or.slice(or.indexOf(e),or.indexOf(t)+1)}function cu(e,t,i){var r=po(t,i);return r.indexOf(e)!==-1}function bi(e,t,i){return e&&cu(e,t,i)?e:i}function ho(e){var t=or.indexOf(e);return au[t]}function uu(e,t){var i=Array.isArray(e)?e[t]:e;if(!i)return null;var r=_n(i);if(Number.isNaN(r.getTime()))throw new Error("Invalid date: ".concat(e));return r}function go(e,t){var i=e.value,r=e.minDate,n=e.maxDate,l=e.maxDetail,o=uu(i,t);if(!o)return null;var s=ho(l),u=function(){switch(t){case 0:return Mt(s,o);case 1:return Gl(s,o);default:throw new Error("Invalid index value: ".concat(t))}}();return Mc(u,r,n)}var wi=function(e){return go(e,0)},vo=function(e){return go(e,1)},fu=function(e){return[wi,vo].map(function(t){return t(e)})};function yo(e){var t=e.maxDate,i=e.maxDetail,r=e.minDate,n=e.minDetail,l=e.value,o=e.view,s=bi(o,n,i),u=wi({value:l,minDate:r,maxDate:t,maxDetail:i})||new Date;return Mt(s,u)}function du(e){var t=e.activeStartDate,i=e.defaultActiveStartDate,r=e.defaultValue,n=e.defaultView,l=e.maxDate,o=e.maxDetail,s=e.minDate,u=e.minDetail,c=e.value,m=e.view,d=bi(m,u,o),f=t||i;return f?Mt(d,f):yo({maxDate:l,maxDetail:o,minDate:s,minDetail:u,value:c||r,view:m||n})}function _i(e){return e&&(!Array.isArray(e)||e.length===1)}function ar(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var mu=_.forwardRef(function(t,i){var r=t.activeStartDate,n=t.allowPartialRange,l=t.calendarType,o=t.className,s=t.defaultActiveStartDate,u=t.defaultValue,c=t.defaultView,m=t.formatDay,d=t.formatLongDate,f=t.formatMonth,h=t.formatMonthYear,E=t.formatShortWeekday,b=t.formatWeekday,x=t.formatYear,O=t.goToRangeStartOnSelect,D=O===void 0?!0:O,P=t.inputRef,Y=t.locale,j=t.maxDate,B=j===void 0?su:j,K=t.maxDetail,Z=K===void 0?"month":K,J=t.minDate,te=J===void 0?yi:J,oe=t.minDetail,Q=oe===void 0?"century":oe,le=t.navigationAriaLabel,G=t.navigationAriaLive,F=t.navigationLabel,L=t.next2AriaLabel,M=t.next2Label,N=t.nextAriaLabel,S=t.nextLabel,p=t.onActiveStartDateChange,w=t.onChange,A=t.onClickDay,q=t.onClickDecade,U=t.onClickMonth,se=t.onClickWeekNumber,V=t.onClickYear,fe=t.onDrillDown,ae=t.onDrillUp,ke=t.onViewChange,Qe=t.prev2AriaLabel,He=t.prev2Label,Ye=t.prevAriaLabel,Ke=t.prevLabel,de=t.returnValue,Le=de===void 0?"start":de,_e=t.selectRange,Ge=t.showDoubleView,zt=t.showFixedNumberOfWeeks,kt=t.showNavigation,$t=kt===void 0?!0:kt,v=t.showNeighboringCentury,z=t.showNeighboringDecade,$=t.showNeighboringMonth,ie=$===void 0?!0:$,be=t.showWeekNumbers,me=t.tileClassName,ee=t.tileContent,H=t.tileDisabled,Ie=t.value,Ee=t.view,Pe=_.useState(s),at=Pe[0],Me=Pe[1],st=_.useState(null),Fe=st[0],En=st[1],xn=_.useState(Array.isArray(u)?u.map(function(T){return T!==null?_n(T):null}):u!=null?_n(u):null),Qt=xn[0],kn=xn[1],On=_.useState(c),Sn=On[0],Jt=On[1],ze=r||at||du({activeStartDate:r,defaultActiveStartDate:s,defaultValue:u,defaultView:c,maxDate:B,maxDetail:Z,minDate:te,minDetail:Q,value:Ie,view:Ee}),De=function(){var T=function(){return _e&&_i(Qt)?Qt:Ie!==void 0?Ie:Qt}();return T?Array.isArray(T)?T.map(function(C){return C!==null?_n(C):null}):T!==null?_n(T):null:null}(),Lt=ho(Z),ge=bi(Ee||Sn,Q,Z),Xe=po(Q,Z),cr=_e?Fe:null,Zt=Xe.indexOf(ge)<Xe.length-1,Tn=Xe.indexOf(ge)>0,Rn=_.useCallback(function(T){var C=function(){switch(Le){case"start":return wi;case"end":return vo;case"range":return fu;default:throw new Error("Invalid returnValue.")}}();return C({maxDate:B,maxDetail:Z,minDate:te,value:T})},[B,Z,te,Le]),Ot=_.useCallback(function(T,C){Me(T);var X={action:C,activeStartDate:T,value:De,view:ge};p&&!ar(ze,T)&&p(X)},[ze,p,De,ge]),gt=_.useCallback(function(T,C){var X=function(){switch(ge){case"century":return q;case"decade":return V;case"year":return U;case"month":return A;default:throw new Error("Invalid view: ".concat(ge,"."))}}();X&&X(T,C)},[A,q,U,V,ge]),St=_.useCallback(function(T,C){if(Zt){gt(T,C);var X=Xe[Xe.indexOf(ge)+1];if(!X)throw new Error("Attempted to drill down from the lowest view.");Me(T),Jt(X);var ne={action:"drillDown",activeStartDate:T,value:De,view:X};p&&!ar(ze,T)&&p(ne),ke&&ge!==X&&ke(ne),fe&&fe(ne)}},[ze,Zt,p,gt,fe,ke,De,ge,Xe]),It=_.useCallback(function(){if(Tn){var T=Xe[Xe.indexOf(ge)-1];if(!T)throw new Error("Attempted to drill up from the highest view.");var C=Mt(T,ze);Me(C),Jt(T);var X={action:"drillUp",activeStartDate:C,value:De,view:T};p&&!ar(ze,C)&&p(X),ke&&ge!==T&&ke(X),ae&&ae(X)}},[ze,Tn,p,ae,ke,De,ge,Xe]),en=_.useCallback(function(T,C){var X=De;gt(T,C);var ne=_e&&!_i(X),ce;if(_e)if(ne)ce=Mt(Lt,T);else{if(!X)throw new Error("previousValue is required");if(Array.isArray(X))throw new Error("previousValue must not be an array");ce=Nc(Lt,X,T)}else ce=Rn(T);var Oe=!_e||ne||D?yo({maxDate:B,maxDetail:Z,minDate:te,minDetail:Q,value:ce,view:ge}):null;C.persist(),Me(Oe),kn(ce);var vt={action:"onChange",activeStartDate:Oe,value:ce,view:ge};if(p&&!ar(ze,Oe)&&p(vt),w)if(_e){var Je=_i(ce);if(!Je)w(ce||null,C);else if(n){if(Array.isArray(ce))throw new Error("value must not be an array");w([ce||null,null],C)}}else w(ce||null,C)},[ze,n,Rn,D,B,Z,te,Q,p,w,gt,_e,De,Lt,ge]);function a(T){En(T)}function y(){En(null)}_.useImperativeHandle(i,function(){return{activeStartDate:ze,drillDown:St,drillUp:It,onChange:en,setActiveStartDate:Ot,value:De,view:ge}},[ze,St,It,en,Ot,De,ge]);function k(T){var C=T?Kl(ge,ze):Mt(ge,ze),X=Zt?St:en,ne={activeStartDate:C,hover:cr,locale:Y,maxDate:B,minDate:te,onClick:X,onMouseOver:_e?a:void 0,tileClassName:me,tileContent:ee,tileDisabled:H,value:De,valueType:Lt};switch(ge){case"century":return W.jsx(Fc,Xt({formatYear:x,showNeighboringCentury:v},ne));case"decade":return W.jsx(Uc,Xt({formatYear:x,showNeighboringDecade:z},ne));case"year":return W.jsx(Qc,Xt({formatMonth:f,formatMonthYear:h},ne));case"month":return W.jsx(ou,Xt({calendarType:l,formatDay:m,formatLongDate:d,formatShortWeekday:E,formatWeekday:b,onClickWeekNumber:se,onMouseLeave:_e?y:void 0,showFixedNumberOfWeeks:typeof zt<"u"?zt:Ge,showNeighboringMonth:ie,showWeekNumbers:be},ne));default:throw new Error("Invalid view: ".concat(ge,"."))}}function R(){return $t?W.jsx(jc,{activeStartDate:ze,drillUp:It,formatMonthYear:h,formatYear:x,locale:Y,maxDate:B,minDate:te,navigationAriaLabel:le,navigationAriaLive:G,navigationLabel:F,next2AriaLabel:L,next2Label:M,nextAriaLabel:N,nextLabel:S,prev2AriaLabel:Qe,prev2Label:He,prevAriaLabel:Ye,prevLabel:Ke,setActiveStartDate:Ot,showDoubleView:Ge,view:ge,views:Xe}):null}var I=Array.isArray(De)?De:[De];return W.jsxs("div",{className:Xn(lr,_e&&I.length===1&&"".concat(lr,"--selectRange"),Ge&&"".concat(lr,"--doubleView"),o),ref:P,children:[R(),W.jsxs("div",{className:"".concat(lr,"__viewContainer"),onBlur:_e?y:void 0,onMouseLeave:_e?y:void 0,children:[k(),Ge?k(!0):null]})]})});const bo={wrapper:"_wrapper_1w27z_1",calendar:"_calendar_1w27z_14"},pu=()=>g.createElement("div",{className:bo.wrapper},g.createElement(mu,{className:bo.calendar,view:"month"})),Ne={wrapper:"_wrapper_w8phr_1","left-action":"_left-action_w8phr_14",disabled:"_disabled_w8phr_19","right-action":"_right-action_w8phr_23",icon:"_icon_w8phr_32",value:"_value_w8phr_40","shape--pill":"_shape--pill_w8phr_53","size--lg":"_size--lg_w8phr_57","shape--rounded":"_shape--rounded_w8phr_65","size--md":"_size--md_w8phr_68",outline:"_outline_w8phr_80"},hu=({shape:e="rounded",size:t="lg",outline:i=!1,leftActionDisabled:r=!1,rightActionDisabled:n=!1,leftActionType:l="subtract",rightActionType:o="add",value:s=0,onLeftActionClick:u,onRightActionClick:c})=>{const m=g.useMemo(()=>ve(Ne.wrapper,{[Ne["size--lg"]]:t==="lg",[Ne["size--md"]]:t==="md"},{[Ne["shape--pill"]]:e==="pill",[Ne["shape--rounded"]]:e==="rounded"},{[Ne.outline]:i}),[e,t,i]),d=g.useMemo(()=>ve(Ne["left-action"],{[Ne.disabled]:r}),[r]),f=g.useMemo(()=>ve(Ne["right-action"],{[Ne.disabled]:n}),[n]),h=()=>{r||u()},E=()=>{n||c()};return g.createElement("div",{className:m},g.createElement("div",{className:d,onClick:h},l==="add"&&g.createElement("div",{className:Ne.icon},g.createElement(he,{icon:"add-line"})),l==="delete"&&g.createElement("div",{className:Ne.icon},g.createElement(he,{icon:"delete-bin-line"})),l==="subtract"&&g.createElement("div",{className:Ne.icon},g.createElement(he,{icon:"subtract-line"}))),g.createElement("div",{className:Ne.value},s),g.createElement("div",{className:f,onClick:E},o==="add"&&g.createElement("div",{className:Ne.icon},g.createElement(he,{icon:"add-line"})),o==="delete"&&g.createElement("div",{className:Ne.icon},g.createElement(he,{icon:"delete-bin-line"})),o==="subtract"&&g.createElement("div",{className:Ne.icon},g.createElement(he,{icon:"subtract-line"}))))},$e={wrapper:"_wrapper_j7cta_1",line:"_line_j7cta_8",left:"_left_j7cta_16",center:"_center_j7cta_24",text:"_text_j7cta_32"},gu=e=>{switch(e.type){case"label-left":return g.createElement("div",{className:$e.wrapper},g.createElement("div",{className:$e.left},g.createElement(Te,{size:"caption-m",weight:"semi-bold"},g.createElement("span",{className:$e.text},e.label))),g.createElement("div",{className:$e.line}));case"label-center":return g.createElement("div",{className:$e.wrapper},g.createElement("div",{className:$e.line}),g.createElement("div",{className:$e.center},g.createElement(Te,{size:"caption-m",weight:"semi-bold"},g.createElement("span",{className:$e.text},e.label))),g.createElement("div",{className:$e.line}));case"action-center":return g.createElement("div",{className:$e.wrapper},g.createElement("div",{className:$e.line}),g.createElement("div",{className:$e.center},g.createElement(Ti,{style:"secondary",size:"xs"},e.actionLabel)),g.createElement("div",{className:$e.line}));default:return g.createElement("div",{className:$e.wrapper},g.createElement("div",{className:$e.line}))}},sr={wrapper:"_wrapper_rf188_1",label:"_label_rf188_7",content:"_content_rf188_14",caption:"_caption_rf188_20"},vu=Object.assign(e=>g.createElement("div",{className:sr.wrapper},g.Children.map(e.children,t=>g.isValidElement(t)?t:null)),{Label:e=>g.createElement("div",{className:sr.label},e.children),Content:e=>g.createElement("div",{className:sr.content},e.children),Caption:e=>g.createElement("div",{className:sr.caption},e.children)}),yu={wrapper:"_wrapper_19vng_1"},bu=e=>g.createElement("div",{className:yu.wrapper},e.children);ue.Accordion=zo,ue.Avatar=$o,ue.Badge=Si,ue.Button=Ti,ue.ButtonIcon=So,ue.ButtonLink=To,ue.Calendar=pu,ue.CaptionField=Po,ue.Checkbox=Do,ue.Chip=Wo,ue.Divider=gu,ue.Dot=mr,ue.DropDownWrapper=bu,ue.FieldWrapper=vu,ue.Icon=he,ue.Input=Ao,ue.LabelField=jo,ue.QuantityStepper=hu,ue.Radio=Co,ue.Slider=qo,ue.Toggle=Bo,ue.ToolTip=Ws,ue.Typography=Te,ue.iconName=Oo,ue.useTooltip=Sl,ue.useTooltipContext=qr,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
|
|
95
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),g}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=wt(),d={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},u=Symbol.for("react.portal"),v=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,ye.createPortal=function(g,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return r(g,f,null,h)},ye.flushSync=function(g){var f=v.T,h=d.p;try{if(v.T=null,d.p=2,g)return g()}finally{v.T=f,d.p=h,d.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ye.preconnect=function(g,f){typeof g=="string"&&g?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",i(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(g)),typeof g=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,d.d.C(g,f))},ye.prefetchDNS=function(g){if(typeof g!="string"||!g)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(g));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(f))}typeof g=="string"&&d.d.D(g)},ye.preinit=function(g,f){if(typeof g=="string"&&g?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(g)),typeof g=="string"&&f&&typeof f.as=="string"){var h=f.as,w=o(h,f.crossOrigin),E=typeof f.integrity=="string"?f.integrity:void 0,T=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?d.d.S(g,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:w,integrity:E,fetchPriority:T}):h==="script"&&d.d.X(g,{crossOrigin:w,integrity:E,fetchPriority:T,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ye.preinitModule=function(g,f){var h="";if(typeof g=="string"&&g||(h+=" The `href` argument encountered was "+i(g)+"."),f!==void 0&&typeof f!="object"?h+=" The `options` argument encountered was "+i(f)+".":f&&"as"in f&&f.as!=="script"&&(h+=" The `as` option encountered was "+s(f.as)+"."),h)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",h);else switch(h=f&&typeof f.as=="string"?f.as:"script",h){case"script":break;default:h=s(h),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',h,g)}typeof g=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(h=o(f.as,f.crossOrigin),d.d.M(g,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&d.d.M(g))},ye.preload=function(g,f){var h="";if(typeof g=="string"&&g||(h+=" The `href` argument encountered was "+i(g)+"."),f==null||typeof f!="object"?h+=" The `options` argument encountered was "+i(f)+".":typeof f.as=="string"&&f.as||(h+=" The `as` option encountered was "+i(f.as)+"."),h&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',h),typeof g=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){h=f.as;var w=o(h,f.crossOrigin);d.d.L(g,h,{crossOrigin:w,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ye.preloadModule=function(g,f){var h="";typeof g=="string"&&g||(h+=" The `href` argument encountered was "+i(g)+"."),f!==void 0&&typeof f!="object"?h+=" The `options` argument encountered was "+i(f)+".":f&&"as"in f&&typeof f.as!="string"&&(h+=" The `as` option encountered was "+i(f.as)+"."),h&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',h),typeof g=="string"&&(f?(h=o(f.as,f.crossOrigin),d.d.m(g,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})):d.d.m(g))},ye.requestFormReset=function(g){d.d.r(g)},ye.unstable_batchedUpdates=function(g,f){return g(f)},ye.useFormState=function(g,f,h){return a().useFormState(g,f,h)},ye.useFormStatus=function(){return a().useHostTransitionStatus()},ye.version="19.0.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ye}var Bn;function Po(){if(Bn)return Mt.exports;Bn=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),Mt.exports=Ao()):Mt.exports=No(),Mt.exports}var Vn=Po();function qn(e,t,r){let{reference:o,floating:i}=e;const s=st(t),a=en(t),c=Jt(a),d=Ke(t),u=s==="y",v=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,f=o[c]/2-i[c]/2;let h;switch(d){case"top":h={x:v,y:o.y-i.height};break;case"bottom":h={x:v,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:g};break;case"left":h={x:o.x-i.width,y:g};break;default:h={x:o.x,y:o.y}}switch(mt(t)){case"start":h[a]-=f*(r&&u?-1:1);break;case"end":h[a]+=f*(r&&u?-1:1);break}return h}const ko=async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=r,c=s.filter(Boolean),d=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:v,y:g}=qn(u,o,d),f=o,h={},w=0;for(let E=0;E<c.length;E++){const{name:T,fn:x}=c[E],{x:j,y:P,data:H,reset:A}=await x({x:v,y:g,initialPlacement:o,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});v=j??v,g=P??g,h={...h,[T]:{...h[T],...H}},A&&w<=50&&(w++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(u=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:v,y:g}=qn(u,f,d)),E=-1)}return{x:v,y:g,placement:f,strategy:i,middlewareData:h}};async function Gn(e,t){var r;t===void 0&&(t={});const{x:o,y:i,platform:s,rects:a,elements:c,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:f=!1,padding:h=0}=dt(t,e),w=kn(h),T=c[f?g==="floating"?"reference":"floating":g],x=Nt(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(T)))==null||r?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:v,strategy:d})),j=g==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),H=await(s.isElement==null?void 0:s.isElement(P))?await(s.getScale==null?void 0:s.getScale(P))||{x:1,y:1}:{x:1,y:1},A=Nt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:j,offsetParent:P,strategy:d}):j);return{top:(x.top-A.top+w.top)/H.y,bottom:(A.bottom-x.bottom+w.bottom)/H.y,left:(x.left-A.left+w.left)/H.x,right:(A.right-x.right+w.right)/H.x}}const jo=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:s,platform:a,elements:c,middlewareData:d}=t,{element:u,padding:v=0}=dt(e,t)||{};if(u==null)return{};const g=kn(v),f={x:r,y:o},h=en(i),w=Jt(h),E=await a.getDimensions(u),T=h==="y",x=T?"top":"left",j=T?"bottom":"right",P=T?"clientHeight":"clientWidth",H=s.reference[w]+s.reference[h]-f[h]-s.floating[w],A=f[h]-s.reference[h],X=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let B=X?X[P]:0;(!B||!await(a.isElement==null?void 0:a.isElement(X)))&&(B=c.floating[P]||s.floating[w]);const ee=H/2-A/2,q=B/2-E[w]/2-1,ne=it(g[x],q),te=it(g[j],q),Q=ne,J=B-E[w]-te,V=B/2-E[w]/2+ee,z=Zt(Q,V,J),W=!d.arrow&&mt(i)!=null&&V!==z&&s.reference[w]/2-(V<Q?ne:te)-E[w]/2<0,k=W?V<Q?V-Q:V-J:0;return{[h]:f[h]+k,data:{[h]:z,centerOffset:V-z-k,...W&&{alignmentOffset:k}},reset:W}}}),Mo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:c,platform:d,elements:u}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:E=!0,...T}=dt(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const x=Ke(i),j=st(c),P=Ke(c)===c,H=await(d.isRTL==null?void 0:d.isRTL(u.floating)),A=f||(P||!E?[At(c)]:ro(c)),X=w!=="none";!f&&X&&A.push(...io(c,E,w,H));const B=[c,...A],ee=await Gn(t,T),q=[];let ne=((o=s.flip)==null?void 0:o.overflows)||[];if(v&&q.push(ee[x]),g){const V=no(i,a,H);q.push(ee[V[0]],ee[V[1]])}if(ne=[...ne,{placement:i,overflows:q}],!q.every(V=>V<=0)){var te,Q;const V=(((te=s.flip)==null?void 0:te.index)||0)+1,z=B[V];if(z)return{data:{index:V,overflows:ne},reset:{placement:z}};let W=(Q=ne.filter(k=>k.overflows[0]<=0).sort((k,C)=>k.overflows[1]-C.overflows[1])[0])==null?void 0:Q.placement;if(!W)switch(h){case"bestFit":{var J;const k=(J=ne.filter(C=>{if(X){const R=st(C.placement);return R===j||R==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(R=>R>0).reduce((R,l)=>R+l,0)]).sort((C,R)=>C[1]-R[1])[0])==null?void 0:J[0];k&&(W=k);break}case"initialPlacement":W=c;break}if(i!==W)return{reset:{placement:W}}}return{}}}};async function Lo(e,t){const{placement:r,platform:o,elements:i}=e,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),a=Ke(r),c=mt(r),d=st(r)==="y",u=["left","top"].includes(a)?-1:1,v=s&&d?-1:1,g=dt(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof w=="number"&&(h=c==="end"?w*-1:w),d?{x:h*v,y:f*u}:{x:f*u,y:h*v}}const Do=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:s,placement:a,middlewareData:c}=t,d=await Lo(t,e);return a===((r=c.offset)==null?void 0:r.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+d.x,y:s+d.y,data:{...d,placement:a}}}}},zo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x,y:j}=T;return{x,y:j}}},...d}=dt(e,t),u={x:r,y:o},v=await Gn(t,d),g=st(Ke(i)),f=Pn(g);let h=u[f],w=u[g];if(s){const T=f==="y"?"top":"left",x=f==="y"?"bottom":"right",j=h+v[T],P=h-v[x];h=Zt(j,h,P)}if(a){const T=g==="y"?"top":"left",x=g==="y"?"bottom":"right",j=w+v[T],P=w-v[x];w=Zt(j,w,P)}const E=c.fn({...t,[f]:h,[g]:w});return{...E,data:{x:E.x-r,y:E.y-o,enabled:{[f]:s,[g]:a}}}}}};function Kn(e){const t=we(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=Ee(e),s=i?e.offsetWidth:r,a=i?e.offsetHeight:o,c=Ct(r)!==s||Ct(o)!==a;return c&&(r=s,o=a),{width:r,height:o,$:c}}function rn(e){return ce(e)?e:e.contextElement}function at(e){const t=rn(e);if(!Ee(t))return Ae(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:s}=Kn(t);let a=(s?Ct(r.width):r.width)/o,c=(s?Ct(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const $o=Ae(0);function Xn(e){const t=_e(e);return!Ot()||!t.visualViewport?$o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Io(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_e(e)?!1:t}function Xe(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=rn(e);let a=Ae(1);t&&(o?ce(o)&&(a=at(o)):a=at(e));const c=Io(s,r,o)?Xn(s):Ae(0);let d=(i.left+c.x)/a.x,u=(i.top+c.y)/a.y,v=i.width/a.x,g=i.height/a.y;if(s){const f=_e(s),h=o&&ce(o)?_e(o):o;let w=f,E=Gt(w);for(;E&&o&&h!==w;){const T=at(E),x=E.getBoundingClientRect(),j=we(E),P=x.left+(E.clientLeft+parseFloat(j.paddingLeft))*T.x,H=x.top+(E.clientTop+parseFloat(j.paddingTop))*T.y;d*=T.x,u*=T.y,v*=T.x,g*=T.y,d+=P,u+=H,w=_e(E),E=Gt(w)}}return Nt({width:v,height:g,x:d,y:u})}function on(e,t){const r=xt(e).scrollLeft;return t?t.left+r:Xe(Se(e)).left+r}function Qn(e,t,r){r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=o.left+t.scrollLeft-(r?0:on(e,o)),s=o.top+t.scrollTop;return{x:i,y:s}}function Yo(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e;const s=i==="fixed",a=Se(o),c=t?Tt(t.floating):!1;if(o===a||c&&s)return r;let d={scrollLeft:0,scrollTop:0},u=Ae(1);const v=Ae(0),g=Ee(o);if((g||!g&&!s)&&((nt(o)!=="body"||ft(a))&&(d=xt(o)),Ee(o))){const h=Xe(o);u=at(o),v.x=h.x+o.clientLeft,v.y=h.y+o.clientTop}const f=a&&!g&&!s?Qn(a,d,!0):Ae(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+v.x+f.x,y:r.y*u.y-d.scrollTop*u.y+v.y+f.y}}function Ho(e){return Array.from(e.getClientRects())}function Wo(e){const t=Se(e),r=xt(e),o=e.ownerDocument.body,i=Ge(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Ge(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+on(e);const c=-r.scrollTop;return we(o).direction==="rtl"&&(a+=Ge(t.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:c}}function Fo(e,t){const r=_e(e),o=Se(e),i=r.visualViewport;let s=o.clientWidth,a=o.clientHeight,c=0,d=0;if(i){s=i.width,a=i.height;const u=Ot();(!u||u&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:c,y:d}}function Uo(e,t){const r=Xe(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,s=Ee(e)?at(e):Ae(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,d=i*s.x,u=o*s.y;return{width:a,height:c,x:d,y:u}}function Zn(e,t,r){let o;if(t==="viewport")o=Fo(e,r);else if(t==="document")o=Wo(Se(e));else if(ce(t))o=Uo(t,r);else{const i=Xn(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Nt(o)}function Jn(e,t){const r=Le(e);return r===t||!ce(r)||Me(r)?!1:we(r).position==="fixed"||Jn(r,t)}function Bo(e,t){const r=t.get(e);if(r)return r;let o=Fe(e,[],!1).filter(c=>ce(c)&&nt(c)!=="body"),i=null;const s=we(e).position==="fixed";let a=s?Le(e):e;for(;ce(a)&&!Me(a);){const c=we(a),d=qt(a);!d&&c.position==="fixed"&&(i=null),(s?!d&&!i:!d&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ft(a)&&!d&&Jn(e,a))?o=o.filter(v=>v!==a):i=c,a=Le(a)}return t.set(e,o),o}function Vo(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const a=[...r==="clippingAncestors"?Tt(t)?[]:Bo(t,this._c):[].concat(r),o],c=a[0],d=a.reduce((u,v)=>{const g=Zn(t,v,i);return u.top=Ge(g.top,u.top),u.right=it(g.right,u.right),u.bottom=it(g.bottom,u.bottom),u.left=Ge(g.left,u.left),u},Zn(t,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function qo(e){const{width:t,height:r}=Kn(e);return{width:t,height:r}}function Go(e,t,r){const o=Ee(t),i=Se(t),s=r==="fixed",a=Xe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=Ae(0);if(o||!o&&!s)if((nt(t)!=="body"||ft(i))&&(c=xt(t)),o){const f=Xe(t,!0,s,t);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else i&&(d.x=on(i));const u=i&&!o&&!s?Qn(i,c):Ae(0),v=a.left+c.scrollLeft-d.x-u.x,g=a.top+c.scrollTop-d.y-u.y;return{x:v,y:g,width:a.width,height:a.height}}function sn(e){return we(e).position==="static"}function er(e,t){if(!Ee(e)||we(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Se(e)===r&&(r=r.ownerDocument.body),r}function tr(e,t){const r=_e(e);if(Tt(e))return r;if(!Ee(e)){let i=Le(e);for(;i&&!Me(i);){if(ce(i)&&!sn(i))return i;i=Le(i)}return r}let o=er(e,t);for(;o&&Br(o)&&sn(o);)o=er(o,t);return o&&Me(o)&&sn(o)&&!qt(o)?r:o||Vr(e)||r}const Ko=async function(e){const t=this.getOffsetParent||tr,r=this.getDimensions,o=await r(e.floating);return{reference:Go(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return we(e).direction==="rtl"}const Qo={convertOffsetParentRelativeRectToViewportRelativeRect:Yo,getDocumentElement:Se,getClippingRect:Vo,getOffsetParent:tr,getElementRects:Ko,getClientRects:Ho,getDimensions:qo,getScale:at,isElement:ce,isRTL:Xo};function nr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zo(e,t){let r=null,o;const i=Se(e);function s(){var c;clearTimeout(o),(c=r)==null||c.disconnect(),r=null}function a(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const u=e.getBoundingClientRect(),{left:v,top:g,width:f,height:h}=u;if(c||t(),!f||!h)return;const w=St(g),E=St(i.clientWidth-(v+f)),T=St(i.clientHeight-(g+h)),x=St(v),P={rootMargin:-w+"px "+-E+"px "+-T+"px "+-x+"px",threshold:Ge(0,it(1,d))||1};let H=!0;function A(X){const B=X[0].intersectionRatio;if(B!==d){if(!H)return a();B?a(!1,B):o=setTimeout(()=>{a(!1,1e-7)},1e3)}B===1&&!nr(u,e.getBoundingClientRect())&&a(),H=!1}try{r=new IntersectionObserver(A,{...P,root:i.ownerDocument})}catch{r=new IntersectionObserver(A,P)}r.observe(e)}return a(!0),s}function Jo(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,u=rn(e),v=i||s?[...u?Fe(u):[],...Fe(t)]:[];v.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),s&&x.addEventListener("resize",r)});const g=u&&c?Zo(u,r):null;let f=-1,h=null;a&&(h=new ResizeObserver(x=>{let[j]=x;j&&j.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var P;(P=h)==null||P.observe(t)})),r()}),u&&!d&&h.observe(u),h.observe(t));let w,E=d?Xe(e):null;d&&T();function T(){const x=Xe(e);E&&!nr(E,x)&&r(),E=x,w=requestAnimationFrame(T)}return r(),()=>{var x;v.forEach(j=>{i&&j.removeEventListener("scroll",r),s&&j.removeEventListener("resize",r)}),g==null||g(),(x=h)==null||x.disconnect(),h=null,d&&cancelAnimationFrame(w)}}const ei=Do,ti=zo,ni=Mo,rr=jo,ri=(e,t,r)=>{const o=new Map,i={platform:Qo,...r},s={...i.platform,_c:o};return ko(e,t,{...i,platform:s})};var Lt=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Dt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!Dt(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=r;o--!==0;){const s=i[o];if(!(s==="_owner"&&e.$$typeof)&&!Dt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function or(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ir(e,t){const r=or(e);return Math.round(t*r)/r}function an(e){const t=_.useRef(e);return Lt(()=>{t.current=e}),t}function oi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:d,open:u}=e,[v,g]=_.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=_.useState(o);Dt(f,o)||h(o);const[w,E]=_.useState(null),[T,x]=_.useState(null),j=_.useCallback(C=>{C!==X.current&&(X.current=C,E(C))},[]),P=_.useCallback(C=>{C!==B.current&&(B.current=C,x(C))},[]),H=s||w,A=a||T,X=_.useRef(null),B=_.useRef(null),ee=_.useRef(v),q=d!=null,ne=an(d),te=an(i),Q=an(u),J=_.useCallback(()=>{if(!X.current||!B.current)return;const C={placement:t,strategy:r,middleware:f};te.current&&(C.platform=te.current),ri(X.current,B.current,C).then(R=>{const l={...R,isPositioned:Q.current!==!1};V.current&&!Dt(ee.current,l)&&(ee.current=l,Vn.flushSync(()=>{g(l)}))})},[f,t,r,te,Q]);Lt(()=>{u===!1&&ee.current.isPositioned&&(ee.current.isPositioned=!1,g(C=>({...C,isPositioned:!1})))},[u]);const V=_.useRef(!1);Lt(()=>(V.current=!0,()=>{V.current=!1}),[]),Lt(()=>{if(H&&(X.current=H),A&&(B.current=A),H&&A){if(ne.current)return ne.current(H,A,J);J()}},[H,A,J,ne,q]);const z=_.useMemo(()=>({reference:X,floating:B,setReference:j,setFloating:P}),[j,P]),W=_.useMemo(()=>({reference:H,floating:A}),[H,A]),k=_.useMemo(()=>{const C={position:r,left:0,top:0};if(!W.floating)return C;const R=ir(W.floating,v.x),l=ir(W.floating,v.y);return c?{...C,transform:"translate("+R+"px, "+l+"px)",...or(W.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:R,top:l}},[r,c,W.floating,v.x,v.y]);return _.useMemo(()=>({...v,update:J,refs:z,elements:W,floatingStyles:k}),[v,J,z,W,k])}const ii=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:i}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?rr({element:o.current,padding:i}).fn(r):{}:o?rr({element:o,padding:i}).fn(r):{}}}},si=(e,t)=>({...ei(e),options:[e,t]}),ai=(e,t)=>({...ti(e),options:[e,t]}),ui=(e,t)=>({...ni(e),options:[e,t]}),ci=(e,t)=>({...ii(e),options:[e,t]});function sr(e){return _.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})},e)}const ar={...Yr},li=ar.useInsertionEffect||(e=>e());function De(e){const t=_.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return li(()=>{t.current=e}),_.useCallback(function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t.current==null?void 0:t.current(...o)},[])}var Oe=typeof document<"u"?_.useLayoutEffect:_.useEffect;let ur=!1,fi=0;const cr=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+fi++;function di(){const[e,t]=_.useState(()=>ur?cr():void 0);return Oe(()=>{e==null&&t(cr())},[]),_.useEffect(()=>{ur=!0},[]),e}const zt=ar.useId||di;let vt;process.env.NODE_ENV!=="production"&&(vt=new Set);function mi(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];const i="Floating UI: "+r.join(" ");if(!((e=vt)!=null&&e.has(i))){var s;(s=vt)==null||s.add(i),console.warn(i)}}function gi(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];const i="Floating UI: "+r.join(" ");if(!((e=vt)!=null&&e.has(i))){var s;(s=vt)==null||s.add(i),console.error(i)}}const lr=_.forwardRef(function(t,r){const{context:{placement:o,elements:{floating:i},middlewareData:{arrow:s,shift:a}},width:c=14,height:d=7,tipRadius:u=0,strokeWidth:v=0,staticOffset:g,stroke:f,d:h,style:{transform:w,...E}={},...T}=t;process.env.NODE_ENV!=="production"&&(r||mi("The `ref` prop is required for `FloatingArrow`."));const x=zt(),[j,P]=_.useState(!1);if(Oe(()=>{if(!i)return;we(i).direction==="rtl"&&P(!0)},[i]),!i)return null;const[H,A]=o.split("-"),X=H==="top"||H==="bottom";let B=g;(X&&a!=null&&a.x||!X&&a!=null&&a.y)&&(B=null);const ee=v*2,q=ee/2,ne=c/2*(u/-8+1),te=d/2*u/4,Q=!!h,J=B&&A==="end"?"bottom":"top";let V=B&&A==="end"?"right":"left";B&&j&&(V=A==="end"?"left":"right");const z=(s==null?void 0:s.x)!=null?B||s.x:"",W=(s==null?void 0:s.y)!=null?B||s.y:"",k=h||"M0,0"+(" H"+c)+(" L"+(c-ne)+","+(d-te))+(" Q"+c/2+","+d+" "+ne+","+(d-te))+" Z",C={top:Q?"rotate(180deg)":"",left:Q?"rotate(90deg)":"rotate(-90deg)",bottom:Q?"":"rotate(180deg)",right:Q?"rotate(-90deg)":"rotate(90deg)"}[H];return Ne.jsxs("svg",{...T,"aria-hidden":!0,ref:r,width:Q?c:c+ee,height:c,viewBox:"0 0 "+c+" "+(d>c?d:c),style:{position:"absolute",pointerEvents:"none",[V]:z,[J]:W,[H]:X||Q?"100%":"calc(100% - "+ee/2+"px)",transform:[C,w].filter(R=>!!R).join(" "),...E},children:[ee>0&&Ne.jsx("path",{clipPath:"url(#"+x+")",fill:"none",stroke:f,strokeWidth:ee+(h?0:1),d:k}),Ne.jsx("path",{stroke:ee&&!h?T.fill:"none",d:k}),Ne.jsx("clipPath",{id:x,children:Ne.jsx("rect",{x:-q,y:q*(Q?-1:1),width:c+ee,height:c})})]})});function pi(){const e=new Map;return{emit(t,r){var o;(o=e.get(t))==null||o.forEach(i=>i(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var o;e.set(t,((o=e.get(t))==null?void 0:o.filter(i=>i!==r))||[])}}}const hi=_.createContext(null),vi=_.createContext(null),un=()=>{var e;return((e=_.useContext(hi))==null?void 0:e.id)||null},cn=()=>_.useContext(vi);function yt(e){return"data-floating-ui-"+e}function ln(e){const t=_.useRef(e);return Oe(()=>{t.current=e}),t}const fr=yt("safe-polygon");function fn(e,t,r){return r&&!Xt(r)?0:typeof e=="number"?e:e==null?void 0:e[t]}function yi(e,t){t===void 0&&(t={});const{open:r,onOpenChange:o,dataRef:i,events:s,elements:a}=e,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:v=!1,restMs:g=0,move:f=!0}=t,h=cn(),w=un(),E=ln(u),T=ln(d),x=ln(r),j=_.useRef(),P=_.useRef(-1),H=_.useRef(),A=_.useRef(-1),X=_.useRef(!0),B=_.useRef(!1),ee=_.useRef(()=>{}),q=_.useRef(!1),ne=_.useCallback(()=>{var k;const C=(k=i.current.openEvent)==null?void 0:k.type;return(C==null?void 0:C.includes("mouse"))&&C!=="mousedown"},[i]);_.useEffect(()=>{if(!c)return;function k(C){let{open:R}=C;R||(clearTimeout(P.current),clearTimeout(A.current),X.current=!0,q.current=!1)}return s.on("openchange",k),()=>{s.off("openchange",k)}},[c,s]),_.useEffect(()=>{if(!c||!E.current||!r)return;function k(R){ne()&&o(!1,R,"hover")}const C=Ue(a.floating).documentElement;return C.addEventListener("mouseleave",k),()=>{C.removeEventListener("mouseleave",k)}},[a.floating,r,o,c,E,ne]);const te=_.useCallback(function(k,C,R){C===void 0&&(C=!0),R===void 0&&(R="hover");const l=fn(T.current,"close",j.current);l&&!H.current?(clearTimeout(P.current),P.current=window.setTimeout(()=>o(!1,k,R),l)):C&&(clearTimeout(P.current),o(!1,k,R))},[T,o]),Q=De(()=>{ee.current(),H.current=void 0}),J=De(()=>{if(B.current){const k=Ue(a.floating).body;k.style.pointerEvents="",k.removeAttribute(fr),B.current=!1}}),V=De(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);_.useEffect(()=>{if(!c)return;function k(y){if(clearTimeout(P.current),X.current=!1,v&&!Xt(j.current)||g>0&&!fn(T.current,"open"))return;const S=fn(T.current,"open",j.current);S?P.current=window.setTimeout(()=>{x.current||o(!0,y,"hover")},S):r||o(!0,y,"hover")}function C(y){if(V())return;ee.current();const S=Ue(a.floating);if(clearTimeout(A.current),q.current=!1,E.current&&i.current.floatingContext){r||clearTimeout(P.current),H.current=E.current({...i.current.floatingContext,tree:h,x:y.clientX,y:y.clientY,onClose(){J(),Q(),V()||te(y,!0,"safe-polygon")}});const U=H.current;S.addEventListener("mousemove",U),ee.current=()=>{S.removeEventListener("mousemove",U)};return}(j.current==="touch"?!rt(a.floating,y.relatedTarget):!0)&&te(y)}function R(y){V()||i.current.floatingContext&&(E.current==null||E.current({...i.current.floatingContext,tree:h,x:y.clientX,y:y.clientY,onClose(){J(),Q(),V()||te(y)}})(y))}if(ce(a.domReference)){var l;const y=a.domReference;return r&&y.addEventListener("mouseleave",R),(l=a.floating)==null||l.addEventListener("mouseleave",R),f&&y.addEventListener("mousemove",k,{once:!0}),y.addEventListener("mouseenter",k),y.addEventListener("mouseleave",C),()=>{var S;r&&y.removeEventListener("mouseleave",R),(S=a.floating)==null||S.removeEventListener("mouseleave",R),f&&y.removeEventListener("mousemove",k),y.removeEventListener("mouseenter",k),y.removeEventListener("mouseleave",C)}}},[a,c,e,v,g,f,te,Q,J,o,r,x,h,T,E,i,V]),Oe(()=>{var k;if(c&&r&&(k=E.current)!=null&&k.__options.blockPointerEvents&&ne()){B.current=!0;const R=a.floating;if(ce(a.domReference)&&R){var C;const l=Ue(a.floating).body;l.setAttribute(fr,"");const y=a.domReference,S=h==null||(C=h.nodesRef.current.find(I=>I.id===w))==null||(C=C.context)==null?void 0:C.elements.floating;return S&&(S.style.pointerEvents=""),l.style.pointerEvents="none",y.style.pointerEvents="auto",R.style.pointerEvents="auto",()=>{l.style.pointerEvents="",y.style.pointerEvents="",R.style.pointerEvents=""}}}},[c,r,w,a,h,E,ne]),Oe(()=>{r||(j.current=void 0,q.current=!1,Q(),J())},[r,Q,J]),_.useEffect(()=>()=>{Q(),clearTimeout(P.current),clearTimeout(A.current),J()},[c,a.domReference,Q,J]);const z=_.useMemo(()=>{function k(C){j.current=C.pointerType}return{onPointerDown:k,onPointerEnter:k,onMouseMove(C){const{nativeEvent:R}=C;function l(){!X.current&&!x.current&&o(!0,R,"hover")}v&&!Xt(j.current)||r||g===0||q.current&&C.movementX**2+C.movementY**2<2||(clearTimeout(A.current),j.current==="touch"?l():(q.current=!0,A.current=window.setTimeout(l,g)))}}},[v,o,r,x,g]),W=_.useMemo(()=>({onMouseEnter(){clearTimeout(P.current)},onMouseLeave(k){V()||te(k.nativeEvent,!1)}}),[te,V]);return _.useMemo(()=>c?{reference:z,floating:W}:{},[c,z,W])}function dn(e,t){let r=e.filter(i=>{var s;return i.parentId===t&&((s=i.context)==null?void 0:s.open)}),o=r;for(;o.length;)o=e.filter(i=>{var s;return(s=o)==null?void 0:s.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),r=r.concat(o);return r}const dr=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function mr(e,t){const r=Wn(e,dr());t==="prev"&&r.reverse();const o=r.indexOf(Kt(Ue(e)));return r.slice(o+1)[0]}function _i(){return mr(document.body,"next")}function bi(){return mr(document.body,"prev")}function mn(e,t){const r=t||e.currentTarget,o=e.relatedTarget;return!o||!rt(r,o)}function Ei(e){Wn(e,dr()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function gr(e){e.querySelectorAll("[data-tabindex]").forEach(r=>{const o=r.dataset.tabindex;delete r.dataset.tabindex,o?r.setAttribute("tabindex",o):r.removeAttribute("tabindex")})}const pr={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let wi;function hr(e){e.key==="Tab"&&(e.target,clearTimeout(wi))}const vr=_.forwardRef(function(t,r){const[o,i]=_.useState();Oe(()=>(An()&&i("button"),document.addEventListener("keydown",hr),()=>{document.removeEventListener("keydown",hr)}),[]);const s={ref:r,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,[yt("focus-guard")]:"",style:pr};return Ne.jsx("span",{...t,...s})}),yr=_.createContext(null),_r=yt("portal");function Ri(e){e===void 0&&(e={});const{id:t,root:r}=e,o=zt(),i=Oi(),[s,a]=_.useState(null),c=_.useRef(null);return Oe(()=>()=>{s==null||s.remove(),queueMicrotask(()=>{c.current=null})},[s]),Oe(()=>{if(!o||c.current)return;const d=t?document.getElementById(t):null;if(!d)return;const u=document.createElement("div");u.id=o,u.setAttribute(_r,""),d.appendChild(u),c.current=u,a(u)},[t,o]),Oe(()=>{if(r===null||!o||c.current)return;let d=r||(i==null?void 0:i.portalNode);d&&!ce(d)&&(d=d.current),d=d||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,d.appendChild(u));const v=document.createElement("div");v.id=o,v.setAttribute(_r,""),d=u||d,d.appendChild(v),c.current=v,a(v)},[t,r,o,i]),s}function Ti(e){const{children:t,id:r,root:o,preserveTabOrder:i=!0}=e,s=Ri({id:r,root:o}),[a,c]=_.useState(null),d=_.useRef(null),u=_.useRef(null),v=_.useRef(null),g=_.useRef(null),f=a==null?void 0:a.modal,h=a==null?void 0:a.open,w=!!a&&!a.modal&&a.open&&i&&!!(o||s);return _.useEffect(()=>{if(!s||!i||f)return;function E(T){s&&mn(T)&&(T.type==="focusin"?gr:Ei)(s)}return s.addEventListener("focusin",E,!0),s.addEventListener("focusout",E,!0),()=>{s.removeEventListener("focusin",E,!0),s.removeEventListener("focusout",E,!0)}},[s,i,f]),_.useEffect(()=>{s&&(h||gr(s))},[h,s]),Ne.jsxs(yr.Provider,{value:_.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:d,afterOutsideRef:u,beforeInsideRef:v,afterInsideRef:g,portalNode:s,setFocusManagerState:c}),[i,s]),children:[w&&s&&Ne.jsx(vr,{"data-type":"outside",ref:d,onFocus:E=>{if(mn(E,s)){var T;(T=v.current)==null||T.focus()}else{const x=bi()||(a==null?void 0:a.domReference);x==null||x.focus()}}}),w&&s&&Ne.jsx("span",{"aria-owns":s.id,style:pr}),s&&Vn.createPortal(t,s),w&&s&&Ne.jsx(vr,{"data-type":"outside",ref:u,onFocus:E=>{if(mn(E,s)){var T;(T=g.current)==null||T.focus()}else{const x=_i()||(a==null?void 0:a.domReference);x==null||x.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,E.nativeEvent,"focus-out"))}}})]})}const Oi=()=>_.useContext(yr),xi="data-floating-ui-focusable",Ci={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Si={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},br=e=>{var t,r;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(r=e==null?void 0:e.outsidePress)!=null?r:!0}};function Ai(e,t){t===void 0&&(t={});const{open:r,onOpenChange:o,elements:i,dataRef:s}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:d=!0,outsidePressEvent:u="pointerdown",referencePress:v=!1,referencePressEvent:g="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:w}=t,E=cn(),T=De(typeof d=="function"?d:()=>!1),x=typeof d=="function"?T:d,j=_.useRef(!1),P=_.useRef(!1),{escapeKey:H,outsidePress:A}=br(h),{escapeKey:X,outsidePress:B}=br(w),ee=_.useRef(!1),q=De(z=>{var W;if(!r||!a||!c||z.key!=="Escape"||ee.current)return;const k=(W=s.current.floatingContext)==null?void 0:W.nodeId,C=E?dn(E.nodesRef.current,k):[];if(!H&&(z.stopPropagation(),C.length>0)){let R=!0;if(C.forEach(l=>{var y;if((y=l.context)!=null&&y.open&&!l.context.dataRef.current.__escapeKeyBubbles){R=!1;return}}),!R)return}o(!1,Xr(z)?z.nativeEvent:z,"escape-key")}),ne=De(z=>{var W;const k=()=>{var C;q(z),(C=ot(z))==null||C.removeEventListener("keydown",k)};(W=ot(z))==null||W.addEventListener("keydown",k)}),te=De(z=>{var W;const k=j.current;j.current=!1;const C=P.current;if(P.current=!1,u==="click"&&C||k||typeof x=="function"&&!x(z))return;const R=ot(z),l="["+yt("inert")+"]",y=Ue(i.floating).querySelectorAll(l);let S=ce(R)?R:null;for(;S&&!Me(S);){const $=Le(S);if(Me($)||!ce($))break;S=$}if(y.length&&ce(R)&&!Qr(R)&&!rt(R,i.floating)&&Array.from(y).every($=>!rt(S,$)))return;if(Ee(R)&&V){const $=Me(R),le=we(R),re=/auto|scroll/,Pe=$||re.test(le.overflowX),Be=$||re.test(le.overflowY),ze=Pe&&R.clientWidth>0&&R.scrollWidth>R.clientWidth,$e=Be&&R.clientHeight>0&&R.scrollHeight>R.clientHeight,Ie=le.direction==="rtl",ke=$e&&(Ie?z.offsetX<=R.offsetWidth-R.clientWidth:z.offsetX>R.clientWidth),Ye=ze&&z.offsetY>R.clientHeight;if(ke||Ye)return}const I=(W=s.current.floatingContext)==null?void 0:W.nodeId,U=E&&dn(E.nodesRef.current,I).some($=>{var le;return Qt(z,(le=$.context)==null?void 0:le.elements.floating)});if(Qt(z,i.floating)||Qt(z,i.domReference)||U)return;const oe=E?dn(E.nodesRef.current,I):[];if(oe.length>0){let $=!0;if(oe.forEach(le=>{var re;if((re=le.context)!=null&&re.open&&!le.context.dataRef.current.__outsidePressBubbles){$=!1;return}}),!$)return}o(!1,z,"outside-press")}),Q=De(z=>{var W;const k=()=>{var C;te(z),(C=ot(z))==null||C.removeEventListener(u,k)};(W=ot(z))==null||W.addEventListener(u,k)});_.useEffect(()=>{if(!r||!a)return;s.current.__escapeKeyBubbles=H,s.current.__outsidePressBubbles=A;let z=-1;function W(y){o(!1,y,"ancestor-scroll")}function k(){window.clearTimeout(z),ee.current=!0}function C(){z=window.setTimeout(()=>{ee.current=!1},Ot()?5:0)}const R=Ue(i.floating);c&&(R.addEventListener("keydown",X?ne:q,X),R.addEventListener("compositionstart",k),R.addEventListener("compositionend",C)),x&&R.addEventListener(u,B?Q:te,B);let l=[];return f&&(ce(i.domReference)&&(l=Fe(i.domReference)),ce(i.floating)&&(l=l.concat(Fe(i.floating))),!ce(i.reference)&&i.reference&&i.reference.contextElement&&(l=l.concat(Fe(i.reference.contextElement)))),l=l.filter(y=>{var S;return y!==((S=R.defaultView)==null?void 0:S.visualViewport)}),l.forEach(y=>{y.addEventListener("scroll",W,{passive:!0})}),()=>{c&&(R.removeEventListener("keydown",X?ne:q,X),R.removeEventListener("compositionstart",k),R.removeEventListener("compositionend",C)),x&&R.removeEventListener(u,B?Q:te,B),l.forEach(y=>{y.removeEventListener("scroll",W)}),window.clearTimeout(z)}},[s,i,c,x,u,r,o,f,a,H,A,q,X,ne,te,B,Q]),_.useEffect(()=>{j.current=!1},[x,u]);const J=_.useMemo(()=>({onKeyDown:q,...v&&{[Ci[g]]:z=>{o(!1,z.nativeEvent,"reference-press")},...g!=="click"&&{onClick(z){o(!1,z.nativeEvent,"reference-press")}}}}),[q,o,v,g]),V=_.useMemo(()=>({onKeyDown:q,onMouseDown(){P.current=!0},onMouseUp(){P.current=!0},[Si[u]]:()=>{j.current=!0}}),[q,u]);return _.useMemo(()=>a?{reference:J,floating:V}:{},[a,J,V])}function Ni(e){const{open:t=!1,onOpenChange:r,elements:o}=e,i=zt(),s=_.useRef({}),[a]=_.useState(()=>pi()),c=un()!=null;if(process.env.NODE_ENV!=="production"){const h=o.reference;h&&!ce(h)&&gi("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[d,u]=_.useState(o.reference),v=De((h,w,E)=>{s.current.openEvent=h?w:void 0,a.emit("openchange",{open:h,event:w,reason:E,nested:c}),r==null||r(h,w,E)}),g=_.useMemo(()=>({setPositionReference:u}),[]),f=_.useMemo(()=>({reference:d||o.reference||null,floating:o.floating||null,domReference:o.reference}),[d,o.reference,o.floating]);return _.useMemo(()=>({dataRef:s,open:t,onOpenChange:v,elements:f,events:a,floatingId:i,refs:g}),[t,v,f,a,i,g])}function Pi(e){e===void 0&&(e={});const{nodeId:t}=e,r=Ni({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,i=o.elements,[s,a]=_.useState(null),[c,d]=_.useState(null),v=(i==null?void 0:i.domReference)||s,g=_.useRef(null),f=cn();Oe(()=>{v&&(g.current=v)},[v]);const h=oi({...e,elements:{...i,...c&&{reference:c}}}),w=_.useCallback(P=>{const H=ce(P)?{getBoundingClientRect:()=>P.getBoundingClientRect(),contextElement:P}:P;d(H),h.refs.setReference(H)},[h.refs]),E=_.useCallback(P=>{(ce(P)||P===null)&&(g.current=P,a(P)),(ce(h.refs.reference.current)||h.refs.reference.current===null||P!==null&&!ce(P))&&h.refs.setReference(P)},[h.refs]),T=_.useMemo(()=>({...h.refs,setReference:E,setPositionReference:w,domReference:g}),[h.refs,E,w]),x=_.useMemo(()=>({...h.elements,domReference:v}),[h.elements,v]),j=_.useMemo(()=>({...h,...o,refs:T,elements:x,nodeId:t}),[h,T,x,t,o]);return Oe(()=>{o.dataRef.current.floatingContext=j;const P=f==null?void 0:f.nodesRef.current.find(H=>H.id===t);P&&(P.context=j)}),_.useMemo(()=>({...h,context:j,refs:T,elements:x}),[h,T,x,j])}function ki(e,t){t===void 0&&(t={});const{open:r,onOpenChange:o,events:i,dataRef:s,elements:a}=e,{enabled:c=!0,visibleOnly:d=!0}=t,u=_.useRef(!1),v=_.useRef(),g=_.useRef(!0);_.useEffect(()=>{if(!c)return;const h=_e(a.domReference);function w(){!r&&Ee(a.domReference)&&a.domReference===Kt(Ue(a.domReference))&&(u.current=!0)}function E(){g.current=!0}return h.addEventListener("blur",w),h.addEventListener("keydown",E,!0),()=>{h.removeEventListener("blur",w),h.removeEventListener("keydown",E,!0)}},[a.domReference,r,c]),_.useEffect(()=>{if(!c)return;function h(w){let{reason:E}=w;(E==="reference-press"||E==="escape-key")&&(u.current=!0)}return i.on("openchange",h),()=>{i.off("openchange",h)}},[i,c]),_.useEffect(()=>()=>{clearTimeout(v.current)},[]);const f=_.useMemo(()=>({onPointerDown(h){qr(h.nativeEvent)||(g.current=!1)},onMouseLeave(){u.current=!1},onFocus(h){if(u.current)return;const w=ot(h.nativeEvent);if(d&&ce(w))try{if(An()&&Gr())throw Error();if(!w.matches(":focus-visible"))return}catch{if(!g.current&&!Jr(w))return}o(!0,h.nativeEvent,"focus")},onBlur(h){u.current=!1;const w=h.relatedTarget,E=h.nativeEvent,T=ce(w)&&w.hasAttribute(yt("focus-guard"))&&w.getAttribute("data-type")==="outside";v.current=window.setTimeout(()=>{var x;const j=Kt(a.domReference?a.domReference.ownerDocument:document);!w&&j===a.domReference||rt((x=s.current.floatingContext)==null?void 0:x.refs.floating.current,j)||rt(a.domReference,j)||T||o(!1,E,"focus")})}}),[s,a.domReference,o,d]);return _.useMemo(()=>c?{reference:f}:{},[c,f])}const Er="active",wr="selected";function gn(e,t,r){const o=new Map,i=r==="item";let s=e;if(i&&e){const{[Er]:a,[wr]:c,...d}=e;s=d}return{...r==="floating"&&{tabIndex:-1,[xi]:""},...s,...t.map(a=>{const c=a?a[r]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(d=>{let[u,v]=d;if(!(i&&[Er,wr].includes(u)))if(u.indexOf("on")===0){if(o.has(u)||o.set(u,[]),typeof v=="function"){var g;(g=o.get(u))==null||g.push(v),a[u]=function(){for(var f,h=arguments.length,w=new Array(h),E=0;E<h;E++)w[E]=arguments[E];return(f=o.get(u))==null?void 0:f.map(T=>T(...w)).find(T=>T!==void 0)}}}else a[u]=v}),a),{})}}function ji(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),r=e.map(c=>c==null?void 0:c.floating),o=e.map(c=>c==null?void 0:c.item),i=_.useCallback(c=>gn(c,e,"reference"),t),s=_.useCallback(c=>gn(c,e,"floating"),r),a=_.useCallback(c=>gn(c,e,"item"),o);return _.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a}),[i,s,a])}const Mi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Li(e,t){var r;t===void 0&&(t={});const{open:o,floatingId:i}=e,{enabled:s=!0,role:a="dialog"}=t,c=(r=Mi.get(a))!=null?r:a,d=zt(),v=un()!=null,g=_.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:o?i:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":o?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:d},...c==="menu"&&v&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,v,o,d,a]),f=_.useMemo(()=>{const w={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?w:{...w,...c==="menu"&&{"aria-labelledby":d}}},[c,i,d,a]),h=_.useCallback(w=>{let{active:E,selected:T}=w;const x={role:"option",...E&&{id:i+"-option"}};switch(a){case"select":return{...x,"aria-selected":E&&T};case"combobox":return{...x,...E&&{"aria-selected":!0}}}return{}},[i,a]);return _.useMemo(()=>s?{reference:g,floating:f,item:h}:{},[s,g,f,h])}const pn={wrapper:"_wrapper_iejlm_1","size--sm":"_size--sm_iejlm_12","size--md":"_size--md_iejlm_15"},Di=e=>{const t=se.useMemo(()=>tt(pn.wrapper,{[pn["size--sm"]]:e.size==="sm",[pn["size--md"]]:e.size==="md"}),[e.size]);return se.createElement("div",{className:t},e.children)},Qe={wrapper:"_wrapper_9hfm7_1",icon:"_icon_9hfm7_7",active:"_active_9hfm7_23",arrow:"_arrow_9hfm7_28",arrow2:"_arrow2_9hfm7_33",label:"_label_9hfm7_38",caption:"_caption_9hfm7_43"};function zi({size:e="sm",initialOpen:t=!1,placement:r="top",open:o,onOpenChange:i}){const[s,a]=_.useState(t),c=_.useRef(null),d=o??s,u=i??a,v=Pi({placement:r,open:d,onOpenChange:u,whileElementsMounted:Jo,middleware:[si(6),ui({crossAxis:r.includes("-"),fallbackAxisSideDirection:"start",padding:5}),ai({padding:10}),ci({element:c})]}),g=v.context,f=yi(g,{move:!1,enabled:o==null}),h=ki(g,{enabled:o==null}),w=Ai(g),E=Li(g,{role:"tooltip"}),T=ji([f,h,w,E]);return _.useMemo(()=>({size:e,open:d,setOpen:u,arrowRef:c,...T,...v}),[d,u,T,v,e,c])}const Rr=_.createContext(null),Tr=()=>{const e=_.useContext(Rr);if(e==null)throw new Error("Tooltip components must be wrapped in <Tooltip />");return e},$i=({children:e,...t})=>{const r=zi(t);return _.createElement(Rr.Provider,{value:r},e)},Ii=_.forwardRef(function({children:t,...r},o){const i=Tr(),s=sr([i.refs.setReference,o]);return _.createElement("div",{className:Qe.wrapper,ref:s,"data-state":i.open?"open":"closed",...i.getReferenceProps(r)},t??_.createElement("div",{className:tt(Qe.icon,{[Qe.active]:i.open})},_.createElement(lt,{icon:"information-fill"})))}),Yi=_.forwardRef(function({style:t,...r},o){const i=Tr(),s=sr([i.refs.setFloating,o]);return i.open?_.createElement(Ti,null,_.createElement("div",{ref:s,style:{...i.floatingStyles,...t},...i.getFloatingProps(r)},_.createElement(Di,{size:i.size},r.children),_.createElement(lr,{ref:i.arrowRef,context:i.context,className:Qe.arrow,width:14,height:4}),_.createElement(lr,{ref:i.arrowRef,context:i.context,className:Qe.arrow2,width:14,height:4,style:{transform:"translateY(-1px)"}}))):null});Object.assign($i,{Trigger:Ii,Content:Object.assign(Yi,{Label:e=>_.createElement("div",{className:Qe.label},_.createElement(Bt,{size:"caption-m",weight:"semi-bold"},_.createElement("p",null,e.children))),Caption:e=>_.createElement("div",{className:Qe.caption},_.createElement(Bt,{size:"caption-m",weight:"medium"},_.createElement("p",null,e.children)))})});const $t={wrapper:"_wrapper_rf188_1",label:"_label_rf188_7",content:"_content_rf188_14",caption:"_caption_rf188_20"};Object.assign(e=>se.createElement("div",{className:$t.wrapper},se.Children.map(e.children,t=>se.isValidElement(t)?t:null)),{Label:e=>se.createElement("div",{className:$t.label},e.children),Content:e=>se.createElement("div",{className:$t.content},e.children),Caption:e=>se.createElement("div",{className:$t.caption},e.children)}),We.Badge=Fr,We.Button=Ur,We.Typography=Bt,Object.defineProperty(We,Symbol.toStringTag,{value:"Module"})});
|